@arbidocs/sdk 0.4.147 → 0.4.150

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, 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';
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 Arbi, h as ArbiApiError, i as ArbiError, j as ArbiErrorEvent, k as ArbiHostSession, l as ArbiOptions, n as ArtifactEvent, o as AttendeeRead, p as AuthContext, q as AuthHeaders, r as AuthMode, s as AuthenticatedClient, B as BookingConfirmation, t as BookingPage, u as BookingPageWriteBody, v as BookingRequestBody, w as BridgeTokensOptions, C as CalDavConnectBody, x as CalDavProfile, y as CalendarAccount, z as CalendarAccountKind, D as CalendarCreateBody, E as CalendarEvent, F as CalendarKeys, G as CalendarRead, H as CalendarSettings, I as CalendarSettingsBody, J as CalendarUpdate, K as CalendarWindow, L as ChatAttachmentFile, M as ChatAttachmentInput, N as ChatCryptoContext, O as ChatKeyRing, P as ChatKind, Q as ChatMemberKey, R as ChatMemberResponse, S as ChatMessageResponse, T as ChatResponse, U as ChatSession, V as CitationSummary, W as CitationToolSources, X as CliConfig, Y as CliCredentials, Z as CommandDescriptor, _ as ConfigStore, $ as ConnectOptions, a0 as ConnectorCatalogEntry, a1 as ConnectorFolder, a2 as ConnectorSyncProgress, a3 as ConnectorSyncStatus, a4 as ConnectorVendorKey, a5 as ConnectorVisibilitySettings, a6 as ConversationResponse, a7 as ConversationUsageResponse, a8 as CreateFactRequest, a9 as CreateFactsRequest, aa as CreateWorkRequest, ab as CreateWorkflowRequest, ac as DEFAULT_AI_USD_PER_GBP, ae as DRIVE_SYNC_VENDORS, af as DateTimeSpec, ah as DecryptedChatMessage, ai as DeferredInterjectionEvent, aj as DeploymentHouseTemplate, al as DocumentAutomationAction, ao as DocumentSelector, ar as DriveSyncProgress, as as DriveSyncSummary, at as ENTITY_KINDS, au as EditScope, av as EntityKind, aw as EventCreateBody, ax as EventPatchBody, ay as FLAT_TAG_KINDS, az as FactResponse, aA as FactSearchRequest, aB as FactSearchResponse, aC as FindTimeParams, aE as FreeBusyEntry, aF as GOOGLE_VENDORS, aG as HolidayCountry, aH as HouseTemplateCandidate, aI as IMANAGE_VENDORS, aJ as IdentityErrorCode, aK as IdentityPurchase, aL as IdentityState, aM as IdentityStatus, aN as ImportResult, aO as InvitationRead, aP as LinkedRun, aR as ListEventsParams, aS as ListFactsOptions, aU as MAILBOX_SYNC_VENDORS, aV as MAX_RETRIEVE_DOC_IDS, aW as MICROSOFT_VENDORS, aY as MailDraftSSEEvent, a_ as MessageMetadataPayload, a$ as MessageQueuedEvent, b0 as OAuthAccountKind, b1 as OutputTokensDetails, b2 as OverlayItem, b3 as OverlayLayerName, b4 as PRESENCE_KINDS, b5 as ParsedSlashCommand, b6 as PendingAuthResponse, b7 as PersonKey, b8 as PlanStepsError, b9 as PlanWorkRequest, ba as ProbeAnswerEvent, 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 QueryOptions, bv as RaisedSignal, bw as ReconnectOptions, bx as ReconnectableWsConnection, by as ResolvedCitation, bA as RespondParams, bB as RespondPartstat, bC as ResponseCompletedEvent, bD as ResponseContentPartAddedEvent, bE as ResponseCreatedEvent, bF as ResponseFailedEvent, bG as ResponseOutputItemAddedEvent, bH as ResponseOutputItemDoneEvent, bI as ResponseOutputTextDeltaEvent, bJ as ResponseOutputTextDoneEvent, bK as ResponseUsage, bL as RoomCreateBody, bM as RoomQuery, bN as RoomRead, bO as RunProgress, bP as RunStep, bQ as RunWaitingOn, bR as SHAREPOINT_VENDORS, bS as SSEEvent, bT as SSEStreamCallbacks, bU as SSEStreamResult, bV as SSEStreamStartData, bY as ScopedTarget, bZ as SearchChunk, b_ as SendBack, b$ as ShareRead, c0 as ShareRole, c1 as SkillSummary, c2 as SkippedFile, c3 as SlackConnectionStatus, c4 as StepActionRequest, c5 as StepActivityEvent, c6 as StepAssignee, c7 as StepField, ca as StepKind, cb as StepPhase, cc as StepSignal, cd as StepSignalWhen, ce as StepState, cf as StepStatus, cg as SubmitBackgroundQueryOptions, ch as SubscribeParams, ci as SyncTriggerResult, cj as TAG_KINDS, ck as TAG_NESTING_MAX_DEPTH, cl as TagChange, cm as TagFieldDefinition, cn as TagGroup, co as TagKind, cp as TagKindField, cq as TagKindSchema, cr as TagLinks, cs as TagListQuery, ct as TagNode, cu as TagResponse, cv as TagScope, cw as TagTreeRow, cx as TaskPlan, cy as TaskPlanStep, cz as TaxQuoteResponse, cA as TimeSuggestion, cB as TokenBudgetContext, cC as UpdateConversationRequest, cD as UpdateFactRequest, cE as UpdateWorkflowRequest, cI as UploadDocumentsOptions, cJ as UploadOptions, cK as UploadResult, cL as UsageBreakdown, cM as UserConnectorEntry, cN as UserDailyUsageResponse, cO as UserInfo, cP as UserInputRequestEvent, cQ as UserMessageEvent, cR as WebSocketAuthError, cS as WeeklyHoursSpec, cT as WorkStatus, cU as WorkflowAuthMode, cV as WorkflowResponse, cW as WorkflowRunHistoryResponse, cX as WorkflowRunResponse, cY as WorkspaceContext, cZ as WsConnection, c_ as account, c$ as agentconfig, d1 as assistant, d2 as authenticatedFetch, d3 as bookPublicSlot, d4 as buildCitationChunkData, d6 as buildFactsContextTool, d7 as buildRetrievalChunkTool, d8 as buildRetrievalFullContextTool, d9 as buildRetrievalTocTool, da as calendar, db as canTagHaveParent, dc as cancelPublicBooking, dd as chats, de as connectErrorMessage, df as connectWebSocket, dg as connectWithReconnect, dh as connectors, di as consumeSSEStream, dj as contacts, dk as conversations, dl as countCitations, dm as createAuthenticatedClient, dp as defaultKindForFormat, dq as doctags, dr as documents, ds as facts, dt as files, du as filterDocumentTags, dv as filterSkills, dw as flattenTagTree, dx as formatAgentStepLabel, dy as formatFileSize, dz as formatGbp, dA as formatGbpPerMillionTokens, dB as formatItemLabel, dD as formatUserName, dE as formatWorkspaceChoices, dI as getChildTags, dJ as getEligibleParentTags, dL as getErrorMessage, dM as getPublicBookingPage, dN as getRawWorkspaceKey, dO as getTagDescendantIds, dP as health, dQ as houseTemplates, dS as identityErrorCode, dR as identityVerification, dT as isAnnotationTag, dU as isConnectorVendorVisible, dV as isDriveSyncVendor, dW as isEntityTag, dX as isFlatKind, dY as isLabelTag, dZ as isMailboxSyncVendor, d_ as isPresenceTag, d$ as isSharePointVendor, e1 as mail, e2 as notifications, e3 as parseSSEEvents, e4 as parseSlashCommand, e5 as parseSlashTokenInProgress, e6 as performPasswordLogin, e9 as profile, ea as projects, eb as refusalReason, ec as requireData, ed as requireOk, ee as resolveAuth, ef as resolveCitations, eg as resolveWorkspace, eh as responses, ei as searchChunks, ej as selectWorkspace, ek as selectWorkspaceById, el as sessions, em as settings, eo as streamSSE, ep as stripCitationMarkdown, eq as summarizeCitations, er as tagUseCount, es as tags, et as tagsForScope, eu as tagsOfGroup, ew as usdToGbp, ex as work, ey as workflowSteps, ez as workflows, eA as workspaces, eB as wouldCreateTagCycle } from './browser-CYDtwz9K.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, 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';
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 Arbi, h as ArbiApiError, i as ArbiError, j as ArbiErrorEvent, k as ArbiHostSession, l as ArbiOptions, n as ArtifactEvent, o as AttendeeRead, p as AuthContext, q as AuthHeaders, r as AuthMode, s as AuthenticatedClient, B as BookingConfirmation, t as BookingPage, u as BookingPageWriteBody, v as BookingRequestBody, w as BridgeTokensOptions, C as CalDavConnectBody, x as CalDavProfile, y as CalendarAccount, z as CalendarAccountKind, D as CalendarCreateBody, E as CalendarEvent, F as CalendarKeys, G as CalendarRead, H as CalendarSettings, I as CalendarSettingsBody, J as CalendarUpdate, K as CalendarWindow, L as ChatAttachmentFile, M as ChatAttachmentInput, N as ChatCryptoContext, O as ChatKeyRing, P as ChatKind, Q as ChatMemberKey, R as ChatMemberResponse, S as ChatMessageResponse, T as ChatResponse, U as ChatSession, V as CitationSummary, W as CitationToolSources, X as CliConfig, Y as CliCredentials, Z as CommandDescriptor, _ as ConfigStore, $ as ConnectOptions, a0 as ConnectorCatalogEntry, a1 as ConnectorFolder, a2 as ConnectorSyncProgress, a3 as ConnectorSyncStatus, a4 as ConnectorVendorKey, a5 as ConnectorVisibilitySettings, a6 as ConversationResponse, a7 as ConversationUsageResponse, a8 as CreateFactRequest, a9 as CreateFactsRequest, aa as CreateWorkRequest, ab as CreateWorkflowRequest, ac as DEFAULT_AI_USD_PER_GBP, ae as DRIVE_SYNC_VENDORS, af as DateTimeSpec, ah as DecryptedChatMessage, ai as DeferredInterjectionEvent, aj as DeploymentHouseTemplate, al as DocumentAutomationAction, ao as DocumentSelector, ar as DriveSyncProgress, as as DriveSyncSummary, at as ENTITY_KINDS, au as EditScope, av as EntityKind, aw as EventCreateBody, ax as EventPatchBody, ay as FLAT_TAG_KINDS, az as FactResponse, aA as FactSearchRequest, aB as FactSearchResponse, aC as FindTimeParams, aE as FreeBusyEntry, aF as GOOGLE_VENDORS, aG as HolidayCountry, aH as HouseTemplateCandidate, aI as IMANAGE_VENDORS, aJ as IdentityErrorCode, aK as IdentityPurchase, aL as IdentityState, aM as IdentityStatus, aN as ImportResult, aO as InvitationRead, aP as LinkedRun, aR as ListEventsParams, aS as ListFactsOptions, aU as MAILBOX_SYNC_VENDORS, aV as MAX_RETRIEVE_DOC_IDS, aW as MICROSOFT_VENDORS, aY as MailDraftSSEEvent, a_ as MessageMetadataPayload, a$ as MessageQueuedEvent, b0 as OAuthAccountKind, b1 as OutputTokensDetails, b2 as OverlayItem, b3 as OverlayLayerName, b4 as PRESENCE_KINDS, b5 as ParsedSlashCommand, b6 as PendingAuthResponse, b7 as PersonKey, b8 as PlanStepsError, b9 as PlanWorkRequest, ba as ProbeAnswerEvent, 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 QueryOptions, bv as RaisedSignal, bw as ReconnectOptions, bx as ReconnectableWsConnection, by as ResolvedCitation, bA as RespondParams, bB as RespondPartstat, bC as ResponseCompletedEvent, bD as ResponseContentPartAddedEvent, bE as ResponseCreatedEvent, bF as ResponseFailedEvent, bG as ResponseOutputItemAddedEvent, bH as ResponseOutputItemDoneEvent, bI as ResponseOutputTextDeltaEvent, bJ as ResponseOutputTextDoneEvent, bK as ResponseUsage, bL as RoomCreateBody, bM as RoomQuery, bN as RoomRead, bO as RunProgress, bP as RunStep, bQ as RunWaitingOn, bR as SHAREPOINT_VENDORS, bS as SSEEvent, bT as SSEStreamCallbacks, bU as SSEStreamResult, bV as SSEStreamStartData, bY as ScopedTarget, bZ as SearchChunk, b_ as SendBack, b$ as ShareRead, c0 as ShareRole, c1 as SkillSummary, c2 as SkippedFile, c3 as SlackConnectionStatus, c4 as StepActionRequest, c5 as StepActivityEvent, c6 as StepAssignee, c7 as StepField, ca as StepKind, cb as StepPhase, cc as StepSignal, cd as StepSignalWhen, ce as StepState, cf as StepStatus, cg as SubmitBackgroundQueryOptions, ch as SubscribeParams, ci as SyncTriggerResult, cj as TAG_KINDS, ck as TAG_NESTING_MAX_DEPTH, cl as TagChange, cm as TagFieldDefinition, cn as TagGroup, co as TagKind, cp as TagKindField, cq as TagKindSchema, cr as TagLinks, cs as TagListQuery, ct as TagNode, cu as TagResponse, cv as TagScope, cw as TagTreeRow, cx as TaskPlan, cy as TaskPlanStep, cz as TaxQuoteResponse, cA as TimeSuggestion, cB as TokenBudgetContext, cC as UpdateConversationRequest, cD as UpdateFactRequest, cE as UpdateWorkflowRequest, cI as UploadDocumentsOptions, cJ as UploadOptions, cK as UploadResult, cL as UsageBreakdown, cM as UserConnectorEntry, cN as UserDailyUsageResponse, cO as UserInfo, cP as UserInputRequestEvent, cQ as UserMessageEvent, cR as WebSocketAuthError, cS as WeeklyHoursSpec, cT as WorkStatus, cU as WorkflowAuthMode, cV as WorkflowResponse, cW as WorkflowRunHistoryResponse, cX as WorkflowRunResponse, cY as WorkspaceContext, cZ as WsConnection, c_ as account, c$ as agentconfig, d1 as assistant, d2 as authenticatedFetch, d3 as bookPublicSlot, d4 as buildCitationChunkData, d6 as buildFactsContextTool, d7 as buildRetrievalChunkTool, d8 as buildRetrievalFullContextTool, d9 as buildRetrievalTocTool, da as calendar, db as canTagHaveParent, dc as cancelPublicBooking, dd as chats, de as connectErrorMessage, df as connectWebSocket, dg as connectWithReconnect, dh as connectors, di as consumeSSEStream, dj as contacts, dk as conversations, dl as countCitations, dm as createAuthenticatedClient, dp as defaultKindForFormat, dq as doctags, dr as documents, ds as facts, dt as files, du as filterDocumentTags, dv as filterSkills, dw as flattenTagTree, dx as formatAgentStepLabel, dy as formatFileSize, dz as formatGbp, dA as formatGbpPerMillionTokens, dB as formatItemLabel, dD as formatUserName, dE as formatWorkspaceChoices, dI as getChildTags, dJ as getEligibleParentTags, dL as getErrorMessage, dM as getPublicBookingPage, dN as getRawWorkspaceKey, dO as getTagDescendantIds, dP as health, dQ as houseTemplates, dS as identityErrorCode, dR as identityVerification, dT as isAnnotationTag, dU as isConnectorVendorVisible, dV as isDriveSyncVendor, dW as isEntityTag, dX as isFlatKind, dY as isLabelTag, dZ as isMailboxSyncVendor, d_ as isPresenceTag, d$ as isSharePointVendor, e1 as mail, e2 as notifications, e3 as parseSSEEvents, e4 as parseSlashCommand, e5 as parseSlashTokenInProgress, e6 as performPasswordLogin, e9 as profile, ea as projects, eb as refusalReason, ec as requireData, ed as requireOk, ee as resolveAuth, ef as resolveCitations, eg as resolveWorkspace, eh as responses, ei as searchChunks, ej as selectWorkspace, ek as selectWorkspaceById, el as sessions, em as settings, eo as streamSSE, ep as stripCitationMarkdown, eq as summarizeCitations, er as tagUseCount, es as tags, et as tagsForScope, eu as tagsOfGroup, ew as usdToGbp, ex as work, ey as workflowSteps, ez as workflows, eA as workspaces, eB as wouldCreateTagCycle } from './browser-CYDtwz9K.js';
2
2
  export { LoginProfile } from '@arbidocs/client';
package/dist/browser.js CHANGED
@@ -3518,6 +3518,10 @@ var ArbiApiError = class extends ArbiError {
3518
3518
  this.detail = apiErrorDetail(apiError);
3519
3519
  }
3520
3520
  };
3521
+ function refusalReason(err, fallback) {
3522
+ if (err instanceof ArbiApiError) return err.detail || fallback;
3523
+ return apiErrorDetail(err) || fallback;
3524
+ }
3521
3525
  function requireData(result, message) {
3522
3526
  if (result.error || !result.data) {
3523
3527
  throw new ArbiApiError(message, result.error, result.response?.status);
@@ -4961,6 +4965,7 @@ async function listHouseTemplateCandidates(arbi) {
4961
4965
  // src/operations/workspaces.ts
4962
4966
  var workspaces_exports = {};
4963
4967
  __export(workspaces_exports, {
4968
+ addWorkspaceMembers: () => addWorkspaceMembers,
4964
4969
  addWorkspaceUsers: () => addWorkspaceUsers,
4965
4970
  copyDocuments: () => copyDocuments,
4966
4971
  createWorkspace: () => createWorkspace,
@@ -5008,6 +5013,12 @@ async function updateWorkspace(arbi, body) {
5008
5013
  async function listWorkspaceUsers(arbi) {
5009
5014
  return requireData(await arbi.fetch.GET("/v1/workspace/users"), "Failed to fetch workspace users");
5010
5015
  }
5016
+ async function addWorkspaceMembers(arbi, request) {
5017
+ return requireData(
5018
+ await arbi.fetch.POST("/v1/workspace/users", { body: request }),
5019
+ "Failed to add users"
5020
+ );
5021
+ }
5011
5022
  async function addWorkspaceUsers(arbi, emails, role = "collaborator", target, confirmInvite = false) {
5012
5023
  const invite = confirmInvite ? { confirm_invite: true } : {};
5013
5024
  return requireData(
@@ -5163,6 +5174,7 @@ async function updateConversationAssistantMode(arbi, conversationId, assistantMo
5163
5174
  // src/operations/assistant.ts
5164
5175
  var assistant_exports = {};
5165
5176
  __export(assistant_exports, {
5177
+ MAX_RETRIEVE_DOC_IDS: () => MAX_RETRIEVE_DOC_IDS,
5166
5178
  buildFactsContextTool: () => buildFactsContextTool,
5167
5179
  buildRetrievalChunkTool: () => buildRetrievalChunkTool,
5168
5180
  buildRetrievalFullContextTool: () => buildRetrievalFullContextTool,
@@ -5177,6 +5189,7 @@ __export(assistant_exports, {
5177
5189
  queryAssistant: () => queryAssistant,
5178
5190
  respondToAgent: () => respondToAgent,
5179
5191
  retrieve: () => retrieve,
5192
+ searchChunks: () => searchChunks,
5180
5193
  uploadSkill: () => uploadSkill
5181
5194
  });
5182
5195
  function buildRetrievalChunkTool(docIds, searchMode) {
@@ -5210,8 +5223,19 @@ function buildRetrievalTocTool(docIds) {
5210
5223
  tool_responses: {}
5211
5224
  };
5212
5225
  }
5226
+ var MAX_RETRIEVE_DOC_IDS = 5e3;
5213
5227
  async function retrieve(options) {
5214
- const { arbi, workspaceId, query, docIds, searchMode, fullContextDocIds, tocDocIds, model } = options;
5228
+ const {
5229
+ arbi,
5230
+ workspaceId,
5231
+ query,
5232
+ docIds,
5233
+ searchMode,
5234
+ fullContextDocIds,
5235
+ tocDocIds,
5236
+ model,
5237
+ store = true
5238
+ } = options;
5215
5239
  const tools = {
5216
5240
  retrieval_chunk: buildRetrievalChunkTool(docIds, searchMode)
5217
5241
  };
@@ -5226,7 +5250,7 @@ async function retrieve(options) {
5226
5250
  workspace_ext_id: workspaceId,
5227
5251
  stream: false,
5228
5252
  background: false,
5229
- store: true,
5253
+ store,
5230
5254
  tools,
5231
5255
  ...model ? { model } : {}
5232
5256
  };
@@ -5246,6 +5270,34 @@ async function retrieve(options) {
5246
5270
  }
5247
5271
  return data;
5248
5272
  }
5273
+ function isReadablePassage(content) {
5274
+ return content.length > 10 && content !== "-" && !/^[|\-\s]+$/.test(content);
5275
+ }
5276
+ function searchChunks(result) {
5277
+ const byId3 = /* @__PURE__ */ new Map();
5278
+ for (const [title, chunks] of Object.entries(result?.retrieval_chunk?.tool_responses ?? {})) {
5279
+ if (!Array.isArray(chunks)) continue;
5280
+ chunks.forEach((chunk, index) => {
5281
+ if (!chunk || typeof chunk !== "object") return;
5282
+ const content = chunk.content?.trim() ?? "";
5283
+ if (!isReadablePassage(content)) return;
5284
+ const meta = chunk.metadata ?? {};
5285
+ const docId = meta.doc_ext_id || title;
5286
+ const rerank = meta.rerank_score;
5287
+ byId3.set(meta.chunk_ext_id || `${docId}_${index}`, {
5288
+ id: meta.chunk_ext_id || `${docId}_${index}`,
5289
+ ...meta.chunk_ext_id ? { chunkExtId: meta.chunk_ext_id } : {},
5290
+ docId,
5291
+ docTitle: meta.doc_title || title,
5292
+ ...meta.page_number != null ? { page: meta.page_number } : {},
5293
+ score: rerank && rerank > 0 ? rerank : meta.score ?? 0,
5294
+ index,
5295
+ content
5296
+ });
5297
+ });
5298
+ }
5299
+ return Array.from(byId3.values()).sort((a2, b2) => b2.score - a2.score);
5300
+ }
5249
5301
  async function queryAssistant(options) {
5250
5302
  const {
5251
5303
  workspaceId,
@@ -6916,6 +6968,11 @@ async function remove(arbi) {
6916
6968
  // src/operations/projects.ts
6917
6969
  var projects_exports = {};
6918
6970
  __export(projects_exports, {
6971
+ addAddonBlock: () => addAddonBlock,
6972
+ billingPortal: () => billingPortal,
6973
+ cancelSubscription: () => cancelSubscription,
6974
+ changePlan: () => changePlan,
6975
+ createCheckout: () => createCheckout,
6919
6976
  createProject: () => createProject,
6920
6977
  deleteProject: () => deleteProject,
6921
6978
  formatBudget: () => formatBudget,
@@ -6923,11 +6980,17 @@ __export(projects_exports, {
6923
6980
  getProjectInvoices: () => getProjectInvoices,
6924
6981
  getProjectUsage: () => getProjectUsage,
6925
6982
  getUserUsageToday: () => getUserUsageToday,
6983
+ listProducts: () => listProducts,
6926
6984
  listProjectEvents: () => listProjectEvents,
6927
6985
  listProjects: () => listProjects,
6928
6986
  parseBudget: () => parseBudget,
6987
+ previewPlanChange: () => previewPlanChange,
6988
+ quoteAddon: () => quoteAddon,
6989
+ quotePlan: () => quotePlan,
6929
6990
  refreshProject: () => refreshProject,
6930
6991
  renameProject: () => renameProject,
6992
+ setNextPeriodAddons: () => setNextPeriodAddons,
6993
+ updateAddonSettings: () => updateAddonSettings,
6931
6994
  updateProject: () => updateProject
6932
6995
  });
6933
6996
  async function listProjects(arbi, filters = {}) {
@@ -7050,6 +7113,95 @@ async function getProjectInvoices(arbi, projectExtId) {
7050
7113
  async function getUserUsageToday(arbi) {
7051
7114
  return requireData(await arbi.fetch.GET("/v1/user/me/usage/today"), "Failed to fetch today usage");
7052
7115
  }
7116
+ var projectPath = (projectExtId) => ({ path: { project_ext_id: projectExtId } });
7117
+ async function listProducts(arbi) {
7118
+ return requireData(await arbi.fetch.GET("/v1/user/products"), "Failed to load the plans");
7119
+ }
7120
+ async function quotePlan(arbi, projectExtId, body) {
7121
+ return requireData(
7122
+ projectExtId ? await arbi.fetch.POST("/v1/user/projects/{project_ext_id}/checkout/quote", {
7123
+ params: projectPath(projectExtId),
7124
+ body
7125
+ }) : await arbi.fetch.POST("/v1/user/projects/quote", { body }),
7126
+ "Failed to price the plan"
7127
+ );
7128
+ }
7129
+ async function createCheckout(arbi, projectExtId, body) {
7130
+ return requireData(
7131
+ await arbi.fetch.POST("/v1/user/projects/{project_ext_id}/checkout", {
7132
+ params: projectPath(projectExtId),
7133
+ body
7134
+ }),
7135
+ "Failed to start the checkout"
7136
+ );
7137
+ }
7138
+ async function changePlan(arbi, projectExtId, body) {
7139
+ return requireData(
7140
+ await arbi.fetch.POST("/v1/user/projects/{project_ext_id}/change-plan", {
7141
+ params: projectPath(projectExtId),
7142
+ body
7143
+ }),
7144
+ "Failed to change the plan"
7145
+ );
7146
+ }
7147
+ async function previewPlanChange(arbi, projectExtId, body) {
7148
+ return requireData(
7149
+ await arbi.fetch.POST("/v1/user/projects/{project_ext_id}/plan/preview", {
7150
+ params: projectPath(projectExtId),
7151
+ body
7152
+ }),
7153
+ "Failed to price the plan change"
7154
+ );
7155
+ }
7156
+ async function quoteAddon(arbi, projectExtId, kind) {
7157
+ return requireData(
7158
+ await arbi.fetch.GET("/v1/user/projects/{project_ext_id}/addons/quote", {
7159
+ params: { ...projectPath(projectExtId), query: { kind } }
7160
+ }),
7161
+ "Failed to price the add-on"
7162
+ );
7163
+ }
7164
+ async function billingPortal(arbi, projectExtId) {
7165
+ return requireData(
7166
+ await arbi.fetch.POST("/v1/user/projects/{project_ext_id}/billing-portal", {
7167
+ params: projectPath(projectExtId)
7168
+ }),
7169
+ "Failed to open the billing portal"
7170
+ );
7171
+ }
7172
+ async function addAddonBlock(arbi, projectExtId, kind) {
7173
+ const params = projectPath(projectExtId);
7174
+ return requireData(
7175
+ kind === "ai_usage" ? await arbi.fetch.POST("/v1/user/projects/{project_ext_id}/addons/ai-usage", { params }) : await arbi.fetch.POST("/v1/user/projects/{project_ext_id}/addons/storage", { params }),
7176
+ "Failed to add the add-on"
7177
+ );
7178
+ }
7179
+ async function setNextPeriodAddons(arbi, projectExtId, body) {
7180
+ return requireData(
7181
+ await arbi.fetch.PUT("/v1/user/projects/{project_ext_id}/addons/next-period", {
7182
+ params: projectPath(projectExtId),
7183
+ body
7184
+ }),
7185
+ "Failed to change the add-ons"
7186
+ );
7187
+ }
7188
+ async function updateAddonSettings(arbi, projectExtId, body) {
7189
+ return requireData(
7190
+ await arbi.fetch.PUT("/v1/user/projects/{project_ext_id}/addons/settings", {
7191
+ params: projectPath(projectExtId),
7192
+ body
7193
+ }),
7194
+ "Failed to save the add-on settings"
7195
+ );
7196
+ }
7197
+ async function cancelSubscription(arbi, projectExtId) {
7198
+ return requireData(
7199
+ await arbi.fetch.POST("/v1/user/projects/{project_ext_id}/cancel", {
7200
+ params: projectPath(projectExtId)
7201
+ }),
7202
+ "Failed to cancel the subscription"
7203
+ );
7204
+ }
7053
7205
 
7054
7206
  // src/operations/work.ts
7055
7207
  var work_exports = {};
@@ -8141,10 +8293,8 @@ __export(calendar_exports, {
8141
8293
  cancelPublicBooking: () => cancelPublicBooking,
8142
8294
  connectCalDavAccount: () => connectCalDavAccount,
8143
8295
  connectOAuthAccount: () => connectOAuthAccount,
8144
- createAppPassword: () => createAppPassword,
8145
8296
  createCalendar: () => createCalendar,
8146
8297
  createEvent: () => createEvent,
8147
- createFeed: () => createFeed,
8148
8298
  createRoom: () => createRoom,
8149
8299
  decideCounter: () => decideCounter,
8150
8300
  deleteBookingPage: () => deleteBookingPage,
@@ -8161,7 +8311,6 @@ __export(calendar_exports, {
8161
8311
  getPublicBookingPage: () => getPublicBookingPage,
8162
8312
  importCalendarIcs: () => importCalendarIcs,
8163
8313
  listAccounts: () => listAccounts,
8164
- listAppPasswords: () => listAppPasswords,
8165
8314
  listBookingPages: () => listBookingPages,
8166
8315
  listCalDavProfiles: () => listCalDavProfiles,
8167
8316
  listCalendars: () => listCalendars,
@@ -8179,9 +8328,7 @@ __export(calendar_exports, {
8179
8328
  putCalendarSettings: () => putCalendarSettings,
8180
8329
  refreshCalendar: () => refreshCalendar,
8181
8330
  respondToEvent: () => respondToEvent,
8182
- revokeAppPassword: () => revokeAppPassword,
8183
8331
  shareCalendar: () => shareCalendar,
8184
- splitAppPasswords: () => splitAppPasswords,
8185
8332
  subscribeCalendar: () => subscribeCalendar,
8186
8333
  syncAccount: () => syncAccount,
8187
8334
  unlockCalendarKeys: () => unlockCalendarKeys,
@@ -8569,46 +8716,6 @@ async function publishCalendarToAccount(client, accId, calendarId) {
8569
8716
  "Publishing the calendar"
8570
8717
  );
8571
8718
  }
8572
- async function listAppPasswords(client) {
8573
- return take(await client.fetch.GET("/v1/calendar/app-passwords"), "Loading app passwords");
8574
- }
8575
- async function createAppPassword(client, body) {
8576
- return take(
8577
- await client.fetch.POST("/v1/calendar/app-passwords", {
8578
- body: {
8579
- label: body.label.trim(),
8580
- calendar_ids: body.calendar_ids?.length ? body.calendar_ids : null
8581
- }
8582
- }),
8583
- "Creating the app password"
8584
- );
8585
- }
8586
- async function createFeed(client, body) {
8587
- return take(
8588
- await client.fetch.POST("/v1/calendar/feeds", {
8589
- body: {
8590
- calendar_id: body.calendar_id,
8591
- level: body.level,
8592
- label: body.label?.trim() || (body.level === "full" ? "Feed" : "Free/busy feed")
8593
- }
8594
- }),
8595
- "Creating the feed"
8596
- );
8597
- }
8598
- async function revokeAppPassword(client, apwId) {
8599
- take(
8600
- await client.fetch.DELETE("/v1/calendar/app-passwords/{apw_id}", {
8601
- params: { path: { apw_id: apwId } }
8602
- }),
8603
- "Revoking"
8604
- );
8605
- }
8606
- function splitAppPasswords(rows) {
8607
- return {
8608
- devices: rows.filter((r2) => r2.kind === "dav"),
8609
- feeds: rows.filter((r2) => r2.kind === "feed" || r2.kind === "freebusy")
8610
- };
8611
- }
8612
8719
  async function listBookingPages(client) {
8613
8720
  return take(await client.fetch.GET("/v1/calendar/booking-pages"), "Loading booking pages");
8614
8721
  }
@@ -8977,7 +9084,23 @@ var Arbi = class {
8977
9084
  /** AI usage + spend breakdown for a project's billing period. */
8978
9085
  usage: (projectExtId, monthsBack) => getProjectUsage(this.requireClient(), projectExtId, monthsBack),
8979
9086
  /** Stripe invoices for a project's subscription. */
8980
- invoices: (projectExtId) => getProjectInvoices(this.requireClient(), projectExtId)
9087
+ invoices: (projectExtId) => getProjectInvoices(this.requireClient(), projectExtId),
9088
+ /** Delete a project (only when empty: no workspaces, no subscription). */
9089
+ delete: (projectExtId) => deleteProject(this.requireClient(), projectExtId),
9090
+ /** The plans and add-ons on sale. */
9091
+ products: () => listProducts(this.requireClient()),
9092
+ /** The taxed total of a Pro purchase (a new project when `projectExtId` is null). */
9093
+ quotePlan: (projectExtId, body) => quotePlan(this.requireClient(), projectExtId, body),
9094
+ /** Start an embedded Stripe checkout; returns its `client_secret`. */
9095
+ checkout: (projectExtId, body) => createCheckout(this.requireClient(), projectExtId, body),
9096
+ changePlan: (projectExtId, body) => changePlan(this.requireClient(), projectExtId, body),
9097
+ previewPlanChange: (projectExtId, body) => previewPlanChange(this.requireClient(), projectExtId, body),
9098
+ quoteAddon: (projectExtId, kind) => quoteAddon(this.requireClient(), projectExtId, kind),
9099
+ billingPortal: (projectExtId) => billingPortal(this.requireClient(), projectExtId),
9100
+ addAddonBlock: (projectExtId, kind) => addAddonBlock(this.requireClient(), projectExtId, kind),
9101
+ setNextPeriodAddons: (projectExtId, body) => setNextPeriodAddons(this.requireClient(), projectExtId, body),
9102
+ updateAddonSettings: (projectExtId, body) => updateAddonSettings(this.requireClient(), projectExtId, body),
9103
+ cancelSubscription: (projectExtId) => cancelSubscription(this.requireClient(), projectExtId)
8981
9104
  };
8982
9105
  // ── User (account-scoped usage) ───────────────────────────────────────
8983
9106
  user = {
@@ -9161,6 +9284,11 @@ var Arbi = class {
9161
9284
  void 0,
9162
9285
  options?.confirmInvite
9163
9286
  ),
9287
+ /**
9288
+ * `POST /v1/workspace/users` with the whole request (another workspace with its sealed key, a
9289
+ * session-scoped grant, an invitation, a resource share): see `addWorkspaceMembers`.
9290
+ */
9291
+ addMembers: (request) => addWorkspaceMembers(this.requireClient(), request),
9164
9292
  /**
9165
9293
  * Grant users a temporary key scoped to ONE session (identified by its public key), for
9166
9294
  * example an agent's run session minted by `agents.authorize()`. Nothing standing is created:
@@ -9469,7 +9597,8 @@ var Arbi = class {
9469
9597
  /** The skills the caller can run (own + shared marketplace), metadata only. */
9470
9598
  listSkills: (options) => listSkills(this.requireClient(), options),
9471
9599
  /**
9472
- * Search documents without LLM generation (retrieval only).
9600
+ * Search documents without LLM generation (retrieval only). No `docIds` searches the whole
9601
+ * workspace; `searchChunks(result)` ranks the passages found.
9473
9602
  */
9474
9603
  retrieve: (query, docIds, options) => retrieve({
9475
9604
  arbi: this.requireClient(),
@@ -9599,10 +9728,6 @@ var Arbi = class {
9599
9728
  syncAccount: (accId) => this.withCalendarKeys((c2) => syncAccount(c2, accId)),
9600
9729
  disconnectAccount: (accId) => this.withCalendarKeys((c2) => disconnectAccount(c2, accId)),
9601
9730
  publishToAccount: (accId, calendarId) => this.withCalendarKeys((c2) => publishCalendarToAccount(c2, accId, calendarId)),
9602
- listAppPasswords: () => this.withCalendarKeys((c2) => listAppPasswords(c2)),
9603
- createAppPassword: (body) => this.withCalendarKeys((c2) => createAppPassword(c2, body)),
9604
- createFeed: (body) => this.withCalendarKeys((c2) => createFeed(c2, body)),
9605
- revokeAppPassword: (apwId) => this.withCalendarKeys((c2) => revokeAppPassword(c2, apwId)),
9606
9731
  listBookingPages: () => this.withCalendarKeys((c2) => listBookingPages(c2)),
9607
9732
  putBookingPage: (body) => this.withCalendarKeys((c2) => putBookingPage(c2, body)),
9608
9733
  deleteBookingPage: (slug) => this.withCalendarKeys((c2) => deleteBookingPage(c2, slug))
@@ -9917,6 +10042,116 @@ var Arbi = class {
9917
10042
  }
9918
10043
  };
9919
10044
 
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 };
10045
+ // src/tag-helpers.ts
10046
+ var ENTITY_KINDS = ["person", "organisation"];
10047
+ var PRESENCE_KINDS = ["label", "issue", "person", "organisation"];
10048
+ function defaultKindForFormat(format) {
10049
+ if (format === "checkbox") return "label";
10050
+ if (format === "search") return "search";
10051
+ return "annotation";
10052
+ }
10053
+ function tagUseCount(tag) {
10054
+ return (tag.doctag_count ?? 0) + (tag.facttag_count ?? 0) + (tag.convotag_count ?? 0);
10055
+ }
10056
+ function filterDocumentTags(tags) {
10057
+ return tags.filter((tag) => tag.kind !== "search");
10058
+ }
10059
+ function isPresenceTag(tag) {
10060
+ return PRESENCE_KINDS.includes(tag.kind);
10061
+ }
10062
+ function isLabelTag(tag) {
10063
+ return tag.kind === "label";
10064
+ }
10065
+ function isAnnotationTag(tag) {
10066
+ return tag.kind === "annotation";
10067
+ }
10068
+ function isEntityTag(tag) {
10069
+ return ENTITY_KINDS.includes(tag.kind);
10070
+ }
10071
+ function tagsOfGroup(tags, group) {
10072
+ return tags.filter(group === "label" ? isLabelTag : isAnnotationTag);
10073
+ }
10074
+ function tagsForScope(tags, scope) {
10075
+ return tags.filter((tag) => {
10076
+ const onDocs = (tag.doctag_count ?? 0) > 0;
10077
+ const onFacts = (tag.facttag_count ?? 0) > 0;
10078
+ if (!onDocs && !onFacts) return true;
10079
+ return scope === "document" ? onDocs : onFacts;
10080
+ });
10081
+ }
10082
+ var TAG_NESTING_MAX_DEPTH = 2;
10083
+ function indexByExternalId(tags) {
10084
+ return new Map(tags.map((tag) => [tag.external_id, tag]));
10085
+ }
10086
+ function resolveParentId(tag, byId3) {
10087
+ const parentId = tag.parent_ext_id;
10088
+ if (!parentId || parentId === tag.external_id) return null;
10089
+ return byId3.has(parentId) ? parentId : null;
10090
+ }
10091
+ function buildChildIndex(tags) {
10092
+ const byId3 = indexByExternalId(tags);
10093
+ const childrenOf = /* @__PURE__ */ new Map();
10094
+ for (const tag of tags) {
10095
+ const parentId = resolveParentId(tag, byId3);
10096
+ if (!parentId) continue;
10097
+ const siblings = childrenOf.get(parentId);
10098
+ if (siblings) siblings.push(tag);
10099
+ else childrenOf.set(parentId, [tag]);
10100
+ }
10101
+ return childrenOf;
10102
+ }
10103
+ function getChildTags(tags, tagId) {
10104
+ return buildChildIndex(tags).get(tagId) ?? [];
10105
+ }
10106
+ function getTagDescendantIds(tags, tagId) {
10107
+ const childrenOf = buildChildIndex(tags);
10108
+ const found = /* @__PURE__ */ new Set();
10109
+ const queue = [...childrenOf.get(tagId) ?? []];
10110
+ while (queue.length > 0) {
10111
+ const tag = queue.shift();
10112
+ if (tag.external_id === tagId || found.has(tag.external_id)) continue;
10113
+ found.add(tag.external_id);
10114
+ queue.push(...childrenOf.get(tag.external_id) ?? []);
10115
+ }
10116
+ return found;
10117
+ }
10118
+ function flattenTagTree(tags) {
10119
+ const byId3 = indexByExternalId(tags);
10120
+ const childrenOf = buildChildIndex(tags);
10121
+ const rows = [];
10122
+ const emitted = /* @__PURE__ */ new Set();
10123
+ const visit = (tag, depth) => {
10124
+ if (emitted.has(tag.external_id)) return;
10125
+ emitted.add(tag.external_id);
10126
+ const children = childrenOf.get(tag.external_id) ?? [];
10127
+ rows.push({ tag, depth, childCount: children.length });
10128
+ for (const child of children) visit(child, depth + 1);
10129
+ };
10130
+ for (const tag of tags) {
10131
+ if (resolveParentId(tag, byId3) === null) visit(tag, 0);
10132
+ }
10133
+ for (const tag of tags) visit(tag, 0);
10134
+ return rows;
10135
+ }
10136
+ var isFlatKind = (kind) => FLAT_TAG_KINDS.includes(kind);
10137
+ function getEligibleParentTags(tags, tagId) {
10138
+ const byId3 = indexByExternalId(tags);
10139
+ const blocked = tagId ? getTagDescendantIds(tags, tagId) : /* @__PURE__ */ new Set();
10140
+ if (tagId) blocked.add(tagId);
10141
+ return tags.filter(
10142
+ (tag) => !blocked.has(tag.external_id) && resolveParentId(tag, byId3) === null && // Issues, people and organisations are flat: never a parent (the API refuses it).
10143
+ !isFlatKind(tag.kind)
10144
+ );
10145
+ }
10146
+ function wouldCreateTagCycle(tags, tagId, parentId) {
10147
+ if (!parentId) return false;
10148
+ if (parentId === tagId) return true;
10149
+ return getTagDescendantIds(tags, tagId).has(parentId);
10150
+ }
10151
+ function canTagHaveParent(tags, tagId) {
10152
+ return getChildTags(tags, tagId).length === 0;
10153
+ }
10154
+
10155
+ export { ACCOUNT_VENDOR, Arbi, ArbiApiError, ArbiError, DEFAULT_AI_USD_PER_GBP, DRIVE_SYNC_VENDORS, ENTITY_KINDS, FLAT_TAG_KINDS, GOOGLE_VENDORS, IMANAGE_VENDORS, MAILBOX_SYNC_VENDORS, MAX_RETRIEVE_DOC_IDS, MICROSOFT_VENDORS, PRESENCE_KINDS, PlanStepsError, PublicBookingError, SHAREPOINT_VENDORS, TAG_KINDS, TAG_NESTING_MAX_DEPTH, WebSocketAuthError, account_exports as account, agentconfig_exports as agentconfig, assistant_exports as assistant, authenticatedFetch, bookPublicSlot, buildCitationChunkData, buildFactsContextTool, buildRetrievalChunkTool, buildRetrievalFullContextTool, buildRetrievalTocTool, calendar_exports as calendar, canTagHaveParent, cancelPublicBooking, chats_exports as chats, connectErrorMessage, connectWebSocket, connectWithReconnect, connectors_exports as connectors, consumeSSEStream, contacts_exports as contacts, conversations_exports as conversations, countCitations, createAuthenticatedClient, defaultKindForFormat, doctags_exports as doctags, documents_exports as documents, facts_exports as facts, files_exports as files, filterDocumentTags, filterSkills, flattenTagTree, formatAgentStepLabel, formatFileSize, formatGbp, formatGbpPerMillionTokens, formatItemLabel, formatUserName, formatWorkspaceChoices, getChildTags, getEligibleParentTags, getErrorMessage, getPublicBookingPage, getRawWorkspaceKey, getTagDescendantIds, health_exports as health, house_template_exports as houseTemplates, identityErrorCode, identity_exports as identityVerification, isAnnotationTag, isConnectorVendorVisible, isDriveSyncVendor, isEntityTag, isFlatKind, isLabelTag, isMailboxSyncVendor, isPresenceTag, isSharePointVendor, mail_exports as mail, notifications_exports as notifications, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, performPasswordLogin, profile_exports as profile, projects_exports as projects, refusalReason, requireData, requireOk, resolveAuth, resolveCitations, resolveWorkspace, responses_exports as responses, searchChunks, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, streamSSE, stripCitationMarkdown, summarizeCitations, tagUseCount, tags_exports as tags, tagsForScope, tagsOfGroup, usdToGbp, work_exports as work, workflow_steps_exports as workflowSteps, workflows_exports as workflows, workspaces_exports as workspaces, wouldCreateTagCycle };
9921
10156
  //# sourceMappingURL=browser.js.map
9922
10157
  //# sourceMappingURL=browser.js.map