@arbidocs/sdk 0.4.20 → 0.4.29

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.
@@ -15,10 +15,11 @@ declare class ArbiSessionExpiredError extends ArbiError {
15
15
  constructor(message?: string);
16
16
  }
17
17
  declare class ArbiApiError extends ArbiError {
18
+ readonly status?: number;
18
19
  readonly apiError?: unknown;
19
20
  /** Why the server refused, in its words (e.g. "run_at must be in the future"), when it said. */
20
21
  readonly detail?: string;
21
- constructor(message: string, apiError?: unknown);
22
+ constructor(message: string, apiError?: unknown, status?: number);
22
23
  }
23
24
  /**
24
25
  * Check API response and throw on error. Returns narrowed non-null data.
@@ -26,6 +27,9 @@ declare class ArbiApiError extends ArbiError {
26
27
  declare function requireData<T>(result: {
27
28
  data?: T;
28
29
  error?: unknown;
30
+ response?: {
31
+ status: number;
32
+ };
29
33
  }, message: string): T;
30
34
  /**
31
35
  * Check API response for delete/void operations (no data expected).
@@ -1276,6 +1280,7 @@ declare function listConversations(arbi: ArbiClient): Promise<{
1276
1280
  workflow_ext_id?: string | null | undefined;
1277
1281
  agent_ext_id?: string | null | undefined;
1278
1282
  skill_ref?: string | null | undefined;
1283
+ has_agent_action?: boolean | undefined;
1279
1284
  auth_mode?: (components["schemas"]["src__models__work__AuthMode"] | null) | undefined;
1280
1285
  plan?: {
1281
1286
  goal: string;
@@ -1875,7 +1880,7 @@ declare namespace conversations {
1875
1880
  * Uses raw fetch because the SDK client doesn't support streaming responses.
1876
1881
  */
1877
1882
 
1878
- type MessageInput = components['schemas']['MessageInput'];
1883
+ type MessageInput$1 = components['schemas']['MessageInput'];
1879
1884
  declare function buildRetrievalChunkTool(docIds: string[], searchMode?: 'semantic' | 'keyword' | 'hybrid'): components['schemas']['RetrievalChunkTool'];
1880
1885
  declare function buildRetrievalFullContextTool(docIds: string[]): components['schemas']['RetrievalFullContextTool'];
1881
1886
  declare function buildRetrievalTocTool(docIds: string[]): components['schemas']['RetrievalTOCTool'];
@@ -1923,17 +1928,22 @@ interface RetrieveResult {
1923
1928
  */
1924
1929
  declare function retrieve(options: RetrieveOptions): Promise<RetrieveResult>;
1925
1930
  interface AssistantQueryOptions extends AuthHeaders {
1931
+ agentId?: string;
1932
+ activeArtifactExtId?: string;
1926
1933
  workspaceId: string;
1927
1934
  question: string;
1928
1935
  docIds: string[];
1929
1936
  previousResponseId?: string | null;
1937
+ /** Attach the first answer to an existing empty task/thread. */
1938
+ conversationId?: string;
1939
+ assistantMode?: MessageInput$1['assistant_mode'];
1930
1940
  model?: string;
1931
1941
  /**
1932
1942
  * Structured @mentions in `question`. A person mention shares the conversation and
1933
1943
  * notifies them; an assistant mention is what runs the assistant in a `mentioned`
1934
1944
  * conversation.
1935
1945
  */
1936
- mentions?: MessageInput['mentions'];
1946
+ mentions?: MessageInput$1['mentions'];
1937
1947
  /** Aborts the request and the stream (stop generating). */
1938
1948
  signal?: AbortSignal;
1939
1949
  }
@@ -2041,6 +2051,8 @@ declare function filterSkills<T extends {
2041
2051
  slug?: string;
2042
2052
  name: string;
2043
2053
  }>(items: ReadonlyArray<T>, query: string, pinned?: ReadonlyArray<string>): T[];
2054
+ /** Cancel the server run before disconnecting its stream. */
2055
+ declare function cancelAssistantRun(auth: AuthHeaders, responseId: string): Promise<void>;
2044
2056
 
2045
2057
  type assistant_AssistantQueryOptions = AssistantQueryOptions;
2046
2058
  type assistant_Chunk = Chunk;
@@ -2053,6 +2065,7 @@ type assistant_SkillSummary = SkillSummary;
2053
2065
  declare const assistant_buildRetrievalChunkTool: typeof buildRetrievalChunkTool;
2054
2066
  declare const assistant_buildRetrievalFullContextTool: typeof buildRetrievalFullContextTool;
2055
2067
  declare const assistant_buildRetrievalTocTool: typeof buildRetrievalTocTool;
2068
+ declare const assistant_cancelAssistantRun: typeof cancelAssistantRun;
2056
2069
  declare const assistant_filterSkills: typeof filterSkills;
2057
2070
  declare const assistant_listCommands: typeof listCommands;
2058
2071
  declare const assistant_listSkills: typeof listSkills;
@@ -2062,7 +2075,52 @@ declare const assistant_queryAssistant: typeof queryAssistant;
2062
2075
  declare const assistant_respondToAgent: typeof respondToAgent;
2063
2076
  declare const assistant_retrieve: typeof retrieve;
2064
2077
  declare namespace assistant {
2065
- export { type assistant_AssistantQueryOptions as AssistantQueryOptions, type assistant_Chunk as Chunk, type assistant_ChunkMetadata as ChunkMetadata, type assistant_CommandDescriptor as CommandDescriptor, type assistant_ParsedSlashCommand as ParsedSlashCommand, type assistant_RetrieveOptions as RetrieveOptions, type assistant_RetrieveResult as RetrieveResult, type assistant_SkillSummary as SkillSummary, assistant_buildRetrievalChunkTool as buildRetrievalChunkTool, assistant_buildRetrievalFullContextTool as buildRetrievalFullContextTool, assistant_buildRetrievalTocTool as buildRetrievalTocTool, assistant_filterSkills as filterSkills, assistant_listCommands as listCommands, assistant_listSkills as listSkills, assistant_parseSlashCommand as parseSlashCommand, assistant_parseSlashTokenInProgress as parseSlashTokenInProgress, assistant_queryAssistant as queryAssistant, assistant_respondToAgent as respondToAgent, assistant_retrieve as retrieve };
2078
+ export { type assistant_AssistantQueryOptions as AssistantQueryOptions, type assistant_Chunk as Chunk, type assistant_ChunkMetadata as ChunkMetadata, type assistant_CommandDescriptor as CommandDescriptor, type assistant_ParsedSlashCommand as ParsedSlashCommand, type assistant_RetrieveOptions as RetrieveOptions, type assistant_RetrieveResult as RetrieveResult, type assistant_SkillSummary as SkillSummary, assistant_buildRetrievalChunkTool as buildRetrievalChunkTool, assistant_buildRetrievalFullContextTool as buildRetrievalFullContextTool, assistant_buildRetrievalTocTool as buildRetrievalTocTool, assistant_cancelAssistantRun as cancelAssistantRun, assistant_filterSkills as filterSkills, assistant_listCommands as listCommands, assistant_listSkills as listSkills, assistant_parseSlashCommand as parseSlashCommand, assistant_parseSlashTokenInProgress as parseSlashTokenInProgress, assistant_queryAssistant as queryAssistant, assistant_respondToAgent as respondToAgent, assistant_retrieve as retrieve };
2079
+ }
2080
+
2081
+ /**
2082
+ * Responses operations — background query submission and retrieval.
2083
+ *
2084
+ * submitBackgroundQuery: POST /v1/responses with background=true → 202 with task ID.
2085
+ * getResponse: GET /v1/responses/{responseId} → current status + output.
2086
+ * extractResponseText: Walk response output and join text content.
2087
+ */
2088
+
2089
+ type MessageInput = components['schemas']['MessageInput'];
2090
+ type ResponsesAPIResponse = components['schemas']['ResponsesAPIResponse'];
2091
+ interface SubmitBackgroundQueryOptions extends AuthHeaders {
2092
+ workspaceId: string;
2093
+ question: string;
2094
+ docIds: string[];
2095
+ previousResponseId?: string | null;
2096
+ model?: string;
2097
+ task?: MessageInput['task'];
2098
+ conversationId?: string;
2099
+ mentions?: MessageInput['mentions'];
2100
+ activeArtifactExtId?: string;
2101
+ }
2102
+ /**
2103
+ * Submit a query for background processing.
2104
+ * Returns immediately with a response ID and "queued" status.
2105
+ */
2106
+ declare function submitBackgroundQuery(options: SubmitBackgroundQueryOptions): Promise<ResponsesAPIResponse>;
2107
+ /**
2108
+ * Fetch the current state of a response by ID.
2109
+ * Returns progressive status, output, usage, and metadata.
2110
+ */
2111
+ declare function getResponse(auth: AuthHeaders, responseId: string): Promise<ResponsesAPIResponse>;
2112
+ /**
2113
+ * Walk response output messages and join all output_text content.
2114
+ * Pure function, no I/O.
2115
+ */
2116
+ declare function extractResponseText(response: ResponsesAPIResponse): string;
2117
+
2118
+ type responses_SubmitBackgroundQueryOptions = SubmitBackgroundQueryOptions;
2119
+ declare const responses_extractResponseText: typeof extractResponseText;
2120
+ declare const responses_getResponse: typeof getResponse;
2121
+ declare const responses_submitBackgroundQuery: typeof submitBackgroundQuery;
2122
+ declare namespace responses {
2123
+ export { type responses_SubmitBackgroundQueryOptions as SubmitBackgroundQueryOptions, responses_extractResponseText as extractResponseText, responses_getResponse as getResponse, responses_submitBackgroundQuery as submitBackgroundQuery };
2066
2124
  }
2067
2125
 
2068
2126
  /**
@@ -2215,6 +2273,7 @@ declare function listDMs(arbi: ArbiClient): Promise<{
2215
2273
  is_sso: boolean;
2216
2274
  };
2217
2275
  workspace_ext_id?: string | null | undefined;
2276
+ dm_context_only: boolean;
2218
2277
  content?: string | null | undefined;
2219
2278
  conversation_ext_id?: string | null | undefined;
2220
2279
  message_ext_id?: string | null | undefined;
@@ -2231,6 +2290,7 @@ declare function listDecryptedDMs(arbi: ArbiClient, crypto: DmCryptoContext): Pr
2231
2290
  sender: components["schemas"]["UserResponse"];
2232
2291
  recipient: components["schemas"]["UserResponse"];
2233
2292
  workspace_ext_id?: string | null;
2293
+ dm_context_only: boolean;
2234
2294
  content?: string | null;
2235
2295
  conversation_ext_id?: string | null;
2236
2296
  message_ext_id?: string | null;
@@ -2273,6 +2333,7 @@ declare function listActivity(arbi: ArbiClient, options?: {
2273
2333
  is_sso: boolean;
2274
2334
  };
2275
2335
  workspace_ext_id?: string | null | undefined;
2336
+ dm_context_only: boolean;
2276
2337
  content?: string | null | undefined;
2277
2338
  conversation_ext_id?: string | null | undefined;
2278
2339
  message_ext_id?: string | null | undefined;
@@ -2354,6 +2415,7 @@ declare function requestWorkspaceAccess(arbi: ArbiClient, params: {
2354
2415
  is_sso: boolean;
2355
2416
  };
2356
2417
  workspace_ext_id?: string | null | undefined;
2418
+ dm_context_only: boolean;
2357
2419
  content?: string | null | undefined;
2358
2420
  conversation_ext_id?: string | null | undefined;
2359
2421
  message_ext_id?: string | null | undefined;
@@ -2392,6 +2454,7 @@ declare function sendDM(arbi: ArbiClient, messages: Array<{
2392
2454
  is_sso: boolean;
2393
2455
  };
2394
2456
  workspace_ext_id?: string | null | undefined;
2457
+ dm_context_only: boolean;
2395
2458
  content?: string | null | undefined;
2396
2459
  conversation_ext_id?: string | null | undefined;
2397
2460
  message_ext_id?: string | null | undefined;
@@ -2423,6 +2486,7 @@ declare function markRead(arbi: ArbiClient, messageIds: string[]): Promise<{
2423
2486
  is_sso: boolean;
2424
2487
  };
2425
2488
  workspace_ext_id?: string | null | undefined;
2489
+ dm_context_only: boolean;
2426
2490
  content?: string | null | undefined;
2427
2491
  conversation_ext_id?: string | null | undefined;
2428
2492
  message_ext_id?: string | null | undefined;
@@ -2521,6 +2585,370 @@ declare namespace files {
2521
2585
  export { type files_FileDeleteResponse as FileDeleteResponse, type files_FileListResponse as FileListResponse, type files_FileObject as FileObject, type files_ListFilesOptions as ListFilesOptions, files_deleteFile as deleteFile, files_getFile as getFile, files_getFileContent as getFileContent, files_listFiles as listFiles, files_uploadFile as uploadFile };
2522
2586
  }
2523
2587
 
2588
+ /**
2589
+ * Agent operations — create, list, delete persistent agents, and read an agent's
2590
+ * pinned config / workspace memberships. An agent is a real `agt-` user the server
2591
+ * logs in on behalf of when a DM, email or scheduled task wakes it.
2592
+ */
2593
+
2594
+ type UserResponse = components['schemas']['UserResponse'];
2595
+ type CreateAgentResponse = components['schemas']['CreateAgentResponse'];
2596
+ type AgentWorkspaceResponse = components['schemas']['AgentWorkspaceResponse'];
2597
+ type AuthorizeAgentResponse = components['schemas']['AuthorizeAgentResponse'];
2598
+ type AuthorizeLimitsResponse = components['schemas']['AuthorizeLimitsResponse'];
2599
+ declare function listAgents(arbi: ArbiClient): Promise<UserResponse[]>;
2600
+ /**
2601
+ * Create a persistent agent. Only `name` is accepted (alphanumeric, `_`/`-`).
2602
+ * The keypair is server-generated; `signing_private_key` is returned ONCE.
2603
+ * Pin a behaviour by saving a config with this agent's `agent_ext_id`.
2604
+ */
2605
+ declare function createAgent(arbi: ArbiClient, name: string): Promise<CreateAgentResponse>;
2606
+ /** Read an agent's pinned configuration (its `settings.last_config`). */
2607
+ declare function getAgentConfig(arbi: ArbiClient, agentExtId: string): Promise<{
2608
+ Agents: {
2609
+ ENABLED: boolean;
2610
+ HUMAN_IN_THE_LOOP: boolean;
2611
+ WEB_SEARCH_ENABLED: boolean;
2612
+ RUN_CODE_ENABLED: boolean;
2613
+ MCP_TOOLS: string[];
2614
+ PLANNING_ENABLED: boolean;
2615
+ DEEP_RESEARCH_ENABLED: boolean;
2616
+ SUBAGENTS_ENABLED: boolean;
2617
+ SUGGESTED_QUERIES: boolean;
2618
+ ARTIFACTS_ENABLED: boolean;
2619
+ IMAGE_ENABLED: boolean;
2620
+ VISION_ENABLED: boolean;
2621
+ CONVERSATION_SEARCH_ENABLED: boolean;
2622
+ PERSONAL_AGENT: boolean;
2623
+ FACTS_ENABLED: boolean;
2624
+ PERSIST_LEARNINGS: boolean;
2625
+ SKILLS_ENABLED: boolean;
2626
+ SKILL_CREATION: boolean;
2627
+ WORKSPACE_TOOLS_ENABLED: boolean;
2628
+ REMOTE_CONTROL_ENABLED: boolean;
2629
+ ENABLED_SKILLS?: string[] | null | undefined;
2630
+ MEMORY_CREATION: boolean;
2631
+ GOALS_ENABLED: boolean;
2632
+ GOAL_MAX_OUTER_LOOPS: number;
2633
+ PERSONA: string;
2634
+ AGENT_MODEL_NAME: string;
2635
+ AGENT_API_TYPE: "local" | "remote";
2636
+ LLM_AGENT_TEMPERATURE: number;
2637
+ AGENT_MAX_TOKENS: number;
2638
+ ENABLE_THINKING: boolean;
2639
+ AGENT_STRICT_TOOL_CALLS: boolean;
2640
+ AGENT_MAX_ITERATIONS: number;
2641
+ AGENT_TURN_CREDIT_BUDGET: number;
2642
+ AGENT_MAX_PARALLEL_TOOL_CALLS: number;
2643
+ AGENT_MAX_TOTAL_TOOL_CALLS: number;
2644
+ AGENT_MAX_RUN_TOKENS: number;
2645
+ AGENT_MAX_SUBAGENT_SPAWNS: number;
2646
+ AGENT_HISTORY_CHAR_THRESHOLD: number;
2647
+ AGENT_SYSTEM_PROMPT: string;
2648
+ };
2649
+ QueryLLM: {
2650
+ API_TYPE: "local" | "remote";
2651
+ ENABLE_THINKING: boolean;
2652
+ MODEL_NAME: string;
2653
+ SYSTEM_INSTRUCTION: string;
2654
+ MAX_TOKEN_SIZE_TO_ANSWER: number;
2655
+ TEMPERATURE: number;
2656
+ MAX_TOKENS: number;
2657
+ };
2658
+ ReviewLLM: {
2659
+ API_TYPE: "local" | "remote";
2660
+ ENABLE_THINKING: boolean;
2661
+ MODEL_NAME: string;
2662
+ SYSTEM_INSTRUCTION: string;
2663
+ TEMPERATURE: number;
2664
+ MAX_TOKENS: number;
2665
+ MAX_TOKEN_SIZE_TO_ANSWER: number;
2666
+ };
2667
+ EvaluatorLLM: {
2668
+ API_TYPE: "local" | "remote";
2669
+ ENABLE_THINKING: boolean;
2670
+ MODEL_NAME: string;
2671
+ SYSTEM_INSTRUCTION: string;
2672
+ TEMPERATURE: number;
2673
+ MAX_TOKENS: number;
2674
+ MAX_TOKEN_SIZE_TO_ANSWER: number;
2675
+ MAX_CHUNKS_PER_EVAL_CALL: number;
2676
+ MAX_CONCURRENT_EVAL_BATCHES: number;
2677
+ EVAL_BATCH_TIMEOUT_S: number;
2678
+ };
2679
+ TitleLLM: {
2680
+ API_TYPE: "local" | "remote";
2681
+ ENABLE_THINKING: boolean;
2682
+ MODEL_NAME: string;
2683
+ SYSTEM_INSTRUCTION: string;
2684
+ MAX_TOKEN_SIZE_TO_ANSWER: number;
2685
+ TEMPERATURE: number;
2686
+ MAX_TOKENS: number;
2687
+ };
2688
+ SummariseLLM: {
2689
+ API_TYPE: "local" | "remote";
2690
+ ENABLE_THINKING: boolean;
2691
+ MODEL_NAME: string;
2692
+ SYSTEM_INSTRUCTION: string;
2693
+ TEMPERATURE: number;
2694
+ MAX_TOKENS: number;
2695
+ MAX_TOKEN_SIZE_TO_ANSWER: number;
2696
+ COMPACTION_THRESHOLD_TOKENS: number;
2697
+ COMPACTION_KEEP_RECENT: number;
2698
+ };
2699
+ DoctagLLM: {
2700
+ API_TYPE: "local" | "remote";
2701
+ ENABLE_THINKING: boolean;
2702
+ MODEL_NAME: string;
2703
+ SYSTEM_INSTRUCTION: string;
2704
+ MAX_TOKEN_CONTEXT_TO_ANSWER: number;
2705
+ TEMPERATURE: number;
2706
+ MAX_TOKENS: number;
2707
+ MAX_CONCURRENT_DOCS: number;
2708
+ AUTO_RENAME: boolean;
2709
+ AUTO_RENAME_INSTRUCTION: string;
2710
+ DEFAULT_METADATA_TAGS?: {
2711
+ name: string;
2712
+ instruction?: string | null | undefined;
2713
+ tag_type?: {
2714
+ type: "checkbox" | "text" | "number" | "select" | "search" | "date";
2715
+ options: string[];
2716
+ } | undefined;
2717
+ }[] | undefined;
2718
+ };
2719
+ MemoryLLM: {
2720
+ API_TYPE: "local" | "remote";
2721
+ ENABLE_THINKING: boolean;
2722
+ MODEL_NAME: string;
2723
+ TEMPERATURE: number;
2724
+ MAX_TOKENS: number;
2725
+ MAX_TOKEN_CONTEXT: number;
2726
+ MAX_CONCURRENT: number;
2727
+ };
2728
+ PlanningLLM: {
2729
+ API_TYPE: "local" | "remote";
2730
+ ENABLE_THINKING: boolean;
2731
+ MODEL_NAME: string;
2732
+ SYSTEM_INSTRUCTION: string;
2733
+ TEMPERATURE: number;
2734
+ MAX_TOKENS: number;
2735
+ MAX_TOKEN_SIZE_TO_ANSWER: number;
2736
+ APPROVAL_TIMEOUT: number;
2737
+ };
2738
+ FilterPlanLLM: {
2739
+ API_TYPE: "local" | "remote";
2740
+ ENABLE_THINKING: boolean;
2741
+ MODEL_NAME: string;
2742
+ SYSTEM_INSTRUCTION: string;
2743
+ TEMPERATURE: number;
2744
+ MAX_TOKENS: number;
2745
+ };
2746
+ VisionLLM: {
2747
+ API_TYPE: "local" | "remote";
2748
+ ENABLE_THINKING: boolean;
2749
+ MODEL_NAME: string;
2750
+ TEMPERATURE: number;
2751
+ MAX_TOKENS: number;
2752
+ MAX_PAGES_PER_CALL: number;
2753
+ IMAGE_MAX_DIMENSION: number;
2754
+ };
2755
+ ImageGen: {
2756
+ API_TYPE: "local" | "remote";
2757
+ ENABLE_THINKING: boolean;
2758
+ MODEL_NAME: string;
2759
+ TEMPERATURE: number;
2760
+ };
2761
+ CodeAgent: {
2762
+ API_TYPE: "local" | "remote";
2763
+ ENABLE_THINKING: boolean;
2764
+ MODEL_NAME: string;
2765
+ SYSTEM_INSTRUCTION: string;
2766
+ TEMPERATURE: number;
2767
+ MAX_TOKENS: number;
2768
+ };
2769
+ ModelCitation: {
2770
+ SIM_THREASHOLD: number;
2771
+ MIN_CHAR_SIZE_TO_ANSWER: number;
2772
+ MAX_NUMB_CITATIONS: number;
2773
+ CITATION_INSTRUCTION: string;
2774
+ };
2775
+ WebSearch: {
2776
+ SAVE_SOURCES: boolean;
2777
+ };
2778
+ RunCode: {
2779
+ IMAGE: string;
2780
+ TIMEOUT_SECONDS: number;
2781
+ MEMORY_LIMIT: string;
2782
+ NETWORK: string;
2783
+ };
2784
+ Retriever: {
2785
+ agent?: {
2786
+ MIN_RETRIEVAL_SIM_SCORE: number;
2787
+ KEYWORD_MIN_TERM_OVERLAP_RATIO: number;
2788
+ MAX_DISTINCT_DOCUMENTS: number;
2789
+ MAX_TOTAL_CHUNKS_TO_RETRIEVE: number;
2790
+ GROUP_SIZE: number;
2791
+ SEARCH_MODE: components["schemas"]["SearchMode"];
2792
+ HYBRID_PREFETCH_LIMIT: number;
2793
+ HYBRID_DENSE_WEIGHT: number;
2794
+ HYBRID_SPARSE_WEIGHT: number;
2795
+ } | undefined;
2796
+ smart_search?: {
2797
+ MIN_RETRIEVAL_SIM_SCORE: number;
2798
+ KEYWORD_MIN_TERM_OVERLAP_RATIO: number;
2799
+ MAX_DISTINCT_DOCUMENTS: number;
2800
+ MAX_TOTAL_CHUNKS_TO_RETRIEVE: number;
2801
+ GROUP_SIZE: number;
2802
+ SEARCH_MODE: components["schemas"]["SearchMode"];
2803
+ HYBRID_PREFETCH_LIMIT: number;
2804
+ HYBRID_DENSE_WEIGHT: number;
2805
+ HYBRID_SPARSE_WEIGHT: number;
2806
+ } | undefined;
2807
+ };
2808
+ Reranker: {
2809
+ agent?: {
2810
+ MIN_SCORE: number;
2811
+ MAX_NUMB_OF_CHUNKS: number;
2812
+ } | undefined;
2813
+ smart_search?: {
2814
+ MIN_SCORE: number;
2815
+ MAX_NUMB_OF_CHUNKS: number;
2816
+ } | undefined;
2817
+ MAX_CONCURRENT_REQUESTS: number;
2818
+ MODEL_NAME: string;
2819
+ API_TYPE: "local" | "remote";
2820
+ RETRIEVAL_INSTRUCTION: string;
2821
+ };
2822
+ Parser: {
2823
+ SKIP_DUPLICATES: boolean;
2824
+ };
2825
+ Chunker: {
2826
+ MAX_CHUNK_TOKENS: number;
2827
+ TOKENIZER_NAME: string;
2828
+ };
2829
+ Embedder: {
2830
+ MODEL_NAME: string;
2831
+ API_TYPE: "local" | "remote";
2832
+ BATCH_SIZE: number;
2833
+ MAX_CONCURRENT_REQUESTS: number;
2834
+ DOCUMENT_PREFIX: string;
2835
+ QUERY_PREFIX: string;
2836
+ };
2837
+ KeywordEmbedder: {
2838
+ DIMENSION_SPACE: number;
2839
+ FILTER_STOPWORDS: boolean;
2840
+ BM25_K1: number;
2841
+ BM25_B: number;
2842
+ BM25_AVGDL: number;
2843
+ CJK_NGRAM_SIZE: number;
2844
+ NORMALIZE_TRADITIONAL_TO_SIMPLIFIED: boolean;
2845
+ };
2846
+ } | {
2847
+ Agents: {
2848
+ ENABLED: boolean;
2849
+ HUMAN_IN_THE_LOOP: boolean;
2850
+ WEB_SEARCH_ENABLED: boolean;
2851
+ RUN_CODE_ENABLED: boolean;
2852
+ MCP_TOOLS: string[];
2853
+ PLANNING_ENABLED: boolean;
2854
+ DEEP_RESEARCH_ENABLED: boolean;
2855
+ SUBAGENTS_ENABLED: boolean;
2856
+ SUGGESTED_QUERIES: boolean;
2857
+ ARTIFACTS_ENABLED: boolean;
2858
+ IMAGE_ENABLED: boolean;
2859
+ VISION_ENABLED: boolean;
2860
+ CONVERSATION_SEARCH_ENABLED: boolean;
2861
+ FACTS_ENABLED: boolean;
2862
+ PERSIST_LEARNINGS: boolean;
2863
+ SKILLS_ENABLED: boolean;
2864
+ WORKSPACE_TOOLS_ENABLED: boolean;
2865
+ REMOTE_CONTROL_ENABLED: boolean;
2866
+ ENABLED_SKILLS?: string[] | null | undefined;
2867
+ GOALS_ENABLED: boolean;
2868
+ GOAL_MAX_OUTER_LOOPS: number;
2869
+ PERSONA: string;
2870
+ AGENT_MODEL_NAME: string;
2871
+ ENABLE_THINKING: boolean;
2872
+ AGENT_MAX_ITERATIONS: number;
2873
+ AGENT_TURN_CREDIT_BUDGET: number;
2874
+ };
2875
+ DoctagLLM: {
2876
+ AUTO_RENAME: boolean;
2877
+ AUTO_RENAME_INSTRUCTION: string;
2878
+ DEFAULT_METADATA_TAGS?: {
2879
+ name: string;
2880
+ instruction?: string | null | undefined;
2881
+ tag_type?: {
2882
+ type: "checkbox" | "text" | "number" | "select" | "search" | "date";
2883
+ options: string[];
2884
+ } | undefined;
2885
+ }[] | undefined;
2886
+ };
2887
+ Parser: {
2888
+ SKIP_DUPLICATES: boolean;
2889
+ };
2890
+ }>;
2891
+ /** List the workspaces an agent is a member of. */
2892
+ declare function listAgentWorkspaces(arbi: ArbiClient, agentExtId: string): Promise<AgentWorkspaceResponse[]>;
2893
+ declare function deleteAgents(arbi: ArbiClient, agentExtIds: string[]): Promise<{
2894
+ [x: string]: unknown;
2895
+ }>;
2896
+ /**
2897
+ * Mint a fresh, TTL'd run session for the caller's own agent
2898
+ * (`POST /v1/agents/{id}/authorize`). The response carries the session's public key; deposit a
2899
+ * temporary workspace key on it with `Arbi.workspaces.grantTemporaryAccess()` (or do both in one
2900
+ * call with `Arbi.agents.grantTemporaryAccess()`). `ttlSeconds` omitted = the deployment default.
2901
+ */
2902
+ declare function authorizeAgent(arbi: ArbiClient, agentExtId: string, workspaceExtId: string, ttlSeconds?: number): Promise<AuthorizeAgentResponse>;
2903
+ /** The default and maximum lifetime of a temporary agent authorization. */
2904
+ declare function getAuthorizeLimits(arbi: ArbiClient): Promise<AuthorizeLimitsResponse>;
2905
+ /** The owned agent's independent login, separate from the human caller's session. */
2906
+ declare function getAgentSession(arbi: ArbiClient, agentId: string): Promise<{
2907
+ backend: string;
2908
+ active: boolean;
2909
+ workspace_ext_id?: string | null | undefined;
2910
+ workspace_name?: string | null | undefined;
2911
+ }>;
2912
+ declare function startAgentSession(arbi: ArbiClient, agentId: string, workspaceId?: string): Promise<{
2913
+ backend: string;
2914
+ active: boolean;
2915
+ workspace_ext_id?: string | null | undefined;
2916
+ workspace_name?: string | null | undefined;
2917
+ }>;
2918
+ declare function closeAgentSession(arbi: ArbiClient, agentId: string): Promise<void>;
2919
+ declare function listAgentChats(arbi: ArbiClient, agentId: string): Promise<{
2920
+ conversation_ext_id: string;
2921
+ workspace_ext_id: string;
2922
+ workspace_name: string;
2923
+ title: string;
2924
+ updated_at: string;
2925
+ }[]>;
2926
+ interface StagedAgentFile {
2927
+ path: string;
2928
+ name: string;
2929
+ }
2930
+ /** Stage a file in the agent sandbox without adding it to the workspace document library. */
2931
+ declare function stageAgentFile(auth: AuthHeaders, agentId: string, file: Blob, name: string): Promise<StagedAgentFile>;
2932
+
2933
+ type agents_AuthorizeAgentResponse = AuthorizeAgentResponse;
2934
+ type agents_AuthorizeLimitsResponse = AuthorizeLimitsResponse;
2935
+ type agents_StagedAgentFile = StagedAgentFile;
2936
+ declare const agents_authorizeAgent: typeof authorizeAgent;
2937
+ declare const agents_closeAgentSession: typeof closeAgentSession;
2938
+ declare const agents_createAgent: typeof createAgent;
2939
+ declare const agents_deleteAgents: typeof deleteAgents;
2940
+ declare const agents_getAgentConfig: typeof getAgentConfig;
2941
+ declare const agents_getAgentSession: typeof getAgentSession;
2942
+ declare const agents_getAuthorizeLimits: typeof getAuthorizeLimits;
2943
+ declare const agents_listAgentChats: typeof listAgentChats;
2944
+ declare const agents_listAgentWorkspaces: typeof listAgentWorkspaces;
2945
+ declare const agents_listAgents: typeof listAgents;
2946
+ declare const agents_stageAgentFile: typeof stageAgentFile;
2947
+ declare const agents_startAgentSession: typeof startAgentSession;
2948
+ declare namespace agents {
2949
+ export { type agents_AuthorizeAgentResponse as AuthorizeAgentResponse, type agents_AuthorizeLimitsResponse as AuthorizeLimitsResponse, type agents_StagedAgentFile as StagedAgentFile, agents_authorizeAgent as authorizeAgent, agents_closeAgentSession as closeAgentSession, agents_createAgent as createAgent, agents_deleteAgents as deleteAgents, agents_getAgentConfig as getAgentConfig, agents_getAgentSession as getAgentSession, agents_getAuthorizeLimits as getAuthorizeLimits, agents_listAgentChats as listAgentChats, agents_listAgentWorkspaces as listAgentWorkspaces, agents_listAgents as listAgents, agents_stageAgentFile as stageAgentFile, agents_startAgentSession as startAgentSession };
2950
+ }
2951
+
2524
2952
  /**
2525
2953
  * User profile operations — the current user's display identity.
2526
2954
  */
@@ -2746,10 +3174,22 @@ interface ArbiOptions {
2746
3174
  credentials?: 'include' | 'omit' | 'same-origin';
2747
3175
  }
2748
3176
  interface QueryOptions {
3177
+ /** Run through this owned agent and its independent login. */
3178
+ agentId?: string;
3179
+ /** Explicit workspace for an independent agent chat. */
3180
+ workspaceId?: string;
3181
+ /** Existing Word document to edit through tracked native operations. */
3182
+ activeArtifactExtId?: string;
2749
3183
  /** Document IDs to search against */
2750
3184
  docIds: string[];
2751
3185
  /** Previous response ID for follow-up questions */
2752
3186
  previousResponseId?: string | null;
3187
+ /** Existing task or conversation, including one with no previous response yet. */
3188
+ conversationId?: string;
3189
+ /** Mode for a newly created conversation. */
3190
+ assistantMode?: AssistantQueryOptions['assistantMode'];
3191
+ /** Workspace people and assistant mentions in the question. */
3192
+ mentions?: AssistantQueryOptions['mentions'];
2753
3193
  /** Model to use for generation */
2754
3194
  model?: string;
2755
3195
  /** Aborts the request and the stream; the returned promise rejects with an `AbortError`. */
@@ -2812,6 +3252,8 @@ declare class Arbi {
2812
3252
  * Useful for session recovery without re-entering the password.
2813
3253
  */
2814
3254
  loginWithKey(email: string, signingPrivateKeyBase64: string): Promise<void>;
3255
+ /** Recover browser authentication using the encrypted signing key already in IndexedDB. */
3256
+ restoreSession(email: string): Promise<boolean>;
2815
3257
  /** A workspace's key, sealed to the caller's own session (what `/open` and `POST /workspace/users` take). */
2816
3258
  private sealWorkspaceKey;
2817
3259
  /**
@@ -3317,6 +3759,7 @@ declare class Arbi {
3317
3759
  is_sso: boolean;
3318
3760
  };
3319
3761
  workspace_ext_id?: string | null | undefined;
3762
+ dm_context_only: boolean;
3320
3763
  content?: string | null | undefined;
3321
3764
  conversation_ext_id?: string | null | undefined;
3322
3765
  message_ext_id?: string | null | undefined;
@@ -3618,6 +4061,7 @@ declare class Arbi {
3618
4061
  workflow_ext_id?: string | null | undefined;
3619
4062
  agent_ext_id?: string | null | undefined;
3620
4063
  skill_ref?: string | null | undefined;
4064
+ has_agent_action?: boolean | undefined;
3621
4065
  auth_mode?: (components["schemas"]["src__models__work__AuthMode"] | null) | undefined;
3622
4066
  plan?: {
3623
4067
  goal: string;
@@ -3847,6 +4291,7 @@ declare class Arbi {
3847
4291
  workflow_ext_id?: string | null;
3848
4292
  agent_ext_id?: string | null;
3849
4293
  skill_ref?: string | null;
4294
+ has_agent_action?: boolean;
3850
4295
  auth_mode?: components["schemas"]["src__models__work__AuthMode"] | null;
3851
4296
  plan?: components["schemas"]["TaskPlan"] | null;
3852
4297
  goal_state?: {
@@ -3883,6 +4328,7 @@ declare class Arbi {
3883
4328
  workflow_ext_id?: string | null;
3884
4329
  agent_ext_id?: string | null;
3885
4330
  skill_ref?: string | null;
4331
+ has_agent_action?: boolean;
3886
4332
  auth_mode?: components["schemas"]["src__models__work__AuthMode"] | null;
3887
4333
  plan?: components["schemas"]["TaskPlan"] | null;
3888
4334
  goal_state?: {
@@ -3919,6 +4365,7 @@ declare class Arbi {
3919
4365
  workflow_ext_id?: string | null;
3920
4366
  agent_ext_id?: string | null;
3921
4367
  skill_ref?: string | null;
4368
+ has_agent_action?: boolean;
3922
4369
  auth_mode?: components["schemas"]["src__models__work__AuthMode"] | null;
3923
4370
  plan?: components["schemas"]["TaskPlan"] | null;
3924
4371
  goal_state?: {
@@ -3955,6 +4402,7 @@ declare class Arbi {
3955
4402
  workflow_ext_id?: string | null;
3956
4403
  agent_ext_id?: string | null;
3957
4404
  skill_ref?: string | null;
4405
+ has_agent_action?: boolean;
3958
4406
  auth_mode?: components["schemas"]["src__models__work__AuthMode"] | null;
3959
4407
  plan?: components["schemas"]["TaskPlan"] | null;
3960
4408
  goal_state?: {
@@ -3991,6 +4439,7 @@ declare class Arbi {
3991
4439
  workflow_ext_id?: string | null;
3992
4440
  agent_ext_id?: string | null;
3993
4441
  skill_ref?: string | null;
4442
+ has_agent_action?: boolean;
3994
4443
  auth_mode?: components["schemas"]["src__models__work__AuthMode"] | null;
3995
4444
  plan?: components["schemas"]["TaskPlan"] | null;
3996
4445
  goal_state?: {
@@ -4056,6 +4505,7 @@ declare class Arbi {
4056
4505
  workflow_ext_id?: string | null;
4057
4506
  agent_ext_id?: string | null;
4058
4507
  skill_ref?: string | null;
4508
+ has_agent_action?: boolean;
4059
4509
  auth_mode?: components["schemas"]["src__models__work__AuthMode"] | null;
4060
4510
  plan?: components["schemas"]["TaskPlan"] | null;
4061
4511
  goal_state?: {
@@ -4420,7 +4870,82 @@ declare class Arbi {
4420
4870
  assistant_mode: components["schemas"]["AssistantMode"];
4421
4871
  }>;
4422
4872
  };
4873
+ /** Persisted notifications also arrive on the normal workspace WebSocket. */
4874
+ readonly notifications: {
4875
+ list: (type?: components["schemas"]["NotificationType"]) => Promise<{
4876
+ type: components["schemas"]["NotificationType"];
4877
+ external_id: string;
4878
+ sender: {
4879
+ external_id: string;
4880
+ parent_ext_id?: string | null | undefined;
4881
+ email: string;
4882
+ given_name: string;
4883
+ family_name?: string | null | undefined;
4884
+ picture?: string | null | undefined;
4885
+ encryption_public_key: string;
4886
+ is_sso: boolean;
4887
+ };
4888
+ recipient: {
4889
+ external_id: string;
4890
+ parent_ext_id?: string | null | undefined;
4891
+ email: string;
4892
+ given_name: string;
4893
+ family_name?: string | null | undefined;
4894
+ picture?: string | null | undefined;
4895
+ encryption_public_key: string;
4896
+ is_sso: boolean;
4897
+ };
4898
+ workspace_ext_id?: string | null | undefined;
4899
+ dm_context_only: boolean;
4900
+ content?: string | null | undefined;
4901
+ conversation_ext_id?: string | null | undefined;
4902
+ message_ext_id?: string | null | undefined;
4903
+ read: boolean;
4904
+ created_at: string;
4905
+ updated_at: string;
4906
+ }[]>;
4907
+ markRead: (ids: string[]) => Promise<void>;
4908
+ };
4909
+ /** Authenticated native Word transport, with normal session recovery. */
4910
+ readonly editor: {
4911
+ request: (path: string, options?: RequestInit) => Promise<Response>;
4912
+ };
4423
4913
  readonly assistant: {
4914
+ cancelRun: (responseId: string) => Promise<void>;
4915
+ /** Start a durable background turn; task options make its thread a reviewable work item. */
4916
+ submit: (question: string, options: Omit<SubmitBackgroundQueryOptions, keyof AuthHeaders | "workspaceId" | "question">) => Promise<{
4917
+ id: string;
4918
+ object: "response";
4919
+ status: "completed" | "in_progress" | "queued" | "cancelled" | "failed" | "incomplete";
4920
+ created_at?: number | null;
4921
+ model?: string | null;
4922
+ background: boolean;
4923
+ output: components["schemas"]["ResponsesAPIOutputMessage"][];
4924
+ usage?: components["schemas"]["ResponsesAPIUsage"] | null;
4925
+ error?: {
4926
+ [key: string]: unknown;
4927
+ } | null;
4928
+ metadata?: {
4929
+ [key: string]: unknown;
4930
+ } | null;
4931
+ }>;
4932
+ /** Read the status of a background turn. */
4933
+ getResponse: (id: string) => Promise<{
4934
+ id: string;
4935
+ object: "response";
4936
+ status: "completed" | "in_progress" | "queued" | "cancelled" | "failed" | "incomplete";
4937
+ created_at?: number | null;
4938
+ model?: string | null;
4939
+ background: boolean;
4940
+ output: components["schemas"]["ResponsesAPIOutputMessage"][];
4941
+ usage?: components["schemas"]["ResponsesAPIUsage"] | null;
4942
+ error?: {
4943
+ [key: string]: unknown;
4944
+ } | null;
4945
+ metadata?: {
4946
+ [key: string]: unknown;
4947
+ } | null;
4948
+ }>;
4424
4949
  /**
4425
4950
  * Send a question to the RAG assistant with streaming support.
4426
4951
  * Returns the accumulated result after the stream completes.
@@ -4635,6 +5160,7 @@ declare class Arbi {
4635
5160
  sender: components["schemas"]["UserResponse"];
4636
5161
  recipient: components["schemas"]["UserResponse"];
4637
5162
  workspace_ext_id?: string | null;
5163
+ dm_context_only: boolean;
4638
5164
  content?: string | null;
4639
5165
  conversation_ext_id?: string | null;
4640
5166
  message_ext_id?: string | null;
@@ -4653,6 +5179,7 @@ declare class Arbi {
4653
5179
  sender: components["schemas"]["UserResponse"];
4654
5180
  recipient: components["schemas"]["UserResponse"];
4655
5181
  workspace_ext_id?: string | null;
5182
+ dm_context_only: boolean;
4656
5183
  content?: string | null;
4657
5184
  conversation_ext_id?: string | null;
4658
5185
  message_ext_id?: string | null;
@@ -4670,6 +5197,7 @@ declare class Arbi {
4670
5197
  sender: components["schemas"]["UserResponse"];
4671
5198
  recipient: components["schemas"]["UserResponse"];
4672
5199
  workspace_ext_id?: string | null;
5200
+ dm_context_only: boolean;
4673
5201
  content?: string | null;
4674
5202
  conversation_ext_id?: string | null;
4675
5203
  message_ext_id?: string | null;
@@ -4703,6 +5231,7 @@ declare class Arbi {
4703
5231
  is_sso: boolean;
4704
5232
  };
4705
5233
  workspace_ext_id?: string | null | undefined;
5234
+ dm_context_only: boolean;
4706
5235
  content?: string | null | undefined;
4707
5236
  conversation_ext_id?: string | null | undefined;
4708
5237
  message_ext_id?: string | null | undefined;
@@ -4739,6 +5268,7 @@ declare class Arbi {
4739
5268
  is_sso: boolean;
4740
5269
  };
4741
5270
  workspace_ext_id?: string | null | undefined;
5271
+ dm_context_only: boolean;
4742
5272
  content?: string | null | undefined;
4743
5273
  conversation_ext_id?: string | null | undefined;
4744
5274
  message_ext_id?: string | null | undefined;
@@ -5236,6 +5766,27 @@ declare class Arbi {
5236
5766
  getContent: (fileId: string) => Promise<Response>;
5237
5767
  };
5238
5768
  readonly agents: {
5769
+ getSession: (agentId: string) => Promise<{
5770
+ backend: string;
5771
+ active: boolean;
5772
+ workspace_ext_id?: string | null | undefined;
5773
+ workspace_name?: string | null | undefined;
5774
+ }>;
5775
+ startSession: (agentId: string, workspaceId?: string) => Promise<{
5776
+ backend: string;
5777
+ active: boolean;
5778
+ workspace_ext_id?: string | null | undefined;
5779
+ workspace_name?: string | null | undefined;
5780
+ }>;
5781
+ closeSession: (agentId: string) => Promise<void>;
5782
+ listChats: (agentId: string) => Promise<{
5783
+ conversation_ext_id: string;
5784
+ workspace_ext_id: string;
5785
+ workspace_name: string;
5786
+ title: string;
5787
+ updated_at: string;
5788
+ }[]>;
5789
+ stageFile: (agentId: string, file: Blob, name: string) => Promise<StagedAgentFile>;
5239
5790
  list: () => Promise<{
5240
5791
  external_id: string;
5241
5792
  parent_ext_id?: string | null;
@@ -6681,46 +7232,6 @@ declare namespace health {
6681
7232
  export { health_getHealth as getHealth, health_getHealthModels as getHealthModels, health_getMcpTools as getMcpTools, health_getRemoteModels as getRemoteModels };
6682
7233
  }
6683
7234
 
6684
- /**
6685
- * Responses operations — background query submission and retrieval.
6686
- *
6687
- * submitBackgroundQuery: POST /v1/responses with background=true → 202 with task ID.
6688
- * getResponse: GET /v1/responses/{responseId} → current status + output.
6689
- * extractResponseText: Walk response output and join text content.
6690
- */
6691
-
6692
- type ResponsesAPIResponse = components['schemas']['ResponsesAPIResponse'];
6693
- interface SubmitBackgroundQueryOptions extends AuthHeaders {
6694
- workspaceId: string;
6695
- question: string;
6696
- docIds: string[];
6697
- previousResponseId?: string | null;
6698
- model?: string;
6699
- }
6700
- /**
6701
- * Submit a query for background processing.
6702
- * Returns immediately with a response ID and "queued" status.
6703
- */
6704
- declare function submitBackgroundQuery(options: SubmitBackgroundQueryOptions): Promise<ResponsesAPIResponse>;
6705
- /**
6706
- * Fetch the current state of a response by ID.
6707
- * Returns progressive status, output, usage, and metadata.
6708
- */
6709
- declare function getResponse(auth: AuthHeaders, responseId: string): Promise<ResponsesAPIResponse>;
6710
- /**
6711
- * Walk response output messages and join all output_text content.
6712
- * Pure function, no I/O.
6713
- */
6714
- declare function extractResponseText(response: ResponsesAPIResponse): string;
6715
-
6716
- type responses_SubmitBackgroundQueryOptions = SubmitBackgroundQueryOptions;
6717
- declare const responses_extractResponseText: typeof extractResponseText;
6718
- declare const responses_getResponse: typeof getResponse;
6719
- declare const responses_submitBackgroundQuery: typeof submitBackgroundQuery;
6720
- declare namespace responses {
6721
- export { type responses_SubmitBackgroundQueryOptions as SubmitBackgroundQueryOptions, responses_extractResponseText as extractResponseText, responses_getResponse as getResponse, responses_submitBackgroundQuery as submitBackgroundQuery };
6722
- }
6723
-
6724
7235
  /**
6725
7236
  * Project operations — list, create, update, delete, checkout, refresh, usage.
6726
7237
  */
@@ -6977,4 +7488,4 @@ declare namespace account {
6977
7488
  export { account_confirmEmailChange as confirmEmailChange, account_requestDeletion as requestDeletion, account_requestEmailChange as requestEmailChange };
6978
7489
  }
6979
7490
 
6980
- export { type QueryOptions as $, type ActivityKind as A, type DeferredInterjectionEvent as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type DmCryptoContext as E, type DocNameMap as F, type DocumentListFields as G, type DocumentListOrder as H, type DocumentWaiter as I, type DocumentWaiterOptions as J, type FactResponse as K, type FactSearchRequest as L, type FactSearchResponse as M, type FormattedWsMessage as N, type ListAllOptions as O, type ListFactsOptions as P, type ListPaginatedOptions as Q, type MessageLevel as R, type MessageMetadataPayload$1 as S, type MessageQueuedEvent as T, type OutputTokensDetails as U, type ParsedSlashCommand as V, type PendingAuthResponse as W, type PlanWorkRequest as X, type ProbeAnswerEvent as Y, type ProjectInvoicesResponse as Z, type ProjectUsageResponse as _, type ActivityResponse as a, files as a$, type ReconnectOptions as a0, type ReconnectableWsConnection as a1, type RequestApprovalRequest as a2, type ResolvedCitation as a3, type ResolvedRecipient as a4, type ResponseCompletedEvent as a5, type ResponseContentPartAddedEvent as a6, type ResponseCreatedEvent as a7, type ResponseFailedEvent as a8, type ResponseOutputItemAddedEvent as a9, WebSocketAuthError as aA, type WorkStatus as aB, type WorkflowAuthMode as aC, type WorkflowResponse as aD, type WorkflowRunResponse as aE, type WorkspaceContext as aF, type WsConnection as aG, account as aH, agentconfig as aI, assistant as aJ, authenticatedFetch as aK, buildDocNameMap as aL, buildRetrievalChunkTool as aM, buildRetrievalFullContextTool as aN, buildRetrievalTocTool as aO, connectWebSocket as aP, connectWithReconnect as aQ, consumeSSEStream as aR, contacts as aS, conversations as aT, countCitations as aU, createAuthenticatedClient as aV, createDocumentWaiter as aW, dm as aX, doctags as aY, documents as aZ, facts as a_, type ResponseOutputItemDoneEvent as aa, type ResponseOutputTextDeltaEvent as ab, type ResponseOutputTextDoneEvent as ac, type ResponseUsage as ad, type ReviewWorkRequest as ae, type SSEEvent as af, type SSEStreamCallbacks as ag, type SSEStreamResult as ah, type SSEStreamStartData as ai, SUPPORTED_EXTENSIONS as aj, type SkillSummary as ak, type SkippedFile as al, type TaskPlan as am, type TokenBudgetContext as an, type UpdateConversationRequest as ao, type UpdateFactRequest as ap, type UpdateWorkflowRequest as aq, type UploadBatchResult as ar, type UploadDirectOptions as as, type UploadDirectResult as at, type UploadOptions as au, type UploadResult as av, type UserDailyUsageResponse as aw, type UserInfo as ax, type UserInputRequestEvent as ay, type UserMessageEvent as az, type AgentControlStateEvent as b, filterSkills as b0, formatAgentStepLabel as b1, formatFileSize as b2, formatItemLabel as b3, formatStreamSummary as b4, formatUserName as b5, formatWorkspaceChoices as b6, formatWsMessage as b7, generateEncryptedWorkspaceKey as b8, generateNewWorkspaceKey as b9, work as bA, workflows as bB, workspaces as bC, getErrorCode as ba, getErrorMessage as bb, getRawWorkspaceKey as bc, health as bd, parseSSEEvents as be, parseSlashCommand as bf, parseSlashTokenInProgress as bg, performPasswordLogin as bh, performSigningKeyLogin as bi, performSsoDeviceFlowLogin as bj, profile as bk, projects as bl, requireData as bm, requireOk as bn, resolveAuth as bo, resolveCitations as bp, resolveWorkspace as bq, responses as br, selectWorkspace as bs, selectWorkspaceById as bt, sessions as bu, settings as bv, streamSSE as bw, stripCitationMarkdown as bx, summarizeCitations as by, tags as bz, type AgentStepDeltaEvent as c, type AgentStepEvent as d, Arbi as e, ArbiApiError as f, ArbiError as g, type ArbiErrorEvent as h, type ArbiOptions as i, ArbiSessionExpiredError as j, type ArtifactEvent as k, type AuthContext as l, type AuthHeaders as m, type AuthMode as n, type AuthenticatedClient as o, type CitationSummary as p, type CliConfig as q, type CliCredentials as r, type CommandDescriptor as s, type ConfigStore as t, type ConnectOptions as u, type ConversationResponse as v, type CreateFactRequest as w, type CreateFactsRequest as x, type CreateWorkRequest as y, type CreateWorkflowRequest as z };
7491
+ export { type QueryOptions as $, type ActivityKind as A, type DeferredInterjectionEvent as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type DmCryptoContext as E, type DocNameMap as F, type DocumentListFields as G, type DocumentListOrder as H, type DocumentWaiter as I, type DocumentWaiterOptions as J, type FactResponse as K, type FactSearchRequest as L, type FactSearchResponse as M, type FormattedWsMessage as N, type ListAllOptions as O, type ListFactsOptions as P, type ListPaginatedOptions as Q, type MessageLevel as R, type MessageMetadataPayload$1 as S, type MessageQueuedEvent as T, type OutputTokensDetails as U, type ParsedSlashCommand as V, type PendingAuthResponse as W, type PlanWorkRequest as X, type ProbeAnswerEvent as Y, type ProjectInvoicesResponse as Z, type ProjectUsageResponse as _, type ActivityResponse as a, documents as a$, type ReconnectOptions as a0, type ReconnectableWsConnection as a1, type RequestApprovalRequest as a2, type ResolvedCitation as a3, type ResolvedRecipient as a4, type ResponseCompletedEvent as a5, type ResponseContentPartAddedEvent as a6, type ResponseCreatedEvent as a7, type ResponseFailedEvent as a8, type ResponseOutputItemAddedEvent as a9, type UserMessageEvent as aA, WebSocketAuthError as aB, type WorkStatus as aC, type WorkflowAuthMode as aD, type WorkflowResponse as aE, type WorkflowRunResponse as aF, type WorkspaceContext as aG, type WsConnection as aH, account as aI, agentconfig as aJ, agents as aK, assistant as aL, authenticatedFetch as aM, buildDocNameMap as aN, buildRetrievalChunkTool as aO, buildRetrievalFullContextTool as aP, buildRetrievalTocTool as aQ, connectWebSocket as aR, connectWithReconnect as aS, consumeSSEStream as aT, contacts as aU, conversations as aV, countCitations as aW, createAuthenticatedClient as aX, createDocumentWaiter as aY, dm as aZ, doctags as a_, type ResponseOutputItemDoneEvent as aa, type ResponseOutputTextDeltaEvent as ab, type ResponseOutputTextDoneEvent as ac, type ResponseUsage as ad, type ReviewWorkRequest as ae, type SSEEvent as af, type SSEStreamCallbacks as ag, type SSEStreamResult as ah, type SSEStreamStartData as ai, SUPPORTED_EXTENSIONS as aj, type SkillSummary as ak, type SkippedFile as al, type SubmitBackgroundQueryOptions as am, type TaskPlan as an, type TokenBudgetContext as ao, type UpdateConversationRequest as ap, type UpdateFactRequest as aq, type UpdateWorkflowRequest as ar, type UploadBatchResult as as, type UploadDirectOptions as at, type UploadDirectResult as au, type UploadOptions as av, type UploadResult as aw, type UserDailyUsageResponse as ax, type UserInfo as ay, type UserInputRequestEvent as az, type AgentControlStateEvent as b, facts as b0, files as b1, filterSkills as b2, formatAgentStepLabel as b3, formatFileSize as b4, formatItemLabel as b5, formatStreamSummary as b6, formatUserName as b7, formatWorkspaceChoices as b8, formatWsMessage as b9, summarizeCitations as bA, tags as bB, work as bC, workflows as bD, workspaces as bE, generateEncryptedWorkspaceKey as ba, generateNewWorkspaceKey as bb, getErrorCode as bc, getErrorMessage as bd, getRawWorkspaceKey as be, health as bf, parseSSEEvents as bg, parseSlashCommand as bh, parseSlashTokenInProgress as bi, performPasswordLogin as bj, performSigningKeyLogin as bk, performSsoDeviceFlowLogin as bl, profile as bm, projects as bn, requireData as bo, requireOk as bp, resolveAuth as bq, resolveCitations as br, resolveWorkspace as bs, responses as bt, selectWorkspace as bu, selectWorkspaceById as bv, sessions as bw, settings as bx, streamSSE as by, stripCitationMarkdown as bz, type AgentStepDeltaEvent as c, type AgentStepEvent as d, Arbi as e, ArbiApiError as f, ArbiError as g, type ArbiErrorEvent as h, type ArbiOptions as i, ArbiSessionExpiredError as j, type ArtifactEvent as k, type AuthContext as l, type AuthHeaders as m, type AuthMode as n, type AuthenticatedClient as o, type CitationSummary as p, type CliConfig as q, type CliCredentials as r, type CommandDescriptor as s, type ConfigStore as t, type ConnectOptions as u, type ConversationResponse as v, type CreateFactRequest as w, type CreateFactsRequest as x, type CreateWorkRequest as y, type CreateWorkflowRequest as z };