@arbidocs/client 0.5.128 → 0.5.130

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -2495,6 +2495,26 @@ interface paths {
2495
2495
  patch?: never;
2496
2496
  trace?: never;
2497
2497
  };
2498
+ '/v1/document/{document_ext_id}/versions/{n}/restore': {
2499
+ parameters: {
2500
+ query?: never;
2501
+ header?: never;
2502
+ path?: never;
2503
+ cookie?: never;
2504
+ };
2505
+ get?: never;
2506
+ put?: never;
2507
+ /**
2508
+ * Restore Document Version
2509
+ * @description Copy a snapshot into a new current version, retaining history and rejecting stale restores.
2510
+ */
2511
+ post: operations['restore_document_version'];
2512
+ delete?: never;
2513
+ options?: never;
2514
+ head?: never;
2515
+ patch?: never;
2516
+ trace?: never;
2517
+ };
2498
2518
  '/v1/document/{document_ext_id}/versions/{n}/keep': {
2499
2519
  parameters: {
2500
2520
  query?: never;
@@ -5019,6 +5039,112 @@ interface paths {
5019
5039
  patch?: never;
5020
5040
  trace?: never;
5021
5041
  };
5042
+ '/v1/workspace-assistant/brief': {
5043
+ parameters: {
5044
+ query?: never;
5045
+ header?: never;
5046
+ path?: never;
5047
+ cookie?: never;
5048
+ };
5049
+ /**
5050
+ * Get Brief
5051
+ * @description Your standing instructions for the workspace's Assistant (empty when you have written none).
5052
+ */
5053
+ get: operations['get_assistant_brief'];
5054
+ /**
5055
+ * Update Brief
5056
+ * @description Write (or replace) your standing instructions, switch the Assistant on or off, and set its daily cap.
5057
+ */
5058
+ put: operations['update_assistant_brief'];
5059
+ post?: never;
5060
+ delete?: never;
5061
+ options?: never;
5062
+ head?: never;
5063
+ patch?: never;
5064
+ trace?: never;
5065
+ };
5066
+ '/v1/workspace-assistant/status': {
5067
+ parameters: {
5068
+ query?: never;
5069
+ header?: never;
5070
+ path?: never;
5071
+ cookie?: never;
5072
+ };
5073
+ /**
5074
+ * Get Status
5075
+ * @description What your Assistant is waiting for in the workspace and when it will start: the rule of
5076
+ * ``worker.claim_arrivals`` (a quiet minute, nothing still processing, at most ``MAX_WAIT``), as times.
5077
+ */
5078
+ get: operations['get_assistant_status'];
5079
+ put?: never;
5080
+ post?: never;
5081
+ delete?: never;
5082
+ options?: never;
5083
+ head?: never;
5084
+ patch?: never;
5085
+ trace?: never;
5086
+ };
5087
+ '/v1/workspace-assistant/arrivals': {
5088
+ parameters: {
5089
+ query?: never;
5090
+ header?: never;
5091
+ path?: never;
5092
+ cookie?: never;
5093
+ };
5094
+ /**
5095
+ * List Arrivals
5096
+ * @description What arrived for your Assistant in the workspace and what it did, newest first.
5097
+ */
5098
+ get: operations['list_assistant_arrivals'];
5099
+ put?: never;
5100
+ post?: never;
5101
+ delete?: never;
5102
+ options?: never;
5103
+ head?: never;
5104
+ patch?: never;
5105
+ trace?: never;
5106
+ };
5107
+ '/v1/workspace-assistant/arrivals/{arrival_ext_id}/wrong': {
5108
+ parameters: {
5109
+ query?: never;
5110
+ header?: never;
5111
+ path?: never;
5112
+ cookie?: never;
5113
+ };
5114
+ get?: never;
5115
+ put?: never;
5116
+ /**
5117
+ * Mark Wrong
5118
+ * @description Flag a reaction as wrong (so the person can see what to change in the brief).
5119
+ */
5120
+ post: operations['mark_arrival_wrong'];
5121
+ delete?: never;
5122
+ options?: never;
5123
+ head?: never;
5124
+ patch?: never;
5125
+ trace?: never;
5126
+ };
5127
+ '/v1/workspace-assistant/arrivals/{arrival_ext_id}/message-drafts/{index}/sent': {
5128
+ parameters: {
5129
+ query?: never;
5130
+ header?: never;
5131
+ path?: never;
5132
+ cookie?: never;
5133
+ };
5134
+ get?: never;
5135
+ put?: never;
5136
+ /**
5137
+ * Mark Message Draft Sent
5138
+ * @description Record that you sent a message the Assistant drafted (from your browser: chats are end-to-end encrypted), so
5139
+ * it is not offered again. Every arrival of the reaction carries the draft: it is marked on all of them.
5140
+ */
5141
+ post: operations['mark_message_draft_sent'];
5142
+ delete?: never;
5143
+ options?: never;
5144
+ head?: never;
5145
+ patch?: never;
5146
+ trace?: never;
5147
+ };
5022
5148
  '/v1/notifications/ws-schemas': {
5023
5149
  parameters: {
5024
5150
  query?: never;
@@ -9594,6 +9720,12 @@ interface components {
9594
9720
  * @default false
9595
9721
  */
9596
9722
  WORKSPACE_TOOLS_ENABLED: boolean;
9723
+ /**
9724
+ * Workflow Tools Enabled
9725
+ * @description Let the agent create workflows (create_workflow) in the active workspace, as the user, when asked in a thread. Scheduled workflows still need the owner's access grant before they run.
9726
+ * @default true
9727
+ */
9728
+ WORKFLOW_TOOLS_ENABLED: boolean;
9597
9729
  /**
9598
9730
  * Remote Control Enabled
9599
9731
  * @description Enable the control_ui tool so the agent can drive the user's frontend with a guided cursor (click/type on their screen), gated by the user's consent. Pushes a remote_control WebSocket message to the user's session. Off by default.
@@ -9870,6 +10002,12 @@ interface components {
9870
10002
  * @default false
9871
10003
  */
9872
10004
  WORKSPACE_TOOLS_ENABLED: boolean;
10005
+ /**
10006
+ * Workflow Tools Enabled
10007
+ * @description Let the agent create workflows (create_workflow) in the active workspace, as the user, when asked in a thread. Scheduled workflows still need the owner's access grant before they run.
10008
+ * @default true
10009
+ */
10010
+ WORKFLOW_TOOLS_ENABLED: boolean;
9873
10011
  /**
9874
10012
  * Remote Control Enabled
9875
10013
  * @description Enable the control_ui tool so the agent can drive the user's frontend with a guided cursor (click/type on their screen), gated by the user's consent. Pushes a remote_control WebSocket message to the user's session. Off by default.
@@ -9949,6 +10087,7 @@ interface components {
9949
10087
  * "SKILL_CREATION": false,
9950
10088
  * "WORKSPACE_SETUP": false,
9951
10089
  * "WORKSPACE_TOOLS_ENABLED": false,
10090
+ * "WORKFLOW_TOOLS_ENABLED": true,
9952
10091
  * "REMOTE_CONTROL_ENABLED": false,
9953
10092
  * "GOALS_ENABLED": false,
9954
10093
  * "GOAL_MAX_OUTER_LOOPS": 6,
@@ -9976,7 +10115,7 @@ interface components {
9976
10115
  * @default {
9977
10116
  * "API_TYPE": "remote",
9978
10117
  * "ENABLE_THINKING": false,
9979
- * "MODEL_NAME": "Fast",
10118
+ * "MODEL_NAME": "dummy",
9980
10119
  * "SYSTEM_INSTRUCTION": "You are ARBI, an AI assistant created by ARBI CITY. Be proactive, helpful and professional.Be concise. Use markdown where it helps readability. Cross-check information across sources before answering. Never fabricate facts. Not all assertions in the sources are factual — some are arguments by a party. Attribute claims to their source, especially where parties disagree.",
9981
10120
  * "MAX_TOKEN_SIZE_TO_ANSWER": 200000,
9982
10121
  * "TEMPERATURE": 0.1,
@@ -9988,7 +10127,7 @@ interface components {
9988
10127
  * @default {
9989
10128
  * "API_TYPE": "remote",
9990
10129
  * "ENABLE_THINKING": false,
9991
- * "MODEL_NAME": "Wise",
10130
+ * "MODEL_NAME": "dummy",
9992
10131
  * "SYSTEM_INSTRUCTION": "You are reviewing a draft answer prepared by a research agent. The draft was written based on summaries, but you now have access to the full source material.\n\nYour task:\n1. Review the draft answer against the source material provided\n2. Verify claims are supported by the sources\n3. Correct any inaccuracies or unsupported statements\n4. Add any important details from the sources that were missed\n5. Maintain formal, objective tone appropriate for professional contexts\n\nIf information is not found in the sources but the draft answer is based on web search results or general knowledge, preserve it and ensure it is clearly labelled as such. Only flag missing source support for claims that purport to come from the documents.\nDo not add inline citation markers - the system handles citations automatically.",
9993
10132
  * "TEMPERATURE": 0.1,
9994
10133
  * "MAX_TOKENS": 0,
@@ -10000,7 +10139,7 @@ interface components {
10000
10139
  * @default {
10001
10140
  * "API_TYPE": "remote",
10002
10141
  * "ENABLE_THINKING": false,
10003
- * "MODEL_NAME": "Fast",
10142
+ * "MODEL_NAME": "dummy",
10004
10143
  * "SYSTEM_INSTRUCTION": "You are a chunk evaluator. Analyze retrieved chunks to determine which are relevant to the user's query and extract key learnings from the RELEVANT chunks only. You must return your response as valid JSON matching the provided schema.",
10005
10144
  * "TEMPERATURE": 0.1,
10006
10145
  * "MAX_TOKENS": 0,
@@ -10015,7 +10154,7 @@ interface components {
10015
10154
  * @default {
10016
10155
  * "API_TYPE": "remote",
10017
10156
  * "ENABLE_THINKING": false,
10018
- * "MODEL_NAME": "Fast",
10157
+ * "MODEL_NAME": "dummy",
10019
10158
  * "SYSTEM_INSTRUCTION": "You are a title generator that creates concise, descriptive titles.\n\nOutput the title as plain text only. Do not use Markdown or any other formatting. Specifically:\n- Do not bold, italicize, or otherwise emphasize any part of the title.\n- Do not include asterisks (*), underscores (_), backticks (`), or other Markdown markers.\n- Do not prefix the title with bullets, dashes (-), or numbered/lettered enumeration (e.g. \"1.\", \"a)\").\n- Do not wrap the title in quotes or brackets.",
10020
10159
  * "MAX_TOKEN_SIZE_TO_ANSWER": 20,
10021
10160
  * "TEMPERATURE": 0.3,
@@ -10027,7 +10166,7 @@ interface components {
10027
10166
  * @default {
10028
10167
  * "API_TYPE": "remote",
10029
10168
  * "ENABLE_THINKING": false,
10030
- * "MODEL_NAME": "Wise",
10169
+ * "MODEL_NAME": "dummy",
10031
10170
  * "SYSTEM_INSTRUCTION": "You are a conversation summariser. Condense the conversation history into a concise summary that preserves:\n- Key decisions and conclusions reached\n- Specific names, dates, numbers, and document references\n- Open questions and unresolved items\n- The user's goals and constraints\n\nWrite in past tense, third person. Be specific, not vague. Do not omit important details in favour of brevity.",
10032
10171
  * "TEMPERATURE": 0.1,
10033
10172
  * "MAX_TOKENS": 0,
@@ -10041,7 +10180,7 @@ interface components {
10041
10180
  * @default {
10042
10181
  * "API_TYPE": "remote",
10043
10182
  * "ENABLE_THINKING": false,
10044
- * "MODEL_NAME": "Fast",
10183
+ * "MODEL_NAME": "dummy",
10045
10184
  * "SYSTEM_INSTRUCTION": "You are a document analysis assistant. Answer questions based on the document content.\n\nYour answers are displayed directly as cell values in a table, so keep every answer as short as possible.\n\nGuidelines:\n- Answer with the value only — never a full sentence. Do not restate the question or add lead-ins such as \"This document is...\" or \"The document describes...\". Good: \"German\". Bad: \"This document is written in German.\"\n- When an answer has multiple values, put each value on its own line: separate values with a newline character. Do not separate them with commas, bullets, dashes, numbering, or by writing them as a sentence.\n- Answer from the document. Reasonable inferences are fine; if the document gives no basis for an answer, the value is null and sources is empty.\n- Follow the format instructions exactly for each answer.\n- Output answers as plain text only. Do not use Markdown or any other formatting: no bold, italics, asterisks (*), underscores (_), backticks (`), bullets, or numbered/lettered enumeration.\n- Passages may be preceded by markers like [p3.2]: not document content. Cite them in \"sources\", never in a value.",
10046
10185
  * "MAX_TOKEN_CONTEXT_TO_ANSWER": 200000,
10047
10186
  * "METADATA_CONTEXT_TOKENS": 12000,
@@ -10103,7 +10242,7 @@ interface components {
10103
10242
  * @default {
10104
10243
  * "API_TYPE": "remote",
10105
10244
  * "ENABLE_THINKING": false,
10106
- * "MODEL_NAME": "Fast",
10245
+ * "MODEL_NAME": "dummy",
10107
10246
  * "SYSTEM_INSTRUCTION": "You are a professional legal translator. Translate each numbered passage into the target language, faithfully and completely: never summarise, shorten, merge, reorder or comment. Keep Markdown structure, numbers, dates, amounts, names, citations and cross-references exactly as written. Use the glossary translation for every glossary term, every time. Context passages are for reading only: never translate or return them.",
10108
10247
  * "TEMPERATURE": 0,
10109
10248
  * "MAX_TOKENS": 0,
@@ -10118,7 +10257,7 @@ interface components {
10118
10257
  * @default {
10119
10258
  * "API_TYPE": "remote",
10120
10259
  * "ENABLE_THINKING": false,
10121
- * "MODEL_NAME": "Wise",
10260
+ * "MODEL_NAME": "dummy",
10122
10261
  * "TEMPERATURE": 0.3,
10123
10262
  * "MAX_TOKENS": 0,
10124
10263
  * "MAX_TOKEN_CONTEXT": 200000,
@@ -10130,7 +10269,7 @@ interface components {
10130
10269
  * @default {
10131
10270
  * "API_TYPE": "remote",
10132
10271
  * "ENABLE_THINKING": true,
10133
- * "MODEL_NAME": "Wise",
10272
+ * "MODEL_NAME": "dummy",
10134
10273
  * "SYSTEM_INSTRUCTION": "You are a research planning assistant. Your job is to analyze a user query and produce a concise, numbered research plan.\n\nYou have access to a workspace of documents.[[if search_inside_documents, read_document, get_table_of_contents: The available tools for executing the plan are:\n- search_inside_documents: Search workspace documents for relevant passages (semantic, keyword, or hybrid). Use digest=true to extract learnings.\n- read_document: Read page ranges or entire documents. Use digest=true to extract learnings with citations.\n- get_table_of_contents: Get document headings with page references]]\n\nConsider:\n- What information is needed to answer the query\n- Which documents are likely relevant based on the document index\n- What search queries and document passages to examine\n- What order of operations will be most efficient\n- Whether parallel searches can be used for different aspects\n\nRespond with ONLY the plan (numbered steps). Do not execute any steps.",
10135
10274
  * "TEMPERATURE": 0.3,
10136
10275
  * "MAX_TOKENS": 0,
@@ -10143,7 +10282,7 @@ interface components {
10143
10282
  * @default {
10144
10283
  * "API_TYPE": "remote",
10145
10284
  * "ENABLE_THINKING": false,
10146
- * "MODEL_NAME": "Fast",
10285
+ * "MODEL_NAME": "dummy",
10147
10286
  * "SYSTEM_INSTRUCTION": "You are a context selector. Given a user's query, conversation history, and a table of available documents, determine the user's goal and select relevant context.\n\n## Instructions\n\n1. **goal**: 1-2 concise sentences describing the user's intent AND your filtering rationale. Explain what documents are needed and why. Examples:\n - \"The user is greeting the assistant. No documents are needed.\"\n - \"The user wants to find force majeure clauses. Only the three contracts are relevant, so I will keep only those.\"\n - \"The user wants a full timeline of the case. Most documents are relevant, so I will drop only the unrelated procedural orders.\"\n - The agent that reads the goal does not see the history indices: refer to an earlier message by what it is (\"the investigation report in the previous answer\"), never by its [N] index.\n\n2. **doc_filter_mode** and **doc_ids**: Select which documents the agent needs.\n - `\"keep\"` mode: `doc_ids` lists the ONLY docs to keep. Everything else is dropped.\n - `\"drop\"` mode: `doc_ids` lists the ONLY docs to drop. Everything else is kept.\n - Pick whichever mode produces the **shorter `doc_ids` list**.\n - Doc IDs are in the **Id** column of the Available Documents table (e.g. `\"doc-abc12345\"`). Copy them **exactly** from the table — do not invent, guess, or modify IDs.\n\n | Scenario | doc_filter_mode | doc_ids |\n |----------|----------------|---------|\n | Need ALL docs | `\"drop\"` | `[]` |\n | Need NO docs | `\"keep\"` | `[]` |\n | Need 3 of 100 docs | `\"keep\"` | `[\"id1\",\"id2\",\"id3\"]` |\n | Drop 3 of 100 docs | `\"drop\"` | `[\"id1\",\"id2\",\"id3\"]` |\n\n3. **chat_range_start** and **chat_range_end**: 0-based inclusive range of earlier history messages that provide relevant context. The last 3 messages are always included automatically. Set both to -1 if no earlier history is needed.\n\n## Rules\n\n- **Never repeat a doc ID.** Each ID must appear at most once.\n- Before writing `doc_ids`, count how many you would keep vs drop, then pick the shorter list.\n- Greetings or meta-questions about the assistant (e.g. \"hello\", \"who are you?\", \"what can you do?\"): the agent does NOT need any documents → `\"keep\"` with `[]`.\n- Ambiguous references like \"the document\" or \"this contract\" without specifying which: keep all → `\"drop\"` with `[]`.\n- For follow-up questions, include history messages that establish the topic.\n- Always return valid JSON matching the schema.",
10148
10287
  * "TEMPERATURE": 0,
10149
10288
  * "MAX_TOKENS": 0
@@ -10154,7 +10293,7 @@ interface components {
10154
10293
  * @default {
10155
10294
  * "API_TYPE": "remote",
10156
10295
  * "ENABLE_THINKING": false,
10157
- * "MODEL_NAME": "Fast",
10296
+ * "MODEL_NAME": "dummy",
10158
10297
  * "TEMPERATURE": 0.1,
10159
10298
  * "MAX_TOKENS": 0,
10160
10299
  * "MAX_PAGES_PER_CALL": 5,
@@ -10175,7 +10314,7 @@ interface components {
10175
10314
  * @default {
10176
10315
  * "API_TYPE": "remote",
10177
10316
  * "ENABLE_THINKING": true,
10178
- * "MODEL_NAME": "Premium",
10317
+ * "MODEL_NAME": "",
10179
10318
  * "SYSTEM_INSTRUCTION": "You are a code execution agent. You write and run code to accomplish tasks.\n\nYou have access to an execute_code tool that runs code in a sandboxed Docker container.\n\nThe sandbox has:\n- Python 3.12 with numpy, pandas, matplotlib, requests, beautifulsoup4,\n httpx, pillow, sympy, pyyaml (plus uv for installing more)\n- Node.js 22 with TypeScript (ts-node) and npm\n- Bash with git, curl, wget, jq, sqlite3, build-essential\n- Network access (can pip/npm install additional packages)\n\nInstructions:\n1. Write clean, correct code to accomplish the user's task\n2. Always call execute_code to run your code — never guess the output\n3. If execution errors, analyze the traceback, fix the code, and retry\n4. Once you have the correct output, respond with ONLY the final result\n\nKeep code simple and direct. Prefer Python unless the task specifically requires another language.",
10180
10319
  * "TEMPERATURE": 0.2,
10181
10320
  * "MAX_TOKENS": 0
@@ -10245,7 +10384,7 @@ interface components {
10245
10384
  * },
10246
10385
  * "MAX_CONCURRENT_REQUESTS": 256,
10247
10386
  * "MODEL_NAME": "Qwen/Qwen3-Reranker-0.6B",
10248
- * "API_TYPE": "remote",
10387
+ * "API_TYPE": "local",
10249
10388
  * "RETRIEVAL_INSTRUCTION": "Judge whether the passage contains the specific facts, figures, names, or references mentioned in the query. Only answer yes if the passage directly contains these details"
10250
10389
  * }
10251
10390
  */
@@ -10268,7 +10407,7 @@ interface components {
10268
10407
  /**
10269
10408
  * @default {
10270
10409
  * "MODEL_NAME": "Qwen/Qwen3-Embedding-0.6B",
10271
- * "API_TYPE": "remote",
10410
+ * "API_TYPE": "local",
10272
10411
  * "BATCH_SIZE": 128,
10273
10412
  * "MAX_CONCURRENT_REQUESTS": 256,
10274
10413
  * "DOCUMENT_PREFIX": "",
@@ -10477,6 +10616,61 @@ interface components {
10477
10616
  */
10478
10617
  dropped_doc_ext_ids?: string[] | null;
10479
10618
  };
10619
+ /** ArrivalResponse */
10620
+ ArrivalResponse: {
10621
+ /** External Id */
10622
+ external_id: string;
10623
+ /** Doc Ext Id */
10624
+ doc_ext_id: string;
10625
+ /** Version */
10626
+ version: number;
10627
+ /** Name */
10628
+ name?: string | null;
10629
+ /** Source */
10630
+ source: string;
10631
+ /** Sender */
10632
+ sender?: string | null;
10633
+ /** Is Backfill */
10634
+ is_backfill: boolean;
10635
+ /** Status */
10636
+ status: string;
10637
+ /** Outcome */
10638
+ outcome?: string | null;
10639
+ /** Instruction */
10640
+ instruction?: string | null;
10641
+ /** Reason */
10642
+ reason?: string | null;
10643
+ /** Conversation Ext Id */
10644
+ conversation_ext_id?: string | null;
10645
+ /** Response Id */
10646
+ response_id?: string | null;
10647
+ /**
10648
+ * Marked Wrong
10649
+ * @default false
10650
+ */
10651
+ marked_wrong: boolean;
10652
+ /** Last Error */
10653
+ last_error?: string | null;
10654
+ /** Email Drafts */
10655
+ email_drafts?: components['schemas']['EmailDraftResponse'][];
10656
+ /** Message Drafts */
10657
+ message_drafts?: components['schemas']['MessageDraftResponse'][];
10658
+ plan?: components['schemas']['PlanResponse'] | null;
10659
+ /** Plan Changes */
10660
+ plan_changes?: string[];
10661
+ /**
10662
+ * Working
10663
+ * @default false
10664
+ */
10665
+ working: boolean;
10666
+ /**
10667
+ * Created At
10668
+ * Format: date-time
10669
+ */
10670
+ created_at: string;
10671
+ /** Handled At */
10672
+ handled_at?: string | null;
10673
+ };
10480
10674
  /**
10481
10675
  * ArtifactEvent
10482
10676
  * @description A generated artifact (document/draft) for the artifact panel.
@@ -10598,6 +10792,55 @@ interface components {
10598
10792
  conversation_ext_id: string;
10599
10793
  assistant_mode: components['schemas']['AssistantMode'];
10600
10794
  };
10795
+ /**
10796
+ * AssistantStatusResponse
10797
+ * @description What the Assistant is doing in the workspace now, and when it will start (``worker.claim_arrivals``' rule).
10798
+ *
10799
+ * ``state``: ``off`` (no active brief), ``idle`` (nothing waiting), ``waiting`` (arrivals wait for the workspace
10800
+ * to settle), ``working`` (a turn is reacting), ``retrying`` (a failed attempt waits for its retry).
10801
+ */
10802
+ AssistantStatusResponse: {
10803
+ /** State */
10804
+ state: string;
10805
+ /**
10806
+ * Pending
10807
+ * @default 0
10808
+ */
10809
+ pending: number;
10810
+ /**
10811
+ * Working
10812
+ * @default 0
10813
+ */
10814
+ working: number;
10815
+ /** Processing */
10816
+ processing?: components['schemas']['WaitingDocResponse'][];
10817
+ /**
10818
+ * Processing Hidden
10819
+ * @default 0
10820
+ */
10821
+ processing_hidden: number;
10822
+ /** Quiet Until */
10823
+ quiet_until?: string | null;
10824
+ /** Max Wait Until */
10825
+ max_wait_until?: string | null;
10826
+ /** Retry At */
10827
+ retry_at?: string | null;
10828
+ /** Conversation Ext Id */
10829
+ conversation_ext_id?: string | null;
10830
+ /** Starts At */
10831
+ starts_at?: string | null;
10832
+ /**
10833
+ * Now
10834
+ * Format: date-time
10835
+ */
10836
+ now: string;
10837
+ /** Quiet Seconds */
10838
+ quiet_seconds: number;
10839
+ /** Max Wait Seconds */
10840
+ max_wait_seconds: number;
10841
+ /** Tick Seconds */
10842
+ tick_seconds: number;
10843
+ };
10601
10844
  /** AttachmentRef */
10602
10845
  AttachmentRef: {
10603
10846
  /** Url */
@@ -10979,6 +11222,44 @@ interface components {
10979
11222
  /** Sealed Api Key */
10980
11223
  sealed_api_key: string;
10981
11224
  };
11225
+ /** BriefResponse */
11226
+ BriefResponse: {
11227
+ /** Brief Ext Id */
11228
+ brief_ext_id?: string | null;
11229
+ /** Workspace Ext Id */
11230
+ workspace_ext_id: string;
11231
+ /**
11232
+ * Text
11233
+ * @default
11234
+ */
11235
+ text: string;
11236
+ /**
11237
+ * Active
11238
+ * @default false
11239
+ */
11240
+ active: boolean;
11241
+ /**
11242
+ * Daily Cap
11243
+ * @default 50
11244
+ */
11245
+ daily_cap: number;
11246
+ /**
11247
+ * Version
11248
+ * @default 0
11249
+ */
11250
+ version: number;
11251
+ /** Agent Ext Id */
11252
+ agent_ext_id?: string | null;
11253
+ /**
11254
+ * Agent Has Access
11255
+ * @default false
11256
+ */
11257
+ agent_has_access: boolean;
11258
+ /** Inbox Conversation Ext Id */
11259
+ inbox_conversation_ext_id?: string | null;
11260
+ /** Updated At */
11261
+ updated_at?: string | null;
11262
+ };
10982
11263
  /** BusyBlock */
10983
11264
  BusyBlock: {
10984
11265
  /**
@@ -12724,7 +13005,7 @@ interface components {
12724
13005
  /**
12725
13006
  * Model Name
12726
13007
  * @description Model for code generation. Should be a strong coding model.
12727
- * @default Premium
13008
+ * @default
12728
13009
  */
12729
13010
  MODEL_NAME: string;
12730
13011
  /**
@@ -15175,7 +15456,7 @@ interface components {
15175
15456
  * @default upload
15176
15457
  * @enum {string}
15177
15458
  */
15178
- reason: 'upload' | 'edit' | 'signed' | 'sync';
15459
+ reason: 'upload' | 'edit' | 'signed' | 'sync' | 'restore';
15179
15460
  /** File Name */
15180
15461
  file_name?: string | null;
15181
15462
  /** File Type */
@@ -15238,7 +15519,7 @@ interface components {
15238
15519
  /**
15239
15520
  * Model Name
15240
15521
  * @description The name of the non-reasoning model to be used.
15241
- * @default Fast
15522
+ * @default dummy
15242
15523
  */
15243
15524
  MODEL_NAME: string;
15244
15525
  /**
@@ -15516,6 +15797,17 @@ interface components {
15516
15797
  /** Attachments */
15517
15798
  attachments?: (string | components['schemas']['StepDocumentRef'])[];
15518
15799
  };
15800
+ /** EmailDraftResponse */
15801
+ EmailDraftResponse: {
15802
+ /** Provider */
15803
+ provider: string;
15804
+ /** Draft Id */
15805
+ draft_id: string;
15806
+ /** Url */
15807
+ url?: string | null;
15808
+ /** Subject */
15809
+ subject?: string | null;
15810
+ };
15519
15811
  /**
15520
15812
  * EmailNotificationSettings
15521
15813
  * @description Per-category email notification preferences. All default on; a master
@@ -15582,7 +15874,7 @@ interface components {
15582
15874
  /**
15583
15875
  * Api Type
15584
15876
  * @description The inference type (local or remote).
15585
- * @default remote
15877
+ * @default local
15586
15878
  * @enum {string}
15587
15879
  */
15588
15880
  API_TYPE: 'local' | 'remote';
@@ -15705,7 +15997,7 @@ interface components {
15705
15997
  /**
15706
15998
  * Model Name
15707
15999
  * @description The name of the non-reasoning model to be used.
15708
- * @default Fast
16000
+ * @default dummy
15709
16001
  */
15710
16002
  MODEL_NAME: string;
15711
16003
  /**
@@ -16310,7 +16602,7 @@ interface components {
16310
16602
  /**
16311
16603
  * Model Name
16312
16604
  * @description The name of the non-reasoning model to be used.
16313
- * @default Fast
16605
+ * @default dummy
16314
16606
  */
16315
16607
  MODEL_NAME: string;
16316
16608
  /**
@@ -18164,7 +18456,7 @@ interface components {
18164
18456
  /**
18165
18457
  * Model Name
18166
18458
  * @description The model for note consolidation. Defaults to reasoning model.
18167
- * @default Wise
18459
+ * @default dummy
18168
18460
  */
18169
18461
  MODEL_NAME: string;
18170
18462
  /**
@@ -18237,6 +18529,23 @@ interface components {
18237
18529
  */
18238
18530
  detail: string;
18239
18531
  };
18532
+ /**
18533
+ * MessageDraftResponse
18534
+ * @description A chat message the Assistant drafted to a member: the owner sends it (chats are end-to-end encrypted).
18535
+ */
18536
+ MessageDraftResponse: {
18537
+ /** To User Ext Id */
18538
+ to_user_ext_id: string;
18539
+ /** To Name */
18540
+ to_name?: string | null;
18541
+ /**
18542
+ * Text
18543
+ * @default
18544
+ */
18545
+ text: string;
18546
+ /** Sent At */
18547
+ sent_at?: string | null;
18548
+ };
18240
18549
  /** MessageInput */
18241
18550
  MessageInput: {
18242
18551
  /** Agent Ext Id */
@@ -18867,7 +19176,7 @@ interface components {
18867
19176
  * Type is self-descriptive, no need to parse content field.
18868
19177
  * @enum {string}
18869
19178
  */
18870
- NotificationType: 'workspaceuser_added_owner' | 'workspaceuser_added_collaborator' | 'workspaceuser_added_guest' | 'workspaceuser_removed' | 'workspaceuser_updated_owner' | 'workspaceuser_updated_collaborator' | 'workspaceuser_updated_guest' | 'contact_accepted' | 'signup_reward' | 'referral_reward' | 'box_seat_refused' | 'deployment_user_invited' | 'deployment_user_registered' | 'support_ticket_received' | 'support_ticket_reviewed' | 'support_ticket_resolved' | 'native_mail_received' | 'mail_draft_ready' | 'email_reply' | 'project_quota_warning' | 'project_retention' | 'quota_threshold_50' | 'quota_threshold_90' | 'quota_threshold_100' | 'storage_quota_exceeded' | 'doc_shared' | 'docx_mention' | 'file_shared' | 'signature_requested' | 'signature_completed' | 'signature_declined' | 'workspace_access_request' | 'conversation_ready' | 'conversation_done' | 'conversation_notified' | 'workflow_failed' | 'agent_input_requested' | 'workflow_completed' | 'workflow_signal' | 'step_ready' | 'task_started' | 'task_completed' | 'mailbox_sync_complete' | 'drive_sync_complete' | 'activity' | 'mention' | 'thread_reply' | 'document_activity' | 'document_processed' | 'call_missed' | 'calendar_invite' | 'calendar_update' | 'calendar_cancel' | 'calendar_reply' | 'calendar_counter' | 'calendar_reminder' | 'calendar_share';
19179
+ NotificationType: 'workspaceuser_added_owner' | 'workspaceuser_added_collaborator' | 'workspaceuser_added_guest' | 'workspaceuser_removed' | 'workspaceuser_updated_owner' | 'workspaceuser_updated_collaborator' | 'workspaceuser_updated_guest' | 'contact_accepted' | 'signup_reward' | 'referral_reward' | 'box_seat_refused' | 'deployment_user_invited' | 'deployment_user_registered' | 'support_ticket_received' | 'support_ticket_reviewed' | 'support_ticket_resolved' | 'native_mail_received' | 'mail_draft_ready' | 'email_reply' | 'project_quota_warning' | 'project_retention' | 'quota_threshold_50' | 'quota_threshold_90' | 'quota_threshold_100' | 'storage_quota_exceeded' | 'doc_shared' | 'docx_mention' | 'file_shared' | 'signature_requested' | 'signature_completed' | 'signature_declined' | 'workspace_access_request' | 'conversation_ready' | 'conversation_done' | 'conversation_notified' | 'workflow_failed' | 'agent_input_requested' | 'workflow_completed' | 'workflow_signal' | 'step_ready' | 'task_started' | 'task_completed' | 'mailbox_sync_complete' | 'drive_sync_complete' | 'activity' | 'mention' | 'thread_reply' | 'document_activity' | 'document_processed' | 'mail_document_received' | 'call_missed' | 'calendar_invite' | 'calendar_update' | 'calendar_cancel' | 'calendar_reply' | 'calendar_counter' | 'calendar_reminder' | 'calendar_share';
18871
19180
  /**
18872
19181
  * NotificationUpdate
18873
19182
  * @description Single notification update for bulk PATCH.
@@ -19356,6 +19665,21 @@ interface components {
19356
19665
  /** Next Renewal At */
19357
19666
  next_renewal_at?: number | null;
19358
19667
  };
19668
+ /**
19669
+ * PlanResponse
19670
+ * @description The direction a reaction set before it started (``src/core/assistant/plan.py``).
19671
+ */
19672
+ PlanResponse: {
19673
+ /** Goal */
19674
+ goal: string;
19675
+ /**
19676
+ * Why
19677
+ * @default
19678
+ */
19679
+ why: string;
19680
+ /** Steps */
19681
+ steps?: string[];
19682
+ };
19359
19683
  /**
19360
19684
  * PlanWorkRequest
19361
19685
  * @description Draft a ``TaskPlan`` from a plain objective (the stateless ``/work/plan`` endpoint).
@@ -19396,7 +19720,7 @@ interface components {
19396
19720
  /**
19397
19721
  * Model Name
19398
19722
  * @description The model for plan generation. Defaults to reasoning model.
19399
- * @default Wise
19723
+ * @default dummy
19400
19724
  */
19401
19725
  MODEL_NAME: string;
19402
19726
  /**
@@ -19675,7 +19999,7 @@ interface components {
19675
19999
  default_spend_cap_pence: number;
19676
20000
  /**
19677
20001
  * Spend Cap Step Pence
19678
- * @default 2500
20002
+ * @default 2000
19679
20003
  */
19680
20004
  spend_cap_step_pence: number;
19681
20005
  /**
@@ -19754,7 +20078,7 @@ interface components {
19754
20078
  block_collaborators: number;
19755
20079
  /**
19756
20080
  * Spend Cap Step Pence
19757
- * @default 2500
20081
+ * @default 2000
19758
20082
  */
19759
20083
  spend_cap_step_pence: number;
19760
20084
  /**
@@ -20448,7 +20772,7 @@ interface components {
20448
20772
  /**
20449
20773
  * Model Name
20450
20774
  * @description The model for query answering.
20451
- * @default Fast
20775
+ * @default dummy
20452
20776
  */
20453
20777
  MODEL_NAME: string;
20454
20778
  /**
@@ -20900,7 +21224,7 @@ interface components {
20900
21224
  /**
20901
21225
  * Api Type
20902
21226
  * @description The inference type (local or remote).
20903
- * @default remote
21227
+ * @default local
20904
21228
  * @enum {string}
20905
21229
  */
20906
21230
  API_TYPE: 'local' | 'remote';
@@ -21546,6 +21870,15 @@ interface components {
21546
21870
  /** Total Tokens */
21547
21871
  total_tokens: number;
21548
21872
  };
21873
+ /** RestoredDocumentVersion */
21874
+ RestoredDocumentVersion: {
21875
+ /** Document Ext Id */
21876
+ document_ext_id: string;
21877
+ /** Version */
21878
+ version: number;
21879
+ /** Restored From */
21880
+ restored_from: number;
21881
+ };
21549
21882
  /** RetrievalChunkTool */
21550
21883
  RetrievalChunkTool: {
21551
21884
  /**
@@ -21760,7 +22093,7 @@ interface components {
21760
22093
  /**
21761
22094
  * Model Name
21762
22095
  * @description The model for reviewing agent draft answers. Defaults to reasoning model.
21763
- * @default Wise
22096
+ * @default dummy
21764
22097
  */
21765
22098
  MODEL_NAME: string;
21766
22099
  /**
@@ -23467,7 +23800,7 @@ interface components {
23467
23800
  /**
23468
23801
  * Model Name
23469
23802
  * @description The model for conversation summarisation. Defaults to reasoning model.
23470
- * @default Wise
23803
+ * @default dummy
23471
23804
  */
23472
23805
  MODEL_NAME: string;
23473
23806
  /**
@@ -24168,7 +24501,7 @@ interface components {
24168
24501
  /**
24169
24502
  * Model Name
24170
24503
  * @description The name of the non-reasoning model to be used.
24171
- * @default Fast
24504
+ * @default dummy
24172
24505
  */
24173
24506
  MODEL_NAME: string;
24174
24507
  /**
@@ -24603,7 +24936,7 @@ interface components {
24603
24936
  /**
24604
24937
  * Model Name
24605
24938
  * @description The name of the non-reasoning model to be used.
24606
- * @default Fast
24939
+ * @default dummy
24607
24940
  */
24608
24941
  MODEL_NAME: string;
24609
24942
  /**
@@ -24675,6 +25008,23 @@ interface components {
24675
25008
  /** Picture */
24676
25009
  picture?: string | null;
24677
25010
  };
25011
+ /** UpdateBriefRequest */
25012
+ UpdateBriefRequest: {
25013
+ /** Workspace Ext Id */
25014
+ workspace_ext_id: string;
25015
+ /** Text */
25016
+ text: string;
25017
+ /**
25018
+ * Active
25019
+ * @default true
25020
+ */
25021
+ active: boolean;
25022
+ /**
25023
+ * Daily Cap
25024
+ * @default 50
25025
+ */
25026
+ daily_cap: number;
25027
+ };
24678
25028
  /** UpdateChatRequest */
24679
25029
  UpdateChatRequest: {
24680
25030
  /** Title */
@@ -25599,7 +25949,7 @@ interface components {
25599
25949
  /**
25600
25950
  * Model Name
25601
25951
  * @description The vision-capable model name (must support image inputs).
25602
- * @default Fast
25952
+ * @default dummy
25603
25953
  */
25604
25954
  MODEL_NAME: string;
25605
25955
  /**
@@ -25627,6 +25977,15 @@ interface components {
25627
25977
  */
25628
25978
  IMAGE_MAX_DIMENSION: number;
25629
25979
  };
25980
+ /** WaitingDocResponse */
25981
+ WaitingDocResponse: {
25982
+ /** Doc Ext Id */
25983
+ doc_ext_id: string;
25984
+ /** Name */
25985
+ name?: string | null;
25986
+ /** Status */
25987
+ status: string;
25988
+ };
25630
25989
  /**
25631
25990
  * WebSearchConfig
25632
25991
  * @description Web-search tuning (developer-only). The on/off lives on
@@ -30216,6 +30575,42 @@ interface operations {
30216
30575
  };
30217
30576
  };
30218
30577
  };
30578
+ restore_document_version: {
30579
+ parameters: {
30580
+ query: {
30581
+ expected_current_version: number;
30582
+ /** @description The workspace to act on; defaults to the active workspace */
30583
+ workspace_ext_id?: string | null;
30584
+ };
30585
+ header?: never;
30586
+ path: {
30587
+ document_ext_id: string;
30588
+ n: number;
30589
+ };
30590
+ cookie?: never;
30591
+ };
30592
+ requestBody?: never;
30593
+ responses: {
30594
+ /** @description Successful Response */
30595
+ 200: {
30596
+ headers: {
30597
+ [name: string]: unknown;
30598
+ };
30599
+ content: {
30600
+ 'application/json': components['schemas']['RestoredDocumentVersion'];
30601
+ };
30602
+ };
30603
+ /** @description Validation Error */
30604
+ 422: {
30605
+ headers: {
30606
+ [name: string]: unknown;
30607
+ };
30608
+ content: {
30609
+ 'application/json': components['schemas']['HTTPValidationError'];
30610
+ };
30611
+ };
30612
+ };
30613
+ };
30219
30614
  keep_document_version: {
30220
30615
  parameters: {
30221
30616
  query?: never;
@@ -34460,6 +34855,194 @@ interface operations {
34460
34855
  };
34461
34856
  };
34462
34857
  };
34858
+ get_assistant_brief: {
34859
+ parameters: {
34860
+ query: {
34861
+ workspace_ext_id: string;
34862
+ };
34863
+ header?: never;
34864
+ path?: never;
34865
+ cookie?: never;
34866
+ };
34867
+ requestBody?: never;
34868
+ responses: {
34869
+ /** @description Successful Response */
34870
+ 200: {
34871
+ headers: {
34872
+ [name: string]: unknown;
34873
+ };
34874
+ content: {
34875
+ 'application/json': components['schemas']['BriefResponse'];
34876
+ };
34877
+ };
34878
+ /** @description Validation Error */
34879
+ 422: {
34880
+ headers: {
34881
+ [name: string]: unknown;
34882
+ };
34883
+ content: {
34884
+ 'application/json': components['schemas']['HTTPValidationError'];
34885
+ };
34886
+ };
34887
+ };
34888
+ };
34889
+ update_assistant_brief: {
34890
+ parameters: {
34891
+ query?: never;
34892
+ header?: never;
34893
+ path?: never;
34894
+ cookie?: never;
34895
+ };
34896
+ requestBody: {
34897
+ content: {
34898
+ 'application/json': components['schemas']['UpdateBriefRequest'];
34899
+ };
34900
+ };
34901
+ responses: {
34902
+ /** @description Successful Response */
34903
+ 200: {
34904
+ headers: {
34905
+ [name: string]: unknown;
34906
+ };
34907
+ content: {
34908
+ 'application/json': components['schemas']['BriefResponse'];
34909
+ };
34910
+ };
34911
+ /** @description Validation Error */
34912
+ 422: {
34913
+ headers: {
34914
+ [name: string]: unknown;
34915
+ };
34916
+ content: {
34917
+ 'application/json': components['schemas']['HTTPValidationError'];
34918
+ };
34919
+ };
34920
+ };
34921
+ };
34922
+ get_assistant_status: {
34923
+ parameters: {
34924
+ query: {
34925
+ workspace_ext_id: string;
34926
+ };
34927
+ header?: never;
34928
+ path?: never;
34929
+ cookie?: never;
34930
+ };
34931
+ requestBody?: never;
34932
+ responses: {
34933
+ /** @description Successful Response */
34934
+ 200: {
34935
+ headers: {
34936
+ [name: string]: unknown;
34937
+ };
34938
+ content: {
34939
+ 'application/json': components['schemas']['AssistantStatusResponse'];
34940
+ };
34941
+ };
34942
+ /** @description Validation Error */
34943
+ 422: {
34944
+ headers: {
34945
+ [name: string]: unknown;
34946
+ };
34947
+ content: {
34948
+ 'application/json': components['schemas']['HTTPValidationError'];
34949
+ };
34950
+ };
34951
+ };
34952
+ };
34953
+ list_assistant_arrivals: {
34954
+ parameters: {
34955
+ query: {
34956
+ workspace_ext_id: string;
34957
+ limit?: number;
34958
+ };
34959
+ header?: never;
34960
+ path?: never;
34961
+ cookie?: never;
34962
+ };
34963
+ requestBody?: never;
34964
+ responses: {
34965
+ /** @description Successful Response */
34966
+ 200: {
34967
+ headers: {
34968
+ [name: string]: unknown;
34969
+ };
34970
+ content: {
34971
+ 'application/json': components['schemas']['ArrivalResponse'][];
34972
+ };
34973
+ };
34974
+ /** @description Validation Error */
34975
+ 422: {
34976
+ headers: {
34977
+ [name: string]: unknown;
34978
+ };
34979
+ content: {
34980
+ 'application/json': components['schemas']['HTTPValidationError'];
34981
+ };
34982
+ };
34983
+ };
34984
+ };
34985
+ mark_arrival_wrong: {
34986
+ parameters: {
34987
+ query?: never;
34988
+ header?: never;
34989
+ path: {
34990
+ arrival_ext_id: string;
34991
+ };
34992
+ cookie?: never;
34993
+ };
34994
+ requestBody?: never;
34995
+ responses: {
34996
+ /** @description Successful Response */
34997
+ 200: {
34998
+ headers: {
34999
+ [name: string]: unknown;
35000
+ };
35001
+ content: {
35002
+ 'application/json': components['schemas']['ArrivalResponse'];
35003
+ };
35004
+ };
35005
+ /** @description Validation Error */
35006
+ 422: {
35007
+ headers: {
35008
+ [name: string]: unknown;
35009
+ };
35010
+ content: {
35011
+ 'application/json': components['schemas']['HTTPValidationError'];
35012
+ };
35013
+ };
35014
+ };
35015
+ };
35016
+ mark_message_draft_sent: {
35017
+ parameters: {
35018
+ query?: never;
35019
+ header?: never;
35020
+ path: {
35021
+ arrival_ext_id: string;
35022
+ index: number;
35023
+ };
35024
+ cookie?: never;
35025
+ };
35026
+ requestBody?: never;
35027
+ responses: {
35028
+ /** @description Successful Response */
35029
+ 204: {
35030
+ headers: {
35031
+ [name: string]: unknown;
35032
+ };
35033
+ content?: never;
35034
+ };
35035
+ /** @description Validation Error */
35036
+ 422: {
35037
+ headers: {
35038
+ [name: string]: unknown;
35039
+ };
35040
+ content: {
35041
+ 'application/json': components['schemas']['HTTPValidationError'];
35042
+ };
35043
+ };
35044
+ };
35045
+ };
34463
35046
  get_websocket_schema: {
34464
35047
  parameters: {
34465
35048
  query?: never;