@arbidocs/sdk 0.4.145 → 0.4.147

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,2 +1,2 @@
1
- export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as AgentControlStateEvent, e as AgentStepDeltaEvent, f as AgentStepEvent, g as AppPassword, h as AppPasswordCreateBody, i as AppPasswordCreated, j as Arbi, k as ArbiApiError, l as ArbiError, m as ArbiErrorEvent, n as ArbiHostSession, o as ArbiOptions, q as ArtifactEvent, 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, C as CalDavConnectBody, z as CalDavProfile, D as CalendarAccount, E as CalendarAccountKind, F as CalendarCreateBody, G as CalendarEvent, H as CalendarKeys, I as CalendarRead, J as CalendarSettings, K as CalendarSettingsBody, L as CalendarUpdate, M as CalendarWindow, N as ChatAttachmentFile, O as ChatAttachmentInput, P as ChatCryptoContext, Q as ChatKeyRing, R as ChatKind, S as ChatMemberKey, T as ChatMemberResponse, U as ChatMessageResponse, V as ChatResponse, W as ChatSession, X as CitationSummary, Y as CitationToolSources, Z as CliConfig, _ as CliCredentials, $ as CommandDescriptor, a0 as ConfigStore, a1 as ConnectOptions, a2 as ConversationResponse, a3 as ConversationUsageResponse, a4 as CreateFactRequest, a5 as CreateFactsRequest, a6 as CreateWorkRequest, a7 as CreateWorkflowRequest, a8 as DEFAULT_AI_USD_PER_GBP, aa as DateTimeSpec, ac as DecryptedChatMessage, ad as DeferredInterjectionEvent, ae as DeploymentHouseTemplate, ag as DocumentAutomationAction, aj as DocumentSelector, am as EditScope, an as EventCreateBody, ao as EventPatchBody, ap as FLAT_TAG_KINDS, aq as FactResponse, ar as FactSearchRequest, as as FactSearchResponse, at as FeedCreateBody, au as FeedLevel, av as FindTimeParams, ax as FreeBusyEntry, ay as HolidayCountry, az as HouseTemplateCandidate, aA as IdentityErrorCode, aB as IdentityPurchase, aC as IdentityState, aD as IdentityStatus, aE as ImportResult, aF as InvitationRead, aG as LinkedRun, aI as ListEventsParams, aJ as ListFactsOptions, aM as MailDraftSSEEvent, aO as MessageMetadataPayload, aP as MessageQueuedEvent, aQ as OAuthAccountKind, aR as OutputTokensDetails, aS as OverlayItem, aT as OverlayLayerName, aU as ParsedSlashCommand, aV as PendingAuthResponse, aW as PersonKey, aX as PlanStepsError, aY as PlanWorkRequest, aZ as ProbeAnswerEvent, a_ as ProjectBudget, a$ as ProjectConversationUsageResponse, b0 as ProjectDetails, b1 as ProjectEventKind, b2 as ProjectEventResponse, b3 as ProjectInvoicesResponse, b4 as ProjectResponse, b5 as ProjectUpdateRequest, b6 as ProjectUsageResponse, b7 as PublicBookingError, b8 as PublicBookingPage, b9 as QueryOptions, ba as RaisedSignal, bb as ReconnectOptions, bc as ReconnectableWsConnection, bd as ResolvedCitation, bf as RespondParams, bg as RespondPartstat, bh as ResponseCompletedEvent, bi as ResponseContentPartAddedEvent, bj as ResponseCreatedEvent, bk as ResponseFailedEvent, bl as ResponseOutputItemAddedEvent, bm as ResponseOutputItemDoneEvent, bn as ResponseOutputTextDeltaEvent, bo as ResponseOutputTextDoneEvent, bp as ResponseUsage, bq as RoomCreateBody, br as RoomQuery, bs as RoomRead, bt as RunProgress, bu as RunStep, bv as RunWaitingOn, bw as SSEEvent, bx as SSEStreamCallbacks, by as SSEStreamResult, bz as SSEStreamStartData, bC as ScopedTarget, bD as SendBack, bE as ShareRead, bF as ShareRole, bG as SkillSummary, bH as SkippedFile, bI as StepActionRequest, bJ as StepActivityEvent, bK as StepAssignee, bL as StepField, bO as StepKind, bP as StepPhase, bQ as StepSignal, bR as StepSignalWhen, bS as StepState, bT as StepStatus, bU as SubmitBackgroundQueryOptions, bV as SubscribeParams, bW as TAG_KINDS, bX as TagChange, bY as TagFieldDefinition, bZ as TagKind, b_ as TagKindField, b$ as TagKindSchema, c0 as TagLinks, c1 as TagListQuery, c2 as TagResponse, c3 as TaskPlan, c4 as TaskPlanStep, c5 as TimeSuggestion, c6 as TokenBudgetContext, c7 as UpdateConversationRequest, c8 as UpdateFactRequest, c9 as UpdateWorkflowRequest, cd as UploadDocumentsOptions, ce as UploadOptions, cf as UploadResult, cg as UsageBreakdown, ch as UserDailyUsageResponse, ci as UserInfo, cj as UserInputRequestEvent, ck as UserMessageEvent, cl as WebSocketAuthError, cm as WeeklyHoursSpec, cn as WorkStatus, co as WorkflowAuthMode, cp as WorkflowResponse, cq as WorkflowRunHistoryResponse, cr as WorkflowRunResponse, cs as WorkspaceContext, ct as WsConnection, cu as account, cv as agentconfig, cx as assistant, cy as authenticatedFetch, cz as bookPublicSlot, cA as buildCitationChunkData, cC as buildFactsContextTool, cD as buildRetrievalChunkTool, cE as buildRetrievalFullContextTool, cF as buildRetrievalTocTool, cG as calendar, cH as cancelPublicBooking, cI as chats, cJ as connectWebSocket, cK as connectWithReconnect, cL as consumeSSEStream, cM as contacts, cN as conversations, cO as countCitations, cP as createAuthenticatedClient, cR as doctags, cS as documents, cT as facts, cU as files, cV as filterSkills, cW as formatAgentStepLabel, cX as formatFileSize, cY as formatGbp, cZ as formatGbpPerMillionTokens, c_ as formatItemLabel, d0 as formatUserName, d1 as formatWorkspaceChoices, d6 as getErrorMessage, d7 as getPublicBookingPage, d8 as getRawWorkspaceKey, d9 as health, da as houseTemplates, dc as identityErrorCode, db as identityVerification, de as mail, df as notifications, dg as parseSSEEvents, dh as parseSlashCommand, di as parseSlashTokenInProgress, dj as performPasswordLogin, dm as profile, dn as projects, dp as requireData, dq as requireOk, dr as resolveAuth, ds as resolveCitations, dt as resolveWorkspace, du as responses, dv as selectWorkspace, dw as selectWorkspaceById, dx as sessions, dy as settings, dA as splitAppPasswords, dB as streamSSE, dC as stripCitationMarkdown, dD as summarizeCitations, dE as tags, dG as usdToGbp, dH as work, dI as workflowSteps, dJ as workflows, dK as workspaces } from './browser-BUKI5Mtb.cjs';
1
+ export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as AgentControlStateEvent, e as AgentStepDeltaEvent, f as AgentStepEvent, g as AppPassword, h as AppPasswordCreateBody, i as AppPasswordCreated, j as Arbi, k as ArbiApiError, l as ArbiError, m as ArbiErrorEvent, n as ArbiHostSession, o as ArbiOptions, q as ArtifactEvent, 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 ChatAttachmentFile, P as ChatAttachmentInput, Q as ChatCryptoContext, R as ChatKeyRing, S as ChatKind, T as ChatMemberKey, U as ChatMemberResponse, V as ChatMessageResponse, W as ChatResponse, X as ChatSession, Y as CitationSummary, Z as CitationToolSources, _ as CliConfig, $ as CliCredentials, a0 as CommandDescriptor, a1 as ConfigStore, a2 as ConnectOptions, a3 as ConnectorCatalogEntry, a4 as ConnectorFolder, a5 as ConnectorSyncProgress, a6 as ConnectorSyncStatus, a7 as ConnectorVendorKey, a8 as ConnectorVisibilitySettings, a9 as ConversationResponse, aa as ConversationUsageResponse, ab as CreateFactRequest, ac as CreateFactsRequest, ad as CreateWorkRequest, ae as CreateWorkflowRequest, af as DEFAULT_AI_USD_PER_GBP, ah as DRIVE_SYNC_VENDORS, ai as DateTimeSpec, ak as DecryptedChatMessage, al as DeferredInterjectionEvent, am as DeploymentHouseTemplate, ao as DocumentAutomationAction, ar as DocumentSelector, au as DriveSyncProgress, av as DriveSyncSummary, aw as EditScope, ax as EventCreateBody, ay as EventPatchBody, az as FLAT_TAG_KINDS, aA as FactResponse, aB as FactSearchRequest, aC as FactSearchResponse, aD as FeedCreateBody, aE as FeedLevel, aF as FindTimeParams, aH as FreeBusyEntry, aI as GOOGLE_VENDORS, aJ as HolidayCountry, aK as HouseTemplateCandidate, aL as IMANAGE_VENDORS, aM as IdentityErrorCode, aN as IdentityPurchase, aO as IdentityState, aP as IdentityStatus, aQ as ImportResult, aR as InvitationRead, aS as LinkedRun, aU as ListEventsParams, aV as ListFactsOptions, aX as MAILBOX_SYNC_VENDORS, aY as MICROSOFT_VENDORS, a_ as MailDraftSSEEvent, b0 as MessageMetadataPayload, b1 as MessageQueuedEvent, b2 as OAuthAccountKind, b3 as OutputTokensDetails, b4 as OverlayItem, b5 as OverlayLayerName, b6 as ParsedSlashCommand, b7 as PendingAuthResponse, b8 as PersonKey, b9 as PlanStepsError, ba as PlanWorkRequest, bb as ProbeAnswerEvent, bc as ProjectBudget, bd as ProjectConversationUsageResponse, be as ProjectDetails, bf as ProjectEventKind, bg as ProjectEventResponse, bh as ProjectInvoicesResponse, bi as ProjectResponse, bj as ProjectUpdateRequest, bk as ProjectUsageResponse, bl as PublicBookingError, bm as PublicBookingPage, bn as QueryOptions, bo as RaisedSignal, bp as ReconnectOptions, bq as ReconnectableWsConnection, br as ResolvedCitation, bt as RespondParams, bu as RespondPartstat, bv as ResponseCompletedEvent, bw as ResponseContentPartAddedEvent, bx as ResponseCreatedEvent, by as ResponseFailedEvent, bz as ResponseOutputItemAddedEvent, bA as ResponseOutputItemDoneEvent, bB as ResponseOutputTextDeltaEvent, bC as ResponseOutputTextDoneEvent, bD as ResponseUsage, bE as RoomCreateBody, bF as RoomQuery, bG as RoomRead, bH as RunProgress, bI as RunStep, bJ as RunWaitingOn, bK as SHAREPOINT_VENDORS, bL as SSEEvent, bM as SSEStreamCallbacks, bN as SSEStreamResult, bO as SSEStreamStartData, bR as ScopedTarget, bS as SendBack, bT as ShareRead, bU as ShareRole, bV as SkillSummary, bW as SkippedFile, bX as SlackConnectionStatus, bY as StepActionRequest, bZ as StepActivityEvent, b_ as StepAssignee, b$ as StepField, c2 as StepKind, c3 as StepPhase, c4 as StepSignal, c5 as StepSignalWhen, c6 as StepState, c7 as StepStatus, c8 as SubmitBackgroundQueryOptions, c9 as SubscribeParams, ca as SyncTriggerResult, cb as TAG_KINDS, cc as TagChange, cd as TagFieldDefinition, ce as TagKind, cf as TagKindField, cg as TagKindSchema, ch as TagLinks, ci as TagListQuery, cj as TagResponse, ck as TaskPlan, cl as TaskPlanStep, cm as TimeSuggestion, cn as TokenBudgetContext, co as UpdateConversationRequest, cp as UpdateFactRequest, cq as UpdateWorkflowRequest, cu as UploadDocumentsOptions, cv as UploadOptions, cw as UploadResult, cx as UsageBreakdown, cy as UserConnectorEntry, cz as UserDailyUsageResponse, cA as UserInfo, cB as UserInputRequestEvent, cC as UserMessageEvent, cD as WebSocketAuthError, cE as WeeklyHoursSpec, cF as WorkStatus, cG as WorkflowAuthMode, cH as WorkflowResponse, cI as WorkflowRunHistoryResponse, cJ as WorkflowRunResponse, cK as WorkspaceContext, cL as WsConnection, cM as account, cN as agentconfig, cP as assistant, cQ as authenticatedFetch, cR as bookPublicSlot, cS as buildCitationChunkData, cU as buildFactsContextTool, cV as buildRetrievalChunkTool, cW as buildRetrievalFullContextTool, cX as buildRetrievalTocTool, cY as calendar, cZ as cancelPublicBooking, c_ as chats, c$ as connectErrorMessage, d0 as connectWebSocket, d1 as connectWithReconnect, d2 as connectors, d3 as consumeSSEStream, d4 as contacts, d5 as conversations, d6 as countCitations, d7 as createAuthenticatedClient, d9 as doctags, da as documents, db as facts, dc as files, dd as filterSkills, de as formatAgentStepLabel, df as formatFileSize, dg as formatGbp, dh as formatGbpPerMillionTokens, di as formatItemLabel, dk as formatUserName, dl as formatWorkspaceChoices, dr as getErrorMessage, ds as getPublicBookingPage, dt as getRawWorkspaceKey, du as health, dv as houseTemplates, dx as identityErrorCode, dw as identityVerification, dy as isConnectorVendorVisible, dz as isDriveSyncVendor, dA as isMailboxSyncVendor, dB as isSharePointVendor, dD as mail, dE as notifications, dF as parseSSEEvents, dG as parseSlashCommand, dH as parseSlashTokenInProgress, dI as performPasswordLogin, dL as profile, dM as projects, dN as requireData, dO as requireOk, dP as resolveAuth, dQ as resolveCitations, dR as resolveWorkspace, dS as responses, dT as selectWorkspace, dU as selectWorkspaceById, dV as sessions, dW as settings, dY as splitAppPasswords, dZ as streamSSE, d_ as stripCitationMarkdown, d$ as summarizeCitations, e0 as tags, e2 as usdToGbp, e3 as work, e4 as workflowSteps, e5 as workflows, e6 as workspaces } from './browser-DK6CvDoH.cjs';
2
2
  export { LoginProfile } from '@arbidocs/client';
package/dist/browser.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as AgentControlStateEvent, e as AgentStepDeltaEvent, f as AgentStepEvent, g as AppPassword, h as AppPasswordCreateBody, i as AppPasswordCreated, j as Arbi, k as ArbiApiError, l as ArbiError, m as ArbiErrorEvent, n as ArbiHostSession, o as ArbiOptions, q as ArtifactEvent, 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, C as CalDavConnectBody, z as CalDavProfile, D as CalendarAccount, E as CalendarAccountKind, F as CalendarCreateBody, G as CalendarEvent, H as CalendarKeys, I as CalendarRead, J as CalendarSettings, K as CalendarSettingsBody, L as CalendarUpdate, M as CalendarWindow, N as ChatAttachmentFile, O as ChatAttachmentInput, P as ChatCryptoContext, Q as ChatKeyRing, R as ChatKind, S as ChatMemberKey, T as ChatMemberResponse, U as ChatMessageResponse, V as ChatResponse, W as ChatSession, X as CitationSummary, Y as CitationToolSources, Z as CliConfig, _ as CliCredentials, $ as CommandDescriptor, a0 as ConfigStore, a1 as ConnectOptions, a2 as ConversationResponse, a3 as ConversationUsageResponse, a4 as CreateFactRequest, a5 as CreateFactsRequest, a6 as CreateWorkRequest, a7 as CreateWorkflowRequest, a8 as DEFAULT_AI_USD_PER_GBP, aa as DateTimeSpec, ac as DecryptedChatMessage, ad as DeferredInterjectionEvent, ae as DeploymentHouseTemplate, ag as DocumentAutomationAction, aj as DocumentSelector, am as EditScope, an as EventCreateBody, ao as EventPatchBody, ap as FLAT_TAG_KINDS, aq as FactResponse, ar as FactSearchRequest, as as FactSearchResponse, at as FeedCreateBody, au as FeedLevel, av as FindTimeParams, ax as FreeBusyEntry, ay as HolidayCountry, az as HouseTemplateCandidate, aA as IdentityErrorCode, aB as IdentityPurchase, aC as IdentityState, aD as IdentityStatus, aE as ImportResult, aF as InvitationRead, aG as LinkedRun, aI as ListEventsParams, aJ as ListFactsOptions, aM as MailDraftSSEEvent, aO as MessageMetadataPayload, aP as MessageQueuedEvent, aQ as OAuthAccountKind, aR as OutputTokensDetails, aS as OverlayItem, aT as OverlayLayerName, aU as ParsedSlashCommand, aV as PendingAuthResponse, aW as PersonKey, aX as PlanStepsError, aY as PlanWorkRequest, aZ as ProbeAnswerEvent, a_ as ProjectBudget, a$ as ProjectConversationUsageResponse, b0 as ProjectDetails, b1 as ProjectEventKind, b2 as ProjectEventResponse, b3 as ProjectInvoicesResponse, b4 as ProjectResponse, b5 as ProjectUpdateRequest, b6 as ProjectUsageResponse, b7 as PublicBookingError, b8 as PublicBookingPage, b9 as QueryOptions, ba as RaisedSignal, bb as ReconnectOptions, bc as ReconnectableWsConnection, bd as ResolvedCitation, bf as RespondParams, bg as RespondPartstat, bh as ResponseCompletedEvent, bi as ResponseContentPartAddedEvent, bj as ResponseCreatedEvent, bk as ResponseFailedEvent, bl as ResponseOutputItemAddedEvent, bm as ResponseOutputItemDoneEvent, bn as ResponseOutputTextDeltaEvent, bo as ResponseOutputTextDoneEvent, bp as ResponseUsage, bq as RoomCreateBody, br as RoomQuery, bs as RoomRead, bt as RunProgress, bu as RunStep, bv as RunWaitingOn, bw as SSEEvent, bx as SSEStreamCallbacks, by as SSEStreamResult, bz as SSEStreamStartData, bC as ScopedTarget, bD as SendBack, bE as ShareRead, bF as ShareRole, bG as SkillSummary, bH as SkippedFile, bI as StepActionRequest, bJ as StepActivityEvent, bK as StepAssignee, bL as StepField, bO as StepKind, bP as StepPhase, bQ as StepSignal, bR as StepSignalWhen, bS as StepState, bT as StepStatus, bU as SubmitBackgroundQueryOptions, bV as SubscribeParams, bW as TAG_KINDS, bX as TagChange, bY as TagFieldDefinition, bZ as TagKind, b_ as TagKindField, b$ as TagKindSchema, c0 as TagLinks, c1 as TagListQuery, c2 as TagResponse, c3 as TaskPlan, c4 as TaskPlanStep, c5 as TimeSuggestion, c6 as TokenBudgetContext, c7 as UpdateConversationRequest, c8 as UpdateFactRequest, c9 as UpdateWorkflowRequest, cd as UploadDocumentsOptions, ce as UploadOptions, cf as UploadResult, cg as UsageBreakdown, ch as UserDailyUsageResponse, ci as UserInfo, cj as UserInputRequestEvent, ck as UserMessageEvent, cl as WebSocketAuthError, cm as WeeklyHoursSpec, cn as WorkStatus, co as WorkflowAuthMode, cp as WorkflowResponse, cq as WorkflowRunHistoryResponse, cr as WorkflowRunResponse, cs as WorkspaceContext, ct as WsConnection, cu as account, cv as agentconfig, cx as assistant, cy as authenticatedFetch, cz as bookPublicSlot, cA as buildCitationChunkData, cC as buildFactsContextTool, cD as buildRetrievalChunkTool, cE as buildRetrievalFullContextTool, cF as buildRetrievalTocTool, cG as calendar, cH as cancelPublicBooking, cI as chats, cJ as connectWebSocket, cK as connectWithReconnect, cL as consumeSSEStream, cM as contacts, cN as conversations, cO as countCitations, cP as createAuthenticatedClient, cR as doctags, cS as documents, cT as facts, cU as files, cV as filterSkills, cW as formatAgentStepLabel, cX as formatFileSize, cY as formatGbp, cZ as formatGbpPerMillionTokens, c_ as formatItemLabel, d0 as formatUserName, d1 as formatWorkspaceChoices, d6 as getErrorMessage, d7 as getPublicBookingPage, d8 as getRawWorkspaceKey, d9 as health, da as houseTemplates, dc as identityErrorCode, db as identityVerification, de as mail, df as notifications, dg as parseSSEEvents, dh as parseSlashCommand, di as parseSlashTokenInProgress, dj as performPasswordLogin, dm as profile, dn as projects, dp as requireData, dq as requireOk, dr as resolveAuth, ds as resolveCitations, dt as resolveWorkspace, du as responses, dv as selectWorkspace, dw as selectWorkspaceById, dx as sessions, dy as settings, dA as splitAppPasswords, dB as streamSSE, dC as stripCitationMarkdown, dD as summarizeCitations, dE as tags, dG as usdToGbp, dH as work, dI as workflowSteps, dJ as workflows, dK as workspaces } from './browser-BUKI5Mtb.js';
1
+ export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as AgentControlStateEvent, e as AgentStepDeltaEvent, f as AgentStepEvent, g as AppPassword, h as AppPasswordCreateBody, i as AppPasswordCreated, j as Arbi, k as ArbiApiError, l as ArbiError, m as ArbiErrorEvent, n as ArbiHostSession, o as ArbiOptions, q as ArtifactEvent, 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 ChatAttachmentFile, P as ChatAttachmentInput, Q as ChatCryptoContext, R as ChatKeyRing, S as ChatKind, T as ChatMemberKey, U as ChatMemberResponse, V as ChatMessageResponse, W as ChatResponse, X as ChatSession, Y as CitationSummary, Z as CitationToolSources, _ as CliConfig, $ as CliCredentials, a0 as CommandDescriptor, a1 as ConfigStore, a2 as ConnectOptions, a3 as ConnectorCatalogEntry, a4 as ConnectorFolder, a5 as ConnectorSyncProgress, a6 as ConnectorSyncStatus, a7 as ConnectorVendorKey, a8 as ConnectorVisibilitySettings, a9 as ConversationResponse, aa as ConversationUsageResponse, ab as CreateFactRequest, ac as CreateFactsRequest, ad as CreateWorkRequest, ae as CreateWorkflowRequest, af as DEFAULT_AI_USD_PER_GBP, ah as DRIVE_SYNC_VENDORS, ai as DateTimeSpec, ak as DecryptedChatMessage, al as DeferredInterjectionEvent, am as DeploymentHouseTemplate, ao as DocumentAutomationAction, ar as DocumentSelector, au as DriveSyncProgress, av as DriveSyncSummary, aw as EditScope, ax as EventCreateBody, ay as EventPatchBody, az as FLAT_TAG_KINDS, aA as FactResponse, aB as FactSearchRequest, aC as FactSearchResponse, aD as FeedCreateBody, aE as FeedLevel, aF as FindTimeParams, aH as FreeBusyEntry, aI as GOOGLE_VENDORS, aJ as HolidayCountry, aK as HouseTemplateCandidate, aL as IMANAGE_VENDORS, aM as IdentityErrorCode, aN as IdentityPurchase, aO as IdentityState, aP as IdentityStatus, aQ as ImportResult, aR as InvitationRead, aS as LinkedRun, aU as ListEventsParams, aV as ListFactsOptions, aX as MAILBOX_SYNC_VENDORS, aY as MICROSOFT_VENDORS, a_ as MailDraftSSEEvent, b0 as MessageMetadataPayload, b1 as MessageQueuedEvent, b2 as OAuthAccountKind, b3 as OutputTokensDetails, b4 as OverlayItem, b5 as OverlayLayerName, b6 as ParsedSlashCommand, b7 as PendingAuthResponse, b8 as PersonKey, b9 as PlanStepsError, ba as PlanWorkRequest, bb as ProbeAnswerEvent, bc as ProjectBudget, bd as ProjectConversationUsageResponse, be as ProjectDetails, bf as ProjectEventKind, bg as ProjectEventResponse, bh as ProjectInvoicesResponse, bi as ProjectResponse, bj as ProjectUpdateRequest, bk as ProjectUsageResponse, bl as PublicBookingError, bm as PublicBookingPage, bn as QueryOptions, bo as RaisedSignal, bp as ReconnectOptions, bq as ReconnectableWsConnection, br as ResolvedCitation, bt as RespondParams, bu as RespondPartstat, bv as ResponseCompletedEvent, bw as ResponseContentPartAddedEvent, bx as ResponseCreatedEvent, by as ResponseFailedEvent, bz as ResponseOutputItemAddedEvent, bA as ResponseOutputItemDoneEvent, bB as ResponseOutputTextDeltaEvent, bC as ResponseOutputTextDoneEvent, bD as ResponseUsage, bE as RoomCreateBody, bF as RoomQuery, bG as RoomRead, bH as RunProgress, bI as RunStep, bJ as RunWaitingOn, bK as SHAREPOINT_VENDORS, bL as SSEEvent, bM as SSEStreamCallbacks, bN as SSEStreamResult, bO as SSEStreamStartData, bR as ScopedTarget, bS as SendBack, bT as ShareRead, bU as ShareRole, bV as SkillSummary, bW as SkippedFile, bX as SlackConnectionStatus, bY as StepActionRequest, bZ as StepActivityEvent, b_ as StepAssignee, b$ as StepField, c2 as StepKind, c3 as StepPhase, c4 as StepSignal, c5 as StepSignalWhen, c6 as StepState, c7 as StepStatus, c8 as SubmitBackgroundQueryOptions, c9 as SubscribeParams, ca as SyncTriggerResult, cb as TAG_KINDS, cc as TagChange, cd as TagFieldDefinition, ce as TagKind, cf as TagKindField, cg as TagKindSchema, ch as TagLinks, ci as TagListQuery, cj as TagResponse, ck as TaskPlan, cl as TaskPlanStep, cm as TimeSuggestion, cn as TokenBudgetContext, co as UpdateConversationRequest, cp as UpdateFactRequest, cq as UpdateWorkflowRequest, cu as UploadDocumentsOptions, cv as UploadOptions, cw as UploadResult, cx as UsageBreakdown, cy as UserConnectorEntry, cz as UserDailyUsageResponse, cA as UserInfo, cB as UserInputRequestEvent, cC as UserMessageEvent, cD as WebSocketAuthError, cE as WeeklyHoursSpec, cF as WorkStatus, cG as WorkflowAuthMode, cH as WorkflowResponse, cI as WorkflowRunHistoryResponse, cJ as WorkflowRunResponse, cK as WorkspaceContext, cL as WsConnection, cM as account, cN as agentconfig, cP as assistant, cQ as authenticatedFetch, cR as bookPublicSlot, cS as buildCitationChunkData, cU as buildFactsContextTool, cV as buildRetrievalChunkTool, cW as buildRetrievalFullContextTool, cX as buildRetrievalTocTool, cY as calendar, cZ as cancelPublicBooking, c_ as chats, c$ as connectErrorMessage, d0 as connectWebSocket, d1 as connectWithReconnect, d2 as connectors, d3 as consumeSSEStream, d4 as contacts, d5 as conversations, d6 as countCitations, d7 as createAuthenticatedClient, d9 as doctags, da as documents, db as facts, dc as files, dd as filterSkills, de as formatAgentStepLabel, df as formatFileSize, dg as formatGbp, dh as formatGbpPerMillionTokens, di as formatItemLabel, dk as formatUserName, dl as formatWorkspaceChoices, dr as getErrorMessage, ds as getPublicBookingPage, dt as getRawWorkspaceKey, du as health, dv as houseTemplates, dx as identityErrorCode, dw as identityVerification, dy as isConnectorVendorVisible, dz as isDriveSyncVendor, dA as isMailboxSyncVendor, dB as isSharePointVendor, dD as mail, dE as notifications, dF as parseSSEEvents, dG as parseSlashCommand, dH as parseSlashTokenInProgress, dI as performPasswordLogin, dL as profile, dM as projects, dN as requireData, dO as requireOk, dP as resolveAuth, dQ as resolveCitations, dR as resolveWorkspace, dS as responses, dT as selectWorkspace, dU as selectWorkspaceById, dV as sessions, dW as settings, dY as splitAppPasswords, dZ as streamSSE, d_ as stripCitationMarkdown, d$ as summarizeCitations, e0 as tags, e2 as usdToGbp, e3 as work, e4 as workflowSteps, e5 as workflows, e6 as workspaces } from './browser-DK6CvDoH.js';
2
2
  export { LoginProfile } from '@arbidocs/client';
package/dist/browser.js CHANGED
@@ -3526,7 +3526,7 @@ function requireData(result, message) {
3526
3526
  }
3527
3527
  function requireOk(result, message) {
3528
3528
  if (result.error) {
3529
- throw new ArbiApiError(message, result.error);
3529
+ throw new ArbiApiError(message, result.error, result.response?.status);
3530
3530
  }
3531
3531
  }
3532
3532
  function getErrorMessage(err) {
@@ -4969,6 +4969,7 @@ __export(workspaces_exports, {
4969
4969
  grantTemporaryWorkspaceAccess: () => grantTemporaryWorkspaceAccess,
4970
4970
  listWorkspaceUsers: () => listWorkspaceUsers,
4971
4971
  listWorkspaces: () => listWorkspaces,
4972
+ primeWorkspaceKey: () => primeWorkspaceKey,
4972
4973
  removeWorkspaceUsers: () => removeWorkspaceUsers,
4973
4974
  setUserRole: () => setUserRole,
4974
4975
  updateWorkspace: () => updateWorkspace
@@ -5007,15 +5008,17 @@ async function updateWorkspace(arbi, body) {
5007
5008
  async function listWorkspaceUsers(arbi) {
5008
5009
  return requireData(await arbi.fetch.GET("/v1/workspace/users"), "Failed to fetch workspace users");
5009
5010
  }
5010
- async function addWorkspaceUsers(arbi, emails, role = "collaborator", target) {
5011
+ async function addWorkspaceUsers(arbi, emails, role = "collaborator", target, confirmInvite = false) {
5012
+ const invite = confirmInvite ? { confirm_invite: true } : {};
5011
5013
  return requireData(
5012
5014
  await arbi.fetch.POST("/v1/workspace/users", {
5013
5015
  body: target ? {
5014
5016
  emails,
5015
5017
  role,
5016
5018
  workspace_ext_id: target.workspaceExtId,
5017
- workspace_key: target.workspaceKey
5018
- } : { emails, role }
5019
+ workspace_key: target.workspaceKey,
5020
+ ...invite
5021
+ } : { emails, role, ...invite }
5019
5022
  }),
5020
5023
  "Failed to add users"
5021
5024
  );
@@ -5073,6 +5076,15 @@ async function getWorkspaceActivity(arbi, workspaceExtId, options = {}) {
5073
5076
  "Failed to fetch workspace activity"
5074
5077
  );
5075
5078
  }
5079
+ async function primeWorkspaceKey(arbi, workspaceExtId, sessionSealedKey) {
5080
+ requireOk(
5081
+ await arbi.fetch.POST("/v1/workspace/{workspace_ext_id}/prime-key", {
5082
+ params: { path: { workspace_ext_id: workspaceExtId } },
5083
+ body: { workspace_key: sessionSealedKey }
5084
+ }),
5085
+ "Failed to prime the workspace key"
5086
+ );
5087
+ }
5076
5088
 
5077
5089
  // src/operations/conversations.ts
5078
5090
  var conversations_exports = {};
@@ -6356,6 +6368,271 @@ async function setWorkspaceNotificationLevel(arbi, workspaceId, level) {
6356
6368
  return patch;
6357
6369
  }
6358
6370
 
6371
+ // src/operations/connectors.ts
6372
+ var connectors_exports = {};
6373
+ __export(connectors_exports, {
6374
+ DRIVE_SYNC_VENDORS: () => DRIVE_SYNC_VENDORS,
6375
+ GOOGLE_VENDORS: () => GOOGLE_VENDORS,
6376
+ IMANAGE_VENDORS: () => IMANAGE_VENDORS,
6377
+ MAILBOX_SYNC_VENDORS: () => MAILBOX_SYNC_VENDORS,
6378
+ MICROSOFT_VENDORS: () => MICROSOFT_VENDORS,
6379
+ SHAREPOINT_VENDORS: () => SHAREPOINT_VENDORS,
6380
+ authorize: () => authorize,
6381
+ authorizeSlack: () => authorizeSlack,
6382
+ bridgeConnectorTokens: () => bridgeConnectorTokens,
6383
+ cancelDriveSync: () => cancelDriveSync,
6384
+ cancelMailboxSync: () => cancelMailboxSync,
6385
+ connectErrorMessage: () => connectErrorMessage,
6386
+ depositSessionTokens: () => depositSessionTokens,
6387
+ disconnect: () => disconnect,
6388
+ disconnectSlack: () => disconnectSlack,
6389
+ driveFolderDocCount: () => driveFolderDocCount,
6390
+ driveSyncEstimate: () => driveSyncEstimate,
6391
+ driveSyncProgress: () => driveSyncProgress,
6392
+ enableDriveSync: () => enableDriveSync,
6393
+ enableMailboxSync: () => enableMailboxSync,
6394
+ getSealedTokens: () => getSealedTokens,
6395
+ isConnectorVendorVisible: () => isConnectorVendorVisible,
6396
+ isDriveSyncVendor: () => isDriveSyncVendor,
6397
+ isMailboxSyncVendor: () => isMailboxSyncVendor,
6398
+ isSharePointVendor: () => isSharePointVendor,
6399
+ listCatalog: () => listCatalog,
6400
+ listDriveFolderChildren: () => listDriveFolderChildren,
6401
+ listDriveFolders: () => listDriveFolders,
6402
+ listMailboxFolders: () => listMailboxFolders,
6403
+ listMine: () => listMine,
6404
+ mailboxSyncProgress: () => mailboxSyncProgress,
6405
+ slackStatus: () => slackStatus,
6406
+ triggerDriveSync: () => triggerDriveSync,
6407
+ triggerMailboxSync: () => triggerMailboxSync
6408
+ });
6409
+ var vendorPath = (vendor) => ({ path: { vendor } });
6410
+ var vendorKeyPath = (vendor) => ({
6411
+ path: { vendor_key: vendor }
6412
+ });
6413
+ async function listCatalog(arbi) {
6414
+ return requireData(await arbi.fetch.GET("/v1/connectors"), "Failed to load connectors");
6415
+ }
6416
+ async function listMine(arbi) {
6417
+ return requireData(await arbi.fetch.GET("/v1/connectors/me"), "Failed to load your connections");
6418
+ }
6419
+ async function disconnect(arbi, vendor) {
6420
+ requireOk(
6421
+ await arbi.fetch.DELETE("/v1/connectors/{vendor_key}", { params: vendorKeyPath(vendor) }),
6422
+ "Failed to disconnect"
6423
+ );
6424
+ }
6425
+ async function authorize(arbi, vendor, returnTo) {
6426
+ const data = requireData(
6427
+ await arbi.fetch.GET("/v1/connectors/{vendor_key}/authorize", {
6428
+ params: { ...vendorKeyPath(vendor), query: returnTo ? { return_to: returnTo } : {} }
6429
+ }),
6430
+ "Could not start the connection"
6431
+ );
6432
+ return data.url;
6433
+ }
6434
+ async function getSealedTokens(arbi) {
6435
+ return requireData(
6436
+ await arbi.fetch.GET("/v1/connectors/sealed-tokens"),
6437
+ "Failed to load connector tokens"
6438
+ );
6439
+ }
6440
+ async function depositSessionTokens(arbi, body) {
6441
+ requireOk(
6442
+ await arbi.fetch.POST("/v1/connectors/session-tokens", { body }),
6443
+ "Failed to bridge connector tokens"
6444
+ );
6445
+ }
6446
+ async function listMailboxFolders(arbi, vendor) {
6447
+ return requireData(
6448
+ await arbi.fetch.GET("/v1/connectors/{vendor}/folders", { params: vendorPath(vendor) }),
6449
+ "Failed to load folders"
6450
+ );
6451
+ }
6452
+ async function enableMailboxSync(arbi, vendor, body) {
6453
+ return requireData(
6454
+ await arbi.fetch.POST("/v1/connectors/{vendor}/enable-sync", {
6455
+ params: vendorPath(vendor),
6456
+ body
6457
+ }),
6458
+ "Failed to enable sync"
6459
+ );
6460
+ }
6461
+ async function triggerMailboxSync(arbi, vendor, workspaceExtId) {
6462
+ return requireData(
6463
+ await arbi.fetch.POST("/v1/connectors/{vendor}/sync", {
6464
+ params: {
6465
+ ...vendorPath(vendor),
6466
+ query: workspaceExtId ? { workspace_ext_id: workspaceExtId } : {}
6467
+ }
6468
+ }),
6469
+ "Failed to start the sync"
6470
+ );
6471
+ }
6472
+ async function mailboxSyncProgress(arbi, vendor, workspaceExtId) {
6473
+ return requireData(
6474
+ await arbi.fetch.GET("/v1/connectors/{vendor}/sync-progress", {
6475
+ params: { ...vendorPath(vendor), query: { workspace_ext_id: workspaceExtId } }
6476
+ }),
6477
+ "Failed to read the sync progress"
6478
+ );
6479
+ }
6480
+ async function cancelMailboxSync(arbi, vendor, workspaceExtId) {
6481
+ requireOk(
6482
+ await arbi.fetch.POST("/v1/connectors/{vendor}/sync/cancel", {
6483
+ params: { ...vendorPath(vendor), query: { workspace_ext_id: workspaceExtId } }
6484
+ }),
6485
+ "Failed to cancel the sync"
6486
+ );
6487
+ }
6488
+ async function listDriveFolders(arbi, vendor) {
6489
+ return requireData(
6490
+ await arbi.fetch.GET("/v1/connectors/{vendor}/drive-folders", { params: vendorPath(vendor) }),
6491
+ "Failed to load folders"
6492
+ );
6493
+ }
6494
+ async function listDriveFolderChildren(arbi, vendor, itemId) {
6495
+ return requireData(
6496
+ await arbi.fetch.GET("/v1/connectors/{vendor}/drive-folder-children", {
6497
+ params: { ...vendorPath(vendor), query: { item_id: itemId } }
6498
+ }),
6499
+ "Failed to load folders"
6500
+ );
6501
+ }
6502
+ async function driveFolderDocCount(arbi, vendor, itemId) {
6503
+ const data = requireData(
6504
+ await arbi.fetch.GET("/v1/connectors/{vendor}/drive-folder-doc-count", {
6505
+ params: { ...vendorPath(vendor), query: { item_id: itemId } }
6506
+ }),
6507
+ "Failed to count documents"
6508
+ );
6509
+ return data.count;
6510
+ }
6511
+ async function enableDriveSync(arbi, vendor, body) {
6512
+ requireOk(
6513
+ await arbi.fetch.POST("/v1/connectors/{vendor}/enable-drive-sync", {
6514
+ params: vendorPath(vendor),
6515
+ body
6516
+ }),
6517
+ "Failed to enable sync"
6518
+ );
6519
+ }
6520
+ async function triggerDriveSync(arbi, vendor) {
6521
+ return requireData(
6522
+ await arbi.fetch.POST("/v1/connectors/{vendor}/drive-sync", { params: vendorPath(vendor) }),
6523
+ "Failed to start the sync"
6524
+ );
6525
+ }
6526
+ async function driveSyncEstimate(arbi, vendor) {
6527
+ return requireData(
6528
+ await arbi.fetch.GET("/v1/connectors/{vendor}/drive-sync-estimate", {
6529
+ params: vendorPath(vendor)
6530
+ }),
6531
+ "Failed to estimate the sync"
6532
+ );
6533
+ }
6534
+ async function driveSyncProgress(arbi, vendor) {
6535
+ return requireData(
6536
+ await arbi.fetch.GET("/v1/connectors/{vendor}/drive-sync-progress", {
6537
+ params: vendorPath(vendor)
6538
+ }),
6539
+ "Failed to read the sync progress"
6540
+ );
6541
+ }
6542
+ async function cancelDriveSync(arbi, vendor) {
6543
+ requireOk(
6544
+ await arbi.fetch.POST("/v1/connectors/{vendor}/drive-sync/cancel", {
6545
+ params: vendorPath(vendor)
6546
+ }),
6547
+ "Failed to cancel the sync"
6548
+ );
6549
+ }
6550
+ async function slackStatus(arbi) {
6551
+ return requireData(
6552
+ await arbi.fetch.GET("/v1/slack/me"),
6553
+ "Failed to load the Slack connection"
6554
+ );
6555
+ }
6556
+ async function authorizeSlack(arbi, agentExtId) {
6557
+ const data = requireData(
6558
+ await arbi.fetch.GET("/v1/slack/authorize", {
6559
+ params: { query: { agent_ext_id: agentExtId } }
6560
+ }),
6561
+ "Could not start Slack authorization"
6562
+ );
6563
+ return data.url;
6564
+ }
6565
+ async function disconnectSlack(arbi) {
6566
+ requireOk(await arbi.fetch.DELETE("/v1/slack/me"), "Failed to disconnect Slack");
6567
+ }
6568
+ var MAILBOX_SYNC_VENDORS = ["microsoft", "gmail"];
6569
+ var DRIVE_SYNC_VENDORS = [
6570
+ "microsoft",
6571
+ "gmail",
6572
+ "microsoft_sharepoint",
6573
+ "clio",
6574
+ "box",
6575
+ "dropbox",
6576
+ "onenote"
6577
+ ];
6578
+ var MICROSOFT_VENDORS = ["microsoft", "ms365_mail"];
6579
+ var GOOGLE_VENDORS = ["gmail", "gdrive"];
6580
+ var IMANAGE_VENDORS = ["imanage"];
6581
+ var SHAREPOINT_VENDORS = ["microsoft_sharepoint"];
6582
+ var includes = (list, vendor) => list.includes(vendor);
6583
+ var isMailboxSyncVendor = (vendor) => includes(MAILBOX_SYNC_VENDORS, vendor);
6584
+ var isDriveSyncVendor = (vendor) => includes(DRIVE_SYNC_VENDORS, vendor);
6585
+ var isSharePointVendor = (vendor) => includes(SHAREPOINT_VENDORS, vendor);
6586
+ function isConnectorVendorVisible(settings, vendor) {
6587
+ if (includes(MICROSOFT_VENDORS, vendor)) return settings?.show_connector_microsoft ?? true;
6588
+ if (includes(GOOGLE_VENDORS, vendor)) return settings?.show_connector_google ?? true;
6589
+ if (includes(IMANAGE_VENDORS, vendor)) return settings?.show_connector_imanage ?? false;
6590
+ if (includes(SHAREPOINT_VENDORS, vendor)) return settings?.show_connector_sharepoint ?? false;
6591
+ return true;
6592
+ }
6593
+ var CONNECT_ERROR_PRODUCTS = {
6594
+ microsoft: "Microsoft",
6595
+ microsoft_sharepoint: "SharePoint",
6596
+ gmail: "Google",
6597
+ gdrive: "Google Drive",
6598
+ imanage: "iManage",
6599
+ slack: "Slack"
6600
+ };
6601
+ function connectErrorMessage(vendor) {
6602
+ const product = vendor && CONNECT_ERROR_PRODUCTS[vendor] || "the account";
6603
+ return `Couldn't connect ${product}. The connection was cancelled or not approved.`;
6604
+ }
6605
+ async function bridgeConnectorTokens(arbi, keys, { vendor, autoSyncWorkspaceExtId } = {}) {
6606
+ await initSodium();
6607
+ const keypair = encryptionKeypairFromSigningKey(keys.signingPrivateKey);
6608
+ try {
6609
+ let sealed = await getSealedTokens(arbi);
6610
+ if (vendor) sealed = sealed.filter((token) => token.vendor_key === vendor);
6611
+ for (const token of sealed) {
6612
+ try {
6613
+ const reseal = async (wrapped) => {
6614
+ const plain = sealedBoxDecrypt(wrapped, keypair.secretKey);
6615
+ try {
6616
+ return await sealKeyForSession(plain, keys.serverSessionKey);
6617
+ } finally {
6618
+ plain.fill(0);
6619
+ }
6620
+ };
6621
+ await depositSessionTokens(arbi, {
6622
+ vendor_key: token.vendor_key,
6623
+ access: await reseal(token.access_token),
6624
+ refresh: token.refresh_token ? await reseal(token.refresh_token) : null,
6625
+ ...autoSyncWorkspaceExtId ? { auto_sync_workspace_ext_id: autoSyncWorkspaceExtId } : {}
6626
+ });
6627
+ } catch (err) {
6628
+ console.error("[connectors] Could not bridge the token of", token.vendor_key, err);
6629
+ }
6630
+ }
6631
+ } finally {
6632
+ keypair.secretKey.fill(0);
6633
+ }
6634
+ }
6635
+
6359
6636
  // src/operations/agentconfig.ts
6360
6637
  var agentconfig_exports = {};
6361
6638
  __export(agentconfig_exports, {
@@ -8846,6 +9123,8 @@ var Arbi = class {
8846
9123
  }
8847
9124
  // ── Workspaces ────────────────────────────────────────────────────────
8848
9125
  workspaces = {
9126
+ /** Hand this server session a workspace's key (sealed to the session) without opening it. */
9127
+ primeKey: (workspaceExtId, sessionSealedKey) => primeWorkspaceKey(this.requireClient(), workspaceExtId, sessionSealedKey),
8849
9128
  list: async () => this.rememberWorkspaces(await listWorkspaces(this.requireClient())),
8850
9129
  create: async (name, projectExtId, description, isPublic) => {
8851
9130
  const client = this.requireClient();
@@ -8874,7 +9153,14 @@ var Arbi = class {
8874
9153
  listUsers: () => listWorkspaceUsers(this.requireClient()),
8875
9154
  /** One page of a workspace's activity feed, newest first (see `getWorkspaceActivity`). */
8876
9155
  activity: (workspaceId, options) => getWorkspaceActivity(this.requireClient(), workspaceId, options),
8877
- addUsers: (emails, role) => addWorkspaceUsers(this.requireClient(), emails, role),
9156
+ /** Add users to the open workspace; `confirmInvite` also invites emails not on ARBI yet. */
9157
+ addUsers: (emails, role, options) => addWorkspaceUsers(
9158
+ this.requireClient(),
9159
+ emails,
9160
+ role,
9161
+ void 0,
9162
+ options?.confirmInvite
9163
+ ),
8878
9164
  /**
8879
9165
  * Grant users a temporary key scoped to ONE session (identified by its public key), for
8880
9166
  * example an agent's run session minted by `agents.authorize()`. Nothing standing is created:
@@ -9429,6 +9715,49 @@ var Arbi = class {
9429
9715
  /** List the current user's durable activity feed. */
9430
9716
  listActivity: (options) => listActivity(this.requireClient(), options)
9431
9717
  };
9718
+ // ── Connectors ────────────────────────────────────────────────────────
9719
+ /**
9720
+ * Connectors: the catalog, the user's connections and their OAuth, mailbox and drive sync,
9721
+ * Slack. A vendor is its `vendor_key` (e.g. `microsoft`, `gmail`).
9722
+ */
9723
+ connectors = {
9724
+ catalog: () => listCatalog(this.requireClient()),
9725
+ mine: () => listMine(this.requireClient()),
9726
+ disconnect: (vendor) => disconnect(this.requireClient(), vendor),
9727
+ /** The provider consent URL; the OAuth comes back to `returnTo` (a path of this app). */
9728
+ authorize: (vendor, returnTo) => authorize(this.requireClient(), vendor, returnTo),
9729
+ /**
9730
+ * Let this server session use the user's connector grants (best effort: a failure is logged,
9731
+ * never thrown, so it cannot break a sign-in or a connect). Signed out: nothing to bridge.
9732
+ */
9733
+ bridgeTokens: async (options) => {
9734
+ const login = this.loginResult;
9735
+ if (!login) return;
9736
+ try {
9737
+ await bridgeConnectorTokens(this.requireClient(), login, options);
9738
+ } catch (err) {
9739
+ console.error("[connectors] Token bridge failed", err);
9740
+ }
9741
+ },
9742
+ mailboxFolders: (vendor) => listMailboxFolders(this.requireClient(), vendor),
9743
+ enableMailboxSync: (vendor, body) => enableMailboxSync(this.requireClient(), vendor, body),
9744
+ syncMailbox: (vendor, workspaceExtId) => triggerMailboxSync(this.requireClient(), vendor, workspaceExtId),
9745
+ mailboxSyncProgress: (vendor, workspaceExtId) => mailboxSyncProgress(this.requireClient(), vendor, workspaceExtId),
9746
+ cancelMailboxSync: (vendor, workspaceExtId) => cancelMailboxSync(this.requireClient(), vendor, workspaceExtId),
9747
+ driveFolders: (vendor) => listDriveFolders(this.requireClient(), vendor),
9748
+ driveFolderChildren: (vendor, itemId) => listDriveFolderChildren(this.requireClient(), vendor, itemId),
9749
+ driveFolderDocCount: (vendor, itemId) => driveFolderDocCount(this.requireClient(), vendor, itemId),
9750
+ enableDriveSync: (vendor, body) => enableDriveSync(this.requireClient(), vendor, body),
9751
+ syncDrive: (vendor) => triggerDriveSync(this.requireClient(), vendor),
9752
+ driveSyncEstimate: (vendor) => driveSyncEstimate(this.requireClient(), vendor),
9753
+ driveSyncProgress: (vendor) => driveSyncProgress(this.requireClient(), vendor),
9754
+ cancelDriveSync: (vendor) => cancelDriveSync(this.requireClient(), vendor),
9755
+ slack: {
9756
+ status: () => slackStatus(this.requireClient()),
9757
+ authorize: (agentExtId) => authorizeSlack(this.requireClient(), agentExtId),
9758
+ disconnect: () => disconnectSlack(this.requireClient())
9759
+ }
9760
+ };
9432
9761
  // ── Settings ──────────────────────────────────────────────────────────
9433
9762
  settings = {
9434
9763
  get: () => getSettings(this.requireClient()),
@@ -9588,6 +9917,6 @@ var Arbi = class {
9588
9917
  }
9589
9918
  };
9590
9919
 
9591
- export { ACCOUNT_VENDOR, Arbi, ArbiApiError, ArbiError, DEFAULT_AI_USD_PER_GBP, FLAT_TAG_KINDS, PlanStepsError, PublicBookingError, TAG_KINDS, WebSocketAuthError, account_exports as account, agentconfig_exports as agentconfig, assistant_exports as assistant, authenticatedFetch, bookPublicSlot, buildCitationChunkData, buildFactsContextTool, buildRetrievalChunkTool, buildRetrievalFullContextTool, buildRetrievalTocTool, calendar_exports as calendar, cancelPublicBooking, chats_exports as chats, connectWebSocket, connectWithReconnect, consumeSSEStream, contacts_exports as contacts, conversations_exports as conversations, countCitations, createAuthenticatedClient, doctags_exports as doctags, documents_exports as documents, facts_exports as facts, files_exports as files, filterSkills, formatAgentStepLabel, formatFileSize, formatGbp, formatGbpPerMillionTokens, formatItemLabel, formatUserName, formatWorkspaceChoices, getErrorMessage, getPublicBookingPage, getRawWorkspaceKey, health_exports as health, house_template_exports as houseTemplates, identityErrorCode, identity_exports as identityVerification, mail_exports as mail, notifications_exports as notifications, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, performPasswordLogin, profile_exports as profile, projects_exports as projects, requireData, requireOk, resolveAuth, resolveCitations, resolveWorkspace, responses_exports as responses, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, splitAppPasswords, streamSSE, stripCitationMarkdown, summarizeCitations, tags_exports as tags, usdToGbp, work_exports as work, workflow_steps_exports as workflowSteps, workflows_exports as workflows, workspaces_exports as workspaces };
9920
+ export { ACCOUNT_VENDOR, Arbi, ArbiApiError, ArbiError, DEFAULT_AI_USD_PER_GBP, DRIVE_SYNC_VENDORS, FLAT_TAG_KINDS, GOOGLE_VENDORS, IMANAGE_VENDORS, MAILBOX_SYNC_VENDORS, MICROSOFT_VENDORS, PlanStepsError, PublicBookingError, SHAREPOINT_VENDORS, TAG_KINDS, WebSocketAuthError, account_exports as account, agentconfig_exports as agentconfig, assistant_exports as assistant, authenticatedFetch, bookPublicSlot, buildCitationChunkData, buildFactsContextTool, buildRetrievalChunkTool, buildRetrievalFullContextTool, buildRetrievalTocTool, calendar_exports as calendar, cancelPublicBooking, chats_exports as chats, connectErrorMessage, connectWebSocket, connectWithReconnect, connectors_exports as connectors, consumeSSEStream, contacts_exports as contacts, conversations_exports as conversations, countCitations, createAuthenticatedClient, doctags_exports as doctags, documents_exports as documents, facts_exports as facts, files_exports as files, filterSkills, formatAgentStepLabel, formatFileSize, formatGbp, formatGbpPerMillionTokens, formatItemLabel, formatUserName, formatWorkspaceChoices, getErrorMessage, getPublicBookingPage, getRawWorkspaceKey, health_exports as health, house_template_exports as houseTemplates, identityErrorCode, identity_exports as identityVerification, isConnectorVendorVisible, isDriveSyncVendor, isMailboxSyncVendor, isSharePointVendor, mail_exports as mail, notifications_exports as notifications, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, performPasswordLogin, profile_exports as profile, projects_exports as projects, requireData, requireOk, resolveAuth, resolveCitations, resolveWorkspace, responses_exports as responses, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, splitAppPasswords, streamSSE, stripCitationMarkdown, summarizeCitations, tags_exports as tags, usdToGbp, work_exports as work, workflow_steps_exports as workflowSteps, workflows_exports as workflows, workspaces_exports as workspaces };
9592
9921
  //# sourceMappingURL=browser.js.map
9593
9922
  //# sourceMappingURL=browser.js.map