@arbidocs/sdk 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{browser-D2XBFIcc.d.ts → browser-CRqv7UD1.d.ts} +55 -5
- package/dist/{browser-CuA9Q2NR.d.cts → browser-C_9JAJBA.d.cts} +55 -5
- package/dist/browser.cjs +60 -8
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +61 -9
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +60 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +61 -9
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/browser.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiHostSession, h as ArbiOptions, j as ArbiWorkspaceChangedError, k as ArbiWorkspaceSupersededError, l as AskHandlers, m as AskRequest, n as AttendeeRead, o as AuthContext, p as AuthHeaders, q as AuthMode, r as AuthenticatedClient, B as BookingConfirmation, s as BookingPage, t as BookingPageWriteBody, u as BookingRequestBody, v as BridgeTokensOptions, C as CalDavConnectBody, w as CalDavProfile, x as CalendarAccount, y as CalendarAccountKind, z as CalendarCreateBody, D as CalendarEvent, E as CalendarKeys, F as CalendarRead, G as CalendarSettings, H as CalendarSettingsBody, I as CalendarUpdate, J as CalendarWindow, K as CallApiError, L as ChatAttachmentFile, M as ChatAttachmentInput, N as ChatCryptoContext, O as ChatKeyRing, P as ChatKind, Q as ChatMemberKey, R as ChatMemberResponse, S as ChatMessage, T as ChatMessageResponse, U as ChatResponse, V as ChatSession, W as CitationSummary, X as CitationToolSources, Y as CliConfig, Z as CliCredentials, _ as CommandDescriptor, $ as ConfigStore, a0 as ConnectOptions, a1 as ConnectorCatalogEntry, a2 as ConnectorFolder, a3 as ConnectorSyncProgress, a4 as ConnectorSyncStatus, a5 as ConnectorVendorKey, a6 as ConnectorVisibilitySettings, a7 as ContextUsage, a8 as ConversationResponse, a9 as ConversationUsageResponse, aa as CreateFactRequest, ab as CreateFactsRequest, ac as CreateWorkRequest, ad as CreateWorkflowRequest, ae as DEFAULT_AI_USD_PER_GBP, ag as DRIVE_SYNC_VENDORS, ah as DateTimeSpec, aj as DecryptedChatMessage, ak as DeploymentHouseTemplate, al as DocInfo, am as DocInfoMap, ao as DocumentAutomationAction, ar as DocumentSelector, au as DriveSyncProgress, av as DriveSyncSummary, aw as DuplicateContactError, ax as ENTITY_KINDS, ay as EditScope, az as EntityKind, aA as EventCreateBody, aB as EventPatchBody, aC as FLAT_TAG_KINDS, aD as FactResponse, aE as FactSearchRequest, aF as FactSearchResponse, aG as FindTimeParams, aI as FreeBusyEntry, aJ as FullContextSelection, aK as GOOGLE_VENDORS, aL as HolidayCountry, aM as HouseTemplateCandidate, aN as IMANAGE_VENDORS, aO as IdentityErrorCode, aP as IdentityPurchase, aQ as IdentityState, aR as IdentityStatus, aS as ImportResult, aT as InvitationRead, aU as LinkedRun, aW as ListEventsParams, aX as ListFactsOptions, aZ as MAILBOX_SYNC_VENDORS, a_ as MAX_RETRIEVE_DOC_IDS, a$ as MICROSOFT_VENDORS, b2 as OAuthAccountKind, b3 as OutputItemDone, b4 as OverlayItem, b5 as OverlayLayerName, b6 as PRESENCE_KINDS, b7 as PROMPT_CONTEXT_CHARS, b8 as ParsedSlashCommand, b9 as PendingAuthResponse, ba as PersonKey, bb as PlanStepsError, bc as PlanWorkRequest, bd as ProductResponse, be as ProjectAddonKind, bf as ProjectAddonSettingsRequest, bg as ProjectBudget, bh as ProjectCheckoutRequest, bi as ProjectConversationUsageResponse, bj as ProjectCreateOptions, bk as ProjectDetails, bl as ProjectEventKind, bm as ProjectEventResponse, bn as ProjectInvoicesResponse, bo as ProjectNextPeriodAddonsRequest, bp as ProjectPlanChangeRequest, bq as ProjectQuoteRequest, br as ProjectResponse, bs as ProjectUpdateRequest, bt as ProjectUsageResponse, bu as PublicBookingError, bv as PublicBookingPage, bw as QuotaExceeded, bx as RaisedSignal, by as ReconnectOptions, bz as ReconnectableWsConnection, bA as ResolvedCitation, bC as RespondParams, bD as RespondPartstat, bE as RoomCreateBody, bF as RoomQuery, bG as RoomRead, bH as RunProgress, bI as RunStats, bJ as RunStep, bK as RunWaitingOn, bL as SHAREPOINT_VENDORS, bM as SSEEvent, bN as SSEStreamCallbacks, bO as SSEStreamResult, bQ as STOP_ID_WAIT_MS, bR as STOP_REPEAT_WINDOW_MS, bT as ScopedTarget, bU as SearchChunk, bV as SendBack, bW as ShareRead, bX as ShareRole, bY as SkillSummary, bZ as SkippedFile, b_ as SlackConnectionStatus, b$ as StepActionRequest, c0 as StepActivityEvent, c1 as StepAssignee, c2 as StepDisplay, c3 as StepField, c6 as StepKind, c7 as StepPhase, c8 as StepSignal, c9 as StepSignalWhen, ca as StepState, cb as StepStatus, cc as SubagentBranchRecord, cd as SubagentLaneInfo, ce as SubmitBackgroundQueryOptions, cf as SubscribeParams, cg as SyncTriggerResult, ch as TAG_KINDS, ci as TAG_NESTING_MAX_DEPTH, cj as TagChange, ck as TagFieldDefinition, cl as TagGroup, cm as TagKind, cn as TagKindField, co as TagKindSchema, cp as TagLinks, cq as TagListQuery, cr as TagNode, cs as TagResponse, ct as TagScope, cu as TagTreeRow, cv as TaskPlan, cw as TaskPlanStep, cx as TaxQuoteResponse, cy as Thread, cz as ThreadsResponse, cA as TimeSuggestion, cB as TurnRequest, cC as UpdateConversationRequest, cD as UpdateFactRequest, cE as UpdateWorkflowRequest, cI as UploadDocumentsOptions, cJ as UploadOptions, cK as UploadProgressListener, cL as UploadResult, cM as UsageBreakdown, cN as UserConnectorEntry, cO as UserDailyUsageResponse, cP as UserInfo, cQ as WebSocketAuthError, cR as WeeklyHoursSpec, cS as WorkStatus, cT as WorkflowAuthMode, cU as WorkflowResponse, cV as WorkflowRunHistoryResponse, cW as WorkflowRunResponse, cX as WorkspaceContext, cY as WorkspaceOpenResponse, cZ as WsConnection, c_ as account, c$ as agentconfig, d1 as appendTranscriptionHints, d2 as assistant, d3 as authenticatedFetch, d4 as bookPublicSlot, d5 as buildCitationChunkData, d7 as buildDocumentTools, d8 as buildFactsContextTool, d9 as buildRetrievalChunkTool, da as buildRetrievalFullContextTool, db as buildRetrievalTocTool, dc as buildTurnRequest, dd as calendar, de as calls, df as canTagHaveParent, dg as cancelPublicBooking, dh as chats, di as computeRunStats, dj as connectErrorMessage, dk as connectWebSocket, dl as connectWithReconnect, dm as connectors, dn as consumeSSEStream, dp as contacts, dq as continuityPrompt, dr as conversations, ds as countCitations, dt as createAuthenticatedClient, dv as createIndexAssigner, dw as defaultKindForFormat, dx as doctags, dy as documents, dz as estimateDraftTokens, dA as extractDocumentIdsFromMessages, dB as extractFactIdsFromMessages, dC as extractSubagentLanes, dD as facts, dE as files, dF as filterDocumentTags, dG as filterSkills, dH as findLeafForTaskMessage, dI as findMainSiblingLeaf, dJ as findReplyTarget, dK as findSubagentRunId, dL as flattenTagTree, dM as formatAgentStepLabel, dN as formatFileSize, dO as formatGbp, dP as formatGbpPerMillionTokens, dQ as formatItemLabel, dS as formatTokens, dT as formatUserName, dU as formatWorkspaceChoices, dY as getAgentStepLabel, dZ as getAttachableRunId, d_ as getChildTags, d$ as getContextRemainingPercent, e0 as getContextUsedPercent, e1 as getContextUsedTokens, e2 as getCurrentStep, e3 as getEligibleParentTags, e5 as getErrorMessage, e6 as getPublicBookingPage, e7 as getRawWorkspaceKey, e8 as getRunToAttach, e9 as getRunToCancel, ea as getStepDisplay, eb as getStepTool, ec as getSubagentBranchRecord, ed as getTagDescendantIds, ee as health, ef as houseTemplates, eg as hydrateAgentSteps, ei as identityErrorCode, eh as identityVerification, ej as isAnnotationTag, ek as isConnectorVendorVisible, el as isDriveSyncVendor, em as isEntityTag, en as isFlatKind, eo as isLabelTag, ep as isMailboxSyncVendor, eq as isNearAiUsageBudget, er as isPresenceTag, es as isSharePointVendor, et as isSharedSkill, eu as isTraceItem, ev as mail, ew as mergeAgentSteps, ex as notifications, ey as parseSSEEvents, ez as parseSlashCommand, eA as parseSlashTokenInProgress, eB as performPasswordLogin, eE as pickMainThread, eF as profile, eG as progressFetch, eH as projects, eI as quotaExceededFrom, eJ as quotaFromStreamError, eK as reduceOutputItem, eL as refusalReason, eM as requireData, eN as requireOk, eO as resolveAuth, eP as resolveCitations, eQ as resolveSummary, eR as resolveWorkspace, eS as responses, eT as searchChunks, eU as selectFullContextDocument, eV as selectWorkspace, eW as selectWorkspaceById, eX as sessions, eY as settings, e_ as sliceToSubagentThread, e$ as streamSSE, f0 as stripCitationMarkdown, f1 as subagentJobLabel, f2 as summarizeCitations, f3 as tagUseCount, f4 as tags, f5 as tagsForScope, f6 as tagsOfGroup, f7 as topLevelAgentSteps, f9 as usdToGbp, fa as work, fb as workflowSteps, fc as workflows, fd as workspaces, fe as wouldCreateTagCycle } from './browser-
|
|
1
|
+
export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiHostSession, h as ArbiOptions, j as ArbiWorkspaceChangedError, k as ArbiWorkspaceSupersededError, l as AskHandlers, m as AskRequest, n as AttendeeRead, o as AuthContext, p as AuthHeaders, q as AuthMode, r as AuthenticatedClient, B as BookingConfirmation, s as BookingPage, t as BookingPageWriteBody, u as BookingRequestBody, v as BridgeTokensOptions, C as CalDavConnectBody, w as CalDavProfile, x as CalendarAccount, y as CalendarAccountKind, z as CalendarCreateBody, D as CalendarEvent, E as CalendarKeys, F as CalendarRead, G as CalendarSettings, H as CalendarSettingsBody, I as CalendarUpdate, J as CalendarWindow, K as CallApiError, L as ChatAttachmentFile, M as ChatAttachmentInput, N as ChatCryptoContext, O as ChatKeyRing, P as ChatKind, Q as ChatMemberKey, R as ChatMemberResponse, S as ChatMessage, T as ChatMessageResponse, U as ChatResponse, V as ChatSession, W as CitationSummary, X as CitationToolSources, Y as CliConfig, Z as CliCredentials, _ as CommandDescriptor, $ as ConfigStore, a0 as ConnectOptions, a1 as ConnectorCatalogEntry, a2 as ConnectorFolder, a3 as ConnectorSyncProgress, a4 as ConnectorSyncStatus, a5 as ConnectorVendorKey, a6 as ConnectorVisibilitySettings, a7 as ContextUsage, a8 as ConversationResponse, a9 as ConversationUsageResponse, aa as CreateFactRequest, ab as CreateFactsRequest, ac as CreateWorkRequest, ad as CreateWorkflowRequest, ae as DEFAULT_AI_USD_PER_GBP, ag as DRIVE_SYNC_VENDORS, ah as DateTimeSpec, aj as DecryptedChatMessage, ak as DeploymentHouseTemplate, al as DocInfo, am as DocInfoMap, ao as DocumentAutomationAction, ar as DocumentSelector, au as DriveSyncProgress, av as DriveSyncSummary, aw as DuplicateContactError, ax as ENTITY_KINDS, ay as EditScope, az as EntityKind, aA as EventCreateBody, aB as EventPatchBody, aC as FLAT_TAG_KINDS, aD as FactResponse, aE as FactSearchRequest, aF as FactSearchResponse, aG as FindTimeParams, aI as FreeBusyEntry, aJ as FullContextSelection, aK as GOOGLE_VENDORS, aL as HolidayCountry, aM as HouseTemplateCandidate, aN as IMANAGE_VENDORS, aO as IdentityErrorCode, aP as IdentityPurchase, aQ as IdentityState, aR as IdentityStatus, aS as ImportResult, aT as InvitationRead, aU as LinkedRun, aW as ListEventsParams, aX as ListFactsOptions, aZ as MAILBOX_SYNC_VENDORS, a_ as MAX_RETRIEVE_DOC_IDS, a$ as MICROSOFT_VENDORS, b2 as OAuthAccountKind, b3 as OutputItemDone, b4 as OverlayItem, b5 as OverlayLayerName, b6 as PRESENCE_KINDS, b7 as PROMPT_CONTEXT_CHARS, b8 as ParsedSlashCommand, b9 as PendingAuthResponse, ba as PersonKey, bb as PlanStepsError, bc as PlanWorkRequest, bd as ProductResponse, be as ProjectAddonKind, bf as ProjectAddonSettingsRequest, bg as ProjectBudget, bh as ProjectCheckoutRequest, bi as ProjectConversationUsageResponse, bj as ProjectCreateOptions, bk as ProjectDetails, bl as ProjectEventKind, bm as ProjectEventResponse, bn as ProjectInvoicesResponse, bo as ProjectNextPeriodAddonsRequest, bp as ProjectPlanChangeRequest, bq as ProjectQuoteRequest, br as ProjectResponse, bs as ProjectUpdateRequest, bt as ProjectUsageResponse, bu as PublicBookingError, bv as PublicBookingPage, bw as QuotaExceeded, bx as RaisedSignal, by as ReconnectOptions, bz as ReconnectableWsConnection, bA as ResolvedCitation, bC as RespondParams, bD as RespondPartstat, bE as RoomCreateBody, bF as RoomQuery, bG as RoomRead, bH as RunProgress, bI as RunStats, bJ as RunStep, bK as RunWaitingOn, bL as SHAREPOINT_VENDORS, bM as SSEEvent, bN as SSEStreamCallbacks, bO as SSEStreamResult, bQ as STOP_ID_WAIT_MS, bR as STOP_REPEAT_WINDOW_MS, bT as ScopedTarget, bU as SearchChunk, bV as SendBack, bW as ShareRead, bX as ShareRole, bY as SkillSummary, bZ as SkippedFile, b_ as SlackConnectionStatus, b$ as StepActionRequest, c0 as StepActivityEvent, c1 as StepAssignee, c2 as StepDisplay, c3 as StepField, c6 as StepKind, c7 as StepPhase, c8 as StepSignal, c9 as StepSignalWhen, ca as StepState, cb as StepStatus, cc as SubagentBranchRecord, cd as SubagentLaneInfo, ce as SubmitBackgroundQueryOptions, cf as SubscribeParams, cg as SyncTriggerResult, ch as TAG_KINDS, ci as TAG_NESTING_MAX_DEPTH, cj as TagChange, ck as TagFieldDefinition, cl as TagGroup, cm as TagKind, cn as TagKindField, co as TagKindSchema, cp as TagLinks, cq as TagListQuery, cr as TagNode, cs as TagResponse, ct as TagScope, cu as TagTreeRow, cv as TaskPlan, cw as TaskPlanStep, cx as TaxQuoteResponse, cy as Thread, cz as ThreadsResponse, cA as TimeSuggestion, cB as TurnRequest, cC as UpdateConversationRequest, cD as UpdateFactRequest, cE as UpdateWorkflowRequest, cI as UploadDocumentsOptions, cJ as UploadOptions, cK as UploadProgressListener, cL as UploadResult, cM as UsageBreakdown, cN as UserConnectorEntry, cO as UserDailyUsageResponse, cP as UserInfo, cQ as WebSocketAuthError, cR as WeeklyHoursSpec, cS as WorkStatus, cT as WorkflowAuthMode, cU as WorkflowResponse, cV as WorkflowRunHistoryResponse, cW as WorkflowRunResponse, cX as WorkspaceContext, cY as WorkspaceOpenResponse, cZ as WsConnection, c_ as account, c$ as agentconfig, d1 as appendTranscriptionHints, d2 as assistant, d3 as authenticatedFetch, d4 as bookPublicSlot, d5 as buildCitationChunkData, d7 as buildDocumentTools, d8 as buildFactsContextTool, d9 as buildRetrievalChunkTool, da as buildRetrievalFullContextTool, db as buildRetrievalTocTool, dc as buildTurnRequest, dd as calendar, de as calls, df as canTagHaveParent, dg as cancelPublicBooking, dh as chats, di as computeRunStats, dj as connectErrorMessage, dk as connectWebSocket, dl as connectWithReconnect, dm as connectors, dn as consumeSSEStream, dp as contacts, dq as continuityPrompt, dr as conversations, ds as countCitations, dt as createAuthenticatedClient, dv as createIndexAssigner, dw as defaultKindForFormat, dx as doctags, dy as documents, dz as estimateDraftTokens, dA as extractDocumentIdsFromMessages, dB as extractFactIdsFromMessages, dC as extractSubagentLanes, dD as facts, dE as files, dF as filterDocumentTags, dG as filterSkills, dH as findLeafForTaskMessage, dI as findMainSiblingLeaf, dJ as findReplyTarget, dK as findSubagentRunId, dL as flattenTagTree, dM as formatAgentStepLabel, dN as formatFileSize, dO as formatGbp, dP as formatGbpPerMillionTokens, dQ as formatItemLabel, dS as formatTokens, dT as formatUserName, dU as formatWorkspaceChoices, dY as getAgentStepLabel, dZ as getAttachableRunId, d_ as getChildTags, d$ as getContextRemainingPercent, e0 as getContextUsedPercent, e1 as getContextUsedTokens, e2 as getCurrentStep, e3 as getEligibleParentTags, e5 as getErrorMessage, e6 as getPublicBookingPage, e7 as getRawWorkspaceKey, e8 as getRunToAttach, e9 as getRunToCancel, ea as getStepDisplay, eb as getStepTool, ec as getSubagentBranchRecord, ed as getTagDescendantIds, ee as health, ef as houseTemplates, eg as hydrateAgentSteps, ei as identityErrorCode, eh as identityVerification, ej as isAnnotationTag, ek as isConnectorVendorVisible, el as isDriveSyncVendor, em as isEntityTag, en as isFlatKind, eo as isLabelTag, ep as isMailboxSyncVendor, eq as isNearAiUsageBudget, er as isPresenceTag, es as isSharePointVendor, et as isSharedSkill, eu as isTraceItem, ev as mail, ew as mergeAgentSteps, ex as notifications, ey as parseSSEEvents, ez as parseSlashCommand, eA as parseSlashTokenInProgress, eB as performPasswordLogin, eE as pickMainThread, eF as profile, eG as progressFetch, eH as projects, eI as quotaExceededFrom, eJ as quotaFromStreamError, eK as reduceOutputItem, eL as refusalReason, eM as requireData, eN as requireOk, eO as resolveAuth, eP as resolveCitations, eQ as resolveSummary, eR as resolveWorkspace, eS as responses, eT as searchChunks, eU as selectFullContextDocument, eV as selectWorkspace, eW as selectWorkspaceById, eX as sessions, eY as settings, e_ as sliceToSubagentThread, e$ as streamSSE, f0 as stripCitationMarkdown, f1 as subagentJobLabel, f2 as summarizeCitations, f3 as tagUseCount, f4 as tags, f5 as tagsForScope, f6 as tagsOfGroup, f7 as topLevelAgentSteps, f9 as usdToGbp, fa as work, fb as workflowSteps, fc as workflows, fd as workspaces, fe as wouldCreateTagCycle } from './browser-C_9JAJBA.cjs';
|
|
2
2
|
export { A as AgentControlStateEvent, a as AgentStepDeltaEvent, b as AgentStepEvent, c as ArbiErrorEvent, d as ArtifactEvent, D as DeferredInterjectionEvent, M as MailDraftSSEEvent, e as MessageMetadataPayload, f as MessageQueuedEvent, O as OutputTokensDetails, P as ProbeAnswerEvent, R as ResponseCompletedEvent, g as ResponseContentPartAddedEvent, h as ResponseCreatedEvent, i as ResponseFailedEvent, j as ResponseOutputItemAddedEvent, k as ResponseOutputItemDoneEvent, l as ResponseOutputTextDeltaEvent, m as ResponseOutputTextDoneEvent, n as ResponseUsage, S as SSEStreamStartData, T as TokenBudgetContext, U as UserInputRequestEvent, o as UserMessageEvent } from './sse-types-BbR7JG5o.cjs';
|
|
3
3
|
export { CallPeer, LoginProfile } from '@arbidocs/client';
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiHostSession, h as ArbiOptions, j as ArbiWorkspaceChangedError, k as ArbiWorkspaceSupersededError, l as AskHandlers, m as AskRequest, n as AttendeeRead, o as AuthContext, p as AuthHeaders, q as AuthMode, r as AuthenticatedClient, B as BookingConfirmation, s as BookingPage, t as BookingPageWriteBody, u as BookingRequestBody, v as BridgeTokensOptions, C as CalDavConnectBody, w as CalDavProfile, x as CalendarAccount, y as CalendarAccountKind, z as CalendarCreateBody, D as CalendarEvent, E as CalendarKeys, F as CalendarRead, G as CalendarSettings, H as CalendarSettingsBody, I as CalendarUpdate, J as CalendarWindow, K as CallApiError, L as ChatAttachmentFile, M as ChatAttachmentInput, N as ChatCryptoContext, O as ChatKeyRing, P as ChatKind, Q as ChatMemberKey, R as ChatMemberResponse, S as ChatMessage, T as ChatMessageResponse, U as ChatResponse, V as ChatSession, W as CitationSummary, X as CitationToolSources, Y as CliConfig, Z as CliCredentials, _ as CommandDescriptor, $ as ConfigStore, a0 as ConnectOptions, a1 as ConnectorCatalogEntry, a2 as ConnectorFolder, a3 as ConnectorSyncProgress, a4 as ConnectorSyncStatus, a5 as ConnectorVendorKey, a6 as ConnectorVisibilitySettings, a7 as ContextUsage, a8 as ConversationResponse, a9 as ConversationUsageResponse, aa as CreateFactRequest, ab as CreateFactsRequest, ac as CreateWorkRequest, ad as CreateWorkflowRequest, ae as DEFAULT_AI_USD_PER_GBP, ag as DRIVE_SYNC_VENDORS, ah as DateTimeSpec, aj as DecryptedChatMessage, ak as DeploymentHouseTemplate, al as DocInfo, am as DocInfoMap, ao as DocumentAutomationAction, ar as DocumentSelector, au as DriveSyncProgress, av as DriveSyncSummary, aw as DuplicateContactError, ax as ENTITY_KINDS, ay as EditScope, az as EntityKind, aA as EventCreateBody, aB as EventPatchBody, aC as FLAT_TAG_KINDS, aD as FactResponse, aE as FactSearchRequest, aF as FactSearchResponse, aG as FindTimeParams, aI as FreeBusyEntry, aJ as FullContextSelection, aK as GOOGLE_VENDORS, aL as HolidayCountry, aM as HouseTemplateCandidate, aN as IMANAGE_VENDORS, aO as IdentityErrorCode, aP as IdentityPurchase, aQ as IdentityState, aR as IdentityStatus, aS as ImportResult, aT as InvitationRead, aU as LinkedRun, aW as ListEventsParams, aX as ListFactsOptions, aZ as MAILBOX_SYNC_VENDORS, a_ as MAX_RETRIEVE_DOC_IDS, a$ as MICROSOFT_VENDORS, b2 as OAuthAccountKind, b3 as OutputItemDone, b4 as OverlayItem, b5 as OverlayLayerName, b6 as PRESENCE_KINDS, b7 as PROMPT_CONTEXT_CHARS, b8 as ParsedSlashCommand, b9 as PendingAuthResponse, ba as PersonKey, bb as PlanStepsError, bc as PlanWorkRequest, bd as ProductResponse, be as ProjectAddonKind, bf as ProjectAddonSettingsRequest, bg as ProjectBudget, bh as ProjectCheckoutRequest, bi as ProjectConversationUsageResponse, bj as ProjectCreateOptions, bk as ProjectDetails, bl as ProjectEventKind, bm as ProjectEventResponse, bn as ProjectInvoicesResponse, bo as ProjectNextPeriodAddonsRequest, bp as ProjectPlanChangeRequest, bq as ProjectQuoteRequest, br as ProjectResponse, bs as ProjectUpdateRequest, bt as ProjectUsageResponse, bu as PublicBookingError, bv as PublicBookingPage, bw as QuotaExceeded, bx as RaisedSignal, by as ReconnectOptions, bz as ReconnectableWsConnection, bA as ResolvedCitation, bC as RespondParams, bD as RespondPartstat, bE as RoomCreateBody, bF as RoomQuery, bG as RoomRead, bH as RunProgress, bI as RunStats, bJ as RunStep, bK as RunWaitingOn, bL as SHAREPOINT_VENDORS, bM as SSEEvent, bN as SSEStreamCallbacks, bO as SSEStreamResult, bQ as STOP_ID_WAIT_MS, bR as STOP_REPEAT_WINDOW_MS, bT as ScopedTarget, bU as SearchChunk, bV as SendBack, bW as ShareRead, bX as ShareRole, bY as SkillSummary, bZ as SkippedFile, b_ as SlackConnectionStatus, b$ as StepActionRequest, c0 as StepActivityEvent, c1 as StepAssignee, c2 as StepDisplay, c3 as StepField, c6 as StepKind, c7 as StepPhase, c8 as StepSignal, c9 as StepSignalWhen, ca as StepState, cb as StepStatus, cc as SubagentBranchRecord, cd as SubagentLaneInfo, ce as SubmitBackgroundQueryOptions, cf as SubscribeParams, cg as SyncTriggerResult, ch as TAG_KINDS, ci as TAG_NESTING_MAX_DEPTH, cj as TagChange, ck as TagFieldDefinition, cl as TagGroup, cm as TagKind, cn as TagKindField, co as TagKindSchema, cp as TagLinks, cq as TagListQuery, cr as TagNode, cs as TagResponse, ct as TagScope, cu as TagTreeRow, cv as TaskPlan, cw as TaskPlanStep, cx as TaxQuoteResponse, cy as Thread, cz as ThreadsResponse, cA as TimeSuggestion, cB as TurnRequest, cC as UpdateConversationRequest, cD as UpdateFactRequest, cE as UpdateWorkflowRequest, cI as UploadDocumentsOptions, cJ as UploadOptions, cK as UploadProgressListener, cL as UploadResult, cM as UsageBreakdown, cN as UserConnectorEntry, cO as UserDailyUsageResponse, cP as UserInfo, cQ as WebSocketAuthError, cR as WeeklyHoursSpec, cS as WorkStatus, cT as WorkflowAuthMode, cU as WorkflowResponse, cV as WorkflowRunHistoryResponse, cW as WorkflowRunResponse, cX as WorkspaceContext, cY as WorkspaceOpenResponse, cZ as WsConnection, c_ as account, c$ as agentconfig, d1 as appendTranscriptionHints, d2 as assistant, d3 as authenticatedFetch, d4 as bookPublicSlot, d5 as buildCitationChunkData, d7 as buildDocumentTools, d8 as buildFactsContextTool, d9 as buildRetrievalChunkTool, da as buildRetrievalFullContextTool, db as buildRetrievalTocTool, dc as buildTurnRequest, dd as calendar, de as calls, df as canTagHaveParent, dg as cancelPublicBooking, dh as chats, di as computeRunStats, dj as connectErrorMessage, dk as connectWebSocket, dl as connectWithReconnect, dm as connectors, dn as consumeSSEStream, dp as contacts, dq as continuityPrompt, dr as conversations, ds as countCitations, dt as createAuthenticatedClient, dv as createIndexAssigner, dw as defaultKindForFormat, dx as doctags, dy as documents, dz as estimateDraftTokens, dA as extractDocumentIdsFromMessages, dB as extractFactIdsFromMessages, dC as extractSubagentLanes, dD as facts, dE as files, dF as filterDocumentTags, dG as filterSkills, dH as findLeafForTaskMessage, dI as findMainSiblingLeaf, dJ as findReplyTarget, dK as findSubagentRunId, dL as flattenTagTree, dM as formatAgentStepLabel, dN as formatFileSize, dO as formatGbp, dP as formatGbpPerMillionTokens, dQ as formatItemLabel, dS as formatTokens, dT as formatUserName, dU as formatWorkspaceChoices, dY as getAgentStepLabel, dZ as getAttachableRunId, d_ as getChildTags, d$ as getContextRemainingPercent, e0 as getContextUsedPercent, e1 as getContextUsedTokens, e2 as getCurrentStep, e3 as getEligibleParentTags, e5 as getErrorMessage, e6 as getPublicBookingPage, e7 as getRawWorkspaceKey, e8 as getRunToAttach, e9 as getRunToCancel, ea as getStepDisplay, eb as getStepTool, ec as getSubagentBranchRecord, ed as getTagDescendantIds, ee as health, ef as houseTemplates, eg as hydrateAgentSteps, ei as identityErrorCode, eh as identityVerification, ej as isAnnotationTag, ek as isConnectorVendorVisible, el as isDriveSyncVendor, em as isEntityTag, en as isFlatKind, eo as isLabelTag, ep as isMailboxSyncVendor, eq as isNearAiUsageBudget, er as isPresenceTag, es as isSharePointVendor, et as isSharedSkill, eu as isTraceItem, ev as mail, ew as mergeAgentSteps, ex as notifications, ey as parseSSEEvents, ez as parseSlashCommand, eA as parseSlashTokenInProgress, eB as performPasswordLogin, eE as pickMainThread, eF as profile, eG as progressFetch, eH as projects, eI as quotaExceededFrom, eJ as quotaFromStreamError, eK as reduceOutputItem, eL as refusalReason, eM as requireData, eN as requireOk, eO as resolveAuth, eP as resolveCitations, eQ as resolveSummary, eR as resolveWorkspace, eS as responses, eT as searchChunks, eU as selectFullContextDocument, eV as selectWorkspace, eW as selectWorkspaceById, eX as sessions, eY as settings, e_ as sliceToSubagentThread, e$ as streamSSE, f0 as stripCitationMarkdown, f1 as subagentJobLabel, f2 as summarizeCitations, f3 as tagUseCount, f4 as tags, f5 as tagsForScope, f6 as tagsOfGroup, f7 as topLevelAgentSteps, f9 as usdToGbp, fa as work, fb as workflowSteps, fc as workflows, fd as workspaces, fe as wouldCreateTagCycle } from './browser-
|
|
1
|
+
export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiHostSession, h as ArbiOptions, j as ArbiWorkspaceChangedError, k as ArbiWorkspaceSupersededError, l as AskHandlers, m as AskRequest, n as AttendeeRead, o as AuthContext, p as AuthHeaders, q as AuthMode, r as AuthenticatedClient, B as BookingConfirmation, s as BookingPage, t as BookingPageWriteBody, u as BookingRequestBody, v as BridgeTokensOptions, C as CalDavConnectBody, w as CalDavProfile, x as CalendarAccount, y as CalendarAccountKind, z as CalendarCreateBody, D as CalendarEvent, E as CalendarKeys, F as CalendarRead, G as CalendarSettings, H as CalendarSettingsBody, I as CalendarUpdate, J as CalendarWindow, K as CallApiError, L as ChatAttachmentFile, M as ChatAttachmentInput, N as ChatCryptoContext, O as ChatKeyRing, P as ChatKind, Q as ChatMemberKey, R as ChatMemberResponse, S as ChatMessage, T as ChatMessageResponse, U as ChatResponse, V as ChatSession, W as CitationSummary, X as CitationToolSources, Y as CliConfig, Z as CliCredentials, _ as CommandDescriptor, $ as ConfigStore, a0 as ConnectOptions, a1 as ConnectorCatalogEntry, a2 as ConnectorFolder, a3 as ConnectorSyncProgress, a4 as ConnectorSyncStatus, a5 as ConnectorVendorKey, a6 as ConnectorVisibilitySettings, a7 as ContextUsage, a8 as ConversationResponse, a9 as ConversationUsageResponse, aa as CreateFactRequest, ab as CreateFactsRequest, ac as CreateWorkRequest, ad as CreateWorkflowRequest, ae as DEFAULT_AI_USD_PER_GBP, ag as DRIVE_SYNC_VENDORS, ah as DateTimeSpec, aj as DecryptedChatMessage, ak as DeploymentHouseTemplate, al as DocInfo, am as DocInfoMap, ao as DocumentAutomationAction, ar as DocumentSelector, au as DriveSyncProgress, av as DriveSyncSummary, aw as DuplicateContactError, ax as ENTITY_KINDS, ay as EditScope, az as EntityKind, aA as EventCreateBody, aB as EventPatchBody, aC as FLAT_TAG_KINDS, aD as FactResponse, aE as FactSearchRequest, aF as FactSearchResponse, aG as FindTimeParams, aI as FreeBusyEntry, aJ as FullContextSelection, aK as GOOGLE_VENDORS, aL as HolidayCountry, aM as HouseTemplateCandidate, aN as IMANAGE_VENDORS, aO as IdentityErrorCode, aP as IdentityPurchase, aQ as IdentityState, aR as IdentityStatus, aS as ImportResult, aT as InvitationRead, aU as LinkedRun, aW as ListEventsParams, aX as ListFactsOptions, aZ as MAILBOX_SYNC_VENDORS, a_ as MAX_RETRIEVE_DOC_IDS, a$ as MICROSOFT_VENDORS, b2 as OAuthAccountKind, b3 as OutputItemDone, b4 as OverlayItem, b5 as OverlayLayerName, b6 as PRESENCE_KINDS, b7 as PROMPT_CONTEXT_CHARS, b8 as ParsedSlashCommand, b9 as PendingAuthResponse, ba as PersonKey, bb as PlanStepsError, bc as PlanWorkRequest, bd as ProductResponse, be as ProjectAddonKind, bf as ProjectAddonSettingsRequest, bg as ProjectBudget, bh as ProjectCheckoutRequest, bi as ProjectConversationUsageResponse, bj as ProjectCreateOptions, bk as ProjectDetails, bl as ProjectEventKind, bm as ProjectEventResponse, bn as ProjectInvoicesResponse, bo as ProjectNextPeriodAddonsRequest, bp as ProjectPlanChangeRequest, bq as ProjectQuoteRequest, br as ProjectResponse, bs as ProjectUpdateRequest, bt as ProjectUsageResponse, bu as PublicBookingError, bv as PublicBookingPage, bw as QuotaExceeded, bx as RaisedSignal, by as ReconnectOptions, bz as ReconnectableWsConnection, bA as ResolvedCitation, bC as RespondParams, bD as RespondPartstat, bE as RoomCreateBody, bF as RoomQuery, bG as RoomRead, bH as RunProgress, bI as RunStats, bJ as RunStep, bK as RunWaitingOn, bL as SHAREPOINT_VENDORS, bM as SSEEvent, bN as SSEStreamCallbacks, bO as SSEStreamResult, bQ as STOP_ID_WAIT_MS, bR as STOP_REPEAT_WINDOW_MS, bT as ScopedTarget, bU as SearchChunk, bV as SendBack, bW as ShareRead, bX as ShareRole, bY as SkillSummary, bZ as SkippedFile, b_ as SlackConnectionStatus, b$ as StepActionRequest, c0 as StepActivityEvent, c1 as StepAssignee, c2 as StepDisplay, c3 as StepField, c6 as StepKind, c7 as StepPhase, c8 as StepSignal, c9 as StepSignalWhen, ca as StepState, cb as StepStatus, cc as SubagentBranchRecord, cd as SubagentLaneInfo, ce as SubmitBackgroundQueryOptions, cf as SubscribeParams, cg as SyncTriggerResult, ch as TAG_KINDS, ci as TAG_NESTING_MAX_DEPTH, cj as TagChange, ck as TagFieldDefinition, cl as TagGroup, cm as TagKind, cn as TagKindField, co as TagKindSchema, cp as TagLinks, cq as TagListQuery, cr as TagNode, cs as TagResponse, ct as TagScope, cu as TagTreeRow, cv as TaskPlan, cw as TaskPlanStep, cx as TaxQuoteResponse, cy as Thread, cz as ThreadsResponse, cA as TimeSuggestion, cB as TurnRequest, cC as UpdateConversationRequest, cD as UpdateFactRequest, cE as UpdateWorkflowRequest, cI as UploadDocumentsOptions, cJ as UploadOptions, cK as UploadProgressListener, cL as UploadResult, cM as UsageBreakdown, cN as UserConnectorEntry, cO as UserDailyUsageResponse, cP as UserInfo, cQ as WebSocketAuthError, cR as WeeklyHoursSpec, cS as WorkStatus, cT as WorkflowAuthMode, cU as WorkflowResponse, cV as WorkflowRunHistoryResponse, cW as WorkflowRunResponse, cX as WorkspaceContext, cY as WorkspaceOpenResponse, cZ as WsConnection, c_ as account, c$ as agentconfig, d1 as appendTranscriptionHints, d2 as assistant, d3 as authenticatedFetch, d4 as bookPublicSlot, d5 as buildCitationChunkData, d7 as buildDocumentTools, d8 as buildFactsContextTool, d9 as buildRetrievalChunkTool, da as buildRetrievalFullContextTool, db as buildRetrievalTocTool, dc as buildTurnRequest, dd as calendar, de as calls, df as canTagHaveParent, dg as cancelPublicBooking, dh as chats, di as computeRunStats, dj as connectErrorMessage, dk as connectWebSocket, dl as connectWithReconnect, dm as connectors, dn as consumeSSEStream, dp as contacts, dq as continuityPrompt, dr as conversations, ds as countCitations, dt as createAuthenticatedClient, dv as createIndexAssigner, dw as defaultKindForFormat, dx as doctags, dy as documents, dz as estimateDraftTokens, dA as extractDocumentIdsFromMessages, dB as extractFactIdsFromMessages, dC as extractSubagentLanes, dD as facts, dE as files, dF as filterDocumentTags, dG as filterSkills, dH as findLeafForTaskMessage, dI as findMainSiblingLeaf, dJ as findReplyTarget, dK as findSubagentRunId, dL as flattenTagTree, dM as formatAgentStepLabel, dN as formatFileSize, dO as formatGbp, dP as formatGbpPerMillionTokens, dQ as formatItemLabel, dS as formatTokens, dT as formatUserName, dU as formatWorkspaceChoices, dY as getAgentStepLabel, dZ as getAttachableRunId, d_ as getChildTags, d$ as getContextRemainingPercent, e0 as getContextUsedPercent, e1 as getContextUsedTokens, e2 as getCurrentStep, e3 as getEligibleParentTags, e5 as getErrorMessage, e6 as getPublicBookingPage, e7 as getRawWorkspaceKey, e8 as getRunToAttach, e9 as getRunToCancel, ea as getStepDisplay, eb as getStepTool, ec as getSubagentBranchRecord, ed as getTagDescendantIds, ee as health, ef as houseTemplates, eg as hydrateAgentSteps, ei as identityErrorCode, eh as identityVerification, ej as isAnnotationTag, ek as isConnectorVendorVisible, el as isDriveSyncVendor, em as isEntityTag, en as isFlatKind, eo as isLabelTag, ep as isMailboxSyncVendor, eq as isNearAiUsageBudget, er as isPresenceTag, es as isSharePointVendor, et as isSharedSkill, eu as isTraceItem, ev as mail, ew as mergeAgentSteps, ex as notifications, ey as parseSSEEvents, ez as parseSlashCommand, eA as parseSlashTokenInProgress, eB as performPasswordLogin, eE as pickMainThread, eF as profile, eG as progressFetch, eH as projects, eI as quotaExceededFrom, eJ as quotaFromStreamError, eK as reduceOutputItem, eL as refusalReason, eM as requireData, eN as requireOk, eO as resolveAuth, eP as resolveCitations, eQ as resolveSummary, eR as resolveWorkspace, eS as responses, eT as searchChunks, eU as selectFullContextDocument, eV as selectWorkspace, eW as selectWorkspaceById, eX as sessions, eY as settings, e_ as sliceToSubagentThread, e$ as streamSSE, f0 as stripCitationMarkdown, f1 as subagentJobLabel, f2 as summarizeCitations, f3 as tagUseCount, f4 as tags, f5 as tagsForScope, f6 as tagsOfGroup, f7 as topLevelAgentSteps, f9 as usdToGbp, fa as work, fb as workflowSteps, fc as workflows, fd as workspaces, fe as wouldCreateTagCycle } from './browser-CRqv7UD1.js';
|
|
2
2
|
export { A as AgentControlStateEvent, a as AgentStepDeltaEvent, b as AgentStepEvent, c as ArbiErrorEvent, d as ArtifactEvent, D as DeferredInterjectionEvent, M as MailDraftSSEEvent, e as MessageMetadataPayload, f as MessageQueuedEvent, O as OutputTokensDetails, P as ProbeAnswerEvent, R as ResponseCompletedEvent, g as ResponseContentPartAddedEvent, h as ResponseCreatedEvent, i as ResponseFailedEvent, j as ResponseOutputItemAddedEvent, k as ResponseOutputItemDoneEvent, l as ResponseOutputTextDeltaEvent, m as ResponseOutputTextDoneEvent, n as ResponseUsage, S as SSEStreamStartData, T as TokenBudgetContext, U as UserInputRequestEvent, o as UserMessageEvent } from './sse-types-BbR7JG5o.js';
|
|
3
3
|
export { CallPeer, LoginProfile } from '@arbidocs/client';
|
package/dist/browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createArbiClient, base64ToBytes, unwrapWorkspaceKey, sealKeyForSession, buildWebSocketUrl, createAuthMessage, parseServerMessage, isMessageType, createContentHash, encryptFile, initSodium, bytesToBase64, encryptWithChatKey, decryptWithChatKey, decryptFile,
|
|
1
|
+
import { createArbiClient, base64ToBytes, unwrapWorkspaceKey, sealKeyForSession, buildWebSocketUrl, createAuthMessage, parseServerMessage, isMessageType, createContentHash, encryptFile, initSodium, encryptionKeypairFromSigningKey, sealedBoxDecrypt, bytesToBase64, encryptWithChatKey, decryptWithChatKey, decryptFile, deriveDirectChatKey, openSealedChatKey, generateChatKey, sealChatKey, sealCallKey, encryptMessage, decodeSecureMailKey, openSecureMail, secureMailClaim, createSessionManager, authRequestError, changePassword, openCallKeyOf, decryptCallTitle, generateCallKey, encryptCallTitle, sealCallKeyForPeers, openSealedCallKey, readSessionClaims } from '@arbidocs/client';
|
|
2
2
|
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -5065,6 +5065,7 @@ __export(workspaces_exports, {
|
|
|
5065
5065
|
createWorkspace: () => createWorkspace,
|
|
5066
5066
|
deleteWorkspaces: () => deleteWorkspaces,
|
|
5067
5067
|
exportWorkspaceData: () => exportWorkspaceData,
|
|
5068
|
+
getWorkspaceAccessStatus: () => getWorkspaceAccessStatus,
|
|
5068
5069
|
getWorkspaceActivity: () => getWorkspaceActivity,
|
|
5069
5070
|
getWorkspaceTransfer: () => getWorkspaceTransfer,
|
|
5070
5071
|
grantTemporaryWorkspaceAccess: () => grantTemporaryWorkspaceAccess,
|
|
@@ -5265,6 +5266,14 @@ async function exportWorkspaceData(arbi, scope) {
|
|
|
5265
5266
|
"Failed to export the workspace"
|
|
5266
5267
|
);
|
|
5267
5268
|
}
|
|
5269
|
+
async function getWorkspaceAccessStatus(arbi, workspaceId) {
|
|
5270
|
+
return requireData(
|
|
5271
|
+
await arbi.fetch.GET("/v1/workspace/{workspace_ext_id}/access-status", {
|
|
5272
|
+
params: { path: { workspace_ext_id: workspaceId } }
|
|
5273
|
+
}),
|
|
5274
|
+
"Could not read workspace access"
|
|
5275
|
+
);
|
|
5276
|
+
}
|
|
5268
5277
|
|
|
5269
5278
|
// src/operations/conversations.ts
|
|
5270
5279
|
var conversations_exports = {};
|
|
@@ -5951,6 +5960,7 @@ var contacts_exports = {};
|
|
|
5951
5960
|
__export(contacts_exports, {
|
|
5952
5961
|
createContact: () => createContact,
|
|
5953
5962
|
deleteContact: () => deleteContact,
|
|
5963
|
+
ensureContactsUnlocked: () => ensureContactsUnlocked,
|
|
5954
5964
|
groupContactsByStatus: () => groupContactsByStatus,
|
|
5955
5965
|
importContacts: () => importContacts,
|
|
5956
5966
|
inviteContacts: () => inviteContacts,
|
|
@@ -5959,6 +5969,42 @@ __export(contacts_exports, {
|
|
|
5959
5969
|
searchContacts: () => searchContacts,
|
|
5960
5970
|
updateContact: () => updateContact
|
|
5961
5971
|
});
|
|
5972
|
+
var contactUnlocks = /* @__PURE__ */ new WeakMap();
|
|
5973
|
+
async function ensureContactsUnlocked(client, keys) {
|
|
5974
|
+
if (!keys) return;
|
|
5975
|
+
let pending = contactUnlocks.get(keys.serverSessionKey);
|
|
5976
|
+
if (!pending) {
|
|
5977
|
+
pending = unlockContacts(client, keys).catch((error) => {
|
|
5978
|
+
contactUnlocks.delete(keys.serverSessionKey);
|
|
5979
|
+
throw error;
|
|
5980
|
+
});
|
|
5981
|
+
contactUnlocks.set(keys.serverSessionKey, pending);
|
|
5982
|
+
}
|
|
5983
|
+
await pending;
|
|
5984
|
+
}
|
|
5985
|
+
async function unlockContacts(client, keys) {
|
|
5986
|
+
await initSodium();
|
|
5987
|
+
const keypair = encryptionKeypairFromSigningKey(keys.signingPrivateKey);
|
|
5988
|
+
try {
|
|
5989
|
+
const page = requireData(await client.fetch.GET("/v1/contacts/keys"), "Reading contact keys");
|
|
5990
|
+
const sealed = {};
|
|
5991
|
+
for (const [id, wrapped] of Object.entries(page.keys)) {
|
|
5992
|
+
const key = sealedBoxDecrypt(wrapped, keypair.secretKey);
|
|
5993
|
+
try {
|
|
5994
|
+
sealed[id] = await sealKeyForSession(key, keys.serverSessionKey);
|
|
5995
|
+
} finally {
|
|
5996
|
+
key.fill(0);
|
|
5997
|
+
}
|
|
5998
|
+
}
|
|
5999
|
+
if (Object.keys(sealed).length)
|
|
6000
|
+
requireOk(
|
|
6001
|
+
await client.fetch.POST("/v1/contacts/session-keys", { body: { keys: sealed } }),
|
|
6002
|
+
"Unlocking contacts"
|
|
6003
|
+
);
|
|
6004
|
+
} finally {
|
|
6005
|
+
keypair.secretKey.fill(0);
|
|
6006
|
+
}
|
|
6007
|
+
}
|
|
5962
6008
|
function requireContact(result, message) {
|
|
5963
6009
|
const error = result.error;
|
|
5964
6010
|
if (result.response?.status === 409 && error && typeof error === "object" && "contact_id" in error)
|
|
@@ -10450,6 +10496,7 @@ var Arbi = class {
|
|
|
10450
10496
|
}
|
|
10451
10497
|
// ── Workspaces ────────────────────────────────────────────────────────
|
|
10452
10498
|
workspaces = {
|
|
10499
|
+
accessStatus: (workspaceId) => getWorkspaceAccessStatus(this.requireClient(), workspaceId),
|
|
10453
10500
|
/**
|
|
10454
10501
|
* Make a workspace usable for requests that name it, WITHOUT changing the current workspace
|
|
10455
10502
|
* (on the server or in the host). `removeUsers` and `documents.list` open the workspace they
|
|
@@ -10957,22 +11004,27 @@ var Arbi = class {
|
|
|
10957
11004
|
generate: (tagIds, docIds, options) => generateDocTags(this.requireClient(), tagIds, docIds, options)
|
|
10958
11005
|
};
|
|
10959
11006
|
// ── Contacts ──────────────────────────────────────────────────────────
|
|
10960
|
-
// A card is sealed under its address book's key, which the
|
|
11007
|
+
// A card is sealed under its address book's key, which the contacts key bridge carries: without
|
|
10961
11008
|
// it the server returns `card: null` and refuses card writes.
|
|
10962
11009
|
contacts = {
|
|
10963
|
-
list: () => this.
|
|
11010
|
+
list: () => this.withContactKeys((c2) => listContacts(c2)),
|
|
10964
11011
|
invite: (emails) => inviteContacts(this.requireClient(), emails),
|
|
10965
|
-
create: (body) => this.
|
|
10966
|
-
update: (contactId, card) => this.
|
|
11012
|
+
create: (body) => this.withContactKeys((c2) => createContact(c2, body)),
|
|
11013
|
+
update: (contactId, card) => this.withContactKeys((c2) => updateContact(c2, contactId, card)),
|
|
10967
11014
|
/** Link a card-only contact to `email` (invites it, or links the account at once). */
|
|
10968
|
-
link: (contactId, email, card) => this.
|
|
10969
|
-
delete: (contactId) => this.
|
|
11015
|
+
link: (contactId, email, card) => this.withContactKeys((c2) => linkContact(c2, contactId, email, card)),
|
|
11016
|
+
delete: (contactId) => this.withContactKeys((c2) => deleteContact(c2, contactId)),
|
|
10970
11017
|
/** Import one .vcf file (Pro). */
|
|
10971
|
-
import: (file) => this.
|
|
10972
|
-
search: (q2) => this.
|
|
11018
|
+
import: (file) => this.withContactKeys((c2) => importContacts(c2, file)),
|
|
11019
|
+
search: (q2) => this.withContactKeys((c2) => searchContacts(c2, q2)),
|
|
10973
11020
|
groupByStatus: groupContactsByStatus
|
|
10974
11021
|
};
|
|
10975
11022
|
// ── Calendar ──────────────────────────────────────────────────────────
|
|
11023
|
+
async withContactKeys(op) {
|
|
11024
|
+
const client = this.requireClient();
|
|
11025
|
+
await ensureContactsUnlocked(client, this.calendarKeys());
|
|
11026
|
+
return op(client);
|
|
11027
|
+
}
|
|
10976
11028
|
/** The keys the calendar unlock needs; `null` before login (calendars then read as locked). */
|
|
10977
11029
|
calendarKeys() {
|
|
10978
11030
|
const login = this.loginResult;
|