@arbidocs/sdk 0.5.60 → 0.5.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +118 -0
- package/dist/{browser-BuRU9RVU.d.cts → browser-2WIMhFQU.d.cts} +100 -1
- package/dist/{browser-GyBIGRNQ.d.ts → browser-CKSVXWvq.d.ts} +100 -1
- package/dist/browser.cjs +253 -1
- 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 +246 -2
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +253 -1
- 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 +246 -2
- package/dist/index.js.map +1 -1
- package/examples/background-response.mjs +18 -0
- package/examples/responses-contract.json +97 -0
- package/examples/session.mjs +10 -0
- package/examples/structured-extraction.mjs +20 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -275,3 +275,121 @@ Connection failures are retried only for generated GET/HEAD requests, with the e
|
|
|
275
275
|
backoff. Mutations and response creation are never retried after an ambiguous connection failure.
|
|
276
276
|
Existing explicit authentication/workspace-state refusal recovery remains, through the same
|
|
277
277
|
configured transport. This option adds no workspace selector, header, permission or switching.
|
|
278
|
+
|
|
279
|
+
### Validated structured responses
|
|
280
|
+
|
|
281
|
+
```ts
|
|
282
|
+
const format = {
|
|
283
|
+
type: 'json_schema' as const,
|
|
284
|
+
name: 'invoice',
|
|
285
|
+
strict: true,
|
|
286
|
+
schema: {
|
|
287
|
+
type: 'object',
|
|
288
|
+
properties: { total: { type: 'number' } },
|
|
289
|
+
required: ['total'],
|
|
290
|
+
additionalProperties: false,
|
|
291
|
+
},
|
|
292
|
+
}
|
|
293
|
+
const { data, response } = await arbi.assistant.parseResponse<{ total: number }>({
|
|
294
|
+
question: 'Extract the invoice total',
|
|
295
|
+
docIds: [invoiceId],
|
|
296
|
+
text: { format },
|
|
297
|
+
})
|
|
298
|
+
// data is validated; response is the original envelope, including usage and metadata.
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
The same `text` option is accepted by `ask`, `startResponse` and background `submit`.
|
|
302
|
+
For streaming/background work, retain the format and validate a completed resource with
|
|
303
|
+
`await parseStructuredResponse(response, format)`. Live JSON fragments are provisional.
|
|
304
|
+
The parser expects one final assistant output message; it does not join narrative and answer
|
|
305
|
+
messages or treat `metadata.content` as a replacement for standard output items.
|
|
306
|
+
|
|
307
|
+
Invalid JSON, schema mismatch, refusal, incomplete/cancelled/nonterminal responses and invalid
|
|
308
|
+
schemas have distinct error codes. `ArbiStructuredOutputError.response` preserves the original
|
|
309
|
+
response; request/response IDs remain available. No type coercion, default insertion, Markdown
|
|
310
|
+
repair or automatic resubmission is performed. The TypeScript generic describes your schema's
|
|
311
|
+
shape; runtime validation comes from JSON Schema, not the generic parameter.
|
|
312
|
+
|
|
313
|
+
Schemas use draft 2020-12 and local references; format annotations are not asserted. Client
|
|
314
|
+
validation loads Ajv on demand and uses runtime compilation, with logging disabled. A runtime policy that prohibits
|
|
315
|
+
compilation produces `STRUCTURED_OUTPUT_VALIDATOR_UNAVAILABLE` before sending a request; raw
|
|
316
|
+
server-validated Responses remain available through the existing APIs without this client parser.
|
|
317
|
+
|
|
318
|
+
Requires the backend structured-output capability. It validates the existing model/agent loop's
|
|
319
|
+
final answer without changing workspace, identity or tool permissions. Native-agent and
|
|
320
|
+
slash/delegation paths that cannot honor this contract reject it explicitly with
|
|
321
|
+
`STRUCTURED_OUTPUT_UNSUPPORTED`; they never silently ignore it. Other request fields and old
|
|
322
|
+
callback consumers keep their existing behavior.
|
|
323
|
+
|
|
324
|
+
## Familiar Responses operations
|
|
325
|
+
|
|
326
|
+
```ts
|
|
327
|
+
const response = await arbi.responses.create({ input: 'Hello', model: 'cfg-my-config' })
|
|
328
|
+
const current = await arbi.responses.retrieve(response.id)
|
|
329
|
+
const queued = await arbi.responses.create({ input: 'Review this', background: true })
|
|
330
|
+
const started = await arbi.responses.stream({ input: 'Hello' })
|
|
331
|
+
if (started.kind === 'response') {
|
|
332
|
+
for await (const { event, data } of started.handle.events()) console.log(event, data)
|
|
333
|
+
const outcome = await started.handle.outcome
|
|
334
|
+
}
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
The current workspace supplies the ARBI workspace context. `workspace_ext_id` is a wire-level
|
|
338
|
+
escape hatch subject to existing server checks; it does not switch the session or grant access.
|
|
339
|
+
`create` returns the original JSON envelope, including terminal failures. `stream` returns our
|
|
340
|
+
existing message handle (or a slash-command acknowledgement), not an OpenAI SDK stream object.
|
|
341
|
+
`retrieve`, `cancel` and `attach` operate on an existing `msg-` response. One `con-` conversation
|
|
342
|
+
contains many responses. Use `assistant.parseResponse` for validated JSON and `assistant.ask`
|
|
343
|
+
for callback convenience; these remain supported.
|
|
344
|
+
|
|
345
|
+
Compatibility means the documented `/v1/responses` subset, not drop-in support for every OpenAI,
|
|
346
|
+
Anthropic or Vercel feature. Input is currently a string; tool context uses ARBI's documented tool
|
|
347
|
+
map. Authentication, cfg selection, agt identity, workspace grants and deferred execution remain
|
|
348
|
+
ARBI contracts. Native local-function tools and arbitrary provider options are not implemented.
|
|
349
|
+
See the backend's `docs/responses-api.md` for the exact supported fields.
|
|
350
|
+
|
|
351
|
+
## Compose an existing configuration
|
|
352
|
+
|
|
353
|
+
Start from the configuration fetched by `agentConfig.get(configId)` so omitted settings keep
|
|
354
|
+
their current values. No helper creates an identity, grants permissions or contacts MCP servers.
|
|
355
|
+
|
|
356
|
+
```ts
|
|
357
|
+
import { composeConfiguration, instructions, capabilities, mcpTools,
|
|
358
|
+
documentTools, composeTools } from '@arbidocs/sdk/browser'
|
|
359
|
+
|
|
360
|
+
const updated = composeConfiguration(existingConfiguration,
|
|
361
|
+
instructions('Answer with evidence.'),
|
|
362
|
+
capabilities({ webSearch: true, codeExecution: false }),
|
|
363
|
+
mcpTools(existingConfiguration, ['approved_search'], 'add'))
|
|
364
|
+
await arbi.agentConfig.save(updated)
|
|
365
|
+
const tools = composeTools(existingTools, documentTools({ search: [documentId] }), 'add')
|
|
366
|
+
await arbi.responses.create({ input: 'Summarise the evidence', tools })
|
|
367
|
+
```
|
|
368
|
+
|
|
369
|
+
Configuration sections merge one level; arrays replace; explicit null clears. MCP and response-tool
|
|
370
|
+
helpers require an explicit `add` or `replace` choice. Adding a tool replaces the same name while
|
|
371
|
+
preserving other names. Instructions apply to both QueryLLM and the built-in agent persona.
|
|
372
|
+
Ordinary `cfg-` configurations do not require `agt-` identities. Pinning a configuration to an
|
|
373
|
+
existing agent uses the existing `agent_ext_id`; authorizing its task remains a separate action.
|
|
374
|
+
|
|
375
|
+
## Choose a public layer
|
|
376
|
+
|
|
377
|
+
| Need | Package / entry |
|
|
378
|
+
| --- | --- |
|
|
379
|
+
| Responses and domain operations, Node | `@arbidocs/sdk` |
|
|
380
|
+
| Same operations, browser-safe imports | `@arbidocs/sdk/browser` |
|
|
381
|
+
| Typed HTTP and advanced crypto/session access | `@arbidocs/client` |
|
|
382
|
+
| Headless React state and React Query hooks | `@arbidocs/react` |
|
|
383
|
+
| Rendered composable views | `@arbidocs/blocks` and capability subpaths |
|
|
384
|
+
| Connected rendered views | `@arbidocs/blocks/connect` |
|
|
385
|
+
| Fake fetch, SSE frames, replay scenarios | `@arbidocs/sdk/testing` (tests only) |
|
|
386
|
+
|
|
387
|
+
Existing exports remain available. Import domain helpers through the documented package entries;
|
|
388
|
+
never import `src/` or generated `dist/` internals. A React Query hook uses the same session and
|
|
389
|
+
request builder as the SDK; applications do not need another chat engine.
|
|
390
|
+
|
|
391
|
+
The published `examples/` directory includes `node-response.mjs`, `background-response.mjs` and
|
|
392
|
+
`structured-extraction.mjs`. Install the package, set the environment variables documented in
|
|
393
|
+
`examples/session.mjs`, and run with Node 22+. Background inspection accepts an existing response
|
|
394
|
+
ID and never resubmits automatically. Tests can import `frame` and `createSseFake` from `/testing`
|
|
395
|
+
to exercise streams without a deployment (see the exported helper signatures).
|
|
@@ -832,6 +832,20 @@ interface CitationToolSources {
|
|
|
832
832
|
*/
|
|
833
833
|
declare function buildCitationChunkData(message: CitationToolSources): Record<string, Chunk$1[]>;
|
|
834
834
|
|
|
835
|
+
type JsonSchemaOutputFormat = components['schemas']['JsonSchemaFormat'];
|
|
836
|
+
type StructuredResponse = components['schemas']['ResponsesAPIResponse'];
|
|
837
|
+
interface ParsedStructuredResponse<T> {
|
|
838
|
+
data: T;
|
|
839
|
+
/** Original Responses envelope, including output, metadata, usage and extensions. */
|
|
840
|
+
response: StructuredResponse;
|
|
841
|
+
}
|
|
842
|
+
declare class ArbiStructuredOutputError extends ArbiError {
|
|
843
|
+
readonly response: unknown;
|
|
844
|
+
constructor(message: string, response: unknown, options: ArbiErrorOptions);
|
|
845
|
+
}
|
|
846
|
+
/** Validate the stored/final response of a background or streaming request against its schema. */
|
|
847
|
+
declare function parseStructuredResponse<T = unknown>(response: StructuredResponse, format: JsonSchemaOutputFormat): Promise<ParsedStructuredResponse<T>>;
|
|
848
|
+
|
|
835
849
|
interface ResponseStartOptions {
|
|
836
850
|
/** Stops the request/reader only. Use handle.cancel() to stop server execution. */
|
|
837
851
|
signal?: AbortSignal;
|
|
@@ -3319,6 +3333,8 @@ interface TurnRequest {
|
|
|
3319
3333
|
agentId?: string;
|
|
3320
3334
|
/** The config (model) to answer with. */
|
|
3321
3335
|
model?: string | null;
|
|
3336
|
+
/** Responses output configuration, scoped to this turn. */
|
|
3337
|
+
text?: MessageInput$2['text'];
|
|
3322
3338
|
/** Structured @mentions in the question. */
|
|
3323
3339
|
mentions?: MessageInput$2['mentions'];
|
|
3324
3340
|
/** The mode a NEW conversation starts in. */
|
|
@@ -3657,6 +3673,7 @@ interface SubmitBackgroundQueryOptions extends AuthHeaders {
|
|
|
3657
3673
|
docIds: string[];
|
|
3658
3674
|
previousResponseId?: string | null;
|
|
3659
3675
|
model?: string;
|
|
3676
|
+
text?: MessageInput['text'];
|
|
3660
3677
|
task?: MessageInput['task'];
|
|
3661
3678
|
conversationId?: string;
|
|
3662
3679
|
mentions?: MessageInput['mentions'];
|
|
@@ -12004,7 +12021,52 @@ declare class Arbi {
|
|
|
12004
12021
|
unlockNative: () => Promise<void>;
|
|
12005
12022
|
};
|
|
12006
12023
|
private openResponseHandle;
|
|
12024
|
+
/** Canonical Responses-shaped requests; existing assistant convenience helpers remain supported. */
|
|
12025
|
+
readonly responses: {
|
|
12026
|
+
create: (request: Omit<components["schemas"]["MessageInput"], "workspace_ext_id" | "stream" | "background" | "store"> & {
|
|
12027
|
+
workspace_ext_id?: string;
|
|
12028
|
+
stream?: false;
|
|
12029
|
+
background?: boolean;
|
|
12030
|
+
store?: boolean;
|
|
12031
|
+
}, options?: {
|
|
12032
|
+
signal?: AbortSignal;
|
|
12033
|
+
}) => Promise<StructuredResponse>;
|
|
12034
|
+
stream: (request: Omit<components["schemas"]["MessageInput"], "workspace_ext_id" | "stream" | "background" | "store"> & {
|
|
12035
|
+
workspace_ext_id?: string;
|
|
12036
|
+
store?: boolean;
|
|
12037
|
+
}, options?: ResponseStartOptions) => Promise<ResponseStart>;
|
|
12038
|
+
retrieve: (id: string) => Promise<{
|
|
12039
|
+
id: string;
|
|
12040
|
+
object: "response";
|
|
12041
|
+
status: "completed" | "in_progress" | "queued" | "cancelled" | "failed" | "incomplete";
|
|
12042
|
+
created_at?: number | null;
|
|
12043
|
+
model?: string | null;
|
|
12044
|
+
background: boolean;
|
|
12045
|
+
output: components["schemas"]["ResponsesAPIOutputMessage"][];
|
|
12046
|
+
usage?: components["schemas"]["ResponsesAPIUsage"] | null;
|
|
12047
|
+
error?: {
|
|
12048
|
+
[key: string]: unknown;
|
|
12049
|
+
} | null;
|
|
12050
|
+
incomplete_details?: {
|
|
12051
|
+
[key: string]: unknown;
|
|
12052
|
+
} | null;
|
|
12053
|
+
metadata?: {
|
|
12054
|
+
[key: string]: unknown;
|
|
12055
|
+
} | null;
|
|
12056
|
+
conversation_ext_id?: string | null;
|
|
12057
|
+
}>;
|
|
12058
|
+
cancel: (id: string) => Promise<void>;
|
|
12059
|
+
attach: (id: string, options?: ResponseStartOptions) => Promise<ResponseHandle>;
|
|
12060
|
+
};
|
|
12007
12061
|
readonly assistant: {
|
|
12062
|
+
/** Create one synchronous Responses result and return validated JSON alongside the raw response. */
|
|
12063
|
+
parseResponse: <T = unknown>(request: AskRequest & {
|
|
12064
|
+
text: {
|
|
12065
|
+
format: JsonSchemaOutputFormat;
|
|
12066
|
+
};
|
|
12067
|
+
}, options?: {
|
|
12068
|
+
signal?: AbortSignal;
|
|
12069
|
+
}) => Promise<ParsedStructuredResponse<T>>;
|
|
12008
12070
|
/** Start one response with a composable observer; existing ask callbacks remain unchanged. */
|
|
12009
12071
|
startResponse: (request: AskRequest, options?: ResponseStartOptions) => Promise<ResponseStart>;
|
|
12010
12072
|
/** Attach to retained replay/live events for an existing msg; never resubmits a turn. */
|
|
@@ -12056,6 +12118,9 @@ declare class Arbi {
|
|
|
12056
12118
|
error?: {
|
|
12057
12119
|
[key: string]: unknown;
|
|
12058
12120
|
} | null;
|
|
12121
|
+
incomplete_details?: {
|
|
12122
|
+
[key: string]: unknown;
|
|
12123
|
+
} | null;
|
|
12059
12124
|
metadata?: {
|
|
12060
12125
|
[key: string]: unknown;
|
|
12061
12126
|
} | null;
|
|
@@ -12074,6 +12139,9 @@ declare class Arbi {
|
|
|
12074
12139
|
error?: {
|
|
12075
12140
|
[key: string]: unknown;
|
|
12076
12141
|
} | null;
|
|
12142
|
+
incomplete_details?: {
|
|
12143
|
+
[key: string]: unknown;
|
|
12144
|
+
} | null;
|
|
12077
12145
|
metadata?: {
|
|
12078
12146
|
[key: string]: unknown;
|
|
12079
12147
|
} | null;
|
|
@@ -17222,4 +17290,35 @@ declare function getAttachableRunId(messages: readonly RunMessage[]): string | n
|
|
|
17222
17290
|
*/
|
|
17223
17291
|
declare function getRunToAttach(localGeneration: LocalGeneration | undefined, messages: readonly RunMessage[]): string | null;
|
|
17224
17292
|
|
|
17225
|
-
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 IdentityState 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 DocumentListFields as aA, type DocumentListOrder as aB, type DocumentSelector as aC, type DocumentWaiter as aD, type DocumentWaiterOptions as aE, type DriveSyncProgress as aF, type DriveSyncSummary as aG, DuplicateContactError as aH, ENTITY_KINDS as aI, type EditScope as aJ, type EntityKind as aK, type EventCreateBody as aL, type EventPatchBody as aM, FLAT_TAG_KINDS as aN, type FactResponse as aO, type FactSearchRequest as aP, type FactSearchResponse as aQ, type FindTimeParams as aR, type FormattedWsMessage as aS, type FreeBusyEntry as aT, type FullContextSelection as aU, GOOGLE_VENDORS as aV, type HolidayCountry as aW, type HouseTemplateCandidate as aX, IMANAGE_VENDORS as aY, type IdentityErrorCode as aZ, type IdentityPurchase 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 DatabaseAggregateRequest as ak, type DatabaseAggregateResult as al, type DatabaseColumn as am, type DatabaseColumnWrite as an, type DatabaseImportResult as ao, type DatabaseRow as ap, type DatabaseRowPage as aq, type DatabaseRowsQuery as ar, type DateTimeSpec as as, type DecryptedChat as at, type DecryptedChatMessage as au, type DeploymentHouseTemplate as av, type DocInfo as aw, type DocInfoMap as ax, type DocNameMap as ay, type DocumentAutomationAction as az, type ActivityKind as b, SHAREPOINT_VENDORS as b$, type IdentityStatus as b0, type ImportResult as b1, type InvitationRead as b2, type LinkedRun as b3, type ListAllOptions as b4, type ListEventsParams as b5, type ListFactsOptions as b6, type ListPaginatedOptions as b7, MAILBOX_SYNC_VENDORS as b8, MAX_RETRIEVE_DOC_IDS as b9, type ProjectPlanChangeRequest as bA, type ProjectQuoteRequest as bB, type ProjectResponse as bC, type ProjectUpdateRequest as bD, type ProjectUsageResponse as bE, PublicBookingError as bF, type PublicBookingPage as bG, type QuotaExceeded as bH, type RaisedSignal as bI, type RawResponseEvent as bJ, type ReconnectOptions as bK, type ReconnectableWsConnection as bL, type ResolvedCitation as bM, type ResolvedRecipient as bN, type RespondParams as bO, type RespondPartstat as bP, type ResponseHandle as bQ, type ResponseSnapshot as bR, type ResponseStart as bS, type ResponseStartOptions as bT, type RoomCreateBody as bU, type RoomQuery as bV, type RoomRead as bW, type RunProgress as bX, type RunStats as bY, type RunStep as bZ, type RunWaitingOn as b_, MICROSOFT_VENDORS as ba, type MailAttachment as bb, type MessageLevel as bc, type OAuthAccountKind as bd, type OutputItemDone as be, type OverlayItem as bf, type OverlayLayerName as bg, PRESENCE_KINDS as bh, PROMPT_CONTEXT_CHARS as bi, type ParsedSlashCommand as bj, type PendingAuthResponse as bk, type PersonKey as bl, PlanStepsError as bm, type PlanWorkRequest as bn, type ProductResponse as bo, type ProjectAddonKind as bp, type ProjectAddonSettingsRequest as bq, type ProjectBudget as br, type ProjectCheckoutRequest as bs, type ProjectConversationUsageResponse as bt, type ProjectCreateOptions as bu, type ProjectDetails as bv, type ProjectEventKind as bw, type ProjectEventResponse as bx, type ProjectInvoicesResponse as by, type ProjectNextPeriodAddonsRequest as bz, type ActivityResponse as c, type UploadProgressListener as c$, type SSEEvent as c0, type SSEStreamCallbacks as c1, type SSEStreamOutcome as c2, type SSEStreamResult as c3, STEP_FIELD_OPTION_TONES as c4, STOP_ID_WAIT_MS as c5, STOP_REPEAT_WINDOW_MS as c6, SUPPORTED_EXTENSIONS as c7, type ScopedTarget as c8, type SearchChunk as c9, type TagChange as cA, type TagFieldDefinition as cB, type TagGroup as cC, type TagKind as cD, type TagKindField as cE, type TagKindSchema as cF, type TagLinks as cG, type TagListQuery as cH, type TagNode as cI, type TagResponse as cJ, type TagScope as cK, type TagTreeRow as cL, type TaskPlan as cM, type TaskPlanStep as cN, type TaxQuoteResponse as cO, type Thread as cP, type ThreadsResponse as cQ, type TimeSuggestion as cR, type TurnRequest as cS, type UpdateConversationRequest as cT, type UpdateFactRequest as cU, type UpdateWorkflowRequest as cV, type UploadBatchResult as cW, type UploadDirectOptions as cX, type UploadDirectResult as cY, type UploadDocumentsOptions as cZ, type UploadOptions as c_, type SendBack as ca, type ShareRead as cb, type ShareRole as cc, type SkillSummary as cd, type SkippedFile as ce, type SlackConnectionStatus as cf, type StepActionRequest as cg, type StepActivityEvent as ch, type StepAssignee as ci, type StepDisplay as cj, type StepField as ck, type StepFieldOption as cl, type StepFieldOptionTone as cm, type StepKind as cn, type StepPhase as co, type StepSignal as cp, type StepSignalWhen as cq, type StepState as cr, type StepStatus as cs, type SubagentBranchRecord as ct, type SubagentLaneInfo as cu, type SubmitBackgroundQueryOptions as cv, type SubscribeParams as cw, type SyncTriggerResult as cx, TAG_KINDS as cy, TAG_NESTING_MAX_DEPTH as cz, Arbi as d, findReplyTarget as d$, type UploadResult as d0, type UsageBreakdown as d1, type UserConnectorEntry as d2, type UserDailyUsageResponse as d3, type UserInfo as d4, WebSocketAuthError as d5, type WeeklyHoursSpec as d6, type WorkStatus as d7, type WorkflowAuthMode as d8, type WorkflowResponse as d9, chats as dA, computeRunStats as dB, connectErrorMessage as dC, connectWebSocket as dD, connectWithReconnect as dE, connectors as dF, contacts as dG, continuityPrompt as dH, conversations as dI, countCitations as dJ, createAuthenticatedClient as dK, createDocumentWaiter as dL, createIndexAssigner as dM, databases as dN, defaultKindForFormat as dO, doctags as dP, documents as dQ, estimateDraftTokens as dR, extractDocumentIdsFromMessages as dS, extractFactIdsFromMessages as dT, extractSubagentLanes as dU, facts as dV, files as dW, filterDocumentTags as dX, filterSkills as dY, findLeafForTaskMessage as dZ, findMainSiblingLeaf as d_, type WorkflowRunHistoryResponse as da, type WorkflowRunResponse as db, type WorkspaceContext as dc, type WorkspaceOpenResponse as dd, type WorkspaceResponse as de, type WsConnection as df, account as dg, agentconfig as dh, agents as di, appendTranscriptionHints as dj, assistant as dk, authenticatedFetch as dl, bookPublicSlot as dm, buildCitationChunkData as dn, buildDocNameMap as dp, buildDocumentTools as dq, buildFactsContextTool as dr, buildRetrievalChunkTool as ds, buildRetrievalFullContextTool as dt, buildRetrievalTocTool as du, buildTurnRequest as dv, calendar as dw, calls as dx, canTagHaveParent as dy, cancelPublicBooking as dz, ArbiApiError as e, quotaFromStreamError as e$, findSubagentRunId as e0, flattenTagTree as e1, formatAgentStepLabel as e2, formatFileSize as e3, formatGbp as e4, formatGbpPerMillionTokens as e5, formatItemLabel as e6, formatStreamSummary as e7, formatTokens as e8, formatUserName as e9, identityErrorCode as eA, isAnnotationTag as eB, isConnectorVendorVisible as eC, isDriveSyncVendor as eD, isEntityTag as eE, isFlatKind as eF, isLabelTag as eG, isMailboxSyncVendor as eH, isNearAiUsageBudget as eI, isPresenceTag as eJ, isSharePointVendor as eK, isSharedSkill as eL, isTraceItem as eM, mail as eN, mergeAgentSteps as eO, notifications as eP, parseSSEEvents as eQ, parseSlashCommand as eR, parseSlashTokenInProgress as eS, performPasswordLogin as eT, performSigningKeyLogin as eU, performSsoDeviceFlowLogin as eV, pickMainThread as eW, profile as eX, progressFetch as eY, projects as eZ, quotaExceededFrom as e_, formatWorkspaceChoices as ea, formatWsMessage as eb, generateEncryptedWorkspaceKey as ec, generateNewWorkspaceKey as ed, getAgentStepLabel as ee, getAttachableRunId as ef, getChildTags as eg, getContextRemainingPercent as eh, getContextUsedPercent as ei, getContextUsedTokens as ej, getCurrentStep as ek, getEligibleParentTags as el, getErrorCode as em, getErrorMessage as en, getPublicBookingPage as eo, getRawWorkspaceKey as ep, getRunToAttach as eq, getRunToCancel as er, getStepDisplay as es, getStepTool as et, getSubagentBranchRecord as eu, getTagDescendantIds as ev, health as ew, houseTemplate as ex, hydrateAgentSteps as ey, identity as ez, ArbiError as f, reduceOutputItem as f0, refusalReason as f1, requireData as f2, requireOk as f3, resolveAuth as f4, resolveCitations as f5, resolveSummary as f6, resolveWorkspace as f7, responses as f8, searchChunks as f9, selectFullContextDocument as fa, selectWorkspace as fb, selectWorkspaceById as fc, sessions as fd, settings as fe, signatureRequests as ff, sliceToSubagentThread as fg, streamSSE as fh, stripCitationMarkdown as fi, subagentJobLabel as fj, summarizeCitations as fk, tagUseCount as fl, tags as fm, tagsForScope as fn, tagsOfGroup as fo, topLevelAgentSteps as fp, uploadSkill as fq, usdToGbp as fr, work as fs, workflowSteps as ft, workflows as fu, workspaces as fv, wouldCreateTagCycle as fw, 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 };
|
|
17293
|
+
/** Pure composition over the existing cfg contract. Never creates an agt identity or grants access. */
|
|
17294
|
+
|
|
17295
|
+
type Configuration = components['schemas']['ConfigUpdateData'];
|
|
17296
|
+
type ConfigurationPatch = {
|
|
17297
|
+
[K in keyof Configuration]?: NonNullable<Configuration[K]> extends object ? Partial<NonNullable<Configuration[K]>> | null : Configuration[K];
|
|
17298
|
+
};
|
|
17299
|
+
type ResponseTools = NonNullable<components['schemas']['MessageInput']['tools']>;
|
|
17300
|
+
/** Later fields win. Sections merge one level; arrays replace; explicit null clears a section. */
|
|
17301
|
+
declare function composeConfiguration(base: Configuration, ...patches: ConfigurationPatch[]): Configuration;
|
|
17302
|
+
/** Both ordinary answers and the built-in agent loop receive the same developer instructions. */
|
|
17303
|
+
declare function instructions(text: string): ConfigurationPatch;
|
|
17304
|
+
interface Capabilities {
|
|
17305
|
+
webSearch?: boolean;
|
|
17306
|
+
codeExecution?: boolean;
|
|
17307
|
+
planning?: boolean;
|
|
17308
|
+
deepResearch?: boolean;
|
|
17309
|
+
subagents?: boolean;
|
|
17310
|
+
humanInput?: boolean;
|
|
17311
|
+
}
|
|
17312
|
+
/** Feature selection only: workspace membership, consent and tool authorisation still apply. */
|
|
17313
|
+
declare function capabilities(options: Capabilities): ConfigurationPatch;
|
|
17314
|
+
/** Pass an existing configuration to add; replacement intentionally drops the previous list. */
|
|
17315
|
+
declare function mcpTools(base: Configuration, names: string[], mode: 'add' | 'replace'): ConfigurationPatch;
|
|
17316
|
+
declare function documentTools(options: {
|
|
17317
|
+
search?: string[];
|
|
17318
|
+
fullContext?: string[];
|
|
17319
|
+
tableOfContents?: string[];
|
|
17320
|
+
}): ResponseTools;
|
|
17321
|
+
/** Add replaces matching tool names; replace discards all previous tools. No mutation of inputs. */
|
|
17322
|
+
declare function composeTools(base: ResponseTools, next: ResponseTools, mode: 'add' | 'replace'): ResponseTools;
|
|
17323
|
+
|
|
17324
|
+
export { type CitationToolSources as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalendarAccount as D, type CalendarAccountKind as E, type CalendarCreateBody as F, type CalendarEvent as G, type CalendarKeys as H, type CalendarRead as I, type CalendarSettings as J, type CalendarSettingsBody as K, type CalendarUpdate as L, type CalendarWindow as M, CallApiError as N, type Capabilities as O, type ChatAttachmentFile as P, type ChatAttachmentInput as Q, type ChatCryptoContext as R, type ChatKeyRing as S, type ChatKind as T, type ChatMemberKey as U, type ChatMemberResponse as V, type ChatMessage as W, type ChatMessageResponse as X, type ChatResponse as Y, type ChatSession as Z, type CitationSummary as _, type AccountSyncResult as a, type HouseTemplateCandidate as a$, type CliConfig as a0, type CliCredentials as a1, type CommandDescriptor as a2, type ConfigStore as a3, type Configuration as a4, type ConfigurationPatch as a5, type ConnectOptions as a6, type ConnectorCatalogEntry as a7, type ConnectorFolder as a8, type ConnectorSyncProgress as a9, type DocInfo as aA, type DocInfoMap as aB, type DocNameMap as aC, type DocumentAutomationAction as aD, type DocumentListFields as aE, type DocumentListOrder as aF, type DocumentSelector as aG, type DocumentWaiter as aH, type DocumentWaiterOptions as aI, type DriveSyncProgress as aJ, type DriveSyncSummary as aK, DuplicateContactError as aL, ENTITY_KINDS as aM, type EditScope as aN, type EntityKind as aO, type EventCreateBody as aP, type EventPatchBody as aQ, FLAT_TAG_KINDS as aR, type FactResponse as aS, type FactSearchRequest as aT, type FactSearchResponse as aU, type FindTimeParams as aV, type FormattedWsMessage as aW, type FreeBusyEntry as aX, type FullContextSelection as aY, GOOGLE_VENDORS as aZ, type HolidayCountry as a_, type ConnectorSyncStatus as aa, type ConnectorVendorKey as ab, type ConnectorVisibilitySettings as ac, type ContextUsage as ad, type ConversationResponse as ae, type ConversationUsageResponse as af, type CreateFactRequest as ag, type CreateFactsRequest as ah, type CreateWorkRequest as ai, type CreateWorkflowRequest as aj, DEFAULT_AI_USD_PER_GBP as ak, DOC_TERMINAL_STATUSES as al, DRIVE_SYNC_VENDORS as am, type Database as an, type DatabaseAggregateRequest as ao, type DatabaseAggregateResult as ap, type DatabaseColumn as aq, type DatabaseColumnWrite as ar, type DatabaseImportResult as as, type DatabaseRow as at, type DatabaseRowPage as au, type DatabaseRowsQuery as av, type DateTimeSpec as aw, type DecryptedChat as ax, type DecryptedChatMessage as ay, type DeploymentHouseTemplate as az, type ActivityKind as b, type RoomCreateBody as b$, IMANAGE_VENDORS as b0, type IdentityErrorCode as b1, type IdentityPurchase as b2, type IdentityState as b3, type IdentityStatus as b4, type ImportResult as b5, type InvitationRead as b6, type JsonSchemaOutputFormat as b7, type LinkedRun as b8, type ListAllOptions as b9, type ProjectCreateOptions as bA, type ProjectDetails as bB, type ProjectEventKind as bC, type ProjectEventResponse as bD, type ProjectInvoicesResponse as bE, type ProjectNextPeriodAddonsRequest as bF, type ProjectPlanChangeRequest as bG, type ProjectQuoteRequest as bH, type ProjectResponse as bI, type ProjectUpdateRequest as bJ, type ProjectUsageResponse as bK, PublicBookingError as bL, type PublicBookingPage as bM, type QuotaExceeded as bN, type RaisedSignal as bO, type RawResponseEvent as bP, type ReconnectOptions as bQ, type ReconnectableWsConnection as bR, type ResolvedCitation as bS, type ResolvedRecipient as bT, type RespondParams as bU, type RespondPartstat as bV, type ResponseHandle as bW, type ResponseSnapshot as bX, type ResponseStart as bY, type ResponseStartOptions as bZ, type ResponseTools as b_, type ListEventsParams as ba, type ListFactsOptions as bb, type ListPaginatedOptions as bc, MAILBOX_SYNC_VENDORS as bd, MAX_RETRIEVE_DOC_IDS as be, MICROSOFT_VENDORS as bf, type MailAttachment as bg, type MessageLevel as bh, type OAuthAccountKind as bi, type OutputItemDone as bj, type OverlayItem as bk, type OverlayLayerName as bl, PRESENCE_KINDS as bm, PROMPT_CONTEXT_CHARS as bn, type ParsedSlashCommand as bo, type ParsedStructuredResponse as bp, type PendingAuthResponse as bq, type PersonKey as br, PlanStepsError as bs, type PlanWorkRequest as bt, type ProductResponse as bu, type ProjectAddonKind as bv, type ProjectAddonSettingsRequest as bw, type ProjectBudget as bx, type ProjectCheckoutRequest as by, type ProjectConversationUsageResponse as bz, type ActivityResponse as c, type UpdateFactRequest as c$, type RoomQuery as c0, type RoomRead as c1, type RunProgress as c2, type RunStats as c3, type RunStep as c4, type RunWaitingOn as c5, SHAREPOINT_VENDORS as c6, type SSEEvent as c7, type SSEStreamCallbacks as c8, type SSEStreamOutcome as c9, type SubagentBranchRecord as cA, type SubagentLaneInfo as cB, type SubmitBackgroundQueryOptions as cC, type SubscribeParams as cD, type SyncTriggerResult as cE, TAG_KINDS as cF, TAG_NESTING_MAX_DEPTH as cG, type TagChange as cH, type TagFieldDefinition as cI, type TagGroup as cJ, type TagKind as cK, type TagKindField as cL, type TagKindSchema as cM, type TagLinks as cN, type TagListQuery as cO, type TagNode as cP, type TagResponse as cQ, type TagScope as cR, type TagTreeRow as cS, type TaskPlan as cT, type TaskPlanStep as cU, type TaxQuoteResponse as cV, type Thread as cW, type ThreadsResponse as cX, type TimeSuggestion as cY, type TurnRequest as cZ, type UpdateConversationRequest as c_, type SSEStreamResult as ca, STEP_FIELD_OPTION_TONES as cb, STOP_ID_WAIT_MS as cc, STOP_REPEAT_WINDOW_MS as cd, SUPPORTED_EXTENSIONS as ce, type ScopedTarget as cf, type SearchChunk as cg, type SendBack as ch, type ShareRead as ci, type ShareRole as cj, type SkillSummary as ck, type SkippedFile as cl, type SlackConnectionStatus as cm, type StepActionRequest as cn, type StepActivityEvent as co, type StepAssignee as cp, type StepDisplay as cq, type StepField as cr, type StepFieldOption as cs, type StepFieldOptionTone as ct, type StepKind as cu, type StepPhase as cv, type StepSignal as cw, type StepSignalWhen as cx, type StepState as cy, type StepStatus as cz, Arbi as d, documents as d$, type UpdateWorkflowRequest as d0, type UploadBatchResult as d1, type UploadDirectOptions as d2, type UploadDirectResult as d3, type UploadDocumentsOptions as d4, type UploadOptions as d5, type UploadProgressListener as d6, type UploadResult as d7, type UsageBreakdown as d8, type UserConnectorEntry as d9, buildRetrievalFullContextTool as dA, buildRetrievalTocTool as dB, buildTurnRequest as dC, calendar as dD, calls as dE, canTagHaveParent as dF, cancelPublicBooking as dG, capabilities as dH, chats as dI, composeConfiguration as dJ, composeTools as dK, computeRunStats as dL, connectErrorMessage as dM, connectWebSocket as dN, connectWithReconnect as dO, connectors as dP, contacts as dQ, continuityPrompt as dR, conversations as dS, countCitations as dT, createAuthenticatedClient as dU, createDocumentWaiter as dV, createIndexAssigner as dW, databases as dX, defaultKindForFormat as dY, doctags as dZ, documentTools as d_, type UserDailyUsageResponse as da, type UserInfo as db, WebSocketAuthError as dc, type WeeklyHoursSpec as dd, type WorkStatus as de, type WorkflowAuthMode as df, type WorkflowResponse as dg, type WorkflowRunHistoryResponse as dh, type WorkflowRunResponse as di, type WorkspaceContext as dj, type WorkspaceOpenResponse as dk, type WorkspaceResponse as dl, type WsConnection as dm, account as dn, agentconfig as dp, agents as dq, appendTranscriptionHints as dr, assistant as ds, authenticatedFetch as dt, bookPublicSlot as du, buildCitationChunkData as dv, buildDocNameMap as dw, buildDocumentTools as dx, buildFactsContextTool as dy, buildRetrievalChunkTool as dz, ArbiApiError as e, mergeAgentSteps as e$, estimateDraftTokens as e0, extractDocumentIdsFromMessages as e1, extractFactIdsFromMessages as e2, extractSubagentLanes as e3, facts as e4, files as e5, filterDocumentTags as e6, filterSkills as e7, findLeafForTaskMessage as e8, findMainSiblingLeaf as e9, getRawWorkspaceKey as eA, getRunToAttach as eB, getRunToCancel as eC, getStepDisplay as eD, getStepTool as eE, getSubagentBranchRecord as eF, getTagDescendantIds as eG, health as eH, houseTemplate as eI, hydrateAgentSteps as eJ, identity as eK, identityErrorCode as eL, instructions as eM, isAnnotationTag as eN, isConnectorVendorVisible as eO, isDriveSyncVendor as eP, isEntityTag as eQ, isFlatKind as eR, isLabelTag as eS, isMailboxSyncVendor as eT, isNearAiUsageBudget as eU, isPresenceTag as eV, isSharePointVendor as eW, isSharedSkill as eX, isTraceItem as eY, mail as eZ, mcpTools as e_, findReplyTarget as ea, findSubagentRunId as eb, flattenTagTree as ec, formatAgentStepLabel as ed, formatFileSize as ee, formatGbp as ef, formatGbpPerMillionTokens as eg, formatItemLabel as eh, formatStreamSummary as ei, formatTokens as ej, formatUserName as ek, formatWorkspaceChoices as el, formatWsMessage as em, generateEncryptedWorkspaceKey as en, generateNewWorkspaceKey as eo, getAgentStepLabel as ep, getAttachableRunId as eq, getChildTags as er, getContextRemainingPercent as es, getContextUsedPercent as et, getContextUsedTokens as eu, getCurrentStep as ev, getEligibleParentTags as ew, getErrorCode as ex, getErrorMessage as ey, getPublicBookingPage as ez, ArbiError as f, notifications as f0, parseSSEEvents as f1, parseSlashCommand as f2, parseSlashTokenInProgress as f3, parseStructuredResponse as f4, performPasswordLogin as f5, performSigningKeyLogin as f6, performSsoDeviceFlowLogin as f7, pickMainThread as f8, profile as f9, tags as fA, tagsForScope as fB, tagsOfGroup as fC, topLevelAgentSteps as fD, uploadSkill as fE, usdToGbp as fF, work as fG, workflowSteps as fH, workflows as fI, workspaces as fJ, wouldCreateTagCycle as fK, progressFetch as fa, projects as fb, quotaExceededFrom as fc, quotaFromStreamError as fd, reduceOutputItem as fe, refusalReason as ff, requireData as fg, requireOk as fh, resolveAuth as fi, resolveCitations as fj, resolveSummary as fk, resolveWorkspace as fl, responses as fm, searchChunks as fn, selectFullContextDocument as fo, selectWorkspace as fp, selectWorkspaceById as fq, sessions as fr, settings as fs, signatureRequests as ft, sliceToSubagentThread as fu, streamSSE as fv, stripCitationMarkdown as fw, subagentJobLabel as fx, summarizeCitations as fy, tagUseCount as fz, type ArbiErrorOptions as g, type ArbiHostSession as h, type ArbiOptions as i, ArbiSessionExpiredError as j, ArbiStructuredOutputError as k, ArbiTransportError as l, ArbiWorkspaceChangedError as m, ArbiWorkspaceSupersededError as n, type AskHandlers as o, type AskRequest as p, type AttendeeRead as q, type AuthContext as r, type AuthHeaders as s, type AuthMode as t, type AuthenticatedClient as u, type BookingPage as v, type BookingPageWriteBody as w, type BookingRequestBody as x, type BridgeTokensOptions as y, type CalDavProfile as z };
|
|
@@ -832,6 +832,20 @@ interface CitationToolSources {
|
|
|
832
832
|
*/
|
|
833
833
|
declare function buildCitationChunkData(message: CitationToolSources): Record<string, Chunk$1[]>;
|
|
834
834
|
|
|
835
|
+
type JsonSchemaOutputFormat = components['schemas']['JsonSchemaFormat'];
|
|
836
|
+
type StructuredResponse = components['schemas']['ResponsesAPIResponse'];
|
|
837
|
+
interface ParsedStructuredResponse<T> {
|
|
838
|
+
data: T;
|
|
839
|
+
/** Original Responses envelope, including output, metadata, usage and extensions. */
|
|
840
|
+
response: StructuredResponse;
|
|
841
|
+
}
|
|
842
|
+
declare class ArbiStructuredOutputError extends ArbiError {
|
|
843
|
+
readonly response: unknown;
|
|
844
|
+
constructor(message: string, response: unknown, options: ArbiErrorOptions);
|
|
845
|
+
}
|
|
846
|
+
/** Validate the stored/final response of a background or streaming request against its schema. */
|
|
847
|
+
declare function parseStructuredResponse<T = unknown>(response: StructuredResponse, format: JsonSchemaOutputFormat): Promise<ParsedStructuredResponse<T>>;
|
|
848
|
+
|
|
835
849
|
interface ResponseStartOptions {
|
|
836
850
|
/** Stops the request/reader only. Use handle.cancel() to stop server execution. */
|
|
837
851
|
signal?: AbortSignal;
|
|
@@ -3319,6 +3333,8 @@ interface TurnRequest {
|
|
|
3319
3333
|
agentId?: string;
|
|
3320
3334
|
/** The config (model) to answer with. */
|
|
3321
3335
|
model?: string | null;
|
|
3336
|
+
/** Responses output configuration, scoped to this turn. */
|
|
3337
|
+
text?: MessageInput$2['text'];
|
|
3322
3338
|
/** Structured @mentions in the question. */
|
|
3323
3339
|
mentions?: MessageInput$2['mentions'];
|
|
3324
3340
|
/** The mode a NEW conversation starts in. */
|
|
@@ -3657,6 +3673,7 @@ interface SubmitBackgroundQueryOptions extends AuthHeaders {
|
|
|
3657
3673
|
docIds: string[];
|
|
3658
3674
|
previousResponseId?: string | null;
|
|
3659
3675
|
model?: string;
|
|
3676
|
+
text?: MessageInput['text'];
|
|
3660
3677
|
task?: MessageInput['task'];
|
|
3661
3678
|
conversationId?: string;
|
|
3662
3679
|
mentions?: MessageInput['mentions'];
|
|
@@ -12004,7 +12021,52 @@ declare class Arbi {
|
|
|
12004
12021
|
unlockNative: () => Promise<void>;
|
|
12005
12022
|
};
|
|
12006
12023
|
private openResponseHandle;
|
|
12024
|
+
/** Canonical Responses-shaped requests; existing assistant convenience helpers remain supported. */
|
|
12025
|
+
readonly responses: {
|
|
12026
|
+
create: (request: Omit<components["schemas"]["MessageInput"], "workspace_ext_id" | "stream" | "background" | "store"> & {
|
|
12027
|
+
workspace_ext_id?: string;
|
|
12028
|
+
stream?: false;
|
|
12029
|
+
background?: boolean;
|
|
12030
|
+
store?: boolean;
|
|
12031
|
+
}, options?: {
|
|
12032
|
+
signal?: AbortSignal;
|
|
12033
|
+
}) => Promise<StructuredResponse>;
|
|
12034
|
+
stream: (request: Omit<components["schemas"]["MessageInput"], "workspace_ext_id" | "stream" | "background" | "store"> & {
|
|
12035
|
+
workspace_ext_id?: string;
|
|
12036
|
+
store?: boolean;
|
|
12037
|
+
}, options?: ResponseStartOptions) => Promise<ResponseStart>;
|
|
12038
|
+
retrieve: (id: string) => Promise<{
|
|
12039
|
+
id: string;
|
|
12040
|
+
object: "response";
|
|
12041
|
+
status: "completed" | "in_progress" | "queued" | "cancelled" | "failed" | "incomplete";
|
|
12042
|
+
created_at?: number | null;
|
|
12043
|
+
model?: string | null;
|
|
12044
|
+
background: boolean;
|
|
12045
|
+
output: components["schemas"]["ResponsesAPIOutputMessage"][];
|
|
12046
|
+
usage?: components["schemas"]["ResponsesAPIUsage"] | null;
|
|
12047
|
+
error?: {
|
|
12048
|
+
[key: string]: unknown;
|
|
12049
|
+
} | null;
|
|
12050
|
+
incomplete_details?: {
|
|
12051
|
+
[key: string]: unknown;
|
|
12052
|
+
} | null;
|
|
12053
|
+
metadata?: {
|
|
12054
|
+
[key: string]: unknown;
|
|
12055
|
+
} | null;
|
|
12056
|
+
conversation_ext_id?: string | null;
|
|
12057
|
+
}>;
|
|
12058
|
+
cancel: (id: string) => Promise<void>;
|
|
12059
|
+
attach: (id: string, options?: ResponseStartOptions) => Promise<ResponseHandle>;
|
|
12060
|
+
};
|
|
12007
12061
|
readonly assistant: {
|
|
12062
|
+
/** Create one synchronous Responses result and return validated JSON alongside the raw response. */
|
|
12063
|
+
parseResponse: <T = unknown>(request: AskRequest & {
|
|
12064
|
+
text: {
|
|
12065
|
+
format: JsonSchemaOutputFormat;
|
|
12066
|
+
};
|
|
12067
|
+
}, options?: {
|
|
12068
|
+
signal?: AbortSignal;
|
|
12069
|
+
}) => Promise<ParsedStructuredResponse<T>>;
|
|
12008
12070
|
/** Start one response with a composable observer; existing ask callbacks remain unchanged. */
|
|
12009
12071
|
startResponse: (request: AskRequest, options?: ResponseStartOptions) => Promise<ResponseStart>;
|
|
12010
12072
|
/** Attach to retained replay/live events for an existing msg; never resubmits a turn. */
|
|
@@ -12056,6 +12118,9 @@ declare class Arbi {
|
|
|
12056
12118
|
error?: {
|
|
12057
12119
|
[key: string]: unknown;
|
|
12058
12120
|
} | null;
|
|
12121
|
+
incomplete_details?: {
|
|
12122
|
+
[key: string]: unknown;
|
|
12123
|
+
} | null;
|
|
12059
12124
|
metadata?: {
|
|
12060
12125
|
[key: string]: unknown;
|
|
12061
12126
|
} | null;
|
|
@@ -12074,6 +12139,9 @@ declare class Arbi {
|
|
|
12074
12139
|
error?: {
|
|
12075
12140
|
[key: string]: unknown;
|
|
12076
12141
|
} | null;
|
|
12142
|
+
incomplete_details?: {
|
|
12143
|
+
[key: string]: unknown;
|
|
12144
|
+
} | null;
|
|
12077
12145
|
metadata?: {
|
|
12078
12146
|
[key: string]: unknown;
|
|
12079
12147
|
} | null;
|
|
@@ -17222,4 +17290,35 @@ declare function getAttachableRunId(messages: readonly RunMessage[]): string | n
|
|
|
17222
17290
|
*/
|
|
17223
17291
|
declare function getRunToAttach(localGeneration: LocalGeneration | undefined, messages: readonly RunMessage[]): string | null;
|
|
17224
17292
|
|
|
17225
|
-
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 IdentityState 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 DocumentListFields as aA, type DocumentListOrder as aB, type DocumentSelector as aC, type DocumentWaiter as aD, type DocumentWaiterOptions as aE, type DriveSyncProgress as aF, type DriveSyncSummary as aG, DuplicateContactError as aH, ENTITY_KINDS as aI, type EditScope as aJ, type EntityKind as aK, type EventCreateBody as aL, type EventPatchBody as aM, FLAT_TAG_KINDS as aN, type FactResponse as aO, type FactSearchRequest as aP, type FactSearchResponse as aQ, type FindTimeParams as aR, type FormattedWsMessage as aS, type FreeBusyEntry as aT, type FullContextSelection as aU, GOOGLE_VENDORS as aV, type HolidayCountry as aW, type HouseTemplateCandidate as aX, IMANAGE_VENDORS as aY, type IdentityErrorCode as aZ, type IdentityPurchase 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 DatabaseAggregateRequest as ak, type DatabaseAggregateResult as al, type DatabaseColumn as am, type DatabaseColumnWrite as an, type DatabaseImportResult as ao, type DatabaseRow as ap, type DatabaseRowPage as aq, type DatabaseRowsQuery as ar, type DateTimeSpec as as, type DecryptedChat as at, type DecryptedChatMessage as au, type DeploymentHouseTemplate as av, type DocInfo as aw, type DocInfoMap as ax, type DocNameMap as ay, type DocumentAutomationAction as az, type ActivityKind as b, SHAREPOINT_VENDORS as b$, type IdentityStatus as b0, type ImportResult as b1, type InvitationRead as b2, type LinkedRun as b3, type ListAllOptions as b4, type ListEventsParams as b5, type ListFactsOptions as b6, type ListPaginatedOptions as b7, MAILBOX_SYNC_VENDORS as b8, MAX_RETRIEVE_DOC_IDS as b9, type ProjectPlanChangeRequest as bA, type ProjectQuoteRequest as bB, type ProjectResponse as bC, type ProjectUpdateRequest as bD, type ProjectUsageResponse as bE, PublicBookingError as bF, type PublicBookingPage as bG, type QuotaExceeded as bH, type RaisedSignal as bI, type RawResponseEvent as bJ, type ReconnectOptions as bK, type ReconnectableWsConnection as bL, type ResolvedCitation as bM, type ResolvedRecipient as bN, type RespondParams as bO, type RespondPartstat as bP, type ResponseHandle as bQ, type ResponseSnapshot as bR, type ResponseStart as bS, type ResponseStartOptions as bT, type RoomCreateBody as bU, type RoomQuery as bV, type RoomRead as bW, type RunProgress as bX, type RunStats as bY, type RunStep as bZ, type RunWaitingOn as b_, MICROSOFT_VENDORS as ba, type MailAttachment as bb, type MessageLevel as bc, type OAuthAccountKind as bd, type OutputItemDone as be, type OverlayItem as bf, type OverlayLayerName as bg, PRESENCE_KINDS as bh, PROMPT_CONTEXT_CHARS as bi, type ParsedSlashCommand as bj, type PendingAuthResponse as bk, type PersonKey as bl, PlanStepsError as bm, type PlanWorkRequest as bn, type ProductResponse as bo, type ProjectAddonKind as bp, type ProjectAddonSettingsRequest as bq, type ProjectBudget as br, type ProjectCheckoutRequest as bs, type ProjectConversationUsageResponse as bt, type ProjectCreateOptions as bu, type ProjectDetails as bv, type ProjectEventKind as bw, type ProjectEventResponse as bx, type ProjectInvoicesResponse as by, type ProjectNextPeriodAddonsRequest as bz, type ActivityResponse as c, type UploadProgressListener as c$, type SSEEvent as c0, type SSEStreamCallbacks as c1, type SSEStreamOutcome as c2, type SSEStreamResult as c3, STEP_FIELD_OPTION_TONES as c4, STOP_ID_WAIT_MS as c5, STOP_REPEAT_WINDOW_MS as c6, SUPPORTED_EXTENSIONS as c7, type ScopedTarget as c8, type SearchChunk as c9, type TagChange as cA, type TagFieldDefinition as cB, type TagGroup as cC, type TagKind as cD, type TagKindField as cE, type TagKindSchema as cF, type TagLinks as cG, type TagListQuery as cH, type TagNode as cI, type TagResponse as cJ, type TagScope as cK, type TagTreeRow as cL, type TaskPlan as cM, type TaskPlanStep as cN, type TaxQuoteResponse as cO, type Thread as cP, type ThreadsResponse as cQ, type TimeSuggestion as cR, type TurnRequest as cS, type UpdateConversationRequest as cT, type UpdateFactRequest as cU, type UpdateWorkflowRequest as cV, type UploadBatchResult as cW, type UploadDirectOptions as cX, type UploadDirectResult as cY, type UploadDocumentsOptions as cZ, type UploadOptions as c_, type SendBack as ca, type ShareRead as cb, type ShareRole as cc, type SkillSummary as cd, type SkippedFile as ce, type SlackConnectionStatus as cf, type StepActionRequest as cg, type StepActivityEvent as ch, type StepAssignee as ci, type StepDisplay as cj, type StepField as ck, type StepFieldOption as cl, type StepFieldOptionTone as cm, type StepKind as cn, type StepPhase as co, type StepSignal as cp, type StepSignalWhen as cq, type StepState as cr, type StepStatus as cs, type SubagentBranchRecord as ct, type SubagentLaneInfo as cu, type SubmitBackgroundQueryOptions as cv, type SubscribeParams as cw, type SyncTriggerResult as cx, TAG_KINDS as cy, TAG_NESTING_MAX_DEPTH as cz, Arbi as d, findReplyTarget as d$, type UploadResult as d0, type UsageBreakdown as d1, type UserConnectorEntry as d2, type UserDailyUsageResponse as d3, type UserInfo as d4, WebSocketAuthError as d5, type WeeklyHoursSpec as d6, type WorkStatus as d7, type WorkflowAuthMode as d8, type WorkflowResponse as d9, chats as dA, computeRunStats as dB, connectErrorMessage as dC, connectWebSocket as dD, connectWithReconnect as dE, connectors as dF, contacts as dG, continuityPrompt as dH, conversations as dI, countCitations as dJ, createAuthenticatedClient as dK, createDocumentWaiter as dL, createIndexAssigner as dM, databases as dN, defaultKindForFormat as dO, doctags as dP, documents as dQ, estimateDraftTokens as dR, extractDocumentIdsFromMessages as dS, extractFactIdsFromMessages as dT, extractSubagentLanes as dU, facts as dV, files as dW, filterDocumentTags as dX, filterSkills as dY, findLeafForTaskMessage as dZ, findMainSiblingLeaf as d_, type WorkflowRunHistoryResponse as da, type WorkflowRunResponse as db, type WorkspaceContext as dc, type WorkspaceOpenResponse as dd, type WorkspaceResponse as de, type WsConnection as df, account as dg, agentconfig as dh, agents as di, appendTranscriptionHints as dj, assistant as dk, authenticatedFetch as dl, bookPublicSlot as dm, buildCitationChunkData as dn, buildDocNameMap as dp, buildDocumentTools as dq, buildFactsContextTool as dr, buildRetrievalChunkTool as ds, buildRetrievalFullContextTool as dt, buildRetrievalTocTool as du, buildTurnRequest as dv, calendar as dw, calls as dx, canTagHaveParent as dy, cancelPublicBooking as dz, ArbiApiError as e, quotaFromStreamError as e$, findSubagentRunId as e0, flattenTagTree as e1, formatAgentStepLabel as e2, formatFileSize as e3, formatGbp as e4, formatGbpPerMillionTokens as e5, formatItemLabel as e6, formatStreamSummary as e7, formatTokens as e8, formatUserName as e9, identityErrorCode as eA, isAnnotationTag as eB, isConnectorVendorVisible as eC, isDriveSyncVendor as eD, isEntityTag as eE, isFlatKind as eF, isLabelTag as eG, isMailboxSyncVendor as eH, isNearAiUsageBudget as eI, isPresenceTag as eJ, isSharePointVendor as eK, isSharedSkill as eL, isTraceItem as eM, mail as eN, mergeAgentSteps as eO, notifications as eP, parseSSEEvents as eQ, parseSlashCommand as eR, parseSlashTokenInProgress as eS, performPasswordLogin as eT, performSigningKeyLogin as eU, performSsoDeviceFlowLogin as eV, pickMainThread as eW, profile as eX, progressFetch as eY, projects as eZ, quotaExceededFrom as e_, formatWorkspaceChoices as ea, formatWsMessage as eb, generateEncryptedWorkspaceKey as ec, generateNewWorkspaceKey as ed, getAgentStepLabel as ee, getAttachableRunId as ef, getChildTags as eg, getContextRemainingPercent as eh, getContextUsedPercent as ei, getContextUsedTokens as ej, getCurrentStep as ek, getEligibleParentTags as el, getErrorCode as em, getErrorMessage as en, getPublicBookingPage as eo, getRawWorkspaceKey as ep, getRunToAttach as eq, getRunToCancel as er, getStepDisplay as es, getStepTool as et, getSubagentBranchRecord as eu, getTagDescendantIds as ev, health as ew, houseTemplate as ex, hydrateAgentSteps as ey, identity as ez, ArbiError as f, reduceOutputItem as f0, refusalReason as f1, requireData as f2, requireOk as f3, resolveAuth as f4, resolveCitations as f5, resolveSummary as f6, resolveWorkspace as f7, responses as f8, searchChunks as f9, selectFullContextDocument as fa, selectWorkspace as fb, selectWorkspaceById as fc, sessions as fd, settings as fe, signatureRequests as ff, sliceToSubagentThread as fg, streamSSE as fh, stripCitationMarkdown as fi, subagentJobLabel as fj, summarizeCitations as fk, tagUseCount as fl, tags as fm, tagsForScope as fn, tagsOfGroup as fo, topLevelAgentSteps as fp, uploadSkill as fq, usdToGbp as fr, work as fs, workflowSteps as ft, workflows as fu, workspaces as fv, wouldCreateTagCycle as fw, 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 };
|
|
17293
|
+
/** Pure composition over the existing cfg contract. Never creates an agt identity or grants access. */
|
|
17294
|
+
|
|
17295
|
+
type Configuration = components['schemas']['ConfigUpdateData'];
|
|
17296
|
+
type ConfigurationPatch = {
|
|
17297
|
+
[K in keyof Configuration]?: NonNullable<Configuration[K]> extends object ? Partial<NonNullable<Configuration[K]>> | null : Configuration[K];
|
|
17298
|
+
};
|
|
17299
|
+
type ResponseTools = NonNullable<components['schemas']['MessageInput']['tools']>;
|
|
17300
|
+
/** Later fields win. Sections merge one level; arrays replace; explicit null clears a section. */
|
|
17301
|
+
declare function composeConfiguration(base: Configuration, ...patches: ConfigurationPatch[]): Configuration;
|
|
17302
|
+
/** Both ordinary answers and the built-in agent loop receive the same developer instructions. */
|
|
17303
|
+
declare function instructions(text: string): ConfigurationPatch;
|
|
17304
|
+
interface Capabilities {
|
|
17305
|
+
webSearch?: boolean;
|
|
17306
|
+
codeExecution?: boolean;
|
|
17307
|
+
planning?: boolean;
|
|
17308
|
+
deepResearch?: boolean;
|
|
17309
|
+
subagents?: boolean;
|
|
17310
|
+
humanInput?: boolean;
|
|
17311
|
+
}
|
|
17312
|
+
/** Feature selection only: workspace membership, consent and tool authorisation still apply. */
|
|
17313
|
+
declare function capabilities(options: Capabilities): ConfigurationPatch;
|
|
17314
|
+
/** Pass an existing configuration to add; replacement intentionally drops the previous list. */
|
|
17315
|
+
declare function mcpTools(base: Configuration, names: string[], mode: 'add' | 'replace'): ConfigurationPatch;
|
|
17316
|
+
declare function documentTools(options: {
|
|
17317
|
+
search?: string[];
|
|
17318
|
+
fullContext?: string[];
|
|
17319
|
+
tableOfContents?: string[];
|
|
17320
|
+
}): ResponseTools;
|
|
17321
|
+
/** Add replaces matching tool names; replace discards all previous tools. No mutation of inputs. */
|
|
17322
|
+
declare function composeTools(base: ResponseTools, next: ResponseTools, mode: 'add' | 'replace'): ResponseTools;
|
|
17323
|
+
|
|
17324
|
+
export { type CitationToolSources as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalendarAccount as D, type CalendarAccountKind as E, type CalendarCreateBody as F, type CalendarEvent as G, type CalendarKeys as H, type CalendarRead as I, type CalendarSettings as J, type CalendarSettingsBody as K, type CalendarUpdate as L, type CalendarWindow as M, CallApiError as N, type Capabilities as O, type ChatAttachmentFile as P, type ChatAttachmentInput as Q, type ChatCryptoContext as R, type ChatKeyRing as S, type ChatKind as T, type ChatMemberKey as U, type ChatMemberResponse as V, type ChatMessage as W, type ChatMessageResponse as X, type ChatResponse as Y, type ChatSession as Z, type CitationSummary as _, type AccountSyncResult as a, type HouseTemplateCandidate as a$, type CliConfig as a0, type CliCredentials as a1, type CommandDescriptor as a2, type ConfigStore as a3, type Configuration as a4, type ConfigurationPatch as a5, type ConnectOptions as a6, type ConnectorCatalogEntry as a7, type ConnectorFolder as a8, type ConnectorSyncProgress as a9, type DocInfo as aA, type DocInfoMap as aB, type DocNameMap as aC, type DocumentAutomationAction as aD, type DocumentListFields as aE, type DocumentListOrder as aF, type DocumentSelector as aG, type DocumentWaiter as aH, type DocumentWaiterOptions as aI, type DriveSyncProgress as aJ, type DriveSyncSummary as aK, DuplicateContactError as aL, ENTITY_KINDS as aM, type EditScope as aN, type EntityKind as aO, type EventCreateBody as aP, type EventPatchBody as aQ, FLAT_TAG_KINDS as aR, type FactResponse as aS, type FactSearchRequest as aT, type FactSearchResponse as aU, type FindTimeParams as aV, type FormattedWsMessage as aW, type FreeBusyEntry as aX, type FullContextSelection as aY, GOOGLE_VENDORS as aZ, type HolidayCountry as a_, type ConnectorSyncStatus as aa, type ConnectorVendorKey as ab, type ConnectorVisibilitySettings as ac, type ContextUsage as ad, type ConversationResponse as ae, type ConversationUsageResponse as af, type CreateFactRequest as ag, type CreateFactsRequest as ah, type CreateWorkRequest as ai, type CreateWorkflowRequest as aj, DEFAULT_AI_USD_PER_GBP as ak, DOC_TERMINAL_STATUSES as al, DRIVE_SYNC_VENDORS as am, type Database as an, type DatabaseAggregateRequest as ao, type DatabaseAggregateResult as ap, type DatabaseColumn as aq, type DatabaseColumnWrite as ar, type DatabaseImportResult as as, type DatabaseRow as at, type DatabaseRowPage as au, type DatabaseRowsQuery as av, type DateTimeSpec as aw, type DecryptedChat as ax, type DecryptedChatMessage as ay, type DeploymentHouseTemplate as az, type ActivityKind as b, type RoomCreateBody as b$, IMANAGE_VENDORS as b0, type IdentityErrorCode as b1, type IdentityPurchase as b2, type IdentityState as b3, type IdentityStatus as b4, type ImportResult as b5, type InvitationRead as b6, type JsonSchemaOutputFormat as b7, type LinkedRun as b8, type ListAllOptions as b9, type ProjectCreateOptions as bA, type ProjectDetails as bB, type ProjectEventKind as bC, type ProjectEventResponse as bD, type ProjectInvoicesResponse as bE, type ProjectNextPeriodAddonsRequest as bF, type ProjectPlanChangeRequest as bG, type ProjectQuoteRequest as bH, type ProjectResponse as bI, type ProjectUpdateRequest as bJ, type ProjectUsageResponse as bK, PublicBookingError as bL, type PublicBookingPage as bM, type QuotaExceeded as bN, type RaisedSignal as bO, type RawResponseEvent as bP, type ReconnectOptions as bQ, type ReconnectableWsConnection as bR, type ResolvedCitation as bS, type ResolvedRecipient as bT, type RespondParams as bU, type RespondPartstat as bV, type ResponseHandle as bW, type ResponseSnapshot as bX, type ResponseStart as bY, type ResponseStartOptions as bZ, type ResponseTools as b_, type ListEventsParams as ba, type ListFactsOptions as bb, type ListPaginatedOptions as bc, MAILBOX_SYNC_VENDORS as bd, MAX_RETRIEVE_DOC_IDS as be, MICROSOFT_VENDORS as bf, type MailAttachment as bg, type MessageLevel as bh, type OAuthAccountKind as bi, type OutputItemDone as bj, type OverlayItem as bk, type OverlayLayerName as bl, PRESENCE_KINDS as bm, PROMPT_CONTEXT_CHARS as bn, type ParsedSlashCommand as bo, type ParsedStructuredResponse as bp, type PendingAuthResponse as bq, type PersonKey as br, PlanStepsError as bs, type PlanWorkRequest as bt, type ProductResponse as bu, type ProjectAddonKind as bv, type ProjectAddonSettingsRequest as bw, type ProjectBudget as bx, type ProjectCheckoutRequest as by, type ProjectConversationUsageResponse as bz, type ActivityResponse as c, type UpdateFactRequest as c$, type RoomQuery as c0, type RoomRead as c1, type RunProgress as c2, type RunStats as c3, type RunStep as c4, type RunWaitingOn as c5, SHAREPOINT_VENDORS as c6, type SSEEvent as c7, type SSEStreamCallbacks as c8, type SSEStreamOutcome as c9, type SubagentBranchRecord as cA, type SubagentLaneInfo as cB, type SubmitBackgroundQueryOptions as cC, type SubscribeParams as cD, type SyncTriggerResult as cE, TAG_KINDS as cF, TAG_NESTING_MAX_DEPTH as cG, type TagChange as cH, type TagFieldDefinition as cI, type TagGroup as cJ, type TagKind as cK, type TagKindField as cL, type TagKindSchema as cM, type TagLinks as cN, type TagListQuery as cO, type TagNode as cP, type TagResponse as cQ, type TagScope as cR, type TagTreeRow as cS, type TaskPlan as cT, type TaskPlanStep as cU, type TaxQuoteResponse as cV, type Thread as cW, type ThreadsResponse as cX, type TimeSuggestion as cY, type TurnRequest as cZ, type UpdateConversationRequest as c_, type SSEStreamResult as ca, STEP_FIELD_OPTION_TONES as cb, STOP_ID_WAIT_MS as cc, STOP_REPEAT_WINDOW_MS as cd, SUPPORTED_EXTENSIONS as ce, type ScopedTarget as cf, type SearchChunk as cg, type SendBack as ch, type ShareRead as ci, type ShareRole as cj, type SkillSummary as ck, type SkippedFile as cl, type SlackConnectionStatus as cm, type StepActionRequest as cn, type StepActivityEvent as co, type StepAssignee as cp, type StepDisplay as cq, type StepField as cr, type StepFieldOption as cs, type StepFieldOptionTone as ct, type StepKind as cu, type StepPhase as cv, type StepSignal as cw, type StepSignalWhen as cx, type StepState as cy, type StepStatus as cz, Arbi as d, documents as d$, type UpdateWorkflowRequest as d0, type UploadBatchResult as d1, type UploadDirectOptions as d2, type UploadDirectResult as d3, type UploadDocumentsOptions as d4, type UploadOptions as d5, type UploadProgressListener as d6, type UploadResult as d7, type UsageBreakdown as d8, type UserConnectorEntry as d9, buildRetrievalFullContextTool as dA, buildRetrievalTocTool as dB, buildTurnRequest as dC, calendar as dD, calls as dE, canTagHaveParent as dF, cancelPublicBooking as dG, capabilities as dH, chats as dI, composeConfiguration as dJ, composeTools as dK, computeRunStats as dL, connectErrorMessage as dM, connectWebSocket as dN, connectWithReconnect as dO, connectors as dP, contacts as dQ, continuityPrompt as dR, conversations as dS, countCitations as dT, createAuthenticatedClient as dU, createDocumentWaiter as dV, createIndexAssigner as dW, databases as dX, defaultKindForFormat as dY, doctags as dZ, documentTools as d_, type UserDailyUsageResponse as da, type UserInfo as db, WebSocketAuthError as dc, type WeeklyHoursSpec as dd, type WorkStatus as de, type WorkflowAuthMode as df, type WorkflowResponse as dg, type WorkflowRunHistoryResponse as dh, type WorkflowRunResponse as di, type WorkspaceContext as dj, type WorkspaceOpenResponse as dk, type WorkspaceResponse as dl, type WsConnection as dm, account as dn, agentconfig as dp, agents as dq, appendTranscriptionHints as dr, assistant as ds, authenticatedFetch as dt, bookPublicSlot as du, buildCitationChunkData as dv, buildDocNameMap as dw, buildDocumentTools as dx, buildFactsContextTool as dy, buildRetrievalChunkTool as dz, ArbiApiError as e, mergeAgentSteps as e$, estimateDraftTokens as e0, extractDocumentIdsFromMessages as e1, extractFactIdsFromMessages as e2, extractSubagentLanes as e3, facts as e4, files as e5, filterDocumentTags as e6, filterSkills as e7, findLeafForTaskMessage as e8, findMainSiblingLeaf as e9, getRawWorkspaceKey as eA, getRunToAttach as eB, getRunToCancel as eC, getStepDisplay as eD, getStepTool as eE, getSubagentBranchRecord as eF, getTagDescendantIds as eG, health as eH, houseTemplate as eI, hydrateAgentSteps as eJ, identity as eK, identityErrorCode as eL, instructions as eM, isAnnotationTag as eN, isConnectorVendorVisible as eO, isDriveSyncVendor as eP, isEntityTag as eQ, isFlatKind as eR, isLabelTag as eS, isMailboxSyncVendor as eT, isNearAiUsageBudget as eU, isPresenceTag as eV, isSharePointVendor as eW, isSharedSkill as eX, isTraceItem as eY, mail as eZ, mcpTools as e_, findReplyTarget as ea, findSubagentRunId as eb, flattenTagTree as ec, formatAgentStepLabel as ed, formatFileSize as ee, formatGbp as ef, formatGbpPerMillionTokens as eg, formatItemLabel as eh, formatStreamSummary as ei, formatTokens as ej, formatUserName as ek, formatWorkspaceChoices as el, formatWsMessage as em, generateEncryptedWorkspaceKey as en, generateNewWorkspaceKey as eo, getAgentStepLabel as ep, getAttachableRunId as eq, getChildTags as er, getContextRemainingPercent as es, getContextUsedPercent as et, getContextUsedTokens as eu, getCurrentStep as ev, getEligibleParentTags as ew, getErrorCode as ex, getErrorMessage as ey, getPublicBookingPage as ez, ArbiError as f, notifications as f0, parseSSEEvents as f1, parseSlashCommand as f2, parseSlashTokenInProgress as f3, parseStructuredResponse as f4, performPasswordLogin as f5, performSigningKeyLogin as f6, performSsoDeviceFlowLogin as f7, pickMainThread as f8, profile as f9, tags as fA, tagsForScope as fB, tagsOfGroup as fC, topLevelAgentSteps as fD, uploadSkill as fE, usdToGbp as fF, work as fG, workflowSteps as fH, workflows as fI, workspaces as fJ, wouldCreateTagCycle as fK, progressFetch as fa, projects as fb, quotaExceededFrom as fc, quotaFromStreamError as fd, reduceOutputItem as fe, refusalReason as ff, requireData as fg, requireOk as fh, resolveAuth as fi, resolveCitations as fj, resolveSummary as fk, resolveWorkspace as fl, responses as fm, searchChunks as fn, selectFullContextDocument as fo, selectWorkspace as fp, selectWorkspaceById as fq, sessions as fr, settings as fs, signatureRequests as ft, sliceToSubagentThread as fu, streamSSE as fv, stripCitationMarkdown as fw, subagentJobLabel as fx, summarizeCitations as fy, tagUseCount as fz, type ArbiErrorOptions as g, type ArbiHostSession as h, type ArbiOptions as i, ArbiSessionExpiredError as j, ArbiStructuredOutputError as k, ArbiTransportError as l, ArbiWorkspaceChangedError as m, ArbiWorkspaceSupersededError as n, type AskHandlers as o, type AskRequest as p, type AttendeeRead as q, type AuthContext as r, type AuthHeaders as s, type AuthMode as t, type AuthenticatedClient as u, type BookingPage as v, type BookingPageWriteBody as w, type BookingRequestBody as x, type BridgeTokensOptions as y, type CalDavProfile as z };
|