@arbidocs/sdk 0.5.76 → 0.5.77

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 DiagnoseOptions, aD as DirectModelUsage, aE as DocInfo, aF as DocInfoMap, aH as DocumentAutomationAction, aK as DocumentSelector, aN as DriveSyncProgress, aO as DriveSyncSummary, aP as DuplicateContactError, aQ as ENTITY_KINDS, aR as EditScope, aS as EntityKind, aT as EventCreateBody, aU as EventPatchBody, aV as FLAT_TAG_KINDS, aW as FactResponse, aX as FactSearchRequest, aY as FactSearchResponse, aZ as FindTimeParams, a$ as FreeBusyEntry, b0 as FullContextSelection, b1 as GOOGLE_VENDORS, b2 as HolidayCountry, b3 as HouseTemplateCandidate, b4 as IMANAGE_VENDORS, b5 as IdentityErrorCode, b6 as IdentityPurchase, b7 as IdentityState, b8 as IdentityStatus, b9 as ImportResult, ba as InvitationRead, bb as JsonSchemaOutputFormat, bc as LinkedRun, be as ListEventsParams, bf as ListFactsOptions, bh as MAILBOX_SYNC_VENDORS, bi as MAX_RETRIEVE_DOC_IDS, bj as MICROSOFT_VENDORS, bm as ModelConnection, bn as OAuthAccountKind, bo as OutputItemDone, bp as OverlayItem, bq as OverlayLayerName, br as PRESENCE_KINDS, bs as PROMPT_CONTEXT_CHARS, bt as ParsedResponse, bu as ParsedSlashCommand, bv as ParsedStructuredResponse, bw as PendingAuthResponse, bx as PersonKey, by as PersonalConnectionInput, bz as PlanStepsError, bA as PlanWorkRequest, bB as ProductResponse, bC as ProjectAddonKind, bD as ProjectAddonSettingsRequest, bE as ProjectBudget, bF as ProjectCheckoutRequest, bG as ProjectConversationUsageResponse, bH as ProjectCreateOptions, bI as ProjectDetails, bJ as ProjectEventKind, bK as ProjectEventResponse, bL as ProjectInvoicesResponse, bM as ProjectNextPeriodAddonsRequest, bN as ProjectPlanChangeRequest, bO as ProjectQuoteRequest, bP as ProjectResponse, bQ as ProjectUpdateRequest, bR as ProjectUsageResponse, bS as PublicBookingError, bT as PublicBookingPage, bU as QuotaExceeded, bV as RaisedSignal, bW as RawResponseEvent, bX as ReconnectOptions, bY as ReconnectableWsConnection, bZ as ResolvedCitation, b$ as RespondParams, c0 as RespondPartstat, c1 as Response, c2 as ResponseCreateRequest, c3 as ResponseCreateResult, c4 as ResponseHandle, c5 as ResponseSnapshot, c6 as ResponseStart, c7 as ResponseStartOptions, c8 as ResponseStream, c9 as ResponseStreamEvent, ca as ResponseTools, cb as RoomCreateBody, cc as RoomQuery, cd as RoomRead, ce as RunProgress, cf as RunStats, cg as RunStep, ch as RunWaitingOn, ci as SHAREPOINT_VENDORS, cj as SSEEvent, ck as SSEStreamCallbacks, cl as SSEStreamOutcome, cm as SSEStreamResult, co as STOP_ID_WAIT_MS, cp as STOP_REPEAT_WINDOW_MS, cr as ScopedTarget, cs as SearchChunk, ct as SecureMailCompose, cu as SecureMailSend, cv as SecureMailSender, cw as SendBack, cx as SetupDiagnostic, cy as SetupReport, cz as ShareRead, cA as ShareRole, cB as SkillSummary, cC as SkippedFile, cD as SlackConnectionStatus, cE as StepActionRequest, cF as StepActivityEvent, cG as StepAssignee, cH as StepDisplay, cI as StepField, cL as StepKind, cM as StepPhase, cN as StepSignal, cO as StepSignalWhen, cP as StepState, cQ as StepStatus, cR as SubagentBranchRecord, cS as SubagentLaneInfo, cT as SubmitBackgroundQueryOptions, cU as SubscribeParams, cV as SupportTicketInput, cW as SyncTriggerResult, cX as TAG_KINDS, cY as TAG_NESTING_MAX_DEPTH, cZ as TagChange, c_ as TagFieldDefinition, c$ as TagGroup, d0 as TagKind, d1 as TagKindField, d2 as TagKindSchema, d3 as TagLinks, d4 as TagListQuery, d5 as TagNode, d6 as TagResponse, d7 as TagScope, d8 as TagTreeRow, d9 as TaskPlan, da as TaskPlanStep, db as TaxQuoteResponse, dc as Thread, dd as ThreadsResponse, de as TimeSuggestion, df as TurnRequest, dg as UpdateConversationRequest, dh as UpdateFactRequest, di as UpdateWorkflowRequest, dm as UploadDocumentsOptions, dn as UploadOptions, dp as UploadProgressListener, dq as UploadResult, dr as UsageBreakdown, ds as UserConnectorEntry, dt as UserDailyUsageResponse, du as UserInfo, dv as WebSocketAuthError, dw as WeeklyHoursSpec, dx as WorkStatus, dy as WorkflowAuthMode, dz as WorkflowResponse, dA as WorkflowRunHistoryResponse, dB as WorkflowRunResponse, dC as WorkspaceConflict, dD as WorkspaceContext, dE as WorkspaceOpenResponse, dF as WorkspaceResponse, dG as WsConnection, dH as account, dI as agentconfig, dK as appendTranscriptionHints, dL as assistant, dM as authenticatedFetch, dN as bookPublicSlot, dO as buildCitationChunkData, dQ as buildDocumentTools, dR as buildFactsContextTool, dS as buildRetrievalChunkTool, dT as buildRetrievalFullContextTool, dU as buildRetrievalTocTool, dV as buildTurnRequest, dW as calendar, dX as calls, dY as canTagHaveParent, dZ as cancelPublicBooking, d_ as capabilities, d$ as chats, e0 as composeConfiguration, e1 as composeTools, e2 as computeRunStats, e3 as connectErrorMessage, e4 as connectWebSocket, e5 as connectWithReconnect, e6 as connectors, e7 as contacts, e8 as continuityPrompt, e9 as conversations, ea as countCitations, eb as createAuthenticatedClient, ed as createIndexAssigner, ee as databases, ef as defaultKindForFormat, eg as diagnoseSetup, eh as doctags, ei as documentTools, ej as documents, ek as estimateDraftTokens, el as extractDocumentIdsFromMessages, em as extractFactIdsFromMessages, en as extractSubagentLanes, eo as facts, ep as files, eq as filterDocumentTags, er as filterSkills, es as findLeafForTaskMessage, et as findMainSiblingLeaf, eu as findReplyTarget, ev as findSubagentRunId, ew as flattenTagTree, ex as formatAgentStepLabel, ey as formatFileSize, ez as formatGbp, eA as formatGbpPerMillionTokens, eB as formatItemLabel, eD as formatTokens, eE as formatUserName, eF as formatWorkspaceChoices, eJ as getAgentStepLabel, eK as getAttachableRunId, eL as getChildTags, eM as getContextRemainingPercent, eN as getContextUsedPercent, eO as getContextUsedTokens, eP as getCurrentStep, eQ as getEligibleParentTags, eR as getErrorCode, eS as getErrorMessage, eT as getPublicBookingPage, eU as getRawWorkspaceKey, eV as getRunToAttach, eW as getRunToCancel, eX as getStepDisplay, eY as getStepTool, eZ as getSubagentBranchRecord, e_ as getTagDescendantIds, e$ as health, f0 as houseTemplates, f1 as hydrateAgentSteps, f3 as identityErrorCode, f2 as identityVerification, f4 as instructions, f5 as isAnnotationTag, f6 as isConnectorVendorVisible, f7 as isDriveSyncVendor, f8 as isEntityTag, f9 as isFlatKind, fa as isLabelTag, fb as isMailboxSyncVendor, fc as isNearAiUsageBudget, fd as isPresenceTag, fe as isSharePointVendor, ff as isSharedSkill, fg as isTraceItem, fh as mail, fi as mcpTools, fj as mergeAgentSteps, fk as modelConnections, fl as notifications, fm as parseSSEEvents, fn as parseSlashCommand, fo as parseSlashTokenInProgress, fp as parseStructuredResponse, fq as performPasswordLogin, ft as pickMainThread, fu as profile, fv as progressFetch, fw as projects, fx as quotaExceededFrom, fy as quotaFromStreamError, fz as reduceOutputItem, fA as refusalReason, fB as requireData, fC as requireOk, fD as resolveAuth, fE as resolveCitations, fF as resolveSummary, fG as resolveWorkspace, fH as responses, fI as searchChunks, fJ as secureMail, fK as selectFullContextDocument, fL as selectWorkspace, fM as selectWorkspaceById, fN as sessions, fO as settings, fQ as sliceToSubagentThread, fR as streamSSE, fS as stripCitationMarkdown, fT as subagentJobLabel, fU as summarizeCitations, fV as support, fW as tagUseCount, fX as tags, fY as tagsForScope, fZ as tagsOfGroup, f_ as topLevelAgentSteps, g0 as usdToGbp, g1 as work, g2 as workflowSteps, g3 as workflows, g4 as workspaceConflictOf, g5 as workspaces, g6 as wouldCreateTagCycle } from './browser-C1bFelgZ.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 DiagnoseOptions, aD as DirectModelUsage, aE as DocInfo, aF as DocInfoMap, aH as DocumentAutomationAction, aK as DocumentSelector, aN as DriveSyncProgress, aO as DriveSyncSummary, aP as DuplicateContactError, aQ as ENTITY_KINDS, aR as EditScope, aS as EntityKind, aT as EventCreateBody, aU as EventPatchBody, aV as FLAT_TAG_KINDS, aW as FactResponse, aX as FactSearchRequest, aY as FactSearchResponse, aZ as FindTimeParams, a$ as FreeBusyEntry, b0 as FullContextSelection, b1 as GOOGLE_VENDORS, b2 as HolidayCountry, b3 as HouseTemplateCandidate, b4 as IMANAGE_VENDORS, b5 as IdentityErrorCode, b6 as IdentityPurchase, b7 as IdentityState, b8 as IdentityStatus, b9 as ImportResult, ba as InvitationRead, bb as JsonSchemaOutputFormat, bc as LinkedRun, be as ListEventsParams, bf as ListFactsOptions, bh as MAILBOX_SYNC_VENDORS, bi as MAX_RETRIEVE_DOC_IDS, bj as MICROSOFT_VENDORS, bm as ModelConnection, bn as OAuthAccountKind, bo as OutputItemDone, bp as OverlayItem, bq as OverlayLayerName, br as PRESENCE_KINDS, bs as PROMPT_CONTEXT_CHARS, bt as ParsedResponse, bu as ParsedSlashCommand, bv as ParsedStructuredResponse, bw as PendingAuthResponse, bx as PersonKey, by as PersonalConnectionInput, bz as PlanStepsError, bA as PlanWorkRequest, bB as ProductResponse, bC as ProjectAddonKind, bD as ProjectAddonSettingsRequest, bE as ProjectBudget, bF as ProjectCheckoutRequest, bG as ProjectConversationUsageResponse, bH as ProjectCreateOptions, bI as ProjectDetails, bJ as ProjectEventKind, bK as ProjectEventResponse, bL as ProjectInvoicesResponse, bM as ProjectNextPeriodAddonsRequest, bN as ProjectPlanChangeRequest, bO as ProjectQuoteRequest, bP as ProjectResponse, bQ as ProjectUpdateRequest, bR as ProjectUsageResponse, bS as PublicBookingError, bT as PublicBookingPage, bU as QuotaExceeded, bV as RaisedSignal, bW as RawResponseEvent, bX as ReconnectOptions, bY as ReconnectableWsConnection, bZ as ResolvedCitation, b$ as RespondParams, c0 as RespondPartstat, c1 as Response, c2 as ResponseCreateRequest, c3 as ResponseCreateResult, c4 as ResponseHandle, c5 as ResponseSnapshot, c6 as ResponseStart, c7 as ResponseStartOptions, c8 as ResponseStream, c9 as ResponseStreamEvent, ca as ResponseTools, cb as RoomCreateBody, cc as RoomQuery, cd as RoomRead, ce as RunProgress, cf as RunStats, cg as RunStep, ch as RunWaitingOn, ci as SHAREPOINT_VENDORS, cj as SSEEvent, ck as SSEStreamCallbacks, cl as SSEStreamOutcome, cm as SSEStreamResult, co as STOP_ID_WAIT_MS, cp as STOP_REPEAT_WINDOW_MS, cr as ScopedTarget, cs as SearchChunk, ct as SecureMailCompose, cu as SecureMailSend, cv as SecureMailSender, cw as SendBack, cx as SetupDiagnostic, cy as SetupReport, cz as ShareRead, cA as ShareRole, cB as SkillSummary, cC as SkippedFile, cD as SlackConnectionStatus, cE as StepActionRequest, cF as StepActivityEvent, cG as StepAssignee, cH as StepDisplay, cI as StepField, cL as StepKind, cM as StepPhase, cN as StepSignal, cO as StepSignalWhen, cP as StepState, cQ as StepStatus, cR as SubagentBranchRecord, cS as SubagentLaneInfo, cT as SubmitBackgroundQueryOptions, cU as SubscribeParams, cV as SupportTicketInput, cW as SyncTriggerResult, cX as TAG_KINDS, cY as TAG_NESTING_MAX_DEPTH, cZ as TagChange, c_ as TagFieldDefinition, c$ as TagGroup, d0 as TagKind, d1 as TagKindField, d2 as TagKindSchema, d3 as TagLinks, d4 as TagListQuery, d5 as TagNode, d6 as TagResponse, d7 as TagScope, d8 as TagTreeRow, d9 as TaskPlan, da as TaskPlanStep, db as TaxQuoteResponse, dc as Thread, dd as ThreadsResponse, de as TimeSuggestion, df as TurnRequest, dg as UpdateConversationRequest, dh as UpdateFactRequest, di as UpdateWorkflowRequest, dm as UploadDocumentsOptions, dn as UploadOptions, dp as UploadProgressListener, dq as UploadResult, dr as UsageBreakdown, ds as UserConnectorEntry, dt as UserDailyUsageResponse, du as UserInfo, dv as WebSocketAuthError, dw as WeeklyHoursSpec, dx as WorkStatus, dy as WorkflowAuthMode, dz as WorkflowResponse, dA as WorkflowRunHistoryResponse, dB as WorkflowRunResponse, dC as WorkspaceConflict, dD as WorkspaceContext, dE as WorkspaceOpenResponse, dF as WorkspaceResponse, dG as WsConnection, dH as account, dI as agentconfig, dK as appendTranscriptionHints, dL as assistant, dM as authenticatedFetch, dN as bookPublicSlot, dO as buildCitationChunkData, dQ as buildDocumentTools, dR as buildFactsContextTool, dS as buildRetrievalChunkTool, dT as buildRetrievalFullContextTool, dU as buildRetrievalTocTool, dV as buildTurnRequest, dW as calendar, dX as calls, dY as canTagHaveParent, dZ as cancelPublicBooking, d_ as capabilities, d$ as chats, e0 as composeConfiguration, e1 as composeTools, e2 as computeRunStats, e3 as connectErrorMessage, e4 as connectWebSocket, e5 as connectWithReconnect, e6 as connectors, e7 as contacts, e8 as continuityPrompt, e9 as conversations, ea as countCitations, eb as createAuthenticatedClient, ed as createIndexAssigner, ee as databases, ef as defaultKindForFormat, eg as diagnoseSetup, eh as doctags, ei as documentTools, ej as documents, ek as estimateDraftTokens, el as extractDocumentIdsFromMessages, em as extractFactIdsFromMessages, en as extractSubagentLanes, eo as facts, ep as files, eq as filterDocumentTags, er as filterSkills, es as findLeafForTaskMessage, et as findMainSiblingLeaf, eu as findReplyTarget, ev as findSubagentRunId, ew as flattenTagTree, ex as formatAgentStepLabel, ey as formatFileSize, ez as formatGbp, eA as formatGbpPerMillionTokens, eB as formatItemLabel, eD as formatTokens, eE as formatUserName, eF as formatWorkspaceChoices, eJ as getAgentStepLabel, eK as getAttachableRunId, eL as getChildTags, eM as getContextRemainingPercent, eN as getContextUsedPercent, eO as getContextUsedTokens, eP as getCurrentStep, eQ as getEligibleParentTags, eR as getErrorCode, eS as getErrorMessage, eT as getPublicBookingPage, eU as getRawWorkspaceKey, eV as getRunToAttach, eW as getRunToCancel, eX as getStepDisplay, eY as getStepTool, eZ as getSubagentBranchRecord, e_ as getTagDescendantIds, e$ as health, f0 as houseTemplates, f1 as hydrateAgentSteps, f3 as identityErrorCode, f2 as identityVerification, f4 as instructions, f5 as isAnnotationTag, f6 as isConnectorVendorVisible, f7 as isDriveSyncVendor, f8 as isEntityTag, f9 as isFlatKind, fa as isLabelTag, fb as isMailboxSyncVendor, fc as isNearAiUsageBudget, fd as isPresenceTag, fe as isSharePointVendor, ff as isSharedSkill, fg as isTraceItem, fh as mail, fi as mcpTools, fj as mergeAgentSteps, fk as modelConnections, fl as notifications, fm as parseSSEEvents, fn as parseSlashCommand, fo as parseSlashTokenInProgress, fp as parseStructuredResponse, fq as performPasswordLogin, ft as pickMainThread, fu as profile, fv as progressFetch, fw as projects, fx as quotaExceededFrom, fy as quotaFromStreamError, fz as reduceOutputItem, fA as refusalReason, fB as requireData, fC as requireOk, fD as resolveAuth, fE as resolveCitations, fF as resolveSummary, fG as resolveWorkspace, fH as responses, fI as searchChunks, fJ as secureMail, fK as selectFullContextDocument, fL as selectWorkspace, fM as selectWorkspaceById, fN as sessions, fO as settings, fQ as sliceToSubagentThread, fR as streamSSE, fS as stripCitationMarkdown, fT as subagentJobLabel, fU as summarizeCitations, fV as support, fW as tagUseCount, fX as tags, fY as tagsForScope, fZ as tagsOfGroup, f_ as topLevelAgentSteps, g0 as usdToGbp, g1 as work, g2 as workflowSteps, g3 as workflows, g4 as workspaceConflictOf, g5 as workspaces, g6 as wouldCreateTagCycle } from './browser-BMQMb3DJ.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 DiagnoseOptions, aD as DirectModelUsage, aE as DocInfo, aF as DocInfoMap, aH as DocumentAutomationAction, aK as DocumentSelector, aN as DriveSyncProgress, aO as DriveSyncSummary, aP as DuplicateContactError, aQ as ENTITY_KINDS, aR as EditScope, aS as EntityKind, aT as EventCreateBody, aU as EventPatchBody, aV as FLAT_TAG_KINDS, aW as FactResponse, aX as FactSearchRequest, aY as FactSearchResponse, aZ as FindTimeParams, a$ as FreeBusyEntry, b0 as FullContextSelection, b1 as GOOGLE_VENDORS, b2 as HolidayCountry, b3 as HouseTemplateCandidate, b4 as IMANAGE_VENDORS, b5 as IdentityErrorCode, b6 as IdentityPurchase, b7 as IdentityState, b8 as IdentityStatus, b9 as ImportResult, ba as InvitationRead, bb as JsonSchemaOutputFormat, bc as LinkedRun, be as ListEventsParams, bf as ListFactsOptions, bh as MAILBOX_SYNC_VENDORS, bi as MAX_RETRIEVE_DOC_IDS, bj as MICROSOFT_VENDORS, bm as ModelConnection, bn as OAuthAccountKind, bo as OutputItemDone, bp as OverlayItem, bq as OverlayLayerName, br as PRESENCE_KINDS, bs as PROMPT_CONTEXT_CHARS, bt as ParsedResponse, bu as ParsedSlashCommand, bv as ParsedStructuredResponse, bw as PendingAuthResponse, bx as PersonKey, by as PersonalConnectionInput, bz as PlanStepsError, bA as PlanWorkRequest, bB as ProductResponse, bC as ProjectAddonKind, bD as ProjectAddonSettingsRequest, bE as ProjectBudget, bF as ProjectCheckoutRequest, bG as ProjectConversationUsageResponse, bH as ProjectCreateOptions, bI as ProjectDetails, bJ as ProjectEventKind, bK as ProjectEventResponse, bL as ProjectInvoicesResponse, bM as ProjectNextPeriodAddonsRequest, bN as ProjectPlanChangeRequest, bO as ProjectQuoteRequest, bP as ProjectResponse, bQ as ProjectUpdateRequest, bR as ProjectUsageResponse, bS as PublicBookingError, bT as PublicBookingPage, bU as QuotaExceeded, bV as RaisedSignal, bW as RawResponseEvent, bX as ReconnectOptions, bY as ReconnectableWsConnection, bZ as ResolvedCitation, b$ as RespondParams, c0 as RespondPartstat, c1 as Response, c2 as ResponseCreateRequest, c3 as ResponseCreateResult, c4 as ResponseHandle, c5 as ResponseSnapshot, c6 as ResponseStart, c7 as ResponseStartOptions, c8 as ResponseStream, c9 as ResponseStreamEvent, ca as ResponseTools, cb as RoomCreateBody, cc as RoomQuery, cd as RoomRead, ce as RunProgress, cf as RunStats, cg as RunStep, ch as RunWaitingOn, ci as SHAREPOINT_VENDORS, cj as SSEEvent, ck as SSEStreamCallbacks, cl as SSEStreamOutcome, cm as SSEStreamResult, co as STOP_ID_WAIT_MS, cp as STOP_REPEAT_WINDOW_MS, cr as ScopedTarget, cs as SearchChunk, ct as SecureMailCompose, cu as SecureMailSend, cv as SecureMailSender, cw as SendBack, cx as SetupDiagnostic, cy as SetupReport, cz as ShareRead, cA as ShareRole, cB as SkillSummary, cC as SkippedFile, cD as SlackConnectionStatus, cE as StepActionRequest, cF as StepActivityEvent, cG as StepAssignee, cH as StepDisplay, cI as StepField, cL as StepKind, cM as StepPhase, cN as StepSignal, cO as StepSignalWhen, cP as StepState, cQ as StepStatus, cR as SubagentBranchRecord, cS as SubagentLaneInfo, cT as SubmitBackgroundQueryOptions, cU as SubscribeParams, cV as SupportTicketInput, cW as SyncTriggerResult, cX as TAG_KINDS, cY as TAG_NESTING_MAX_DEPTH, cZ as TagChange, c_ as TagFieldDefinition, c$ as TagGroup, d0 as TagKind, d1 as TagKindField, d2 as TagKindSchema, d3 as TagLinks, d4 as TagListQuery, d5 as TagNode, d6 as TagResponse, d7 as TagScope, d8 as TagTreeRow, d9 as TaskPlan, da as TaskPlanStep, db as TaxQuoteResponse, dc as Thread, dd as ThreadsResponse, de as TimeSuggestion, df as TurnRequest, dg as UpdateConversationRequest, dh as UpdateFactRequest, di as UpdateWorkflowRequest, dm as UploadDocumentsOptions, dn as UploadOptions, dp as UploadProgressListener, dq as UploadResult, dr as UsageBreakdown, ds as UserConnectorEntry, dt as UserDailyUsageResponse, du as UserInfo, dv as WebSocketAuthError, dw as WeeklyHoursSpec, dx as WorkStatus, dy as WorkflowAuthMode, dz as WorkflowResponse, dA as WorkflowRunHistoryResponse, dB as WorkflowRunResponse, dC as WorkspaceConflict, dD as WorkspaceContext, dE as WorkspaceOpenResponse, dF as WorkspaceResponse, dG as WsConnection, dH as account, dI as agentconfig, dK as appendTranscriptionHints, dL as assistant, dM as authenticatedFetch, dN as bookPublicSlot, dO as buildCitationChunkData, dQ as buildDocumentTools, dR as buildFactsContextTool, dS as buildRetrievalChunkTool, dT as buildRetrievalFullContextTool, dU as buildRetrievalTocTool, dV as buildTurnRequest, dW as calendar, dX as calls, dY as canTagHaveParent, dZ as cancelPublicBooking, d_ as capabilities, d$ as chats, e0 as composeConfiguration, e1 as composeTools, e2 as computeRunStats, e3 as connectErrorMessage, e4 as connectWebSocket, e5 as connectWithReconnect, e6 as connectors, e7 as contacts, e8 as continuityPrompt, e9 as conversations, ea as countCitations, eb as createAuthenticatedClient, ed as createIndexAssigner, ee as databases, ef as defaultKindForFormat, eg as diagnoseSetup, eh as doctags, ei as documentTools, ej as documents, ek as estimateDraftTokens, el as extractDocumentIdsFromMessages, em as extractFactIdsFromMessages, en as extractSubagentLanes, eo as facts, ep as files, eq as filterDocumentTags, er as filterSkills, es as findLeafForTaskMessage, et as findMainSiblingLeaf, eu as findReplyTarget, ev as findSubagentRunId, ew as flattenTagTree, ex as formatAgentStepLabel, ey as formatFileSize, ez as formatGbp, eA as formatGbpPerMillionTokens, eB as formatItemLabel, eD as formatTokens, eE as formatUserName, eF as formatWorkspaceChoices, eJ as getAgentStepLabel, eK as getAttachableRunId, eL as getChildTags, eM as getContextRemainingPercent, eN as getContextUsedPercent, eO as getContextUsedTokens, eP as getCurrentStep, eQ as getEligibleParentTags, eR as getErrorCode, eS as getErrorMessage, eT as getPublicBookingPage, eU as getRawWorkspaceKey, eV as getRunToAttach, eW as getRunToCancel, eX as getStepDisplay, eY as getStepTool, eZ as getSubagentBranchRecord, e_ as getTagDescendantIds, e$ as health, f0 as houseTemplates, f1 as hydrateAgentSteps, f3 as identityErrorCode, f2 as identityVerification, f4 as instructions, f5 as isAnnotationTag, f6 as isConnectorVendorVisible, f7 as isDriveSyncVendor, f8 as isEntityTag, f9 as isFlatKind, fa as isLabelTag, fb as isMailboxSyncVendor, fc as isNearAiUsageBudget, fd as isPresenceTag, fe as isSharePointVendor, ff as isSharedSkill, fg as isTraceItem, fh as mail, fi as mcpTools, fj as mergeAgentSteps, fk as modelConnections, fl as notifications, fm as parseSSEEvents, fn as parseSlashCommand, fo as parseSlashTokenInProgress, fp as parseStructuredResponse, fq as performPasswordLogin, ft as pickMainThread, fu as profile, fv as progressFetch, fw as projects, fx as quotaExceededFrom, fy as quotaFromStreamError, fz as reduceOutputItem, fA as refusalReason, fB as requireData, fC as requireOk, fD as resolveAuth, fE as resolveCitations, fF as resolveSummary, fG as resolveWorkspace, fH as responses, fI as searchChunks, fJ as secureMail, fK as selectFullContextDocument, fL as selectWorkspace, fM as selectWorkspaceById, fN as sessions, fO as settings, fQ as sliceToSubagentThread, fR as streamSSE, fS as stripCitationMarkdown, fT as subagentJobLabel, fU as summarizeCitations, fV as support, fW as tagUseCount, fX as tags, fY as tagsForScope, fZ as tagsOfGroup, f_ as topLevelAgentSteps, g0 as usdToGbp, g1 as work, g2 as workflowSteps, g3 as workflows, g4 as workspaceConflictOf, g5 as workspaces, g6 as wouldCreateTagCycle } from './browser-CkjCLAZL.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 DiagnoseOptions, aD as DirectModelUsage, aE as DocInfo, aF as DocInfoMap, aH as DocumentAutomationAction, aK as DocumentSelector, aN as DriveSyncProgress, aO as DriveSyncSummary, aP as DuplicateContactError, aQ as ENTITY_KINDS, aR as EditScope, aS as EntityKind, aT as EventCreateBody, aU as EventPatchBody, aV as FLAT_TAG_KINDS, aW as FactResponse, aX as FactSearchRequest, aY as FactSearchResponse, aZ as FindTimeParams, a$ as FreeBusyEntry, b0 as FullContextSelection, b1 as GOOGLE_VENDORS, b2 as HolidayCountry, b3 as HouseTemplateCandidate, b4 as IMANAGE_VENDORS, b5 as IdentityErrorCode, b6 as IdentityPurchase, b7 as IdentityState, b8 as IdentityStatus, b9 as ImportResult, ba as InvitationRead, bb as JsonSchemaOutputFormat, bc as LinkedRun, be as ListEventsParams, bf as ListFactsOptions, bh as MAILBOX_SYNC_VENDORS, bi as MAX_RETRIEVE_DOC_IDS, bj as MICROSOFT_VENDORS, bm as ModelConnection, bn as OAuthAccountKind, bo as OutputItemDone, bp as OverlayItem, bq as OverlayLayerName, br as PRESENCE_KINDS, bs as PROMPT_CONTEXT_CHARS, bt as ParsedResponse, bu as ParsedSlashCommand, bv as ParsedStructuredResponse, bw as PendingAuthResponse, bx as PersonKey, by as PersonalConnectionInput, bz as PlanStepsError, bA as PlanWorkRequest, bB as ProductResponse, bC as ProjectAddonKind, bD as ProjectAddonSettingsRequest, bE as ProjectBudget, bF as ProjectCheckoutRequest, bG as ProjectConversationUsageResponse, bH as ProjectCreateOptions, bI as ProjectDetails, bJ as ProjectEventKind, bK as ProjectEventResponse, bL as ProjectInvoicesResponse, bM as ProjectNextPeriodAddonsRequest, bN as ProjectPlanChangeRequest, bO as ProjectQuoteRequest, bP as ProjectResponse, bQ as ProjectUpdateRequest, bR as ProjectUsageResponse, bS as PublicBookingError, bT as PublicBookingPage, bU as QuotaExceeded, bV as RaisedSignal, bW as RawResponseEvent, bX as ReconnectOptions, bY as ReconnectableWsConnection, bZ as ResolvedCitation, b$ as RespondParams, c0 as RespondPartstat, c1 as Response, c2 as ResponseCreateRequest, c3 as ResponseCreateResult, c4 as ResponseHandle, c5 as ResponseSnapshot, c6 as ResponseStart, c7 as ResponseStartOptions, c8 as ResponseStream, c9 as ResponseStreamEvent, ca as ResponseTools, cb as RoomCreateBody, cc as RoomQuery, cd as RoomRead, ce as RunProgress, cf as RunStats, cg as RunStep, ch as RunWaitingOn, ci as SHAREPOINT_VENDORS, cj as SSEEvent, ck as SSEStreamCallbacks, cl as SSEStreamOutcome, cm as SSEStreamResult, co as STOP_ID_WAIT_MS, cp as STOP_REPEAT_WINDOW_MS, cr as ScopedTarget, cs as SearchChunk, ct as SecureMailCompose, cu as SecureMailSend, cv as SecureMailSender, cw as SendBack, cx as SetupDiagnostic, cy as SetupReport, cz as ShareRead, cA as ShareRole, cB as SkillSummary, cC as SkippedFile, cD as SlackConnectionStatus, cE as StepActionRequest, cF as StepActivityEvent, cG as StepAssignee, cH as StepDisplay, cI as StepField, cL as StepKind, cM as StepPhase, cN as StepSignal, cO as StepSignalWhen, cP as StepState, cQ as StepStatus, cR as SubagentBranchRecord, cS as SubagentLaneInfo, cT as SubmitBackgroundQueryOptions, cU as SubscribeParams, cV as SupportTicketInput, cW as SyncTriggerResult, cX as TAG_KINDS, cY as TAG_NESTING_MAX_DEPTH, cZ as TagChange, c_ as TagFieldDefinition, c$ as TagGroup, d0 as TagKind, d1 as TagKindField, d2 as TagKindSchema, d3 as TagLinks, d4 as TagListQuery, d5 as TagNode, d6 as TagResponse, d7 as TagScope, d8 as TagTreeRow, d9 as TaskPlan, da as TaskPlanStep, db as TaxQuoteResponse, dc as Thread, dd as ThreadsResponse, de as TimeSuggestion, df as TurnRequest, dg as UpdateConversationRequest, dh as UpdateFactRequest, di as UpdateWorkflowRequest, dm as UploadDocumentsOptions, dn as UploadOptions, dp as UploadProgressListener, dq as UploadResult, dr as UsageBreakdown, ds as UserConnectorEntry, dt as UserDailyUsageResponse, du as UserInfo, dv as WebSocketAuthError, dw as WeeklyHoursSpec, dx as WorkStatus, dy as WorkflowAuthMode, dz as WorkflowResponse, dA as WorkflowRunHistoryResponse, dB as WorkflowRunResponse, dC as WorkspaceConflict, dD as WorkspaceContext, dE as WorkspaceOpenResponse, dF as WorkspaceResponse, dG as WsConnection, dH as account, dI as agentconfig, dK as appendTranscriptionHints, dL as assistant, dM as authenticatedFetch, dN as bookPublicSlot, dO as buildCitationChunkData, dQ as buildDocumentTools, dR as buildFactsContextTool, dS as buildRetrievalChunkTool, dT as buildRetrievalFullContextTool, dU as buildRetrievalTocTool, dV as buildTurnRequest, dW as calendar, dX as calls, dY as canTagHaveParent, dZ as cancelPublicBooking, d_ as capabilities, d$ as chats, e0 as composeConfiguration, e1 as composeTools, e2 as computeRunStats, e3 as connectErrorMessage, e4 as connectWebSocket, e5 as connectWithReconnect, e6 as connectors, e7 as contacts, e8 as continuityPrompt, e9 as conversations, ea as countCitations, eb as createAuthenticatedClient, ed as createIndexAssigner, ee as databases, ef as defaultKindForFormat, eg as diagnoseSetup, eh as doctags, ei as documentTools, ej as documents, ek as estimateDraftTokens, el as extractDocumentIdsFromMessages, em as extractFactIdsFromMessages, en as extractSubagentLanes, eo as facts, ep as files, eq as filterDocumentTags, er as filterSkills, es as findLeafForTaskMessage, et as findMainSiblingLeaf, eu as findReplyTarget, ev as findSubagentRunId, ew as flattenTagTree, ex as formatAgentStepLabel, ey as formatFileSize, ez as formatGbp, eA as formatGbpPerMillionTokens, eB as formatItemLabel, eD as formatTokens, eE as formatUserName, eF as formatWorkspaceChoices, eJ as getAgentStepLabel, eK as getAttachableRunId, eL as getChildTags, eM as getContextRemainingPercent, eN as getContextUsedPercent, eO as getContextUsedTokens, eP as getCurrentStep, eQ as getEligibleParentTags, eR as getErrorCode, eS as getErrorMessage, eT as getPublicBookingPage, eU as getRawWorkspaceKey, eV as getRunToAttach, eW as getRunToCancel, eX as getStepDisplay, eY as getStepTool, eZ as getSubagentBranchRecord, e_ as getTagDescendantIds, e$ as health, f0 as houseTemplates, f1 as hydrateAgentSteps, f3 as identityErrorCode, f2 as identityVerification, f4 as instructions, f5 as isAnnotationTag, f6 as isConnectorVendorVisible, f7 as isDriveSyncVendor, f8 as isEntityTag, f9 as isFlatKind, fa as isLabelTag, fb as isMailboxSyncVendor, fc as isNearAiUsageBudget, fd as isPresenceTag, fe as isSharePointVendor, ff as isSharedSkill, fg as isTraceItem, fh as mail, fi as mcpTools, fj as mergeAgentSteps, fk as modelConnections, fl as notifications, fm as parseSSEEvents, fn as parseSlashCommand, fo as parseSlashTokenInProgress, fp as parseStructuredResponse, fq as performPasswordLogin, ft as pickMainThread, fu as profile, fv as progressFetch, fw as projects, fx as quotaExceededFrom, fy as quotaFromStreamError, fz as reduceOutputItem, fA as refusalReason, fB as requireData, fC as requireOk, fD as resolveAuth, fE as resolveCitations, fF as resolveSummary, fG as resolveWorkspace, fH as responses, fI as searchChunks, fJ as secureMail, fK as selectFullContextDocument, fL as selectWorkspace, fM as selectWorkspaceById, fN as sessions, fO as settings, fQ as sliceToSubagentThread, fR as streamSSE, fS as stripCitationMarkdown, fT as subagentJobLabel, fU as summarizeCitations, fV as support, fW as tagUseCount, fX as tags, fY as tagsForScope, fZ as tagsOfGroup, f_ as topLevelAgentSteps, g0 as usdToGbp, g1 as work, g2 as workflowSteps, g3 as workflows, g4 as workspaceConflictOf, g5 as workspaces, g6 as wouldCreateTagCycle } from './browser-CNfgaMuJ.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
@@ -9961,8 +9961,10 @@ __export(mail_exports, {
9961
9961
  listFolders: () => listFolders,
9962
9962
  listMailAccounts: () => listMailAccounts,
9963
9963
  listMessages: () => listMessages,
9964
+ openDraftEditor: () => openDraftEditor,
9964
9965
  saveDraft: () => saveDraft,
9965
9966
  sendMessage: () => sendMessage,
9967
+ unlockMailCredentials: () => unlockMailCredentials,
9966
9968
  unlockNativeMail: () => unlockNativeMail,
9967
9969
  updateMessage: () => updateMessage
9968
9970
  });
@@ -10059,6 +10061,47 @@ async function unlockNativeMail(mail, keys) {
10059
10061
  secretKey.fill(0);
10060
10062
  }
10061
10063
  }
10064
+ async function unlockMailCredentials(mail, accountId, keys) {
10065
+ await initSodium();
10066
+ const secretKey = encryptionKeypairFromSigningKey(keys.signingPrivateKey).secretKey;
10067
+ const { sealed_credentials } = await json(
10068
+ mail(`${accountPath(accountId)}/sealed-credentials`)
10069
+ );
10070
+ const bytes = sealedBoxDecrypt(sealed_credentials, secretKey);
10071
+ try {
10072
+ const access = await sealKeyForSession(bytes, keys.serverSessionKey);
10073
+ await mail(`${accountPath(accountId)}/session-credentials`, {
10074
+ method: "POST",
10075
+ body: JSON.stringify({ access })
10076
+ });
10077
+ } finally {
10078
+ bytes.fill(0);
10079
+ secretKey.fill(0);
10080
+ }
10081
+ }
10082
+ async function openDraftEditor(mail, body, keys) {
10083
+ const open = (extra = {}) => json(
10084
+ mail("/drafts/editor", { method: "POST", body: JSON.stringify({ ...body, ...extra }) })
10085
+ );
10086
+ try {
10087
+ return await open();
10088
+ } catch (error) {
10089
+ const { status, apiError } = error;
10090
+ const locked = apiError?.detail;
10091
+ if (status !== 423 || !locked?.sealed_key || !locked.room_id) throw error;
10092
+ const { signingPrivateKey, serverSessionKey } = await keys();
10093
+ await initSodium();
10094
+ const secretKey = encryptionKeypairFromSigningKey(signingPrivateKey).secretKey;
10095
+ const key = sealedBoxDecrypt(locked.sealed_key, secretKey);
10096
+ try {
10097
+ const sealed = await sealKeyForSession(key, serverSessionKey);
10098
+ return await open({ room_id: locked.room_id, key: sealed });
10099
+ } finally {
10100
+ key.fill(0);
10101
+ secretKey.fill(0);
10102
+ }
10103
+ }
10104
+ }
10062
10105
  function attachmentFromBytes(name, contentType, bytes) {
10063
10106
  return {
10064
10107
  id: "",
@@ -12327,34 +12370,84 @@ var Arbi = class {
12327
12370
  * recovery. Pass `fetch` to the `mail` operations, e.g. `mail.listFolders(arbi.mail.fetch)`.
12328
12371
  */
12329
12372
  mail = {
12330
- /** Fetch a path under `/v1/mail`; rejects a non-2xx response with an `ArbiApiError` (`status`). */
12331
- fetch: (path2, init = {}) => this.recovering(async () => {
12332
- const { baseUrl, accessToken, fetch: send = globalThis.fetch } = this.getAuthHeaders();
12333
- const headers = new Headers(init.headers);
12334
- headers.set("Authorization", `Bearer ${accessToken}`);
12335
- if (init.body && !headers.has("Content-Type"))
12336
- headers.set("Content-Type", "application/json");
12337
- const response = await send(`${baseUrl}/v1/mail${path2}`, { ...init, headers });
12338
- if (!response.ok) {
12339
- const body = await response.json().catch(() => null);
12340
- throw new ArbiApiError(
12341
- typeof body?.detail === "string" ? body.detail : "The mail request could not be completed",
12342
- body,
12343
- response.status
12344
- );
12345
- }
12346
- return response;
12373
+ /**
12374
+ * Fetch a path under `/v1/mail`; rejects a non-2xx response with an `ArbiApiError` (`status`).
12375
+ * A read of the native inbox unlocks it first (`unlockNative`), so mail that arrived since is
12376
+ * readable too; `nativeUnlocked` skips that when the caller already unlocked it for this pass.
12377
+ * With no token yet (a new tab) the session is restored first; a 401 re-logs in and is sent
12378
+ * again once.
12379
+ */
12380
+ fetch: (path2, init = {}, { nativeUnlocked = false } = {}) => this.recovering(async () => {
12381
+ const nativeRead = path2.startsWith("/accounts/native/") && (init.method ?? "GET").toUpperCase() !== "POST";
12382
+ if (nativeRead && !nativeUnlocked) await this.mail.unlockNative();
12383
+ return this.mailRequest(path2, init);
12347
12384
  }),
12348
- /** Unlock the signed-in user's native inbox for this server session (see `unlockNativeMail`). */
12349
- unlockNative: () => {
12350
- const login = this.loginResult;
12351
- if (!login) return Promise.reject(new ArbiError("Sign in to unlock your inbox"));
12352
- return unlockNativeMail(this.mail.fetch, {
12353
- signingPrivateKey: login.signingPrivateKey,
12354
- serverSessionKey: login.serverSessionKey
12355
- });
12356
- }
12385
+ /**
12386
+ * Unlock the signed-in user's native inbox for this server session (see `unlockNativeMail`).
12387
+ * Concurrent calls share one unlock.
12388
+ */
12389
+ unlockNative: () => this.nativeUnlock ??= this.nativeMailKeys().then((keys) => unlockNativeMail(this.mail.fetch, keys)).finally(() => {
12390
+ this.nativeUnlock = null;
12391
+ }),
12392
+ /**
12393
+ * Hand this session what the server needs to read `account`: the native inbox's keys, a
12394
+ * Microsoft or Gmail account's connector tokens, an IMAP account's sealed credentials.
12395
+ */
12396
+ unlockAccount: async (account) => {
12397
+ if (account.provider === "native") return this.mail.unlockNative();
12398
+ if (account.provider === "microsoft" || account.provider === "gmail") {
12399
+ await this.connectors.bridgeTokens({ vendor: account.provider });
12400
+ return;
12401
+ }
12402
+ await unlockMailCredentials(this.mail.fetch, account.id, await this.nativeMailKeys());
12403
+ },
12404
+ /**
12405
+ * Open a native draft's body in the Word editor, unlocking its room for this session with the
12406
+ * user's key when the server asks (see `openDraftEditor`).
12407
+ */
12408
+ openDraftEditor: (body) => openDraftEditor(this.mail.fetch, body, () => this.nativeMailKeys())
12357
12409
  };
12410
+ /** The native inbox unlock in flight (`mail.unlockNative`). */
12411
+ nativeUnlock = null;
12412
+ /** One request under `/v1/mail` on the session's token (see `mail.fetch`). */
12413
+ async mailRequest(path2, init) {
12414
+ const client = this.requireClient();
12415
+ let token = client.session.getState().accessToken;
12416
+ if (!token) token = await client.auth.relogin();
12417
+ if (!token) throw new ArbiError("Sign in again to restore your session");
12418
+ const send = client.http?.fetch ?? globalThis.fetch;
12419
+ const request = (bearer) => {
12420
+ const headers = new Headers(init.headers);
12421
+ headers.set("Authorization", `Bearer ${bearer}`);
12422
+ if (init.body && !headers.has("Content-Type")) headers.set("Content-Type", "application/json");
12423
+ return send(`${this.options.url}/v1/mail${path2}`, { ...init, headers });
12424
+ };
12425
+ let response = await request(token);
12426
+ if (response.status === 401) {
12427
+ const refreshed = await client.auth.relogin();
12428
+ if (refreshed) response = await request(refreshed);
12429
+ }
12430
+ if (!response.ok) {
12431
+ const body = await response.json().catch(() => null);
12432
+ throw new ArbiApiError(
12433
+ typeof body?.detail === "string" ? body.detail : "The mail request could not be completed",
12434
+ body,
12435
+ response.status
12436
+ );
12437
+ }
12438
+ return response;
12439
+ }
12440
+ /**
12441
+ * The keys that unlock the user's mail for this server session: the session's key (current after
12442
+ * a re-login) and the identity key (the login's, or the one kept on this device).
12443
+ */
12444
+ async nativeMailKeys() {
12445
+ const client = this.requireClient();
12446
+ const serverSessionKey = client.session.getState().serverSessionKey ?? this.loginResult?.serverSessionKey ?? null;
12447
+ const signingPrivateKey = this.loginResult?.signingPrivateKey ?? (await client.storage.getSession().catch(() => null))?.signingPrivateKey;
12448
+ if (!serverSessionKey || !signingPrivateKey) throw new ArbiError("Sign in to unlock your inbox");
12449
+ return { signingPrivateKey, serverSessionKey };
12450
+ }
12358
12451
  // ── Secure mail ─────────────────────────────────────────────────────
12359
12452
  /**
12360
12453
  * Mail to anyone, sealed in this browser under a key that travels only in the link's fragment