@arbidocs/sdk 0.5.59 → 0.5.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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;
@@ -1947,6 +1961,8 @@ declare namespace houseTemplate {
1947
1961
  */
1948
1962
 
1949
1963
  type WorkspaceUpdateRequest$1 = components['schemas']['WorkspaceUpdateRequest'];
1964
+ /** A workspace as the API lists it (`/v1/user/workspaces`), with its stats and members. */
1965
+ type WorkspaceResponse = components['schemas']['WorkspaceResponse'];
1950
1966
  declare function listWorkspaces(arbi: ArbiClient): Promise<{
1951
1967
  external_id: string;
1952
1968
  name: string;
@@ -2422,6 +2438,7 @@ type workspaces_TransferStatus = TransferStatus;
2422
2438
  type workspaces_WorkspaceActivityOptions = WorkspaceActivityOptions;
2423
2439
  type workspaces_WorkspaceArchive = WorkspaceArchive;
2424
2440
  type workspaces_WorkspaceExport = WorkspaceExport;
2441
+ type workspaces_WorkspaceResponse = WorkspaceResponse;
2425
2442
  declare const workspaces_addWorkspaceMembers: typeof addWorkspaceMembers;
2426
2443
  declare const workspaces_addWorkspaceMembersBody: typeof addWorkspaceMembersBody;
2427
2444
  declare const workspaces_addWorkspaceUsers: typeof addWorkspaceUsers;
@@ -2449,7 +2466,7 @@ declare const workspaces_startWorkspaceTransfer: typeof startWorkspaceTransfer;
2449
2466
  declare const workspaces_unarchiveWorkspace: typeof unarchiveWorkspace;
2450
2467
  declare const workspaces_updateWorkspace: typeof updateWorkspace;
2451
2468
  declare namespace workspaces {
2452
- export { type workspaces_AddWorkspaceMembersRequest as AddWorkspaceMembersRequest, workspaces_EXTERNAL_ACCESS_SECONDS as EXTERNAL_ACCESS_SECONDS, type workspaces_TransferConflictPolicy as TransferConflictPolicy, type workspaces_TransferKind as TransferKind, type workspaces_TransferMode as TransferMode, type workspaces_TransferPlan as TransferPlan, type workspaces_TransferScope as TransferScope, type workspaces_TransferStatus as TransferStatus, type workspaces_WorkspaceActivityOptions as WorkspaceActivityOptions, type workspaces_WorkspaceArchive as WorkspaceArchive, type workspaces_WorkspaceExport as WorkspaceExport, workspaces_addWorkspaceMembers as addWorkspaceMembers, workspaces_addWorkspaceMembersBody as addWorkspaceMembersBody, workspaces_addWorkspaceUsers as addWorkspaceUsers, workspaces_archiveWorkspace as archiveWorkspace, workspaces_cancelWorkspaceTransfer as cancelWorkspaceTransfer, workspaces_copyDocuments as copyDocuments, workspaces_createWorkspace as createWorkspace, workspaces_deleteWorkspaces as deleteWorkspaces, workspaces_exportWorkspaceData as exportWorkspaceData, workspaces_getWorkspaceAccessStatus as getWorkspaceAccessStatus, workspaces_getWorkspaceActivity as getWorkspaceActivity, workspaces_getWorkspaceArchive as getWorkspaceArchive, workspaces_getWorkspaceTransfer as getWorkspaceTransfer, workspaces_grantTemporaryWorkspaceAccess as grantTemporaryWorkspaceAccess, workspaces_listWorkspaceTransfers as listWorkspaceTransfers, workspaces_listWorkspaceUsers as listWorkspaceUsers, workspaces_listWorkspaces as listWorkspaces, workspaces_moveWorkspaceToProject as moveWorkspaceToProject, workspaces_planWorkspaceTransfer as planWorkspaceTransfer, workspaces_primeWorkspaceKey as primeWorkspaceKey, workspaces_removeWorkspaceUsers as removeWorkspaceUsers, workspaces_resumeWorkspaceTransfer as resumeWorkspaceTransfer, workspaces_setUserRole as setUserRole, workspaces_startWorkspaceTransfer as startWorkspaceTransfer, workspaces_unarchiveWorkspace as unarchiveWorkspace, workspaces_updateWorkspace as updateWorkspace };
2469
+ export { type workspaces_AddWorkspaceMembersRequest as AddWorkspaceMembersRequest, workspaces_EXTERNAL_ACCESS_SECONDS as EXTERNAL_ACCESS_SECONDS, type workspaces_TransferConflictPolicy as TransferConflictPolicy, type workspaces_TransferKind as TransferKind, type workspaces_TransferMode as TransferMode, type workspaces_TransferPlan as TransferPlan, type workspaces_TransferScope as TransferScope, type workspaces_TransferStatus as TransferStatus, type workspaces_WorkspaceActivityOptions as WorkspaceActivityOptions, type workspaces_WorkspaceArchive as WorkspaceArchive, type workspaces_WorkspaceExport as WorkspaceExport, type workspaces_WorkspaceResponse as WorkspaceResponse, workspaces_addWorkspaceMembers as addWorkspaceMembers, workspaces_addWorkspaceMembersBody as addWorkspaceMembersBody, workspaces_addWorkspaceUsers as addWorkspaceUsers, workspaces_archiveWorkspace as archiveWorkspace, workspaces_cancelWorkspaceTransfer as cancelWorkspaceTransfer, workspaces_copyDocuments as copyDocuments, workspaces_createWorkspace as createWorkspace, workspaces_deleteWorkspaces as deleteWorkspaces, workspaces_exportWorkspaceData as exportWorkspaceData, workspaces_getWorkspaceAccessStatus as getWorkspaceAccessStatus, workspaces_getWorkspaceActivity as getWorkspaceActivity, workspaces_getWorkspaceArchive as getWorkspaceArchive, workspaces_getWorkspaceTransfer as getWorkspaceTransfer, workspaces_grantTemporaryWorkspaceAccess as grantTemporaryWorkspaceAccess, workspaces_listWorkspaceTransfers as listWorkspaceTransfers, workspaces_listWorkspaceUsers as listWorkspaceUsers, workspaces_listWorkspaces as listWorkspaces, workspaces_moveWorkspaceToProject as moveWorkspaceToProject, workspaces_planWorkspaceTransfer as planWorkspaceTransfer, workspaces_primeWorkspaceKey as primeWorkspaceKey, workspaces_removeWorkspaceUsers as removeWorkspaceUsers, workspaces_resumeWorkspaceTransfer as resumeWorkspaceTransfer, workspaces_setUserRole as setUserRole, workspaces_startWorkspaceTransfer as startWorkspaceTransfer, workspaces_unarchiveWorkspace as unarchiveWorkspace, workspaces_updateWorkspace as updateWorkspace };
2453
2470
  }
2454
2471
 
2455
2472
  /**
@@ -3316,6 +3333,8 @@ interface TurnRequest {
3316
3333
  agentId?: string;
3317
3334
  /** The config (model) to answer with. */
3318
3335
  model?: string | null;
3336
+ /** Responses output configuration, scoped to this turn. */
3337
+ text?: MessageInput$2['text'];
3319
3338
  /** Structured @mentions in the question. */
3320
3339
  mentions?: MessageInput$2['mentions'];
3321
3340
  /** The mode a NEW conversation starts in. */
@@ -3654,6 +3673,7 @@ interface SubmitBackgroundQueryOptions extends AuthHeaders {
3654
3673
  docIds: string[];
3655
3674
  previousResponseId?: string | null;
3656
3675
  model?: string;
3676
+ text?: MessageInput['text'];
3657
3677
  task?: MessageInput['task'];
3658
3678
  conversationId?: string;
3659
3679
  mentions?: MessageInput['mentions'];
@@ -12001,7 +12021,52 @@ declare class Arbi {
12001
12021
  unlockNative: () => Promise<void>;
12002
12022
  };
12003
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
+ };
12004
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>>;
12005
12070
  /** Start one response with a composable observer; existing ask callbacks remain unchanged. */
12006
12071
  startResponse: (request: AskRequest, options?: ResponseStartOptions) => Promise<ResponseStart>;
12007
12072
  /** Attach to retained replay/live events for an existing msg; never resubmits a turn. */
@@ -12053,6 +12118,9 @@ declare class Arbi {
12053
12118
  error?: {
12054
12119
  [key: string]: unknown;
12055
12120
  } | null;
12121
+ incomplete_details?: {
12122
+ [key: string]: unknown;
12123
+ } | null;
12056
12124
  metadata?: {
12057
12125
  [key: string]: unknown;
12058
12126
  } | null;
@@ -12071,6 +12139,9 @@ declare class Arbi {
12071
12139
  error?: {
12072
12140
  [key: string]: unknown;
12073
12141
  } | null;
12142
+ incomplete_details?: {
12143
+ [key: string]: unknown;
12144
+ } | null;
12074
12145
  metadata?: {
12075
12146
  [key: string]: unknown;
12076
12147
  } | null;
@@ -17219,4 +17290,35 @@ declare function getAttachableRunId(messages: readonly RunMessage[]): string | n
17219
17290
  */
17220
17291
  declare function getRunToAttach(localGeneration: LocalGeneration | undefined, messages: readonly RunMessage[]): string | null;
17221
17292
 
17222
- 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, findSubagentRunId 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, computeRunStats as dA, connectErrorMessage as dB, connectWebSocket as dC, connectWithReconnect as dD, connectors as dE, contacts as dF, continuityPrompt as dG, conversations as dH, countCitations as dI, createAuthenticatedClient as dJ, createDocumentWaiter as dK, createIndexAssigner as dL, databases as dM, defaultKindForFormat as dN, doctags as dO, documents as dP, estimateDraftTokens as dQ, extractDocumentIdsFromMessages as dR, extractFactIdsFromMessages as dS, extractSubagentLanes as dT, facts as dU, files as dV, filterDocumentTags as dW, filterSkills as dX, findLeafForTaskMessage as dY, findMainSiblingLeaf as dZ, findReplyTarget as d_, type WorkflowRunHistoryResponse as da, type WorkflowRunResponse as db, type WorkspaceContext as dc, type WorkspaceOpenResponse as dd, type WsConnection as de, account as df, agentconfig as dg, agents as dh, appendTranscriptionHints as di, assistant as dj, authenticatedFetch as dk, bookPublicSlot as dl, buildCitationChunkData as dm, buildDocNameMap as dn, buildDocumentTools as dp, buildFactsContextTool as dq, buildRetrievalChunkTool as dr, buildRetrievalFullContextTool as ds, buildRetrievalTocTool as dt, buildTurnRequest as du, calendar as dv, calls as dw, canTagHaveParent as dx, cancelPublicBooking as dy, chats as dz, ArbiApiError as e, reduceOutputItem as e$, flattenTagTree as e0, formatAgentStepLabel as e1, formatFileSize as e2, formatGbp as e3, formatGbpPerMillionTokens as e4, formatItemLabel as e5, formatStreamSummary as e6, formatTokens as e7, formatUserName as e8, formatWorkspaceChoices as e9, isAnnotationTag as eA, isConnectorVendorVisible as eB, isDriveSyncVendor as eC, isEntityTag as eD, isFlatKind as eE, isLabelTag as eF, isMailboxSyncVendor as eG, isNearAiUsageBudget as eH, isPresenceTag as eI, isSharePointVendor as eJ, isSharedSkill as eK, isTraceItem as eL, mail as eM, mergeAgentSteps as eN, notifications as eO, parseSSEEvents as eP, parseSlashCommand as eQ, parseSlashTokenInProgress as eR, performPasswordLogin as eS, performSigningKeyLogin as eT, performSsoDeviceFlowLogin as eU, pickMainThread as eV, profile as eW, progressFetch as eX, projects as eY, quotaExceededFrom as eZ, quotaFromStreamError as e_, formatWsMessage as ea, generateEncryptedWorkspaceKey as eb, generateNewWorkspaceKey as ec, getAgentStepLabel as ed, getAttachableRunId as ee, getChildTags as ef, getContextRemainingPercent as eg, getContextUsedPercent as eh, getContextUsedTokens as ei, getCurrentStep as ej, getEligibleParentTags as ek, getErrorCode as el, getErrorMessage as em, getPublicBookingPage as en, getRawWorkspaceKey as eo, getRunToAttach as ep, getRunToCancel as eq, getStepDisplay as er, getStepTool as es, getSubagentBranchRecord as et, getTagDescendantIds as eu, health as ev, houseTemplate as ew, hydrateAgentSteps as ex, identity as ey, identityErrorCode as ez, ArbiError as f, refusalReason as f0, requireData as f1, requireOk as f2, resolveAuth as f3, resolveCitations as f4, resolveSummary as f5, resolveWorkspace as f6, responses as f7, searchChunks as f8, selectFullContextDocument as f9, selectWorkspace as fa, selectWorkspaceById as fb, sessions as fc, settings as fd, signatureRequests as fe, sliceToSubagentThread as ff, streamSSE as fg, stripCitationMarkdown as fh, subagentJobLabel as fi, summarizeCitations as fj, tagUseCount as fk, tags as fl, tagsForScope as fm, tagsOfGroup as fn, topLevelAgentSteps as fo, uploadSkill as fp, usdToGbp as fq, work as fr, workflowSteps as fs, workflows as ft, workspaces as fu, wouldCreateTagCycle as fv, 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;
@@ -1947,6 +1961,8 @@ declare namespace houseTemplate {
1947
1961
  */
1948
1962
 
1949
1963
  type WorkspaceUpdateRequest$1 = components['schemas']['WorkspaceUpdateRequest'];
1964
+ /** A workspace as the API lists it (`/v1/user/workspaces`), with its stats and members. */
1965
+ type WorkspaceResponse = components['schemas']['WorkspaceResponse'];
1950
1966
  declare function listWorkspaces(arbi: ArbiClient): Promise<{
1951
1967
  external_id: string;
1952
1968
  name: string;
@@ -2422,6 +2438,7 @@ type workspaces_TransferStatus = TransferStatus;
2422
2438
  type workspaces_WorkspaceActivityOptions = WorkspaceActivityOptions;
2423
2439
  type workspaces_WorkspaceArchive = WorkspaceArchive;
2424
2440
  type workspaces_WorkspaceExport = WorkspaceExport;
2441
+ type workspaces_WorkspaceResponse = WorkspaceResponse;
2425
2442
  declare const workspaces_addWorkspaceMembers: typeof addWorkspaceMembers;
2426
2443
  declare const workspaces_addWorkspaceMembersBody: typeof addWorkspaceMembersBody;
2427
2444
  declare const workspaces_addWorkspaceUsers: typeof addWorkspaceUsers;
@@ -2449,7 +2466,7 @@ declare const workspaces_startWorkspaceTransfer: typeof startWorkspaceTransfer;
2449
2466
  declare const workspaces_unarchiveWorkspace: typeof unarchiveWorkspace;
2450
2467
  declare const workspaces_updateWorkspace: typeof updateWorkspace;
2451
2468
  declare namespace workspaces {
2452
- export { type workspaces_AddWorkspaceMembersRequest as AddWorkspaceMembersRequest, workspaces_EXTERNAL_ACCESS_SECONDS as EXTERNAL_ACCESS_SECONDS, type workspaces_TransferConflictPolicy as TransferConflictPolicy, type workspaces_TransferKind as TransferKind, type workspaces_TransferMode as TransferMode, type workspaces_TransferPlan as TransferPlan, type workspaces_TransferScope as TransferScope, type workspaces_TransferStatus as TransferStatus, type workspaces_WorkspaceActivityOptions as WorkspaceActivityOptions, type workspaces_WorkspaceArchive as WorkspaceArchive, type workspaces_WorkspaceExport as WorkspaceExport, workspaces_addWorkspaceMembers as addWorkspaceMembers, workspaces_addWorkspaceMembersBody as addWorkspaceMembersBody, workspaces_addWorkspaceUsers as addWorkspaceUsers, workspaces_archiveWorkspace as archiveWorkspace, workspaces_cancelWorkspaceTransfer as cancelWorkspaceTransfer, workspaces_copyDocuments as copyDocuments, workspaces_createWorkspace as createWorkspace, workspaces_deleteWorkspaces as deleteWorkspaces, workspaces_exportWorkspaceData as exportWorkspaceData, workspaces_getWorkspaceAccessStatus as getWorkspaceAccessStatus, workspaces_getWorkspaceActivity as getWorkspaceActivity, workspaces_getWorkspaceArchive as getWorkspaceArchive, workspaces_getWorkspaceTransfer as getWorkspaceTransfer, workspaces_grantTemporaryWorkspaceAccess as grantTemporaryWorkspaceAccess, workspaces_listWorkspaceTransfers as listWorkspaceTransfers, workspaces_listWorkspaceUsers as listWorkspaceUsers, workspaces_listWorkspaces as listWorkspaces, workspaces_moveWorkspaceToProject as moveWorkspaceToProject, workspaces_planWorkspaceTransfer as planWorkspaceTransfer, workspaces_primeWorkspaceKey as primeWorkspaceKey, workspaces_removeWorkspaceUsers as removeWorkspaceUsers, workspaces_resumeWorkspaceTransfer as resumeWorkspaceTransfer, workspaces_setUserRole as setUserRole, workspaces_startWorkspaceTransfer as startWorkspaceTransfer, workspaces_unarchiveWorkspace as unarchiveWorkspace, workspaces_updateWorkspace as updateWorkspace };
2469
+ export { type workspaces_AddWorkspaceMembersRequest as AddWorkspaceMembersRequest, workspaces_EXTERNAL_ACCESS_SECONDS as EXTERNAL_ACCESS_SECONDS, type workspaces_TransferConflictPolicy as TransferConflictPolicy, type workspaces_TransferKind as TransferKind, type workspaces_TransferMode as TransferMode, type workspaces_TransferPlan as TransferPlan, type workspaces_TransferScope as TransferScope, type workspaces_TransferStatus as TransferStatus, type workspaces_WorkspaceActivityOptions as WorkspaceActivityOptions, type workspaces_WorkspaceArchive as WorkspaceArchive, type workspaces_WorkspaceExport as WorkspaceExport, type workspaces_WorkspaceResponse as WorkspaceResponse, workspaces_addWorkspaceMembers as addWorkspaceMembers, workspaces_addWorkspaceMembersBody as addWorkspaceMembersBody, workspaces_addWorkspaceUsers as addWorkspaceUsers, workspaces_archiveWorkspace as archiveWorkspace, workspaces_cancelWorkspaceTransfer as cancelWorkspaceTransfer, workspaces_copyDocuments as copyDocuments, workspaces_createWorkspace as createWorkspace, workspaces_deleteWorkspaces as deleteWorkspaces, workspaces_exportWorkspaceData as exportWorkspaceData, workspaces_getWorkspaceAccessStatus as getWorkspaceAccessStatus, workspaces_getWorkspaceActivity as getWorkspaceActivity, workspaces_getWorkspaceArchive as getWorkspaceArchive, workspaces_getWorkspaceTransfer as getWorkspaceTransfer, workspaces_grantTemporaryWorkspaceAccess as grantTemporaryWorkspaceAccess, workspaces_listWorkspaceTransfers as listWorkspaceTransfers, workspaces_listWorkspaceUsers as listWorkspaceUsers, workspaces_listWorkspaces as listWorkspaces, workspaces_moveWorkspaceToProject as moveWorkspaceToProject, workspaces_planWorkspaceTransfer as planWorkspaceTransfer, workspaces_primeWorkspaceKey as primeWorkspaceKey, workspaces_removeWorkspaceUsers as removeWorkspaceUsers, workspaces_resumeWorkspaceTransfer as resumeWorkspaceTransfer, workspaces_setUserRole as setUserRole, workspaces_startWorkspaceTransfer as startWorkspaceTransfer, workspaces_unarchiveWorkspace as unarchiveWorkspace, workspaces_updateWorkspace as updateWorkspace };
2453
2470
  }
2454
2471
 
2455
2472
  /**
@@ -3316,6 +3333,8 @@ interface TurnRequest {
3316
3333
  agentId?: string;
3317
3334
  /** The config (model) to answer with. */
3318
3335
  model?: string | null;
3336
+ /** Responses output configuration, scoped to this turn. */
3337
+ text?: MessageInput$2['text'];
3319
3338
  /** Structured @mentions in the question. */
3320
3339
  mentions?: MessageInput$2['mentions'];
3321
3340
  /** The mode a NEW conversation starts in. */
@@ -3654,6 +3673,7 @@ interface SubmitBackgroundQueryOptions extends AuthHeaders {
3654
3673
  docIds: string[];
3655
3674
  previousResponseId?: string | null;
3656
3675
  model?: string;
3676
+ text?: MessageInput['text'];
3657
3677
  task?: MessageInput['task'];
3658
3678
  conversationId?: string;
3659
3679
  mentions?: MessageInput['mentions'];
@@ -12001,7 +12021,52 @@ declare class Arbi {
12001
12021
  unlockNative: () => Promise<void>;
12002
12022
  };
12003
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
+ };
12004
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>>;
12005
12070
  /** Start one response with a composable observer; existing ask callbacks remain unchanged. */
12006
12071
  startResponse: (request: AskRequest, options?: ResponseStartOptions) => Promise<ResponseStart>;
12007
12072
  /** Attach to retained replay/live events for an existing msg; never resubmits a turn. */
@@ -12053,6 +12118,9 @@ declare class Arbi {
12053
12118
  error?: {
12054
12119
  [key: string]: unknown;
12055
12120
  } | null;
12121
+ incomplete_details?: {
12122
+ [key: string]: unknown;
12123
+ } | null;
12056
12124
  metadata?: {
12057
12125
  [key: string]: unknown;
12058
12126
  } | null;
@@ -12071,6 +12139,9 @@ declare class Arbi {
12071
12139
  error?: {
12072
12140
  [key: string]: unknown;
12073
12141
  } | null;
12142
+ incomplete_details?: {
12143
+ [key: string]: unknown;
12144
+ } | null;
12074
12145
  metadata?: {
12075
12146
  [key: string]: unknown;
12076
12147
  } | null;
@@ -17219,4 +17290,35 @@ declare function getAttachableRunId(messages: readonly RunMessage[]): string | n
17219
17290
  */
17220
17291
  declare function getRunToAttach(localGeneration: LocalGeneration | undefined, messages: readonly RunMessage[]): string | null;
17221
17292
 
17222
- 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, findSubagentRunId 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, computeRunStats as dA, connectErrorMessage as dB, connectWebSocket as dC, connectWithReconnect as dD, connectors as dE, contacts as dF, continuityPrompt as dG, conversations as dH, countCitations as dI, createAuthenticatedClient as dJ, createDocumentWaiter as dK, createIndexAssigner as dL, databases as dM, defaultKindForFormat as dN, doctags as dO, documents as dP, estimateDraftTokens as dQ, extractDocumentIdsFromMessages as dR, extractFactIdsFromMessages as dS, extractSubagentLanes as dT, facts as dU, files as dV, filterDocumentTags as dW, filterSkills as dX, findLeafForTaskMessage as dY, findMainSiblingLeaf as dZ, findReplyTarget as d_, type WorkflowRunHistoryResponse as da, type WorkflowRunResponse as db, type WorkspaceContext as dc, type WorkspaceOpenResponse as dd, type WsConnection as de, account as df, agentconfig as dg, agents as dh, appendTranscriptionHints as di, assistant as dj, authenticatedFetch as dk, bookPublicSlot as dl, buildCitationChunkData as dm, buildDocNameMap as dn, buildDocumentTools as dp, buildFactsContextTool as dq, buildRetrievalChunkTool as dr, buildRetrievalFullContextTool as ds, buildRetrievalTocTool as dt, buildTurnRequest as du, calendar as dv, calls as dw, canTagHaveParent as dx, cancelPublicBooking as dy, chats as dz, ArbiApiError as e, reduceOutputItem as e$, flattenTagTree as e0, formatAgentStepLabel as e1, formatFileSize as e2, formatGbp as e3, formatGbpPerMillionTokens as e4, formatItemLabel as e5, formatStreamSummary as e6, formatTokens as e7, formatUserName as e8, formatWorkspaceChoices as e9, isAnnotationTag as eA, isConnectorVendorVisible as eB, isDriveSyncVendor as eC, isEntityTag as eD, isFlatKind as eE, isLabelTag as eF, isMailboxSyncVendor as eG, isNearAiUsageBudget as eH, isPresenceTag as eI, isSharePointVendor as eJ, isSharedSkill as eK, isTraceItem as eL, mail as eM, mergeAgentSteps as eN, notifications as eO, parseSSEEvents as eP, parseSlashCommand as eQ, parseSlashTokenInProgress as eR, performPasswordLogin as eS, performSigningKeyLogin as eT, performSsoDeviceFlowLogin as eU, pickMainThread as eV, profile as eW, progressFetch as eX, projects as eY, quotaExceededFrom as eZ, quotaFromStreamError as e_, formatWsMessage as ea, generateEncryptedWorkspaceKey as eb, generateNewWorkspaceKey as ec, getAgentStepLabel as ed, getAttachableRunId as ee, getChildTags as ef, getContextRemainingPercent as eg, getContextUsedPercent as eh, getContextUsedTokens as ei, getCurrentStep as ej, getEligibleParentTags as ek, getErrorCode as el, getErrorMessage as em, getPublicBookingPage as en, getRawWorkspaceKey as eo, getRunToAttach as ep, getRunToCancel as eq, getStepDisplay as er, getStepTool as es, getSubagentBranchRecord as et, getTagDescendantIds as eu, health as ev, houseTemplate as ew, hydrateAgentSteps as ex, identity as ey, identityErrorCode as ez, ArbiError as f, refusalReason as f0, requireData as f1, requireOk as f2, resolveAuth as f3, resolveCitations as f4, resolveSummary as f5, resolveWorkspace as f6, responses as f7, searchChunks as f8, selectFullContextDocument as f9, selectWorkspace as fa, selectWorkspaceById as fb, sessions as fc, settings as fd, signatureRequests as fe, sliceToSubagentThread as ff, streamSSE as fg, stripCitationMarkdown as fh, subagentJobLabel as fi, summarizeCitations as fj, tagUseCount as fk, tags as fl, tagsForScope as fm, tagsOfGroup as fn, topLevelAgentSteps as fo, uploadSkill as fp, usdToGbp as fq, work as fr, workflowSteps as fs, workflows as ft, workspaces as fu, wouldCreateTagCycle as fv, 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 };