@arbidocs/client 0.5.77 → 0.5.78

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
@@ -1373,7 +1373,8 @@ interface paths {
1373
1373
  path?: never;
1374
1374
  cookie?: never;
1375
1375
  };
1376
- get?: never;
1376
+ /** My Support Tickets */
1377
+ get: operations['list_support_tickets'];
1377
1378
  put?: never;
1378
1379
  /** Create Support Ticket */
1379
1380
  post: operations['create_support_ticket'];
@@ -8463,6 +8464,57 @@ interface paths {
8463
8464
  patch?: never;
8464
8465
  trace?: never;
8465
8466
  };
8467
+ '/v1/support/tickets/{ticket_id}': {
8468
+ parameters: {
8469
+ query?: never;
8470
+ header?: never;
8471
+ path?: never;
8472
+ cookie?: never;
8473
+ };
8474
+ /** My Support Ticket */
8475
+ get: operations['get_support_ticket'];
8476
+ put?: never;
8477
+ post?: never;
8478
+ delete?: never;
8479
+ options?: never;
8480
+ head?: never;
8481
+ patch?: never;
8482
+ trace?: never;
8483
+ };
8484
+ '/v1/support/tickets/{ticket_id}/rating': {
8485
+ parameters: {
8486
+ query?: never;
8487
+ header?: never;
8488
+ path?: never;
8489
+ cookie?: never;
8490
+ };
8491
+ get?: never;
8492
+ put?: never;
8493
+ /** Rate My Support Ticket */
8494
+ post: operations['rate_support_ticket'];
8495
+ delete?: never;
8496
+ options?: never;
8497
+ head?: never;
8498
+ patch?: never;
8499
+ trace?: never;
8500
+ };
8501
+ '/v1/support/updates': {
8502
+ parameters: {
8503
+ query?: never;
8504
+ header?: never;
8505
+ path?: never;
8506
+ cookie?: never;
8507
+ };
8508
+ get?: never;
8509
+ put?: never;
8510
+ /** Receive Support Update */
8511
+ post: operations['receive_support_ticket_update'];
8512
+ delete?: never;
8513
+ options?: never;
8514
+ head?: never;
8515
+ patch?: never;
8516
+ trace?: never;
8517
+ };
8466
8518
  }
8467
8519
  type webhooks = Record<string, never>;
8468
8520
  interface components {
@@ -9509,7 +9561,7 @@ interface components {
9509
9561
  * @default {
9510
9562
  * "API_TYPE": "remote",
9511
9563
  * "ENABLE_THINKING": false,
9512
- * "MODEL_NAME": "Fast",
9564
+ * "MODEL_NAME": "dummy",
9513
9565
  * "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.",
9514
9566
  * "MAX_TOKEN_SIZE_TO_ANSWER": 200000,
9515
9567
  * "TEMPERATURE": 0.1,
@@ -9521,7 +9573,7 @@ interface components {
9521
9573
  * @default {
9522
9574
  * "API_TYPE": "remote",
9523
9575
  * "ENABLE_THINKING": false,
9524
- * "MODEL_NAME": "Wise",
9576
+ * "MODEL_NAME": "dummy",
9525
9577
  * "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.",
9526
9578
  * "TEMPERATURE": 0.1,
9527
9579
  * "MAX_TOKENS": 0,
@@ -9533,7 +9585,7 @@ interface components {
9533
9585
  * @default {
9534
9586
  * "API_TYPE": "remote",
9535
9587
  * "ENABLE_THINKING": false,
9536
- * "MODEL_NAME": "Fast",
9588
+ * "MODEL_NAME": "dummy",
9537
9589
  * "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.",
9538
9590
  * "TEMPERATURE": 0.1,
9539
9591
  * "MAX_TOKENS": 0,
@@ -9548,7 +9600,7 @@ interface components {
9548
9600
  * @default {
9549
9601
  * "API_TYPE": "remote",
9550
9602
  * "ENABLE_THINKING": false,
9551
- * "MODEL_NAME": "Fast",
9603
+ * "MODEL_NAME": "dummy",
9552
9604
  * "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.",
9553
9605
  * "MAX_TOKEN_SIZE_TO_ANSWER": 20,
9554
9606
  * "TEMPERATURE": 0.3,
@@ -9560,7 +9612,7 @@ interface components {
9560
9612
  * @default {
9561
9613
  * "API_TYPE": "remote",
9562
9614
  * "ENABLE_THINKING": false,
9563
- * "MODEL_NAME": "Wise",
9615
+ * "MODEL_NAME": "dummy",
9564
9616
  * "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.",
9565
9617
  * "TEMPERATURE": 0.1,
9566
9618
  * "MAX_TOKENS": 0,
@@ -9574,7 +9626,7 @@ interface components {
9574
9626
  * @default {
9575
9627
  * "API_TYPE": "remote",
9576
9628
  * "ENABLE_THINKING": false,
9577
- * "MODEL_NAME": "Fast",
9629
+ * "MODEL_NAME": "dummy",
9578
9630
  * "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.",
9579
9631
  * "MAX_TOKEN_CONTEXT_TO_ANSWER": 200000,
9580
9632
  * "METADATA_CONTEXT_TOKENS": 12000,
@@ -9636,7 +9688,7 @@ interface components {
9636
9688
  * @default {
9637
9689
  * "API_TYPE": "remote",
9638
9690
  * "ENABLE_THINKING": false,
9639
- * "MODEL_NAME": "Fast",
9691
+ * "MODEL_NAME": "dummy",
9640
9692
  * "SYSTEM_INSTRUCTION": "You are a professional translator of legal, commercial and technical documents.\n\nYou translate the numbered passages you are given into the target language, faithfully and completely:\n- Translate every passage in full. Never summarise, shorten, merge, split, reorder, explain or comment.\n- Keep the Markdown structure of each passage exactly: headings (#), lists, emphasis, tables (same rows and columns), links and line breaks.\n- Keep unchanged: numbers, dates as written, amounts, currencies, clause and section numbering, cross-references, citations, case names, statute names, email addresses, URLs and code.\n- Keep proper names of people, companies and places as they are written, unless the glossary gives a translation.\n- Use the glossary's translation for every glossary term, every time it occurs.\n- A defined term (a capitalised or quoted term given a meaning in the document) is translated the same way everywhere.\n- A passage already in the target language, or with nothing to translate (a number, a signature line, a blank form field), is returned as it is.\n- The context passages before and after are there only so the translation reads on from its neighbours. Never translate or return them.",
9641
9693
  * "TEMPERATURE": 0.2,
9642
9694
  * "MAX_TOKENS": 0,
@@ -9651,7 +9703,7 @@ interface components {
9651
9703
  * @default {
9652
9704
  * "API_TYPE": "remote",
9653
9705
  * "ENABLE_THINKING": false,
9654
- * "MODEL_NAME": "Wise",
9706
+ * "MODEL_NAME": "dummy",
9655
9707
  * "TEMPERATURE": 0.3,
9656
9708
  * "MAX_TOKENS": 0,
9657
9709
  * "MAX_TOKEN_CONTEXT": 200000,
@@ -9663,7 +9715,7 @@ interface components {
9663
9715
  * @default {
9664
9716
  * "API_TYPE": "remote",
9665
9717
  * "ENABLE_THINKING": true,
9666
- * "MODEL_NAME": "Wise",
9718
+ * "MODEL_NAME": "dummy",
9667
9719
  * "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.",
9668
9720
  * "TEMPERATURE": 0.3,
9669
9721
  * "MAX_TOKENS": 0,
@@ -9676,7 +9728,7 @@ interface components {
9676
9728
  * @default {
9677
9729
  * "API_TYPE": "remote",
9678
9730
  * "ENABLE_THINKING": false,
9679
- * "MODEL_NAME": "Fast",
9731
+ * "MODEL_NAME": "dummy",
9680
9732
  * "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.",
9681
9733
  * "TEMPERATURE": 0,
9682
9734
  * "MAX_TOKENS": 0
@@ -9687,7 +9739,7 @@ interface components {
9687
9739
  * @default {
9688
9740
  * "API_TYPE": "remote",
9689
9741
  * "ENABLE_THINKING": false,
9690
- * "MODEL_NAME": "Fast",
9742
+ * "MODEL_NAME": "dummy",
9691
9743
  * "TEMPERATURE": 0.1,
9692
9744
  * "MAX_TOKENS": 0,
9693
9745
  * "MAX_PAGES_PER_CALL": 5,
@@ -9708,7 +9760,7 @@ interface components {
9708
9760
  * @default {
9709
9761
  * "API_TYPE": "remote",
9710
9762
  * "ENABLE_THINKING": true,
9711
- * "MODEL_NAME": "Premium",
9763
+ * "MODEL_NAME": "",
9712
9764
  * "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.",
9713
9765
  * "TEMPERATURE": 0.2,
9714
9766
  * "MAX_TOKENS": 0
@@ -9778,7 +9830,7 @@ interface components {
9778
9830
  * },
9779
9831
  * "MAX_CONCURRENT_REQUESTS": 256,
9780
9832
  * "MODEL_NAME": "Qwen/Qwen3-Reranker-0.6B",
9781
- * "API_TYPE": "remote",
9833
+ * "API_TYPE": "local",
9782
9834
  * "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"
9783
9835
  * }
9784
9836
  */
@@ -9799,7 +9851,7 @@ interface components {
9799
9851
  /**
9800
9852
  * @default {
9801
9853
  * "MODEL_NAME": "Qwen/Qwen3-Embedding-0.6B",
9802
- * "API_TYPE": "remote",
9854
+ * "API_TYPE": "local",
9803
9855
  * "BATCH_SIZE": 128,
9804
9856
  * "MAX_CONCURRENT_REQUESTS": 256,
9805
9857
  * "DOCUMENT_PREFIX": "",
@@ -12233,7 +12285,7 @@ interface components {
12233
12285
  /**
12234
12286
  * Model Name
12235
12287
  * @description Model for code generation. Should be a strong coding model.
12236
- * @default Premium
12288
+ * @default
12237
12289
  */
12238
12290
  MODEL_NAME: string;
12239
12291
  /**
@@ -14705,7 +14757,7 @@ interface components {
14705
14757
  /**
14706
14758
  * Model Name
14707
14759
  * @description The name of the non-reasoning model to be used.
14708
- * @default Fast
14760
+ * @default dummy
14709
14761
  */
14710
14762
  MODEL_NAME: string;
14711
14763
  /**
@@ -15049,7 +15101,7 @@ interface components {
15049
15101
  /**
15050
15102
  * Api Type
15051
15103
  * @description The inference type (local or remote).
15052
- * @default remote
15104
+ * @default local
15053
15105
  * @enum {string}
15054
15106
  */
15055
15107
  API_TYPE: 'local' | 'remote';
@@ -15172,7 +15224,7 @@ interface components {
15172
15224
  /**
15173
15225
  * Model Name
15174
15226
  * @description The name of the non-reasoning model to be used.
15175
- * @default Fast
15227
+ * @default dummy
15176
15228
  */
15177
15229
  MODEL_NAME: string;
15178
15230
  /**
@@ -15777,7 +15829,7 @@ interface components {
15777
15829
  /**
15778
15830
  * Model Name
15779
15831
  * @description The name of the non-reasoning model to be used.
15780
- * @default Fast
15832
+ * @default dummy
15781
15833
  */
15782
15834
  MODEL_NAME: string;
15783
15835
  /**
@@ -17480,7 +17532,7 @@ interface components {
17480
17532
  /**
17481
17533
  * Model Name
17482
17534
  * @description The model for note consolidation. Defaults to reasoning model.
17483
- * @default Wise
17535
+ * @default dummy
17484
17536
  */
17485
17537
  MODEL_NAME: string;
17486
17538
  /**
@@ -18080,7 +18132,7 @@ interface components {
18080
18132
  * Type is self-descriptive, no need to parse content field.
18081
18133
  * @enum {string}
18082
18134
  */
18083
- 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' | 'native_mail_received' | 'mail_draft_ready' | 'email_reply' | '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';
18135
+ 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' | 'native_mail_received' | 'mail_draft_ready' | 'email_reply' | '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' | 'support_ticket_resolved';
18084
18136
  /**
18085
18137
  * NotificationUpdate
18086
18138
  * @description Single notification update for bulk PATCH.
@@ -18579,7 +18631,7 @@ interface components {
18579
18631
  /**
18580
18632
  * Model Name
18581
18633
  * @description The model for plan generation. Defaults to reasoning model.
18582
- * @default Wise
18634
+ * @default dummy
18583
18635
  */
18584
18636
  MODEL_NAME: string;
18585
18637
  /**
@@ -19521,7 +19573,7 @@ interface components {
19521
19573
  /**
19522
19574
  * Model Name
19523
19575
  * @description The model for query answering.
19524
- * @default Fast
19576
+ * @default dummy
19525
19577
  */
19526
19578
  MODEL_NAME: string;
19527
19579
  /**
@@ -19945,7 +19997,7 @@ interface components {
19945
19997
  /**
19946
19998
  * Api Type
19947
19999
  * @description The inference type (local or remote).
19948
- * @default remote
20000
+ * @default local
19949
20001
  * @enum {string}
19950
20002
  */
19951
20003
  API_TYPE: 'local' | 'remote';
@@ -20805,7 +20857,7 @@ interface components {
20805
20857
  /**
20806
20858
  * Model Name
20807
20859
  * @description The model for reviewing agent draft answers. Defaults to reasoning model.
20808
- * @default Wise
20860
+ * @default dummy
20809
20861
  */
20810
20862
  MODEL_NAME: string;
20811
20863
  /**
@@ -22458,7 +22510,7 @@ interface components {
22458
22510
  /**
22459
22511
  * Model Name
22460
22512
  * @description The model for conversation summarisation. Defaults to reasoning model.
22461
- * @default Wise
22513
+ * @default dummy
22462
22514
  */
22463
22515
  MODEL_NAME: string;
22464
22516
  /**
@@ -23114,7 +23166,7 @@ interface components {
23114
23166
  /**
23115
23167
  * Model Name
23116
23168
  * @description The name of the non-reasoning model to be used.
23117
- * @default Fast
23169
+ * @default dummy
23118
23170
  */
23119
23171
  MODEL_NAME: string;
23120
23172
  /**
@@ -23549,7 +23601,7 @@ interface components {
23549
23601
  /**
23550
23602
  * Model Name
23551
23603
  * @description The name of the non-reasoning model to be used.
23552
- * @default Fast
23604
+ * @default dummy
23553
23605
  */
23554
23606
  MODEL_NAME: string;
23555
23607
  /**
@@ -24523,7 +24575,7 @@ interface components {
24523
24575
  /**
24524
24576
  * Model Name
24525
24577
  * @description The vision-capable model name (must support image inputs).
24526
- * @default Fast
24578
+ * @default dummy
24527
24579
  */
24528
24580
  MODEL_NAME: string;
24529
24581
  /**
@@ -25312,6 +25364,51 @@ interface components {
25312
25364
  * @enum {string}
25313
25365
  */
25314
25366
  src__models__workflow__AuthMode: 'run_now_temp' | 'scheduled_require_auth' | 'scheduled_permanent';
25367
+ /** SupportRating */
25368
+ SupportRating: {
25369
+ /** Score */
25370
+ score: number;
25371
+ /**
25372
+ * Comment
25373
+ * @default
25374
+ */
25375
+ comment: string;
25376
+ };
25377
+ /** SupportTicketUpdate */
25378
+ SupportTicketUpdate: {
25379
+ /** Ticket Id */
25380
+ ticket_id: number;
25381
+ /** Reporter User Id */
25382
+ reporter_user_id: string;
25383
+ /**
25384
+ * Status
25385
+ * @constant
25386
+ */
25387
+ status: 'resolved';
25388
+ /** Event Id */
25389
+ event_id: string;
25390
+ };
25391
+ /** SupportTicketView */
25392
+ SupportTicketView: {
25393
+ /** Ticket Id */
25394
+ ticket_id: number;
25395
+ /** Title */
25396
+ title: string;
25397
+ /** Description */
25398
+ description: string;
25399
+ /**
25400
+ * Status
25401
+ * @enum {string}
25402
+ */
25403
+ status: 'received' | 'in_progress' | 'verifying' | 'needs_input' | 'resolved';
25404
+ /** Resolution */
25405
+ resolution?: string | null;
25406
+ /** Created At */
25407
+ created_at: string;
25408
+ /** Updated At */
25409
+ updated_at: string;
25410
+ rating?: components['schemas']['SupportRating'] | null;
25411
+ };
25315
25412
  };
25316
25413
  responses: never;
25317
25414
  parameters: never;
@@ -27280,6 +27377,26 @@ interface operations {
27280
27377
  };
27281
27378
  };
27282
27379
  };
27380
+ list_support_tickets: {
27381
+ parameters: {
27382
+ query?: never;
27383
+ header?: never;
27384
+ path?: never;
27385
+ cookie?: never;
27386
+ };
27387
+ requestBody?: never;
27388
+ responses: {
27389
+ /** @description Successful Response */
27390
+ 200: {
27391
+ headers: {
27392
+ [name: string]: unknown;
27393
+ };
27394
+ content: {
27395
+ 'application/json': components['schemas']['SupportTicketView'][];
27396
+ };
27397
+ };
27398
+ };
27399
+ };
27283
27400
  create_support_ticket: {
27284
27401
  parameters: {
27285
27402
  query?: never;
@@ -39417,6 +39534,107 @@ interface operations {
39417
39534
  };
39418
39535
  };
39419
39536
  };
39537
+ get_support_ticket: {
39538
+ parameters: {
39539
+ query?: never;
39540
+ header?: never;
39541
+ path: {
39542
+ ticket_id: number;
39543
+ };
39544
+ cookie?: never;
39545
+ };
39546
+ requestBody?: never;
39547
+ responses: {
39548
+ /** @description Successful Response */
39549
+ 200: {
39550
+ headers: {
39551
+ [name: string]: unknown;
39552
+ };
39553
+ content: {
39554
+ 'application/json': components['schemas']['SupportTicketView'];
39555
+ };
39556
+ };
39557
+ /** @description Validation Error */
39558
+ 422: {
39559
+ headers: {
39560
+ [name: string]: unknown;
39561
+ };
39562
+ content: {
39563
+ 'application/json': components['schemas']['HTTPValidationError'];
39564
+ };
39565
+ };
39566
+ };
39567
+ };
39568
+ rate_support_ticket: {
39569
+ parameters: {
39570
+ query?: never;
39571
+ header?: never;
39572
+ path: {
39573
+ ticket_id: number;
39574
+ };
39575
+ cookie?: never;
39576
+ };
39577
+ requestBody: {
39578
+ content: {
39579
+ 'application/json': components['schemas']['SupportRating'];
39580
+ };
39581
+ };
39582
+ responses: {
39583
+ /** @description Successful Response */
39584
+ 200: {
39585
+ headers: {
39586
+ [name: string]: unknown;
39587
+ };
39588
+ content: {
39589
+ 'application/json': components['schemas']['SupportTicketView'];
39590
+ };
39591
+ };
39592
+ /** @description Validation Error */
39593
+ 422: {
39594
+ headers: {
39595
+ [name: string]: unknown;
39596
+ };
39597
+ content: {
39598
+ 'application/json': components['schemas']['HTTPValidationError'];
39599
+ };
39600
+ };
39601
+ };
39602
+ };
39603
+ receive_support_ticket_update: {
39604
+ parameters: {
39605
+ query?: never;
39606
+ header?: {
39607
+ 'x-api-key'?: string | null;
39608
+ };
39609
+ path?: never;
39610
+ cookie?: never;
39611
+ };
39612
+ requestBody: {
39613
+ content: {
39614
+ 'application/json': components['schemas']['SupportTicketUpdate'];
39615
+ };
39616
+ };
39617
+ responses: {
39618
+ /** @description Successful Response */
39619
+ 200: {
39620
+ headers: {
39621
+ [name: string]: unknown;
39622
+ };
39623
+ content: {
39624
+ 'application/json': unknown;
39625
+ };
39626
+ };
39627
+ /** @description Validation Error */
39628
+ 422: {
39629
+ headers: {
39630
+ [name: string]: unknown;
39631
+ };
39632
+ content: {
39633
+ 'application/json': components['schemas']['HTTPValidationError'];
39634
+ };
39635
+ };
39636
+ };
39637
+ };
39420
39638
  }
39421
39639
 
39422
39640
  /**
@@ -40744,6 +40962,32 @@ interface ArbiClient {
40744
40962
  }
40745
40963
  declare function createArbiClient(options: ArbiClientOptions): ArbiClient;
40746
40964
 
40965
+ /**
40966
+ * Client-side circuit breaker for runaway settings writes.
40967
+ *
40968
+ * A stale cached bundle once stormed PATCH /v1/user/settings (~1200 requests
40969
+ * from one tab), saturating the tab's main thread. Every legitimate settings
40970
+ * write is a discrete user gesture — the worst real burst (rapid pin/unpin
40971
+ * clicking, flipping every experimental toggle) stays well under 30 writes a
40972
+ * minute — so a sustained rate past that is a bug, not a user. This wrapper
40973
+ * drops the excess so a future regression degrades into a few failed writes
40974
+ * instead of a frozen tab and a hammered server.
40975
+ *
40976
+ * A fetch wrapper under the client (not openapi-fetch middleware): the
40977
+ * auto-relogin middleware re-issues 401'd requests outside the middleware
40978
+ * chain, so the client's fetch is the one choke point every settings write
40979
+ * must pass.
40980
+ *
40981
+ * The rejection is a synthetic 429 WITH a JSON body: openapi-fetch parses a
40982
+ * non-ok response with an empty body as `{ error: undefined }`, which a caller
40983
+ * would treat as SUCCESS. 400/401 would engage the auto-relogin machinery and
40984
+ * 402 opens the quota dialog — 429 is the one status nothing else reacts to,
40985
+ * and mutations never retry (`createArbiQueryClient` in `@arbidocs/react`), so
40986
+ * callers see one ordinary failed write with the code below.
40987
+ */
40988
+ /** The error code of a settings write the breaker dropped. */
40989
+ declare const SETTINGS_WRITE_BREAKER_CODE = "CLIENT_SETTINGS_WRITE_BREAKER";
40990
+
40747
40991
  /**
40748
40992
  * The session gate: every authenticated request of a client runs under it, so a sign-out can stop
40749
40993
  * them all before the server revokes the token.
@@ -40932,4 +41176,4 @@ declare const logger: {
40932
41176
  debug: (...args: unknown[]) => void;
40933
41177
  };
40934
41178
 
40935
- export { type $defs, ACCESS_TOKEN_STORAGE_KEY, API_PREFIX, type ArbiClient, type ArbiClientOptions, type AuthStateProvider, type AutoReloginMiddlewareConfig, type BearerAuthMiddlewareConfig, CALL_KEY_BYTES, CHAT_KEY_BYTES, type CallPeer, type ChangePasswordParams, type ChangePasswordRequest, type ChangePasswordResult, type CryptoProvider, type DisconnectSsoParams, ENCRYPTED_RECOVERY_KEY_SIZE, type HttpErrorInfo, type HttpRequestInfo, type HttpResponseInfo, type HttpTransport, type HttpTransportOptions, type KeyLoginCredentials, type KeyPair, type ListedWorkspaceKey, type LoggerOptions, type LoginCredentials, type LoginParams, type LoginProfile, type LoginProvider, type LoginRequest, type LoginResponse, type LoginResult, type LoginWithKeyParams, type OfflineSealer, type OfflineSealerOptions, type OnReloginSuccess, type OpenAllDeps, type ParsedRecoveryUrl, type PasswordChangeCredentials, RECOVERY_KEY_ERRORS, type RecoveryKeyParams, type RecoveryKeyValidationResult, type RegisterParams, type RegisterRequest, type RegisterResult, type RegistrationCredentials, type ReloginDeps, type ReloginFailure, type ReloginHandler, type ReopenDeps, SECURE_MAIL_KEY_BYTES, type SealedSecureMail, type SecureMailCiphertexts, type SecureMailClaim, type SessionClaims, type SessionData, type SessionKeys, type SessionManager, type SessionManagerOptions, type SessionPersistence, type SessionSignIn, type SessionState, type SessionStateStorage, type SessionUser, type SignInHooks, type SsoTokenSource, type StoredSessionState, type TokenProvider, UNENCRYPTED_RECOVERY_KEY_SIZE, type UserKeypairs, type WebSocketClientMessage, type WebSocketServerMessage, type WorkspaceKeyRefreshProvider, type WorkspaceKeys, type WorkspaceOpenProvider, type WorkspaceOpens, type WsAgentDmStatusMessage, type WsAuthMessage, type WsAuthResultMessage, type WsBatchCompleteMessage, type WsChatMessageMessage, type WsChatReadMessage, type WsChatUpdatedMessage, type WsConnectionClosedMessage, type WsConversationMessagePostedMessage, type WsErrorMessage, type WsNotificationResponse, type WsPresenceUpdateMessage, type WsResponseCompleteMessage, type WsTaskUpdateMessage, authRequestError, base64Decode, base64Encode, base64ToBytes, base64UrlToBytes, browserSessionStateStorage, buildCallFragment, buildCallLink, buildWebSocketUrl, bytesToBase64, bytesToBase64Url, canPersistSession, changePassword, clearAllData, clearSession, type components, computeSharedSecret, configureLogger, createAllWorkspacesOpener, createArbiClient, createAuthMessage, createAutoReloginMiddleware, createBearerAuthMiddleware, createContentHash, createHttpTransport, createMemorySessionPersistence, createOfflineSealer, createRecoveryFile, createRecoveryUrl, createReloginHandler, createSessionManager, createWorkspaceKeys, createWorkspaceOpens, createWorkspaceReopener, decodeCallKey, decodeSecureMailKey, decryptCallTitle, decryptFile, decryptMessage, decryptMessageWithSharedSecret, decryptRecoveryKey, decryptWithChatKey, deriveDirectChatKey, deriveEncryptionKeypairFromSigning, derivePublicKey, disconnectSso, encodeCallKey, encryptCallTitle, encryptFile, encryptMessage, encryptMessageWithSharedSecret, encryptRecoveryKey, encryptWithChatKey, encryptionKeypairFromSigningKey, generateCallKey, generateChatKey, generateIdentityKeypair, generateKeyPairs, generateLoginCredentials, generateLoginCredentialsFromKey, generatePasswordChangeCredentials, generateRandomSigningKeypair, generateRegistrationCredentials, generateUserKeypairs, getRecoveryKeyFilename, getSession, getUserEncryptionKeypair, hasSession, identityFromLoginResponse, initSodium, initializeDatabase, isAbortError, isEncryptedRecoveryKey, isMessageType, logger, openCallKeyOf, openSealedCallKey, openSealedChatKey, openSecureMail, type operations, parseCallFragment, parseRecoveryUrl, parseServerMessage, passwordChangeErrorMessage, type paths, prewarmKeyPairs, readSessionClaims, requestSsoDisconnectCode, saveSession, sealCallKey, sealCallKeyForPeers, sealChatKey, sealKeyForSession, sealSecureMail, sealedBoxDecrypt, sealedBoxEncrypt, secureMailClaim, signMessage, unlockIdentityWithPassword, unwrapIdentityKey, unwrapWorkspaceKey, updateWrappedIdentityKey, validateRecoveryKeyFile, type webhooks, workspaceKeyRequiredOf, wrapIdentityKey };
41179
+ export { type $defs, ACCESS_TOKEN_STORAGE_KEY, API_PREFIX, type ArbiClient, type ArbiClientOptions, type AuthStateProvider, type AutoReloginMiddlewareConfig, type BearerAuthMiddlewareConfig, CALL_KEY_BYTES, CHAT_KEY_BYTES, type CallPeer, type ChangePasswordParams, type ChangePasswordRequest, type ChangePasswordResult, type CryptoProvider, type DisconnectSsoParams, ENCRYPTED_RECOVERY_KEY_SIZE, type HttpErrorInfo, type HttpRequestInfo, type HttpResponseInfo, type HttpTransport, type HttpTransportOptions, type KeyLoginCredentials, type KeyPair, type ListedWorkspaceKey, type LoggerOptions, type LoginCredentials, type LoginParams, type LoginProfile, type LoginProvider, type LoginRequest, type LoginResponse, type LoginResult, type LoginWithKeyParams, type OfflineSealer, type OfflineSealerOptions, type OnReloginSuccess, type OpenAllDeps, type ParsedRecoveryUrl, type PasswordChangeCredentials, RECOVERY_KEY_ERRORS, type RecoveryKeyParams, type RecoveryKeyValidationResult, type RegisterParams, type RegisterRequest, type RegisterResult, type RegistrationCredentials, type ReloginDeps, type ReloginFailure, type ReloginHandler, type ReopenDeps, SECURE_MAIL_KEY_BYTES, SETTINGS_WRITE_BREAKER_CODE, type SealedSecureMail, type SecureMailCiphertexts, type SecureMailClaim, type SessionClaims, type SessionData, type SessionKeys, type SessionManager, type SessionManagerOptions, type SessionPersistence, type SessionSignIn, type SessionState, type SessionStateStorage, type SessionUser, type SignInHooks, type SsoTokenSource, type StoredSessionState, type TokenProvider, UNENCRYPTED_RECOVERY_KEY_SIZE, type UserKeypairs, type WebSocketClientMessage, type WebSocketServerMessage, type WorkspaceKeyRefreshProvider, type WorkspaceKeys, type WorkspaceOpenProvider, type WorkspaceOpens, type WsAgentDmStatusMessage, type WsAuthMessage, type WsAuthResultMessage, type WsBatchCompleteMessage, type WsChatMessageMessage, type WsChatReadMessage, type WsChatUpdatedMessage, type WsConnectionClosedMessage, type WsConversationMessagePostedMessage, type WsErrorMessage, type WsNotificationResponse, type WsPresenceUpdateMessage, type WsResponseCompleteMessage, type WsTaskUpdateMessage, authRequestError, base64Decode, base64Encode, base64ToBytes, base64UrlToBytes, browserSessionStateStorage, buildCallFragment, buildCallLink, buildWebSocketUrl, bytesToBase64, bytesToBase64Url, canPersistSession, changePassword, clearAllData, clearSession, type components, computeSharedSecret, configureLogger, createAllWorkspacesOpener, createArbiClient, createAuthMessage, createAutoReloginMiddleware, createBearerAuthMiddleware, createContentHash, createHttpTransport, createMemorySessionPersistence, createOfflineSealer, createRecoveryFile, createRecoveryUrl, createReloginHandler, createSessionManager, createWorkspaceKeys, createWorkspaceOpens, createWorkspaceReopener, decodeCallKey, decodeSecureMailKey, decryptCallTitle, decryptFile, decryptMessage, decryptMessageWithSharedSecret, decryptRecoveryKey, decryptWithChatKey, deriveDirectChatKey, deriveEncryptionKeypairFromSigning, derivePublicKey, disconnectSso, encodeCallKey, encryptCallTitle, encryptFile, encryptMessage, encryptMessageWithSharedSecret, encryptRecoveryKey, encryptWithChatKey, encryptionKeypairFromSigningKey, generateCallKey, generateChatKey, generateIdentityKeypair, generateKeyPairs, generateLoginCredentials, generateLoginCredentialsFromKey, generatePasswordChangeCredentials, generateRandomSigningKeypair, generateRegistrationCredentials, generateUserKeypairs, getRecoveryKeyFilename, getSession, getUserEncryptionKeypair, hasSession, identityFromLoginResponse, initSodium, initializeDatabase, isAbortError, isEncryptedRecoveryKey, isMessageType, logger, openCallKeyOf, openSealedCallKey, openSealedChatKey, openSecureMail, type operations, parseCallFragment, parseRecoveryUrl, parseServerMessage, passwordChangeErrorMessage, type paths, prewarmKeyPairs, readSessionClaims, requestSsoDisconnectCode, saveSession, sealCallKey, sealCallKeyForPeers, sealChatKey, sealKeyForSession, sealSecureMail, sealedBoxDecrypt, sealedBoxEncrypt, secureMailClaim, signMessage, unlockIdentityWithPassword, unwrapIdentityKey, unwrapWorkspaceKey, updateWrappedIdentityKey, validateRecoveryKeyFile, type webhooks, workspaceKeyRequiredOf, wrapIdentityKey };