@arbidocs/client 0.5.59 → 0.5.61

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
@@ -9480,7 +9480,7 @@ interface components {
9480
9480
  * @default {
9481
9481
  * "API_TYPE": "remote",
9482
9482
  * "ENABLE_THINKING": false,
9483
- * "MODEL_NAME": "Fast",
9483
+ * "MODEL_NAME": "dummy",
9484
9484
  * "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.",
9485
9485
  * "MAX_TOKEN_SIZE_TO_ANSWER": 200000,
9486
9486
  * "TEMPERATURE": 0.1,
@@ -9492,7 +9492,7 @@ interface components {
9492
9492
  * @default {
9493
9493
  * "API_TYPE": "remote",
9494
9494
  * "ENABLE_THINKING": false,
9495
- * "MODEL_NAME": "Wise",
9495
+ * "MODEL_NAME": "dummy",
9496
9496
  * "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.",
9497
9497
  * "TEMPERATURE": 0.1,
9498
9498
  * "MAX_TOKENS": 0,
@@ -9504,7 +9504,7 @@ interface components {
9504
9504
  * @default {
9505
9505
  * "API_TYPE": "remote",
9506
9506
  * "ENABLE_THINKING": false,
9507
- * "MODEL_NAME": "Fast",
9507
+ * "MODEL_NAME": "dummy",
9508
9508
  * "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.",
9509
9509
  * "TEMPERATURE": 0.1,
9510
9510
  * "MAX_TOKENS": 0,
@@ -9519,7 +9519,7 @@ interface components {
9519
9519
  * @default {
9520
9520
  * "API_TYPE": "remote",
9521
9521
  * "ENABLE_THINKING": false,
9522
- * "MODEL_NAME": "Fast",
9522
+ * "MODEL_NAME": "dummy",
9523
9523
  * "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.",
9524
9524
  * "MAX_TOKEN_SIZE_TO_ANSWER": 20,
9525
9525
  * "TEMPERATURE": 0.3,
@@ -9531,7 +9531,7 @@ interface components {
9531
9531
  * @default {
9532
9532
  * "API_TYPE": "remote",
9533
9533
  * "ENABLE_THINKING": false,
9534
- * "MODEL_NAME": "Wise",
9534
+ * "MODEL_NAME": "dummy",
9535
9535
  * "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.",
9536
9536
  * "TEMPERATURE": 0.1,
9537
9537
  * "MAX_TOKENS": 0,
@@ -9545,7 +9545,7 @@ interface components {
9545
9545
  * @default {
9546
9546
  * "API_TYPE": "remote",
9547
9547
  * "ENABLE_THINKING": false,
9548
- * "MODEL_NAME": "Fast",
9548
+ * "MODEL_NAME": "dummy",
9549
9549
  * "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.",
9550
9550
  * "MAX_TOKEN_CONTEXT_TO_ANSWER": 200000,
9551
9551
  * "METADATA_CONTEXT_TOKENS": 12000,
@@ -9607,7 +9607,7 @@ interface components {
9607
9607
  * @default {
9608
9608
  * "API_TYPE": "remote",
9609
9609
  * "ENABLE_THINKING": false,
9610
- * "MODEL_NAME": "Fast",
9610
+ * "MODEL_NAME": "dummy",
9611
9611
  * "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.",
9612
9612
  * "TEMPERATURE": 0.2,
9613
9613
  * "MAX_TOKENS": 0,
@@ -9622,7 +9622,7 @@ interface components {
9622
9622
  * @default {
9623
9623
  * "API_TYPE": "remote",
9624
9624
  * "ENABLE_THINKING": false,
9625
- * "MODEL_NAME": "Wise",
9625
+ * "MODEL_NAME": "dummy",
9626
9626
  * "TEMPERATURE": 0.3,
9627
9627
  * "MAX_TOKENS": 0,
9628
9628
  * "MAX_TOKEN_CONTEXT": 200000,
@@ -9634,7 +9634,7 @@ interface components {
9634
9634
  * @default {
9635
9635
  * "API_TYPE": "remote",
9636
9636
  * "ENABLE_THINKING": true,
9637
- * "MODEL_NAME": "Wise",
9637
+ * "MODEL_NAME": "dummy",
9638
9638
  * "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.",
9639
9639
  * "TEMPERATURE": 0.3,
9640
9640
  * "MAX_TOKENS": 0,
@@ -9647,7 +9647,7 @@ interface components {
9647
9647
  * @default {
9648
9648
  * "API_TYPE": "remote",
9649
9649
  * "ENABLE_THINKING": false,
9650
- * "MODEL_NAME": "Fast",
9650
+ * "MODEL_NAME": "dummy",
9651
9651
  * "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.",
9652
9652
  * "TEMPERATURE": 0,
9653
9653
  * "MAX_TOKENS": 0
@@ -9658,7 +9658,7 @@ interface components {
9658
9658
  * @default {
9659
9659
  * "API_TYPE": "remote",
9660
9660
  * "ENABLE_THINKING": false,
9661
- * "MODEL_NAME": "Fast",
9661
+ * "MODEL_NAME": "dummy",
9662
9662
  * "TEMPERATURE": 0.1,
9663
9663
  * "MAX_TOKENS": 0,
9664
9664
  * "MAX_PAGES_PER_CALL": 5,
@@ -9679,7 +9679,7 @@ interface components {
9679
9679
  * @default {
9680
9680
  * "API_TYPE": "remote",
9681
9681
  * "ENABLE_THINKING": true,
9682
- * "MODEL_NAME": "Premium",
9682
+ * "MODEL_NAME": "",
9683
9683
  * "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.",
9684
9684
  * "TEMPERATURE": 0.2,
9685
9685
  * "MAX_TOKENS": 0
@@ -9749,7 +9749,7 @@ interface components {
9749
9749
  * },
9750
9750
  * "MAX_CONCURRENT_REQUESTS": 256,
9751
9751
  * "MODEL_NAME": "Qwen/Qwen3-Reranker-0.6B",
9752
- * "API_TYPE": "remote",
9752
+ * "API_TYPE": "local",
9753
9753
  * "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"
9754
9754
  * }
9755
9755
  */
@@ -9770,7 +9770,7 @@ interface components {
9770
9770
  /**
9771
9771
  * @default {
9772
9772
  * "MODEL_NAME": "Qwen/Qwen3-Embedding-0.6B",
9773
- * "API_TYPE": "remote",
9773
+ * "API_TYPE": "local",
9774
9774
  * "BATCH_SIZE": 128,
9775
9775
  * "MAX_CONCURRENT_REQUESTS": 256,
9776
9776
  * "DOCUMENT_PREFIX": "",
@@ -12204,7 +12204,7 @@ interface components {
12204
12204
  /**
12205
12205
  * Model Name
12206
12206
  * @description Model for code generation. Should be a strong coding model.
12207
- * @default Premium
12207
+ * @default
12208
12208
  */
12209
12209
  MODEL_NAME: string;
12210
12210
  /**
@@ -14676,7 +14676,7 @@ interface components {
14676
14676
  /**
14677
14677
  * Model Name
14678
14678
  * @description The name of the non-reasoning model to be used.
14679
- * @default Fast
14679
+ * @default dummy
14680
14680
  */
14681
14681
  MODEL_NAME: string;
14682
14682
  /**
@@ -15020,7 +15020,7 @@ interface components {
15020
15020
  /**
15021
15021
  * Api Type
15022
15022
  * @description The inference type (local or remote).
15023
- * @default remote
15023
+ * @default local
15024
15024
  * @enum {string}
15025
15025
  */
15026
15026
  API_TYPE: 'local' | 'remote';
@@ -15143,7 +15143,7 @@ interface components {
15143
15143
  /**
15144
15144
  * Model Name
15145
15145
  * @description The name of the non-reasoning model to be used.
15146
- * @default Fast
15146
+ * @default dummy
15147
15147
  */
15148
15148
  MODEL_NAME: string;
15149
15149
  /**
@@ -15748,7 +15748,7 @@ interface components {
15748
15748
  /**
15749
15749
  * Model Name
15750
15750
  * @description The name of the non-reasoning model to be used.
15751
- * @default Fast
15751
+ * @default dummy
15752
15752
  */
15753
15753
  MODEL_NAME: string;
15754
15754
  /**
@@ -16546,6 +16546,24 @@ interface components {
16546
16546
  /** Emails */
16547
16547
  emails: string[];
16548
16548
  };
16549
+ /** JsonSchemaFormat */
16550
+ JsonSchemaFormat: {
16551
+ /**
16552
+ * @description discriminator enum property added by openapi-typescript
16553
+ * @enum {string}
16554
+ */
16555
+ type: 'json_schema';
16556
+ /** Name */
16557
+ name: string;
16558
+ /** Schema */
16559
+ schema: {
16560
+ [key: string]: unknown;
16561
+ };
16562
+ /** Description */
16563
+ description?: string | null;
16564
+ /** Strict */
16565
+ strict?: boolean | null;
16566
+ };
16549
16567
  /**
16550
16568
  * KeywordEmbedderConfig
16551
16569
  * @description Configuration for keyword embedder with BM25 scoring.
@@ -17433,7 +17451,7 @@ interface components {
17433
17451
  /**
17434
17452
  * Model Name
17435
17453
  * @description The model for note consolidation. Defaults to reasoning model.
17436
- * @default Wise
17454
+ * @default dummy
17437
17455
  */
17438
17456
  MODEL_NAME: string;
17439
17457
  /**
@@ -17556,6 +17574,7 @@ interface components {
17556
17574
  store: boolean;
17557
17575
  /** Instructions */
17558
17576
  instructions?: string | null;
17577
+ text?: components['schemas']['ResponseTextConfig'] | null;
17559
17578
  /** Max Output Tokens */
17560
17579
  max_output_tokens?: number | null;
17561
17580
  /** Temperature */
@@ -18531,7 +18550,7 @@ interface components {
18531
18550
  /**
18532
18551
  * Model Name
18533
18552
  * @description The model for plan generation. Defaults to reasoning model.
18534
- * @default Wise
18553
+ * @default dummy
18535
18554
  */
18536
18555
  MODEL_NAME: string;
18537
18556
  /**
@@ -19473,7 +19492,7 @@ interface components {
19473
19492
  /**
19474
19493
  * Model Name
19475
19494
  * @description The model for query answering.
19476
- * @default Fast
19495
+ * @default dummy
19477
19496
  */
19478
19497
  MODEL_NAME: string;
19479
19498
  /**
@@ -19897,7 +19916,7 @@ interface components {
19897
19916
  /**
19898
19917
  * Api Type
19899
19918
  * @description The inference type (local or remote).
19900
- * @default remote
19919
+ * @default local
19901
19920
  * @enum {string}
19902
19921
  */
19903
19922
  API_TYPE: 'local' | 'remote';
@@ -20402,6 +20421,11 @@ interface components {
20402
20421
  */
20403
20422
  text: string;
20404
20423
  };
20424
+ /** ResponseTextConfig */
20425
+ ResponseTextConfig: {
20426
+ /** Format */
20427
+ format?: components['schemas']['TextFormat'] | components['schemas']['JsonSchemaFormat'];
20428
+ };
20405
20429
  /**
20406
20430
  * ResponseUsage
20407
20431
  * @description Token usage summary in a completed response (OpenAI format).
@@ -20442,7 +20466,7 @@ interface components {
20442
20466
  * Status
20443
20467
  * @enum {string}
20444
20468
  */
20445
- status: 'completed' | 'in_progress';
20469
+ status: 'completed' | 'in_progress' | 'incomplete';
20446
20470
  /**
20447
20471
  * Role
20448
20472
  * @default assistant
@@ -20515,6 +20539,10 @@ interface components {
20515
20539
  error?: {
20516
20540
  [key: string]: unknown;
20517
20541
  } | null;
20542
+ /** Incomplete Details */
20543
+ incomplete_details?: {
20544
+ [key: string]: unknown;
20545
+ } | null;
20518
20546
  /** Metadata */
20519
20547
  metadata?: {
20520
20548
  [key: string]: unknown;
@@ -20748,7 +20776,7 @@ interface components {
20748
20776
  /**
20749
20777
  * Model Name
20750
20778
  * @description The model for reviewing agent draft answers. Defaults to reasoning model.
20751
- * @default Wise
20779
+ * @default dummy
20752
20780
  */
20753
20781
  MODEL_NAME: string;
20754
20782
  /**
@@ -22401,7 +22429,7 @@ interface components {
22401
22429
  /**
22402
22430
  * Model Name
22403
22431
  * @description The model for conversation summarisation. Defaults to reasoning model.
22404
- * @default Wise
22432
+ * @default dummy
22405
22433
  */
22406
22434
  MODEL_NAME: string;
22407
22435
  /**
@@ -22951,6 +22979,14 @@ interface components {
22951
22979
  */
22952
22980
  lines: components['schemas']['TaxQuoteLine'][];
22953
22981
  };
22982
+ /** TextFormat */
22983
+ TextFormat: {
22984
+ /**
22985
+ * @description discriminator enum property added by openapi-typescript
22986
+ * @enum {string}
22987
+ */
22988
+ type: 'text';
22989
+ };
22954
22990
  /** Thread */
22955
22991
  Thread: {
22956
22992
  /** Leaf Message Ext Id */
@@ -23030,7 +23066,7 @@ interface components {
23030
23066
  /**
23031
23067
  * Model Name
23032
23068
  * @description The name of the non-reasoning model to be used.
23033
- * @default Fast
23069
+ * @default dummy
23034
23070
  */
23035
23071
  MODEL_NAME: string;
23036
23072
  /**
@@ -23465,7 +23501,7 @@ interface components {
23465
23501
  /**
23466
23502
  * Model Name
23467
23503
  * @description The name of the non-reasoning model to be used.
23468
- * @default Fast
23504
+ * @default dummy
23469
23505
  */
23470
23506
  MODEL_NAME: string;
23471
23507
  /**
@@ -24439,7 +24475,7 @@ interface components {
24439
24475
  /**
24440
24476
  * Model Name
24441
24477
  * @description The vision-capable model name (must support image inputs).
24442
- * @default Fast
24478
+ * @default dummy
24443
24479
  */
24444
24480
  MODEL_NAME: string;
24445
24481
  /**
@@ -39512,7 +39548,7 @@ declare const ACCESS_TOKEN_STORAGE_KEY = "arbi_access_token";
39512
39548
  * signed-in flag per browser (localStorage), so a new tab is signed in and re-logs in for a token
39513
39549
  * of its own. The keys themselves stay in the encrypted IndexedDB store (`SessionPersistence`).
39514
39550
  */
39515
- declare function browserSessionStateStorage(): SessionStateStorage;
39551
+ declare function browserSessionStateStorage(namespace?: string): SessionStateStorage;
39516
39552
 
39517
39553
  /**
39518
39554
  * Layer 1: Pure libsodium wrappers
@@ -40788,4 +40824,23 @@ declare function createAllWorkspacesOpener(deps: OpenAllDeps): () => Promise<voi
40788
40824
  /** Per-client memory only: no browser globals, files or process-wide shared identity. */
40789
40825
  declare function createMemorySessionPersistence(): SessionPersistence;
40790
40826
 
40791
- 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 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, 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, 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 };
40827
+ /**
40828
+ * One console logger for an ARBI frontend and its packages: errors always print; warnings, info
40829
+ * and debug lines print only when the host turns verbose logging on (in development, say:
40830
+ * `configureLogger({ verbose: import.meta.env.DEV })` at startup). The package never reads a
40831
+ * bundler's environment itself.
40832
+ */
40833
+ interface LoggerOptions {
40834
+ /** Print `warn`, `info` and `debug` too. Off by default. */
40835
+ verbose: boolean;
40836
+ }
40837
+ declare function configureLogger(options: LoggerOptions): void;
40838
+ declare const logger: {
40839
+ /** Always printed, production included. */
40840
+ error: (...args: unknown[]) => void;
40841
+ warn: (...args: unknown[]) => void;
40842
+ info: (...args: unknown[]) => void;
40843
+ debug: (...args: unknown[]) => void;
40844
+ };
40845
+
40846
+ 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 };