@arbidocs/sdk 0.5.68 → 0.5.70

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.
@@ -1,3 +1,3 @@
1
- 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 ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AttendeeRead, s as AuthContext, t as AuthHeaders, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, S as ChatCryptoContext, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, _ as ChatSession, $ as CitationSummary, a0 as CitationToolSources, a1 as CliConfig, a2 as CliCredentials, a3 as CommandDescriptor, a4 as ConfigStore, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectionModel, a9 as ConnectorCatalogEntry, aa as ConnectorFolder, ab as ConnectorSyncProgress, ac as ConnectorSyncStatus, ad as ConnectorVendorKey, ae as ConnectorVisibilitySettings, af as ContextUsage, ag as ConversationResponse, ah as ConversationUsageResponse, ai as CreateFactRequest, aj as CreateFactsRequest, ak as CreateWorkRequest, al as CreateWorkflowRequest, am as DEFAULT_AI_USD_PER_GBP, ao as DRIVE_SYNC_VENDORS, ap as Database, aq as DatabaseAggregateRequest, ar as DatabaseAggregateResult, as as DatabaseColumn, at as DatabaseColumnWrite, au as DatabaseImportResult, av as DatabaseRow, aw as DatabaseRowPage, ax as DatabaseRowsQuery, ay as DateTimeSpec, aA as DecryptedChatMessage, aB as DeploymentHouseTemplate, aC as DirectModelUsage, aD as DocInfo, aE as DocInfoMap, aG as DocumentAutomationAction, aJ as DocumentSelector, aM as DriveSyncProgress, aN as DriveSyncSummary, aO as DuplicateContactError, aP as ENTITY_KINDS, aQ as EditScope, aR as EntityKind, aS as EventCreateBody, aT as EventPatchBody, aU as FLAT_TAG_KINDS, aV as FactResponse, aW as FactSearchRequest, aX as FactSearchResponse, aY as FindTimeParams, a_ as FreeBusyEntry, a$ as FullContextSelection, b0 as GOOGLE_VENDORS, b1 as HolidayCountry, b2 as HouseTemplateCandidate, b3 as IMANAGE_VENDORS, b4 as IdentityErrorCode, b5 as IdentityPurchase, b6 as IdentityState, b7 as IdentityStatus, b8 as ImportResult, b9 as InvitationRead, ba as JsonSchemaOutputFormat, bb as LinkedRun, bd as ListEventsParams, be as ListFactsOptions, bg as MAILBOX_SYNC_VENDORS, bh as MAX_RETRIEVE_DOC_IDS, bi as MICROSOFT_VENDORS, bl as ModelConnection, bm as OAuthAccountKind, bn as OutputItemDone, bo as OverlayItem, bp as OverlayLayerName, bq as PRESENCE_KINDS, br as PROMPT_CONTEXT_CHARS, bs as ParsedResponse, bt as ParsedSlashCommand, bu as ParsedStructuredResponse, bv as PendingAuthResponse, bw as PersonKey, bx as PersonalConnectionInput, by as PlanStepsError, bz as PlanWorkRequest, bA as ProductResponse, bB as ProjectAddonKind, bC as ProjectAddonSettingsRequest, bD as ProjectBudget, bE as ProjectCheckoutRequest, bF as ProjectConversationUsageResponse, bG as ProjectCreateOptions, bH as ProjectDetails, bI as ProjectEventKind, bJ as ProjectEventResponse, bK as ProjectInvoicesResponse, bL as ProjectNextPeriodAddonsRequest, bM as ProjectPlanChangeRequest, bN as ProjectQuoteRequest, bO as ProjectResponse, bP as ProjectUpdateRequest, bQ as ProjectUsageResponse, bR as PublicBookingError, bS as PublicBookingPage, bT as QuotaExceeded, bU as RaisedSignal, bV as RawResponseEvent, bW as ReconnectOptions, bX as ReconnectableWsConnection, bY as ResolvedCitation, b_ as RespondParams, b$ as RespondPartstat, c0 as Response, c1 as ResponseCreateRequest, c2 as ResponseCreateResult, c3 as ResponseHandle, c4 as ResponseSnapshot, c5 as ResponseStart, c6 as ResponseStartOptions, c7 as ResponseStream, c8 as ResponseStreamEvent, c9 as ResponseTools, ca as RoomCreateBody, cb as RoomQuery, cc as RoomRead, cd as RunProgress, ce as RunStats, cf as RunStep, cg as RunWaitingOn, ch as SHAREPOINT_VENDORS, ci as SSEEvent, cj as SSEStreamCallbacks, ck as SSEStreamOutcome, cl as SSEStreamResult, cn as STOP_ID_WAIT_MS, co as STOP_REPEAT_WINDOW_MS, cq as ScopedTarget, cr as SearchChunk, cs as SendBack, ct as ShareRead, cu as ShareRole, cv as SkillSummary, cw as SkippedFile, cx as SlackConnectionStatus, cy as StepActionRequest, cz as StepActivityEvent, cA as StepAssignee, cB as StepDisplay, cC as StepField, cF as StepKind, cG as StepPhase, cH as StepSignal, cI as StepSignalWhen, cJ as StepState, cK as StepStatus, cL as SubagentBranchRecord, cM as SubagentLaneInfo, cN as SubmitBackgroundQueryOptions, cO as SubscribeParams, cP as SyncTriggerResult, cQ as TAG_KINDS, cR as TAG_NESTING_MAX_DEPTH, cS as TagChange, cT as TagFieldDefinition, cU as TagGroup, cV as TagKind, cW as TagKindField, cX as TagKindSchema, cY as TagLinks, cZ as TagListQuery, c_ as TagNode, c$ as TagResponse, d0 as TagScope, d1 as TagTreeRow, d2 as TaskPlan, d3 as TaskPlanStep, d4 as TaxQuoteResponse, d5 as Thread, d6 as ThreadsResponse, d7 as TimeSuggestion, d8 as TurnRequest, d9 as UpdateConversationRequest, da as UpdateFactRequest, db as UpdateWorkflowRequest, df as UploadDocumentsOptions, dg as UploadOptions, dh as UploadProgressListener, di as UploadResult, dj as UsageBreakdown, dk as UserConnectorEntry, dl as UserDailyUsageResponse, dm as UserInfo, dn as WebSocketAuthError, dp as WeeklyHoursSpec, dq as WorkStatus, dr as WorkflowAuthMode, ds as WorkflowResponse, dt as WorkflowRunHistoryResponse, du as WorkflowRunResponse, dv as WorkspaceConflict, dw as WorkspaceContext, dx as WorkspaceOpenResponse, dy as WorkspaceResponse, dz as WsConnection, dA as account, dB as agentconfig, dD as appendTranscriptionHints, dE as assistant, dF as authenticatedFetch, dG as bookPublicSlot, dH as buildCitationChunkData, dJ as buildDocumentTools, dK as buildFactsContextTool, dL as buildRetrievalChunkTool, dM as buildRetrievalFullContextTool, dN as buildRetrievalTocTool, dO as buildTurnRequest, dP as calendar, dQ as calls, dR as canTagHaveParent, dS as cancelPublicBooking, dT as capabilities, dU as chats, dV as composeConfiguration, dW as composeTools, dX as computeRunStats, dY as connectErrorMessage, dZ as connectWebSocket, d_ as connectWithReconnect, d$ as connectors, e0 as contacts, e1 as continuityPrompt, e2 as conversations, e3 as countCitations, e4 as createAuthenticatedClient, e6 as createIndexAssigner, e7 as databases, e8 as defaultKindForFormat, e9 as doctags, ea as documentTools, eb as documents, ec as estimateDraftTokens, ed as extractDocumentIdsFromMessages, ee as extractFactIdsFromMessages, ef as extractSubagentLanes, eg as facts, eh as files, ei as filterDocumentTags, ej as filterSkills, ek as findLeafForTaskMessage, el as findMainSiblingLeaf, em as findReplyTarget, en as findSubagentRunId, eo as flattenTagTree, ep as formatAgentStepLabel, eq as formatFileSize, er as formatGbp, es as formatGbpPerMillionTokens, et as formatItemLabel, ev as formatTokens, ew as formatUserName, ex as formatWorkspaceChoices, eB as getAgentStepLabel, eC as getAttachableRunId, eD as getChildTags, eE as getContextRemainingPercent, eF as getContextUsedPercent, eG as getContextUsedTokens, eH as getCurrentStep, eI as getEligibleParentTags, eJ as getErrorCode, eK as getErrorMessage, eL as getPublicBookingPage, eM as getRawWorkspaceKey, eN as getRunToAttach, eO as getRunToCancel, eP as getStepDisplay, eQ as getStepTool, eR as getSubagentBranchRecord, eS as getTagDescendantIds, eT as health, eU as houseTemplates, eV as hydrateAgentSteps, eX as identityErrorCode, eW as identityVerification, eY as instructions, eZ as isAnnotationTag, e_ as isConnectorVendorVisible, e$ as isDriveSyncVendor, f0 as isEntityTag, f1 as isFlatKind, f2 as isLabelTag, f3 as isMailboxSyncVendor, f4 as isNearAiUsageBudget, f5 as isPresenceTag, f6 as isSharePointVendor, f7 as isSharedSkill, f8 as isTraceItem, f9 as mail, fa as mcpTools, fb as mergeAgentSteps, fc as modelConnections, fd as notifications, fe as parseSSEEvents, ff as parseSlashCommand, fg as parseSlashTokenInProgress, fh as parseStructuredResponse, fi as performPasswordLogin, fl as pickMainThread, fm as profile, fn as progressFetch, fo as projects, fp as quotaExceededFrom, fq as quotaFromStreamError, fr as reduceOutputItem, fs as refusalReason, ft as requireData, fu as requireOk, fv as resolveAuth, fw as resolveCitations, fx as resolveSummary, fy as resolveWorkspace, fz as responses, fA as searchChunks, fB as selectFullContextDocument, fC as selectWorkspace, fD as selectWorkspaceById, fE as sessions, fF as settings, fH as sliceToSubagentThread, fI as streamSSE, fJ as stripCitationMarkdown, fK as subagentJobLabel, fL as summarizeCitations, fM as tagUseCount, fN as tags, fO as tagsForScope, fP as tagsOfGroup, fQ as topLevelAgentSteps, fS as usdToGbp, fT as work, fU as workflowSteps, fV as workflows, fW as workspaceConflictOf, fX as workspaces, fY as wouldCreateTagCycle } from './browser-BsuUurv5.cjs';
1
+ 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 ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AttendeeRead, s as AuthContext, t as AuthHeaders, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, S as ChatCryptoContext, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, _ as ChatSession, $ as CitationSummary, a0 as CitationToolSources, a1 as CliConfig, a2 as CliCredentials, a3 as CommandDescriptor, a4 as ConfigStore, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectionModel, a9 as ConnectorCatalogEntry, aa as ConnectorFolder, ab as ConnectorSyncProgress, ac as ConnectorSyncStatus, ad as ConnectorVendorKey, ae as ConnectorVisibilitySettings, af as ContextUsage, ag as ConversationResponse, ah as ConversationUsageResponse, ai as CreateFactRequest, aj as CreateFactsRequest, ak as CreateWorkRequest, al as CreateWorkflowRequest, am as DEFAULT_AI_USD_PER_GBP, ao as DRIVE_SYNC_VENDORS, ap as Database, aq as DatabaseAggregateRequest, ar as DatabaseAggregateResult, as as DatabaseColumn, at as DatabaseColumnWrite, au as DatabaseImportResult, av as DatabaseRow, aw as DatabaseRowPage, ax as DatabaseRowsQuery, ay as DateTimeSpec, aA as DecryptedChatMessage, aB as DeploymentHouseTemplate, aC as DirectModelUsage, aD as DocInfo, aE as DocInfoMap, aG as DocumentAutomationAction, aJ as DocumentSelector, aM as DriveSyncProgress, aN as DriveSyncSummary, aO as DuplicateContactError, aP as ENTITY_KINDS, aQ as EditScope, aR as EntityKind, aS as EventCreateBody, aT as EventPatchBody, aU as FLAT_TAG_KINDS, aV as FactResponse, aW as FactSearchRequest, aX as FactSearchResponse, aY as FindTimeParams, a_ as FreeBusyEntry, a$ as FullContextSelection, b0 as GOOGLE_VENDORS, b1 as HolidayCountry, b2 as HouseTemplateCandidate, b3 as IMANAGE_VENDORS, b4 as IdentityErrorCode, b5 as IdentityPurchase, b6 as IdentityState, b7 as IdentityStatus, b8 as ImportResult, b9 as InvitationRead, ba as JsonSchemaOutputFormat, bb as LinkedRun, bd as ListEventsParams, be as ListFactsOptions, bg as MAILBOX_SYNC_VENDORS, bh as MAX_RETRIEVE_DOC_IDS, bi as MICROSOFT_VENDORS, bl as ModelConnection, bm as OAuthAccountKind, bn as OutputItemDone, bo as OverlayItem, bp as OverlayLayerName, bq as PRESENCE_KINDS, br as PROMPT_CONTEXT_CHARS, bs as ParsedResponse, bt as ParsedSlashCommand, bu as ParsedStructuredResponse, bv as PendingAuthResponse, bw as PersonKey, bx as PersonalConnectionInput, by as PlanStepsError, bz as PlanWorkRequest, bA as ProductResponse, bB as ProjectAddonKind, bC as ProjectAddonSettingsRequest, bD as ProjectBudget, bE as ProjectCheckoutRequest, bF as ProjectConversationUsageResponse, bG as ProjectCreateOptions, bH as ProjectDetails, bI as ProjectEventKind, bJ as ProjectEventResponse, bK as ProjectInvoicesResponse, bL as ProjectNextPeriodAddonsRequest, bM as ProjectPlanChangeRequest, bN as ProjectQuoteRequest, bO as ProjectResponse, bP as ProjectUpdateRequest, bQ as ProjectUsageResponse, bR as PublicBookingError, bS as PublicBookingPage, bT as QuotaExceeded, bU as RaisedSignal, bV as RawResponseEvent, bW as ReconnectOptions, bX as ReconnectableWsConnection, bY as ResolvedCitation, b_ as RespondParams, b$ as RespondPartstat, c0 as Response, c1 as ResponseCreateRequest, c2 as ResponseCreateResult, c3 as ResponseHandle, c4 as ResponseSnapshot, c5 as ResponseStart, c6 as ResponseStartOptions, c7 as ResponseStream, c8 as ResponseStreamEvent, c9 as ResponseTools, ca as RoomCreateBody, cb as RoomQuery, cc as RoomRead, cd as RunProgress, ce as RunStats, cf as RunStep, cg as RunWaitingOn, ch as SHAREPOINT_VENDORS, ci as SSEEvent, cj as SSEStreamCallbacks, ck as SSEStreamOutcome, cl as SSEStreamResult, cn as STOP_ID_WAIT_MS, co as STOP_REPEAT_WINDOW_MS, cq as ScopedTarget, cr as SearchChunk, cs as SecureMailCompose, ct as SecureMailSend, cu as SecureMailSender, cv as SendBack, cw as ShareRead, cx as ShareRole, cy as SkillSummary, cz as SkippedFile, cA as SlackConnectionStatus, cB as StepActionRequest, cC as StepActivityEvent, cD as StepAssignee, cE as StepDisplay, cF as StepField, cI as StepKind, cJ as StepPhase, cK as StepSignal, cL as StepSignalWhen, cM as StepState, cN as StepStatus, cO as SubagentBranchRecord, cP as SubagentLaneInfo, cQ as SubmitBackgroundQueryOptions, cR as SubscribeParams, cS as SyncTriggerResult, cT as TAG_KINDS, cU as TAG_NESTING_MAX_DEPTH, cV as TagChange, cW as TagFieldDefinition, cX as TagGroup, cY as TagKind, cZ as TagKindField, c_ as TagKindSchema, c$ as TagLinks, d0 as TagListQuery, d1 as TagNode, d2 as TagResponse, d3 as TagScope, d4 as TagTreeRow, d5 as TaskPlan, d6 as TaskPlanStep, d7 as TaxQuoteResponse, d8 as Thread, d9 as ThreadsResponse, da as TimeSuggestion, db as TurnRequest, dc as UpdateConversationRequest, dd as UpdateFactRequest, de as UpdateWorkflowRequest, di as UploadDocumentsOptions, dj as UploadOptions, dk as UploadProgressListener, dl as UploadResult, dm as UsageBreakdown, dn as UserConnectorEntry, dp as UserDailyUsageResponse, dq as UserInfo, dr as WebSocketAuthError, ds as WeeklyHoursSpec, dt as WorkStatus, du as WorkflowAuthMode, dv as WorkflowResponse, dw as WorkflowRunHistoryResponse, dx as WorkflowRunResponse, dy as WorkspaceConflict, dz as WorkspaceContext, dA as WorkspaceOpenResponse, dB as WorkspaceResponse, dC as WsConnection, dD as account, dE as agentconfig, dG as appendTranscriptionHints, dH as assistant, dI as authenticatedFetch, dJ as bookPublicSlot, dK as buildCitationChunkData, dM as buildDocumentTools, dN as buildFactsContextTool, dO as buildRetrievalChunkTool, dP as buildRetrievalFullContextTool, dQ as buildRetrievalTocTool, dR as buildTurnRequest, dS as calendar, dT as calls, dU as canTagHaveParent, dV as cancelPublicBooking, dW as capabilities, dX as chats, dY as composeConfiguration, dZ as composeTools, d_ as computeRunStats, d$ as connectErrorMessage, e0 as connectWebSocket, e1 as connectWithReconnect, e2 as connectors, e3 as contacts, e4 as continuityPrompt, e5 as conversations, e6 as countCitations, e7 as createAuthenticatedClient, e9 as createIndexAssigner, ea as databases, eb as defaultKindForFormat, ec as doctags, ed as documentTools, ee as documents, ef as estimateDraftTokens, eg as extractDocumentIdsFromMessages, eh as extractFactIdsFromMessages, ei as extractSubagentLanes, ej as facts, ek as files, el as filterDocumentTags, em as filterSkills, en as findLeafForTaskMessage, eo as findMainSiblingLeaf, ep as findReplyTarget, eq as findSubagentRunId, er as flattenTagTree, es as formatAgentStepLabel, et as formatFileSize, eu as formatGbp, ev as formatGbpPerMillionTokens, ew as formatItemLabel, ey as formatTokens, ez as formatUserName, eA as formatWorkspaceChoices, eE as getAgentStepLabel, eF as getAttachableRunId, eG as getChildTags, eH as getContextRemainingPercent, eI as getContextUsedPercent, eJ as getContextUsedTokens, eK as getCurrentStep, eL as getEligibleParentTags, eM as getErrorCode, eN as getErrorMessage, eO as getPublicBookingPage, eP as getRawWorkspaceKey, eQ as getRunToAttach, eR as getRunToCancel, eS as getStepDisplay, eT as getStepTool, eU as getSubagentBranchRecord, eV as getTagDescendantIds, eW as health, eX as houseTemplates, eY as hydrateAgentSteps, e_ as identityErrorCode, eZ as identityVerification, e$ as instructions, f0 as isAnnotationTag, f1 as isConnectorVendorVisible, f2 as isDriveSyncVendor, f3 as isEntityTag, f4 as isFlatKind, f5 as isLabelTag, f6 as isMailboxSyncVendor, f7 as isNearAiUsageBudget, f8 as isPresenceTag, f9 as isSharePointVendor, fa as isSharedSkill, fb as isTraceItem, fc as mail, fd as mcpTools, fe as mergeAgentSteps, ff as modelConnections, fg as notifications, fh as parseSSEEvents, fi as parseSlashCommand, fj as parseSlashTokenInProgress, fk as parseStructuredResponse, fl as performPasswordLogin, fo as pickMainThread, fp as profile, fq as progressFetch, fr as projects, fs as quotaExceededFrom, ft as quotaFromStreamError, fu as reduceOutputItem, fv as refusalReason, fw as requireData, fx as requireOk, fy as resolveAuth, fz as resolveCitations, fA as resolveSummary, fB as resolveWorkspace, fC as responses, fD as searchChunks, fE as secureMail, fF as selectFullContextDocument, fG as selectWorkspace, fH as selectWorkspaceById, fI as sessions, fJ as settings, fL as sliceToSubagentThread, fM as streamSSE, fN as stripCitationMarkdown, fO as subagentJobLabel, fP as summarizeCitations, fQ as tagUseCount, fR as tags, fS as tagsForScope, fT as tagsOfGroup, fU as topLevelAgentSteps, fW as usdToGbp, fX as work, fY as workflowSteps, fZ as workflows, f_ as workspaceConflictOf, f$ as workspaces, g0 as wouldCreateTagCycle } from './browser-CA2ecqVP.cjs';
2
2
  export { A as AgentControlStateEvent, a as AgentStepDeltaEvent, b as AgentStepEvent, c as ArbiErrorEvent, d as ArtifactEvent, D as DeferredInterjectionEvent, M as MailDraftSSEEvent, e as MessageMetadataPayload, f as MessageQueuedEvent, O as OutputTokensDetails, P as ProbeAnswerEvent, 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';
3
3
  export { CallPeer, HttpErrorInfo, HttpRequestInfo, HttpResponseInfo, HttpTransportOptions, LoginProfile, SessionPersistence } from '@arbidocs/client';
package/dist/browser.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- 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 ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AttendeeRead, s as AuthContext, t as AuthHeaders, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, S as ChatCryptoContext, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, _ as ChatSession, $ as CitationSummary, a0 as CitationToolSources, a1 as CliConfig, a2 as CliCredentials, a3 as CommandDescriptor, a4 as ConfigStore, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectionModel, a9 as ConnectorCatalogEntry, aa as ConnectorFolder, ab as ConnectorSyncProgress, ac as ConnectorSyncStatus, ad as ConnectorVendorKey, ae as ConnectorVisibilitySettings, af as ContextUsage, ag as ConversationResponse, ah as ConversationUsageResponse, ai as CreateFactRequest, aj as CreateFactsRequest, ak as CreateWorkRequest, al as CreateWorkflowRequest, am as DEFAULT_AI_USD_PER_GBP, ao as DRIVE_SYNC_VENDORS, ap as Database, aq as DatabaseAggregateRequest, ar as DatabaseAggregateResult, as as DatabaseColumn, at as DatabaseColumnWrite, au as DatabaseImportResult, av as DatabaseRow, aw as DatabaseRowPage, ax as DatabaseRowsQuery, ay as DateTimeSpec, aA as DecryptedChatMessage, aB as DeploymentHouseTemplate, aC as DirectModelUsage, aD as DocInfo, aE as DocInfoMap, aG as DocumentAutomationAction, aJ as DocumentSelector, aM as DriveSyncProgress, aN as DriveSyncSummary, aO as DuplicateContactError, aP as ENTITY_KINDS, aQ as EditScope, aR as EntityKind, aS as EventCreateBody, aT as EventPatchBody, aU as FLAT_TAG_KINDS, aV as FactResponse, aW as FactSearchRequest, aX as FactSearchResponse, aY as FindTimeParams, a_ as FreeBusyEntry, a$ as FullContextSelection, b0 as GOOGLE_VENDORS, b1 as HolidayCountry, b2 as HouseTemplateCandidate, b3 as IMANAGE_VENDORS, b4 as IdentityErrorCode, b5 as IdentityPurchase, b6 as IdentityState, b7 as IdentityStatus, b8 as ImportResult, b9 as InvitationRead, ba as JsonSchemaOutputFormat, bb as LinkedRun, bd as ListEventsParams, be as ListFactsOptions, bg as MAILBOX_SYNC_VENDORS, bh as MAX_RETRIEVE_DOC_IDS, bi as MICROSOFT_VENDORS, bl as ModelConnection, bm as OAuthAccountKind, bn as OutputItemDone, bo as OverlayItem, bp as OverlayLayerName, bq as PRESENCE_KINDS, br as PROMPT_CONTEXT_CHARS, bs as ParsedResponse, bt as ParsedSlashCommand, bu as ParsedStructuredResponse, bv as PendingAuthResponse, bw as PersonKey, bx as PersonalConnectionInput, by as PlanStepsError, bz as PlanWorkRequest, bA as ProductResponse, bB as ProjectAddonKind, bC as ProjectAddonSettingsRequest, bD as ProjectBudget, bE as ProjectCheckoutRequest, bF as ProjectConversationUsageResponse, bG as ProjectCreateOptions, bH as ProjectDetails, bI as ProjectEventKind, bJ as ProjectEventResponse, bK as ProjectInvoicesResponse, bL as ProjectNextPeriodAddonsRequest, bM as ProjectPlanChangeRequest, bN as ProjectQuoteRequest, bO as ProjectResponse, bP as ProjectUpdateRequest, bQ as ProjectUsageResponse, bR as PublicBookingError, bS as PublicBookingPage, bT as QuotaExceeded, bU as RaisedSignal, bV as RawResponseEvent, bW as ReconnectOptions, bX as ReconnectableWsConnection, bY as ResolvedCitation, b_ as RespondParams, b$ as RespondPartstat, c0 as Response, c1 as ResponseCreateRequest, c2 as ResponseCreateResult, c3 as ResponseHandle, c4 as ResponseSnapshot, c5 as ResponseStart, c6 as ResponseStartOptions, c7 as ResponseStream, c8 as ResponseStreamEvent, c9 as ResponseTools, ca as RoomCreateBody, cb as RoomQuery, cc as RoomRead, cd as RunProgress, ce as RunStats, cf as RunStep, cg as RunWaitingOn, ch as SHAREPOINT_VENDORS, ci as SSEEvent, cj as SSEStreamCallbacks, ck as SSEStreamOutcome, cl as SSEStreamResult, cn as STOP_ID_WAIT_MS, co as STOP_REPEAT_WINDOW_MS, cq as ScopedTarget, cr as SearchChunk, cs as SendBack, ct as ShareRead, cu as ShareRole, cv as SkillSummary, cw as SkippedFile, cx as SlackConnectionStatus, cy as StepActionRequest, cz as StepActivityEvent, cA as StepAssignee, cB as StepDisplay, cC as StepField, cF as StepKind, cG as StepPhase, cH as StepSignal, cI as StepSignalWhen, cJ as StepState, cK as StepStatus, cL as SubagentBranchRecord, cM as SubagentLaneInfo, cN as SubmitBackgroundQueryOptions, cO as SubscribeParams, cP as SyncTriggerResult, cQ as TAG_KINDS, cR as TAG_NESTING_MAX_DEPTH, cS as TagChange, cT as TagFieldDefinition, cU as TagGroup, cV as TagKind, cW as TagKindField, cX as TagKindSchema, cY as TagLinks, cZ as TagListQuery, c_ as TagNode, c$ as TagResponse, d0 as TagScope, d1 as TagTreeRow, d2 as TaskPlan, d3 as TaskPlanStep, d4 as TaxQuoteResponse, d5 as Thread, d6 as ThreadsResponse, d7 as TimeSuggestion, d8 as TurnRequest, d9 as UpdateConversationRequest, da as UpdateFactRequest, db as UpdateWorkflowRequest, df as UploadDocumentsOptions, dg as UploadOptions, dh as UploadProgressListener, di as UploadResult, dj as UsageBreakdown, dk as UserConnectorEntry, dl as UserDailyUsageResponse, dm as UserInfo, dn as WebSocketAuthError, dp as WeeklyHoursSpec, dq as WorkStatus, dr as WorkflowAuthMode, ds as WorkflowResponse, dt as WorkflowRunHistoryResponse, du as WorkflowRunResponse, dv as WorkspaceConflict, dw as WorkspaceContext, dx as WorkspaceOpenResponse, dy as WorkspaceResponse, dz as WsConnection, dA as account, dB as agentconfig, dD as appendTranscriptionHints, dE as assistant, dF as authenticatedFetch, dG as bookPublicSlot, dH as buildCitationChunkData, dJ as buildDocumentTools, dK as buildFactsContextTool, dL as buildRetrievalChunkTool, dM as buildRetrievalFullContextTool, dN as buildRetrievalTocTool, dO as buildTurnRequest, dP as calendar, dQ as calls, dR as canTagHaveParent, dS as cancelPublicBooking, dT as capabilities, dU as chats, dV as composeConfiguration, dW as composeTools, dX as computeRunStats, dY as connectErrorMessage, dZ as connectWebSocket, d_ as connectWithReconnect, d$ as connectors, e0 as contacts, e1 as continuityPrompt, e2 as conversations, e3 as countCitations, e4 as createAuthenticatedClient, e6 as createIndexAssigner, e7 as databases, e8 as defaultKindForFormat, e9 as doctags, ea as documentTools, eb as documents, ec as estimateDraftTokens, ed as extractDocumentIdsFromMessages, ee as extractFactIdsFromMessages, ef as extractSubagentLanes, eg as facts, eh as files, ei as filterDocumentTags, ej as filterSkills, ek as findLeafForTaskMessage, el as findMainSiblingLeaf, em as findReplyTarget, en as findSubagentRunId, eo as flattenTagTree, ep as formatAgentStepLabel, eq as formatFileSize, er as formatGbp, es as formatGbpPerMillionTokens, et as formatItemLabel, ev as formatTokens, ew as formatUserName, ex as formatWorkspaceChoices, eB as getAgentStepLabel, eC as getAttachableRunId, eD as getChildTags, eE as getContextRemainingPercent, eF as getContextUsedPercent, eG as getContextUsedTokens, eH as getCurrentStep, eI as getEligibleParentTags, eJ as getErrorCode, eK as getErrorMessage, eL as getPublicBookingPage, eM as getRawWorkspaceKey, eN as getRunToAttach, eO as getRunToCancel, eP as getStepDisplay, eQ as getStepTool, eR as getSubagentBranchRecord, eS as getTagDescendantIds, eT as health, eU as houseTemplates, eV as hydrateAgentSteps, eX as identityErrorCode, eW as identityVerification, eY as instructions, eZ as isAnnotationTag, e_ as isConnectorVendorVisible, e$ as isDriveSyncVendor, f0 as isEntityTag, f1 as isFlatKind, f2 as isLabelTag, f3 as isMailboxSyncVendor, f4 as isNearAiUsageBudget, f5 as isPresenceTag, f6 as isSharePointVendor, f7 as isSharedSkill, f8 as isTraceItem, f9 as mail, fa as mcpTools, fb as mergeAgentSteps, fc as modelConnections, fd as notifications, fe as parseSSEEvents, ff as parseSlashCommand, fg as parseSlashTokenInProgress, fh as parseStructuredResponse, fi as performPasswordLogin, fl as pickMainThread, fm as profile, fn as progressFetch, fo as projects, fp as quotaExceededFrom, fq as quotaFromStreamError, fr as reduceOutputItem, fs as refusalReason, ft as requireData, fu as requireOk, fv as resolveAuth, fw as resolveCitations, fx as resolveSummary, fy as resolveWorkspace, fz as responses, fA as searchChunks, fB as selectFullContextDocument, fC as selectWorkspace, fD as selectWorkspaceById, fE as sessions, fF as settings, fH as sliceToSubagentThread, fI as streamSSE, fJ as stripCitationMarkdown, fK as subagentJobLabel, fL as summarizeCitations, fM as tagUseCount, fN as tags, fO as tagsForScope, fP as tagsOfGroup, fQ as topLevelAgentSteps, fS as usdToGbp, fT as work, fU as workflowSteps, fV as workflows, fW as workspaceConflictOf, fX as workspaces, fY as wouldCreateTagCycle } from './browser-D0iEy5W9.js';
1
+ 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 ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AttendeeRead, s as AuthContext, t as AuthHeaders, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, S as ChatCryptoContext, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, _ as ChatSession, $ as CitationSummary, a0 as CitationToolSources, a1 as CliConfig, a2 as CliCredentials, a3 as CommandDescriptor, a4 as ConfigStore, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectionModel, a9 as ConnectorCatalogEntry, aa as ConnectorFolder, ab as ConnectorSyncProgress, ac as ConnectorSyncStatus, ad as ConnectorVendorKey, ae as ConnectorVisibilitySettings, af as ContextUsage, ag as ConversationResponse, ah as ConversationUsageResponse, ai as CreateFactRequest, aj as CreateFactsRequest, ak as CreateWorkRequest, al as CreateWorkflowRequest, am as DEFAULT_AI_USD_PER_GBP, ao as DRIVE_SYNC_VENDORS, ap as Database, aq as DatabaseAggregateRequest, ar as DatabaseAggregateResult, as as DatabaseColumn, at as DatabaseColumnWrite, au as DatabaseImportResult, av as DatabaseRow, aw as DatabaseRowPage, ax as DatabaseRowsQuery, ay as DateTimeSpec, aA as DecryptedChatMessage, aB as DeploymentHouseTemplate, aC as DirectModelUsage, aD as DocInfo, aE as DocInfoMap, aG as DocumentAutomationAction, aJ as DocumentSelector, aM as DriveSyncProgress, aN as DriveSyncSummary, aO as DuplicateContactError, aP as ENTITY_KINDS, aQ as EditScope, aR as EntityKind, aS as EventCreateBody, aT as EventPatchBody, aU as FLAT_TAG_KINDS, aV as FactResponse, aW as FactSearchRequest, aX as FactSearchResponse, aY as FindTimeParams, a_ as FreeBusyEntry, a$ as FullContextSelection, b0 as GOOGLE_VENDORS, b1 as HolidayCountry, b2 as HouseTemplateCandidate, b3 as IMANAGE_VENDORS, b4 as IdentityErrorCode, b5 as IdentityPurchase, b6 as IdentityState, b7 as IdentityStatus, b8 as ImportResult, b9 as InvitationRead, ba as JsonSchemaOutputFormat, bb as LinkedRun, bd as ListEventsParams, be as ListFactsOptions, bg as MAILBOX_SYNC_VENDORS, bh as MAX_RETRIEVE_DOC_IDS, bi as MICROSOFT_VENDORS, bl as ModelConnection, bm as OAuthAccountKind, bn as OutputItemDone, bo as OverlayItem, bp as OverlayLayerName, bq as PRESENCE_KINDS, br as PROMPT_CONTEXT_CHARS, bs as ParsedResponse, bt as ParsedSlashCommand, bu as ParsedStructuredResponse, bv as PendingAuthResponse, bw as PersonKey, bx as PersonalConnectionInput, by as PlanStepsError, bz as PlanWorkRequest, bA as ProductResponse, bB as ProjectAddonKind, bC as ProjectAddonSettingsRequest, bD as ProjectBudget, bE as ProjectCheckoutRequest, bF as ProjectConversationUsageResponse, bG as ProjectCreateOptions, bH as ProjectDetails, bI as ProjectEventKind, bJ as ProjectEventResponse, bK as ProjectInvoicesResponse, bL as ProjectNextPeriodAddonsRequest, bM as ProjectPlanChangeRequest, bN as ProjectQuoteRequest, bO as ProjectResponse, bP as ProjectUpdateRequest, bQ as ProjectUsageResponse, bR as PublicBookingError, bS as PublicBookingPage, bT as QuotaExceeded, bU as RaisedSignal, bV as RawResponseEvent, bW as ReconnectOptions, bX as ReconnectableWsConnection, bY as ResolvedCitation, b_ as RespondParams, b$ as RespondPartstat, c0 as Response, c1 as ResponseCreateRequest, c2 as ResponseCreateResult, c3 as ResponseHandle, c4 as ResponseSnapshot, c5 as ResponseStart, c6 as ResponseStartOptions, c7 as ResponseStream, c8 as ResponseStreamEvent, c9 as ResponseTools, ca as RoomCreateBody, cb as RoomQuery, cc as RoomRead, cd as RunProgress, ce as RunStats, cf as RunStep, cg as RunWaitingOn, ch as SHAREPOINT_VENDORS, ci as SSEEvent, cj as SSEStreamCallbacks, ck as SSEStreamOutcome, cl as SSEStreamResult, cn as STOP_ID_WAIT_MS, co as STOP_REPEAT_WINDOW_MS, cq as ScopedTarget, cr as SearchChunk, cs as SecureMailCompose, ct as SecureMailSend, cu as SecureMailSender, cv as SendBack, cw as ShareRead, cx as ShareRole, cy as SkillSummary, cz as SkippedFile, cA as SlackConnectionStatus, cB as StepActionRequest, cC as StepActivityEvent, cD as StepAssignee, cE as StepDisplay, cF as StepField, cI as StepKind, cJ as StepPhase, cK as StepSignal, cL as StepSignalWhen, cM as StepState, cN as StepStatus, cO as SubagentBranchRecord, cP as SubagentLaneInfo, cQ as SubmitBackgroundQueryOptions, cR as SubscribeParams, cS as SyncTriggerResult, cT as TAG_KINDS, cU as TAG_NESTING_MAX_DEPTH, cV as TagChange, cW as TagFieldDefinition, cX as TagGroup, cY as TagKind, cZ as TagKindField, c_ as TagKindSchema, c$ as TagLinks, d0 as TagListQuery, d1 as TagNode, d2 as TagResponse, d3 as TagScope, d4 as TagTreeRow, d5 as TaskPlan, d6 as TaskPlanStep, d7 as TaxQuoteResponse, d8 as Thread, d9 as ThreadsResponse, da as TimeSuggestion, db as TurnRequest, dc as UpdateConversationRequest, dd as UpdateFactRequest, de as UpdateWorkflowRequest, di as UploadDocumentsOptions, dj as UploadOptions, dk as UploadProgressListener, dl as UploadResult, dm as UsageBreakdown, dn as UserConnectorEntry, dp as UserDailyUsageResponse, dq as UserInfo, dr as WebSocketAuthError, ds as WeeklyHoursSpec, dt as WorkStatus, du as WorkflowAuthMode, dv as WorkflowResponse, dw as WorkflowRunHistoryResponse, dx as WorkflowRunResponse, dy as WorkspaceConflict, dz as WorkspaceContext, dA as WorkspaceOpenResponse, dB as WorkspaceResponse, dC as WsConnection, dD as account, dE as agentconfig, dG as appendTranscriptionHints, dH as assistant, dI as authenticatedFetch, dJ as bookPublicSlot, dK as buildCitationChunkData, dM as buildDocumentTools, dN as buildFactsContextTool, dO as buildRetrievalChunkTool, dP as buildRetrievalFullContextTool, dQ as buildRetrievalTocTool, dR as buildTurnRequest, dS as calendar, dT as calls, dU as canTagHaveParent, dV as cancelPublicBooking, dW as capabilities, dX as chats, dY as composeConfiguration, dZ as composeTools, d_ as computeRunStats, d$ as connectErrorMessage, e0 as connectWebSocket, e1 as connectWithReconnect, e2 as connectors, e3 as contacts, e4 as continuityPrompt, e5 as conversations, e6 as countCitations, e7 as createAuthenticatedClient, e9 as createIndexAssigner, ea as databases, eb as defaultKindForFormat, ec as doctags, ed as documentTools, ee as documents, ef as estimateDraftTokens, eg as extractDocumentIdsFromMessages, eh as extractFactIdsFromMessages, ei as extractSubagentLanes, ej as facts, ek as files, el as filterDocumentTags, em as filterSkills, en as findLeafForTaskMessage, eo as findMainSiblingLeaf, ep as findReplyTarget, eq as findSubagentRunId, er as flattenTagTree, es as formatAgentStepLabel, et as formatFileSize, eu as formatGbp, ev as formatGbpPerMillionTokens, ew as formatItemLabel, ey as formatTokens, ez as formatUserName, eA as formatWorkspaceChoices, eE as getAgentStepLabel, eF as getAttachableRunId, eG as getChildTags, eH as getContextRemainingPercent, eI as getContextUsedPercent, eJ as getContextUsedTokens, eK as getCurrentStep, eL as getEligibleParentTags, eM as getErrorCode, eN as getErrorMessage, eO as getPublicBookingPage, eP as getRawWorkspaceKey, eQ as getRunToAttach, eR as getRunToCancel, eS as getStepDisplay, eT as getStepTool, eU as getSubagentBranchRecord, eV as getTagDescendantIds, eW as health, eX as houseTemplates, eY as hydrateAgentSteps, e_ as identityErrorCode, eZ as identityVerification, e$ as instructions, f0 as isAnnotationTag, f1 as isConnectorVendorVisible, f2 as isDriveSyncVendor, f3 as isEntityTag, f4 as isFlatKind, f5 as isLabelTag, f6 as isMailboxSyncVendor, f7 as isNearAiUsageBudget, f8 as isPresenceTag, f9 as isSharePointVendor, fa as isSharedSkill, fb as isTraceItem, fc as mail, fd as mcpTools, fe as mergeAgentSteps, ff as modelConnections, fg as notifications, fh as parseSSEEvents, fi as parseSlashCommand, fj as parseSlashTokenInProgress, fk as parseStructuredResponse, fl as performPasswordLogin, fo as pickMainThread, fp as profile, fq as progressFetch, fr as projects, fs as quotaExceededFrom, ft as quotaFromStreamError, fu as reduceOutputItem, fv as refusalReason, fw as requireData, fx as requireOk, fy as resolveAuth, fz as resolveCitations, fA as resolveSummary, fB as resolveWorkspace, fC as responses, fD as searchChunks, fE as secureMail, fF as selectFullContextDocument, fG as selectWorkspace, fH as selectWorkspaceById, fI as sessions, fJ as settings, fL as sliceToSubagentThread, fM as streamSSE, fN as stripCitationMarkdown, fO as subagentJobLabel, fP as summarizeCitations, fQ as tagUseCount, fR as tags, fS as tagsForScope, fT as tagsOfGroup, fU as topLevelAgentSteps, fW as usdToGbp, fX as work, fY as workflowSteps, fZ as workflows, f_ as workspaceConflictOf, f$ as workspaces, g0 as wouldCreateTagCycle } from './browser-Bf6pRBuP.js';
2
2
  export { A as AgentControlStateEvent, a as AgentStepDeltaEvent, b as AgentStepEvent, c as ArbiErrorEvent, d as ArtifactEvent, D as DeferredInterjectionEvent, M as MailDraftSSEEvent, e as MessageMetadataPayload, f as MessageQueuedEvent, O as OutputTokensDetails, P as ProbeAnswerEvent, 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';
3
3
  export { CallPeer, HttpErrorInfo, HttpRequestInfo, HttpResponseInfo, HttpTransportOptions, LoginProfile, SessionPersistence } from '@arbidocs/client';
package/dist/browser.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createArbiClient, base64ToBytes, unwrapWorkspaceKey, sealKeyForSession, buildWebSocketUrl, createAuthMessage, parseServerMessage, isMessageType, createContentHash, encryptFile, initSodium, encryptionKeypairFromSigningKey, sealedBoxEncrypt, sealedBoxDecrypt, bytesToBase64, encryptWithChatKey, decryptWithChatKey, decryptFile, deriveDirectChatKey, openSealedChatKey, generateChatKey, sealChatKey, sealCallKey, encryptMessage, decodeSecureMailKey, openSecureMail, secureMailClaim, createSessionManager, authRequestError, isAbortError, changePassword, openCallKeyOf, decryptCallTitle, generateCallKey, encryptCallTitle, sealCallKeyForPeers, openSealedCallKey, readSessionClaims } from '@arbidocs/client';
1
+ import { createArbiClient, base64ToBytes, unwrapWorkspaceKey, sealKeyForSession, buildWebSocketUrl, createAuthMessage, parseServerMessage, isMessageType, createContentHash, encryptFile, initSodium, encryptionKeypairFromSigningKey, sealedBoxEncrypt, sealedBoxDecrypt, bytesToBase64, sealSecureMail, decodeSecureMailKey, openSecureMail, secureMailClaim, encryptWithChatKey, decryptWithChatKey, decryptFile, deriveDirectChatKey, openSealedChatKey, generateChatKey, sealChatKey, sealCallKey, encryptMessage, createSessionManager, authRequestError, isAbortError, changePassword, openCallKeyOf, decryptCallTitle, generateCallKey, encryptCallTitle, sealCallKeyForPeers, openSealedCallKey, readSessionClaims } from '@arbidocs/client';
2
2
 
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -5477,16 +5477,40 @@ async function updateDocuments(arbi, documents) {
5477
5477
  "Failed to update documents"
5478
5478
  );
5479
5479
  }
5480
- async function uploadUrl(arbi, urls, shared = false, configExtId) {
5481
- return requireData(
5480
+ async function uploadUrl(arbi, urls, options) {
5481
+ return requireUploadData(
5482
5482
  await arbi.fetch.POST("/v1/document/upload-url", {
5483
5483
  params: {
5484
- query: { urls, shared, ...configExtId ? { config_ext_id: configExtId } : {} }
5484
+ query: {
5485
+ urls,
5486
+ shared: options.shared ?? false,
5487
+ workspace_ext_id: options.workspaceExtId,
5488
+ ...options.configExtId ? { config_ext_id: options.configExtId } : {}
5489
+ }
5485
5490
  }
5486
5491
  }),
5487
5492
  "Failed to upload from URLs"
5488
5493
  );
5489
5494
  }
5495
+ var UPLOAD_WORKSPACE_CONFLICT_MESSAGES = {
5496
+ workspace_mismatch: "These files were prepared for another workspace, so they were not saved. Upload them again.",
5497
+ workspace_key_required: "The workspace couldn't be unlocked for this upload, so the files were not saved."
5498
+ };
5499
+ function requireUploadData(result, message) {
5500
+ const status = result.response?.status;
5501
+ const conflict = result.error && status === 409 ? workspaceConflictOf(result.error) : null;
5502
+ if (conflict) {
5503
+ throw new ArbiApiError(
5504
+ UPLOAD_WORKSPACE_CONFLICT_MESSAGES[conflict.code],
5505
+ result.error,
5506
+ status,
5507
+ {
5508
+ code: conflict.code
5509
+ }
5510
+ );
5511
+ }
5512
+ return requireData(result, message);
5513
+ }
5490
5514
  async function uploadDocuments(arbi, files, options = {}) {
5491
5515
  const query2 = {};
5492
5516
  if (options.shared !== void 0) query2.shared = options.shared;
@@ -5511,7 +5535,7 @@ async function uploadDocuments(arbi, files, options = {}) {
5511
5535
  return form;
5512
5536
  }
5513
5537
  });
5514
- return requireData(result, "Failed to upload documents");
5538
+ return requireUploadData(result, "Failed to upload documents");
5515
5539
  }
5516
5540
  async function similarDocuments(arbi, options = {}) {
5517
5541
  return requireData(
@@ -5668,6 +5692,9 @@ async function presignedPut(url, body, onProgress, headers) {
5668
5692
  }
5669
5693
  }
5670
5694
  async function uploadDocumentsDirect(arbi, workspaceKey, files, options) {
5695
+ if (!options?.workspaceExtId) {
5696
+ throw new ArbiError("uploadDocumentsDirect needs options.workspaceExtId (the key's workspace)");
5697
+ }
5671
5698
  if (files.length === 0) return { doc_ext_ids: [], skipped: [] };
5672
5699
  const SECRETBOX_ENVELOPE_OVERHEAD = 40;
5673
5700
  const declared = files.map((f2) => ({
@@ -5679,21 +5706,19 @@ async function uploadDocumentsDirect(arbi, workspaceKey, files, options) {
5679
5706
  }));
5680
5707
  const initBody = {
5681
5708
  files: declared,
5682
- shared: options?.shared !== false,
5683
- config_ext_id: options?.configExtId ?? null,
5709
+ shared: options.shared !== false,
5710
+ config_ext_id: options.configExtId ?? null,
5684
5711
  // Only sent when set, so a plain upload is accepted by any server version.
5685
- ...options?.versionOf ? { version_of: options.versionOf } : {},
5686
- wp_type: options?.wpType ?? null,
5687
- tag_ext_id: options?.tagExtId ?? null,
5688
- folder: options?.folder ? sanitizeFolderPath(options.folder) : null,
5689
- presign_expires_in: options?.presignExpiresIn ?? 3600
5712
+ ...options.versionOf ? { version_of: options.versionOf } : {},
5713
+ wp_type: options.wpType ?? null,
5714
+ tag_ext_id: options.tagExtId ?? null,
5715
+ folder: options.folder ? sanitizeFolderPath(options.folder) : null,
5716
+ presign_expires_in: options.presignExpiresIn ?? 3600
5690
5717
  };
5691
- const guarded = options?.inWorkspace ?? ((send) => send());
5692
- const initResult = await guarded(
5693
- async () => requireData(
5694
- await arbi.fetch.POST("/v1/document/upload-init", { body: initBody }),
5695
- "Failed to initialize direct upload"
5696
- )
5718
+ const query2 = { workspace_ext_id: options.workspaceExtId };
5719
+ const initResult = requireUploadData(
5720
+ await arbi.fetch.POST("/v1/document/upload-init", { params: { query: query2 }, body: initBody }),
5721
+ "Failed to initialize direct upload"
5697
5722
  );
5698
5723
  const items = initResult.items ?? [];
5699
5724
  const bytesByName = /* @__PURE__ */ new Map();
@@ -5727,7 +5752,7 @@ async function uploadDocumentsDirect(arbi, workspaceKey, files, options) {
5727
5752
  const total = ciphertext.length;
5728
5753
  try {
5729
5754
  await presignedPut(item.upload_url, ciphertext, (loaded, putTotal) => {
5730
- options?.onBytesProgress?.({
5755
+ options.onBytesProgress?.({
5731
5756
  fileIndex,
5732
5757
  fileName: item.file_name,
5733
5758
  loaded,
@@ -5739,7 +5764,7 @@ async function uploadDocumentsDirect(arbi, workspaceKey, files, options) {
5739
5764
  `Presigned PUT for ${item.doc_ext_id} failed: ${err instanceof Error ? err.message : String(err)}`
5740
5765
  );
5741
5766
  }
5742
- options?.onBytesProgress?.({
5767
+ options.onBytesProgress?.({
5743
5768
  fileIndex,
5744
5769
  fileName: item.file_name,
5745
5770
  loaded: total,
@@ -5750,16 +5775,15 @@ async function uploadDocumentsDirect(arbi, workspaceKey, files, options) {
5750
5775
  if (toCommit.length === 0) {
5751
5776
  return { doc_ext_ids: [], skipped };
5752
5777
  }
5753
- const commitResult = await guarded(
5754
- async () => requireData(
5755
- await arbi.fetch.POST("/v1/document/upload-commit", {
5756
- body: {
5757
- doc_ext_ids: toCommit,
5758
- tag_ext_id: options?.tagExtId ?? null
5759
- }
5760
- }),
5761
- "Failed to commit direct upload"
5762
- )
5778
+ const commitResult = requireUploadData(
5779
+ await arbi.fetch.POST("/v1/document/upload-commit", {
5780
+ params: { query: query2 },
5781
+ body: {
5782
+ doc_ext_ids: toCommit,
5783
+ tag_ext_id: options.tagExtId ?? null
5784
+ }
5785
+ }),
5786
+ "Failed to commit direct upload"
5763
5787
  );
5764
5788
  return {
5765
5789
  doc_ext_ids: commitResult.doc_ext_ids ?? [],
@@ -5984,6 +6008,130 @@ async function unlockModelConnections(arbi, keys, onlyId) {
5984
6008
  }
5985
6009
  }
5986
6010
 
6011
+ // src/operations/secure-mail.ts
6012
+ var secure_mail_exports = {};
6013
+ __export(secure_mail_exports, {
6014
+ claimSecureMail: () => claimSecureMail,
6015
+ prepareSecureMail: () => prepareSecureMail,
6016
+ secureMime: () => secureMime
6017
+ });
6018
+ var MAX_MESSAGE_BYTES = 25 * 1024 * 1024;
6019
+ var utf8 = new TextEncoder();
6020
+ var encodedWord = (value) => `=?UTF-8?B?${bytesToBase64(utf8.encode(value))}?=`;
6021
+ var folded = (value) => value.match(/.{1,76}/g)?.join("\r\n") ?? "";
6022
+ var safeHeader = (value) => {
6023
+ if (/[\r\n\0]/.test(value)) throw new Error("Email headers cannot contain newlines");
6024
+ return value;
6025
+ };
6026
+ function secureMime(compose, sender) {
6027
+ const address = (r2) => `${r2.name ? encodedWord(safeHeader(r2.name)) + " " : ""}<${safeHeader(r2.email)}>`;
6028
+ const boundary = "arbi-" + crypto.randomUUID();
6029
+ const headers = [
6030
+ `From: ${address({ email: sender.email, name: sender.display_name })}`,
6031
+ ...compose.to.length ? [`To: ${compose.to.map(address).join(", ")}`] : [],
6032
+ ...compose.cc.length ? [`Cc: ${compose.cc.map(address).join(", ")}`] : [],
6033
+ `Subject: ${encodedWord(safeHeader(compose.subject))}`,
6034
+ `Date: ${(/* @__PURE__ */ new Date()).toUTCString()}`,
6035
+ `Message-ID: <${crypto.randomUUID()}@${sender.email.split("@")[1]}>`,
6036
+ ...compose.in_reply_to ? [`In-Reply-To: ${safeHeader(compose.in_reply_to)}`] : [],
6037
+ ...compose.references?.length ? [`References: ${compose.references.map(safeHeader).join(" ")}`] : [],
6038
+ "MIME-Version: 1.0",
6039
+ "X-ARBI-Secure-Delivery: 1",
6040
+ `Content-Type: multipart/mixed; boundary="${boundary}"`
6041
+ ];
6042
+ const alternative = "alternative-" + crypto.randomUUID();
6043
+ const plainPart = `Content-Type: text/plain; charset="utf-8"\r
6044
+ Content-Transfer-Encoding: base64\r
6045
+ \r
6046
+ ${folded(bytesToBase64(utf8.encode(compose.text)))}`;
6047
+ const bodyPart = compose.html ? `Content-Type: multipart/alternative; boundary="${alternative}"\r
6048
+ \r
6049
+ --${alternative}\r
6050
+ ${plainPart}\r
6051
+ --${alternative}\r
6052
+ Content-Type: text/html; charset="utf-8"\r
6053
+ Content-Transfer-Encoding: base64\r
6054
+ \r
6055
+ ${folded(bytesToBase64(utf8.encode(compose.html)))}\r
6056
+ --${alternative}--\r
6057
+ ` : plainPart;
6058
+ const parts = [
6059
+ `--${boundary}\r
6060
+ ${bodyPart}`,
6061
+ ...compose.attachments.map((a2) => {
6062
+ if (!a2.content_base64) throw new Error("Attachment content is missing");
6063
+ const name = encodeURIComponent(safeHeader(a2.name)).replace(/'/g, "%27");
6064
+ return `--${boundary}\r
6065
+ Content-Type: ${safeHeader(a2.content_type || "application/octet-stream")}\r
6066
+ Content-Disposition: attachment; filename*=UTF-8''${name}\r
6067
+ Content-Transfer-Encoding: base64\r
6068
+ \r
6069
+ ${folded(a2.content_base64)}`;
6070
+ }),
6071
+ `--${boundary}--\r
6072
+ `
6073
+ ];
6074
+ return utf8.encode(headers.join("\r\n") + "\r\n\r\n" + parts.join("\r\n"));
6075
+ }
6076
+ async function prepareSecureMail(compose, sender, { requestId, senderPublicKey, frontendOrigin }) {
6077
+ const raw = secureMime(compose, sender);
6078
+ try {
6079
+ if (raw.length > MAX_MESSAGE_BYTES) throw new Error("Email exceeds the message size limit");
6080
+ const metadata = {
6081
+ secure_delivery: true,
6082
+ id: "",
6083
+ subject: compose.subject,
6084
+ sender: [{ email: sender.email, name: sender.display_name }],
6085
+ to: compose.to,
6086
+ cc: compose.cc,
6087
+ bcc: [],
6088
+ received_at: (/* @__PURE__ */ new Date()).toISOString(),
6089
+ preview: compose.text.slice(0, 220),
6090
+ unread: false,
6091
+ text: "",
6092
+ references: compose.references ?? [],
6093
+ attachments: compose.attachments.map((a2, i2) => ({
6094
+ ...a2,
6095
+ id: String(i2),
6096
+ content_base64: null
6097
+ }))
6098
+ };
6099
+ const recipients = [
6100
+ ...new Set([...compose.to, ...compose.cc, ...compose.bcc].map((r2) => r2.email.toLowerCase()))
6101
+ ];
6102
+ const sealed = await sealSecureMail(raw, metadata, senderPublicKey);
6103
+ return {
6104
+ request_id: requestId,
6105
+ draft_id: compose.draft_id,
6106
+ recipients: recipients.map((email) => ({
6107
+ id: crypto.randomUUID(),
6108
+ email,
6109
+ fragment_key: sealed.fragment_key
6110
+ })),
6111
+ ciphertext: sealed.ciphertext,
6112
+ metadata_ciphertext: sealed.metadata_ciphertext,
6113
+ sender_wrapped_key: sealed.sender_wrapped_key,
6114
+ frontend_origin: frontendOrigin
6115
+ };
6116
+ } finally {
6117
+ raw.fill(0);
6118
+ }
6119
+ }
6120
+ async function claimSecureMail(mail, id, fragmentKey, recipientPublicKey) {
6121
+ const key = decodeSecureMailKey(fragmentKey);
6122
+ try {
6123
+ const path2 = `/secure/${encodeURIComponent(id)}`;
6124
+ const response = await mail(path2);
6125
+ const { raw } = await openSecureMail(await response.json(), key);
6126
+ raw.fill(0);
6127
+ const claim = await secureMailClaim(key, recipientPublicKey);
6128
+ const claimed = await mail(`${path2}/claim`, { method: "POST", body: JSON.stringify(claim) });
6129
+ return await claimed.json();
6130
+ } finally {
6131
+ key.fill(0);
6132
+ }
6133
+ }
6134
+
5987
6135
  // src/operations/workspaces.ts
5988
6136
  var workspaces_exports = {};
5989
6137
  __export(workspaces_exports, {
@@ -9621,7 +9769,6 @@ __export(mail_exports, {
9621
9769
  NATIVE_ACCOUNT: () => NATIVE_ACCOUNT,
9622
9770
  attachmentFromBytes: () => attachmentFromBytes,
9623
9771
  claimNativeAlias: () => claimNativeAlias,
9624
- claimSecureMail: () => claimSecureMail,
9625
9772
  createMailFetch: () => createMailFetch,
9626
9773
  downloadAttachment: () => downloadAttachment,
9627
9774
  getMailPolicy: () => getMailPolicy,
@@ -9727,28 +9874,16 @@ async function unlockNativeMail(mail, keys) {
9727
9874
  secretKey.fill(0);
9728
9875
  }
9729
9876
  }
9730
- async function claimSecureMail(mail, id, fragmentKey, recipientPublicKey) {
9731
- const key = decodeSecureMailKey(fragmentKey);
9732
- try {
9733
- const path2 = `/secure/${encodeURIComponent(id)}`;
9734
- const { raw } = await openSecureMail(await json(mail(path2)), key);
9735
- raw.fill(0);
9736
- const claim = await secureMailClaim(key, recipientPublicKey);
9737
- return await json(mail(`${path2}/claim`, { method: "POST", body: JSON.stringify(claim) }));
9738
- } finally {
9739
- key.fill(0);
9740
- }
9741
- }
9742
9877
  function attachmentFromBytes(name, contentType, bytes) {
9743
9878
  return {
9744
9879
  id: "",
9745
9880
  name,
9746
9881
  content_type: contentType,
9747
9882
  size: bytes.length,
9748
- content_base64: bytesToBase643(bytes)
9883
+ content_base64: bytesToBase644(bytes)
9749
9884
  };
9750
9885
  }
9751
- function bytesToBase643(bytes) {
9886
+ function bytesToBase644(bytes) {
9752
9887
  let binary = "";
9753
9888
  for (let i2 = 0; i2 < bytes.length; i2 += 32768) {
9754
9889
  binary += String.fromCharCode(...bytes.subarray(i2, i2 + 32768));
@@ -11210,6 +11345,10 @@ var Arbi = class {
11210
11345
  if (target) await this.openWorkspace(target);
11211
11346
  return target;
11212
11347
  }
11348
+ /** {@link targetWorkspace} for a call that cannot go without one: throws when none is known. */
11349
+ async requireTargetWorkspace(workspaceId) {
11350
+ return await this.targetWorkspace(workspaceId) ?? this.requireWorkspace();
11351
+ }
11213
11352
  /**
11214
11353
  * Make a workspace the CURRENT one: decrypt its key, open it on the server (which makes it the
11215
11354
  * session's active workspace) and record it in the session. This is navigation: only the host's
@@ -11823,20 +11962,23 @@ var Arbi = class {
11823
11962
  finaliseTranslation: (docId) => finaliseTranslation(this.requireClient(), docId),
11824
11963
  delete: (externalIds) => deleteDocuments(this.requireClient(), externalIds),
11825
11964
  update: (documents) => updateDocuments(this.requireClient(), documents),
11826
- uploadUrl: (urls, options) => {
11827
- this.requireWorkspace();
11828
- return uploadUrl(
11829
- this.requireClient(),
11830
- urls,
11831
- options?.shared,
11832
- options?.configExtId
11833
- );
11965
+ /** Make documents from web addresses in the current workspace, or `options.workspaceId`. */
11966
+ uploadUrl: async (urls, options) => {
11967
+ const { workspaceId, ...rest } = options ?? {};
11968
+ return uploadUrl(this.requireClient(), urls, {
11969
+ workspaceExtId: await this.requireTargetWorkspace(workspaceId),
11970
+ ...rest
11971
+ });
11834
11972
  },
11835
11973
  /**
11836
- * Upload files in one request (the open workspace, or `options.workspaceExtId`): folder, tag,
11837
- * sharing, config, a new version of a document.
11974
+ * Upload files in one request into the current workspace, or `options.workspaceExtId`: folder,
11975
+ * tag, sharing, config, a new version of a document. The request names the workspace either
11976
+ * way, so a switch while it is in flight cannot move it.
11838
11977
  */
11839
- upload: (files, options) => uploadDocuments(this.requireClient(), files, options),
11978
+ upload: async (files, options) => uploadDocuments(this.requireClient(), files, {
11979
+ ...options,
11980
+ workspaceExtId: await this.requireTargetWorkspace(options?.workspaceExtId ?? void 0)
11981
+ }),
11840
11982
  /** Near-duplicate pairs at or above `threshold` (or one document's, `docId`). */
11841
11983
  similar: (options) => similarDocuments(this.requireClient(), options),
11842
11984
  /**
@@ -11861,19 +12003,15 @@ var Arbi = class {
11861
12003
  },
11862
12004
  /**
11863
12005
  * Upload files straight to storage, encrypted here with `workspaceKey` (`uploadDocumentsDirect`),
11864
- * into `workspaceId`, which must be the workspace open NOW. `upload-init` and `upload-commit`
11865
- * name no workspace yet (they act on the session's open one), so each runs under
11866
- * `readInWorkspace`: it is not sent, or its answer not kept, unless `workspaceId` is open when
11867
- * it is sent and still when it returns. A switch refuses the upload
11868
- * (`ArbiWorkspaceChangedError`) instead of storing files encrypted with one workspace's key in
11869
- * another. For any other workspace use `upload` with `workspaceExtId`, which names it.
12006
+ * into `workspaceId`, whose key it must be. `upload-init` and `upload-commit` name that
12007
+ * workspace (made usable for this session first, not switched to), so a switch while the
12008
+ * upload runs cannot move the files into another workspace.
11870
12009
  */
11871
- uploadDirect: (workspaceId, workspaceKey, files, options) => {
11872
- if (this.currentWorkspaceId !== workspaceId)
11873
- return Promise.reject(new ArbiWorkspaceChangedError(workspaceId, "uploading to"));
12010
+ uploadDirect: async (workspaceId, workspaceKey, files, options) => {
12011
+ const workspaceExtId = await this.requireTargetWorkspace(workspaceId);
11874
12012
  return uploadDocumentsDirect(this.requireClient(), workspaceKey, files, {
11875
12013
  ...options,
11876
- inWorkspace: (send) => this.readInWorkspace(workspaceId, send)
12014
+ workspaceExtId
11877
12015
  });
11878
12016
  },
11879
12017
  /** Download a document's original file — its current version, or `version`. */
@@ -12030,6 +12168,42 @@ var Arbi = class {
12030
12168
  });
12031
12169
  }
12032
12170
  };
12171
+ // ── Secure mail ─────────────────────────────────────────────────────
12172
+ /**
12173
+ * Mail to anyone, sealed in this browser under a key that travels only in the link's fragment
12174
+ * (see `operations/secure-mail`). Both sides use the signed-in user's encryption key: the
12175
+ * login's, or (a new tab not signed in to the server yet) the one kept on this device.
12176
+ */
12177
+ secureMail = {
12178
+ /**
12179
+ * The `/secure/send` payload for `compose` from `account`, shown with the user's own name.
12180
+ * Links open on `frontendOrigin` (default: this page's origin).
12181
+ */
12182
+ prepare: async (compose, account, requestId, frontendOrigin = globalThis.location?.origin ?? "") => {
12183
+ const user = this.client?.session.getState().user;
12184
+ const name = user ? [user.given_name, user.family_name] : [this.userProfile?.givenName, this.userProfile?.familyName];
12185
+ const senderName = name.filter(Boolean).join(" ");
12186
+ return prepareSecureMail(
12187
+ compose,
12188
+ { ...account, display_name: senderName || account.display_name },
12189
+ { requestId, senderPublicKey: await this.encryptionPublicKey(), frontendOrigin }
12190
+ );
12191
+ },
12192
+ /**
12193
+ * Claim the secure message `id` with the key from its link into the user's native inbox, over
12194
+ * `mail` (default: this session's mail transport). Resolves to the message's id there.
12195
+ */
12196
+ claim: async (id, fragmentKey, mail = this.mail.fetch) => claimSecureMail(mail, id, fragmentKey, await this.encryptionPublicKey())
12197
+ };
12198
+ /** The signed-in user's X25519 public key (from the identity key; its secret half is wiped). */
12199
+ async encryptionPublicKey() {
12200
+ const signingKey = this.loginResult?.signingPrivateKey ?? (await this.client?.storage.getSession().catch(() => null))?.signingPrivateKey;
12201
+ if (!signingKey) throw new ArbiError("Sign in again to unlock your encryption key");
12202
+ await initSodium();
12203
+ const pair = encryptionKeypairFromSigningKey(signingKey);
12204
+ pair.secretKey.fill(0);
12205
+ return pair.publicKey;
12206
+ }
12033
12207
  async openResponseHandle(open, options, id, bufferEvents = false) {
12034
12208
  const controller = new AbortController();
12035
12209
  const abort = () => controller.abort();
@@ -13852,6 +14026,6 @@ function composeTools(base, next, mode) {
13852
14026
  return structuredClone(mode === "add" ? { ...base, ...next } : next);
13853
14027
  }
13854
14028
 
13855
- export { ACCOUNT_VENDOR, Arbi, ArbiApiError, ArbiError, ArbiSessionExpiredError, ArbiStructuredOutputError, ArbiTransportError, ArbiWorkspaceChangedError, ArbiWorkspaceSupersededError, ArbiWorkspaceUnavailableError, CallApiError, DEFAULT_AI_USD_PER_GBP, DRIVE_SYNC_VENDORS, DuplicateContactError, ENTITY_KINDS, FLAT_TAG_KINDS, GOOGLE_VENDORS, IMANAGE_VENDORS, MAILBOX_SYNC_VENDORS, MAX_RETRIEVE_DOC_IDS, MICROSOFT_VENDORS, PRESENCE_KINDS, PROMPT_CONTEXT_CHARS, PlanStepsError, PublicBookingError, ResponseStream, SHAREPOINT_VENDORS, STOP_ID_WAIT_MS, STOP_REPEAT_WINDOW_MS, TAG_KINDS, TAG_NESTING_MAX_DEPTH, WebSocketAuthError, account_exports as account, agentconfig_exports as agentconfig, appendTranscriptionHints, assistant_exports as assistant, authenticatedFetch, bookPublicSlot, buildCitationChunkData, 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, createIndexAssigner, databases_exports as databases, defaultKindForFormat, doctags_exports as doctags, documentTools, documents_exports as documents, estimateDraftTokens, extractDocumentIdsFromMessages, extractFactIdsFromMessages, extractSubagentLanes, facts_exports as facts, files_exports as files, filterDocumentTags, filterSkills, findLeafForTaskMessage, findMainSiblingLeaf, findReplyTarget, findSubagentRunId, flattenTagTree, formatAgentStepLabel, formatFileSize, formatGbp, formatGbpPerMillionTokens, formatItemLabel, formatTokens, formatUserName, formatWorkspaceChoices, 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, mail_exports as mail, mcpTools, mergeAgentSteps, model_connections_exports as modelConnections, notifications_exports as notifications, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, parseStructuredResponse, performPasswordLogin, 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, sliceToSubagentThread, streamSSE, stripCitationMarkdown, subagentJobLabel, summarizeCitations, tagUseCount, tags_exports as tags, tagsForScope, tagsOfGroup, topLevelAgentSteps, usdToGbp, work_exports as work, workflow_steps_exports as workflowSteps, workflows_exports as workflows, workspaceConflictOf, workspaces_exports as workspaces, wouldCreateTagCycle };
14029
+ export { ACCOUNT_VENDOR, Arbi, ArbiApiError, ArbiError, ArbiSessionExpiredError, ArbiStructuredOutputError, ArbiTransportError, ArbiWorkspaceChangedError, ArbiWorkspaceSupersededError, ArbiWorkspaceUnavailableError, CallApiError, DEFAULT_AI_USD_PER_GBP, DRIVE_SYNC_VENDORS, DuplicateContactError, ENTITY_KINDS, FLAT_TAG_KINDS, GOOGLE_VENDORS, IMANAGE_VENDORS, MAILBOX_SYNC_VENDORS, MAX_RETRIEVE_DOC_IDS, MICROSOFT_VENDORS, PRESENCE_KINDS, PROMPT_CONTEXT_CHARS, PlanStepsError, PublicBookingError, ResponseStream, SHAREPOINT_VENDORS, STOP_ID_WAIT_MS, STOP_REPEAT_WINDOW_MS, TAG_KINDS, TAG_NESTING_MAX_DEPTH, WebSocketAuthError, account_exports as account, agentconfig_exports as agentconfig, appendTranscriptionHints, assistant_exports as assistant, authenticatedFetch, bookPublicSlot, buildCitationChunkData, 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, createIndexAssigner, databases_exports as databases, defaultKindForFormat, doctags_exports as doctags, documentTools, documents_exports as documents, estimateDraftTokens, extractDocumentIdsFromMessages, extractFactIdsFromMessages, extractSubagentLanes, facts_exports as facts, files_exports as files, filterDocumentTags, filterSkills, findLeafForTaskMessage, findMainSiblingLeaf, findReplyTarget, findSubagentRunId, flattenTagTree, formatAgentStepLabel, formatFileSize, formatGbp, formatGbpPerMillionTokens, formatItemLabel, formatTokens, formatUserName, formatWorkspaceChoices, 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, mail_exports as mail, mcpTools, mergeAgentSteps, model_connections_exports as modelConnections, notifications_exports as notifications, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, parseStructuredResponse, performPasswordLogin, 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, secure_mail_exports as secureMail, selectFullContextDocument, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, sliceToSubagentThread, streamSSE, stripCitationMarkdown, subagentJobLabel, summarizeCitations, tagUseCount, tags_exports as tags, tagsForScope, tagsOfGroup, topLevelAgentSteps, usdToGbp, work_exports as work, workflow_steps_exports as workflowSteps, workflows_exports as workflows, workspaceConflictOf, workspaces_exports as workspaces, wouldCreateTagCycle };
13856
14030
  //# sourceMappingURL=browser.js.map
13857
14031
  //# sourceMappingURL=browser.js.map