@arbidocs/client 0.3.181 → 0.3.183

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
@@ -1988,6 +1988,30 @@ interface paths {
1988
1988
  patch?: never;
1989
1989
  trace?: never;
1990
1990
  };
1991
+ '/v1/facts/batch': {
1992
+ parameters: {
1993
+ query?: never;
1994
+ header?: never;
1995
+ path?: never;
1996
+ cookie?: never;
1997
+ };
1998
+ get?: never;
1999
+ put?: never;
2000
+ /**
2001
+ * Create Facts Batch Endpoint
2002
+ * @description Create several facts in one transaction — all of them, or none.
2003
+ *
2004
+ * Prefer this to a loop of single creates for an import: tags are resolved once and the facts are
2005
+ * embedded in batches after the commit, rather than one request, one tag lookup and one background
2006
+ * embedding task per fact. Responses come back in request order.
2007
+ */
2008
+ post: operations['create_facts_batch'];
2009
+ delete?: never;
2010
+ options?: never;
2011
+ head?: never;
2012
+ patch?: never;
2013
+ trace?: never;
2014
+ };
1991
2015
  '/v1/facts/list': {
1992
2016
  parameters: {
1993
2017
  query?: never;
@@ -2003,6 +2027,9 @@ interface paths {
2003
2027
  * into the timeline: only dated facts, ordered by when they happened. Each
2004
2028
  * bound is read at its own precision and widened outward, so ``date_to=2019``
2005
2029
  * runs through 31 December rather than stopping on 1 January.
2030
+ *
2031
+ * Narrow with ``tag_ext_id`` (repeatable; a fact must carry all of them) and ``doc_ext_id``, and page
2032
+ * with ``limit``/``offset`` — a large workspace need not be fetched whole.
2006
2033
  */
2007
2034
  get: operations['list_facts'];
2008
2035
  put?: never;
@@ -3401,6 +3428,20 @@ interface components {
3401
3428
  * follow-up call with this set to true for those specific emails actually sends the
3402
3429
  * invite and deposits the pending workspace-share grant. Without this gate, sharing
3403
3430
  * would email and grant future access to a typo'd address with no chance to back out.
3431
+ *
3432
+ * resource_type + resource_ext_id (optional): set when this call came from sharing a
3433
+ * specific document or conversation by email rather than the workspace itself (the
3434
+ * "Share" action on a resource). Every recipient still goes through the normal
3435
+ * add-user flow above (same role, same confirm_invite gate) — this only attaches a
3436
+ * breadcrumb so the invite/notification carries a deep link to the resource instead
3437
+ * of just the workspace, and Contacts.shared_resource_* survives an unregistered
3438
+ * recipient's registration so their first login redirects straight there.
3439
+ *
3440
+ * confirm_share (default False): required when the named resource is currently
3441
+ * private — sharing it externally makes it visible to every workspace member, not
3442
+ * just the recipients, so this mirrors confirm_invite's explicit-opt-in gate. A call
3443
+ * naming a private resource without this set does nothing and reports that a
3444
+ * confirmation is needed; the caller re-calls with it set once the owner confirms.
3404
3445
  */
3405
3446
  AddWorkspaceUsersRequest: {
3406
3447
  /** Emails */
@@ -3415,6 +3456,12 @@ interface components {
3415
3456
  session_pubkey_b64?: string | null;
3416
3457
  /** Confirm Invite */
3417
3458
  confirm_invite?: boolean | null;
3459
+ /** Resource Type */
3460
+ resource_type?: ('document' | 'conversation') | null;
3461
+ /** Resource Ext Id */
3462
+ resource_ext_id?: string | null;
3463
+ /** Confirm Share */
3464
+ confirm_share?: boolean | null;
3418
3465
  };
3419
3466
  /**
3420
3467
  * AgentControlStateEvent
@@ -3563,6 +3610,11 @@ interface components {
3563
3610
  * @description Lifecycle marker for a sub-agent lane: 'running' on the spawn step (carries the child's task in `content`), 'done'/'failed' on its completion. Absent on the child's own intermediate steps. Lets the frontend show each lane's status without inspecting its rows.
3564
3611
  */
3565
3612
  subagent_status?: ('running' | 'done' | 'failed') | null;
3613
+ /**
3614
+ * Task Message Ext Id
3615
+ * @description The persisted branch this sub-agent's run lives in (a role='user' message in the SAME conversation, see subagent_conversation.py) — every delegation persists one (sub_agent, deep_research, run_skill, spawn_coding_agent are all the same underlying mechanism). Lets the frontend jump into the thread via branch navigation instead of only reading the lane.
3616
+ */
3617
+ task_message_ext_id?: string | null;
3566
3618
  /**
3567
3619
  * Step
3568
3620
  * @description Lifecycle step. Absent (None) for tool-call steps, which carry `detail` instead.
@@ -3672,7 +3724,7 @@ interface components {
3672
3724
  RUN_CODE_ENABLED: boolean;
3673
3725
  /**
3674
3726
  * Mcp Tools
3675
- * @description MCP tool names to enable from LiteLLM (e.g. ['read_wiki_contents', 'ask_question']).
3727
+ * @description MCP tool names to enable from LiteLLM (e.g. ['firecrawl_scrape', 'firecrawl_search']).
3676
3728
  * @default []
3677
3729
  */
3678
3730
  MCP_TOOLS: string[];
@@ -3756,7 +3808,7 @@ interface components {
3756
3808
  SKILL_CREATION: boolean;
3757
3809
  /**
3758
3810
  * Workspace Tools Enabled
3759
- * @description Enable native user-action tools so the agent can act as an ARBI user within its active workspace: list_workspaces, upload_document, create_tag and tag_documents. In-process and RLS-native — bounded by the agent's workspace memberships. Off by default.
3811
+ * @description Enable native user-action tools so the agent can act as an ARBI user within its active workspace: list_workspaces, upload_document, list_tags, create_tag and tag_documents. In-process and RLS-native — bounded by the agent's workspace memberships. Off by default.
3760
3812
  * @default false
3761
3813
  */
3762
3814
  WORKSPACE_TOOLS_ENABLED: boolean;
@@ -3945,7 +3997,7 @@ interface components {
3945
3997
  RUN_CODE_ENABLED: boolean;
3946
3998
  /**
3947
3999
  * Mcp Tools
3948
- * @description MCP tool names to enable from LiteLLM (e.g. ['read_wiki_contents', 'ask_question']).
4000
+ * @description MCP tool names to enable from LiteLLM (e.g. ['firecrawl_scrape', 'firecrawl_search']).
3949
4001
  * @default []
3950
4002
  */
3951
4003
  MCP_TOOLS: string[];
@@ -4017,7 +4069,7 @@ interface components {
4017
4069
  SKILLS_ENABLED: boolean;
4018
4070
  /**
4019
4071
  * Workspace Tools Enabled
4020
- * @description Enable native user-action tools so the agent can act as an ARBI user within its active workspace: list_workspaces, upload_document, create_tag and tag_documents. In-process and RLS-native — bounded by the agent's workspace memberships. Off by default.
4072
+ * @description Enable native user-action tools so the agent can act as an ARBI user within its active workspace: list_workspaces, upload_document, list_tags, create_tag and tag_documents. In-process and RLS-native — bounded by the agent's workspace memberships. Off by default.
4021
4073
  * @default false
4022
4074
  */
4023
4075
  WORKSPACE_TOOLS_ENABLED: boolean;
@@ -4124,7 +4176,7 @@ interface components {
4124
4176
  * @default {
4125
4177
  * "API_TYPE": "remote",
4126
4178
  * "ENABLE_THINKING": false,
4127
- * "MODEL_NAME": "dummy",
4179
+ * "MODEL_NAME": "Fast",
4128
4180
  * "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.",
4129
4181
  * "MAX_TOKEN_SIZE_TO_ANSWER": 200000,
4130
4182
  * "TEMPERATURE": 0.1,
@@ -4136,7 +4188,7 @@ interface components {
4136
4188
  * @default {
4137
4189
  * "API_TYPE": "remote",
4138
4190
  * "ENABLE_THINKING": false,
4139
- * "MODEL_NAME": "dummy",
4191
+ * "MODEL_NAME": "Wise",
4140
4192
  * "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.",
4141
4193
  * "TEMPERATURE": 0.1,
4142
4194
  * "MAX_TOKENS": 0,
@@ -4148,7 +4200,7 @@ interface components {
4148
4200
  * @default {
4149
4201
  * "API_TYPE": "remote",
4150
4202
  * "ENABLE_THINKING": false,
4151
- * "MODEL_NAME": "dummy",
4203
+ * "MODEL_NAME": "Fast",
4152
4204
  * "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.",
4153
4205
  * "TEMPERATURE": 0.1,
4154
4206
  * "MAX_TOKENS": 0,
@@ -4163,7 +4215,7 @@ interface components {
4163
4215
  * @default {
4164
4216
  * "API_TYPE": "remote",
4165
4217
  * "ENABLE_THINKING": false,
4166
- * "MODEL_NAME": "dummy",
4218
+ * "MODEL_NAME": "Fast",
4167
4219
  * "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.",
4168
4220
  * "MAX_TOKEN_SIZE_TO_ANSWER": 20,
4169
4221
  * "TEMPERATURE": 0.3,
@@ -4175,7 +4227,7 @@ interface components {
4175
4227
  * @default {
4176
4228
  * "API_TYPE": "remote",
4177
4229
  * "ENABLE_THINKING": false,
4178
- * "MODEL_NAME": "dummy",
4230
+ * "MODEL_NAME": "Wise",
4179
4231
  * "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.",
4180
4232
  * "TEMPERATURE": 0.1,
4181
4233
  * "MAX_TOKENS": 0,
@@ -4189,7 +4241,7 @@ interface components {
4189
4241
  * @default {
4190
4242
  * "API_TYPE": "remote",
4191
4243
  * "ENABLE_THINKING": false,
4192
- * "MODEL_NAME": "dummy",
4244
+ * "MODEL_NAME": "Fast",
4193
4245
  * "SYSTEM_INSTRUCTION": "You are a document analysis assistant. Answer questions based strictly on 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- Only use information explicitly stated in the document; do not infer or assume information not present.\n- If the information is not found, respond with exactly \"Not found\".\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.",
4194
4246
  * "MAX_TOKEN_CONTEXT_TO_ANSWER": 200000,
4195
4247
  * "TEMPERATURE": 0.1,
@@ -4250,7 +4302,7 @@ interface components {
4250
4302
  * @default {
4251
4303
  * "API_TYPE": "remote",
4252
4304
  * "ENABLE_THINKING": false,
4253
- * "MODEL_NAME": "dummy",
4305
+ * "MODEL_NAME": "Wise",
4254
4306
  * "TEMPERATURE": 0.3,
4255
4307
  * "MAX_TOKENS": 0,
4256
4308
  * "MAX_TOKEN_CONTEXT": 200000,
@@ -4262,7 +4314,7 @@ interface components {
4262
4314
  * @default {
4263
4315
  * "API_TYPE": "remote",
4264
4316
  * "ENABLE_THINKING": true,
4265
- * "MODEL_NAME": "dummy",
4317
+ * "MODEL_NAME": "Wise",
4266
4318
  * "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. 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.",
4267
4319
  * "TEMPERATURE": 0.3,
4268
4320
  * "MAX_TOKENS": 0,
@@ -4275,7 +4327,7 @@ interface components {
4275
4327
  * @default {
4276
4328
  * "API_TYPE": "remote",
4277
4329
  * "ENABLE_THINKING": false,
4278
- * "MODEL_NAME": "dummy",
4330
+ * "MODEL_NAME": "Fast",
4279
4331
  * "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\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.",
4280
4332
  * "TEMPERATURE": 0,
4281
4333
  * "MAX_TOKENS": 0
@@ -4286,7 +4338,7 @@ interface components {
4286
4338
  * @default {
4287
4339
  * "API_TYPE": "remote",
4288
4340
  * "ENABLE_THINKING": false,
4289
- * "MODEL_NAME": "dummy",
4341
+ * "MODEL_NAME": "Fast",
4290
4342
  * "TEMPERATURE": 0.1,
4291
4343
  * "MAX_TOKENS": 0,
4292
4344
  * "MAX_PAGES_PER_CALL": 5,
@@ -4307,7 +4359,7 @@ interface components {
4307
4359
  * @default {
4308
4360
  * "API_TYPE": "remote",
4309
4361
  * "ENABLE_THINKING": true,
4310
- * "MODEL_NAME": "",
4362
+ * "MODEL_NAME": "Premium",
4311
4363
  * "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.",
4312
4364
  * "TEMPERATURE": 0.2,
4313
4365
  * "MAX_TOKENS": 0
@@ -4377,7 +4429,7 @@ interface components {
4377
4429
  * },
4378
4430
  * "MAX_CONCURRENT_REQUESTS": 256,
4379
4431
  * "MODEL_NAME": "Qwen/Qwen3-Reranker-0.6B",
4380
- * "API_TYPE": "local",
4432
+ * "API_TYPE": "remote",
4381
4433
  * "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"
4382
4434
  * }
4383
4435
  */
@@ -4398,7 +4450,7 @@ interface components {
4398
4450
  /**
4399
4451
  * @default {
4400
4452
  * "MODEL_NAME": "Qwen/Qwen3-Embedding-0.6B",
4401
- * "API_TYPE": "local",
4453
+ * "API_TYPE": "remote",
4402
4454
  * "BATCH_SIZE": 128,
4403
4455
  * "MAX_CONCURRENT_REQUESTS": 256,
4404
4456
  * "DOCUMENT_PREFIX": "",
@@ -4574,6 +4626,11 @@ interface components {
4574
4626
  * @description Lane lifecycle marker: 'running' opens the lane (the header — `content` carries the child's task), 'done'/'failed' closes it (`outcome` carries the run summary, `content` the child's synthesis). Absent on the child's own intermediate steps, so `!subagent_status` selects exactly the rows to render inside an expanded lane.
4575
4627
  */
4576
4628
  subagent_status?: ('running' | 'done' | 'failed') | null;
4629
+ /**
4630
+ * Task Message Ext Id
4631
+ * @description The persisted branch this sub-agent's run lives in (a role='user' message in the SAME conversation, see subagent_conversation.py) — every delegation persists one (sub_agent, deep_research, run_skill, spawn_coding_agent are all the same underlying mechanism). Lets the frontend jump into the thread via branch navigation instead of only reading the lane.
4632
+ */
4633
+ task_message_ext_id?: string | null;
4577
4634
  /**
4578
4635
  * Model Recommendation
4579
4636
  * @description FilterPlan model tier (goal item, auto mode).
@@ -4584,6 +4641,16 @@ interface components {
4584
4641
  * @description Resolved model (goal item, auto mode).
4585
4642
  */
4586
4643
  selected_model?: string | null;
4644
+ /**
4645
+ * Kept Doc Ext Ids
4646
+ * @description Goal step only: documents the planner kept for this turn.
4647
+ */
4648
+ kept_doc_ext_ids?: string[] | null;
4649
+ /**
4650
+ * Dropped Doc Ext Ids
4651
+ * @description Goal step only: documents the planner dropped for this turn.
4652
+ */
4653
+ dropped_doc_ext_ids?: string[] | null;
4587
4654
  };
4588
4655
  /**
4589
4656
  * ArtifactEvent
@@ -5114,7 +5181,7 @@ interface components {
5114
5181
  /**
5115
5182
  * Model Name
5116
5183
  * @description Model for code generation. Should be a strong coding model.
5117
- * @default
5184
+ * @default Premium
5118
5185
  */
5119
5186
  MODEL_NAME: string;
5120
5187
  /**
@@ -5455,6 +5522,11 @@ interface components {
5455
5522
  * @default false
5456
5523
  */
5457
5524
  auto_rename: boolean;
5525
+ /**
5526
+ * Shared
5527
+ * @default false
5528
+ */
5529
+ shared: boolean;
5458
5530
  /**
5459
5531
  * Auto Sync
5460
5532
  * @default false
@@ -5890,6 +5962,14 @@ interface components {
5890
5962
  tag_ext_ids: string[];
5891
5963
  citations?: components['schemas']['CitationSources'] | null;
5892
5964
  };
5965
+ /**
5966
+ * CreateFactsRequest
5967
+ * @description Create several facts in one transaction (all-or-nothing).
5968
+ */
5969
+ CreateFactsRequest: {
5970
+ /** Facts */
5971
+ facts: components['schemas']['CreateFactRequest'][];
5972
+ };
5893
5973
  /**
5894
5974
  * CreatePlanDetail
5895
5975
  * @description Detail for a create_plan tool call.
@@ -6298,7 +6378,7 @@ interface components {
6298
6378
  /**
6299
6379
  * Model Name
6300
6380
  * @description The name of the non-reasoning model to be used.
6301
- * @default dummy
6381
+ * @default Fast
6302
6382
  */
6303
6383
  MODEL_NAME: string;
6304
6384
  /**
@@ -6557,7 +6637,7 @@ interface components {
6557
6637
  /**
6558
6638
  * Api Type
6559
6639
  * @description The inference type (local or remote).
6560
- * @default local
6640
+ * @default remote
6561
6641
  * @enum {string}
6562
6642
  */
6563
6643
  API_TYPE: 'local' | 'remote';
@@ -6659,6 +6739,11 @@ interface components {
6659
6739
  * @default false
6660
6740
  */
6661
6741
  auto_rename: boolean;
6742
+ /**
6743
+ * Shared
6744
+ * @default false
6745
+ */
6746
+ shared: boolean;
6662
6747
  /**
6663
6748
  * Auto Sync
6664
6749
  * @default false
@@ -6697,7 +6782,7 @@ interface components {
6697
6782
  /**
6698
6783
  * Model Name
6699
6784
  * @description The name of the non-reasoning model to be used.
6700
- * @default dummy
6785
+ * @default Fast
6701
6786
  */
6702
6787
  MODEL_NAME: string;
6703
6788
  /**
@@ -6807,6 +6892,12 @@ interface components {
6807
6892
  confirmed: boolean;
6808
6893
  /** Score */
6809
6894
  score: number;
6895
+ citations?: components['schemas']['CitationSources'] | null;
6896
+ /**
6897
+ * Tags
6898
+ * @default []
6899
+ */
6900
+ tags: components['schemas']['FactTagResponse'][];
6810
6901
  };
6811
6902
  /**
6812
6903
  * FactSearchRequest
@@ -6952,7 +7043,7 @@ interface components {
6952
7043
  /**
6953
7044
  * Model Name
6954
7045
  * @description The name of the non-reasoning model to be used.
6955
- * @default dummy
7046
+ * @default Fast
6956
7047
  */
6957
7048
  MODEL_NAME: string;
6958
7049
  /**
@@ -7508,6 +7599,11 @@ interface components {
7508
7599
  * @default false
7509
7600
  */
7510
7601
  auto_rename: boolean;
7602
+ /**
7603
+ * Shared
7604
+ * @default false
7605
+ */
7606
+ shared: boolean;
7511
7607
  /**
7512
7608
  * Auto Sync
7513
7609
  * @default false
@@ -7561,7 +7657,7 @@ interface components {
7561
7657
  /**
7562
7658
  * Model Name
7563
7659
  * @description The model for note consolidation. Defaults to reasoning model.
7564
- * @default dummy
7660
+ * @default Wise
7565
7661
  */
7566
7662
  MODEL_NAME: string;
7567
7663
  /**
@@ -7640,7 +7736,7 @@ interface components {
7640
7736
  input: string;
7641
7737
  /** Tools */
7642
7738
  tools?: {
7643
- [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'];
7739
+ [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'];
7644
7740
  };
7645
7741
  /**
7646
7742
  * Workspace Ext Id
@@ -7692,7 +7788,7 @@ interface components {
7692
7788
  content: string;
7693
7789
  /** Tools */
7694
7790
  tools?: {
7695
- [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'];
7791
+ [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'];
7696
7792
  };
7697
7793
  /** Config Ext Id */
7698
7794
  config_ext_id?: string | null;
@@ -7803,7 +7899,7 @@ interface components {
7803
7899
  content: string;
7804
7900
  /** Tools */
7805
7901
  tools?: {
7806
- [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'];
7902
+ [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'];
7807
7903
  };
7808
7904
  /** Config Ext Id */
7809
7905
  config_ext_id?: string | null;
@@ -8350,7 +8446,7 @@ interface components {
8350
8446
  /**
8351
8447
  * Model Name
8352
8448
  * @description The model for plan generation. Defaults to reasoning model.
8353
- * @default dummy
8449
+ * @default Wise
8354
8450
  */
8355
8451
  MODEL_NAME: string;
8356
8452
  /**
@@ -8743,7 +8839,7 @@ interface components {
8743
8839
  /**
8744
8840
  * Model Name
8745
8841
  * @description The model for query answering.
8746
- * @default dummy
8842
+ * @default Fast
8747
8843
  */
8748
8844
  MODEL_NAME: string;
8749
8845
  /**
@@ -9068,7 +9164,7 @@ interface components {
9068
9164
  /**
9069
9165
  * Api Type
9070
9166
  * @description The inference type (local or remote).
9071
- * @default local
9167
+ * @default remote
9072
9168
  * @enum {string}
9073
9169
  */
9074
9170
  API_TYPE: 'local' | 'remote';
@@ -9851,7 +9947,7 @@ interface components {
9851
9947
  /**
9852
9948
  * Model Name
9853
9949
  * @description The model for reviewing agent draft answers. Defaults to reasoning model.
9854
- * @default dummy
9950
+ * @default Wise
9855
9951
  */
9856
9952
  MODEL_NAME: string;
9857
9953
  /**
@@ -10211,6 +10307,8 @@ interface components {
10211
10307
  access: string;
10212
10308
  /** Refresh */
10213
10309
  refresh?: string | null;
10310
+ /** Auto Sync Workspace Ext Id */
10311
+ auto_sync_workspace_ext_id?: string | null;
10214
10312
  };
10215
10313
  /** ShareConversationResponse */
10216
10314
  ShareConversationResponse: {
@@ -10389,6 +10487,42 @@ interface components {
10389
10487
  [key: string]: unknown;
10390
10488
  }[];
10391
10489
  };
10490
+ /** SubagentTool */
10491
+ SubagentTool: {
10492
+ /**
10493
+ * @description discriminator enum property added by openapi-typescript
10494
+ * @enum {string}
10495
+ */
10496
+ name: 'subagent';
10497
+ /**
10498
+ * Description
10499
+ * @default sub-agent delegation
10500
+ */
10501
+ description: string;
10502
+ record: components['schemas']['SubagentToolRecord'];
10503
+ };
10504
+ /**
10505
+ * SubagentToolRecord
10506
+ * @description Marker stamped on the task message that branches a conversation into a
10507
+ * delegated sub-agent's own thread (see ``subagent_conversation.py``).
10508
+ *
10509
+ * Lives on the TASK (role="user") message, not the reply, since it must be
10510
+ * readable while the reply doesn't exist yet — a `previous_response_id`
10511
+ * continuation targeting this thread checks `status` to decide whether to
10512
+ * steer the live child (Redis ``run_id``) or start an ordinary new turn.
10513
+ */
10514
+ SubagentToolRecord: {
10515
+ /** Handle */
10516
+ handle: string;
10517
+ /** Run Id */
10518
+ run_id: string;
10519
+ /**
10520
+ * Status
10521
+ * @default running
10522
+ * @enum {string}
10523
+ */
10524
+ status: 'running' | 'done' | 'failed';
10525
+ };
10392
10526
  /**
10393
10527
  * SubscriptionInfo
10394
10528
  * @description Subscription info exposed to frontend in user settings.
@@ -10425,7 +10559,7 @@ interface components {
10425
10559
  /**
10426
10560
  * Model Name
10427
10561
  * @description The model for conversation summarisation. Defaults to reasoning model.
10428
- * @default dummy
10562
+ * @default Wise
10429
10563
  */
10430
10564
  MODEL_NAME: string;
10431
10565
  /**
@@ -10852,7 +10986,7 @@ interface components {
10852
10986
  /**
10853
10987
  * Model Name
10854
10988
  * @description The name of the non-reasoning model to be used.
10855
- * @default dummy
10989
+ * @default Fast
10856
10990
  */
10857
10991
  MODEL_NAME: string;
10858
10992
  /**
@@ -11305,6 +11439,8 @@ interface components {
11305
11439
  skip_duplicates?: boolean | null;
11306
11440
  /** Auto Rename */
11307
11441
  auto_rename?: boolean | null;
11442
+ /** Shared */
11443
+ shared?: boolean | null;
11308
11444
  /** Auto Sync */
11309
11445
  auto_sync?: boolean | null;
11310
11446
  /** Drive Sync Status */
@@ -11401,7 +11537,7 @@ interface components {
11401
11537
  content: string;
11402
11538
  /** Tools */
11403
11539
  tools?: {
11404
- [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'];
11540
+ [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'];
11405
11541
  };
11406
11542
  /** Config Ext Id */
11407
11543
  config_ext_id?: string | null;
@@ -11789,7 +11925,7 @@ interface components {
11789
11925
  /**
11790
11926
  * Model Name
11791
11927
  * @description The vision-capable model name (must support image inputs).
11792
- * @default dummy
11928
+ * @default Fast
11793
11929
  */
11794
11930
  MODEL_NAME: string;
11795
11931
  /**
@@ -14848,6 +14984,39 @@ interface operations {
14848
14984
  };
14849
14985
  };
14850
14986
  };
14987
+ create_facts_batch: {
14988
+ parameters: {
14989
+ query?: never;
14990
+ header?: never;
14991
+ path?: never;
14992
+ cookie?: never;
14993
+ };
14994
+ requestBody: {
14995
+ content: {
14996
+ 'application/json': components['schemas']['CreateFactsRequest'];
14997
+ };
14998
+ };
14999
+ responses: {
15000
+ /** @description Successful Response */
15001
+ 200: {
15002
+ headers: {
15003
+ [name: string]: unknown;
15004
+ };
15005
+ content: {
15006
+ 'application/json': components['schemas']['FactResponse'][];
15007
+ };
15008
+ };
15009
+ /** @description Validation Error */
15010
+ 422: {
15011
+ headers: {
15012
+ [name: string]: unknown;
15013
+ };
15014
+ content: {
15015
+ 'application/json': components['schemas']['HTTPValidationError'];
15016
+ };
15017
+ };
15018
+ };
15019
+ };
14851
15020
  list_facts: {
14852
15021
  parameters: {
14853
15022
  query?: {
@@ -14858,6 +15027,14 @@ interface operations {
14858
15027
  date_to?: string | null;
14859
15028
  /** @description Only facts that carry a date — the timeline view */
14860
15029
  dated_only?: boolean;
15030
+ /** @description Only facts carrying ALL of these tags */
15031
+ tag_ext_id?: string[] | null;
15032
+ /** @description Only facts whose sources include this document */
15033
+ doc_ext_id?: string | null;
15034
+ /** @description Page size; omit for every matching fact */
15035
+ limit?: number | null;
15036
+ /** @description Facts to skip, for paging with limit */
15037
+ offset?: number;
14861
15038
  };
14862
15039
  header?: never;
14863
15040
  path?: never;
@@ -16260,7 +16437,10 @@ interface operations {
16260
16437
  };
16261
16438
  authorize_connector: {
16262
16439
  parameters: {
16263
- query?: never;
16440
+ query?: {
16441
+ /** @description Same-site path (+query) to land on after the grant, instead of the app root. */
16442
+ return_to?: string | null;
16443
+ };
16264
16444
  header?: never;
16265
16445
  path: {
16266
16446
  vendor_key: components['schemas']['VendorKey'];
package/dist/index.d.ts CHANGED
@@ -1988,6 +1988,30 @@ interface paths {
1988
1988
  patch?: never;
1989
1989
  trace?: never;
1990
1990
  };
1991
+ '/v1/facts/batch': {
1992
+ parameters: {
1993
+ query?: never;
1994
+ header?: never;
1995
+ path?: never;
1996
+ cookie?: never;
1997
+ };
1998
+ get?: never;
1999
+ put?: never;
2000
+ /**
2001
+ * Create Facts Batch Endpoint
2002
+ * @description Create several facts in one transaction — all of them, or none.
2003
+ *
2004
+ * Prefer this to a loop of single creates for an import: tags are resolved once and the facts are
2005
+ * embedded in batches after the commit, rather than one request, one tag lookup and one background
2006
+ * embedding task per fact. Responses come back in request order.
2007
+ */
2008
+ post: operations['create_facts_batch'];
2009
+ delete?: never;
2010
+ options?: never;
2011
+ head?: never;
2012
+ patch?: never;
2013
+ trace?: never;
2014
+ };
1991
2015
  '/v1/facts/list': {
1992
2016
  parameters: {
1993
2017
  query?: never;
@@ -2003,6 +2027,9 @@ interface paths {
2003
2027
  * into the timeline: only dated facts, ordered by when they happened. Each
2004
2028
  * bound is read at its own precision and widened outward, so ``date_to=2019``
2005
2029
  * runs through 31 December rather than stopping on 1 January.
2030
+ *
2031
+ * Narrow with ``tag_ext_id`` (repeatable; a fact must carry all of them) and ``doc_ext_id``, and page
2032
+ * with ``limit``/``offset`` — a large workspace need not be fetched whole.
2006
2033
  */
2007
2034
  get: operations['list_facts'];
2008
2035
  put?: never;
@@ -3401,6 +3428,20 @@ interface components {
3401
3428
  * follow-up call with this set to true for those specific emails actually sends the
3402
3429
  * invite and deposits the pending workspace-share grant. Without this gate, sharing
3403
3430
  * would email and grant future access to a typo'd address with no chance to back out.
3431
+ *
3432
+ * resource_type + resource_ext_id (optional): set when this call came from sharing a
3433
+ * specific document or conversation by email rather than the workspace itself (the
3434
+ * "Share" action on a resource). Every recipient still goes through the normal
3435
+ * add-user flow above (same role, same confirm_invite gate) — this only attaches a
3436
+ * breadcrumb so the invite/notification carries a deep link to the resource instead
3437
+ * of just the workspace, and Contacts.shared_resource_* survives an unregistered
3438
+ * recipient's registration so their first login redirects straight there.
3439
+ *
3440
+ * confirm_share (default False): required when the named resource is currently
3441
+ * private — sharing it externally makes it visible to every workspace member, not
3442
+ * just the recipients, so this mirrors confirm_invite's explicit-opt-in gate. A call
3443
+ * naming a private resource without this set does nothing and reports that a
3444
+ * confirmation is needed; the caller re-calls with it set once the owner confirms.
3404
3445
  */
3405
3446
  AddWorkspaceUsersRequest: {
3406
3447
  /** Emails */
@@ -3415,6 +3456,12 @@ interface components {
3415
3456
  session_pubkey_b64?: string | null;
3416
3457
  /** Confirm Invite */
3417
3458
  confirm_invite?: boolean | null;
3459
+ /** Resource Type */
3460
+ resource_type?: ('document' | 'conversation') | null;
3461
+ /** Resource Ext Id */
3462
+ resource_ext_id?: string | null;
3463
+ /** Confirm Share */
3464
+ confirm_share?: boolean | null;
3418
3465
  };
3419
3466
  /**
3420
3467
  * AgentControlStateEvent
@@ -3563,6 +3610,11 @@ interface components {
3563
3610
  * @description Lifecycle marker for a sub-agent lane: 'running' on the spawn step (carries the child's task in `content`), 'done'/'failed' on its completion. Absent on the child's own intermediate steps. Lets the frontend show each lane's status without inspecting its rows.
3564
3611
  */
3565
3612
  subagent_status?: ('running' | 'done' | 'failed') | null;
3613
+ /**
3614
+ * Task Message Ext Id
3615
+ * @description The persisted branch this sub-agent's run lives in (a role='user' message in the SAME conversation, see subagent_conversation.py) — every delegation persists one (sub_agent, deep_research, run_skill, spawn_coding_agent are all the same underlying mechanism). Lets the frontend jump into the thread via branch navigation instead of only reading the lane.
3616
+ */
3617
+ task_message_ext_id?: string | null;
3566
3618
  /**
3567
3619
  * Step
3568
3620
  * @description Lifecycle step. Absent (None) for tool-call steps, which carry `detail` instead.
@@ -3672,7 +3724,7 @@ interface components {
3672
3724
  RUN_CODE_ENABLED: boolean;
3673
3725
  /**
3674
3726
  * Mcp Tools
3675
- * @description MCP tool names to enable from LiteLLM (e.g. ['read_wiki_contents', 'ask_question']).
3727
+ * @description MCP tool names to enable from LiteLLM (e.g. ['firecrawl_scrape', 'firecrawl_search']).
3676
3728
  * @default []
3677
3729
  */
3678
3730
  MCP_TOOLS: string[];
@@ -3756,7 +3808,7 @@ interface components {
3756
3808
  SKILL_CREATION: boolean;
3757
3809
  /**
3758
3810
  * Workspace Tools Enabled
3759
- * @description Enable native user-action tools so the agent can act as an ARBI user within its active workspace: list_workspaces, upload_document, create_tag and tag_documents. In-process and RLS-native — bounded by the agent's workspace memberships. Off by default.
3811
+ * @description Enable native user-action tools so the agent can act as an ARBI user within its active workspace: list_workspaces, upload_document, list_tags, create_tag and tag_documents. In-process and RLS-native — bounded by the agent's workspace memberships. Off by default.
3760
3812
  * @default false
3761
3813
  */
3762
3814
  WORKSPACE_TOOLS_ENABLED: boolean;
@@ -3945,7 +3997,7 @@ interface components {
3945
3997
  RUN_CODE_ENABLED: boolean;
3946
3998
  /**
3947
3999
  * Mcp Tools
3948
- * @description MCP tool names to enable from LiteLLM (e.g. ['read_wiki_contents', 'ask_question']).
4000
+ * @description MCP tool names to enable from LiteLLM (e.g. ['firecrawl_scrape', 'firecrawl_search']).
3949
4001
  * @default []
3950
4002
  */
3951
4003
  MCP_TOOLS: string[];
@@ -4017,7 +4069,7 @@ interface components {
4017
4069
  SKILLS_ENABLED: boolean;
4018
4070
  /**
4019
4071
  * Workspace Tools Enabled
4020
- * @description Enable native user-action tools so the agent can act as an ARBI user within its active workspace: list_workspaces, upload_document, create_tag and tag_documents. In-process and RLS-native — bounded by the agent's workspace memberships. Off by default.
4072
+ * @description Enable native user-action tools so the agent can act as an ARBI user within its active workspace: list_workspaces, upload_document, list_tags, create_tag and tag_documents. In-process and RLS-native — bounded by the agent's workspace memberships. Off by default.
4021
4073
  * @default false
4022
4074
  */
4023
4075
  WORKSPACE_TOOLS_ENABLED: boolean;
@@ -4124,7 +4176,7 @@ interface components {
4124
4176
  * @default {
4125
4177
  * "API_TYPE": "remote",
4126
4178
  * "ENABLE_THINKING": false,
4127
- * "MODEL_NAME": "dummy",
4179
+ * "MODEL_NAME": "Fast",
4128
4180
  * "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.",
4129
4181
  * "MAX_TOKEN_SIZE_TO_ANSWER": 200000,
4130
4182
  * "TEMPERATURE": 0.1,
@@ -4136,7 +4188,7 @@ interface components {
4136
4188
  * @default {
4137
4189
  * "API_TYPE": "remote",
4138
4190
  * "ENABLE_THINKING": false,
4139
- * "MODEL_NAME": "dummy",
4191
+ * "MODEL_NAME": "Wise",
4140
4192
  * "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.",
4141
4193
  * "TEMPERATURE": 0.1,
4142
4194
  * "MAX_TOKENS": 0,
@@ -4148,7 +4200,7 @@ interface components {
4148
4200
  * @default {
4149
4201
  * "API_TYPE": "remote",
4150
4202
  * "ENABLE_THINKING": false,
4151
- * "MODEL_NAME": "dummy",
4203
+ * "MODEL_NAME": "Fast",
4152
4204
  * "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.",
4153
4205
  * "TEMPERATURE": 0.1,
4154
4206
  * "MAX_TOKENS": 0,
@@ -4163,7 +4215,7 @@ interface components {
4163
4215
  * @default {
4164
4216
  * "API_TYPE": "remote",
4165
4217
  * "ENABLE_THINKING": false,
4166
- * "MODEL_NAME": "dummy",
4218
+ * "MODEL_NAME": "Fast",
4167
4219
  * "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.",
4168
4220
  * "MAX_TOKEN_SIZE_TO_ANSWER": 20,
4169
4221
  * "TEMPERATURE": 0.3,
@@ -4175,7 +4227,7 @@ interface components {
4175
4227
  * @default {
4176
4228
  * "API_TYPE": "remote",
4177
4229
  * "ENABLE_THINKING": false,
4178
- * "MODEL_NAME": "dummy",
4230
+ * "MODEL_NAME": "Wise",
4179
4231
  * "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.",
4180
4232
  * "TEMPERATURE": 0.1,
4181
4233
  * "MAX_TOKENS": 0,
@@ -4189,7 +4241,7 @@ interface components {
4189
4241
  * @default {
4190
4242
  * "API_TYPE": "remote",
4191
4243
  * "ENABLE_THINKING": false,
4192
- * "MODEL_NAME": "dummy",
4244
+ * "MODEL_NAME": "Fast",
4193
4245
  * "SYSTEM_INSTRUCTION": "You are a document analysis assistant. Answer questions based strictly on 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- Only use information explicitly stated in the document; do not infer or assume information not present.\n- If the information is not found, respond with exactly \"Not found\".\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.",
4194
4246
  * "MAX_TOKEN_CONTEXT_TO_ANSWER": 200000,
4195
4247
  * "TEMPERATURE": 0.1,
@@ -4250,7 +4302,7 @@ interface components {
4250
4302
  * @default {
4251
4303
  * "API_TYPE": "remote",
4252
4304
  * "ENABLE_THINKING": false,
4253
- * "MODEL_NAME": "dummy",
4305
+ * "MODEL_NAME": "Wise",
4254
4306
  * "TEMPERATURE": 0.3,
4255
4307
  * "MAX_TOKENS": 0,
4256
4308
  * "MAX_TOKEN_CONTEXT": 200000,
@@ -4262,7 +4314,7 @@ interface components {
4262
4314
  * @default {
4263
4315
  * "API_TYPE": "remote",
4264
4316
  * "ENABLE_THINKING": true,
4265
- * "MODEL_NAME": "dummy",
4317
+ * "MODEL_NAME": "Wise",
4266
4318
  * "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. 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.",
4267
4319
  * "TEMPERATURE": 0.3,
4268
4320
  * "MAX_TOKENS": 0,
@@ -4275,7 +4327,7 @@ interface components {
4275
4327
  * @default {
4276
4328
  * "API_TYPE": "remote",
4277
4329
  * "ENABLE_THINKING": false,
4278
- * "MODEL_NAME": "dummy",
4330
+ * "MODEL_NAME": "Fast",
4279
4331
  * "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\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.",
4280
4332
  * "TEMPERATURE": 0,
4281
4333
  * "MAX_TOKENS": 0
@@ -4286,7 +4338,7 @@ interface components {
4286
4338
  * @default {
4287
4339
  * "API_TYPE": "remote",
4288
4340
  * "ENABLE_THINKING": false,
4289
- * "MODEL_NAME": "dummy",
4341
+ * "MODEL_NAME": "Fast",
4290
4342
  * "TEMPERATURE": 0.1,
4291
4343
  * "MAX_TOKENS": 0,
4292
4344
  * "MAX_PAGES_PER_CALL": 5,
@@ -4307,7 +4359,7 @@ interface components {
4307
4359
  * @default {
4308
4360
  * "API_TYPE": "remote",
4309
4361
  * "ENABLE_THINKING": true,
4310
- * "MODEL_NAME": "",
4362
+ * "MODEL_NAME": "Premium",
4311
4363
  * "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.",
4312
4364
  * "TEMPERATURE": 0.2,
4313
4365
  * "MAX_TOKENS": 0
@@ -4377,7 +4429,7 @@ interface components {
4377
4429
  * },
4378
4430
  * "MAX_CONCURRENT_REQUESTS": 256,
4379
4431
  * "MODEL_NAME": "Qwen/Qwen3-Reranker-0.6B",
4380
- * "API_TYPE": "local",
4432
+ * "API_TYPE": "remote",
4381
4433
  * "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"
4382
4434
  * }
4383
4435
  */
@@ -4398,7 +4450,7 @@ interface components {
4398
4450
  /**
4399
4451
  * @default {
4400
4452
  * "MODEL_NAME": "Qwen/Qwen3-Embedding-0.6B",
4401
- * "API_TYPE": "local",
4453
+ * "API_TYPE": "remote",
4402
4454
  * "BATCH_SIZE": 128,
4403
4455
  * "MAX_CONCURRENT_REQUESTS": 256,
4404
4456
  * "DOCUMENT_PREFIX": "",
@@ -4574,6 +4626,11 @@ interface components {
4574
4626
  * @description Lane lifecycle marker: 'running' opens the lane (the header — `content` carries the child's task), 'done'/'failed' closes it (`outcome` carries the run summary, `content` the child's synthesis). Absent on the child's own intermediate steps, so `!subagent_status` selects exactly the rows to render inside an expanded lane.
4575
4627
  */
4576
4628
  subagent_status?: ('running' | 'done' | 'failed') | null;
4629
+ /**
4630
+ * Task Message Ext Id
4631
+ * @description The persisted branch this sub-agent's run lives in (a role='user' message in the SAME conversation, see subagent_conversation.py) — every delegation persists one (sub_agent, deep_research, run_skill, spawn_coding_agent are all the same underlying mechanism). Lets the frontend jump into the thread via branch navigation instead of only reading the lane.
4632
+ */
4633
+ task_message_ext_id?: string | null;
4577
4634
  /**
4578
4635
  * Model Recommendation
4579
4636
  * @description FilterPlan model tier (goal item, auto mode).
@@ -4584,6 +4641,16 @@ interface components {
4584
4641
  * @description Resolved model (goal item, auto mode).
4585
4642
  */
4586
4643
  selected_model?: string | null;
4644
+ /**
4645
+ * Kept Doc Ext Ids
4646
+ * @description Goal step only: documents the planner kept for this turn.
4647
+ */
4648
+ kept_doc_ext_ids?: string[] | null;
4649
+ /**
4650
+ * Dropped Doc Ext Ids
4651
+ * @description Goal step only: documents the planner dropped for this turn.
4652
+ */
4653
+ dropped_doc_ext_ids?: string[] | null;
4587
4654
  };
4588
4655
  /**
4589
4656
  * ArtifactEvent
@@ -5114,7 +5181,7 @@ interface components {
5114
5181
  /**
5115
5182
  * Model Name
5116
5183
  * @description Model for code generation. Should be a strong coding model.
5117
- * @default
5184
+ * @default Premium
5118
5185
  */
5119
5186
  MODEL_NAME: string;
5120
5187
  /**
@@ -5455,6 +5522,11 @@ interface components {
5455
5522
  * @default false
5456
5523
  */
5457
5524
  auto_rename: boolean;
5525
+ /**
5526
+ * Shared
5527
+ * @default false
5528
+ */
5529
+ shared: boolean;
5458
5530
  /**
5459
5531
  * Auto Sync
5460
5532
  * @default false
@@ -5890,6 +5962,14 @@ interface components {
5890
5962
  tag_ext_ids: string[];
5891
5963
  citations?: components['schemas']['CitationSources'] | null;
5892
5964
  };
5965
+ /**
5966
+ * CreateFactsRequest
5967
+ * @description Create several facts in one transaction (all-or-nothing).
5968
+ */
5969
+ CreateFactsRequest: {
5970
+ /** Facts */
5971
+ facts: components['schemas']['CreateFactRequest'][];
5972
+ };
5893
5973
  /**
5894
5974
  * CreatePlanDetail
5895
5975
  * @description Detail for a create_plan tool call.
@@ -6298,7 +6378,7 @@ interface components {
6298
6378
  /**
6299
6379
  * Model Name
6300
6380
  * @description The name of the non-reasoning model to be used.
6301
- * @default dummy
6381
+ * @default Fast
6302
6382
  */
6303
6383
  MODEL_NAME: string;
6304
6384
  /**
@@ -6557,7 +6637,7 @@ interface components {
6557
6637
  /**
6558
6638
  * Api Type
6559
6639
  * @description The inference type (local or remote).
6560
- * @default local
6640
+ * @default remote
6561
6641
  * @enum {string}
6562
6642
  */
6563
6643
  API_TYPE: 'local' | 'remote';
@@ -6659,6 +6739,11 @@ interface components {
6659
6739
  * @default false
6660
6740
  */
6661
6741
  auto_rename: boolean;
6742
+ /**
6743
+ * Shared
6744
+ * @default false
6745
+ */
6746
+ shared: boolean;
6662
6747
  /**
6663
6748
  * Auto Sync
6664
6749
  * @default false
@@ -6697,7 +6782,7 @@ interface components {
6697
6782
  /**
6698
6783
  * Model Name
6699
6784
  * @description The name of the non-reasoning model to be used.
6700
- * @default dummy
6785
+ * @default Fast
6701
6786
  */
6702
6787
  MODEL_NAME: string;
6703
6788
  /**
@@ -6807,6 +6892,12 @@ interface components {
6807
6892
  confirmed: boolean;
6808
6893
  /** Score */
6809
6894
  score: number;
6895
+ citations?: components['schemas']['CitationSources'] | null;
6896
+ /**
6897
+ * Tags
6898
+ * @default []
6899
+ */
6900
+ tags: components['schemas']['FactTagResponse'][];
6810
6901
  };
6811
6902
  /**
6812
6903
  * FactSearchRequest
@@ -6952,7 +7043,7 @@ interface components {
6952
7043
  /**
6953
7044
  * Model Name
6954
7045
  * @description The name of the non-reasoning model to be used.
6955
- * @default dummy
7046
+ * @default Fast
6956
7047
  */
6957
7048
  MODEL_NAME: string;
6958
7049
  /**
@@ -7508,6 +7599,11 @@ interface components {
7508
7599
  * @default false
7509
7600
  */
7510
7601
  auto_rename: boolean;
7602
+ /**
7603
+ * Shared
7604
+ * @default false
7605
+ */
7606
+ shared: boolean;
7511
7607
  /**
7512
7608
  * Auto Sync
7513
7609
  * @default false
@@ -7561,7 +7657,7 @@ interface components {
7561
7657
  /**
7562
7658
  * Model Name
7563
7659
  * @description The model for note consolidation. Defaults to reasoning model.
7564
- * @default dummy
7660
+ * @default Wise
7565
7661
  */
7566
7662
  MODEL_NAME: string;
7567
7663
  /**
@@ -7640,7 +7736,7 @@ interface components {
7640
7736
  input: string;
7641
7737
  /** Tools */
7642
7738
  tools?: {
7643
- [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'];
7739
+ [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'];
7644
7740
  };
7645
7741
  /**
7646
7742
  * Workspace Ext Id
@@ -7692,7 +7788,7 @@ interface components {
7692
7788
  content: string;
7693
7789
  /** Tools */
7694
7790
  tools?: {
7695
- [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'];
7791
+ [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'];
7696
7792
  };
7697
7793
  /** Config Ext Id */
7698
7794
  config_ext_id?: string | null;
@@ -7803,7 +7899,7 @@ interface components {
7803
7899
  content: string;
7804
7900
  /** Tools */
7805
7901
  tools?: {
7806
- [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'];
7902
+ [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'];
7807
7903
  };
7808
7904
  /** Config Ext Id */
7809
7905
  config_ext_id?: string | null;
@@ -8350,7 +8446,7 @@ interface components {
8350
8446
  /**
8351
8447
  * Model Name
8352
8448
  * @description The model for plan generation. Defaults to reasoning model.
8353
- * @default dummy
8449
+ * @default Wise
8354
8450
  */
8355
8451
  MODEL_NAME: string;
8356
8452
  /**
@@ -8743,7 +8839,7 @@ interface components {
8743
8839
  /**
8744
8840
  * Model Name
8745
8841
  * @description The model for query answering.
8746
- * @default dummy
8842
+ * @default Fast
8747
8843
  */
8748
8844
  MODEL_NAME: string;
8749
8845
  /**
@@ -9068,7 +9164,7 @@ interface components {
9068
9164
  /**
9069
9165
  * Api Type
9070
9166
  * @description The inference type (local or remote).
9071
- * @default local
9167
+ * @default remote
9072
9168
  * @enum {string}
9073
9169
  */
9074
9170
  API_TYPE: 'local' | 'remote';
@@ -9851,7 +9947,7 @@ interface components {
9851
9947
  /**
9852
9948
  * Model Name
9853
9949
  * @description The model for reviewing agent draft answers. Defaults to reasoning model.
9854
- * @default dummy
9950
+ * @default Wise
9855
9951
  */
9856
9952
  MODEL_NAME: string;
9857
9953
  /**
@@ -10211,6 +10307,8 @@ interface components {
10211
10307
  access: string;
10212
10308
  /** Refresh */
10213
10309
  refresh?: string | null;
10310
+ /** Auto Sync Workspace Ext Id */
10311
+ auto_sync_workspace_ext_id?: string | null;
10214
10312
  };
10215
10313
  /** ShareConversationResponse */
10216
10314
  ShareConversationResponse: {
@@ -10389,6 +10487,42 @@ interface components {
10389
10487
  [key: string]: unknown;
10390
10488
  }[];
10391
10489
  };
10490
+ /** SubagentTool */
10491
+ SubagentTool: {
10492
+ /**
10493
+ * @description discriminator enum property added by openapi-typescript
10494
+ * @enum {string}
10495
+ */
10496
+ name: 'subagent';
10497
+ /**
10498
+ * Description
10499
+ * @default sub-agent delegation
10500
+ */
10501
+ description: string;
10502
+ record: components['schemas']['SubagentToolRecord'];
10503
+ };
10504
+ /**
10505
+ * SubagentToolRecord
10506
+ * @description Marker stamped on the task message that branches a conversation into a
10507
+ * delegated sub-agent's own thread (see ``subagent_conversation.py``).
10508
+ *
10509
+ * Lives on the TASK (role="user") message, not the reply, since it must be
10510
+ * readable while the reply doesn't exist yet — a `previous_response_id`
10511
+ * continuation targeting this thread checks `status` to decide whether to
10512
+ * steer the live child (Redis ``run_id``) or start an ordinary new turn.
10513
+ */
10514
+ SubagentToolRecord: {
10515
+ /** Handle */
10516
+ handle: string;
10517
+ /** Run Id */
10518
+ run_id: string;
10519
+ /**
10520
+ * Status
10521
+ * @default running
10522
+ * @enum {string}
10523
+ */
10524
+ status: 'running' | 'done' | 'failed';
10525
+ };
10392
10526
  /**
10393
10527
  * SubscriptionInfo
10394
10528
  * @description Subscription info exposed to frontend in user settings.
@@ -10425,7 +10559,7 @@ interface components {
10425
10559
  /**
10426
10560
  * Model Name
10427
10561
  * @description The model for conversation summarisation. Defaults to reasoning model.
10428
- * @default dummy
10562
+ * @default Wise
10429
10563
  */
10430
10564
  MODEL_NAME: string;
10431
10565
  /**
@@ -10852,7 +10986,7 @@ interface components {
10852
10986
  /**
10853
10987
  * Model Name
10854
10988
  * @description The name of the non-reasoning model to be used.
10855
- * @default dummy
10989
+ * @default Fast
10856
10990
  */
10857
10991
  MODEL_NAME: string;
10858
10992
  /**
@@ -11305,6 +11439,8 @@ interface components {
11305
11439
  skip_duplicates?: boolean | null;
11306
11440
  /** Auto Rename */
11307
11441
  auto_rename?: boolean | null;
11442
+ /** Shared */
11443
+ shared?: boolean | null;
11308
11444
  /** Auto Sync */
11309
11445
  auto_sync?: boolean | null;
11310
11446
  /** Drive Sync Status */
@@ -11401,7 +11537,7 @@ interface components {
11401
11537
  content: string;
11402
11538
  /** Tools */
11403
11539
  tools?: {
11404
- [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'];
11540
+ [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'];
11405
11541
  };
11406
11542
  /** Config Ext Id */
11407
11543
  config_ext_id?: string | null;
@@ -11789,7 +11925,7 @@ interface components {
11789
11925
  /**
11790
11926
  * Model Name
11791
11927
  * @description The vision-capable model name (must support image inputs).
11792
- * @default dummy
11928
+ * @default Fast
11793
11929
  */
11794
11930
  MODEL_NAME: string;
11795
11931
  /**
@@ -14848,6 +14984,39 @@ interface operations {
14848
14984
  };
14849
14985
  };
14850
14986
  };
14987
+ create_facts_batch: {
14988
+ parameters: {
14989
+ query?: never;
14990
+ header?: never;
14991
+ path?: never;
14992
+ cookie?: never;
14993
+ };
14994
+ requestBody: {
14995
+ content: {
14996
+ 'application/json': components['schemas']['CreateFactsRequest'];
14997
+ };
14998
+ };
14999
+ responses: {
15000
+ /** @description Successful Response */
15001
+ 200: {
15002
+ headers: {
15003
+ [name: string]: unknown;
15004
+ };
15005
+ content: {
15006
+ 'application/json': components['schemas']['FactResponse'][];
15007
+ };
15008
+ };
15009
+ /** @description Validation Error */
15010
+ 422: {
15011
+ headers: {
15012
+ [name: string]: unknown;
15013
+ };
15014
+ content: {
15015
+ 'application/json': components['schemas']['HTTPValidationError'];
15016
+ };
15017
+ };
15018
+ };
15019
+ };
14851
15020
  list_facts: {
14852
15021
  parameters: {
14853
15022
  query?: {
@@ -14858,6 +15027,14 @@ interface operations {
14858
15027
  date_to?: string | null;
14859
15028
  /** @description Only facts that carry a date — the timeline view */
14860
15029
  dated_only?: boolean;
15030
+ /** @description Only facts carrying ALL of these tags */
15031
+ tag_ext_id?: string[] | null;
15032
+ /** @description Only facts whose sources include this document */
15033
+ doc_ext_id?: string | null;
15034
+ /** @description Page size; omit for every matching fact */
15035
+ limit?: number | null;
15036
+ /** @description Facts to skip, for paging with limit */
15037
+ offset?: number;
14861
15038
  };
14862
15039
  header?: never;
14863
15040
  path?: never;
@@ -16260,7 +16437,10 @@ interface operations {
16260
16437
  };
16261
16438
  authorize_connector: {
16262
16439
  parameters: {
16263
- query?: never;
16440
+ query?: {
16441
+ /** @description Same-site path (+query) to land on after the grant, instead of the app root. */
16442
+ return_to?: string | null;
16443
+ };
16264
16444
  header?: never;
16265
16445
  path: {
16266
16446
  vendor_key: components['schemas']['VendorKey'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/client",
3
- "version": "0.3.181",
3
+ "version": "0.3.183",
4
4
  "description": "TypeScript SDK for the ARBI API — zero-knowledge auth, E2E encryption, and type-safe REST client",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",