@arbidocs/sdk 0.5.66 → 0.5.67

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/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { a4 as ConfigStore, a1 as CliConfig, a2 as CliCredentials, _ as ChatSession, cs as SkippedFile, de as UploadResult, t as AuthHeaders, d8 as UploadBatchResult, dc as UploadOptions, d9 as UploadDirectOptions, da as UploadDirectResult, cl as SUPPORTED_EXTENSIONS, bh as MailAttachment, S as ChatCryptoContext } from './browser-DHvxPDoF.cjs';
2
- export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiStructuredOutputError, l as ArbiTransportError, m as ArbiWorkspaceChangedError, n as ArbiWorkspaceSupersededError, o as ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AttendeeRead, s as AuthContext, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, $ as CitationSummary, a0 as CitationToolSources, a3 as CommandDescriptor, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectorCatalogEntry, a9 as ConnectorFolder, aa as ConnectorSyncProgress, ab as ConnectorSyncStatus, ac as ConnectorVendorKey, ad as ConnectorVisibilitySettings, ae as ContextUsage, af as ConversationResponse, ag as ConversationUsageResponse, aj as CreateWorkRequest, ak as CreateWorkflowRequest, al as DEFAULT_AI_USD_PER_GBP, am as DOC_TERMINAL_STATUSES, an as DRIVE_SYNC_VENDORS, ao as Database, ap as DatabaseAggregateRequest, aq as DatabaseAggregateResult, ar as DatabaseColumn, as as DatabaseColumnWrite, at as DatabaseImportResult, au as DatabaseRow, av as DatabaseRowPage, aw as DatabaseRowsQuery, ax as DateTimeSpec, ay as DecryptedChat, az as DecryptedChatMessage, aA as DeploymentHouseTemplate, aB as DocInfo, aC as DocInfoMap, aD as DocNameMap, aE as DocumentAutomationAction, aF as DocumentListFields, aG as DocumentListOrder, aH as DocumentSelector, aI as DocumentWaiter, aJ as DocumentWaiterOptions, aK as DriveSyncProgress, aL as DriveSyncSummary, aM as DuplicateContactError, aN as ENTITY_KINDS, aO as EditScope, aP as EntityKind, aQ as EventCreateBody, aR as EventPatchBody, aS as FLAT_TAG_KINDS, aW as FindTimeParams, aX as FormattedWsMessage, aY as FreeBusyEntry, aZ as FullContextSelection, a_ as GOOGLE_VENDORS, a$ as HolidayCountry, b0 as HouseTemplateCandidate, b1 as IMANAGE_VENDORS, b2 as IdentityErrorCode, b3 as IdentityPurchase, b4 as IdentityState, b5 as IdentityStatus, b6 as ImportResult, b7 as InvitationRead, b8 as JsonSchemaOutputFormat, b9 as LinkedRun, ba as ListAllOptions, bb as ListEventsParams, bd as ListPaginatedOptions, be as MAILBOX_SYNC_VENDORS, bf as MAX_RETRIEVE_DOC_IDS, bg as MICROSOFT_VENDORS, bi as MessageLevel, bj as OAuthAccountKind, bk as OutputItemDone, bl as OverlayItem, bm as OverlayLayerName, bn as PRESENCE_KINDS, bo as PROMPT_CONTEXT_CHARS, bp as ParsedResponse, bq as ParsedSlashCommand, br as ParsedStructuredResponse, bs as PendingAuthResponse, bt as PersonKey, bu as PlanStepsError, bv as PlanWorkRequest, bw as ProductResponse, bx as ProjectAddonKind, by as ProjectAddonSettingsRequest, bz as ProjectBudget, bA as ProjectCheckoutRequest, bB as ProjectConversationUsageResponse, bC as ProjectCreateOptions, bD as ProjectDetails, bE as ProjectEventKind, bF as ProjectEventResponse, bG as ProjectInvoicesResponse, bH as ProjectNextPeriodAddonsRequest, bI as ProjectPlanChangeRequest, bJ as ProjectQuoteRequest, bK as ProjectResponse, bL as ProjectUpdateRequest, bM as ProjectUsageResponse, bN as PublicBookingError, bO as PublicBookingPage, bP as QuotaExceeded, bQ as RaisedSignal, bR as RawResponseEvent, bS as ReconnectOptions, bT as ReconnectableWsConnection, bU as ResolvedCitation, bV as ResolvedRecipient, bW as RespondParams, bX as RespondPartstat, bY as Response, bZ as ResponseCreateRequest, b_ as ResponseCreateResult, b$ as ResponseHandle, c0 as ResponseSnapshot, c1 as ResponseStart, c2 as ResponseStartOptions, c3 as ResponseStream, c4 as ResponseStreamEvent, c5 as ResponseTools, c6 as RoomCreateBody, c7 as RoomQuery, c8 as RoomRead, c9 as RunProgress, ca as RunStats, cb as RunStep, cc as RunWaitingOn, cd as SHAREPOINT_VENDORS, ce as SSEEvent, cf as SSEStreamCallbacks, cg as SSEStreamOutcome, ch as SSEStreamResult, ci as STEP_FIELD_OPTION_TONES, cj as STOP_ID_WAIT_MS, ck as STOP_REPEAT_WINDOW_MS, cm as ScopedTarget, cn as SearchChunk, co as SendBack, cp as ShareRead, cq as ShareRole, cr as SkillSummary, ct as SlackConnectionStatus, cu as StepActionRequest, cv as StepActivityEvent, cw as StepAssignee, cx as StepDisplay, cy as StepField, cz as StepFieldOption, cA as StepFieldOptionTone, cB as StepKind, cC as StepPhase, cD as StepSignal, cE as StepSignalWhen, cF as StepState, cG as StepStatus, cH as SubagentBranchRecord, cI as SubagentLaneInfo, cJ as SubmitBackgroundQueryOptions, cK as SubscribeParams, cL as SyncTriggerResult, cM as TAG_KINDS, cN as TAG_NESTING_MAX_DEPTH, cO as TagChange, cP as TagFieldDefinition, cQ as TagGroup, cR as TagKind, cS as TagKindField, cT as TagKindSchema, cU as TagLinks, cV as TagListQuery, cW as TagNode, cX as TagResponse, cY as TagScope, cZ as TagTreeRow, c_ as TaskPlan, c$ as TaskPlanStep, d0 as TaxQuoteResponse, d1 as Thread, d2 as ThreadsResponse, d3 as TimeSuggestion, d4 as TurnRequest, d5 as UpdateConversationRequest, d7 as UpdateWorkflowRequest, db as UploadDocumentsOptions, dd as UploadProgressListener, df as UsageBreakdown, dg as UserConnectorEntry, dh as UserDailyUsageResponse, di as UserInfo, dj as WebSocketAuthError, dk as WeeklyHoursSpec, dl as WorkStatus, dm as WorkflowAuthMode, dn as WorkflowResponse, dp as WorkflowRunHistoryResponse, dq as WorkflowRunResponse, dr as WorkspaceConflict, ds as WorkspaceContext, dt as WorkspaceOpenResponse, du as WorkspaceResponse, dv as WsConnection, dw as account, dx as agentconfig, dy as agents, dz as appendTranscriptionHints, dA as assistant, dB as authenticatedFetch, dC as bookPublicSlot, dD as buildCitationChunkData, dE as buildDocNameMap, dF as buildDocumentTools, dG as buildFactsContextTool, dH as buildRetrievalChunkTool, dI as buildRetrievalFullContextTool, dJ as buildRetrievalTocTool, dK as buildTurnRequest, dL as calendar, dM as calls, dN as canTagHaveParent, dO as cancelPublicBooking, dP as capabilities, dQ as chats, dR as composeConfiguration, dS as composeTools, dT as computeRunStats, dU as connectErrorMessage, dV as connectWebSocket, dW as connectWithReconnect, dX as connectors, dY as contacts, dZ as continuityPrompt, d_ as conversations, d$ as countCitations, e0 as createAuthenticatedClient, e1 as createDocumentWaiter, e2 as createIndexAssigner, e3 as databases, e4 as defaultKindForFormat, e5 as doctags, e6 as documentTools, e7 as documents, e8 as estimateDraftTokens, e9 as extractDocumentIdsFromMessages, ea as extractFactIdsFromMessages, eb as extractSubagentLanes, ec as facts, ed as files, ee as filterDocumentTags, ef as filterSkills, eg as findLeafForTaskMessage, eh as findMainSiblingLeaf, ei as findReplyTarget, ej as findSubagentRunId, ek as flattenTagTree, el as formatAgentStepLabel, em as formatFileSize, en as formatGbp, eo as formatGbpPerMillionTokens, ep as formatItemLabel, eq as formatStreamSummary, er as formatTokens, es as formatUserName, et as formatWorkspaceChoices, eu as formatWsMessage, ev as generateEncryptedWorkspaceKey, ew as generateNewWorkspaceKey, ex as getAgentStepLabel, ey as getAttachableRunId, ez as getChildTags, eA as getContextRemainingPercent, eB as getContextUsedPercent, eC as getContextUsedTokens, eD as getCurrentStep, eE as getEligibleParentTags, eF as getErrorCode, eG as getErrorMessage, eH as getPublicBookingPage, eI as getRawWorkspaceKey, eJ as getRunToAttach, eK as getRunToCancel, eL as getStepDisplay, eM as getStepTool, eN as getSubagentBranchRecord, eO as getTagDescendantIds, eP as health, eQ as houseTemplates, eR as hydrateAgentSteps, eT as identityErrorCode, eS as identityVerification, eU as instructions, eV as isAnnotationTag, eW as isConnectorVendorVisible, eX as isDriveSyncVendor, eY as isEntityTag, eZ as isFlatKind, e_ as isLabelTag, e$ as isMailboxSyncVendor, f0 as isNearAiUsageBudget, f1 as isPresenceTag, f2 as isSharePointVendor, f3 as isSharedSkill, f4 as isTraceItem, f5 as mail, f6 as mcpTools, f7 as mergeAgentSteps, f8 as notifications, f9 as parseSSEEvents, fa as parseSlashCommand, fb as parseSlashTokenInProgress, fc as parseStructuredResponse, fd as performPasswordLogin, fe as performSigningKeyLogin, ff as performSsoDeviceFlowLogin, fg as pickMainThread, fh as profile, fi as progressFetch, fj as projects, fk as quotaExceededFrom, fl as quotaFromStreamError, fm as reduceOutputItem, fn as refusalReason, fo as requireData, fp as requireOk, fq as resolveAuth, fr as resolveCitations, fs as resolveSummary, ft as resolveWorkspace, fu as responses, fv as searchChunks, fw as selectFullContextDocument, fx as selectWorkspace, fy as selectWorkspaceById, fz as sessions, fA as settings, fB as signatureRequests, fC as sliceToSubagentThread, fD as streamSSE, fE as stripCitationMarkdown, fF as subagentJobLabel, fG as summarizeCitations, fH as tagUseCount, fI as tags, fJ as tagsForScope, fK as tagsOfGroup, fL as topLevelAgentSteps, fM as uploadSkill, fN as usdToGbp, fO as work, fP as workflowSteps, fQ as workflows, fR as workspaceConflictOf, fS as workspaces, fT as wouldCreateTagCycle } from './browser-DHvxPDoF.cjs';
1
+ import { a4 as ConfigStore, a1 as CliConfig, a2 as CliCredentials, _ as ChatSession, cw as SkippedFile, di as UploadResult, t as AuthHeaders, dc as UploadBatchResult, dg as UploadOptions, dd as UploadDirectOptions, de as UploadDirectResult, cp as SUPPORTED_EXTENSIONS, bj as MailAttachment, S as ChatCryptoContext } from './browser-BsuUurv5.cjs';
2
+ export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiStructuredOutputError, l as ArbiTransportError, m as ArbiWorkspaceChangedError, n as ArbiWorkspaceSupersededError, o as ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AttendeeRead, s as AuthContext, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, $ as CitationSummary, a0 as CitationToolSources, a3 as CommandDescriptor, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectionModel, a9 as ConnectorCatalogEntry, aa as ConnectorFolder, ab as ConnectorSyncProgress, ac as ConnectorSyncStatus, ad as ConnectorVendorKey, ae as ConnectorVisibilitySettings, af as ContextUsage, ag as ConversationResponse, ah as ConversationUsageResponse, ak as CreateWorkRequest, al as CreateWorkflowRequest, am as DEFAULT_AI_USD_PER_GBP, an as DOC_TERMINAL_STATUSES, ao as DRIVE_SYNC_VENDORS, ap as Database, aq as DatabaseAggregateRequest, ar as DatabaseAggregateResult, as as DatabaseColumn, at as DatabaseColumnWrite, au as DatabaseImportResult, av as DatabaseRow, aw as DatabaseRowPage, ax as DatabaseRowsQuery, ay as DateTimeSpec, az as DecryptedChat, aA as DecryptedChatMessage, aB as DeploymentHouseTemplate, aC as DirectModelUsage, aD as DocInfo, aE as DocInfoMap, aF as DocNameMap, aG as DocumentAutomationAction, aH as DocumentListFields, aI as DocumentListOrder, aJ as DocumentSelector, aK as DocumentWaiter, aL as DocumentWaiterOptions, aM as DriveSyncProgress, aN as DriveSyncSummary, aO as DuplicateContactError, aP as ENTITY_KINDS, aQ as EditScope, aR as EntityKind, aS as EventCreateBody, aT as EventPatchBody, aU as FLAT_TAG_KINDS, aY as FindTimeParams, aZ as FormattedWsMessage, a_ as FreeBusyEntry, a$ as FullContextSelection, b0 as GOOGLE_VENDORS, b1 as HolidayCountry, b2 as HouseTemplateCandidate, b3 as IMANAGE_VENDORS, b4 as IdentityErrorCode, b5 as IdentityPurchase, b6 as IdentityState, b7 as IdentityStatus, b8 as ImportResult, b9 as InvitationRead, ba as JsonSchemaOutputFormat, bb as LinkedRun, bc as ListAllOptions, bd as ListEventsParams, bf as ListPaginatedOptions, bg as MAILBOX_SYNC_VENDORS, bh as MAX_RETRIEVE_DOC_IDS, bi as MICROSOFT_VENDORS, bk as MessageLevel, bl as ModelConnection, bm as OAuthAccountKind, bn as OutputItemDone, bo as OverlayItem, bp as OverlayLayerName, bq as PRESENCE_KINDS, br as PROMPT_CONTEXT_CHARS, bs as ParsedResponse, bt as ParsedSlashCommand, bu as ParsedStructuredResponse, bv as PendingAuthResponse, bw as PersonKey, bx as PersonalConnectionInput, by as PlanStepsError, bz as PlanWorkRequest, bA as ProductResponse, bB as ProjectAddonKind, bC as ProjectAddonSettingsRequest, bD as ProjectBudget, bE as ProjectCheckoutRequest, bF as ProjectConversationUsageResponse, bG as ProjectCreateOptions, bH as ProjectDetails, bI as ProjectEventKind, bJ as ProjectEventResponse, bK as ProjectInvoicesResponse, bL as ProjectNextPeriodAddonsRequest, bM as ProjectPlanChangeRequest, bN as ProjectQuoteRequest, bO as ProjectResponse, bP as ProjectUpdateRequest, bQ as ProjectUsageResponse, bR as PublicBookingError, bS as PublicBookingPage, bT as QuotaExceeded, bU as RaisedSignal, bV as RawResponseEvent, bW as ReconnectOptions, bX as ReconnectableWsConnection, bY as ResolvedCitation, bZ as ResolvedRecipient, b_ as RespondParams, b$ as RespondPartstat, c0 as Response, c1 as ResponseCreateRequest, c2 as ResponseCreateResult, c3 as ResponseHandle, c4 as ResponseSnapshot, c5 as ResponseStart, c6 as ResponseStartOptions, c7 as ResponseStream, c8 as ResponseStreamEvent, c9 as ResponseTools, ca as RoomCreateBody, cb as RoomQuery, cc as RoomRead, cd as RunProgress, ce as RunStats, cf as RunStep, cg as RunWaitingOn, ch as SHAREPOINT_VENDORS, ci as SSEEvent, cj as SSEStreamCallbacks, ck as SSEStreamOutcome, cl as SSEStreamResult, cm as STEP_FIELD_OPTION_TONES, cn as STOP_ID_WAIT_MS, co as STOP_REPEAT_WINDOW_MS, cq as ScopedTarget, cr as SearchChunk, cs as SendBack, ct as ShareRead, cu as ShareRole, cv as SkillSummary, cx as SlackConnectionStatus, cy as StepActionRequest, cz as StepActivityEvent, cA as StepAssignee, cB as StepDisplay, cC as StepField, cD as StepFieldOption, cE as StepFieldOptionTone, cF as StepKind, cG as StepPhase, cH as StepSignal, cI as StepSignalWhen, cJ as StepState, cK as StepStatus, cL as SubagentBranchRecord, cM as SubagentLaneInfo, cN as SubmitBackgroundQueryOptions, cO as SubscribeParams, cP as SyncTriggerResult, cQ as TAG_KINDS, cR as TAG_NESTING_MAX_DEPTH, cS as TagChange, cT as TagFieldDefinition, cU as TagGroup, cV as TagKind, cW as TagKindField, cX as TagKindSchema, cY as TagLinks, cZ as TagListQuery, c_ as TagNode, c$ as TagResponse, d0 as TagScope, d1 as TagTreeRow, d2 as TaskPlan, d3 as TaskPlanStep, d4 as TaxQuoteResponse, d5 as Thread, d6 as ThreadsResponse, d7 as TimeSuggestion, d8 as TurnRequest, d9 as UpdateConversationRequest, db as UpdateWorkflowRequest, df as UploadDocumentsOptions, dh as UploadProgressListener, dj as UsageBreakdown, dk as UserConnectorEntry, dl as UserDailyUsageResponse, dm as UserInfo, dn as WebSocketAuthError, dp as WeeklyHoursSpec, dq as WorkStatus, dr as WorkflowAuthMode, ds as WorkflowResponse, dt as WorkflowRunHistoryResponse, du as WorkflowRunResponse, dv as WorkspaceConflict, dw as WorkspaceContext, dx as WorkspaceOpenResponse, dy as WorkspaceResponse, dz as WsConnection, dA as account, dB as agentconfig, dC as agents, dD as appendTranscriptionHints, dE as assistant, dF as authenticatedFetch, dG as bookPublicSlot, dH as buildCitationChunkData, dI as buildDocNameMap, dJ as buildDocumentTools, dK as buildFactsContextTool, dL as buildRetrievalChunkTool, dM as buildRetrievalFullContextTool, dN as buildRetrievalTocTool, dO as buildTurnRequest, dP as calendar, dQ as calls, dR as canTagHaveParent, dS as cancelPublicBooking, dT as capabilities, dU as chats, dV as composeConfiguration, dW as composeTools, dX as computeRunStats, dY as connectErrorMessage, dZ as connectWebSocket, d_ as connectWithReconnect, d$ as connectors, e0 as contacts, e1 as continuityPrompt, e2 as conversations, e3 as countCitations, e4 as createAuthenticatedClient, e5 as createDocumentWaiter, e6 as createIndexAssigner, e7 as databases, e8 as defaultKindForFormat, e9 as doctags, ea as documentTools, eb as documents, ec as estimateDraftTokens, ed as extractDocumentIdsFromMessages, ee as extractFactIdsFromMessages, ef as extractSubagentLanes, eg as facts, eh as files, ei as filterDocumentTags, ej as filterSkills, ek as findLeafForTaskMessage, el as findMainSiblingLeaf, em as findReplyTarget, en as findSubagentRunId, eo as flattenTagTree, ep as formatAgentStepLabel, eq as formatFileSize, er as formatGbp, es as formatGbpPerMillionTokens, et as formatItemLabel, eu as formatStreamSummary, ev as formatTokens, ew as formatUserName, ex as formatWorkspaceChoices, ey as formatWsMessage, ez as generateEncryptedWorkspaceKey, eA as generateNewWorkspaceKey, eB as getAgentStepLabel, eC as getAttachableRunId, eD as getChildTags, eE as getContextRemainingPercent, eF as getContextUsedPercent, eG as getContextUsedTokens, eH as getCurrentStep, eI as getEligibleParentTags, eJ as getErrorCode, eK as getErrorMessage, eL as getPublicBookingPage, eM as getRawWorkspaceKey, eN as getRunToAttach, eO as getRunToCancel, eP as getStepDisplay, eQ as getStepTool, eR as getSubagentBranchRecord, eS as getTagDescendantIds, eT as health, eU as houseTemplates, eV as hydrateAgentSteps, eX as identityErrorCode, eW as identityVerification, eY as instructions, eZ as isAnnotationTag, e_ as isConnectorVendorVisible, e$ as isDriveSyncVendor, f0 as isEntityTag, f1 as isFlatKind, f2 as isLabelTag, f3 as isMailboxSyncVendor, f4 as isNearAiUsageBudget, f5 as isPresenceTag, f6 as isSharePointVendor, f7 as isSharedSkill, f8 as isTraceItem, f9 as mail, fa as mcpTools, fb as mergeAgentSteps, fc as modelConnections, fd as notifications, fe as parseSSEEvents, ff as parseSlashCommand, fg as parseSlashTokenInProgress, fh as parseStructuredResponse, fi as performPasswordLogin, fj as performSigningKeyLogin, fk as performSsoDeviceFlowLogin, fl as pickMainThread, fm as profile, fn as progressFetch, fo as projects, fp as quotaExceededFrom, fq as quotaFromStreamError, fr as reduceOutputItem, fs as refusalReason, ft as requireData, fu as requireOk, fv as resolveAuth, fw as resolveCitations, fx as resolveSummary, fy as resolveWorkspace, fz as responses, fA as searchChunks, fB as selectFullContextDocument, fC as selectWorkspace, fD as selectWorkspaceById, fE as sessions, fF as settings, fG as signatureRequests, fH as sliceToSubagentThread, fI as streamSSE, fJ as stripCitationMarkdown, fK as subagentJobLabel, fL as summarizeCitations, fM as tagUseCount, fN as tags, fO as tagsForScope, fP as tagsOfGroup, fQ as topLevelAgentSteps, fR as uploadSkill, fS as usdToGbp, fT as work, fU as workflowSteps, fV as workflows, fW as workspaceConflictOf, fX as workspaces, fY as wouldCreateTagCycle } from './browser-BsuUurv5.cjs';
3
3
  import { SessionPersistence, ArbiClient, components } from '@arbidocs/client';
4
4
  export { CallPeer, HttpErrorInfo, HttpRequestInfo, HttpResponseInfo, HttpTransportOptions, LoginProfile, SessionPersistence } from '@arbidocs/client';
5
5
  export { b as AgentStepEvent, d as ArtifactEvent, M as MailDraftSSEEvent, e as MessageMetadataPayload, f as MessageQueuedEvent, O as OutputTokensDetails, 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';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a4 as ConfigStore, a1 as CliConfig, a2 as CliCredentials, _ as ChatSession, cs as SkippedFile, de as UploadResult, t as AuthHeaders, d8 as UploadBatchResult, dc as UploadOptions, d9 as UploadDirectOptions, da as UploadDirectResult, cl as SUPPORTED_EXTENSIONS, bh as MailAttachment, S as ChatCryptoContext } from './browser-DpDuiKeo.js';
2
- export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiStructuredOutputError, l as ArbiTransportError, m as ArbiWorkspaceChangedError, n as ArbiWorkspaceSupersededError, o as ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AttendeeRead, s as AuthContext, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, $ as CitationSummary, a0 as CitationToolSources, a3 as CommandDescriptor, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectorCatalogEntry, a9 as ConnectorFolder, aa as ConnectorSyncProgress, ab as ConnectorSyncStatus, ac as ConnectorVendorKey, ad as ConnectorVisibilitySettings, ae as ContextUsage, af as ConversationResponse, ag as ConversationUsageResponse, aj as CreateWorkRequest, ak as CreateWorkflowRequest, al as DEFAULT_AI_USD_PER_GBP, am as DOC_TERMINAL_STATUSES, an as DRIVE_SYNC_VENDORS, ao as Database, ap as DatabaseAggregateRequest, aq as DatabaseAggregateResult, ar as DatabaseColumn, as as DatabaseColumnWrite, at as DatabaseImportResult, au as DatabaseRow, av as DatabaseRowPage, aw as DatabaseRowsQuery, ax as DateTimeSpec, ay as DecryptedChat, az as DecryptedChatMessage, aA as DeploymentHouseTemplate, aB as DocInfo, aC as DocInfoMap, aD as DocNameMap, aE as DocumentAutomationAction, aF as DocumentListFields, aG as DocumentListOrder, aH as DocumentSelector, aI as DocumentWaiter, aJ as DocumentWaiterOptions, aK as DriveSyncProgress, aL as DriveSyncSummary, aM as DuplicateContactError, aN as ENTITY_KINDS, aO as EditScope, aP as EntityKind, aQ as EventCreateBody, aR as EventPatchBody, aS as FLAT_TAG_KINDS, aW as FindTimeParams, aX as FormattedWsMessage, aY as FreeBusyEntry, aZ as FullContextSelection, a_ as GOOGLE_VENDORS, a$ as HolidayCountry, b0 as HouseTemplateCandidate, b1 as IMANAGE_VENDORS, b2 as IdentityErrorCode, b3 as IdentityPurchase, b4 as IdentityState, b5 as IdentityStatus, b6 as ImportResult, b7 as InvitationRead, b8 as JsonSchemaOutputFormat, b9 as LinkedRun, ba as ListAllOptions, bb as ListEventsParams, bd as ListPaginatedOptions, be as MAILBOX_SYNC_VENDORS, bf as MAX_RETRIEVE_DOC_IDS, bg as MICROSOFT_VENDORS, bi as MessageLevel, bj as OAuthAccountKind, bk as OutputItemDone, bl as OverlayItem, bm as OverlayLayerName, bn as PRESENCE_KINDS, bo as PROMPT_CONTEXT_CHARS, bp as ParsedResponse, bq as ParsedSlashCommand, br as ParsedStructuredResponse, bs as PendingAuthResponse, bt as PersonKey, bu as PlanStepsError, bv as PlanWorkRequest, bw as ProductResponse, bx as ProjectAddonKind, by as ProjectAddonSettingsRequest, bz as ProjectBudget, bA as ProjectCheckoutRequest, bB as ProjectConversationUsageResponse, bC as ProjectCreateOptions, bD as ProjectDetails, bE as ProjectEventKind, bF as ProjectEventResponse, bG as ProjectInvoicesResponse, bH as ProjectNextPeriodAddonsRequest, bI as ProjectPlanChangeRequest, bJ as ProjectQuoteRequest, bK as ProjectResponse, bL as ProjectUpdateRequest, bM as ProjectUsageResponse, bN as PublicBookingError, bO as PublicBookingPage, bP as QuotaExceeded, bQ as RaisedSignal, bR as RawResponseEvent, bS as ReconnectOptions, bT as ReconnectableWsConnection, bU as ResolvedCitation, bV as ResolvedRecipient, bW as RespondParams, bX as RespondPartstat, bY as Response, bZ as ResponseCreateRequest, b_ as ResponseCreateResult, b$ as ResponseHandle, c0 as ResponseSnapshot, c1 as ResponseStart, c2 as ResponseStartOptions, c3 as ResponseStream, c4 as ResponseStreamEvent, c5 as ResponseTools, c6 as RoomCreateBody, c7 as RoomQuery, c8 as RoomRead, c9 as RunProgress, ca as RunStats, cb as RunStep, cc as RunWaitingOn, cd as SHAREPOINT_VENDORS, ce as SSEEvent, cf as SSEStreamCallbacks, cg as SSEStreamOutcome, ch as SSEStreamResult, ci as STEP_FIELD_OPTION_TONES, cj as STOP_ID_WAIT_MS, ck as STOP_REPEAT_WINDOW_MS, cm as ScopedTarget, cn as SearchChunk, co as SendBack, cp as ShareRead, cq as ShareRole, cr as SkillSummary, ct as SlackConnectionStatus, cu as StepActionRequest, cv as StepActivityEvent, cw as StepAssignee, cx as StepDisplay, cy as StepField, cz as StepFieldOption, cA as StepFieldOptionTone, cB as StepKind, cC as StepPhase, cD as StepSignal, cE as StepSignalWhen, cF as StepState, cG as StepStatus, cH as SubagentBranchRecord, cI as SubagentLaneInfo, cJ as SubmitBackgroundQueryOptions, cK as SubscribeParams, cL as SyncTriggerResult, cM as TAG_KINDS, cN as TAG_NESTING_MAX_DEPTH, cO as TagChange, cP as TagFieldDefinition, cQ as TagGroup, cR as TagKind, cS as TagKindField, cT as TagKindSchema, cU as TagLinks, cV as TagListQuery, cW as TagNode, cX as TagResponse, cY as TagScope, cZ as TagTreeRow, c_ as TaskPlan, c$ as TaskPlanStep, d0 as TaxQuoteResponse, d1 as Thread, d2 as ThreadsResponse, d3 as TimeSuggestion, d4 as TurnRequest, d5 as UpdateConversationRequest, d7 as UpdateWorkflowRequest, db as UploadDocumentsOptions, dd as UploadProgressListener, df as UsageBreakdown, dg as UserConnectorEntry, dh as UserDailyUsageResponse, di as UserInfo, dj as WebSocketAuthError, dk as WeeklyHoursSpec, dl as WorkStatus, dm as WorkflowAuthMode, dn as WorkflowResponse, dp as WorkflowRunHistoryResponse, dq as WorkflowRunResponse, dr as WorkspaceConflict, ds as WorkspaceContext, dt as WorkspaceOpenResponse, du as WorkspaceResponse, dv as WsConnection, dw as account, dx as agentconfig, dy as agents, dz as appendTranscriptionHints, dA as assistant, dB as authenticatedFetch, dC as bookPublicSlot, dD as buildCitationChunkData, dE as buildDocNameMap, dF as buildDocumentTools, dG as buildFactsContextTool, dH as buildRetrievalChunkTool, dI as buildRetrievalFullContextTool, dJ as buildRetrievalTocTool, dK as buildTurnRequest, dL as calendar, dM as calls, dN as canTagHaveParent, dO as cancelPublicBooking, dP as capabilities, dQ as chats, dR as composeConfiguration, dS as composeTools, dT as computeRunStats, dU as connectErrorMessage, dV as connectWebSocket, dW as connectWithReconnect, dX as connectors, dY as contacts, dZ as continuityPrompt, d_ as conversations, d$ as countCitations, e0 as createAuthenticatedClient, e1 as createDocumentWaiter, e2 as createIndexAssigner, e3 as databases, e4 as defaultKindForFormat, e5 as doctags, e6 as documentTools, e7 as documents, e8 as estimateDraftTokens, e9 as extractDocumentIdsFromMessages, ea as extractFactIdsFromMessages, eb as extractSubagentLanes, ec as facts, ed as files, ee as filterDocumentTags, ef as filterSkills, eg as findLeafForTaskMessage, eh as findMainSiblingLeaf, ei as findReplyTarget, ej as findSubagentRunId, ek as flattenTagTree, el as formatAgentStepLabel, em as formatFileSize, en as formatGbp, eo as formatGbpPerMillionTokens, ep as formatItemLabel, eq as formatStreamSummary, er as formatTokens, es as formatUserName, et as formatWorkspaceChoices, eu as formatWsMessage, ev as generateEncryptedWorkspaceKey, ew as generateNewWorkspaceKey, ex as getAgentStepLabel, ey as getAttachableRunId, ez as getChildTags, eA as getContextRemainingPercent, eB as getContextUsedPercent, eC as getContextUsedTokens, eD as getCurrentStep, eE as getEligibleParentTags, eF as getErrorCode, eG as getErrorMessage, eH as getPublicBookingPage, eI as getRawWorkspaceKey, eJ as getRunToAttach, eK as getRunToCancel, eL as getStepDisplay, eM as getStepTool, eN as getSubagentBranchRecord, eO as getTagDescendantIds, eP as health, eQ as houseTemplates, eR as hydrateAgentSteps, eT as identityErrorCode, eS as identityVerification, eU as instructions, eV as isAnnotationTag, eW as isConnectorVendorVisible, eX as isDriveSyncVendor, eY as isEntityTag, eZ as isFlatKind, e_ as isLabelTag, e$ as isMailboxSyncVendor, f0 as isNearAiUsageBudget, f1 as isPresenceTag, f2 as isSharePointVendor, f3 as isSharedSkill, f4 as isTraceItem, f5 as mail, f6 as mcpTools, f7 as mergeAgentSteps, f8 as notifications, f9 as parseSSEEvents, fa as parseSlashCommand, fb as parseSlashTokenInProgress, fc as parseStructuredResponse, fd as performPasswordLogin, fe as performSigningKeyLogin, ff as performSsoDeviceFlowLogin, fg as pickMainThread, fh as profile, fi as progressFetch, fj as projects, fk as quotaExceededFrom, fl as quotaFromStreamError, fm as reduceOutputItem, fn as refusalReason, fo as requireData, fp as requireOk, fq as resolveAuth, fr as resolveCitations, fs as resolveSummary, ft as resolveWorkspace, fu as responses, fv as searchChunks, fw as selectFullContextDocument, fx as selectWorkspace, fy as selectWorkspaceById, fz as sessions, fA as settings, fB as signatureRequests, fC as sliceToSubagentThread, fD as streamSSE, fE as stripCitationMarkdown, fF as subagentJobLabel, fG as summarizeCitations, fH as tagUseCount, fI as tags, fJ as tagsForScope, fK as tagsOfGroup, fL as topLevelAgentSteps, fM as uploadSkill, fN as usdToGbp, fO as work, fP as workflowSteps, fQ as workflows, fR as workspaceConflictOf, fS as workspaces, fT as wouldCreateTagCycle } from './browser-DpDuiKeo.js';
1
+ import { a4 as ConfigStore, a1 as CliConfig, a2 as CliCredentials, _ as ChatSession, cw as SkippedFile, di as UploadResult, t as AuthHeaders, dc as UploadBatchResult, dg as UploadOptions, dd as UploadDirectOptions, de as UploadDirectResult, cp as SUPPORTED_EXTENSIONS, bj as MailAttachment, S as ChatCryptoContext } from './browser-D0iEy5W9.js';
2
+ export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiStructuredOutputError, l as ArbiTransportError, m as ArbiWorkspaceChangedError, n as ArbiWorkspaceSupersededError, o as ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AttendeeRead, s as AuthContext, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, $ as CitationSummary, a0 as CitationToolSources, a3 as CommandDescriptor, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectionModel, a9 as ConnectorCatalogEntry, aa as ConnectorFolder, ab as ConnectorSyncProgress, ac as ConnectorSyncStatus, ad as ConnectorVendorKey, ae as ConnectorVisibilitySettings, af as ContextUsage, ag as ConversationResponse, ah as ConversationUsageResponse, ak as CreateWorkRequest, al as CreateWorkflowRequest, am as DEFAULT_AI_USD_PER_GBP, an as DOC_TERMINAL_STATUSES, ao as DRIVE_SYNC_VENDORS, ap as Database, aq as DatabaseAggregateRequest, ar as DatabaseAggregateResult, as as DatabaseColumn, at as DatabaseColumnWrite, au as DatabaseImportResult, av as DatabaseRow, aw as DatabaseRowPage, ax as DatabaseRowsQuery, ay as DateTimeSpec, az as DecryptedChat, aA as DecryptedChatMessage, aB as DeploymentHouseTemplate, aC as DirectModelUsage, aD as DocInfo, aE as DocInfoMap, aF as DocNameMap, aG as DocumentAutomationAction, aH as DocumentListFields, aI as DocumentListOrder, aJ as DocumentSelector, aK as DocumentWaiter, aL as DocumentWaiterOptions, aM as DriveSyncProgress, aN as DriveSyncSummary, aO as DuplicateContactError, aP as ENTITY_KINDS, aQ as EditScope, aR as EntityKind, aS as EventCreateBody, aT as EventPatchBody, aU as FLAT_TAG_KINDS, aY as FindTimeParams, aZ as FormattedWsMessage, a_ as FreeBusyEntry, a$ as FullContextSelection, b0 as GOOGLE_VENDORS, b1 as HolidayCountry, b2 as HouseTemplateCandidate, b3 as IMANAGE_VENDORS, b4 as IdentityErrorCode, b5 as IdentityPurchase, b6 as IdentityState, b7 as IdentityStatus, b8 as ImportResult, b9 as InvitationRead, ba as JsonSchemaOutputFormat, bb as LinkedRun, bc as ListAllOptions, bd as ListEventsParams, bf as ListPaginatedOptions, bg as MAILBOX_SYNC_VENDORS, bh as MAX_RETRIEVE_DOC_IDS, bi as MICROSOFT_VENDORS, bk as MessageLevel, bl as ModelConnection, bm as OAuthAccountKind, bn as OutputItemDone, bo as OverlayItem, bp as OverlayLayerName, bq as PRESENCE_KINDS, br as PROMPT_CONTEXT_CHARS, bs as ParsedResponse, bt as ParsedSlashCommand, bu as ParsedStructuredResponse, bv as PendingAuthResponse, bw as PersonKey, bx as PersonalConnectionInput, by as PlanStepsError, bz as PlanWorkRequest, bA as ProductResponse, bB as ProjectAddonKind, bC as ProjectAddonSettingsRequest, bD as ProjectBudget, bE as ProjectCheckoutRequest, bF as ProjectConversationUsageResponse, bG as ProjectCreateOptions, bH as ProjectDetails, bI as ProjectEventKind, bJ as ProjectEventResponse, bK as ProjectInvoicesResponse, bL as ProjectNextPeriodAddonsRequest, bM as ProjectPlanChangeRequest, bN as ProjectQuoteRequest, bO as ProjectResponse, bP as ProjectUpdateRequest, bQ as ProjectUsageResponse, bR as PublicBookingError, bS as PublicBookingPage, bT as QuotaExceeded, bU as RaisedSignal, bV as RawResponseEvent, bW as ReconnectOptions, bX as ReconnectableWsConnection, bY as ResolvedCitation, bZ as ResolvedRecipient, b_ as RespondParams, b$ as RespondPartstat, c0 as Response, c1 as ResponseCreateRequest, c2 as ResponseCreateResult, c3 as ResponseHandle, c4 as ResponseSnapshot, c5 as ResponseStart, c6 as ResponseStartOptions, c7 as ResponseStream, c8 as ResponseStreamEvent, c9 as ResponseTools, ca as RoomCreateBody, cb as RoomQuery, cc as RoomRead, cd as RunProgress, ce as RunStats, cf as RunStep, cg as RunWaitingOn, ch as SHAREPOINT_VENDORS, ci as SSEEvent, cj as SSEStreamCallbacks, ck as SSEStreamOutcome, cl as SSEStreamResult, cm as STEP_FIELD_OPTION_TONES, cn as STOP_ID_WAIT_MS, co as STOP_REPEAT_WINDOW_MS, cq as ScopedTarget, cr as SearchChunk, cs as SendBack, ct as ShareRead, cu as ShareRole, cv as SkillSummary, cx as SlackConnectionStatus, cy as StepActionRequest, cz as StepActivityEvent, cA as StepAssignee, cB as StepDisplay, cC as StepField, cD as StepFieldOption, cE as StepFieldOptionTone, cF as StepKind, cG as StepPhase, cH as StepSignal, cI as StepSignalWhen, cJ as StepState, cK as StepStatus, cL as SubagentBranchRecord, cM as SubagentLaneInfo, cN as SubmitBackgroundQueryOptions, cO as SubscribeParams, cP as SyncTriggerResult, cQ as TAG_KINDS, cR as TAG_NESTING_MAX_DEPTH, cS as TagChange, cT as TagFieldDefinition, cU as TagGroup, cV as TagKind, cW as TagKindField, cX as TagKindSchema, cY as TagLinks, cZ as TagListQuery, c_ as TagNode, c$ as TagResponse, d0 as TagScope, d1 as TagTreeRow, d2 as TaskPlan, d3 as TaskPlanStep, d4 as TaxQuoteResponse, d5 as Thread, d6 as ThreadsResponse, d7 as TimeSuggestion, d8 as TurnRequest, d9 as UpdateConversationRequest, db as UpdateWorkflowRequest, df as UploadDocumentsOptions, dh as UploadProgressListener, dj as UsageBreakdown, dk as UserConnectorEntry, dl as UserDailyUsageResponse, dm as UserInfo, dn as WebSocketAuthError, dp as WeeklyHoursSpec, dq as WorkStatus, dr as WorkflowAuthMode, ds as WorkflowResponse, dt as WorkflowRunHistoryResponse, du as WorkflowRunResponse, dv as WorkspaceConflict, dw as WorkspaceContext, dx as WorkspaceOpenResponse, dy as WorkspaceResponse, dz as WsConnection, dA as account, dB as agentconfig, dC as agents, dD as appendTranscriptionHints, dE as assistant, dF as authenticatedFetch, dG as bookPublicSlot, dH as buildCitationChunkData, dI as buildDocNameMap, dJ as buildDocumentTools, dK as buildFactsContextTool, dL as buildRetrievalChunkTool, dM as buildRetrievalFullContextTool, dN as buildRetrievalTocTool, dO as buildTurnRequest, dP as calendar, dQ as calls, dR as canTagHaveParent, dS as cancelPublicBooking, dT as capabilities, dU as chats, dV as composeConfiguration, dW as composeTools, dX as computeRunStats, dY as connectErrorMessage, dZ as connectWebSocket, d_ as connectWithReconnect, d$ as connectors, e0 as contacts, e1 as continuityPrompt, e2 as conversations, e3 as countCitations, e4 as createAuthenticatedClient, e5 as createDocumentWaiter, e6 as createIndexAssigner, e7 as databases, e8 as defaultKindForFormat, e9 as doctags, ea as documentTools, eb as documents, ec as estimateDraftTokens, ed as extractDocumentIdsFromMessages, ee as extractFactIdsFromMessages, ef as extractSubagentLanes, eg as facts, eh as files, ei as filterDocumentTags, ej as filterSkills, ek as findLeafForTaskMessage, el as findMainSiblingLeaf, em as findReplyTarget, en as findSubagentRunId, eo as flattenTagTree, ep as formatAgentStepLabel, eq as formatFileSize, er as formatGbp, es as formatGbpPerMillionTokens, et as formatItemLabel, eu as formatStreamSummary, ev as formatTokens, ew as formatUserName, ex as formatWorkspaceChoices, ey as formatWsMessage, ez as generateEncryptedWorkspaceKey, eA as generateNewWorkspaceKey, eB as getAgentStepLabel, eC as getAttachableRunId, eD as getChildTags, eE as getContextRemainingPercent, eF as getContextUsedPercent, eG as getContextUsedTokens, eH as getCurrentStep, eI as getEligibleParentTags, eJ as getErrorCode, eK as getErrorMessage, eL as getPublicBookingPage, eM as getRawWorkspaceKey, eN as getRunToAttach, eO as getRunToCancel, eP as getStepDisplay, eQ as getStepTool, eR as getSubagentBranchRecord, eS as getTagDescendantIds, eT as health, eU as houseTemplates, eV as hydrateAgentSteps, eX as identityErrorCode, eW as identityVerification, eY as instructions, eZ as isAnnotationTag, e_ as isConnectorVendorVisible, e$ as isDriveSyncVendor, f0 as isEntityTag, f1 as isFlatKind, f2 as isLabelTag, f3 as isMailboxSyncVendor, f4 as isNearAiUsageBudget, f5 as isPresenceTag, f6 as isSharePointVendor, f7 as isSharedSkill, f8 as isTraceItem, f9 as mail, fa as mcpTools, fb as mergeAgentSteps, fc as modelConnections, fd as notifications, fe as parseSSEEvents, ff as parseSlashCommand, fg as parseSlashTokenInProgress, fh as parseStructuredResponse, fi as performPasswordLogin, fj as performSigningKeyLogin, fk as performSsoDeviceFlowLogin, fl as pickMainThread, fm as profile, fn as progressFetch, fo as projects, fp as quotaExceededFrom, fq as quotaFromStreamError, fr as reduceOutputItem, fs as refusalReason, ft as requireData, fu as requireOk, fv as resolveAuth, fw as resolveCitations, fx as resolveSummary, fy as resolveWorkspace, fz as responses, fA as searchChunks, fB as selectFullContextDocument, fC as selectWorkspace, fD as selectWorkspaceById, fE as sessions, fF as settings, fG as signatureRequests, fH as sliceToSubagentThread, fI as streamSSE, fJ as stripCitationMarkdown, fK as subagentJobLabel, fL as summarizeCitations, fM as tagUseCount, fN as tags, fO as tagsForScope, fP as tagsOfGroup, fQ as topLevelAgentSteps, fR as uploadSkill, fS as usdToGbp, fT as work, fU as workflowSteps, fV as workflows, fW as workspaceConflictOf, fX as workspaces, fY as wouldCreateTagCycle } from './browser-D0iEy5W9.js';
3
3
  import { SessionPersistence, ArbiClient, components } from '@arbidocs/client';
4
4
  export { CallPeer, HttpErrorInfo, HttpRequestInfo, HttpResponseInfo, HttpTransportOptions, LoginProfile, SessionPersistence } from '@arbidocs/client';
5
5
  export { b as AgentStepEvent, d as ArtifactEvent, M as MailDraftSSEEvent, e as MessageMetadataPayload, f as MessageQueuedEvent, O as OutputTokensDetails, 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';
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import fs2, { readFileSync } from 'fs';
2
2
  import path3, { dirname, resolve } from 'path';
3
3
  import os2 from 'os';
4
- 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, isAbortError, changePassword, openCallKeyOf, decryptCallTitle, generateCallKey, encryptCallTitle, sealCallKeyForPeers, openSealedCallKey, readSessionClaims } from '@arbidocs/client';
4
+ import { createArbiClient, base64ToBytes, unwrapWorkspaceKey, sealKeyForSession, buildWebSocketUrl, createAuthMessage, parseServerMessage, isMessageType, createContentHash, encryptFile, initSodium, encryptionKeypairFromSigningKey, sealedBoxEncrypt, sealedBoxDecrypt, bytesToBase64, encryptWithChatKey, decryptWithChatKey, decryptFile, deriveDirectChatKey, openSealedChatKey, generateChatKey, sealChatKey, sealCallKey, encryptMessage, decodeSecureMailKey, openSecureMail, secureMailClaim, createSessionManager, authRequestError, isAbortError, changePassword, openCallKeyOf, decryptCallTitle, generateCallKey, encryptCallTitle, sealCallKeyForPeers, openSealedCallKey, readSessionClaims } from '@arbidocs/client';
5
5
  import { execSync, spawn } from 'child_process';
6
6
  import { createHash } from 'crypto';
7
7
  import { fileURLToPath } from 'url';
@@ -6467,6 +6467,82 @@ async function listHouseTemplateCandidates(arbi) {
6467
6467
  );
6468
6468
  }
6469
6469
 
6470
+ // src/operations/model-connections.ts
6471
+ var model_connections_exports = {};
6472
+ __export(model_connections_exports, {
6473
+ directUsage: () => directUsage,
6474
+ listConnections: () => listConnections,
6475
+ removeConnection: () => removeConnection,
6476
+ savePersonalConnection: () => savePersonalConnection,
6477
+ sealPersonalApiKey: () => sealPersonalApiKey,
6478
+ unlockModelConnections: () => unlockModelConnections
6479
+ });
6480
+ var FAILED = "Could not update model connections";
6481
+ async function listConnections(arbi) {
6482
+ return requireData(await arbi.fetch.GET("/v1/model-connections"), FAILED);
6483
+ }
6484
+ async function directUsage(arbi) {
6485
+ return requireData(
6486
+ await arbi.fetch.GET("/v1/model-connections/usage"),
6487
+ FAILED
6488
+ );
6489
+ }
6490
+ async function savePersonalConnection(arbi, body, id) {
6491
+ const result = id ? await arbi.fetch.PUT("/v1/model-connections/personal/{connection_id}", {
6492
+ params: { path: { connection_id: id } },
6493
+ body
6494
+ }) : await arbi.fetch.POST("/v1/model-connections/personal", { body });
6495
+ return requireData(result, FAILED);
6496
+ }
6497
+ async function removeConnection(arbi, id) {
6498
+ requireOk(
6499
+ await arbi.fetch.DELETE("/v1/model-connections/{connection_id}", {
6500
+ params: { path: { connection_id: id } }
6501
+ }),
6502
+ FAILED
6503
+ );
6504
+ }
6505
+ async function sealPersonalApiKey(apiKey, signingPrivateKey) {
6506
+ await initSodium();
6507
+ const pair = encryptionKeypairFromSigningKey(signingPrivateKey);
6508
+ const bytes = new TextEncoder().encode(apiKey);
6509
+ try {
6510
+ return sealedBoxEncrypt(bytes, pair.publicKey);
6511
+ } finally {
6512
+ bytes.fill(0);
6513
+ pair.secretKey.fill(0);
6514
+ }
6515
+ }
6516
+ async function unlockModelConnections(arbi, keys, onlyId) {
6517
+ await initSodium();
6518
+ const pair = encryptionKeypairFromSigningKey(keys.signingPrivateKey);
6519
+ try {
6520
+ const rows = requireData(
6521
+ await arbi.fetch.GET("/v1/model-connections/sealed-keys"),
6522
+ FAILED
6523
+ );
6524
+ for (const row of rows) {
6525
+ if (onlyId && onlyId !== row.id || !row.sealed_api_key || !row.enabled) continue;
6526
+ const bytes = sealedBoxDecrypt(row.sealed_api_key, pair.secretKey);
6527
+ try {
6528
+ requireOk(
6529
+ await arbi.fetch.POST("/v1/model-connections/session-key", {
6530
+ body: {
6531
+ connection_id: row.id,
6532
+ sealed_api_key: sealedBoxEncrypt(bytes, keys.serverSessionKey)
6533
+ }
6534
+ }),
6535
+ FAILED
6536
+ );
6537
+ } finally {
6538
+ bytes.fill(0);
6539
+ }
6540
+ }
6541
+ } finally {
6542
+ pair.secretKey.fill(0);
6543
+ }
6544
+ }
6545
+
6470
6546
  // src/operations/workspaces.ts
6471
6547
  var workspaces_exports = {};
6472
6548
  __export(workspaces_exports, {
@@ -13522,6 +13598,46 @@ var Arbi = class {
13522
13598
  /** The documents the open workspace may use as its house template. */
13523
13599
  candidates: () => listHouseTemplateCandidates(this.requireClient())
13524
13600
  };
13601
+ // ── Model connections ───────────────────────────────────────────────
13602
+ /**
13603
+ * The main agent's OpenAI-compatible endpoints: the box's and the user's own. A personal key is
13604
+ * sealed to the user's identity and usable by a session only once unlocked on it.
13605
+ */
13606
+ modelConnections = {
13607
+ list: () => listConnections(this.requireClient()),
13608
+ /** The user's direct model calls of the last 30 days. */
13609
+ usage: () => directUsage(this.requireClient()),
13610
+ /**
13611
+ * Add a personal connection (or replace `id`'s). An `apiKey` is sealed to the identity before
13612
+ * it is sent; an enabled connection with a key is unlocked on this session at once.
13613
+ */
13614
+ save: async ({ id, apiKey, ...body }) => {
13615
+ const sealed = apiKey ? await sealPersonalApiKey(apiKey, this.identityKey()) : void 0;
13616
+ const row = await savePersonalConnection(
13617
+ this.requireClient(),
13618
+ {
13619
+ ...body,
13620
+ protocol: "openai_chat_completions",
13621
+ allow_private_network: false,
13622
+ ...sealed ? { sealed_api_key: sealed } : {}
13623
+ },
13624
+ id
13625
+ );
13626
+ if (row.has_api_key && row.enabled) await this.modelConnections.unlock(row.id);
13627
+ return row;
13628
+ },
13629
+ remove: (id) => removeConnection(this.requireClient(), id),
13630
+ /** Let this session use the user's enabled personal keys (only `onlyId`'s when given). */
13631
+ unlock: async (onlyId) => {
13632
+ const serverSessionKey = this.client?.session.getState().serverSessionKey ?? this.loginResult?.serverSessionKey;
13633
+ if (!serverSessionKey) throw new ArbiError("Sign in again to unlock model connections");
13634
+ await unlockModelConnections(
13635
+ this.requireClient(),
13636
+ { signingPrivateKey: this.identityKey(), serverSessionKey },
13637
+ onlyId
13638
+ );
13639
+ }
13640
+ };
13525
13641
  // ── Databases (user-defined tables of the open workspace) ──────────
13526
13642
  databases = {
13527
13643
  list: () => listDatabases(this.requireClient()),
@@ -13579,6 +13695,11 @@ var Arbi = class {
13579
13695
  }
13580
13696
  return this.loginResult;
13581
13697
  }
13698
+ /** The signed-in user's identity (signing) key. */
13699
+ identityKey() {
13700
+ if (!this.loginResult) throw new ArbiError("Unlock your identity first");
13701
+ return this.loginResult.signingPrivateKey;
13702
+ }
13582
13703
  requireWorkspace() {
13583
13704
  if (!this.currentWorkspaceId) {
13584
13705
  throw new ArbiError("No workspace selected. Call selectWorkspace() first.");
@@ -15384,6 +15505,6 @@ function composeTools(base, next, mode) {
15384
15505
  return structuredClone(mode === "add" ? { ...base, ...next } : next);
15385
15506
  }
15386
15507
 
15387
- export { ACCOUNT_VENDOR, Arbi, ArbiApiError, ArbiError, ArbiSessionExpiredError, ArbiStructuredOutputError, ArbiTransportError, ArbiWorkspaceChangedError, ArbiWorkspaceSupersededError, ArbiWorkspaceUnavailableError, CallApiError, ClaudeOrchestrator, DEFAULT_AI_USD_PER_GBP, DOC_TERMINAL_STATUSES, DRIVE_SYNC_VENDORS, DuplicateContactError, ENTITY_KINDS, FLAT_TAG_KINDS, FileConfigStore, GOOGLE_VENDORS, IMANAGE_VENDORS, MAILBOX_SYNC_VENDORS, MAX_RETRIEVE_DOC_IDS, MICROSOFT_VENDORS, OpenClawOrchestrator, PRESENCE_KINDS, PROMPT_CONTEXT_CHARS, PlanStepsError, PublicBookingError, ResponseStream, SHAREPOINT_VENDORS, STEP_FIELD_OPTION_TONES, STOP_ID_WAIT_MS, STOP_REPEAT_WINDOW_MS, TAG_KINDS, TAG_NESTING_MAX_DEPTH, WebSocketAuthError, account_exports as account, agentconfig_exports as agentconfig, agents_exports as agents, appendTranscriptionHints, assistant_exports as assistant, authenticatedFetch, bookPublicSlot, buildCitationChunkData, buildDocNameMap, buildDocumentTools, buildFactsContextTool, buildRetrievalChunkTool, buildRetrievalFullContextTool, buildRetrievalTocTool, buildTurnRequest, calendar_exports as calendar, calls_exports as calls, canTagHaveParent, cancelPublicBooking, capabilities, chats_exports as chats, composeConfiguration, composeTools, computeRunStats, connectErrorMessage, connectWebSocket, connectWithReconnect, connectors_exports as connectors, contacts_exports as contacts, continuityPrompt, conversations_exports as conversations, countCitations, createAuthenticatedClient, createDocumentWaiter, createIndexAssigner, databases_exports as databases, defaultKindForFormat, device_flow_exports as deviceFlow, doctags_exports as doctags, documentTools, documents_exports as documents, documents_node_exports as documentsNode, estimateDraftTokens, extractDocumentIdsFromMessages, extractFactIdsFromMessages, extractSubagentLanes, facts_exports as facts, files_exports as files, filterDocumentTags, filterSkills, findLeafForTaskMessage, findMainSiblingLeaf, findReplyTarget, findSubagentRunId, firm_exports as firm, flattenTagTree, formatAgentStepLabel, formatFileSize, formatGbp, formatGbpPerMillionTokens, formatItemLabel, formatStreamSummary, formatTokens, formatUserName, formatWorkspaceChoices, formatWsMessage, generateEncryptedWorkspaceKey, generateNewWorkspaceKey, getAgentStepLabel, getAttachableRunId, getChildTags, getContextRemainingPercent, getContextUsedPercent, getContextUsedTokens, getCurrentStep, getEligibleParentTags, getErrorCode, getErrorMessage, getPublicBookingPage, getRawWorkspaceKey, getRunToAttach, getRunToCancel, getStepDisplay, getStepTool, getSubagentBranchRecord, getTagDescendantIds, health_exports as health, house_template_exports as houseTemplates, hydrateAgentSteps, identityErrorCode, identity_exports as identityVerification, instructions, isAnnotationTag, isConnectorVendorVisible, isDriveSyncVendor, isEntityTag, isFlatKind, isLabelTag, isMailboxSyncVendor, isNearAiUsageBudget, isPresenceTag, isSharePointVendor, isSharedSkill, isTraceItem, listen_exports as listen, mail_exports as mail, mail_node_exports as mailNode, mcpTools, mergeAgentSteps, notifications_exports as notifications, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, parseStructuredResponse, performPasswordLogin, performSigningKeyLogin, performSsoDeviceFlowLogin, pickMainThread, profile_exports as profile, progressFetch, projects_exports as projects, quotaExceededFrom, quotaFromStreamError, reduceOutputItem, refusalReason, requireData, requireOk, resolveAuth, resolveCitations, resolveSummary, resolveWorkspace, responses_exports as responses, searchChunks, selectFullContextDocument, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, signature_requests_exports as signatureRequests, sliceToSubagentThread, startDmListener, streamSSE, stripCitationMarkdown, subagentJobLabel, summarizeCitations, tagUseCount, tags_exports as tags, tagsForScope, tagsOfGroup, topLevelAgentSteps, uploadSkill, usdToGbp, work_exports as work, workflow_steps_exports as workflowSteps, workflows_exports as workflows, workspaceConflictOf, workspaces_exports as workspaces, wouldCreateTagCycle };
15508
+ export { ACCOUNT_VENDOR, Arbi, ArbiApiError, ArbiError, ArbiSessionExpiredError, ArbiStructuredOutputError, ArbiTransportError, ArbiWorkspaceChangedError, ArbiWorkspaceSupersededError, ArbiWorkspaceUnavailableError, CallApiError, ClaudeOrchestrator, DEFAULT_AI_USD_PER_GBP, DOC_TERMINAL_STATUSES, DRIVE_SYNC_VENDORS, DuplicateContactError, ENTITY_KINDS, FLAT_TAG_KINDS, FileConfigStore, GOOGLE_VENDORS, IMANAGE_VENDORS, MAILBOX_SYNC_VENDORS, MAX_RETRIEVE_DOC_IDS, MICROSOFT_VENDORS, OpenClawOrchestrator, PRESENCE_KINDS, PROMPT_CONTEXT_CHARS, PlanStepsError, PublicBookingError, ResponseStream, SHAREPOINT_VENDORS, STEP_FIELD_OPTION_TONES, STOP_ID_WAIT_MS, STOP_REPEAT_WINDOW_MS, TAG_KINDS, TAG_NESTING_MAX_DEPTH, WebSocketAuthError, account_exports as account, agentconfig_exports as agentconfig, agents_exports as agents, appendTranscriptionHints, assistant_exports as assistant, authenticatedFetch, bookPublicSlot, buildCitationChunkData, buildDocNameMap, buildDocumentTools, buildFactsContextTool, buildRetrievalChunkTool, buildRetrievalFullContextTool, buildRetrievalTocTool, buildTurnRequest, calendar_exports as calendar, calls_exports as calls, canTagHaveParent, cancelPublicBooking, capabilities, chats_exports as chats, composeConfiguration, composeTools, computeRunStats, connectErrorMessage, connectWebSocket, connectWithReconnect, connectors_exports as connectors, contacts_exports as contacts, continuityPrompt, conversations_exports as conversations, countCitations, createAuthenticatedClient, createDocumentWaiter, createIndexAssigner, databases_exports as databases, defaultKindForFormat, device_flow_exports as deviceFlow, doctags_exports as doctags, documentTools, documents_exports as documents, documents_node_exports as documentsNode, estimateDraftTokens, extractDocumentIdsFromMessages, extractFactIdsFromMessages, extractSubagentLanes, facts_exports as facts, files_exports as files, filterDocumentTags, filterSkills, findLeafForTaskMessage, findMainSiblingLeaf, findReplyTarget, findSubagentRunId, firm_exports as firm, flattenTagTree, formatAgentStepLabel, formatFileSize, formatGbp, formatGbpPerMillionTokens, formatItemLabel, formatStreamSummary, formatTokens, formatUserName, formatWorkspaceChoices, formatWsMessage, generateEncryptedWorkspaceKey, generateNewWorkspaceKey, getAgentStepLabel, getAttachableRunId, getChildTags, getContextRemainingPercent, getContextUsedPercent, getContextUsedTokens, getCurrentStep, getEligibleParentTags, getErrorCode, getErrorMessage, getPublicBookingPage, getRawWorkspaceKey, getRunToAttach, getRunToCancel, getStepDisplay, getStepTool, getSubagentBranchRecord, getTagDescendantIds, health_exports as health, house_template_exports as houseTemplates, hydrateAgentSteps, identityErrorCode, identity_exports as identityVerification, instructions, isAnnotationTag, isConnectorVendorVisible, isDriveSyncVendor, isEntityTag, isFlatKind, isLabelTag, isMailboxSyncVendor, isNearAiUsageBudget, isPresenceTag, isSharePointVendor, isSharedSkill, isTraceItem, listen_exports as listen, mail_exports as mail, mail_node_exports as mailNode, mcpTools, mergeAgentSteps, model_connections_exports as modelConnections, notifications_exports as notifications, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, parseStructuredResponse, performPasswordLogin, performSigningKeyLogin, performSsoDeviceFlowLogin, pickMainThread, profile_exports as profile, progressFetch, projects_exports as projects, quotaExceededFrom, quotaFromStreamError, reduceOutputItem, refusalReason, requireData, requireOk, resolveAuth, resolveCitations, resolveSummary, resolveWorkspace, responses_exports as responses, searchChunks, selectFullContextDocument, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, signature_requests_exports as signatureRequests, sliceToSubagentThread, startDmListener, streamSSE, stripCitationMarkdown, subagentJobLabel, summarizeCitations, tagUseCount, tags_exports as tags, tagsForScope, tagsOfGroup, topLevelAgentSteps, uploadSkill, usdToGbp, work_exports as work, workflow_steps_exports as workflowSteps, workflows_exports as workflows, workspaceConflictOf, workspaces_exports as workspaces, wouldCreateTagCycle };
15388
15509
  //# sourceMappingURL=index.js.map
15389
15510
  //# sourceMappingURL=index.js.map