{"openapi":"3.0.3","info":{"title":"Natural Language Command, Intent & Agent Router API","version":"1.0.57","description":"Deterministic sub-millisecond natural-language parser covering 46 structured intents (tasks with date ranges/RRULE/.ics/business days, split-bill multi-currency expenses across 39 currencies, workouts, steps, biomarkers, nutrition coaching, 120+ city DST timezones, finance calculators, 13-locale diacritic-insensitive polyglot, grounded entity spans, ghost-text autocomplete, and stateless patch_last batch chaining) with confidence and zero-LLM routing signals."},"servers":[{"url":"https://api.tinplate.dev","description":"Production Edge Gateway"}],"components":{"schemas":{"OmnibarParseResponseData":{"type":"object","properties":{"kind":{"type":"string"},"confidence":{"type":"number"},"matched_by":{"type":"string"},"needs_llm":{"type":"boolean"},"summary":{"type":"string"},"normalized_input":{"type":"string"},"detected_locale":{"type":"string","enum":["en","hu","de","es","fr","it","pt","pl","nl","sv","tr","ja","zh"]},"intent":{"type":"object","additionalProperties":{}},"macro_trigger":{"type":"string"},"near_miss_hint":{"type":"object","properties":{"label":{"type":"string"},"corrected_raw":{"type":"string"}},"required":["label","corrected_raw"]},"tokens":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"kind":{"type":"string"}},"required":["text","kind"]}},"spans":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"start":{"type":"integer"},"end":{"type":"integer"},"text":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"required":["field","start","end","text"]}},"alternatives":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"intent":{"type":"object","additionalProperties":{}}},"required":["label","intent"]}},"sentiment":{"type":"object","properties":{"polarity":{"type":"string","enum":["positive","negative","neutral","mixed"]},"score":{"type":"number"},"mood":{"type":"string"},"urgency":{"type":"string","enum":["low","normal","high"]},"signals":{"type":"array","items":{"type":"string"}}},"required":["polarity","score","mood","urgency","signals"]},"ics":{"type":"string"}},"required":["kind","confidence","matched_by","needs_llm","summary","normalized_input","intent"]},"OmnibarParseRequest":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":8192,"example":"spent €14.50 on lunch yesterday","description":"Natural-language command, voice dictation, multi-action chain, or multi-line checklist to parse deterministically (max 8 KB)."},"now":{"type":"string","maxLength":64,"example":"2026-11-22T12:00:00Z","description":"Optional ISO-8601 reference timestamp for deterministic date/time calculations (defaults to current UTC time)."},"timezone":{"type":"string","maxLength":64,"example":"Europe/Berlin","description":"Optional IANA timezone for resolving relative dates such as 'today', 'tomorrow', or 'yesterday' (default 'UTC')."},"default_currency":{"type":"string","pattern":"^[A-Za-z]{3}$","example":"EUR","description":"Optional 3-letter ISO-4217 fallback currency code (39 global currencies supported) when input omits a currency symbol."},"locale":{"type":"string","enum":["en","hu","de","es","fr","it","pt","pl","nl","sv","tr","ja","zh"],"example":"hu","description":"Optional language hint across 13 supported locales (en, hu, de, es, fr, it, pt, pl, nl, sv, tr, ja, zh) for diacritic-insensitive polyglot parsing."},"last_answer":{"type":"number","example":220,"description":"Optional previous numeric calculator answer for stateless 'ans' chaining (e.g. 'ans * 2')."},"user_weight_kg":{"type":"number","minimum":30,"maximum":250,"example":75,"description":"Optional user bodyweight in kilograms for MET calories-burned estimates on workout & step logs (default 70)."},"fx_rates":{"type":"object","additionalProperties":{"type":"number","minimum":0,"exclusiveMinimum":true},"description":"Optional custom FX rates (value of 1 currency unit in USD) merged over the built-in 39-currency reference table."},"domains":{"type":"array","items":{"type":"string","enum":["tasks","money","body","calc","query","knowledge","media","workspace","navigation","ai"]},"minItems":1,"maxItems":10,"example":["tasks","money","body","calc"],"description":"Optional allowlist of enabled intent domains. Intents outside this list gracefully fall back to 'task' or 'ai_ask'."},"projects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"name":{"type":"string","minLength":1,"maxLength":80},"archived":{"type":"boolean"}},"required":["id","name"],"additionalProperties":false},"maxItems":50,"description":"Optional list of project references for '#project' resolution in tasks and expenses."},"custom_routes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"title":{"type":"string","minLength":1,"maxLength":80},"space":{"type":"string","maxLength":40},"subTab":{"type":"string","maxLength":40},"keywords":{"type":"array","items":{"type":"string","maxLength":40},"maxItems":20}},"required":["id","title"],"additionalProperties":false},"maxItems":100,"description":"Optional caller-defined navigation routes matched by the 'navigate' intent."},"macros":{"type":"object","additionalProperties":{"type":"string","maxLength":240},"description":"Optional user-defined alias map (trigger -> expansion) applied before parsing."},"wake_words":{"type":"array","items":{"type":"string","minLength":2,"maxLength":32},"maxItems":10,"description":"Optional assistant wake words stripped from conversational prefixes."},"snapshot":{"type":"object","properties":{"waterTodayMl":{"type":"number","minimum":0,"maximum":50000},"waterTargetMl":{"type":"number","minimum":0,"maximum":50000},"caloriesToday":{"type":"number","minimum":0,"maximum":50000},"proteinTodayGrams":{"type":"number","minimum":0,"maximum":2000},"sleepLastHours":{"type":"number","minimum":0,"maximum":24},"sleepLastQuality":{"type":"number","minimum":1,"maximum":5},"workoutsToday":{"type":"integer","minimum":0,"maximum":50},"workoutsTotal":{"type":"integer","minimum":0,"maximum":100000},"monthExpenseCents":{"type":"number","minimum":0,"maximum":1000000000000},"monthIncomeCents":{"type":"number","minimum":0,"maximum":1000000000000},"todayExpenseCents":{"type":"number","minimum":0,"maximum":1000000000000},"monthlySubscriptionsCents":{"type":"number","minimum":0,"maximum":1000000000000},"activeSubscriptionsCount":{"type":"integer","minimum":0,"maximum":1000},"tasksDueToday":{"type":"integer","minimum":0,"maximum":10000},"tasksOverdue":{"type":"integer","minimum":0,"maximum":10000},"tasksOpenTotal":{"type":"integer","minimum":0,"maximum":100000},"habitsDoneToday":{"type":"integer","minimum":0,"maximum":500},"habitsTotal":{"type":"integer","minimum":0,"maximum":500},"topHabitStreak":{"type":"integer","minimum":0,"maximum":100000},"focusMinutesToday":{"type":"number","minimum":0,"maximum":1440},"focusSessionsToday":{"type":"integer","minimum":0,"maximum":500},"dueFlashcardsCount":{"type":"integer","minimum":0,"maximum":100000},"readingBooksCount":{"type":"integer","minimum":0,"maximum":10000},"currentBookTitle":{"type":"string","maxLength":180},"activeJobsCount":{"type":"integer","minimum":0,"maximum":10000},"activeGoalsCount":{"type":"integer","minimum":0,"maximum":10000},"notesCount":{"type":"integer","minimum":0,"maximum":100000},"weekExpenseCents":{"type":"number","minimum":0,"maximum":1000000000000},"waterYesterdayMl":{"type":"number","minimum":0,"maximum":50000},"avgSleepHours":{"type":"number","minimum":0,"maximum":24},"topExpenseCategories":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string","maxLength":64},"cents":{"type":"number"}},"required":["category","cents"],"additionalProperties":false},"maxItems":20},"openTaskTitles":{"type":"array","items":{"type":"string","maxLength":160},"maxItems":100},"bookTitles":{"type":"array","items":{"type":"string","maxLength":160},"maxItems":100},"contactNames":{"type":"array","items":{"type":"string","maxLength":120},"maxItems":100},"jobCompanies":{"type":"array","items":{"type":"string","maxLength":120},"maxItems":100},"goalTitles":{"type":"array","items":{"type":"string","maxLength":160},"maxItems":100},"habitNames":{"type":"array","items":{"type":"string","maxLength":120},"maxItems":100}},"additionalProperties":false,"description":"Optional workspace metrics & entity names (contacts, open tasks, books, habits, goals, jobs) for offline Q&A and attendee matching."},"previous_intent":{"type":"object","additionalProperties":{},"description":"Optional stateless previous intent object returned from an earlier /v1/omnibar/parse call, enabling 'patch_last' follow-up corrections (e.g. 'actually make it 3pm')."},"custom_foods":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"aliases":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":12},"kcal_per_unit":{"type":"number","minimum":0,"maximum":5000},"protein_per_unit":{"type":"number","minimum":0,"maximum":500},"carbs_per_unit":{"type":"number","minimum":0,"maximum":500,"default":0},"fat_per_unit":{"type":"number","minimum":0,"maximum":500,"default":0},"saturated_fat_per_unit":{"type":"number","minimum":0,"maximum":200,"default":0},"fiber_per_unit":{"type":"number","minimum":0,"maximum":200,"default":0},"sugar_per_unit":{"type":"number","minimum":0,"maximum":500,"default":0},"sodium_mg_per_unit":{"type":"number","minimum":0,"maximum":20000,"default":0},"potassium_mg_per_unit":{"type":"number","minimum":0,"maximum":20000,"default":0},"cholesterol_mg_per_unit":{"type":"number","minimum":0,"maximum":5000,"default":0},"grams_per_unit":{"type":"number","minimum":1,"maximum":5000,"default":100},"unit_label":{"type":"string","minLength":1,"maxLength":32,"default":"serving"},"caffeine_mg_per_unit":{"type":"number","minimum":0,"maximum":2000},"alcohol_g_per_unit":{"type":"number","minimum":0,"maximum":200},"allergens":{"type":"array","items":{"type":"string","enum":["eggs","dairy","gluten","fish","shellfish","nuts","peanuts","soy","sesame"]},"maxItems":9},"vegan":{"type":"boolean"},"vegetarian":{"type":"boolean"},"gluten_free":{"type":"boolean"},"dairy_free":{"type":"boolean"}},"required":["name","kcal_per_unit","protein_per_unit"],"additionalProperties":false},"maxItems":50,"description":"Optional per-request custom or branded foods merged ahead of the built-in 294-food USDA v2 database."},"custom_slash_commands":{"type":"array","items":{"type":"object","properties":{"command":{"type":"string","minLength":1,"maxLength":40},"expansion":{"type":"string","maxLength":160},"hint":{"type":"string","maxLength":160},"domain":{"type":"string","enum":["tasks","money","body","calc","query","knowledge","media","workspace","navigation","ai"]}},"required":["command"],"additionalProperties":false},"maxItems":50,"description":"Optional per-request custom slash commands normalized before parsing (e.g. '/jira' -> 'task: [JIRA] ')."},"allow_compound":{"type":"boolean","default":true,"example":true,"description":"When true (default), splits chained multi-action statements and multi-line pasted checklists."},"include_tokens":{"type":"boolean","default":false,"example":true,"description":"Include semantic syntax-highlighting token spans in the response."},"include_spans":{"type":"boolean","default":false,"example":true,"description":"Include exact UTF-16 character-offset entity spans guaranteed to match text.slice(start, end) === span.text."},"include_alternatives":{"type":"boolean","default":false,"example":false,"description":"Include secondary disambiguation intents when input phrasing is ambiguous."},"include_sentiment":{"type":"boolean","default":false,"example":true,"description":"Include offline polarity, mood, and urgency analysis."},"include_ics":{"type":"boolean","default":false,"example":false,"description":"When true and the parsed intent is a 'task', emits an RFC 5545 VCALENDAR/VEVENT/VALARM .ics string."}},"required":["text"],"additionalProperties":false},"OmnibarSuggestResponseData":{"type":"object","properties":{"ghost_suffix":{"type":"string"},"completions":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string"},"domain":{"type":"string"},"score":{"type":"number"}},"required":["text","label","kind","domain","score"]}}},"required":["ghost_suffix","completions"]},"OmnibarSuggestRequest":{"type":"object","properties":{"text":{"type":"string","maxLength":512,"example":"ate sal","description":"Partial command-bar keystroke prefix for sub-0.2 ms ghost-text and ranked autocomplete suggestions (empty string lists top slash commands)."},"limit":{"type":"integer","minimum":1,"maximum":20,"default":8,"example":8,"description":"Maximum number of completion suggestions to return (1–20, default 8)."},"domains":{"type":"array","items":{"type":"string","enum":["tasks","money","body","calc","query","knowledge","media","workspace","navigation","ai"]},"minItems":1,"maxItems":10},"projects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"name":{"type":"string","minLength":1,"maxLength":80},"archived":{"type":"boolean"}},"required":["id","name"],"additionalProperties":false},"maxItems":50},"snapshot":{"type":"object","properties":{"waterTodayMl":{"type":"number","minimum":0,"maximum":50000},"waterTargetMl":{"type":"number","minimum":0,"maximum":50000},"caloriesToday":{"type":"number","minimum":0,"maximum":50000},"proteinTodayGrams":{"type":"number","minimum":0,"maximum":2000},"sleepLastHours":{"type":"number","minimum":0,"maximum":24},"sleepLastQuality":{"type":"number","minimum":1,"maximum":5},"workoutsToday":{"type":"integer","minimum":0,"maximum":50},"workoutsTotal":{"type":"integer","minimum":0,"maximum":100000},"monthExpenseCents":{"type":"number","minimum":0,"maximum":1000000000000},"monthIncomeCents":{"type":"number","minimum":0,"maximum":1000000000000},"todayExpenseCents":{"type":"number","minimum":0,"maximum":1000000000000},"monthlySubscriptionsCents":{"type":"number","minimum":0,"maximum":1000000000000},"activeSubscriptionsCount":{"type":"integer","minimum":0,"maximum":1000},"tasksDueToday":{"type":"integer","minimum":0,"maximum":10000},"tasksOverdue":{"type":"integer","minimum":0,"maximum":10000},"tasksOpenTotal":{"type":"integer","minimum":0,"maximum":100000},"habitsDoneToday":{"type":"integer","minimum":0,"maximum":500},"habitsTotal":{"type":"integer","minimum":0,"maximum":500},"topHabitStreak":{"type":"integer","minimum":0,"maximum":100000},"focusMinutesToday":{"type":"number","minimum":0,"maximum":1440},"focusSessionsToday":{"type":"integer","minimum":0,"maximum":500},"dueFlashcardsCount":{"type":"integer","minimum":0,"maximum":100000},"readingBooksCount":{"type":"integer","minimum":0,"maximum":10000},"currentBookTitle":{"type":"string","maxLength":180},"activeJobsCount":{"type":"integer","minimum":0,"maximum":10000},"activeGoalsCount":{"type":"integer","minimum":0,"maximum":10000},"notesCount":{"type":"integer","minimum":0,"maximum":100000},"weekExpenseCents":{"type":"number","minimum":0,"maximum":1000000000000},"waterYesterdayMl":{"type":"number","minimum":0,"maximum":50000},"avgSleepHours":{"type":"number","minimum":0,"maximum":24},"topExpenseCategories":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string","maxLength":64},"cents":{"type":"number"}},"required":["category","cents"],"additionalProperties":false},"maxItems":20},"openTaskTitles":{"type":"array","items":{"type":"string","maxLength":160},"maxItems":100},"bookTitles":{"type":"array","items":{"type":"string","maxLength":160},"maxItems":100},"contactNames":{"type":"array","items":{"type":"string","maxLength":120},"maxItems":100},"jobCompanies":{"type":"array","items":{"type":"string","maxLength":120},"maxItems":100},"goalTitles":{"type":"array","items":{"type":"string","maxLength":160},"maxItems":100},"habitNames":{"type":"array","items":{"type":"string","maxLength":120},"maxItems":100}},"additionalProperties":false},"macros":{"type":"object","additionalProperties":{"type":"string","maxLength":240}},"custom_routes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"title":{"type":"string","minLength":1,"maxLength":80},"space":{"type":"string","maxLength":40},"subTab":{"type":"string","maxLength":40},"keywords":{"type":"array","items":{"type":"string","maxLength":40},"maxItems":20}},"required":["id","title"],"additionalProperties":false},"maxItems":100},"custom_foods":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"aliases":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":12},"kcal_per_unit":{"type":"number","minimum":0,"maximum":5000},"protein_per_unit":{"type":"number","minimum":0,"maximum":500},"carbs_per_unit":{"type":"number","minimum":0,"maximum":500,"default":0},"fat_per_unit":{"type":"number","minimum":0,"maximum":500,"default":0},"saturated_fat_per_unit":{"type":"number","minimum":0,"maximum":200,"default":0},"fiber_per_unit":{"type":"number","minimum":0,"maximum":200,"default":0},"sugar_per_unit":{"type":"number","minimum":0,"maximum":500,"default":0},"sodium_mg_per_unit":{"type":"number","minimum":0,"maximum":20000,"default":0},"potassium_mg_per_unit":{"type":"number","minimum":0,"maximum":20000,"default":0},"cholesterol_mg_per_unit":{"type":"number","minimum":0,"maximum":5000,"default":0},"grams_per_unit":{"type":"number","minimum":1,"maximum":5000,"default":100},"unit_label":{"type":"string","minLength":1,"maxLength":32,"default":"serving"},"caffeine_mg_per_unit":{"type":"number","minimum":0,"maximum":2000},"alcohol_g_per_unit":{"type":"number","minimum":0,"maximum":200},"allergens":{"type":"array","items":{"type":"string","enum":["eggs","dairy","gluten","fish","shellfish","nuts","peanuts","soy","sesame"]},"maxItems":9},"vegan":{"type":"boolean"},"vegetarian":{"type":"boolean"},"gluten_free":{"type":"boolean"},"dairy_free":{"type":"boolean"}},"required":["name","kcal_per_unit","protein_per_unit"],"additionalProperties":false},"maxItems":50},"custom_slash_commands":{"type":"array","items":{"type":"object","properties":{"command":{"type":"string","minLength":1,"maxLength":40},"expansion":{"type":"string","maxLength":160},"hint":{"type":"string","maxLength":160},"domain":{"type":"string","enum":["tasks","money","body","calc","query","knowledge","media","workspace","navigation","ai"]}},"required":["command"],"additionalProperties":false},"maxItems":50}},"required":["text"],"additionalProperties":false},"OmnibarBatchResponseData":{"type":"object","properties":{"total":{"type":"integer"},"results":{"type":"array","items":{"$ref":"#/components/schemas/OmnibarParseResponseData"}}},"required":["total","results"]},"OmnibarBatchRequest":{"type":"object","properties":{"inputs":{"type":"array","items":{"type":"string","minLength":1,"maxLength":2000},"minItems":1,"maxItems":50,"example":["spent €14.50 on lunch","actually make it €18.50","15% tip on 84"],"description":"Ordered list of 1–50 commands parsed sequentially with automatic stateless 'ans' and 'patch_last' chaining."},"now":{"type":"string","maxLength":64,"example":"2026-11-22T12:00:00Z","description":"Optional ISO-8601 reference timestamp for deterministic date/time calculations (defaults to current UTC time)."},"timezone":{"type":"string","maxLength":64,"example":"Europe/Berlin","description":"Optional IANA timezone for resolving relative dates such as 'today', 'tomorrow', or 'yesterday' (default 'UTC')."},"default_currency":{"type":"string","pattern":"^[A-Za-z]{3}$","example":"EUR","description":"Optional 3-letter ISO-4217 fallback currency code (39 global currencies supported) when input omits a currency symbol."},"locale":{"type":"string","enum":["en","hu","de","es","fr","it","pt","pl","nl","sv","tr","ja","zh"],"example":"hu","description":"Optional language hint across 13 supported locales (en, hu, de, es, fr, it, pt, pl, nl, sv, tr, ja, zh) for diacritic-insensitive polyglot parsing."},"last_answer":{"type":"number","example":220,"description":"Optional previous numeric calculator answer for stateless 'ans' chaining (e.g. 'ans * 2')."},"user_weight_kg":{"type":"number","minimum":30,"maximum":250,"example":75,"description":"Optional user bodyweight in kilograms for MET calories-burned estimates on workout & step logs (default 70)."},"fx_rates":{"type":"object","additionalProperties":{"type":"number","minimum":0,"exclusiveMinimum":true},"description":"Optional custom FX rates (value of 1 currency unit in USD) merged over the built-in 39-currency reference table."},"domains":{"type":"array","items":{"type":"string","enum":["tasks","money","body","calc","query","knowledge","media","workspace","navigation","ai"]},"minItems":1,"maxItems":10,"example":["tasks","money","body","calc"],"description":"Optional allowlist of enabled intent domains. Intents outside this list gracefully fall back to 'task' or 'ai_ask'."},"projects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"name":{"type":"string","minLength":1,"maxLength":80},"archived":{"type":"boolean"}},"required":["id","name"],"additionalProperties":false},"maxItems":50,"description":"Optional list of project references for '#project' resolution in tasks and expenses."},"custom_routes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"title":{"type":"string","minLength":1,"maxLength":80},"space":{"type":"string","maxLength":40},"subTab":{"type":"string","maxLength":40},"keywords":{"type":"array","items":{"type":"string","maxLength":40},"maxItems":20}},"required":["id","title"],"additionalProperties":false},"maxItems":100,"description":"Optional caller-defined navigation routes matched by the 'navigate' intent."},"macros":{"type":"object","additionalProperties":{"type":"string","maxLength":240},"description":"Optional user-defined alias map (trigger -> expansion) applied before parsing."},"wake_words":{"type":"array","items":{"type":"string","minLength":2,"maxLength":32},"maxItems":10,"description":"Optional assistant wake words stripped from conversational prefixes."},"snapshot":{"type":"object","properties":{"waterTodayMl":{"type":"number","minimum":0,"maximum":50000},"waterTargetMl":{"type":"number","minimum":0,"maximum":50000},"caloriesToday":{"type":"number","minimum":0,"maximum":50000},"proteinTodayGrams":{"type":"number","minimum":0,"maximum":2000},"sleepLastHours":{"type":"number","minimum":0,"maximum":24},"sleepLastQuality":{"type":"number","minimum":1,"maximum":5},"workoutsToday":{"type":"integer","minimum":0,"maximum":50},"workoutsTotal":{"type":"integer","minimum":0,"maximum":100000},"monthExpenseCents":{"type":"number","minimum":0,"maximum":1000000000000},"monthIncomeCents":{"type":"number","minimum":0,"maximum":1000000000000},"todayExpenseCents":{"type":"number","minimum":0,"maximum":1000000000000},"monthlySubscriptionsCents":{"type":"number","minimum":0,"maximum":1000000000000},"activeSubscriptionsCount":{"type":"integer","minimum":0,"maximum":1000},"tasksDueToday":{"type":"integer","minimum":0,"maximum":10000},"tasksOverdue":{"type":"integer","minimum":0,"maximum":10000},"tasksOpenTotal":{"type":"integer","minimum":0,"maximum":100000},"habitsDoneToday":{"type":"integer","minimum":0,"maximum":500},"habitsTotal":{"type":"integer","minimum":0,"maximum":500},"topHabitStreak":{"type":"integer","minimum":0,"maximum":100000},"focusMinutesToday":{"type":"number","minimum":0,"maximum":1440},"focusSessionsToday":{"type":"integer","minimum":0,"maximum":500},"dueFlashcardsCount":{"type":"integer","minimum":0,"maximum":100000},"readingBooksCount":{"type":"integer","minimum":0,"maximum":10000},"currentBookTitle":{"type":"string","maxLength":180},"activeJobsCount":{"type":"integer","minimum":0,"maximum":10000},"activeGoalsCount":{"type":"integer","minimum":0,"maximum":10000},"notesCount":{"type":"integer","minimum":0,"maximum":100000},"weekExpenseCents":{"type":"number","minimum":0,"maximum":1000000000000},"waterYesterdayMl":{"type":"number","minimum":0,"maximum":50000},"avgSleepHours":{"type":"number","minimum":0,"maximum":24},"topExpenseCategories":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string","maxLength":64},"cents":{"type":"number"}},"required":["category","cents"],"additionalProperties":false},"maxItems":20},"openTaskTitles":{"type":"array","items":{"type":"string","maxLength":160},"maxItems":100},"bookTitles":{"type":"array","items":{"type":"string","maxLength":160},"maxItems":100},"contactNames":{"type":"array","items":{"type":"string","maxLength":120},"maxItems":100},"jobCompanies":{"type":"array","items":{"type":"string","maxLength":120},"maxItems":100},"goalTitles":{"type":"array","items":{"type":"string","maxLength":160},"maxItems":100},"habitNames":{"type":"array","items":{"type":"string","maxLength":120},"maxItems":100}},"additionalProperties":false,"description":"Optional workspace metrics & entity names (contacts, open tasks, books, habits, goals, jobs) for offline Q&A and attendee matching."},"previous_intent":{"type":"object","additionalProperties":{},"description":"Optional stateless previous intent object returned from an earlier /v1/omnibar/parse call, enabling 'patch_last' follow-up corrections (e.g. 'actually make it 3pm')."},"custom_foods":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"aliases":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":12},"kcal_per_unit":{"type":"number","minimum":0,"maximum":5000},"protein_per_unit":{"type":"number","minimum":0,"maximum":500},"carbs_per_unit":{"type":"number","minimum":0,"maximum":500,"default":0},"fat_per_unit":{"type":"number","minimum":0,"maximum":500,"default":0},"saturated_fat_per_unit":{"type":"number","minimum":0,"maximum":200,"default":0},"fiber_per_unit":{"type":"number","minimum":0,"maximum":200,"default":0},"sugar_per_unit":{"type":"number","minimum":0,"maximum":500,"default":0},"sodium_mg_per_unit":{"type":"number","minimum":0,"maximum":20000,"default":0},"potassium_mg_per_unit":{"type":"number","minimum":0,"maximum":20000,"default":0},"cholesterol_mg_per_unit":{"type":"number","minimum":0,"maximum":5000,"default":0},"grams_per_unit":{"type":"number","minimum":1,"maximum":5000,"default":100},"unit_label":{"type":"string","minLength":1,"maxLength":32,"default":"serving"},"caffeine_mg_per_unit":{"type":"number","minimum":0,"maximum":2000},"alcohol_g_per_unit":{"type":"number","minimum":0,"maximum":200},"allergens":{"type":"array","items":{"type":"string","enum":["eggs","dairy","gluten","fish","shellfish","nuts","peanuts","soy","sesame"]},"maxItems":9},"vegan":{"type":"boolean"},"vegetarian":{"type":"boolean"},"gluten_free":{"type":"boolean"},"dairy_free":{"type":"boolean"}},"required":["name","kcal_per_unit","protein_per_unit"],"additionalProperties":false},"maxItems":50,"description":"Optional per-request custom or branded foods merged ahead of the built-in 294-food USDA v2 database."},"custom_slash_commands":{"type":"array","items":{"type":"object","properties":{"command":{"type":"string","minLength":1,"maxLength":40},"expansion":{"type":"string","maxLength":160},"hint":{"type":"string","maxLength":160},"domain":{"type":"string","enum":["tasks","money","body","calc","query","knowledge","media","workspace","navigation","ai"]}},"required":["command"],"additionalProperties":false},"maxItems":50,"description":"Optional per-request custom slash commands normalized before parsing (e.g. '/jira' -> 'task: [JIRA] ')."},"allow_compound":{"type":"boolean","default":true,"example":true,"description":"When true (default), splits chained multi-action statements and multi-line pasted checklists."},"include_tokens":{"type":"boolean","default":false,"example":true,"description":"Include semantic syntax-highlighting token spans in the response."},"include_spans":{"type":"boolean","default":false,"example":true,"description":"Include exact UTF-16 character-offset entity spans guaranteed to match text.slice(start, end) === span.text."},"include_alternatives":{"type":"boolean","default":false,"example":false,"description":"Include secondary disambiguation intents when input phrasing is ambiguous."},"include_sentiment":{"type":"boolean","default":false,"example":true,"description":"Include offline polarity, mood, and urgency analysis."},"include_ics":{"type":"boolean","default":false,"example":false,"description":"When true and the parsed intent is a 'task', emits an RFC 5545 VCALENDAR/VEVENT/VALARM .ics string."}},"required":["inputs"],"additionalProperties":false},"OmnibarIntentsCatalogResponse":{"type":"object","properties":{"total_intents":{"type":"integer"},"domains":{"type":"array","items":{"type":"string"}},"intents":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"domain":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}},"required":["kind","domain","description","examples"]}}},"required":["total_intents","domains","intents"]},"ResponseMeta":{"type":"object","required":["request_id"],"properties":{"request_id":{"type":"string","format":"uuid"},"ms":{"type":"integer","minimum":0},"version":{"type":"string","example":"1.0.57"},"ignored_fields":{"type":"array","items":{"type":"string"}}}},"ErrorEnvelope":{"type":"object","required":["ok","error","meta"],"properties":{"ok":{"type":"boolean","enum":[false]},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","example":"invalid_input"},"message":{"type":"string","example":"Request body failed validation"}}},"meta":{"$ref":"#/components/schemas/ResponseMeta"}}}}},"paths":{"/v1/omnibar/parse":{"post":{"tags":["43_OMNIBAR_NLP"],"summary":"Parse natural-language commands into 46 structured intents with confidence, needs_llm routing, exact entity spans, 13-locale polyglot, optional RFC 5545 .ics export, tokens, alternatives, and sentiment","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OmnibarParseRequest"},"example":{"text":"spent €14.50 on lunch yesterday","now":"2026-11-22T12:00:00Z","timezone":"Europe/Berlin","include_tokens":true,"include_spans":true,"include_sentiment":true}}}},"responses":{"200":{"description":"Structured intent, confidence score, entity spans, and LLM routing metadata","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/OmnibarParseResponseData"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"required":["ok","data","meta"]}}}},"400":{"description":"Invalid input or malformed JSON request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing or invalid authentication credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Request payload exceeds subscribed plan byte cap","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/omnibar/suggest":{"post":{"tags":["43_OMNIBAR_NLP"],"summary":"Generate sub-0.2 ms ghost-text suffix and ranked command-bar autocomplete completions across slash commands, 294 USDA foods, exercises, 120+ cities, #projects, custom foods, and workspace entities","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OmnibarSuggestRequest"},"example":{"text":"ate sal","limit":6}}}},"responses":{"200":{"description":"Ghost-text suffix and ranked completion suggestions","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/OmnibarSuggestResponseData"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"required":["ok","data","meta"]}}}},"400":{"description":"Invalid input or malformed JSON request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing or invalid authentication credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Request payload exceeds subscribed plan byte cap","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/omnibar/batch":{"post":{"tags":["43_OMNIBAR_NLP"],"summary":"Parse up to 50 ordered commands sequentially in a single stateless call with automatic calculator 'ans' and follow-up 'patch_last' chaining","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OmnibarBatchRequest"},"example":{"inputs":["spent €14.50 on lunch","actually make it €18.50","15% tip on 84"],"now":"2026-11-22T12:00:00Z","timezone":"Europe/Berlin"}}}},"responses":{"200":{"description":"Ordered array of parsed intent results","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/OmnibarBatchResponseData"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"required":["ok","data","meta"]}}}},"400":{"description":"Invalid input or malformed JSON request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing or invalid authentication credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Request payload exceeds subscribed plan byte cap","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/omnibar/intents":{"get":{"tags":["43_OMNIBAR_NLP"],"summary":"List all 46 supported Omnibar NLP intent schemas, domains, and example utterances","responses":{"200":{"description":"Supported intent catalog","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/OmnibarIntentsCatalogResponse"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"required":["ok","data","meta"]}}}},"400":{"description":"Invalid input or malformed JSON request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing or invalid authentication credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Request payload exceeds subscribed plan byte cap","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}}}