@arbidocs/sdk 0.5.55 → 0.5.56
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/README.md +79 -0
- package/dist/{browser-CAjoEmx3.d.ts → browser-DEZ7kJKE.d.ts} +87 -12
- package/dist/{browser-CzRV0kfR.d.cts → browser-DvpIH-Qk.d.cts} +87 -12
- package/dist/browser.cjs +743 -164
- 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 +743 -165
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +751 -171
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +751 -172
- package/dist/index.js.map +1 -1
- package/dist/testing.cjs +1 -1
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/dist/testing.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -133,3 +133,82 @@ For latest-document digests, the first run covers the preceding 24 hours; later
|
|
|
133
133
|
## Releases
|
|
134
134
|
|
|
135
135
|
Release notes for every version are on [GitHub releases](https://github.com/arbicity/ARBI-frontend/releases).
|
|
136
|
+
|
|
137
|
+
### Errors and streaming outcomes
|
|
138
|
+
|
|
139
|
+
SDK HTTP failures retain their structured server body in `ArbiApiError.apiError`,
|
|
140
|
+
with `status`, `detail`, and optional `code`, `requestId`, and `responseId`.
|
|
141
|
+
`AssistantTurnRefused` remains an `ArbiApiError` when `ask()` rejects. Network
|
|
142
|
+
failures use `ArbiTransportError` and retain the original `cause`; native
|
|
143
|
+
`AbortError` objects propagate unchanged.
|
|
144
|
+
|
|
145
|
+
`ask()`, `attachRun()`, and `streamSSE()` retain their existing callbacks and result
|
|
146
|
+
fields. Add `onErrorDetails(error)` to inspect typed errors alongside the legacy
|
|
147
|
+
`onError` callback, and `onOutcome(outcome)` to observe the terminal result. SDK
|
|
148
|
+
stream results also include `outcome` and `errorDetails`. The outcome preserves
|
|
149
|
+
the existing assistant `msg-` identifier and raw terminal `response` payload.
|
|
150
|
+
Its status is `completed`, `failed`, `cancelled`, `incomplete`, `disconnected`, or
|
|
151
|
+
`acknowledged`. A control-only acknowledgement has no response identity. The
|
|
152
|
+
legacy `completed` boolean still indicates receipt of `response.completed`;
|
|
153
|
+
use `outcome.status` to distinguish the server's explicit terminal status.
|
|
154
|
+
|
|
155
|
+
A local abort or truncated connection reports `disconnected`, with `reason`
|
|
156
|
+
`aborted`, `connection_closed`, or `connection_error`; it never proves that the
|
|
157
|
+
server cancelled execution. Reader failures reject as well as notifying the
|
|
158
|
+
outcome. Explicit terminal server events finish reading without waiting for the
|
|
159
|
+
connection to close. The first terminal frame wins: later frames, including
|
|
160
|
+
conflicting terminals or tokens in the same chunk, are ignored. Background response APIs continue to expose the original
|
|
161
|
+
Responses envelope and its `status` and `error` fields.
|
|
162
|
+
|
|
163
|
+
Consumer callback exceptions propagate unchanged. They do not trigger a second
|
|
164
|
+
typed error or outcome notification and are not classified as server failures
|
|
165
|
+
or transport disconnections. `onOutcome` fires once when SDK consumption reaches
|
|
166
|
+
an outcome; an earlier consumer exception interrupts consumption before that
|
|
167
|
+
notification.
|
|
168
|
+
|
|
169
|
+
### Composable response handles
|
|
170
|
+
|
|
171
|
+
`assistant.startResponse(request, { signal })` uses the same request builder and workspace
|
|
172
|
+
selection as `ask`. It returns either an observer for the existing `msg-…` response, or a
|
|
173
|
+
control acknowledgement without inventing a message. Existing `ask`, callbacks, and `attachRun`
|
|
174
|
+
remain supported.
|
|
175
|
+
|
|
176
|
+
```ts
|
|
177
|
+
const started = await arbi.assistant.startResponse({ question: 'Summarize this document', docIds })
|
|
178
|
+
if (started.kind === 'response') {
|
|
179
|
+
const handle = started.handle
|
|
180
|
+
const unsubscribe = handle.subscribe((snapshot) => render(snapshot.displayText))
|
|
181
|
+
try {
|
|
182
|
+
const outcome = await handle.outcome
|
|
183
|
+
if (outcome.status === 'disconnected') {
|
|
184
|
+
const stored = await arbi.assistant.getResponse(handle.id)
|
|
185
|
+
// Inspect stored status; attachResponse(handle.id) again if still active.
|
|
186
|
+
}
|
|
187
|
+
} finally {
|
|
188
|
+
unsubscribe()
|
|
189
|
+
handle.detach()
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Use `await handle.cancel()` for an explicit authenticated server cancellation request.
|
|
195
|
+
`detach()` and the optional AbortSignal only close this reader. A cancellation request does
|
|
196
|
+
not settle the handle as cancelled: the terminal server event decides the outcome. Workspace
|
|
197
|
+
and native-agent permissions continue to be enforced by the server.
|
|
198
|
+
|
|
199
|
+
`attachResponse('msg-…')` observes the existing watch stream, with its bounded replay retention;
|
|
200
|
+
a 404 requires stored-response/history reconciliation. Handles do not retry or reconnect in the
|
|
201
|
+
background, and an attachment's disconnected outcome does not mean server execution stopped.
|
|
202
|
+
|
|
203
|
+
Snapshots and their output items are immutable. Subscriptions immediately receive the current
|
|
204
|
+
snapshot, including fast completion. Exceptions in a snapshot listener are rethrown in a microtask
|
|
205
|
+
without stopping the reader or other listeners. Unknown server statuses and raw terminal results
|
|
206
|
+
are preserved. `displayText` is the existing rendering projection, not a final-answer selector.
|
|
207
|
+
|
|
208
|
+
`handle.events()` provides **one live raw iterator**, beginning when called. It preserves unknown
|
|
209
|
+
JSON events/fields and SSE IDs; `reasoning` frames retain their raw text. Malformed JSON and
|
|
210
|
+
conflicting response IDs produce `arbi.sdk.protocol_error` diagnostics with the original frame.
|
|
211
|
+
This is not retrospective replay or a durable resume cursor. Keep existing callbacks when every
|
|
212
|
+
startup frame is needed. The iterator buffers at most 256 frames, covering existing tool and
|
|
213
|
+
control fixtures; overflow rejects its reads with code `RESPONSE_EVENT_OVERFLOW`, while snapshot
|
|
214
|
+
reduction continues. Return/break the iterator to release its buffer; a second iterator is rejected.
|
|
@@ -8,12 +8,22 @@ import { S as SSEStreamStartData, j as ResponseOutputItemAddedEvent, k as Respon
|
|
|
8
8
|
* Unlike CLI helpers which call process.exit(1), these throw typed errors
|
|
9
9
|
* that consumers (CLI, TUI) can catch and handle in their own way.
|
|
10
10
|
*/
|
|
11
|
+
interface ArbiErrorOptions {
|
|
12
|
+
code?: string;
|
|
13
|
+
cause?: unknown;
|
|
14
|
+
requestId?: string;
|
|
15
|
+
/** The existing assistant response ID (msg-…), when known. */
|
|
16
|
+
responseId?: string;
|
|
17
|
+
}
|
|
11
18
|
declare class ArbiError extends Error {
|
|
12
|
-
|
|
19
|
+
readonly code?: string;
|
|
20
|
+
readonly requestId?: string;
|
|
21
|
+
readonly responseId?: string;
|
|
22
|
+
constructor(message: string, options?: ArbiErrorOptions);
|
|
13
23
|
}
|
|
14
24
|
/** The session cannot be recovered (token and workspace re-open both refused): sign in again. */
|
|
15
25
|
declare class ArbiSessionExpiredError extends ArbiError {
|
|
16
|
-
constructor(message?: string);
|
|
26
|
+
constructor(message?: string, options?: ArbiErrorOptions);
|
|
17
27
|
}
|
|
18
28
|
/**
|
|
19
29
|
* A newer `selectWorkspace` for another workspace was asked for before this one's turn: it never
|
|
@@ -38,7 +48,11 @@ declare class ArbiApiError extends ArbiError {
|
|
|
38
48
|
readonly apiError?: unknown;
|
|
39
49
|
/** Why the server refused, in its words (e.g. "run_at must be in the future"), when it said. */
|
|
40
50
|
readonly detail?: string;
|
|
41
|
-
constructor(message: string, apiError?: unknown, status?: number);
|
|
51
|
+
constructor(message: string, apiError?: unknown, status?: number, options?: ArbiErrorOptions);
|
|
52
|
+
}
|
|
53
|
+
/** A connection failed; it says nothing about the response's server-side state. */
|
|
54
|
+
declare class ArbiTransportError extends ArbiError {
|
|
55
|
+
constructor(cause: unknown, responseId?: string);
|
|
42
56
|
}
|
|
43
57
|
/**
|
|
44
58
|
* A contact write refused because one of its addresses already belongs to another contact (one
|
|
@@ -63,6 +77,7 @@ declare function requireData<T>(result: {
|
|
|
63
77
|
error?: unknown;
|
|
64
78
|
response?: {
|
|
65
79
|
status: number;
|
|
80
|
+
headers?: Headers;
|
|
66
81
|
};
|
|
67
82
|
}, message: string): T;
|
|
68
83
|
/**
|
|
@@ -72,6 +87,7 @@ declare function requireOk(result: {
|
|
|
72
87
|
error?: unknown;
|
|
73
88
|
response?: {
|
|
74
89
|
status: number;
|
|
90
|
+
headers?: Headers;
|
|
75
91
|
};
|
|
76
92
|
}, message: string): void;
|
|
77
93
|
/**
|
|
@@ -426,11 +442,23 @@ declare function parseSSEEvents(chunk: string, buffer: string): {
|
|
|
426
442
|
events: SSEEvent[];
|
|
427
443
|
remaining: string;
|
|
428
444
|
};
|
|
429
|
-
/**
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
*/
|
|
445
|
+
/** What the server reported, or how a nonterminal stream ended. */
|
|
446
|
+
interface SSEStreamOutcome {
|
|
447
|
+
status: 'completed' | 'failed' | 'cancelled' | 'incomplete' | 'disconnected' | 'acknowledged';
|
|
448
|
+
/** The existing assistant response ID (msg-…), not a new run identity. */
|
|
449
|
+
responseId: string | null;
|
|
450
|
+
/** Original terminal Responses payload, including error/incomplete metadata. */
|
|
451
|
+
response?: Readonly<Record<string, unknown>>;
|
|
452
|
+
error?: ArbiError;
|
|
453
|
+
/** A disconnected reader does not establish the response's server-side status. */
|
|
454
|
+
reason?: 'connection_closed' | 'connection_error' | 'aborted';
|
|
455
|
+
}
|
|
456
|
+
/** Optional streaming event observers; consumer callback exceptions propagate unchanged. */
|
|
433
457
|
interface SSEStreamCallbacks {
|
|
458
|
+
/** Structured SDK/server failures, supplementing the legacy onError callback. */
|
|
459
|
+
onErrorDetails?: (error: ArbiError) => void;
|
|
460
|
+
/** Called once on terminal input, EOF, or reader failure; consumer exceptions interrupt it. */
|
|
461
|
+
onOutcome?: (outcome: SSEStreamOutcome) => void;
|
|
434
462
|
onStreamStart?: (data: SSEStreamStartData) => void;
|
|
435
463
|
onToken?: (content: string) => void;
|
|
436
464
|
/** Answer/narration text delta with its message item id, so the client can
|
|
@@ -501,6 +529,10 @@ interface SSEStreamResult {
|
|
|
501
529
|
* may still be `in_progress` — the caller must reconcile it, never present it as a finished answer.
|
|
502
530
|
*/
|
|
503
531
|
completed: boolean;
|
|
532
|
+
/** Present on SDK-produced results; optional for legacy result adapters. */
|
|
533
|
+
outcome?: SSEStreamOutcome;
|
|
534
|
+
/** Structured counterparts of errors; existing string errors remain available. */
|
|
535
|
+
errorDetails?: ArbiApiError[];
|
|
504
536
|
}
|
|
505
537
|
/**
|
|
506
538
|
* Stream SSE events from a Response, invoking callbacks as events arrive.
|
|
@@ -798,6 +830,44 @@ interface CitationToolSources {
|
|
|
798
830
|
*/
|
|
799
831
|
declare function buildCitationChunkData(message: CitationToolSources): Record<string, Chunk$1[]>;
|
|
800
832
|
|
|
833
|
+
interface ResponseStartOptions {
|
|
834
|
+
/** Stops the request/reader only. Use handle.cancel() to stop server execution. */
|
|
835
|
+
signal?: AbortSignal;
|
|
836
|
+
}
|
|
837
|
+
interface RawResponseEvent {
|
|
838
|
+
readonly event: string;
|
|
839
|
+
readonly data: unknown;
|
|
840
|
+
readonly id?: string;
|
|
841
|
+
}
|
|
842
|
+
interface ResponseSnapshot {
|
|
843
|
+
readonly id: string;
|
|
844
|
+
readonly conversationId: string | null;
|
|
845
|
+
readonly connection: 'connecting' | 'streaming' | 'detached' | 'closed';
|
|
846
|
+
readonly responseStatus: string | null;
|
|
847
|
+
readonly output: readonly Readonly<Record<string, unknown>>[];
|
|
848
|
+
readonly displayText: string;
|
|
849
|
+
readonly rawResponse?: Readonly<Record<string, unknown>>;
|
|
850
|
+
readonly outcome?: SSEStreamOutcome;
|
|
851
|
+
}
|
|
852
|
+
interface ResponseHandle {
|
|
853
|
+
readonly id: string;
|
|
854
|
+
snapshot(): ResponseSnapshot;
|
|
855
|
+
subscribe(listener: (snapshot: ResponseSnapshot) => void): () => void;
|
|
856
|
+
/** One live iterator, without retrospective replay. Returning it does not detach. */
|
|
857
|
+
events(): AsyncIterableIterator<RawResponseEvent>;
|
|
858
|
+
readonly outcome: Promise<SSEStreamOutcome>;
|
|
859
|
+
detach(): void;
|
|
860
|
+
cancel(): Promise<unknown>;
|
|
861
|
+
}
|
|
862
|
+
type ResponseStart = {
|
|
863
|
+
kind: 'response';
|
|
864
|
+
handle: ResponseHandle;
|
|
865
|
+
} | {
|
|
866
|
+
kind: 'acknowledged';
|
|
867
|
+
acknowledgement: Readonly<Record<string, unknown>>;
|
|
868
|
+
outcome: SSEStreamOutcome;
|
|
869
|
+
};
|
|
870
|
+
|
|
801
871
|
/**
|
|
802
872
|
* Document operations — browser-safe functions.
|
|
803
873
|
*
|
|
@@ -3185,7 +3255,7 @@ declare namespace conversations {
|
|
|
3185
3255
|
}
|
|
3186
3256
|
|
|
3187
3257
|
/**
|
|
3188
|
-
* The one request builder for an assistant turn (`POST /v1/
|
|
3258
|
+
* The one request builder for an assistant turn (`POST /v1/responses`).
|
|
3189
3259
|
*
|
|
3190
3260
|
* Every client that asks the assistant — the web chat, the agent sidebar, the Word add-in, the
|
|
3191
3261
|
* image generator, the CLI and the TUI — builds its body here, so the tools a turn carries and the
|
|
@@ -3280,7 +3350,7 @@ declare function buildDocumentTools(selection: FullContextSelection): {
|
|
|
3280
3350
|
};
|
|
3281
3351
|
};
|
|
3282
3352
|
};
|
|
3283
|
-
/** The body of `POST /v1/
|
|
3353
|
+
/** The body of `POST /v1/responses` for a turn. */
|
|
3284
3354
|
declare function buildTurnRequest(request: TurnRequest): MessageInput$2;
|
|
3285
3355
|
|
|
3286
3356
|
/**
|
|
@@ -3391,7 +3461,7 @@ interface QuotaExceeded {
|
|
|
3391
3461
|
declare class AssistantTurnRefused extends ArbiApiError {
|
|
3392
3462
|
/** Set when the refusal is the project's used-up AI usage. */
|
|
3393
3463
|
readonly quota: QuotaExceeded | null;
|
|
3394
|
-
constructor(message: string, status: number, quota?: QuotaExceeded | null);
|
|
3464
|
+
constructor(message: string, status: number, quota?: QuotaExceeded | null, apiError?: unknown, options?: ArbiErrorOptions);
|
|
3395
3465
|
}
|
|
3396
3466
|
/** The session's token has expired and could not be renewed. */
|
|
3397
3467
|
declare const SESSION_EXPIRED_MESSAGE = "Token has expired. Please log in again.";
|
|
@@ -3400,7 +3470,7 @@ declare function quotaExceededFrom(detail: unknown): QuotaExceeded | null;
|
|
|
3400
3470
|
/** A stream error that is LiteLLM's ExceededBudget, read as {@link QuotaExceeded} (in £). */
|
|
3401
3471
|
declare function quotaFromStreamError(error: unknown): QuotaExceeded | null;
|
|
3402
3472
|
/**
|
|
3403
|
-
* Open a turn's stream (`POST /v1/
|
|
3473
|
+
* Open a turn's stream (`POST /v1/responses` with a built body). A 401 throws the
|
|
3404
3474
|
* `ArbiApiError` the session recovery renews the token on; any other refusal throws
|
|
3405
3475
|
* {@link AssistantTurnRefused}.
|
|
3406
3476
|
*/
|
|
@@ -11910,7 +11980,12 @@ declare class Arbi {
|
|
|
11910
11980
|
/** Unlock the signed-in user's native inbox for this server session (see `unlockNativeMail`). */
|
|
11911
11981
|
unlockNative: () => Promise<void>;
|
|
11912
11982
|
};
|
|
11983
|
+
private openResponseHandle;
|
|
11913
11984
|
readonly assistant: {
|
|
11985
|
+
/** Start one response with a composable observer; existing ask callbacks remain unchanged. */
|
|
11986
|
+
startResponse: (request: AskRequest, options?: ResponseStartOptions) => Promise<ResponseStart>;
|
|
11987
|
+
/** Attach to retained replay/live events for an existing msg; never resubmits a turn. */
|
|
11988
|
+
attachResponse: (id: string, options?: ResponseStartOptions) => Promise<ResponseHandle>;
|
|
11914
11989
|
/**
|
|
11915
11990
|
* Ask the assistant: send one turn (the body is `buildTurnRequest`) and stream it into
|
|
11916
11991
|
* `handlers`. Resolves with the accumulated result when the stream ends.
|
|
@@ -17116,4 +17191,4 @@ declare function getAttachableRunId(messages: readonly RunMessage[]): string | n
|
|
|
17116
17191
|
*/
|
|
17117
17192
|
declare function getRunToAttach(localGeneration: LocalGeneration | undefined, messages: readonly RunMessage[]): string | null;
|
|
17118
17193
|
|
|
17119
|
-
export { type ConfigStore as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalendarEvent as D, type CalendarKeys as E, type CalendarRead as F, type CalendarSettings as G, type CalendarSettingsBody as H, type CalendarUpdate as I, type CalendarWindow as J, CallApiError as K, type ChatAttachmentFile as L, type ChatAttachmentInput as M, type ChatCryptoContext as N, type ChatKeyRing as O, type ChatKind as P, type ChatMemberKey as Q, type ChatMemberResponse as R, type ChatMessage as S, type ChatMessageResponse as T, type ChatResponse as U, type ChatSession as V, type CitationSummary as W, type CitationToolSources as X, type CliConfig as Y, type CliCredentials as Z, type CommandDescriptor as _, type AccountSyncResult as a, type LinkedRun as a$, type ConnectOptions as a0, type ConnectorCatalogEntry as a1, type ConnectorFolder as a2, type ConnectorSyncProgress as a3, type ConnectorSyncStatus as a4, type ConnectorVendorKey as a5, type ConnectorVisibilitySettings as a6, type ContextUsage as a7, type ConversationResponse as a8, type ConversationUsageResponse as a9, type DocumentWaiterOptions as aA, type DriveSyncProgress as aB, type DriveSyncSummary as aC, DuplicateContactError as aD, ENTITY_KINDS as aE, type EditScope as aF, type EntityKind as aG, type EventCreateBody as aH, type EventPatchBody as aI, FLAT_TAG_KINDS as aJ, type FactResponse as aK, type FactSearchRequest as aL, type FactSearchResponse as aM, type FindTimeParams as aN, type FormattedWsMessage as aO, type FreeBusyEntry as aP, type FullContextSelection as aQ, GOOGLE_VENDORS as aR, type HolidayCountry as aS, type HouseTemplateCandidate as aT, IMANAGE_VENDORS as aU, type IdentityErrorCode as aV, type IdentityPurchase as aW, type IdentityState as aX, type IdentityStatus as aY, type ImportResult as aZ, type InvitationRead as a_, type CreateFactRequest as aa, type CreateFactsRequest as ab, type CreateWorkRequest as ac, type CreateWorkflowRequest as ad, DEFAULT_AI_USD_PER_GBP as ae, DOC_TERMINAL_STATUSES as af, DRIVE_SYNC_VENDORS as ag, type Database as ah, type DatabaseColumn as ai, type DatabaseColumnWrite as aj, type DatabaseImportResult as ak, type DatabaseRow as al, type DatabaseRowPage as am, type DatabaseRowsQuery as an, type DateTimeSpec as ao, type DecryptedChat as ap, type DecryptedChatMessage as aq, type DeploymentHouseTemplate as ar, type DocInfo as as, type DocInfoMap as at, type DocNameMap as au, type DocumentAutomationAction as av, type DocumentListFields as aw, type DocumentListOrder as ax, type DocumentSelector as ay, type DocumentWaiter as az, type ActivityKind as b, type SearchChunk as b$, type ListAllOptions as b0, type ListEventsParams as b1, type ListFactsOptions as b2, type ListPaginatedOptions as b3, MAILBOX_SYNC_VENDORS as b4, MAX_RETRIEVE_DOC_IDS as b5, MICROSOFT_VENDORS as b6, type MailAttachment as b7, type MessageLevel as b8, type OAuthAccountKind as b9, type ProjectUsageResponse as bA, PublicBookingError as bB, type PublicBookingPage as bC, type QuotaExceeded as bD, type RaisedSignal as bE, type ReconnectOptions as bF, type ReconnectableWsConnection as bG, type ResolvedCitation as bH, type ResolvedRecipient as bI, type RespondParams as bJ, type RespondPartstat as bK, type RoomCreateBody as bL, type RoomQuery as bM, type RoomRead as bN, type RunProgress as bO, type RunStats as bP, type RunStep as bQ, type RunWaitingOn as bR, SHAREPOINT_VENDORS as bS, type SSEEvent as bT, type SSEStreamCallbacks as bU, type SSEStreamResult as bV, STEP_FIELD_OPTION_TONES as bW, STOP_ID_WAIT_MS as bX, STOP_REPEAT_WINDOW_MS as bY, SUPPORTED_EXTENSIONS as bZ, type ScopedTarget as b_, type OutputItemDone as ba, type OverlayItem as bb, type OverlayLayerName as bc, PRESENCE_KINDS as bd, PROMPT_CONTEXT_CHARS as be, type ParsedSlashCommand as bf, type PendingAuthResponse as bg, type PersonKey as bh, PlanStepsError as bi, type PlanWorkRequest as bj, type ProductResponse as bk, type ProjectAddonKind as bl, type ProjectAddonSettingsRequest as bm, type ProjectBudget as bn, type ProjectCheckoutRequest as bo, type ProjectConversationUsageResponse as bp, type ProjectCreateOptions as bq, type ProjectDetails as br, type ProjectEventKind as bs, type ProjectEventResponse as bt, type ProjectInvoicesResponse as bu, type ProjectNextPeriodAddonsRequest as bv, type ProjectPlanChangeRequest as bw, type ProjectQuoteRequest as bx, type ProjectResponse as by, type ProjectUpdateRequest as bz, type ActivityResponse as c, type WorkflowResponse as c$, type SendBack as c0, type ShareRead as c1, type ShareRole as c2, type SkillSummary as c3, type SkippedFile as c4, type SlackConnectionStatus as c5, type StepActionRequest as c6, type StepActivityEvent as c7, type StepAssignee as c8, type StepDisplay as c9, type TagScope as cA, type TagTreeRow as cB, type TaskPlan as cC, type TaskPlanStep as cD, type TaxQuoteResponse as cE, type Thread as cF, type ThreadsResponse as cG, type TimeSuggestion as cH, type TurnRequest as cI, type UpdateConversationRequest as cJ, type UpdateFactRequest as cK, type UpdateWorkflowRequest as cL, type UploadBatchResult as cM, type UploadDirectOptions as cN, type UploadDirectResult as cO, type UploadDocumentsOptions as cP, type UploadOptions as cQ, type UploadProgressListener as cR, type UploadResult as cS, type UsageBreakdown as cT, type UserConnectorEntry as cU, type UserDailyUsageResponse as cV, type UserInfo as cW, WebSocketAuthError as cX, type WeeklyHoursSpec as cY, type WorkStatus as cZ, type WorkflowAuthMode as c_, type StepField as ca, type StepFieldOption as cb, type StepFieldOptionTone as cc, type StepKind as cd, type StepPhase as ce, type StepSignal as cf, type StepSignalWhen as cg, type StepState as ch, type StepStatus as ci, type SubagentBranchRecord as cj, type SubagentLaneInfo as ck, type SubmitBackgroundQueryOptions as cl, type SubscribeParams as cm, type SyncTriggerResult as cn, TAG_KINDS as co, TAG_NESTING_MAX_DEPTH as cp, type TagChange as cq, type TagFieldDefinition as cr, type TagGroup as cs, type TagKind as ct, type TagKindField as cu, type TagKindSchema as cv, type TagLinks as cw, type TagListQuery as cx, type TagNode as cy, type TagResponse as cz, Arbi as d, formatWorkspaceChoices as d$, type WorkflowRunHistoryResponse as d0, type WorkflowRunResponse as d1, type WorkspaceContext as d2, type WorkspaceOpenResponse as d3, type WsConnection as d4, account as d5, agentconfig as d6, agents as d7, appendTranscriptionHints as d8, assistant as d9, createDocumentWaiter as dA, createIndexAssigner as dB, databases as dC, defaultKindForFormat as dD, doctags as dE, documents as dF, estimateDraftTokens as dG, extractDocumentIdsFromMessages as dH, extractFactIdsFromMessages as dI, extractSubagentLanes as dJ, facts as dK, files as dL, filterDocumentTags as dM, filterSkills as dN, findLeafForTaskMessage as dO, findMainSiblingLeaf as dP, findReplyTarget as dQ, findSubagentRunId as dR, flattenTagTree as dS, formatAgentStepLabel as dT, formatFileSize as dU, formatGbp as dV, formatGbpPerMillionTokens as dW, formatItemLabel as dX, formatStreamSummary as dY, formatTokens as dZ, formatUserName as d_, authenticatedFetch as da, bookPublicSlot as db, buildCitationChunkData as dc, buildDocNameMap as dd, buildDocumentTools as de, buildFactsContextTool as df, buildRetrievalChunkTool as dg, buildRetrievalFullContextTool as dh, buildRetrievalTocTool as di, buildTurnRequest as dj, calendar as dk, calls as dl, canTagHaveParent as dm, cancelPublicBooking as dn, chats as dp, computeRunStats as dq, connectErrorMessage as dr, connectWebSocket as ds, connectWithReconnect as dt, connectors as du, contacts as dv, continuityPrompt as dw, conversations as dx, countCitations as dy, createAuthenticatedClient as dz, ArbiApiError as e, selectFullContextDocument as e$, formatWsMessage as e0, generateEncryptedWorkspaceKey as e1, generateNewWorkspaceKey as e2, getAgentStepLabel as e3, getAttachableRunId as e4, getChildTags as e5, getContextRemainingPercent as e6, getContextUsedPercent as e7, getContextUsedTokens as e8, getCurrentStep as e9, isSharedSkill as eA, isTraceItem as eB, mail as eC, mergeAgentSteps as eD, notifications as eE, parseSSEEvents as eF, parseSlashCommand as eG, parseSlashTokenInProgress as eH, performPasswordLogin as eI, performSigningKeyLogin as eJ, performSsoDeviceFlowLogin as eK, pickMainThread as eL, profile as eM, progressFetch as eN, projects as eO, quotaExceededFrom as eP, quotaFromStreamError as eQ, reduceOutputItem as eR, refusalReason as eS, requireData as eT, requireOk as eU, resolveAuth as eV, resolveCitations as eW, resolveSummary as eX, resolveWorkspace as eY, responses as eZ, searchChunks as e_, getEligibleParentTags as ea, getErrorCode as eb, getErrorMessage as ec, getPublicBookingPage as ed, getRawWorkspaceKey as ee, getRunToAttach as ef, getRunToCancel as eg, getStepDisplay as eh, getStepTool as ei, getSubagentBranchRecord as ej, getTagDescendantIds as ek, health as el, houseTemplate as em, hydrateAgentSteps as en, identity as eo, identityErrorCode as ep, isAnnotationTag as eq, isConnectorVendorVisible as er, isDriveSyncVendor as es, isEntityTag as et, isFlatKind as eu, isLabelTag as ev, isMailboxSyncVendor as ew, isNearAiUsageBudget as ex, isPresenceTag as ey, isSharePointVendor as ez, ArbiError as f, selectWorkspace as f0, selectWorkspaceById as f1, sessions as f2, settings as f3, signatureRequests as f4, sliceToSubagentThread as f5, streamSSE as f6, stripCitationMarkdown as f7, subagentJobLabel as f8, summarizeCitations as f9, tagUseCount as fa, tags as fb, tagsForScope as fc, tagsOfGroup as fd, topLevelAgentSteps as fe, uploadSkill as ff, usdToGbp as fg, work as fh, workflowSteps as fi, workflows as fj, workspaces as fk, wouldCreateTagCycle as fl, type ArbiHostSession as g, type ArbiOptions as h, ArbiSessionExpiredError as i, ArbiWorkspaceChangedError as j, ArbiWorkspaceSupersededError as k, type AskHandlers as l, type AskRequest as m, type AttendeeRead as n, type AuthContext as o, type AuthHeaders as p, type AuthMode as q, type AuthenticatedClient as r, type BookingPage as s, type BookingPageWriteBody as t, type BookingRequestBody as u, type BridgeTokensOptions as v, type CalDavProfile as w, type CalendarAccount as x, type CalendarAccountKind as y, type CalendarCreateBody as z };
|
|
17194
|
+
export { type CliCredentials as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalendarAccountKind as D, type CalendarCreateBody as E, type CalendarEvent as F, type CalendarKeys as G, type CalendarRead as H, type CalendarSettings as I, type CalendarSettingsBody as J, type CalendarUpdate as K, type CalendarWindow as L, CallApiError as M, type ChatAttachmentFile as N, type ChatAttachmentInput as O, type ChatCryptoContext as P, type ChatKeyRing as Q, type ChatKind as R, type ChatMemberKey as S, type ChatMemberResponse as T, type ChatMessage as U, type ChatMessageResponse as V, type ChatResponse as W, type ChatSession as X, type CitationSummary as Y, type CitationToolSources as Z, type CliConfig as _, type AccountSyncResult as a, type ImportResult as a$, type CommandDescriptor as a0, type ConfigStore as a1, type ConnectOptions as a2, type ConnectorCatalogEntry as a3, type ConnectorFolder as a4, type ConnectorSyncProgress as a5, type ConnectorSyncStatus as a6, type ConnectorVendorKey as a7, type ConnectorVisibilitySettings as a8, type ContextUsage as a9, type DocumentSelector as aA, type DocumentWaiter as aB, type DocumentWaiterOptions as aC, type DriveSyncProgress as aD, type DriveSyncSummary as aE, DuplicateContactError as aF, ENTITY_KINDS as aG, type EditScope as aH, type EntityKind as aI, type EventCreateBody as aJ, type EventPatchBody as aK, FLAT_TAG_KINDS as aL, type FactResponse as aM, type FactSearchRequest as aN, type FactSearchResponse as aO, type FindTimeParams as aP, type FormattedWsMessage as aQ, type FreeBusyEntry as aR, type FullContextSelection as aS, GOOGLE_VENDORS as aT, type HolidayCountry as aU, type HouseTemplateCandidate as aV, IMANAGE_VENDORS as aW, type IdentityErrorCode as aX, type IdentityPurchase as aY, type IdentityState as aZ, type IdentityStatus as a_, type ConversationResponse as aa, type ConversationUsageResponse as ab, type CreateFactRequest as ac, type CreateFactsRequest as ad, type CreateWorkRequest as ae, type CreateWorkflowRequest as af, DEFAULT_AI_USD_PER_GBP as ag, DOC_TERMINAL_STATUSES as ah, DRIVE_SYNC_VENDORS as ai, type Database as aj, type DatabaseColumn as ak, type DatabaseColumnWrite as al, type DatabaseImportResult as am, type DatabaseRow as an, type DatabaseRowPage as ao, type DatabaseRowsQuery as ap, type DateTimeSpec as aq, type DecryptedChat as ar, type DecryptedChatMessage as as, type DeploymentHouseTemplate as at, type DocInfo as au, type DocInfoMap as av, type DocNameMap as aw, type DocumentAutomationAction as ax, type DocumentListFields as ay, type DocumentListOrder as az, type ActivityKind as b, type SSEStreamCallbacks as b$, type InvitationRead as b0, type LinkedRun as b1, type ListAllOptions as b2, type ListEventsParams as b3, type ListFactsOptions as b4, type ListPaginatedOptions as b5, MAILBOX_SYNC_VENDORS as b6, MAX_RETRIEVE_DOC_IDS as b7, MICROSOFT_VENDORS as b8, type MailAttachment as b9, type ProjectResponse as bA, type ProjectUpdateRequest as bB, type ProjectUsageResponse as bC, PublicBookingError as bD, type PublicBookingPage as bE, type QuotaExceeded as bF, type RaisedSignal as bG, type RawResponseEvent as bH, type ReconnectOptions as bI, type ReconnectableWsConnection as bJ, type ResolvedCitation as bK, type ResolvedRecipient as bL, type RespondParams as bM, type RespondPartstat as bN, type ResponseHandle as bO, type ResponseSnapshot as bP, type ResponseStart as bQ, type ResponseStartOptions as bR, type RoomCreateBody as bS, type RoomQuery as bT, type RoomRead as bU, type RunProgress as bV, type RunStats as bW, type RunStep as bX, type RunWaitingOn as bY, SHAREPOINT_VENDORS as bZ, type SSEEvent as b_, type MessageLevel as ba, type OAuthAccountKind as bb, type OutputItemDone as bc, type OverlayItem as bd, type OverlayLayerName as be, PRESENCE_KINDS as bf, PROMPT_CONTEXT_CHARS as bg, type ParsedSlashCommand as bh, type PendingAuthResponse as bi, type PersonKey as bj, PlanStepsError as bk, type PlanWorkRequest as bl, type ProductResponse as bm, type ProjectAddonKind as bn, type ProjectAddonSettingsRequest as bo, type ProjectBudget as bp, type ProjectCheckoutRequest as bq, type ProjectConversationUsageResponse as br, type ProjectCreateOptions as bs, type ProjectDetails as bt, type ProjectEventKind as bu, type ProjectEventResponse as bv, type ProjectInvoicesResponse as bw, type ProjectNextPeriodAddonsRequest as bx, type ProjectPlanChangeRequest as by, type ProjectQuoteRequest as bz, type ActivityResponse as c, type UsageBreakdown as c$, type SSEStreamOutcome as c0, type SSEStreamResult as c1, STEP_FIELD_OPTION_TONES as c2, STOP_ID_WAIT_MS as c3, STOP_REPEAT_WINDOW_MS as c4, SUPPORTED_EXTENSIONS as c5, type ScopedTarget as c6, type SearchChunk as c7, type SendBack as c8, type ShareRead as c9, type TagGroup as cA, type TagKind as cB, type TagKindField as cC, type TagKindSchema as cD, type TagLinks as cE, type TagListQuery as cF, type TagNode as cG, type TagResponse as cH, type TagScope as cI, type TagTreeRow as cJ, type TaskPlan as cK, type TaskPlanStep as cL, type TaxQuoteResponse as cM, type Thread as cN, type ThreadsResponse as cO, type TimeSuggestion as cP, type TurnRequest as cQ, type UpdateConversationRequest as cR, type UpdateFactRequest as cS, type UpdateWorkflowRequest as cT, type UploadBatchResult as cU, type UploadDirectOptions as cV, type UploadDirectResult as cW, type UploadDocumentsOptions as cX, type UploadOptions as cY, type UploadProgressListener as cZ, type UploadResult as c_, type ShareRole as ca, type SkillSummary as cb, type SkippedFile as cc, type SlackConnectionStatus as cd, type StepActionRequest as ce, type StepActivityEvent as cf, type StepAssignee as cg, type StepDisplay as ch, type StepField as ci, type StepFieldOption as cj, type StepFieldOptionTone as ck, type StepKind as cl, type StepPhase as cm, type StepSignal as cn, type StepSignalWhen as co, type StepState as cp, type StepStatus as cq, type SubagentBranchRecord as cr, type SubagentLaneInfo as cs, type SubmitBackgroundQueryOptions as ct, type SubscribeParams as cu, type SyncTriggerResult as cv, TAG_KINDS as cw, TAG_NESTING_MAX_DEPTH as cx, type TagChange as cy, type TagFieldDefinition as cz, Arbi as d, formatAgentStepLabel as d$, type UserConnectorEntry as d0, type UserDailyUsageResponse as d1, type UserInfo as d2, WebSocketAuthError as d3, type WeeklyHoursSpec as d4, type WorkStatus as d5, type WorkflowAuthMode as d6, type WorkflowResponse as d7, type WorkflowRunHistoryResponse as d8, type WorkflowRunResponse as d9, connectWebSocket as dA, connectWithReconnect as dB, connectors as dC, contacts as dD, continuityPrompt as dE, conversations as dF, countCitations as dG, createAuthenticatedClient as dH, createDocumentWaiter as dI, createIndexAssigner as dJ, databases as dK, defaultKindForFormat as dL, doctags as dM, documents as dN, estimateDraftTokens as dO, extractDocumentIdsFromMessages as dP, extractFactIdsFromMessages as dQ, extractSubagentLanes as dR, facts as dS, files as dT, filterDocumentTags as dU, filterSkills as dV, findLeafForTaskMessage as dW, findMainSiblingLeaf as dX, findReplyTarget as dY, findSubagentRunId as dZ, flattenTagTree as d_, type WorkspaceContext as da, type WorkspaceOpenResponse as db, type WsConnection as dc, account as dd, agentconfig as de, agents as df, appendTranscriptionHints as dg, assistant as dh, authenticatedFetch as di, bookPublicSlot as dj, buildCitationChunkData as dk, buildDocNameMap as dl, buildDocumentTools as dm, buildFactsContextTool as dn, buildRetrievalChunkTool as dp, buildRetrievalFullContextTool as dq, buildRetrievalTocTool as dr, buildTurnRequest as ds, calendar as dt, calls as du, canTagHaveParent as dv, cancelPublicBooking as dw, chats as dx, computeRunStats as dy, connectErrorMessage as dz, ArbiApiError as e, requireData as e$, formatFileSize as e0, formatGbp as e1, formatGbpPerMillionTokens as e2, formatItemLabel as e3, formatStreamSummary as e4, formatTokens as e5, formatUserName as e6, formatWorkspaceChoices as e7, formatWsMessage as e8, generateEncryptedWorkspaceKey as e9, isDriveSyncVendor as eA, isEntityTag as eB, isFlatKind as eC, isLabelTag as eD, isMailboxSyncVendor as eE, isNearAiUsageBudget as eF, isPresenceTag as eG, isSharePointVendor as eH, isSharedSkill as eI, isTraceItem as eJ, mail as eK, mergeAgentSteps as eL, notifications as eM, parseSSEEvents as eN, parseSlashCommand as eO, parseSlashTokenInProgress as eP, performPasswordLogin as eQ, performSigningKeyLogin as eR, performSsoDeviceFlowLogin as eS, pickMainThread as eT, profile as eU, progressFetch as eV, projects as eW, quotaExceededFrom as eX, quotaFromStreamError as eY, reduceOutputItem as eZ, refusalReason as e_, generateNewWorkspaceKey as ea, getAgentStepLabel as eb, getAttachableRunId as ec, getChildTags as ed, getContextRemainingPercent as ee, getContextUsedPercent as ef, getContextUsedTokens as eg, getCurrentStep as eh, getEligibleParentTags as ei, getErrorCode as ej, getErrorMessage as ek, getPublicBookingPage as el, getRawWorkspaceKey as em, getRunToAttach as en, getRunToCancel as eo, getStepDisplay as ep, getStepTool as eq, getSubagentBranchRecord as er, getTagDescendantIds as es, health as et, houseTemplate as eu, hydrateAgentSteps as ev, identity as ew, identityErrorCode as ex, isAnnotationTag as ey, isConnectorVendorVisible as ez, ArbiError as f, requireOk as f0, resolveAuth as f1, resolveCitations as f2, resolveSummary as f3, resolveWorkspace as f4, responses as f5, searchChunks as f6, selectFullContextDocument as f7, selectWorkspace as f8, selectWorkspaceById as f9, sessions as fa, settings as fb, signatureRequests as fc, sliceToSubagentThread as fd, streamSSE as fe, stripCitationMarkdown as ff, subagentJobLabel as fg, summarizeCitations as fh, tagUseCount as fi, tags as fj, tagsForScope as fk, tagsOfGroup as fl, topLevelAgentSteps as fm, uploadSkill as fn, usdToGbp as fo, work as fp, workflowSteps as fq, workflows as fr, workspaces as fs, wouldCreateTagCycle as ft, type ArbiErrorOptions as g, type ArbiHostSession as h, type ArbiOptions as i, ArbiSessionExpiredError as j, ArbiTransportError as k, ArbiWorkspaceChangedError as l, ArbiWorkspaceSupersededError as m, type AskHandlers as n, type AskRequest as o, type AttendeeRead as p, type AuthContext as q, type AuthHeaders as r, type AuthMode as s, type AuthenticatedClient as t, type BookingPage as u, type BookingPageWriteBody as v, type BookingRequestBody as w, type BridgeTokensOptions as x, type CalDavProfile as y, type CalendarAccount as z };
|
|
@@ -8,12 +8,22 @@ import { S as SSEStreamStartData, j as ResponseOutputItemAddedEvent, k as Respon
|
|
|
8
8
|
* Unlike CLI helpers which call process.exit(1), these throw typed errors
|
|
9
9
|
* that consumers (CLI, TUI) can catch and handle in their own way.
|
|
10
10
|
*/
|
|
11
|
+
interface ArbiErrorOptions {
|
|
12
|
+
code?: string;
|
|
13
|
+
cause?: unknown;
|
|
14
|
+
requestId?: string;
|
|
15
|
+
/** The existing assistant response ID (msg-…), when known. */
|
|
16
|
+
responseId?: string;
|
|
17
|
+
}
|
|
11
18
|
declare class ArbiError extends Error {
|
|
12
|
-
|
|
19
|
+
readonly code?: string;
|
|
20
|
+
readonly requestId?: string;
|
|
21
|
+
readonly responseId?: string;
|
|
22
|
+
constructor(message: string, options?: ArbiErrorOptions);
|
|
13
23
|
}
|
|
14
24
|
/** The session cannot be recovered (token and workspace re-open both refused): sign in again. */
|
|
15
25
|
declare class ArbiSessionExpiredError extends ArbiError {
|
|
16
|
-
constructor(message?: string);
|
|
26
|
+
constructor(message?: string, options?: ArbiErrorOptions);
|
|
17
27
|
}
|
|
18
28
|
/**
|
|
19
29
|
* A newer `selectWorkspace` for another workspace was asked for before this one's turn: it never
|
|
@@ -38,7 +48,11 @@ declare class ArbiApiError extends ArbiError {
|
|
|
38
48
|
readonly apiError?: unknown;
|
|
39
49
|
/** Why the server refused, in its words (e.g. "run_at must be in the future"), when it said. */
|
|
40
50
|
readonly detail?: string;
|
|
41
|
-
constructor(message: string, apiError?: unknown, status?: number);
|
|
51
|
+
constructor(message: string, apiError?: unknown, status?: number, options?: ArbiErrorOptions);
|
|
52
|
+
}
|
|
53
|
+
/** A connection failed; it says nothing about the response's server-side state. */
|
|
54
|
+
declare class ArbiTransportError extends ArbiError {
|
|
55
|
+
constructor(cause: unknown, responseId?: string);
|
|
42
56
|
}
|
|
43
57
|
/**
|
|
44
58
|
* A contact write refused because one of its addresses already belongs to another contact (one
|
|
@@ -63,6 +77,7 @@ declare function requireData<T>(result: {
|
|
|
63
77
|
error?: unknown;
|
|
64
78
|
response?: {
|
|
65
79
|
status: number;
|
|
80
|
+
headers?: Headers;
|
|
66
81
|
};
|
|
67
82
|
}, message: string): T;
|
|
68
83
|
/**
|
|
@@ -72,6 +87,7 @@ declare function requireOk(result: {
|
|
|
72
87
|
error?: unknown;
|
|
73
88
|
response?: {
|
|
74
89
|
status: number;
|
|
90
|
+
headers?: Headers;
|
|
75
91
|
};
|
|
76
92
|
}, message: string): void;
|
|
77
93
|
/**
|
|
@@ -426,11 +442,23 @@ declare function parseSSEEvents(chunk: string, buffer: string): {
|
|
|
426
442
|
events: SSEEvent[];
|
|
427
443
|
remaining: string;
|
|
428
444
|
};
|
|
429
|
-
/**
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
*/
|
|
445
|
+
/** What the server reported, or how a nonterminal stream ended. */
|
|
446
|
+
interface SSEStreamOutcome {
|
|
447
|
+
status: 'completed' | 'failed' | 'cancelled' | 'incomplete' | 'disconnected' | 'acknowledged';
|
|
448
|
+
/** The existing assistant response ID (msg-…), not a new run identity. */
|
|
449
|
+
responseId: string | null;
|
|
450
|
+
/** Original terminal Responses payload, including error/incomplete metadata. */
|
|
451
|
+
response?: Readonly<Record<string, unknown>>;
|
|
452
|
+
error?: ArbiError;
|
|
453
|
+
/** A disconnected reader does not establish the response's server-side status. */
|
|
454
|
+
reason?: 'connection_closed' | 'connection_error' | 'aborted';
|
|
455
|
+
}
|
|
456
|
+
/** Optional streaming event observers; consumer callback exceptions propagate unchanged. */
|
|
433
457
|
interface SSEStreamCallbacks {
|
|
458
|
+
/** Structured SDK/server failures, supplementing the legacy onError callback. */
|
|
459
|
+
onErrorDetails?: (error: ArbiError) => void;
|
|
460
|
+
/** Called once on terminal input, EOF, or reader failure; consumer exceptions interrupt it. */
|
|
461
|
+
onOutcome?: (outcome: SSEStreamOutcome) => void;
|
|
434
462
|
onStreamStart?: (data: SSEStreamStartData) => void;
|
|
435
463
|
onToken?: (content: string) => void;
|
|
436
464
|
/** Answer/narration text delta with its message item id, so the client can
|
|
@@ -501,6 +529,10 @@ interface SSEStreamResult {
|
|
|
501
529
|
* may still be `in_progress` — the caller must reconcile it, never present it as a finished answer.
|
|
502
530
|
*/
|
|
503
531
|
completed: boolean;
|
|
532
|
+
/** Present on SDK-produced results; optional for legacy result adapters. */
|
|
533
|
+
outcome?: SSEStreamOutcome;
|
|
534
|
+
/** Structured counterparts of errors; existing string errors remain available. */
|
|
535
|
+
errorDetails?: ArbiApiError[];
|
|
504
536
|
}
|
|
505
537
|
/**
|
|
506
538
|
* Stream SSE events from a Response, invoking callbacks as events arrive.
|
|
@@ -798,6 +830,44 @@ interface CitationToolSources {
|
|
|
798
830
|
*/
|
|
799
831
|
declare function buildCitationChunkData(message: CitationToolSources): Record<string, Chunk$1[]>;
|
|
800
832
|
|
|
833
|
+
interface ResponseStartOptions {
|
|
834
|
+
/** Stops the request/reader only. Use handle.cancel() to stop server execution. */
|
|
835
|
+
signal?: AbortSignal;
|
|
836
|
+
}
|
|
837
|
+
interface RawResponseEvent {
|
|
838
|
+
readonly event: string;
|
|
839
|
+
readonly data: unknown;
|
|
840
|
+
readonly id?: string;
|
|
841
|
+
}
|
|
842
|
+
interface ResponseSnapshot {
|
|
843
|
+
readonly id: string;
|
|
844
|
+
readonly conversationId: string | null;
|
|
845
|
+
readonly connection: 'connecting' | 'streaming' | 'detached' | 'closed';
|
|
846
|
+
readonly responseStatus: string | null;
|
|
847
|
+
readonly output: readonly Readonly<Record<string, unknown>>[];
|
|
848
|
+
readonly displayText: string;
|
|
849
|
+
readonly rawResponse?: Readonly<Record<string, unknown>>;
|
|
850
|
+
readonly outcome?: SSEStreamOutcome;
|
|
851
|
+
}
|
|
852
|
+
interface ResponseHandle {
|
|
853
|
+
readonly id: string;
|
|
854
|
+
snapshot(): ResponseSnapshot;
|
|
855
|
+
subscribe(listener: (snapshot: ResponseSnapshot) => void): () => void;
|
|
856
|
+
/** One live iterator, without retrospective replay. Returning it does not detach. */
|
|
857
|
+
events(): AsyncIterableIterator<RawResponseEvent>;
|
|
858
|
+
readonly outcome: Promise<SSEStreamOutcome>;
|
|
859
|
+
detach(): void;
|
|
860
|
+
cancel(): Promise<unknown>;
|
|
861
|
+
}
|
|
862
|
+
type ResponseStart = {
|
|
863
|
+
kind: 'response';
|
|
864
|
+
handle: ResponseHandle;
|
|
865
|
+
} | {
|
|
866
|
+
kind: 'acknowledged';
|
|
867
|
+
acknowledgement: Readonly<Record<string, unknown>>;
|
|
868
|
+
outcome: SSEStreamOutcome;
|
|
869
|
+
};
|
|
870
|
+
|
|
801
871
|
/**
|
|
802
872
|
* Document operations — browser-safe functions.
|
|
803
873
|
*
|
|
@@ -3185,7 +3255,7 @@ declare namespace conversations {
|
|
|
3185
3255
|
}
|
|
3186
3256
|
|
|
3187
3257
|
/**
|
|
3188
|
-
* The one request builder for an assistant turn (`POST /v1/
|
|
3258
|
+
* The one request builder for an assistant turn (`POST /v1/responses`).
|
|
3189
3259
|
*
|
|
3190
3260
|
* Every client that asks the assistant — the web chat, the agent sidebar, the Word add-in, the
|
|
3191
3261
|
* image generator, the CLI and the TUI — builds its body here, so the tools a turn carries and the
|
|
@@ -3280,7 +3350,7 @@ declare function buildDocumentTools(selection: FullContextSelection): {
|
|
|
3280
3350
|
};
|
|
3281
3351
|
};
|
|
3282
3352
|
};
|
|
3283
|
-
/** The body of `POST /v1/
|
|
3353
|
+
/** The body of `POST /v1/responses` for a turn. */
|
|
3284
3354
|
declare function buildTurnRequest(request: TurnRequest): MessageInput$2;
|
|
3285
3355
|
|
|
3286
3356
|
/**
|
|
@@ -3391,7 +3461,7 @@ interface QuotaExceeded {
|
|
|
3391
3461
|
declare class AssistantTurnRefused extends ArbiApiError {
|
|
3392
3462
|
/** Set when the refusal is the project's used-up AI usage. */
|
|
3393
3463
|
readonly quota: QuotaExceeded | null;
|
|
3394
|
-
constructor(message: string, status: number, quota?: QuotaExceeded | null);
|
|
3464
|
+
constructor(message: string, status: number, quota?: QuotaExceeded | null, apiError?: unknown, options?: ArbiErrorOptions);
|
|
3395
3465
|
}
|
|
3396
3466
|
/** The session's token has expired and could not be renewed. */
|
|
3397
3467
|
declare const SESSION_EXPIRED_MESSAGE = "Token has expired. Please log in again.";
|
|
@@ -3400,7 +3470,7 @@ declare function quotaExceededFrom(detail: unknown): QuotaExceeded | null;
|
|
|
3400
3470
|
/** A stream error that is LiteLLM's ExceededBudget, read as {@link QuotaExceeded} (in £). */
|
|
3401
3471
|
declare function quotaFromStreamError(error: unknown): QuotaExceeded | null;
|
|
3402
3472
|
/**
|
|
3403
|
-
* Open a turn's stream (`POST /v1/
|
|
3473
|
+
* Open a turn's stream (`POST /v1/responses` with a built body). A 401 throws the
|
|
3404
3474
|
* `ArbiApiError` the session recovery renews the token on; any other refusal throws
|
|
3405
3475
|
* {@link AssistantTurnRefused}.
|
|
3406
3476
|
*/
|
|
@@ -11910,7 +11980,12 @@ declare class Arbi {
|
|
|
11910
11980
|
/** Unlock the signed-in user's native inbox for this server session (see `unlockNativeMail`). */
|
|
11911
11981
|
unlockNative: () => Promise<void>;
|
|
11912
11982
|
};
|
|
11983
|
+
private openResponseHandle;
|
|
11913
11984
|
readonly assistant: {
|
|
11985
|
+
/** Start one response with a composable observer; existing ask callbacks remain unchanged. */
|
|
11986
|
+
startResponse: (request: AskRequest, options?: ResponseStartOptions) => Promise<ResponseStart>;
|
|
11987
|
+
/** Attach to retained replay/live events for an existing msg; never resubmits a turn. */
|
|
11988
|
+
attachResponse: (id: string, options?: ResponseStartOptions) => Promise<ResponseHandle>;
|
|
11914
11989
|
/**
|
|
11915
11990
|
* Ask the assistant: send one turn (the body is `buildTurnRequest`) and stream it into
|
|
11916
11991
|
* `handlers`. Resolves with the accumulated result when the stream ends.
|
|
@@ -17116,4 +17191,4 @@ declare function getAttachableRunId(messages: readonly RunMessage[]): string | n
|
|
|
17116
17191
|
*/
|
|
17117
17192
|
declare function getRunToAttach(localGeneration: LocalGeneration | undefined, messages: readonly RunMessage[]): string | null;
|
|
17118
17193
|
|
|
17119
|
-
export { type ConfigStore as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalendarEvent as D, type CalendarKeys as E, type CalendarRead as F, type CalendarSettings as G, type CalendarSettingsBody as H, type CalendarUpdate as I, type CalendarWindow as J, CallApiError as K, type ChatAttachmentFile as L, type ChatAttachmentInput as M, type ChatCryptoContext as N, type ChatKeyRing as O, type ChatKind as P, type ChatMemberKey as Q, type ChatMemberResponse as R, type ChatMessage as S, type ChatMessageResponse as T, type ChatResponse as U, type ChatSession as V, type CitationSummary as W, type CitationToolSources as X, type CliConfig as Y, type CliCredentials as Z, type CommandDescriptor as _, type AccountSyncResult as a, type LinkedRun as a$, type ConnectOptions as a0, type ConnectorCatalogEntry as a1, type ConnectorFolder as a2, type ConnectorSyncProgress as a3, type ConnectorSyncStatus as a4, type ConnectorVendorKey as a5, type ConnectorVisibilitySettings as a6, type ContextUsage as a7, type ConversationResponse as a8, type ConversationUsageResponse as a9, type DocumentWaiterOptions as aA, type DriveSyncProgress as aB, type DriveSyncSummary as aC, DuplicateContactError as aD, ENTITY_KINDS as aE, type EditScope as aF, type EntityKind as aG, type EventCreateBody as aH, type EventPatchBody as aI, FLAT_TAG_KINDS as aJ, type FactResponse as aK, type FactSearchRequest as aL, type FactSearchResponse as aM, type FindTimeParams as aN, type FormattedWsMessage as aO, type FreeBusyEntry as aP, type FullContextSelection as aQ, GOOGLE_VENDORS as aR, type HolidayCountry as aS, type HouseTemplateCandidate as aT, IMANAGE_VENDORS as aU, type IdentityErrorCode as aV, type IdentityPurchase as aW, type IdentityState as aX, type IdentityStatus as aY, type ImportResult as aZ, type InvitationRead as a_, type CreateFactRequest as aa, type CreateFactsRequest as ab, type CreateWorkRequest as ac, type CreateWorkflowRequest as ad, DEFAULT_AI_USD_PER_GBP as ae, DOC_TERMINAL_STATUSES as af, DRIVE_SYNC_VENDORS as ag, type Database as ah, type DatabaseColumn as ai, type DatabaseColumnWrite as aj, type DatabaseImportResult as ak, type DatabaseRow as al, type DatabaseRowPage as am, type DatabaseRowsQuery as an, type DateTimeSpec as ao, type DecryptedChat as ap, type DecryptedChatMessage as aq, type DeploymentHouseTemplate as ar, type DocInfo as as, type DocInfoMap as at, type DocNameMap as au, type DocumentAutomationAction as av, type DocumentListFields as aw, type DocumentListOrder as ax, type DocumentSelector as ay, type DocumentWaiter as az, type ActivityKind as b, type SearchChunk as b$, type ListAllOptions as b0, type ListEventsParams as b1, type ListFactsOptions as b2, type ListPaginatedOptions as b3, MAILBOX_SYNC_VENDORS as b4, MAX_RETRIEVE_DOC_IDS as b5, MICROSOFT_VENDORS as b6, type MailAttachment as b7, type MessageLevel as b8, type OAuthAccountKind as b9, type ProjectUsageResponse as bA, PublicBookingError as bB, type PublicBookingPage as bC, type QuotaExceeded as bD, type RaisedSignal as bE, type ReconnectOptions as bF, type ReconnectableWsConnection as bG, type ResolvedCitation as bH, type ResolvedRecipient as bI, type RespondParams as bJ, type RespondPartstat as bK, type RoomCreateBody as bL, type RoomQuery as bM, type RoomRead as bN, type RunProgress as bO, type RunStats as bP, type RunStep as bQ, type RunWaitingOn as bR, SHAREPOINT_VENDORS as bS, type SSEEvent as bT, type SSEStreamCallbacks as bU, type SSEStreamResult as bV, STEP_FIELD_OPTION_TONES as bW, STOP_ID_WAIT_MS as bX, STOP_REPEAT_WINDOW_MS as bY, SUPPORTED_EXTENSIONS as bZ, type ScopedTarget as b_, type OutputItemDone as ba, type OverlayItem as bb, type OverlayLayerName as bc, PRESENCE_KINDS as bd, PROMPT_CONTEXT_CHARS as be, type ParsedSlashCommand as bf, type PendingAuthResponse as bg, type PersonKey as bh, PlanStepsError as bi, type PlanWorkRequest as bj, type ProductResponse as bk, type ProjectAddonKind as bl, type ProjectAddonSettingsRequest as bm, type ProjectBudget as bn, type ProjectCheckoutRequest as bo, type ProjectConversationUsageResponse as bp, type ProjectCreateOptions as bq, type ProjectDetails as br, type ProjectEventKind as bs, type ProjectEventResponse as bt, type ProjectInvoicesResponse as bu, type ProjectNextPeriodAddonsRequest as bv, type ProjectPlanChangeRequest as bw, type ProjectQuoteRequest as bx, type ProjectResponse as by, type ProjectUpdateRequest as bz, type ActivityResponse as c, type WorkflowResponse as c$, type SendBack as c0, type ShareRead as c1, type ShareRole as c2, type SkillSummary as c3, type SkippedFile as c4, type SlackConnectionStatus as c5, type StepActionRequest as c6, type StepActivityEvent as c7, type StepAssignee as c8, type StepDisplay as c9, type TagScope as cA, type TagTreeRow as cB, type TaskPlan as cC, type TaskPlanStep as cD, type TaxQuoteResponse as cE, type Thread as cF, type ThreadsResponse as cG, type TimeSuggestion as cH, type TurnRequest as cI, type UpdateConversationRequest as cJ, type UpdateFactRequest as cK, type UpdateWorkflowRequest as cL, type UploadBatchResult as cM, type UploadDirectOptions as cN, type UploadDirectResult as cO, type UploadDocumentsOptions as cP, type UploadOptions as cQ, type UploadProgressListener as cR, type UploadResult as cS, type UsageBreakdown as cT, type UserConnectorEntry as cU, type UserDailyUsageResponse as cV, type UserInfo as cW, WebSocketAuthError as cX, type WeeklyHoursSpec as cY, type WorkStatus as cZ, type WorkflowAuthMode as c_, type StepField as ca, type StepFieldOption as cb, type StepFieldOptionTone as cc, type StepKind as cd, type StepPhase as ce, type StepSignal as cf, type StepSignalWhen as cg, type StepState as ch, type StepStatus as ci, type SubagentBranchRecord as cj, type SubagentLaneInfo as ck, type SubmitBackgroundQueryOptions as cl, type SubscribeParams as cm, type SyncTriggerResult as cn, TAG_KINDS as co, TAG_NESTING_MAX_DEPTH as cp, type TagChange as cq, type TagFieldDefinition as cr, type TagGroup as cs, type TagKind as ct, type TagKindField as cu, type TagKindSchema as cv, type TagLinks as cw, type TagListQuery as cx, type TagNode as cy, type TagResponse as cz, Arbi as d, formatWorkspaceChoices as d$, type WorkflowRunHistoryResponse as d0, type WorkflowRunResponse as d1, type WorkspaceContext as d2, type WorkspaceOpenResponse as d3, type WsConnection as d4, account as d5, agentconfig as d6, agents as d7, appendTranscriptionHints as d8, assistant as d9, createDocumentWaiter as dA, createIndexAssigner as dB, databases as dC, defaultKindForFormat as dD, doctags as dE, documents as dF, estimateDraftTokens as dG, extractDocumentIdsFromMessages as dH, extractFactIdsFromMessages as dI, extractSubagentLanes as dJ, facts as dK, files as dL, filterDocumentTags as dM, filterSkills as dN, findLeafForTaskMessage as dO, findMainSiblingLeaf as dP, findReplyTarget as dQ, findSubagentRunId as dR, flattenTagTree as dS, formatAgentStepLabel as dT, formatFileSize as dU, formatGbp as dV, formatGbpPerMillionTokens as dW, formatItemLabel as dX, formatStreamSummary as dY, formatTokens as dZ, formatUserName as d_, authenticatedFetch as da, bookPublicSlot as db, buildCitationChunkData as dc, buildDocNameMap as dd, buildDocumentTools as de, buildFactsContextTool as df, buildRetrievalChunkTool as dg, buildRetrievalFullContextTool as dh, buildRetrievalTocTool as di, buildTurnRequest as dj, calendar as dk, calls as dl, canTagHaveParent as dm, cancelPublicBooking as dn, chats as dp, computeRunStats as dq, connectErrorMessage as dr, connectWebSocket as ds, connectWithReconnect as dt, connectors as du, contacts as dv, continuityPrompt as dw, conversations as dx, countCitations as dy, createAuthenticatedClient as dz, ArbiApiError as e, selectFullContextDocument as e$, formatWsMessage as e0, generateEncryptedWorkspaceKey as e1, generateNewWorkspaceKey as e2, getAgentStepLabel as e3, getAttachableRunId as e4, getChildTags as e5, getContextRemainingPercent as e6, getContextUsedPercent as e7, getContextUsedTokens as e8, getCurrentStep as e9, isSharedSkill as eA, isTraceItem as eB, mail as eC, mergeAgentSteps as eD, notifications as eE, parseSSEEvents as eF, parseSlashCommand as eG, parseSlashTokenInProgress as eH, performPasswordLogin as eI, performSigningKeyLogin as eJ, performSsoDeviceFlowLogin as eK, pickMainThread as eL, profile as eM, progressFetch as eN, projects as eO, quotaExceededFrom as eP, quotaFromStreamError as eQ, reduceOutputItem as eR, refusalReason as eS, requireData as eT, requireOk as eU, resolveAuth as eV, resolveCitations as eW, resolveSummary as eX, resolveWorkspace as eY, responses as eZ, searchChunks as e_, getEligibleParentTags as ea, getErrorCode as eb, getErrorMessage as ec, getPublicBookingPage as ed, getRawWorkspaceKey as ee, getRunToAttach as ef, getRunToCancel as eg, getStepDisplay as eh, getStepTool as ei, getSubagentBranchRecord as ej, getTagDescendantIds as ek, health as el, houseTemplate as em, hydrateAgentSteps as en, identity as eo, identityErrorCode as ep, isAnnotationTag as eq, isConnectorVendorVisible as er, isDriveSyncVendor as es, isEntityTag as et, isFlatKind as eu, isLabelTag as ev, isMailboxSyncVendor as ew, isNearAiUsageBudget as ex, isPresenceTag as ey, isSharePointVendor as ez, ArbiError as f, selectWorkspace as f0, selectWorkspaceById as f1, sessions as f2, settings as f3, signatureRequests as f4, sliceToSubagentThread as f5, streamSSE as f6, stripCitationMarkdown as f7, subagentJobLabel as f8, summarizeCitations as f9, tagUseCount as fa, tags as fb, tagsForScope as fc, tagsOfGroup as fd, topLevelAgentSteps as fe, uploadSkill as ff, usdToGbp as fg, work as fh, workflowSteps as fi, workflows as fj, workspaces as fk, wouldCreateTagCycle as fl, type ArbiHostSession as g, type ArbiOptions as h, ArbiSessionExpiredError as i, ArbiWorkspaceChangedError as j, ArbiWorkspaceSupersededError as k, type AskHandlers as l, type AskRequest as m, type AttendeeRead as n, type AuthContext as o, type AuthHeaders as p, type AuthMode as q, type AuthenticatedClient as r, type BookingPage as s, type BookingPageWriteBody as t, type BookingRequestBody as u, type BridgeTokensOptions as v, type CalDavProfile as w, type CalendarAccount as x, type CalendarAccountKind as y, type CalendarCreateBody as z };
|
|
17194
|
+
export { type CliCredentials as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalendarAccountKind as D, type CalendarCreateBody as E, type CalendarEvent as F, type CalendarKeys as G, type CalendarRead as H, type CalendarSettings as I, type CalendarSettingsBody as J, type CalendarUpdate as K, type CalendarWindow as L, CallApiError as M, type ChatAttachmentFile as N, type ChatAttachmentInput as O, type ChatCryptoContext as P, type ChatKeyRing as Q, type ChatKind as R, type ChatMemberKey as S, type ChatMemberResponse as T, type ChatMessage as U, type ChatMessageResponse as V, type ChatResponse as W, type ChatSession as X, type CitationSummary as Y, type CitationToolSources as Z, type CliConfig as _, type AccountSyncResult as a, type ImportResult as a$, type CommandDescriptor as a0, type ConfigStore as a1, type ConnectOptions as a2, type ConnectorCatalogEntry as a3, type ConnectorFolder as a4, type ConnectorSyncProgress as a5, type ConnectorSyncStatus as a6, type ConnectorVendorKey as a7, type ConnectorVisibilitySettings as a8, type ContextUsage as a9, type DocumentSelector as aA, type DocumentWaiter as aB, type DocumentWaiterOptions as aC, type DriveSyncProgress as aD, type DriveSyncSummary as aE, DuplicateContactError as aF, ENTITY_KINDS as aG, type EditScope as aH, type EntityKind as aI, type EventCreateBody as aJ, type EventPatchBody as aK, FLAT_TAG_KINDS as aL, type FactResponse as aM, type FactSearchRequest as aN, type FactSearchResponse as aO, type FindTimeParams as aP, type FormattedWsMessage as aQ, type FreeBusyEntry as aR, type FullContextSelection as aS, GOOGLE_VENDORS as aT, type HolidayCountry as aU, type HouseTemplateCandidate as aV, IMANAGE_VENDORS as aW, type IdentityErrorCode as aX, type IdentityPurchase as aY, type IdentityState as aZ, type IdentityStatus as a_, type ConversationResponse as aa, type ConversationUsageResponse as ab, type CreateFactRequest as ac, type CreateFactsRequest as ad, type CreateWorkRequest as ae, type CreateWorkflowRequest as af, DEFAULT_AI_USD_PER_GBP as ag, DOC_TERMINAL_STATUSES as ah, DRIVE_SYNC_VENDORS as ai, type Database as aj, type DatabaseColumn as ak, type DatabaseColumnWrite as al, type DatabaseImportResult as am, type DatabaseRow as an, type DatabaseRowPage as ao, type DatabaseRowsQuery as ap, type DateTimeSpec as aq, type DecryptedChat as ar, type DecryptedChatMessage as as, type DeploymentHouseTemplate as at, type DocInfo as au, type DocInfoMap as av, type DocNameMap as aw, type DocumentAutomationAction as ax, type DocumentListFields as ay, type DocumentListOrder as az, type ActivityKind as b, type SSEStreamCallbacks as b$, type InvitationRead as b0, type LinkedRun as b1, type ListAllOptions as b2, type ListEventsParams as b3, type ListFactsOptions as b4, type ListPaginatedOptions as b5, MAILBOX_SYNC_VENDORS as b6, MAX_RETRIEVE_DOC_IDS as b7, MICROSOFT_VENDORS as b8, type MailAttachment as b9, type ProjectResponse as bA, type ProjectUpdateRequest as bB, type ProjectUsageResponse as bC, PublicBookingError as bD, type PublicBookingPage as bE, type QuotaExceeded as bF, type RaisedSignal as bG, type RawResponseEvent as bH, type ReconnectOptions as bI, type ReconnectableWsConnection as bJ, type ResolvedCitation as bK, type ResolvedRecipient as bL, type RespondParams as bM, type RespondPartstat as bN, type ResponseHandle as bO, type ResponseSnapshot as bP, type ResponseStart as bQ, type ResponseStartOptions as bR, type RoomCreateBody as bS, type RoomQuery as bT, type RoomRead as bU, type RunProgress as bV, type RunStats as bW, type RunStep as bX, type RunWaitingOn as bY, SHAREPOINT_VENDORS as bZ, type SSEEvent as b_, type MessageLevel as ba, type OAuthAccountKind as bb, type OutputItemDone as bc, type OverlayItem as bd, type OverlayLayerName as be, PRESENCE_KINDS as bf, PROMPT_CONTEXT_CHARS as bg, type ParsedSlashCommand as bh, type PendingAuthResponse as bi, type PersonKey as bj, PlanStepsError as bk, type PlanWorkRequest as bl, type ProductResponse as bm, type ProjectAddonKind as bn, type ProjectAddonSettingsRequest as bo, type ProjectBudget as bp, type ProjectCheckoutRequest as bq, type ProjectConversationUsageResponse as br, type ProjectCreateOptions as bs, type ProjectDetails as bt, type ProjectEventKind as bu, type ProjectEventResponse as bv, type ProjectInvoicesResponse as bw, type ProjectNextPeriodAddonsRequest as bx, type ProjectPlanChangeRequest as by, type ProjectQuoteRequest as bz, type ActivityResponse as c, type UsageBreakdown as c$, type SSEStreamOutcome as c0, type SSEStreamResult as c1, STEP_FIELD_OPTION_TONES as c2, STOP_ID_WAIT_MS as c3, STOP_REPEAT_WINDOW_MS as c4, SUPPORTED_EXTENSIONS as c5, type ScopedTarget as c6, type SearchChunk as c7, type SendBack as c8, type ShareRead as c9, type TagGroup as cA, type TagKind as cB, type TagKindField as cC, type TagKindSchema as cD, type TagLinks as cE, type TagListQuery as cF, type TagNode as cG, type TagResponse as cH, type TagScope as cI, type TagTreeRow as cJ, type TaskPlan as cK, type TaskPlanStep as cL, type TaxQuoteResponse as cM, type Thread as cN, type ThreadsResponse as cO, type TimeSuggestion as cP, type TurnRequest as cQ, type UpdateConversationRequest as cR, type UpdateFactRequest as cS, type UpdateWorkflowRequest as cT, type UploadBatchResult as cU, type UploadDirectOptions as cV, type UploadDirectResult as cW, type UploadDocumentsOptions as cX, type UploadOptions as cY, type UploadProgressListener as cZ, type UploadResult as c_, type ShareRole as ca, type SkillSummary as cb, type SkippedFile as cc, type SlackConnectionStatus as cd, type StepActionRequest as ce, type StepActivityEvent as cf, type StepAssignee as cg, type StepDisplay as ch, type StepField as ci, type StepFieldOption as cj, type StepFieldOptionTone as ck, type StepKind as cl, type StepPhase as cm, type StepSignal as cn, type StepSignalWhen as co, type StepState as cp, type StepStatus as cq, type SubagentBranchRecord as cr, type SubagentLaneInfo as cs, type SubmitBackgroundQueryOptions as ct, type SubscribeParams as cu, type SyncTriggerResult as cv, TAG_KINDS as cw, TAG_NESTING_MAX_DEPTH as cx, type TagChange as cy, type TagFieldDefinition as cz, Arbi as d, formatAgentStepLabel as d$, type UserConnectorEntry as d0, type UserDailyUsageResponse as d1, type UserInfo as d2, WebSocketAuthError as d3, type WeeklyHoursSpec as d4, type WorkStatus as d5, type WorkflowAuthMode as d6, type WorkflowResponse as d7, type WorkflowRunHistoryResponse as d8, type WorkflowRunResponse as d9, connectWebSocket as dA, connectWithReconnect as dB, connectors as dC, contacts as dD, continuityPrompt as dE, conversations as dF, countCitations as dG, createAuthenticatedClient as dH, createDocumentWaiter as dI, createIndexAssigner as dJ, databases as dK, defaultKindForFormat as dL, doctags as dM, documents as dN, estimateDraftTokens as dO, extractDocumentIdsFromMessages as dP, extractFactIdsFromMessages as dQ, extractSubagentLanes as dR, facts as dS, files as dT, filterDocumentTags as dU, filterSkills as dV, findLeafForTaskMessage as dW, findMainSiblingLeaf as dX, findReplyTarget as dY, findSubagentRunId as dZ, flattenTagTree as d_, type WorkspaceContext as da, type WorkspaceOpenResponse as db, type WsConnection as dc, account as dd, agentconfig as de, agents as df, appendTranscriptionHints as dg, assistant as dh, authenticatedFetch as di, bookPublicSlot as dj, buildCitationChunkData as dk, buildDocNameMap as dl, buildDocumentTools as dm, buildFactsContextTool as dn, buildRetrievalChunkTool as dp, buildRetrievalFullContextTool as dq, buildRetrievalTocTool as dr, buildTurnRequest as ds, calendar as dt, calls as du, canTagHaveParent as dv, cancelPublicBooking as dw, chats as dx, computeRunStats as dy, connectErrorMessage as dz, ArbiApiError as e, requireData as e$, formatFileSize as e0, formatGbp as e1, formatGbpPerMillionTokens as e2, formatItemLabel as e3, formatStreamSummary as e4, formatTokens as e5, formatUserName as e6, formatWorkspaceChoices as e7, formatWsMessage as e8, generateEncryptedWorkspaceKey as e9, isDriveSyncVendor as eA, isEntityTag as eB, isFlatKind as eC, isLabelTag as eD, isMailboxSyncVendor as eE, isNearAiUsageBudget as eF, isPresenceTag as eG, isSharePointVendor as eH, isSharedSkill as eI, isTraceItem as eJ, mail as eK, mergeAgentSteps as eL, notifications as eM, parseSSEEvents as eN, parseSlashCommand as eO, parseSlashTokenInProgress as eP, performPasswordLogin as eQ, performSigningKeyLogin as eR, performSsoDeviceFlowLogin as eS, pickMainThread as eT, profile as eU, progressFetch as eV, projects as eW, quotaExceededFrom as eX, quotaFromStreamError as eY, reduceOutputItem as eZ, refusalReason as e_, generateNewWorkspaceKey as ea, getAgentStepLabel as eb, getAttachableRunId as ec, getChildTags as ed, getContextRemainingPercent as ee, getContextUsedPercent as ef, getContextUsedTokens as eg, getCurrentStep as eh, getEligibleParentTags as ei, getErrorCode as ej, getErrorMessage as ek, getPublicBookingPage as el, getRawWorkspaceKey as em, getRunToAttach as en, getRunToCancel as eo, getStepDisplay as ep, getStepTool as eq, getSubagentBranchRecord as er, getTagDescendantIds as es, health as et, houseTemplate as eu, hydrateAgentSteps as ev, identity as ew, identityErrorCode as ex, isAnnotationTag as ey, isConnectorVendorVisible as ez, ArbiError as f, requireOk as f0, resolveAuth as f1, resolveCitations as f2, resolveSummary as f3, resolveWorkspace as f4, responses as f5, searchChunks as f6, selectFullContextDocument as f7, selectWorkspace as f8, selectWorkspaceById as f9, sessions as fa, settings as fb, signatureRequests as fc, sliceToSubagentThread as fd, streamSSE as fe, stripCitationMarkdown as ff, subagentJobLabel as fg, summarizeCitations as fh, tagUseCount as fi, tags as fj, tagsForScope as fk, tagsOfGroup as fl, topLevelAgentSteps as fm, uploadSkill as fn, usdToGbp as fo, work as fp, workflowSteps as fq, workflows as fr, workspaces as fs, wouldCreateTagCycle as ft, type ArbiErrorOptions as g, type ArbiHostSession as h, type ArbiOptions as i, ArbiSessionExpiredError as j, ArbiTransportError as k, ArbiWorkspaceChangedError as l, ArbiWorkspaceSupersededError as m, type AskHandlers as n, type AskRequest as o, type AttendeeRead as p, type AuthContext as q, type AuthHeaders as r, type AuthMode as s, type AuthenticatedClient as t, type BookingPage as u, type BookingPageWriteBody as v, type BookingRequestBody as w, type BridgeTokensOptions as x, type CalDavProfile as y, type CalendarAccount as z };
|