@arbidocs/sdk 0.4.25 → 0.4.28
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/{browser-C9-wve7D.d.cts → browser-AwN8DBBO.d.cts} +501 -45
- package/dist/{browser-C9-wve7D.d.ts → browser-AwN8DBBO.d.ts} +501 -45
- package/dist/browser.cjs +176 -67
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +176 -67
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +182 -68
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -335
- package/dist/index.d.ts +4 -335
- package/dist/index.js +182 -68
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -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,18 +1928,22 @@ interface RetrieveResult {
|
|
|
1923
1928
|
*/
|
|
1924
1929
|
declare function retrieve(options: RetrieveOptions): Promise<RetrieveResult>;
|
|
1925
1930
|
interface AssistantQueryOptions extends AuthHeaders {
|
|
1931
|
+
agentId?: string;
|
|
1926
1932
|
activeArtifactExtId?: string;
|
|
1927
1933
|
workspaceId: string;
|
|
1928
1934
|
question: string;
|
|
1929
1935
|
docIds: string[];
|
|
1930
1936
|
previousResponseId?: string | null;
|
|
1937
|
+
/** Attach the first answer to an existing empty task/thread. */
|
|
1938
|
+
conversationId?: string;
|
|
1939
|
+
assistantMode?: MessageInput$1['assistant_mode'];
|
|
1931
1940
|
model?: string;
|
|
1932
1941
|
/**
|
|
1933
1942
|
* Structured @mentions in `question`. A person mention shares the conversation and
|
|
1934
1943
|
* notifies them; an assistant mention is what runs the assistant in a `mentioned`
|
|
1935
1944
|
* conversation.
|
|
1936
1945
|
*/
|
|
1937
|
-
mentions?: MessageInput['mentions'];
|
|
1946
|
+
mentions?: MessageInput$1['mentions'];
|
|
1938
1947
|
/** Aborts the request and the stream (stop generating). */
|
|
1939
1948
|
signal?: AbortSignal;
|
|
1940
1949
|
}
|
|
@@ -2042,6 +2051,8 @@ declare function filterSkills<T extends {
|
|
|
2042
2051
|
slug?: string;
|
|
2043
2052
|
name: string;
|
|
2044
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>;
|
|
2045
2056
|
|
|
2046
2057
|
type assistant_AssistantQueryOptions = AssistantQueryOptions;
|
|
2047
2058
|
type assistant_Chunk = Chunk;
|
|
@@ -2054,6 +2065,7 @@ type assistant_SkillSummary = SkillSummary;
|
|
|
2054
2065
|
declare const assistant_buildRetrievalChunkTool: typeof buildRetrievalChunkTool;
|
|
2055
2066
|
declare const assistant_buildRetrievalFullContextTool: typeof buildRetrievalFullContextTool;
|
|
2056
2067
|
declare const assistant_buildRetrievalTocTool: typeof buildRetrievalTocTool;
|
|
2068
|
+
declare const assistant_cancelAssistantRun: typeof cancelAssistantRun;
|
|
2057
2069
|
declare const assistant_filterSkills: typeof filterSkills;
|
|
2058
2070
|
declare const assistant_listCommands: typeof listCommands;
|
|
2059
2071
|
declare const assistant_listSkills: typeof listSkills;
|
|
@@ -2063,7 +2075,52 @@ declare const assistant_queryAssistant: typeof queryAssistant;
|
|
|
2063
2075
|
declare const assistant_respondToAgent: typeof respondToAgent;
|
|
2064
2076
|
declare const assistant_retrieve: typeof retrieve;
|
|
2065
2077
|
declare namespace assistant {
|
|
2066
|
-
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 };
|
|
2067
2124
|
}
|
|
2068
2125
|
|
|
2069
2126
|
/**
|
|
@@ -2528,6 +2585,370 @@ declare namespace files {
|
|
|
2528
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 };
|
|
2529
2586
|
}
|
|
2530
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
|
+
|
|
2531
2952
|
/**
|
|
2532
2953
|
* User profile operations — the current user's display identity.
|
|
2533
2954
|
*/
|
|
@@ -2753,12 +3174,22 @@ interface ArbiOptions {
|
|
|
2753
3174
|
credentials?: 'include' | 'omit' | 'same-origin';
|
|
2754
3175
|
}
|
|
2755
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;
|
|
2756
3181
|
/** Existing Word document to edit through tracked native operations. */
|
|
2757
3182
|
activeArtifactExtId?: string;
|
|
2758
3183
|
/** Document IDs to search against */
|
|
2759
3184
|
docIds: string[];
|
|
2760
3185
|
/** Previous response ID for follow-up questions */
|
|
2761
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'];
|
|
2762
3193
|
/** Model to use for generation */
|
|
2763
3194
|
model?: string;
|
|
2764
3195
|
/** Aborts the request and the stream; the returned promise rejects with an `AbortError`. */
|
|
@@ -2821,6 +3252,8 @@ declare class Arbi {
|
|
|
2821
3252
|
* Useful for session recovery without re-entering the password.
|
|
2822
3253
|
*/
|
|
2823
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>;
|
|
2824
3257
|
/** A workspace's key, sealed to the caller's own session (what `/open` and `POST /workspace/users` take). */
|
|
2825
3258
|
private sealWorkspaceKey;
|
|
2826
3259
|
/**
|
|
@@ -3628,6 +4061,7 @@ declare class Arbi {
|
|
|
3628
4061
|
workflow_ext_id?: string | null | undefined;
|
|
3629
4062
|
agent_ext_id?: string | null | undefined;
|
|
3630
4063
|
skill_ref?: string | null | undefined;
|
|
4064
|
+
has_agent_action?: boolean | undefined;
|
|
3631
4065
|
auth_mode?: (components["schemas"]["src__models__work__AuthMode"] | null) | undefined;
|
|
3632
4066
|
plan?: {
|
|
3633
4067
|
goal: string;
|
|
@@ -3857,6 +4291,7 @@ declare class Arbi {
|
|
|
3857
4291
|
workflow_ext_id?: string | null;
|
|
3858
4292
|
agent_ext_id?: string | null;
|
|
3859
4293
|
skill_ref?: string | null;
|
|
4294
|
+
has_agent_action?: boolean;
|
|
3860
4295
|
auth_mode?: components["schemas"]["src__models__work__AuthMode"] | null;
|
|
3861
4296
|
plan?: components["schemas"]["TaskPlan"] | null;
|
|
3862
4297
|
goal_state?: {
|
|
@@ -3893,6 +4328,7 @@ declare class Arbi {
|
|
|
3893
4328
|
workflow_ext_id?: string | null;
|
|
3894
4329
|
agent_ext_id?: string | null;
|
|
3895
4330
|
skill_ref?: string | null;
|
|
4331
|
+
has_agent_action?: boolean;
|
|
3896
4332
|
auth_mode?: components["schemas"]["src__models__work__AuthMode"] | null;
|
|
3897
4333
|
plan?: components["schemas"]["TaskPlan"] | null;
|
|
3898
4334
|
goal_state?: {
|
|
@@ -3929,6 +4365,7 @@ declare class Arbi {
|
|
|
3929
4365
|
workflow_ext_id?: string | null;
|
|
3930
4366
|
agent_ext_id?: string | null;
|
|
3931
4367
|
skill_ref?: string | null;
|
|
4368
|
+
has_agent_action?: boolean;
|
|
3932
4369
|
auth_mode?: components["schemas"]["src__models__work__AuthMode"] | null;
|
|
3933
4370
|
plan?: components["schemas"]["TaskPlan"] | null;
|
|
3934
4371
|
goal_state?: {
|
|
@@ -3965,6 +4402,7 @@ declare class Arbi {
|
|
|
3965
4402
|
workflow_ext_id?: string | null;
|
|
3966
4403
|
agent_ext_id?: string | null;
|
|
3967
4404
|
skill_ref?: string | null;
|
|
4405
|
+
has_agent_action?: boolean;
|
|
3968
4406
|
auth_mode?: components["schemas"]["src__models__work__AuthMode"] | null;
|
|
3969
4407
|
plan?: components["schemas"]["TaskPlan"] | null;
|
|
3970
4408
|
goal_state?: {
|
|
@@ -4001,6 +4439,7 @@ declare class Arbi {
|
|
|
4001
4439
|
workflow_ext_id?: string | null;
|
|
4002
4440
|
agent_ext_id?: string | null;
|
|
4003
4441
|
skill_ref?: string | null;
|
|
4442
|
+
has_agent_action?: boolean;
|
|
4004
4443
|
auth_mode?: components["schemas"]["src__models__work__AuthMode"] | null;
|
|
4005
4444
|
plan?: components["schemas"]["TaskPlan"] | null;
|
|
4006
4445
|
goal_state?: {
|
|
@@ -4066,6 +4505,7 @@ declare class Arbi {
|
|
|
4066
4505
|
workflow_ext_id?: string | null;
|
|
4067
4506
|
agent_ext_id?: string | null;
|
|
4068
4507
|
skill_ref?: string | null;
|
|
4508
|
+
has_agent_action?: boolean;
|
|
4069
4509
|
auth_mode?: components["schemas"]["src__models__work__AuthMode"] | null;
|
|
4070
4510
|
plan?: components["schemas"]["TaskPlan"] | null;
|
|
4071
4511
|
goal_state?: {
|
|
@@ -4471,6 +4911,41 @@ declare class Arbi {
|
|
|
4471
4911
|
request: (path: string, options?: RequestInit) => Promise<Response>;
|
|
4472
4912
|
};
|
|
4473
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
|
+
}>;
|
|
4474
4949
|
/**
|
|
4475
4950
|
* Send a question to the RAG assistant with streaming support.
|
|
4476
4951
|
* Returns the accumulated result after the stream completes.
|
|
@@ -5291,6 +5766,27 @@ declare class Arbi {
|
|
|
5291
5766
|
getContent: (fileId: string) => Promise<Response>;
|
|
5292
5767
|
};
|
|
5293
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>;
|
|
5294
5790
|
list: () => Promise<{
|
|
5295
5791
|
external_id: string;
|
|
5296
5792
|
parent_ext_id?: string | null;
|
|
@@ -6736,46 +7232,6 @@ declare namespace health {
|
|
|
6736
7232
|
export { health_getHealth as getHealth, health_getHealthModels as getHealthModels, health_getMcpTools as getMcpTools, health_getRemoteModels as getRemoteModels };
|
|
6737
7233
|
}
|
|
6738
7234
|
|
|
6739
|
-
/**
|
|
6740
|
-
* Responses operations — background query submission and retrieval.
|
|
6741
|
-
*
|
|
6742
|
-
* submitBackgroundQuery: POST /v1/responses with background=true → 202 with task ID.
|
|
6743
|
-
* getResponse: GET /v1/responses/{responseId} → current status + output.
|
|
6744
|
-
* extractResponseText: Walk response output and join text content.
|
|
6745
|
-
*/
|
|
6746
|
-
|
|
6747
|
-
type ResponsesAPIResponse = components['schemas']['ResponsesAPIResponse'];
|
|
6748
|
-
interface SubmitBackgroundQueryOptions extends AuthHeaders {
|
|
6749
|
-
workspaceId: string;
|
|
6750
|
-
question: string;
|
|
6751
|
-
docIds: string[];
|
|
6752
|
-
previousResponseId?: string | null;
|
|
6753
|
-
model?: string;
|
|
6754
|
-
}
|
|
6755
|
-
/**
|
|
6756
|
-
* Submit a query for background processing.
|
|
6757
|
-
* Returns immediately with a response ID and "queued" status.
|
|
6758
|
-
*/
|
|
6759
|
-
declare function submitBackgroundQuery(options: SubmitBackgroundQueryOptions): Promise<ResponsesAPIResponse>;
|
|
6760
|
-
/**
|
|
6761
|
-
* Fetch the current state of a response by ID.
|
|
6762
|
-
* Returns progressive status, output, usage, and metadata.
|
|
6763
|
-
*/
|
|
6764
|
-
declare function getResponse(auth: AuthHeaders, responseId: string): Promise<ResponsesAPIResponse>;
|
|
6765
|
-
/**
|
|
6766
|
-
* Walk response output messages and join all output_text content.
|
|
6767
|
-
* Pure function, no I/O.
|
|
6768
|
-
*/
|
|
6769
|
-
declare function extractResponseText(response: ResponsesAPIResponse): string;
|
|
6770
|
-
|
|
6771
|
-
type responses_SubmitBackgroundQueryOptions = SubmitBackgroundQueryOptions;
|
|
6772
|
-
declare const responses_extractResponseText: typeof extractResponseText;
|
|
6773
|
-
declare const responses_getResponse: typeof getResponse;
|
|
6774
|
-
declare const responses_submitBackgroundQuery: typeof submitBackgroundQuery;
|
|
6775
|
-
declare namespace responses {
|
|
6776
|
-
export { type responses_SubmitBackgroundQueryOptions as SubmitBackgroundQueryOptions, responses_extractResponseText as extractResponseText, responses_getResponse as getResponse, responses_submitBackgroundQuery as submitBackgroundQuery };
|
|
6777
|
-
}
|
|
6778
|
-
|
|
6779
7235
|
/**
|
|
6780
7236
|
* Project operations — list, create, update, delete, checkout, refresh, usage.
|
|
6781
7237
|
*/
|
|
@@ -7032,4 +7488,4 @@ declare namespace account {
|
|
|
7032
7488
|
export { account_confirmEmailChange as confirmEmailChange, account_requestDeletion as requestDeletion, account_requestEmailChange as requestEmailChange };
|
|
7033
7489
|
}
|
|
7034
7490
|
|
|
7035
|
-
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,
|
|
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 };
|