@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/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { a1 as ConfigStore, _ as CliConfig, $ as CliCredentials, X as ChatSession, ce as SkippedFile, d0 as UploadResult, r as AuthHeaders, cW as UploadBatchResult, c_ as UploadOptions, cX as UploadDirectOptions, cY as UploadDirectResult, c7 as SUPPORTED_EXTENSIONS, bb as MailAttachment, P as ChatCryptoContext } from './browser-wtQhRmpE.cjs';
2
- export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiTransportError, l as ArbiWorkspaceChangedError, m as ArbiWorkspaceSupersededError, n as AskHandlers, o as AskRequest, p as AttendeeRead, q as AuthContext, s as AuthMode, t as AuthenticatedClient, B as BookingConfirmation, u as BookingPage, v as BookingPageWriteBody, w as BookingRequestBody, x as BridgeTokensOptions, C as CalDavConnectBody, y as CalDavProfile, z as CalendarAccount, D as CalendarAccountKind, E as CalendarCreateBody, F as CalendarEvent, G as CalendarKeys, H as CalendarRead, I as CalendarSettings, J as CalendarSettingsBody, K as CalendarUpdate, L as CalendarWindow, M as CallApiError, N as ChatAttachmentFile, O as ChatAttachmentInput, Q as ChatKeyRing, R as ChatKind, S as ChatMemberKey, T as ChatMemberResponse, U as ChatMessage, V as ChatMessageResponse, W as ChatResponse, Y as CitationSummary, Z as CitationToolSources, a0 as CommandDescriptor, a2 as ConnectOptions, a3 as ConnectorCatalogEntry, a4 as ConnectorFolder, a5 as ConnectorSyncProgress, a6 as ConnectorSyncStatus, a7 as ConnectorVendorKey, a8 as ConnectorVisibilitySettings, a9 as ContextUsage, aa as ConversationResponse, ab as ConversationUsageResponse, ae as CreateWorkRequest, af as CreateWorkflowRequest, ag as DEFAULT_AI_USD_PER_GBP, ah as DOC_TERMINAL_STATUSES, ai as DRIVE_SYNC_VENDORS, aj as Database, ak as DatabaseAggregateRequest, al as DatabaseAggregateResult, am as DatabaseColumn, an as DatabaseColumnWrite, ao as DatabaseImportResult, ap as DatabaseRow, aq as DatabaseRowPage, ar as DatabaseRowsQuery, as as DateTimeSpec, at as DecryptedChat, au as DecryptedChatMessage, av as DeploymentHouseTemplate, aw as DocInfo, ax as DocInfoMap, ay as DocNameMap, az as DocumentAutomationAction, aA as DocumentListFields, aB as DocumentListOrder, aC as DocumentSelector, aD as DocumentWaiter, aE as DocumentWaiterOptions, aF as DriveSyncProgress, aG as DriveSyncSummary, aH as DuplicateContactError, aI as ENTITY_KINDS, aJ as EditScope, aK as EntityKind, aL as EventCreateBody, aM as EventPatchBody, aN as FLAT_TAG_KINDS, aR as FindTimeParams, aS as FormattedWsMessage, aT as FreeBusyEntry, aU as FullContextSelection, aV as GOOGLE_VENDORS, aW as HolidayCountry, aX as HouseTemplateCandidate, aY as IMANAGE_VENDORS, aZ as IdentityErrorCode, a_ as IdentityPurchase, a$ as IdentityState, b0 as IdentityStatus, b1 as ImportResult, b2 as InvitationRead, b3 as LinkedRun, b4 as ListAllOptions, b5 as ListEventsParams, b7 as ListPaginatedOptions, b8 as MAILBOX_SYNC_VENDORS, b9 as MAX_RETRIEVE_DOC_IDS, ba as MICROSOFT_VENDORS, bc as MessageLevel, bd as OAuthAccountKind, be as OutputItemDone, bf as OverlayItem, bg as OverlayLayerName, bh as PRESENCE_KINDS, bi as PROMPT_CONTEXT_CHARS, bj as ParsedSlashCommand, bk as PendingAuthResponse, bl as PersonKey, bm as PlanStepsError, bn as PlanWorkRequest, bo as ProductResponse, bp as ProjectAddonKind, bq as ProjectAddonSettingsRequest, br as ProjectBudget, bs as ProjectCheckoutRequest, bt as ProjectConversationUsageResponse, bu as ProjectCreateOptions, bv as ProjectDetails, bw as ProjectEventKind, bx as ProjectEventResponse, by as ProjectInvoicesResponse, bz as ProjectNextPeriodAddonsRequest, bA as ProjectPlanChangeRequest, bB as ProjectQuoteRequest, bC as ProjectResponse, bD as ProjectUpdateRequest, bE as ProjectUsageResponse, bF as PublicBookingError, bG as PublicBookingPage, bH as QuotaExceeded, bI as RaisedSignal, bJ as RawResponseEvent, bK as ReconnectOptions, bL as ReconnectableWsConnection, bM as ResolvedCitation, bN as ResolvedRecipient, bO as RespondParams, bP as RespondPartstat, bQ as ResponseHandle, bR as ResponseSnapshot, bS as ResponseStart, bT as ResponseStartOptions, bU as RoomCreateBody, bV as RoomQuery, bW as RoomRead, bX as RunProgress, bY as RunStats, bZ as RunStep, b_ as RunWaitingOn, b$ as SHAREPOINT_VENDORS, c0 as SSEEvent, c1 as SSEStreamCallbacks, c2 as SSEStreamOutcome, c3 as SSEStreamResult, c4 as STEP_FIELD_OPTION_TONES, c5 as STOP_ID_WAIT_MS, c6 as STOP_REPEAT_WINDOW_MS, c8 as ScopedTarget, c9 as SearchChunk, ca as SendBack, cb as ShareRead, cc as ShareRole, cd as SkillSummary, cf as SlackConnectionStatus, cg as StepActionRequest, ch as StepActivityEvent, ci as StepAssignee, cj as StepDisplay, ck as StepField, cl as StepFieldOption, cm as StepFieldOptionTone, cn as StepKind, co as StepPhase, cp as StepSignal, cq as StepSignalWhen, cr as StepState, cs as StepStatus, ct as SubagentBranchRecord, cu as SubagentLaneInfo, cv as SubmitBackgroundQueryOptions, cw as SubscribeParams, cx as SyncTriggerResult, cy as TAG_KINDS, cz as TAG_NESTING_MAX_DEPTH, cA as TagChange, cB as TagFieldDefinition, cC as TagGroup, cD as TagKind, cE as TagKindField, cF as TagKindSchema, cG as TagLinks, cH as TagListQuery, cI as TagNode, cJ as TagResponse, cK as TagScope, cL as TagTreeRow, cM as TaskPlan, cN as TaskPlanStep, cO as TaxQuoteResponse, cP as Thread, cQ as ThreadsResponse, cR as TimeSuggestion, cS as TurnRequest, cT as UpdateConversationRequest, cV as UpdateWorkflowRequest, cZ as UploadDocumentsOptions, c$ as UploadProgressListener, d1 as UsageBreakdown, d2 as UserConnectorEntry, d3 as UserDailyUsageResponse, d4 as UserInfo, d5 as WebSocketAuthError, d6 as WeeklyHoursSpec, d7 as WorkStatus, d8 as WorkflowAuthMode, d9 as WorkflowResponse, da as WorkflowRunHistoryResponse, db as WorkflowRunResponse, dc as WorkspaceContext, dd as WorkspaceOpenResponse, de as WsConnection, df as account, dg as agentconfig, dh as agents, di as appendTranscriptionHints, dj as assistant, dk as authenticatedFetch, dl as bookPublicSlot, dm as buildCitationChunkData, dn as buildDocNameMap, dp as buildDocumentTools, dq as buildFactsContextTool, dr as buildRetrievalChunkTool, ds as buildRetrievalFullContextTool, dt as buildRetrievalTocTool, du as buildTurnRequest, dv as calendar, dw as calls, dx as canTagHaveParent, dy as cancelPublicBooking, dz as chats, dA as computeRunStats, dB as connectErrorMessage, dC as connectWebSocket, dD as connectWithReconnect, dE as connectors, dF as contacts, dG as continuityPrompt, dH as conversations, dI as countCitations, dJ as createAuthenticatedClient, dK as createDocumentWaiter, dL as createIndexAssigner, dM as databases, dN as defaultKindForFormat, dO as doctags, dP as documents, dQ as estimateDraftTokens, dR as extractDocumentIdsFromMessages, dS as extractFactIdsFromMessages, dT as extractSubagentLanes, dU as facts, dV as files, dW as filterDocumentTags, dX as filterSkills, dY as findLeafForTaskMessage, dZ as findMainSiblingLeaf, d_ as findReplyTarget, d$ as findSubagentRunId, e0 as flattenTagTree, e1 as formatAgentStepLabel, e2 as formatFileSize, e3 as formatGbp, e4 as formatGbpPerMillionTokens, e5 as formatItemLabel, e6 as formatStreamSummary, e7 as formatTokens, e8 as formatUserName, e9 as formatWorkspaceChoices, ea as formatWsMessage, eb as generateEncryptedWorkspaceKey, ec as generateNewWorkspaceKey, ed as getAgentStepLabel, ee as getAttachableRunId, ef as getChildTags, eg as getContextRemainingPercent, eh as getContextUsedPercent, ei as getContextUsedTokens, ej as getCurrentStep, ek as getEligibleParentTags, el as getErrorCode, em as getErrorMessage, en as getPublicBookingPage, eo as getRawWorkspaceKey, ep as getRunToAttach, eq as getRunToCancel, er as getStepDisplay, es as getStepTool, et as getSubagentBranchRecord, eu as getTagDescendantIds, ev as health, ew as houseTemplates, ex as hydrateAgentSteps, ez as identityErrorCode, ey as identityVerification, eA as isAnnotationTag, eB as isConnectorVendorVisible, eC as isDriveSyncVendor, eD as isEntityTag, eE as isFlatKind, eF as isLabelTag, eG as isMailboxSyncVendor, eH as isNearAiUsageBudget, eI as isPresenceTag, eJ as isSharePointVendor, eK as isSharedSkill, eL as isTraceItem, eM as mail, eN as mergeAgentSteps, eO as notifications, eP as parseSSEEvents, eQ as parseSlashCommand, eR as parseSlashTokenInProgress, eS as performPasswordLogin, eT as performSigningKeyLogin, eU as performSsoDeviceFlowLogin, eV as pickMainThread, eW as profile, eX as progressFetch, eY as projects, eZ as quotaExceededFrom, e_ as quotaFromStreamError, e$ as reduceOutputItem, f0 as refusalReason, f1 as requireData, f2 as requireOk, f3 as resolveAuth, f4 as resolveCitations, f5 as resolveSummary, f6 as resolveWorkspace, f7 as responses, f8 as searchChunks, f9 as selectFullContextDocument, fa as selectWorkspace, fb as selectWorkspaceById, fc as sessions, fd as settings, fe as signatureRequests, ff as sliceToSubagentThread, fg as streamSSE, fh as stripCitationMarkdown, fi as subagentJobLabel, fj as summarizeCitations, fk as tagUseCount, fl as tags, fm as tagsForScope, fn as tagsOfGroup, fo as topLevelAgentSteps, fp as uploadSkill, fq as usdToGbp, fr as work, fs as workflowSteps, ft as workflows, fu as workspaces, fv as wouldCreateTagCycle } from './browser-wtQhRmpE.cjs';
1
+ import { a3 as ConfigStore, a0 as CliConfig, a1 as CliCredentials, Z as ChatSession, cl as SkippedFile, d7 as UploadResult, s as AuthHeaders, d1 as UploadBatchResult, d5 as UploadOptions, d2 as UploadDirectOptions, d3 as UploadDirectResult, ce as SUPPORTED_EXTENSIONS, bg as MailAttachment, R as ChatCryptoContext } from './browser-2WIMhFQU.cjs';
2
+ export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiStructuredOutputError, l as ArbiTransportError, m as ArbiWorkspaceChangedError, n as ArbiWorkspaceSupersededError, o as AskHandlers, p as AskRequest, q as AttendeeRead, r as AuthContext, t as AuthMode, u as AuthenticatedClient, B as BookingConfirmation, v as BookingPage, w as BookingPageWriteBody, x as BookingRequestBody, y as BridgeTokensOptions, C as CalDavConnectBody, z as CalDavProfile, D as CalendarAccount, E as CalendarAccountKind, F as CalendarCreateBody, G as CalendarEvent, H as CalendarKeys, I as CalendarRead, J as CalendarSettings, K as CalendarSettingsBody, L as CalendarUpdate, M as CalendarWindow, N as CallApiError, O as Capabilities, P as ChatAttachmentFile, Q as ChatAttachmentInput, S as ChatKeyRing, T as ChatKind, U as ChatMemberKey, V as ChatMemberResponse, W as ChatMessage, X as ChatMessageResponse, Y as ChatResponse, _ as CitationSummary, $ as CitationToolSources, a2 as CommandDescriptor, a4 as Configuration, a5 as ConfigurationPatch, a6 as ConnectOptions, a7 as ConnectorCatalogEntry, a8 as ConnectorFolder, a9 as ConnectorSyncProgress, aa as ConnectorSyncStatus, ab as ConnectorVendorKey, ac as ConnectorVisibilitySettings, ad as ContextUsage, ae as ConversationResponse, af as ConversationUsageResponse, ai as CreateWorkRequest, aj as CreateWorkflowRequest, ak as DEFAULT_AI_USD_PER_GBP, al as DOC_TERMINAL_STATUSES, am as DRIVE_SYNC_VENDORS, an as Database, ao as DatabaseAggregateRequest, ap as DatabaseAggregateResult, aq as DatabaseColumn, ar as DatabaseColumnWrite, as as DatabaseImportResult, at as DatabaseRow, au as DatabaseRowPage, av as DatabaseRowsQuery, aw as DateTimeSpec, ax as DecryptedChat, ay as DecryptedChatMessage, az as DeploymentHouseTemplate, aA as DocInfo, aB as DocInfoMap, aC as DocNameMap, aD as DocumentAutomationAction, aE as DocumentListFields, aF as DocumentListOrder, aG as DocumentSelector, aH as DocumentWaiter, aI as DocumentWaiterOptions, aJ as DriveSyncProgress, aK as DriveSyncSummary, aL as DuplicateContactError, aM as ENTITY_KINDS, aN as EditScope, aO as EntityKind, aP as EventCreateBody, aQ as EventPatchBody, aR as FLAT_TAG_KINDS, aV as FindTimeParams, aW as FormattedWsMessage, aX as FreeBusyEntry, aY as FullContextSelection, aZ as GOOGLE_VENDORS, a_ as HolidayCountry, a$ as HouseTemplateCandidate, b0 as IMANAGE_VENDORS, b1 as IdentityErrorCode, b2 as IdentityPurchase, b3 as IdentityState, b4 as IdentityStatus, b5 as ImportResult, b6 as InvitationRead, b7 as JsonSchemaOutputFormat, b8 as LinkedRun, b9 as ListAllOptions, ba as ListEventsParams, bc as ListPaginatedOptions, bd as MAILBOX_SYNC_VENDORS, be as MAX_RETRIEVE_DOC_IDS, bf as MICROSOFT_VENDORS, bh as MessageLevel, bi as OAuthAccountKind, bj as OutputItemDone, bk as OverlayItem, bl as OverlayLayerName, bm as PRESENCE_KINDS, bn as PROMPT_CONTEXT_CHARS, bo as ParsedSlashCommand, bp as ParsedStructuredResponse, bq as PendingAuthResponse, br as PersonKey, bs as PlanStepsError, bt as PlanWorkRequest, bu as ProductResponse, bv as ProjectAddonKind, bw as ProjectAddonSettingsRequest, bx as ProjectBudget, by as ProjectCheckoutRequest, bz as ProjectConversationUsageResponse, bA as ProjectCreateOptions, bB as ProjectDetails, bC as ProjectEventKind, bD as ProjectEventResponse, bE as ProjectInvoicesResponse, bF as ProjectNextPeriodAddonsRequest, bG as ProjectPlanChangeRequest, bH as ProjectQuoteRequest, bI as ProjectResponse, bJ as ProjectUpdateRequest, bK as ProjectUsageResponse, bL as PublicBookingError, bM as PublicBookingPage, bN as QuotaExceeded, bO as RaisedSignal, bP as RawResponseEvent, bQ as ReconnectOptions, bR as ReconnectableWsConnection, bS as ResolvedCitation, bT as ResolvedRecipient, bU as RespondParams, bV as RespondPartstat, bW as ResponseHandle, bX as ResponseSnapshot, bY as ResponseStart, bZ as ResponseStartOptions, b_ as ResponseTools, b$ as RoomCreateBody, c0 as RoomQuery, c1 as RoomRead, c2 as RunProgress, c3 as RunStats, c4 as RunStep, c5 as RunWaitingOn, c6 as SHAREPOINT_VENDORS, c7 as SSEEvent, c8 as SSEStreamCallbacks, c9 as SSEStreamOutcome, ca as SSEStreamResult, cb as STEP_FIELD_OPTION_TONES, cc as STOP_ID_WAIT_MS, cd as STOP_REPEAT_WINDOW_MS, cf as ScopedTarget, cg as SearchChunk, ch as SendBack, ci as ShareRead, cj as ShareRole, ck as SkillSummary, cm as SlackConnectionStatus, cn as StepActionRequest, co as StepActivityEvent, cp as StepAssignee, cq as StepDisplay, cr as StepField, cs as StepFieldOption, ct as StepFieldOptionTone, cu as StepKind, cv as StepPhase, cw as StepSignal, cx as StepSignalWhen, cy as StepState, cz as StepStatus, cA as SubagentBranchRecord, cB as SubagentLaneInfo, cC as SubmitBackgroundQueryOptions, cD as SubscribeParams, cE as SyncTriggerResult, cF as TAG_KINDS, cG as TAG_NESTING_MAX_DEPTH, cH as TagChange, cI as TagFieldDefinition, cJ as TagGroup, cK as TagKind, cL as TagKindField, cM as TagKindSchema, cN as TagLinks, cO as TagListQuery, cP as TagNode, cQ as TagResponse, cR as TagScope, cS as TagTreeRow, cT as TaskPlan, cU as TaskPlanStep, cV as TaxQuoteResponse, cW as Thread, cX as ThreadsResponse, cY as TimeSuggestion, cZ as TurnRequest, c_ as UpdateConversationRequest, d0 as UpdateWorkflowRequest, d4 as UploadDocumentsOptions, d6 as UploadProgressListener, d8 as UsageBreakdown, d9 as UserConnectorEntry, da as UserDailyUsageResponse, db as UserInfo, dc as WebSocketAuthError, dd as WeeklyHoursSpec, de as WorkStatus, df as WorkflowAuthMode, dg as WorkflowResponse, dh as WorkflowRunHistoryResponse, di as WorkflowRunResponse, dj as WorkspaceContext, dk as WorkspaceOpenResponse, dl as WorkspaceResponse, dm as WsConnection, dn as account, dp as agentconfig, dq as agents, dr as appendTranscriptionHints, ds as assistant, dt as authenticatedFetch, du as bookPublicSlot, dv as buildCitationChunkData, dw as buildDocNameMap, dx as buildDocumentTools, dy as buildFactsContextTool, dz as buildRetrievalChunkTool, dA as buildRetrievalFullContextTool, dB as buildRetrievalTocTool, dC as buildTurnRequest, dD as calendar, dE as calls, dF as canTagHaveParent, dG as cancelPublicBooking, dH as capabilities, dI as chats, dJ as composeConfiguration, dK as composeTools, dL as computeRunStats, dM as connectErrorMessage, dN as connectWebSocket, dO as connectWithReconnect, dP as connectors, dQ as contacts, dR as continuityPrompt, dS as conversations, dT as countCitations, dU as createAuthenticatedClient, dV as createDocumentWaiter, dW as createIndexAssigner, dX as databases, dY as defaultKindForFormat, dZ as doctags, d_ as documentTools, d$ as documents, e0 as estimateDraftTokens, e1 as extractDocumentIdsFromMessages, e2 as extractFactIdsFromMessages, e3 as extractSubagentLanes, e4 as facts, e5 as files, e6 as filterDocumentTags, e7 as filterSkills, e8 as findLeafForTaskMessage, e9 as findMainSiblingLeaf, ea as findReplyTarget, eb as findSubagentRunId, ec as flattenTagTree, ed as formatAgentStepLabel, ee as formatFileSize, ef as formatGbp, eg as formatGbpPerMillionTokens, eh as formatItemLabel, ei as formatStreamSummary, ej as formatTokens, ek as formatUserName, el as formatWorkspaceChoices, em as formatWsMessage, en as generateEncryptedWorkspaceKey, eo as generateNewWorkspaceKey, ep as getAgentStepLabel, eq as getAttachableRunId, er as getChildTags, es as getContextRemainingPercent, et as getContextUsedPercent, eu as getContextUsedTokens, ev as getCurrentStep, ew as getEligibleParentTags, ex as getErrorCode, ey as getErrorMessage, ez as getPublicBookingPage, eA as getRawWorkspaceKey, eB as getRunToAttach, eC as getRunToCancel, eD as getStepDisplay, eE as getStepTool, eF as getSubagentBranchRecord, eG as getTagDescendantIds, eH as health, eI as houseTemplates, eJ as hydrateAgentSteps, eL as identityErrorCode, eK as identityVerification, eM as instructions, eN as isAnnotationTag, eO as isConnectorVendorVisible, eP as isDriveSyncVendor, eQ as isEntityTag, eR as isFlatKind, eS as isLabelTag, eT as isMailboxSyncVendor, eU as isNearAiUsageBudget, eV as isPresenceTag, eW as isSharePointVendor, eX as isSharedSkill, eY as isTraceItem, eZ as mail, e_ as mcpTools, e$ as mergeAgentSteps, f0 as notifications, f1 as parseSSEEvents, f2 as parseSlashCommand, f3 as parseSlashTokenInProgress, f4 as parseStructuredResponse, f5 as performPasswordLogin, f6 as performSigningKeyLogin, f7 as performSsoDeviceFlowLogin, f8 as pickMainThread, f9 as profile, fa as progressFetch, fb as projects, fc as quotaExceededFrom, fd as quotaFromStreamError, fe as reduceOutputItem, ff as refusalReason, fg as requireData, fh as requireOk, fi as resolveAuth, fj as resolveCitations, fk as resolveSummary, fl as resolveWorkspace, fm as responses, fn as searchChunks, fo as selectFullContextDocument, fp as selectWorkspace, fq as selectWorkspaceById, fr as sessions, fs as settings, ft as signatureRequests, fu as sliceToSubagentThread, fv as streamSSE, fw as stripCitationMarkdown, fx as subagentJobLabel, fy as summarizeCitations, fz as tagUseCount, fA as tags, fB as tagsForScope, fC as tagsOfGroup, fD as topLevelAgentSteps, fE as uploadSkill, fF as usdToGbp, fG as work, fH as workflowSteps, fI as workflows, fJ as workspaces, fK as wouldCreateTagCycle } from './browser-2WIMhFQU.cjs';
3
3
  import { SessionPersistence, ArbiClient, components } from '@arbidocs/client';
4
4
  export { CallPeer, HttpErrorInfo, HttpRequestInfo, HttpResponseInfo, HttpTransportOptions, LoginProfile, SessionPersistence } from '@arbidocs/client';
5
5
  export { b as AgentStepEvent, d as ArtifactEvent, M as MailDraftSSEEvent, e as MessageMetadataPayload, f as MessageQueuedEvent, O as OutputTokensDetails, R as ResponseCompletedEvent, g as ResponseContentPartAddedEvent, h as ResponseCreatedEvent, i as ResponseFailedEvent, j as ResponseOutputItemAddedEvent, k as ResponseOutputItemDoneEvent, l as ResponseOutputTextDeltaEvent, m as ResponseOutputTextDoneEvent, n as ResponseUsage, S as SSEStreamStartData, T as TokenBudgetContext, U as UserInputRequestEvent, o as UserMessageEvent } from './sse-types-BbR7JG5o.cjs';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a1 as ConfigStore, _ as CliConfig, $ as CliCredentials, X as ChatSession, ce as SkippedFile, d0 as UploadResult, r as AuthHeaders, cW as UploadBatchResult, c_ as UploadOptions, cX as UploadDirectOptions, cY as UploadDirectResult, c7 as SUPPORTED_EXTENSIONS, bb as MailAttachment, P as ChatCryptoContext } from './browser-H9ziI77P.js';
2
- export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiTransportError, l as ArbiWorkspaceChangedError, m as ArbiWorkspaceSupersededError, n as AskHandlers, o as AskRequest, p as AttendeeRead, q as AuthContext, s as AuthMode, t as AuthenticatedClient, B as BookingConfirmation, u as BookingPage, v as BookingPageWriteBody, w as BookingRequestBody, x as BridgeTokensOptions, C as CalDavConnectBody, y as CalDavProfile, z as CalendarAccount, D as CalendarAccountKind, E as CalendarCreateBody, F as CalendarEvent, G as CalendarKeys, H as CalendarRead, I as CalendarSettings, J as CalendarSettingsBody, K as CalendarUpdate, L as CalendarWindow, M as CallApiError, N as ChatAttachmentFile, O as ChatAttachmentInput, Q as ChatKeyRing, R as ChatKind, S as ChatMemberKey, T as ChatMemberResponse, U as ChatMessage, V as ChatMessageResponse, W as ChatResponse, Y as CitationSummary, Z as CitationToolSources, a0 as CommandDescriptor, a2 as ConnectOptions, a3 as ConnectorCatalogEntry, a4 as ConnectorFolder, a5 as ConnectorSyncProgress, a6 as ConnectorSyncStatus, a7 as ConnectorVendorKey, a8 as ConnectorVisibilitySettings, a9 as ContextUsage, aa as ConversationResponse, ab as ConversationUsageResponse, ae as CreateWorkRequest, af as CreateWorkflowRequest, ag as DEFAULT_AI_USD_PER_GBP, ah as DOC_TERMINAL_STATUSES, ai as DRIVE_SYNC_VENDORS, aj as Database, ak as DatabaseAggregateRequest, al as DatabaseAggregateResult, am as DatabaseColumn, an as DatabaseColumnWrite, ao as DatabaseImportResult, ap as DatabaseRow, aq as DatabaseRowPage, ar as DatabaseRowsQuery, as as DateTimeSpec, at as DecryptedChat, au as DecryptedChatMessage, av as DeploymentHouseTemplate, aw as DocInfo, ax as DocInfoMap, ay as DocNameMap, az as DocumentAutomationAction, aA as DocumentListFields, aB as DocumentListOrder, aC as DocumentSelector, aD as DocumentWaiter, aE as DocumentWaiterOptions, aF as DriveSyncProgress, aG as DriveSyncSummary, aH as DuplicateContactError, aI as ENTITY_KINDS, aJ as EditScope, aK as EntityKind, aL as EventCreateBody, aM as EventPatchBody, aN as FLAT_TAG_KINDS, aR as FindTimeParams, aS as FormattedWsMessage, aT as FreeBusyEntry, aU as FullContextSelection, aV as GOOGLE_VENDORS, aW as HolidayCountry, aX as HouseTemplateCandidate, aY as IMANAGE_VENDORS, aZ as IdentityErrorCode, a_ as IdentityPurchase, a$ as IdentityState, b0 as IdentityStatus, b1 as ImportResult, b2 as InvitationRead, b3 as LinkedRun, b4 as ListAllOptions, b5 as ListEventsParams, b7 as ListPaginatedOptions, b8 as MAILBOX_SYNC_VENDORS, b9 as MAX_RETRIEVE_DOC_IDS, ba as MICROSOFT_VENDORS, bc as MessageLevel, bd as OAuthAccountKind, be as OutputItemDone, bf as OverlayItem, bg as OverlayLayerName, bh as PRESENCE_KINDS, bi as PROMPT_CONTEXT_CHARS, bj as ParsedSlashCommand, bk as PendingAuthResponse, bl as PersonKey, bm as PlanStepsError, bn as PlanWorkRequest, bo as ProductResponse, bp as ProjectAddonKind, bq as ProjectAddonSettingsRequest, br as ProjectBudget, bs as ProjectCheckoutRequest, bt as ProjectConversationUsageResponse, bu as ProjectCreateOptions, bv as ProjectDetails, bw as ProjectEventKind, bx as ProjectEventResponse, by as ProjectInvoicesResponse, bz as ProjectNextPeriodAddonsRequest, bA as ProjectPlanChangeRequest, bB as ProjectQuoteRequest, bC as ProjectResponse, bD as ProjectUpdateRequest, bE as ProjectUsageResponse, bF as PublicBookingError, bG as PublicBookingPage, bH as QuotaExceeded, bI as RaisedSignal, bJ as RawResponseEvent, bK as ReconnectOptions, bL as ReconnectableWsConnection, bM as ResolvedCitation, bN as ResolvedRecipient, bO as RespondParams, bP as RespondPartstat, bQ as ResponseHandle, bR as ResponseSnapshot, bS as ResponseStart, bT as ResponseStartOptions, bU as RoomCreateBody, bV as RoomQuery, bW as RoomRead, bX as RunProgress, bY as RunStats, bZ as RunStep, b_ as RunWaitingOn, b$ as SHAREPOINT_VENDORS, c0 as SSEEvent, c1 as SSEStreamCallbacks, c2 as SSEStreamOutcome, c3 as SSEStreamResult, c4 as STEP_FIELD_OPTION_TONES, c5 as STOP_ID_WAIT_MS, c6 as STOP_REPEAT_WINDOW_MS, c8 as ScopedTarget, c9 as SearchChunk, ca as SendBack, cb as ShareRead, cc as ShareRole, cd as SkillSummary, cf as SlackConnectionStatus, cg as StepActionRequest, ch as StepActivityEvent, ci as StepAssignee, cj as StepDisplay, ck as StepField, cl as StepFieldOption, cm as StepFieldOptionTone, cn as StepKind, co as StepPhase, cp as StepSignal, cq as StepSignalWhen, cr as StepState, cs as StepStatus, ct as SubagentBranchRecord, cu as SubagentLaneInfo, cv as SubmitBackgroundQueryOptions, cw as SubscribeParams, cx as SyncTriggerResult, cy as TAG_KINDS, cz as TAG_NESTING_MAX_DEPTH, cA as TagChange, cB as TagFieldDefinition, cC as TagGroup, cD as TagKind, cE as TagKindField, cF as TagKindSchema, cG as TagLinks, cH as TagListQuery, cI as TagNode, cJ as TagResponse, cK as TagScope, cL as TagTreeRow, cM as TaskPlan, cN as TaskPlanStep, cO as TaxQuoteResponse, cP as Thread, cQ as ThreadsResponse, cR as TimeSuggestion, cS as TurnRequest, cT as UpdateConversationRequest, cV as UpdateWorkflowRequest, cZ as UploadDocumentsOptions, c$ as UploadProgressListener, d1 as UsageBreakdown, d2 as UserConnectorEntry, d3 as UserDailyUsageResponse, d4 as UserInfo, d5 as WebSocketAuthError, d6 as WeeklyHoursSpec, d7 as WorkStatus, d8 as WorkflowAuthMode, d9 as WorkflowResponse, da as WorkflowRunHistoryResponse, db as WorkflowRunResponse, dc as WorkspaceContext, dd as WorkspaceOpenResponse, de as WsConnection, df as account, dg as agentconfig, dh as agents, di as appendTranscriptionHints, dj as assistant, dk as authenticatedFetch, dl as bookPublicSlot, dm as buildCitationChunkData, dn as buildDocNameMap, dp as buildDocumentTools, dq as buildFactsContextTool, dr as buildRetrievalChunkTool, ds as buildRetrievalFullContextTool, dt as buildRetrievalTocTool, du as buildTurnRequest, dv as calendar, dw as calls, dx as canTagHaveParent, dy as cancelPublicBooking, dz as chats, dA as computeRunStats, dB as connectErrorMessage, dC as connectWebSocket, dD as connectWithReconnect, dE as connectors, dF as contacts, dG as continuityPrompt, dH as conversations, dI as countCitations, dJ as createAuthenticatedClient, dK as createDocumentWaiter, dL as createIndexAssigner, dM as databases, dN as defaultKindForFormat, dO as doctags, dP as documents, dQ as estimateDraftTokens, dR as extractDocumentIdsFromMessages, dS as extractFactIdsFromMessages, dT as extractSubagentLanes, dU as facts, dV as files, dW as filterDocumentTags, dX as filterSkills, dY as findLeafForTaskMessage, dZ as findMainSiblingLeaf, d_ as findReplyTarget, d$ as findSubagentRunId, e0 as flattenTagTree, e1 as formatAgentStepLabel, e2 as formatFileSize, e3 as formatGbp, e4 as formatGbpPerMillionTokens, e5 as formatItemLabel, e6 as formatStreamSummary, e7 as formatTokens, e8 as formatUserName, e9 as formatWorkspaceChoices, ea as formatWsMessage, eb as generateEncryptedWorkspaceKey, ec as generateNewWorkspaceKey, ed as getAgentStepLabel, ee as getAttachableRunId, ef as getChildTags, eg as getContextRemainingPercent, eh as getContextUsedPercent, ei as getContextUsedTokens, ej as getCurrentStep, ek as getEligibleParentTags, el as getErrorCode, em as getErrorMessage, en as getPublicBookingPage, eo as getRawWorkspaceKey, ep as getRunToAttach, eq as getRunToCancel, er as getStepDisplay, es as getStepTool, et as getSubagentBranchRecord, eu as getTagDescendantIds, ev as health, ew as houseTemplates, ex as hydrateAgentSteps, ez as identityErrorCode, ey as identityVerification, eA as isAnnotationTag, eB as isConnectorVendorVisible, eC as isDriveSyncVendor, eD as isEntityTag, eE as isFlatKind, eF as isLabelTag, eG as isMailboxSyncVendor, eH as isNearAiUsageBudget, eI as isPresenceTag, eJ as isSharePointVendor, eK as isSharedSkill, eL as isTraceItem, eM as mail, eN as mergeAgentSteps, eO as notifications, eP as parseSSEEvents, eQ as parseSlashCommand, eR as parseSlashTokenInProgress, eS as performPasswordLogin, eT as performSigningKeyLogin, eU as performSsoDeviceFlowLogin, eV as pickMainThread, eW as profile, eX as progressFetch, eY as projects, eZ as quotaExceededFrom, e_ as quotaFromStreamError, e$ as reduceOutputItem, f0 as refusalReason, f1 as requireData, f2 as requireOk, f3 as resolveAuth, f4 as resolveCitations, f5 as resolveSummary, f6 as resolveWorkspace, f7 as responses, f8 as searchChunks, f9 as selectFullContextDocument, fa as selectWorkspace, fb as selectWorkspaceById, fc as sessions, fd as settings, fe as signatureRequests, ff as sliceToSubagentThread, fg as streamSSE, fh as stripCitationMarkdown, fi as subagentJobLabel, fj as summarizeCitations, fk as tagUseCount, fl as tags, fm as tagsForScope, fn as tagsOfGroup, fo as topLevelAgentSteps, fp as uploadSkill, fq as usdToGbp, fr as work, fs as workflowSteps, ft as workflows, fu as workspaces, fv as wouldCreateTagCycle } from './browser-H9ziI77P.js';
1
+ import { a3 as ConfigStore, a0 as CliConfig, a1 as CliCredentials, Z as ChatSession, cl as SkippedFile, d7 as UploadResult, s as AuthHeaders, d1 as UploadBatchResult, d5 as UploadOptions, d2 as UploadDirectOptions, d3 as UploadDirectResult, ce as SUPPORTED_EXTENSIONS, bg as MailAttachment, R as ChatCryptoContext } from './browser-CKSVXWvq.js';
2
+ export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiStructuredOutputError, l as ArbiTransportError, m as ArbiWorkspaceChangedError, n as ArbiWorkspaceSupersededError, o as AskHandlers, p as AskRequest, q as AttendeeRead, r as AuthContext, t as AuthMode, u as AuthenticatedClient, B as BookingConfirmation, v as BookingPage, w as BookingPageWriteBody, x as BookingRequestBody, y as BridgeTokensOptions, C as CalDavConnectBody, z as CalDavProfile, D as CalendarAccount, E as CalendarAccountKind, F as CalendarCreateBody, G as CalendarEvent, H as CalendarKeys, I as CalendarRead, J as CalendarSettings, K as CalendarSettingsBody, L as CalendarUpdate, M as CalendarWindow, N as CallApiError, O as Capabilities, P as ChatAttachmentFile, Q as ChatAttachmentInput, S as ChatKeyRing, T as ChatKind, U as ChatMemberKey, V as ChatMemberResponse, W as ChatMessage, X as ChatMessageResponse, Y as ChatResponse, _ as CitationSummary, $ as CitationToolSources, a2 as CommandDescriptor, a4 as Configuration, a5 as ConfigurationPatch, a6 as ConnectOptions, a7 as ConnectorCatalogEntry, a8 as ConnectorFolder, a9 as ConnectorSyncProgress, aa as ConnectorSyncStatus, ab as ConnectorVendorKey, ac as ConnectorVisibilitySettings, ad as ContextUsage, ae as ConversationResponse, af as ConversationUsageResponse, ai as CreateWorkRequest, aj as CreateWorkflowRequest, ak as DEFAULT_AI_USD_PER_GBP, al as DOC_TERMINAL_STATUSES, am as DRIVE_SYNC_VENDORS, an as Database, ao as DatabaseAggregateRequest, ap as DatabaseAggregateResult, aq as DatabaseColumn, ar as DatabaseColumnWrite, as as DatabaseImportResult, at as DatabaseRow, au as DatabaseRowPage, av as DatabaseRowsQuery, aw as DateTimeSpec, ax as DecryptedChat, ay as DecryptedChatMessage, az as DeploymentHouseTemplate, aA as DocInfo, aB as DocInfoMap, aC as DocNameMap, aD as DocumentAutomationAction, aE as DocumentListFields, aF as DocumentListOrder, aG as DocumentSelector, aH as DocumentWaiter, aI as DocumentWaiterOptions, aJ as DriveSyncProgress, aK as DriveSyncSummary, aL as DuplicateContactError, aM as ENTITY_KINDS, aN as EditScope, aO as EntityKind, aP as EventCreateBody, aQ as EventPatchBody, aR as FLAT_TAG_KINDS, aV as FindTimeParams, aW as FormattedWsMessage, aX as FreeBusyEntry, aY as FullContextSelection, aZ as GOOGLE_VENDORS, a_ as HolidayCountry, a$ as HouseTemplateCandidate, b0 as IMANAGE_VENDORS, b1 as IdentityErrorCode, b2 as IdentityPurchase, b3 as IdentityState, b4 as IdentityStatus, b5 as ImportResult, b6 as InvitationRead, b7 as JsonSchemaOutputFormat, b8 as LinkedRun, b9 as ListAllOptions, ba as ListEventsParams, bc as ListPaginatedOptions, bd as MAILBOX_SYNC_VENDORS, be as MAX_RETRIEVE_DOC_IDS, bf as MICROSOFT_VENDORS, bh as MessageLevel, bi as OAuthAccountKind, bj as OutputItemDone, bk as OverlayItem, bl as OverlayLayerName, bm as PRESENCE_KINDS, bn as PROMPT_CONTEXT_CHARS, bo as ParsedSlashCommand, bp as ParsedStructuredResponse, bq as PendingAuthResponse, br as PersonKey, bs as PlanStepsError, bt as PlanWorkRequest, bu as ProductResponse, bv as ProjectAddonKind, bw as ProjectAddonSettingsRequest, bx as ProjectBudget, by as ProjectCheckoutRequest, bz as ProjectConversationUsageResponse, bA as ProjectCreateOptions, bB as ProjectDetails, bC as ProjectEventKind, bD as ProjectEventResponse, bE as ProjectInvoicesResponse, bF as ProjectNextPeriodAddonsRequest, bG as ProjectPlanChangeRequest, bH as ProjectQuoteRequest, bI as ProjectResponse, bJ as ProjectUpdateRequest, bK as ProjectUsageResponse, bL as PublicBookingError, bM as PublicBookingPage, bN as QuotaExceeded, bO as RaisedSignal, bP as RawResponseEvent, bQ as ReconnectOptions, bR as ReconnectableWsConnection, bS as ResolvedCitation, bT as ResolvedRecipient, bU as RespondParams, bV as RespondPartstat, bW as ResponseHandle, bX as ResponseSnapshot, bY as ResponseStart, bZ as ResponseStartOptions, b_ as ResponseTools, b$ as RoomCreateBody, c0 as RoomQuery, c1 as RoomRead, c2 as RunProgress, c3 as RunStats, c4 as RunStep, c5 as RunWaitingOn, c6 as SHAREPOINT_VENDORS, c7 as SSEEvent, c8 as SSEStreamCallbacks, c9 as SSEStreamOutcome, ca as SSEStreamResult, cb as STEP_FIELD_OPTION_TONES, cc as STOP_ID_WAIT_MS, cd as STOP_REPEAT_WINDOW_MS, cf as ScopedTarget, cg as SearchChunk, ch as SendBack, ci as ShareRead, cj as ShareRole, ck as SkillSummary, cm as SlackConnectionStatus, cn as StepActionRequest, co as StepActivityEvent, cp as StepAssignee, cq as StepDisplay, cr as StepField, cs as StepFieldOption, ct as StepFieldOptionTone, cu as StepKind, cv as StepPhase, cw as StepSignal, cx as StepSignalWhen, cy as StepState, cz as StepStatus, cA as SubagentBranchRecord, cB as SubagentLaneInfo, cC as SubmitBackgroundQueryOptions, cD as SubscribeParams, cE as SyncTriggerResult, cF as TAG_KINDS, cG as TAG_NESTING_MAX_DEPTH, cH as TagChange, cI as TagFieldDefinition, cJ as TagGroup, cK as TagKind, cL as TagKindField, cM as TagKindSchema, cN as TagLinks, cO as TagListQuery, cP as TagNode, cQ as TagResponse, cR as TagScope, cS as TagTreeRow, cT as TaskPlan, cU as TaskPlanStep, cV as TaxQuoteResponse, cW as Thread, cX as ThreadsResponse, cY as TimeSuggestion, cZ as TurnRequest, c_ as UpdateConversationRequest, d0 as UpdateWorkflowRequest, d4 as UploadDocumentsOptions, d6 as UploadProgressListener, d8 as UsageBreakdown, d9 as UserConnectorEntry, da as UserDailyUsageResponse, db as UserInfo, dc as WebSocketAuthError, dd as WeeklyHoursSpec, de as WorkStatus, df as WorkflowAuthMode, dg as WorkflowResponse, dh as WorkflowRunHistoryResponse, di as WorkflowRunResponse, dj as WorkspaceContext, dk as WorkspaceOpenResponse, dl as WorkspaceResponse, dm as WsConnection, dn as account, dp as agentconfig, dq as agents, dr as appendTranscriptionHints, ds as assistant, dt as authenticatedFetch, du as bookPublicSlot, dv as buildCitationChunkData, dw as buildDocNameMap, dx as buildDocumentTools, dy as buildFactsContextTool, dz as buildRetrievalChunkTool, dA as buildRetrievalFullContextTool, dB as buildRetrievalTocTool, dC as buildTurnRequest, dD as calendar, dE as calls, dF as canTagHaveParent, dG as cancelPublicBooking, dH as capabilities, dI as chats, dJ as composeConfiguration, dK as composeTools, dL as computeRunStats, dM as connectErrorMessage, dN as connectWebSocket, dO as connectWithReconnect, dP as connectors, dQ as contacts, dR as continuityPrompt, dS as conversations, dT as countCitations, dU as createAuthenticatedClient, dV as createDocumentWaiter, dW as createIndexAssigner, dX as databases, dY as defaultKindForFormat, dZ as doctags, d_ as documentTools, d$ as documents, e0 as estimateDraftTokens, e1 as extractDocumentIdsFromMessages, e2 as extractFactIdsFromMessages, e3 as extractSubagentLanes, e4 as facts, e5 as files, e6 as filterDocumentTags, e7 as filterSkills, e8 as findLeafForTaskMessage, e9 as findMainSiblingLeaf, ea as findReplyTarget, eb as findSubagentRunId, ec as flattenTagTree, ed as formatAgentStepLabel, ee as formatFileSize, ef as formatGbp, eg as formatGbpPerMillionTokens, eh as formatItemLabel, ei as formatStreamSummary, ej as formatTokens, ek as formatUserName, el as formatWorkspaceChoices, em as formatWsMessage, en as generateEncryptedWorkspaceKey, eo as generateNewWorkspaceKey, ep as getAgentStepLabel, eq as getAttachableRunId, er as getChildTags, es as getContextRemainingPercent, et as getContextUsedPercent, eu as getContextUsedTokens, ev as getCurrentStep, ew as getEligibleParentTags, ex as getErrorCode, ey as getErrorMessage, ez as getPublicBookingPage, eA as getRawWorkspaceKey, eB as getRunToAttach, eC as getRunToCancel, eD as getStepDisplay, eE as getStepTool, eF as getSubagentBranchRecord, eG as getTagDescendantIds, eH as health, eI as houseTemplates, eJ as hydrateAgentSteps, eL as identityErrorCode, eK as identityVerification, eM as instructions, eN as isAnnotationTag, eO as isConnectorVendorVisible, eP as isDriveSyncVendor, eQ as isEntityTag, eR as isFlatKind, eS as isLabelTag, eT as isMailboxSyncVendor, eU as isNearAiUsageBudget, eV as isPresenceTag, eW as isSharePointVendor, eX as isSharedSkill, eY as isTraceItem, eZ as mail, e_ as mcpTools, e$ as mergeAgentSteps, f0 as notifications, f1 as parseSSEEvents, f2 as parseSlashCommand, f3 as parseSlashTokenInProgress, f4 as parseStructuredResponse, f5 as performPasswordLogin, f6 as performSigningKeyLogin, f7 as performSsoDeviceFlowLogin, f8 as pickMainThread, f9 as profile, fa as progressFetch, fb as projects, fc as quotaExceededFrom, fd as quotaFromStreamError, fe as reduceOutputItem, ff as refusalReason, fg as requireData, fh as requireOk, fi as resolveAuth, fj as resolveCitations, fk as resolveSummary, fl as resolveWorkspace, fm as responses, fn as searchChunks, fo as selectFullContextDocument, fp as selectWorkspace, fq as selectWorkspaceById, fr as sessions, fs as settings, ft as signatureRequests, fu as sliceToSubagentThread, fv as streamSSE, fw as stripCitationMarkdown, fx as subagentJobLabel, fy as summarizeCitations, fz as tagUseCount, fA as tags, fB as tagsForScope, fC as tagsOfGroup, fD as topLevelAgentSteps, fE as uploadSkill, fF as usdToGbp, fG as work, fH as workflowSteps, fI as workflows, fJ as workspaces, fK as wouldCreateTagCycle } from './browser-CKSVXWvq.js';
3
3
  import { SessionPersistence, ArbiClient, components } from '@arbidocs/client';
4
4
  export { CallPeer, HttpErrorInfo, HttpRequestInfo, HttpResponseInfo, HttpTransportOptions, LoginProfile, SessionPersistence } from '@arbidocs/client';
5
5
  export { b as AgentStepEvent, d as ArtifactEvent, M as MailDraftSSEEvent, e as MessageMetadataPayload, f as MessageQueuedEvent, O as OutputTokensDetails, R as ResponseCompletedEvent, g as ResponseContentPartAddedEvent, h as ResponseCreatedEvent, i as ResponseFailedEvent, j as ResponseOutputItemAddedEvent, k as ResponseOutputItemDoneEvent, l as ResponseOutputTextDeltaEvent, m as ResponseOutputTextDoneEvent, n as ResponseUsage, S as SSEStreamStartData, T as TokenBudgetContext, U as UserInputRequestEvent, o as UserMessageEvent } from './sse-types-BbR7JG5o.js';
package/dist/index.js CHANGED
@@ -5156,6 +5156,116 @@ function buildChunkLookup(tools) {
5156
5156
  return lookup;
5157
5157
  }
5158
5158
 
5159
+ // src/structured-output.ts
5160
+ var ArbiStructuredOutputError = class extends ArbiError {
5161
+ constructor(message, response, options) {
5162
+ const id = response && typeof response === "object" && "id" in response && typeof response.id === "string" ? response.id : void 0;
5163
+ super(message, { responseId: id, ...options });
5164
+ this.response = response;
5165
+ this.name = "ArbiStructuredOutputError";
5166
+ }
5167
+ response;
5168
+ };
5169
+ function localReferences(value) {
5170
+ if (Array.isArray(value)) {
5171
+ value.forEach(localReferences);
5172
+ return;
5173
+ }
5174
+ if (!value || typeof value !== "object") return;
5175
+ for (const [key, child] of Object.entries(value)) {
5176
+ if ((key === "$ref" || key === "$dynamicRef") && (typeof child !== "string" || !child.startsWith("#")))
5177
+ throw new Error("Only local schema references are supported.");
5178
+ if (!["enum", "const", "default", "examples"].includes(key)) localReferences(child);
5179
+ }
5180
+ }
5181
+ async function createStructuredParser(format) {
5182
+ let validate;
5183
+ let Constructor;
5184
+ try {
5185
+ Constructor = (await import('ajv/dist/2020.js')).default;
5186
+ } catch (cause) {
5187
+ throw new ArbiStructuredOutputError(
5188
+ "The JSON Schema validator could not be loaded.",
5189
+ void 0,
5190
+ { code: "STRUCTURED_OUTPUT_VALIDATOR_UNAVAILABLE", cause }
5191
+ );
5192
+ }
5193
+ try {
5194
+ if (format.type !== "json_schema" || typeof format.name !== "string" || !/^[a-zA-Z0-9_-]{1,64}$/.test(format.name) || !format.schema || typeof format.schema !== "object" || Array.isArray(format.schema))
5195
+ throw new Error("Invalid structured output format.");
5196
+ if (format.schema.$schema !== void 0 && format.schema.$schema !== "https://json-schema.org/draft/2020-12/schema")
5197
+ throw new Error("Expected JSON Schema draft 2020-12.");
5198
+ localReferences(format.schema);
5199
+ validate = new Constructor({
5200
+ strict: false,
5201
+ logger: false,
5202
+ validateFormats: false,
5203
+ strictNumbers: true,
5204
+ addUsedSchema: false
5205
+ }).compile(format.schema);
5206
+ } catch (cause) {
5207
+ const unavailable = cause instanceof EvalError;
5208
+ throw new ArbiStructuredOutputError(
5209
+ unavailable ? "This runtime cannot compile JSON Schema validators." : "Invalid or unsupported output schema.",
5210
+ void 0,
5211
+ {
5212
+ code: unavailable ? "STRUCTURED_OUTPUT_VALIDATOR_UNAVAILABLE" : "STRUCTURED_OUTPUT_SCHEMA_INVALID",
5213
+ cause
5214
+ }
5215
+ );
5216
+ }
5217
+ return (response, options = {}) => {
5218
+ const fail = (code, message, cause) => {
5219
+ throw new ArbiStructuredOutputError(message, response, { ...options, code, cause });
5220
+ };
5221
+ if (!response || typeof response !== "object")
5222
+ fail("RESPONSE_INVALID_ENVELOPE", "Expected a Responses JSON object.");
5223
+ if (response.status === "incomplete")
5224
+ fail("RESPONSE_INCOMPLETE", "The response is incomplete; no validated data is available.");
5225
+ if (response.status === "cancelled")
5226
+ fail("RESPONSE_CANCELLED", "The response was cancelled; no validated data is available.");
5227
+ if (response.status === "failed")
5228
+ fail(
5229
+ typeof response.error?.code === "string" ? response.error.code : "RESPONSE_FAILED",
5230
+ typeof response.error?.message === "string" ? response.error.message : "The response failed."
5231
+ );
5232
+ if (response.status !== "completed")
5233
+ fail(
5234
+ "RESPONSE_NOT_COMPLETED",
5235
+ "Wait for a completed response before parsing structured output."
5236
+ );
5237
+ const messages = Array.isArray(response.output) ? response.output.filter(
5238
+ (item) => item && typeof item === "object" && item.type === "message" && item.role === "assistant"
5239
+ ) : [];
5240
+ if (messages.some(
5241
+ (message) => !Array.isArray(message.content) || message.content.some((part) => !part || typeof part !== "object")
5242
+ ))
5243
+ fail("RESPONSE_INVALID_ENVELOPE", "Invalid assistant output content.");
5244
+ if (messages.some((message) => message.content.some((part) => part.type === "refusal")))
5245
+ fail("RESPONSE_REFUSED", "The model refused this response.");
5246
+ const answers = messages.map(
5247
+ (message) => message.content.filter((part) => part.type === "output_text" && typeof part.text === "string").map((part) => part.text).join("")
5248
+ ).filter((answer) => answer.length > 0);
5249
+ if (answers.length !== 1)
5250
+ fail(
5251
+ "STRUCTURED_OUTPUT_AMBIGUOUS",
5252
+ "Expected one final assistant output message; narrative and answer text are not joined."
5253
+ );
5254
+ let data;
5255
+ try {
5256
+ data = JSON.parse(answers[0]);
5257
+ } catch (cause) {
5258
+ fail("STRUCTURED_OUTPUT_INVALID_JSON", "The response is not valid JSON.", cause);
5259
+ }
5260
+ if (!validate(data))
5261
+ fail("STRUCTURED_OUTPUT_INVALID", "The response did not match the requested JSON schema.");
5262
+ return { data, response };
5263
+ };
5264
+ }
5265
+ async function parseStructuredResponse(response, format) {
5266
+ return (await createStructuredParser(format))(response);
5267
+ }
5268
+
5159
5269
  // src/response-handle.ts
5160
5270
  var object = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
5161
5271
  var text = (value) => typeof value === "string" ? value : void 0;
@@ -6656,6 +6766,7 @@ function buildTurnRequest(request) {
6656
6766
  ...request.previousResponseId ? { previous_response_id: request.previousResponseId } : {},
6657
6767
  ...request.conversationId ? { conversation_ext_id: request.conversationId } : {},
6658
6768
  ...request.model && !pa2 ? { model: request.model } : {},
6769
+ ...request.text ? { text: request.text } : {},
6659
6770
  ...activeArtifactExtId ? { active_artifact_ext_id: activeArtifactExtId } : {},
6660
6771
  ...request.bindDocumentId && !request.previousResponseId && !pa2 ? { bound_document_ext_id: request.bindDocumentId } : {},
6661
6772
  ...request.mentions && request.mentions.length > 0 ? { mentions: request.mentions } : {},
@@ -6943,6 +7054,7 @@ async function submitBackgroundQuery(options) {
6943
7054
  docIds,
6944
7055
  previousResponseId,
6945
7056
  model,
7057
+ text: text2,
6946
7058
  task,
6947
7059
  conversationId,
6948
7060
  mentions,
@@ -6978,7 +7090,8 @@ async function submitBackgroundQuery(options) {
6978
7090
  ...mentions !== void 0 ? { mentions } : {},
6979
7091
  ...activeArtifactExtId ? { active_artifact_ext_id: activeArtifactExtId } : {},
6980
7092
  ...previousResponseId ? { previous_response_id: previousResponseId } : {},
6981
- ...model ? { model } : {}
7093
+ ...model ? { model } : {},
7094
+ ...text2 ? { text: text2 } : {}
6982
7095
  };
6983
7096
  const res = await authenticatedFetch({
6984
7097
  ...auth,
@@ -12282,8 +12395,90 @@ var Arbi = class {
12282
12395
  throw error;
12283
12396
  }
12284
12397
  }
12398
+ /** Canonical Responses-shaped requests; existing assistant convenience helpers remain supported. */
12399
+ responses = {
12400
+ create: async (request, options = {}) => {
12401
+ const response = await this.recovering(
12402
+ () => openTurnStream(
12403
+ this.getAuthHeaders(),
12404
+ {
12405
+ ...request,
12406
+ workspace_ext_id: request.workspace_ext_id ?? this.requireWorkspace(),
12407
+ stream: false,
12408
+ background: request.background ?? false,
12409
+ store: request.store ?? true
12410
+ },
12411
+ options.signal
12412
+ )
12413
+ );
12414
+ let body;
12415
+ try {
12416
+ body = await response.text();
12417
+ } catch (cause) {
12418
+ throw transportError(cause);
12419
+ }
12420
+ try {
12421
+ return JSON.parse(body);
12422
+ } catch (cause) {
12423
+ throw new ArbiError("Expected a Responses JSON object.", {
12424
+ code: "RESPONSE_INVALID_ENVELOPE",
12425
+ cause,
12426
+ requestId: response.headers.get("x-request-id") ?? void 0
12427
+ });
12428
+ }
12429
+ },
12430
+ stream: (request, options = {}) => this.openResponseHandle(
12431
+ (signal) => openTurnStream(
12432
+ this.getAuthHeaders(),
12433
+ {
12434
+ ...request,
12435
+ workspace_ext_id: request.workspace_ext_id ?? this.requireWorkspace(),
12436
+ stream: true,
12437
+ background: false,
12438
+ store: request.store ?? true
12439
+ },
12440
+ signal
12441
+ ),
12442
+ options
12443
+ ),
12444
+ retrieve: (id) => this.assistant.getResponse(id),
12445
+ cancel: (id) => this.assistant.cancel(id),
12446
+ attach: (id, options = {}) => this.assistant.attachResponse(id, options)
12447
+ };
12285
12448
  // ── Assistant ─────────────────────────────────────────────────────────
12286
12449
  assistant = {
12450
+ /** Create one synchronous Responses result and return validated JSON alongside the raw response. */
12451
+ parseResponse: async (request, options = {}) => {
12452
+ const parse = await createStructuredParser(request.text.format);
12453
+ const body = {
12454
+ ...buildTurnRequest({
12455
+ ...request,
12456
+ workspaceId: request.workspaceId ?? this.requireWorkspace()
12457
+ }),
12458
+ stream: false,
12459
+ background: false
12460
+ };
12461
+ const response = await this.recovering(
12462
+ () => openTurnStream(this.getAuthHeaders(), body, options.signal)
12463
+ );
12464
+ let rawText;
12465
+ try {
12466
+ rawText = await response.text();
12467
+ } catch (cause) {
12468
+ throw transportError(cause);
12469
+ }
12470
+ let raw;
12471
+ try {
12472
+ raw = JSON.parse(rawText);
12473
+ } catch (cause) {
12474
+ throw new ArbiStructuredOutputError("Expected a Responses JSON object.", rawText, {
12475
+ code: "RESPONSE_INVALID_ENVELOPE",
12476
+ cause,
12477
+ requestId: response.headers.get("x-request-id") ?? void 0
12478
+ });
12479
+ }
12480
+ return parse(raw, { requestId: response.headers.get("x-request-id") ?? void 0 });
12481
+ },
12287
12482
  /** Start one response with a composable observer; existing ask callbacks remain unchanged. */
12288
12483
  startResponse: async (request, options = {}) => {
12289
12484
  const body = buildTurnRequest({
@@ -14921,6 +15116,55 @@ function getRunToAttach(localGeneration, messages) {
14921
15116
  return getAttachableRunId(messages);
14922
15117
  }
14923
15118
 
14924
- export { ACCOUNT_VENDOR, Arbi, ArbiApiError, ArbiError, ArbiSessionExpiredError, ArbiTransportError, ArbiWorkspaceChangedError, ArbiWorkspaceSupersededError, CallApiError, ClaudeOrchestrator, DEFAULT_AI_USD_PER_GBP, DOC_TERMINAL_STATUSES, DRIVE_SYNC_VENDORS, DuplicateContactError, ENTITY_KINDS, FLAT_TAG_KINDS, FileConfigStore, GOOGLE_VENDORS, IMANAGE_VENDORS, MAILBOX_SYNC_VENDORS, MAX_RETRIEVE_DOC_IDS, MICROSOFT_VENDORS, OpenClawOrchestrator, PRESENCE_KINDS, PROMPT_CONTEXT_CHARS, PlanStepsError, PublicBookingError, SHAREPOINT_VENDORS, STEP_FIELD_OPTION_TONES, STOP_ID_WAIT_MS, STOP_REPEAT_WINDOW_MS, TAG_KINDS, TAG_NESTING_MAX_DEPTH, WebSocketAuthError, account_exports as account, agentconfig_exports as agentconfig, agents_exports as agents, appendTranscriptionHints, assistant_exports as assistant, authenticatedFetch, bookPublicSlot, buildCitationChunkData, buildDocNameMap, buildDocumentTools, buildFactsContextTool, buildRetrievalChunkTool, buildRetrievalFullContextTool, buildRetrievalTocTool, buildTurnRequest, calendar_exports as calendar, calls_exports as calls, canTagHaveParent, cancelPublicBooking, chats_exports as chats, computeRunStats, connectErrorMessage, connectWebSocket, connectWithReconnect, connectors_exports as connectors, contacts_exports as contacts, continuityPrompt, conversations_exports as conversations, countCitations, createAuthenticatedClient, createDocumentWaiter, createIndexAssigner, databases_exports as databases, defaultKindForFormat, device_flow_exports as deviceFlow, doctags_exports as doctags, documents_exports as documents, documents_node_exports as documentsNode, estimateDraftTokens, extractDocumentIdsFromMessages, extractFactIdsFromMessages, extractSubagentLanes, facts_exports as facts, files_exports as files, filterDocumentTags, filterSkills, findLeafForTaskMessage, findMainSiblingLeaf, findReplyTarget, findSubagentRunId, firm_exports as firm, flattenTagTree, formatAgentStepLabel, formatFileSize, formatGbp, formatGbpPerMillionTokens, formatItemLabel, formatStreamSummary, formatTokens, formatUserName, formatWorkspaceChoices, formatWsMessage, generateEncryptedWorkspaceKey, generateNewWorkspaceKey, getAgentStepLabel, getAttachableRunId, getChildTags, getContextRemainingPercent, getContextUsedPercent, getContextUsedTokens, getCurrentStep, getEligibleParentTags, getErrorCode, getErrorMessage, getPublicBookingPage, getRawWorkspaceKey, getRunToAttach, getRunToCancel, getStepDisplay, getStepTool, getSubagentBranchRecord, getTagDescendantIds, health_exports as health, house_template_exports as houseTemplates, hydrateAgentSteps, identityErrorCode, identity_exports as identityVerification, isAnnotationTag, isConnectorVendorVisible, isDriveSyncVendor, isEntityTag, isFlatKind, isLabelTag, isMailboxSyncVendor, isNearAiUsageBudget, isPresenceTag, isSharePointVendor, isSharedSkill, isTraceItem, listen_exports as listen, mail_exports as mail, mail_node_exports as mailNode, mergeAgentSteps, notifications_exports as notifications, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, performPasswordLogin, performSigningKeyLogin, performSsoDeviceFlowLogin, pickMainThread, profile_exports as profile, progressFetch, projects_exports as projects, quotaExceededFrom, quotaFromStreamError, reduceOutputItem, refusalReason, requireData, requireOk, resolveAuth, resolveCitations, resolveSummary, resolveWorkspace, responses_exports as responses, searchChunks, selectFullContextDocument, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, signature_requests_exports as signatureRequests, sliceToSubagentThread, startDmListener, streamSSE, stripCitationMarkdown, subagentJobLabel, summarizeCitations, tagUseCount, tags_exports as tags, tagsForScope, tagsOfGroup, topLevelAgentSteps, uploadSkill, usdToGbp, work_exports as work, workflow_steps_exports as workflowSteps, workflows_exports as workflows, workspaces_exports as workspaces, wouldCreateTagCycle };
15119
+ // src/configuration.ts
15120
+ function composeConfiguration(base, ...patches) {
15121
+ const result = structuredClone(base);
15122
+ for (const patch of patches) {
15123
+ for (const [key, value] of Object.entries(patch)) {
15124
+ if (value === void 0) continue;
15125
+ result[key] = value && typeof value === "object" && !Array.isArray(value) ? { ...result[key] ?? {}, ...structuredClone(value) } : structuredClone(value);
15126
+ }
15127
+ }
15128
+ return result;
15129
+ }
15130
+ function instructions(text2) {
15131
+ return { QueryLLM: { SYSTEM_INSTRUCTION: text2 }, Agents: { PERSONA: text2 } };
15132
+ }
15133
+ function capabilities(options) {
15134
+ const flags = {
15135
+ webSearch: "WEB_SEARCH_ENABLED",
15136
+ codeExecution: "RUN_CODE_ENABLED",
15137
+ planning: "PLANNING_ENABLED",
15138
+ deepResearch: "DEEP_RESEARCH_ENABLED",
15139
+ subagents: "SUBAGENTS_ENABLED",
15140
+ humanInput: "HUMAN_IN_THE_LOOP"
15141
+ };
15142
+ const Agents = {};
15143
+ for (const key of Object.keys(flags)) {
15144
+ if (options[key] !== void 0) Agents[flags[key]] = options[key];
15145
+ }
15146
+ return { Agents };
15147
+ }
15148
+ function mcpTools(base, names, mode) {
15149
+ return {
15150
+ Agents: {
15151
+ MCP_TOOLS: [
15152
+ .../* @__PURE__ */ new Set([...mode === "add" ? base.Agents?.MCP_TOOLS ?? [] : [], ...names])
15153
+ ]
15154
+ }
15155
+ };
15156
+ }
15157
+ function documentTools(options) {
15158
+ return {
15159
+ ...options.search ? { retrieval_chunk: buildRetrievalChunkTool([...options.search]) } : {},
15160
+ ...options.fullContext ? { retrieval_full_context: buildRetrievalFullContextTool([...options.fullContext]) } : {},
15161
+ ...options.tableOfContents ? { retrieval_toc: buildRetrievalTocTool([...options.tableOfContents]) } : {}
15162
+ };
15163
+ }
15164
+ function composeTools(base, next, mode) {
15165
+ return structuredClone(mode === "add" ? { ...base, ...next } : next);
15166
+ }
15167
+
15168
+ export { ACCOUNT_VENDOR, Arbi, ArbiApiError, ArbiError, ArbiSessionExpiredError, ArbiStructuredOutputError, ArbiTransportError, ArbiWorkspaceChangedError, ArbiWorkspaceSupersededError, CallApiError, ClaudeOrchestrator, DEFAULT_AI_USD_PER_GBP, DOC_TERMINAL_STATUSES, DRIVE_SYNC_VENDORS, DuplicateContactError, ENTITY_KINDS, FLAT_TAG_KINDS, FileConfigStore, GOOGLE_VENDORS, IMANAGE_VENDORS, MAILBOX_SYNC_VENDORS, MAX_RETRIEVE_DOC_IDS, MICROSOFT_VENDORS, OpenClawOrchestrator, PRESENCE_KINDS, PROMPT_CONTEXT_CHARS, PlanStepsError, PublicBookingError, SHAREPOINT_VENDORS, STEP_FIELD_OPTION_TONES, STOP_ID_WAIT_MS, STOP_REPEAT_WINDOW_MS, TAG_KINDS, TAG_NESTING_MAX_DEPTH, WebSocketAuthError, account_exports as account, agentconfig_exports as agentconfig, agents_exports as agents, appendTranscriptionHints, assistant_exports as assistant, authenticatedFetch, bookPublicSlot, buildCitationChunkData, buildDocNameMap, buildDocumentTools, buildFactsContextTool, buildRetrievalChunkTool, buildRetrievalFullContextTool, buildRetrievalTocTool, buildTurnRequest, calendar_exports as calendar, calls_exports as calls, canTagHaveParent, cancelPublicBooking, capabilities, chats_exports as chats, composeConfiguration, composeTools, computeRunStats, connectErrorMessage, connectWebSocket, connectWithReconnect, connectors_exports as connectors, contacts_exports as contacts, continuityPrompt, conversations_exports as conversations, countCitations, createAuthenticatedClient, createDocumentWaiter, createIndexAssigner, databases_exports as databases, defaultKindForFormat, device_flow_exports as deviceFlow, doctags_exports as doctags, documentTools, documents_exports as documents, documents_node_exports as documentsNode, estimateDraftTokens, extractDocumentIdsFromMessages, extractFactIdsFromMessages, extractSubagentLanes, facts_exports as facts, files_exports as files, filterDocumentTags, filterSkills, findLeafForTaskMessage, findMainSiblingLeaf, findReplyTarget, findSubagentRunId, firm_exports as firm, flattenTagTree, formatAgentStepLabel, formatFileSize, formatGbp, formatGbpPerMillionTokens, formatItemLabel, formatStreamSummary, formatTokens, formatUserName, formatWorkspaceChoices, formatWsMessage, generateEncryptedWorkspaceKey, generateNewWorkspaceKey, getAgentStepLabel, getAttachableRunId, getChildTags, getContextRemainingPercent, getContextUsedPercent, getContextUsedTokens, getCurrentStep, getEligibleParentTags, getErrorCode, getErrorMessage, getPublicBookingPage, getRawWorkspaceKey, getRunToAttach, getRunToCancel, getStepDisplay, getStepTool, getSubagentBranchRecord, getTagDescendantIds, health_exports as health, house_template_exports as houseTemplates, hydrateAgentSteps, identityErrorCode, identity_exports as identityVerification, instructions, isAnnotationTag, isConnectorVendorVisible, isDriveSyncVendor, isEntityTag, isFlatKind, isLabelTag, isMailboxSyncVendor, isNearAiUsageBudget, isPresenceTag, isSharePointVendor, isSharedSkill, isTraceItem, listen_exports as listen, mail_exports as mail, mail_node_exports as mailNode, mcpTools, mergeAgentSteps, notifications_exports as notifications, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, parseStructuredResponse, performPasswordLogin, performSigningKeyLogin, performSsoDeviceFlowLogin, pickMainThread, profile_exports as profile, progressFetch, projects_exports as projects, quotaExceededFrom, quotaFromStreamError, reduceOutputItem, refusalReason, requireData, requireOk, resolveAuth, resolveCitations, resolveSummary, resolveWorkspace, responses_exports as responses, searchChunks, selectFullContextDocument, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, signature_requests_exports as signatureRequests, sliceToSubagentThread, startDmListener, streamSSE, stripCitationMarkdown, subagentJobLabel, summarizeCitations, tagUseCount, tags_exports as tags, tagsForScope, tagsOfGroup, topLevelAgentSteps, uploadSkill, usdToGbp, work_exports as work, workflow_steps_exports as workflowSteps, workflows_exports as workflows, workspaces_exports as workspaces, wouldCreateTagCycle };
14925
15169
  //# sourceMappingURL=index.js.map
14926
15170
  //# sourceMappingURL=index.js.map