@arbidocs/sdk 0.5.76 → 0.5.78

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, cC as SkippedFile, dq as UploadResult, t as AuthHeaders, dj as UploadBatchResult, dn as UploadOptions, dk as UploadDirectOptions, dl as UploadDirectResult, cq as SUPPORTED_EXTENSIONS, bk as MailAttachment, S as ChatCryptoContext } from './browser-C1bFelgZ.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 DiagnoseOptions, aD as DirectModelUsage, aE as DocInfo, aF as DocInfoMap, aG as DocNameMap, aH as DocumentAutomationAction, aI as DocumentListFields, aJ as DocumentListOrder, aK as DocumentSelector, aL as DocumentWaiter, aM as DocumentWaiterOptions, aN as DriveSyncProgress, aO as DriveSyncSummary, aP as DuplicateContactError, aQ as ENTITY_KINDS, aR as EditScope, aS as EntityKind, aT as EventCreateBody, aU as EventPatchBody, aV as FLAT_TAG_KINDS, aZ as FindTimeParams, a_ as FormattedWsMessage, a$ as FreeBusyEntry, b0 as FullContextSelection, b1 as GOOGLE_VENDORS, b2 as HolidayCountry, b3 as HouseTemplateCandidate, b4 as IMANAGE_VENDORS, b5 as IdentityErrorCode, b6 as IdentityPurchase, b7 as IdentityState, b8 as IdentityStatus, b9 as ImportResult, ba as InvitationRead, bb as JsonSchemaOutputFormat, bc as LinkedRun, bd as ListAllOptions, be as ListEventsParams, bg as ListPaginatedOptions, bh as MAILBOX_SYNC_VENDORS, bi as MAX_RETRIEVE_DOC_IDS, bj as MICROSOFT_VENDORS, bl as MessageLevel, bm as ModelConnection, bn as OAuthAccountKind, bo as OutputItemDone, bp as OverlayItem, bq as OverlayLayerName, br as PRESENCE_KINDS, bs as PROMPT_CONTEXT_CHARS, bt as ParsedResponse, bu as ParsedSlashCommand, bv as ParsedStructuredResponse, bw as PendingAuthResponse, bx as PersonKey, by as PersonalConnectionInput, bz as PlanStepsError, bA as PlanWorkRequest, bB as ProductResponse, bC as ProjectAddonKind, bD as ProjectAddonSettingsRequest, bE as ProjectBudget, bF as ProjectCheckoutRequest, bG as ProjectConversationUsageResponse, bH as ProjectCreateOptions, bI as ProjectDetails, bJ as ProjectEventKind, bK as ProjectEventResponse, bL as ProjectInvoicesResponse, bM as ProjectNextPeriodAddonsRequest, bN as ProjectPlanChangeRequest, bO as ProjectQuoteRequest, bP as ProjectResponse, bQ as ProjectUpdateRequest, bR as ProjectUsageResponse, bS as PublicBookingError, bT as PublicBookingPage, bU as QuotaExceeded, bV as RaisedSignal, bW as RawResponseEvent, bX as ReconnectOptions, bY as ReconnectableWsConnection, bZ as ResolvedCitation, b_ as ResolvedRecipient, b$ as RespondParams, c0 as RespondPartstat, c1 as Response, c2 as ResponseCreateRequest, c3 as ResponseCreateResult, c4 as ResponseHandle, c5 as ResponseSnapshot, c6 as ResponseStart, c7 as ResponseStartOptions, c8 as ResponseStream, c9 as ResponseStreamEvent, ca as ResponseTools, cb as RoomCreateBody, cc as RoomQuery, cd as RoomRead, ce as RunProgress, cf as RunStats, cg as RunStep, ch as RunWaitingOn, ci as SHAREPOINT_VENDORS, cj as SSEEvent, ck as SSEStreamCallbacks, cl as SSEStreamOutcome, cm as SSEStreamResult, cn as STEP_FIELD_OPTION_TONES, co as STOP_ID_WAIT_MS, cp as STOP_REPEAT_WINDOW_MS, cr as ScopedTarget, cs as SearchChunk, ct as SecureMailCompose, cu as SecureMailSend, cv as SecureMailSender, cw as SendBack, cx as SetupDiagnostic, cy as SetupReport, cz as ShareRead, cA as ShareRole, cB as SkillSummary, cD as SlackConnectionStatus, cE as StepActionRequest, cF as StepActivityEvent, cG as StepAssignee, cH as StepDisplay, cI as StepField, cJ as StepFieldOption, cK as StepFieldOptionTone, cL as StepKind, cM as StepPhase, cN as StepSignal, cO as StepSignalWhen, cP as StepState, cQ as StepStatus, cR as SubagentBranchRecord, cS as SubagentLaneInfo, cT as SubmitBackgroundQueryOptions, cU as SubscribeParams, cV as SupportTicketInput, cW as SyncTriggerResult, cX as TAG_KINDS, cY as TAG_NESTING_MAX_DEPTH, cZ as TagChange, c_ as TagFieldDefinition, c$ as TagGroup, d0 as TagKind, d1 as TagKindField, d2 as TagKindSchema, d3 as TagLinks, d4 as TagListQuery, d5 as TagNode, d6 as TagResponse, d7 as TagScope, d8 as TagTreeRow, d9 as TaskPlan, da as TaskPlanStep, db as TaxQuoteResponse, dc as Thread, dd as ThreadsResponse, de as TimeSuggestion, df as TurnRequest, dg as UpdateConversationRequest, di as UpdateWorkflowRequest, dm as UploadDocumentsOptions, dp as UploadProgressListener, dr as UsageBreakdown, ds as UserConnectorEntry, dt as UserDailyUsageResponse, du as UserInfo, dv as WebSocketAuthError, dw as WeeklyHoursSpec, dx as WorkStatus, dy as WorkflowAuthMode, dz as WorkflowResponse, dA as WorkflowRunHistoryResponse, dB as WorkflowRunResponse, dC as WorkspaceConflict, dD as WorkspaceContext, dE as WorkspaceOpenResponse, dF as WorkspaceResponse, dG as WsConnection, dH as account, dI as agentconfig, dJ as agents, dK as appendTranscriptionHints, dL as assistant, dM as authenticatedFetch, dN as bookPublicSlot, dO as buildCitationChunkData, dP as buildDocNameMap, dQ as buildDocumentTools, dR as buildFactsContextTool, dS as buildRetrievalChunkTool, dT as buildRetrievalFullContextTool, dU as buildRetrievalTocTool, dV as buildTurnRequest, dW as calendar, dX as calls, dY as canTagHaveParent, dZ as cancelPublicBooking, d_ as capabilities, d$ as chats, e0 as composeConfiguration, e1 as composeTools, e2 as computeRunStats, e3 as connectErrorMessage, e4 as connectWebSocket, e5 as connectWithReconnect, e6 as connectors, e7 as contacts, e8 as continuityPrompt, e9 as conversations, ea as countCitations, eb as createAuthenticatedClient, ec as createDocumentWaiter, ed as createIndexAssigner, ee as databases, ef as defaultKindForFormat, eg as diagnoseSetup, eh as doctags, ei as documentTools, ej as documents, ek as estimateDraftTokens, el as extractDocumentIdsFromMessages, em as extractFactIdsFromMessages, en as extractSubagentLanes, eo as facts, ep as files, eq as filterDocumentTags, er as filterSkills, es as findLeafForTaskMessage, et as findMainSiblingLeaf, eu as findReplyTarget, ev as findSubagentRunId, ew as flattenTagTree, ex as formatAgentStepLabel, ey as formatFileSize, ez as formatGbp, eA as formatGbpPerMillionTokens, eB as formatItemLabel, eC as formatStreamSummary, eD as formatTokens, eE as formatUserName, eF as formatWorkspaceChoices, eG as formatWsMessage, eH as generateEncryptedWorkspaceKey, eI as generateNewWorkspaceKey, eJ as getAgentStepLabel, eK as getAttachableRunId, eL as getChildTags, eM as getContextRemainingPercent, eN as getContextUsedPercent, eO as getContextUsedTokens, eP as getCurrentStep, eQ as getEligibleParentTags, eR as getErrorCode, eS as getErrorMessage, eT as getPublicBookingPage, eU as getRawWorkspaceKey, eV as getRunToAttach, eW as getRunToCancel, eX as getStepDisplay, eY as getStepTool, eZ as getSubagentBranchRecord, e_ as getTagDescendantIds, e$ as health, f0 as houseTemplates, f1 as hydrateAgentSteps, f3 as identityErrorCode, f2 as identityVerification, f4 as instructions, f5 as isAnnotationTag, f6 as isConnectorVendorVisible, f7 as isDriveSyncVendor, f8 as isEntityTag, f9 as isFlatKind, fa as isLabelTag, fb as isMailboxSyncVendor, fc as isNearAiUsageBudget, fd as isPresenceTag, fe as isSharePointVendor, ff as isSharedSkill, fg as isTraceItem, fh as mail, fi as mcpTools, fj as mergeAgentSteps, fk as modelConnections, fl as notifications, fm as parseSSEEvents, fn as parseSlashCommand, fo as parseSlashTokenInProgress, fp as parseStructuredResponse, fq as performPasswordLogin, fr as performSigningKeyLogin, fs as performSsoDeviceFlowLogin, ft as pickMainThread, fu as profile, fv as progressFetch, fw as projects, fx as quotaExceededFrom, fy as quotaFromStreamError, fz as reduceOutputItem, fA as refusalReason, fB as requireData, fC as requireOk, fD as resolveAuth, fE as resolveCitations, fF as resolveSummary, fG as resolveWorkspace, fH as responses, fI as searchChunks, fJ as secureMail, fK as selectFullContextDocument, fL as selectWorkspace, fM as selectWorkspaceById, fN as sessions, fO as settings, fP as signatureRequests, fQ as sliceToSubagentThread, fR as streamSSE, fS as stripCitationMarkdown, fT as subagentJobLabel, fU as summarizeCitations, fV as support, fW as tagUseCount, fX as tags, fY as tagsForScope, fZ as tagsOfGroup, f_ as topLevelAgentSteps, f$ as uploadSkill, g0 as usdToGbp, g1 as work, g2 as workflowSteps, g3 as workflows, g4 as workspaceConflictOf, g5 as workspaces, g6 as wouldCreateTagCycle } from './browser-C1bFelgZ.cjs';
1
+ import { a4 as ConfigStore, a1 as CliConfig, a2 as CliCredentials, _ as ChatSession, cC as SkippedFile, ds as UploadResult, t as AuthHeaders, dl as UploadBatchResult, dq as UploadOptions, dm as UploadDirectOptions, dn as UploadDirectResult, cq as SUPPORTED_EXTENSIONS, bk as MailAttachment, S as ChatCryptoContext } from './browser-CP0e4GnL.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 DiagnoseOptions, aD as DirectModelUsage, aE as DocInfo, aF as DocInfoMap, aG as DocNameMap, aH as DocumentAutomationAction, aI as DocumentListFields, aJ as DocumentListOrder, aK as DocumentSelector, aL as DocumentWaiter, aM as DocumentWaiterOptions, aN as DriveSyncProgress, aO as DriveSyncSummary, aP as DuplicateContactError, aQ as ENTITY_KINDS, aR as EditScope, aS as EntityKind, aT as EventCreateBody, aU as EventPatchBody, aV as FLAT_TAG_KINDS, aZ as FindTimeParams, a_ as FormattedWsMessage, a$ as FreeBusyEntry, b0 as FullContextSelection, b1 as GOOGLE_VENDORS, b2 as HolidayCountry, b3 as HouseTemplateCandidate, b4 as IMANAGE_VENDORS, b5 as IdentityErrorCode, b6 as IdentityPurchase, b7 as IdentityState, b8 as IdentityStatus, b9 as ImportResult, ba as InvitationRead, bb as JsonSchemaOutputFormat, bc as LinkedRun, bd as ListAllOptions, be as ListEventsParams, bg as ListPaginatedOptions, bh as MAILBOX_SYNC_VENDORS, bi as MAX_RETRIEVE_DOC_IDS, bj as MICROSOFT_VENDORS, bl as MessageLevel, bm as ModelConnection, bn as OAuthAccountKind, bo as OutputItemDone, bp as OverlayItem, bq as OverlayLayerName, br as PRESENCE_KINDS, bs as PROMPT_CONTEXT_CHARS, bt as ParsedResponse, bu as ParsedSlashCommand, bv as ParsedStructuredResponse, bw as PendingAuthResponse, bx as PersonKey, by as PersonalConnectionInput, bz as PlanStepsError, bA as PlanWorkRequest, bB as ProductResponse, bC as ProjectAddonKind, bD as ProjectAddonSettingsRequest, bE as ProjectBudget, bF as ProjectCheckoutRequest, bG as ProjectConversationUsageResponse, bH as ProjectCreateOptions, bI as ProjectDetails, bJ as ProjectEventKind, bK as ProjectEventResponse, bL as ProjectInvoicesResponse, bM as ProjectNextPeriodAddonsRequest, bN as ProjectPlanChangeRequest, bO as ProjectQuoteRequest, bP as ProjectResponse, bQ as ProjectUpdateRequest, bR as ProjectUsageResponse, bS as PublicBookingError, bT as PublicBookingPage, bU as QuotaExceeded, bV as RaisedSignal, bW as RawResponseEvent, bX as ReconnectOptions, bY as ReconnectableWsConnection, bZ as ResolvedCitation, b_ as ResolvedRecipient, b$ as RespondParams, c0 as RespondPartstat, c1 as Response, c2 as ResponseCreateRequest, c3 as ResponseCreateResult, c4 as ResponseHandle, c5 as ResponseSnapshot, c6 as ResponseStart, c7 as ResponseStartOptions, c8 as ResponseStream, c9 as ResponseStreamEvent, ca as ResponseTools, cb as RoomCreateBody, cc as RoomQuery, cd as RoomRead, ce as RunProgress, cf as RunStats, cg as RunStep, ch as RunWaitingOn, ci as SHAREPOINT_VENDORS, cj as SSEEvent, ck as SSEStreamCallbacks, cl as SSEStreamOutcome, cm as SSEStreamResult, cn as STEP_FIELD_OPTION_TONES, co as STOP_ID_WAIT_MS, cp as STOP_REPEAT_WINDOW_MS, cr as ScopedTarget, cs as SearchChunk, ct as SecureMailCompose, cu as SecureMailSend, cv as SecureMailSender, cw as SendBack, cx as SetupDiagnostic, cy as SetupReport, cz as ShareRead, cA as ShareRole, cB as SkillSummary, cD as SlackConnectionStatus, cE as StepActionRequest, cF as StepActivityEvent, cG as StepAssignee, cH as StepDisplay, cI as StepField, cJ as StepFieldOption, cK as StepFieldOptionTone, cL as StepKind, cM as StepPhase, cN as StepSignal, cO as StepSignalWhen, cP as StepState, cQ as StepStatus, cR as SubagentBranchRecord, cS as SubagentLaneInfo, cT as SubmitBackgroundQueryOptions, cU as SubscribeParams, cV as SupportRating, cW as SupportTicket, cX as SupportTicketInput, cY as SyncTriggerResult, cZ as TAG_KINDS, c_ as TAG_NESTING_MAX_DEPTH, c$ as TagChange, d0 as TagFieldDefinition, d1 as TagGroup, d2 as TagKind, d3 as TagKindField, d4 as TagKindSchema, d5 as TagLinks, d6 as TagListQuery, d7 as TagNode, d8 as TagResponse, d9 as TagScope, da as TagTreeRow, db as TaskPlan, dc as TaskPlanStep, dd as TaxQuoteResponse, de as Thread, df as ThreadsResponse, dg as TimeSuggestion, dh as TurnRequest, di as UpdateConversationRequest, dk as UpdateWorkflowRequest, dp as UploadDocumentsOptions, dr as UploadProgressListener, dt as UsageBreakdown, du as UserConnectorEntry, dv as UserDailyUsageResponse, dw as UserInfo, dx as WebSocketAuthError, dy as WeeklyHoursSpec, dz as WorkStatus, dA as WorkflowAuthMode, dB as WorkflowResponse, dC as WorkflowRunHistoryResponse, dD as WorkflowRunResponse, dE as WorkspaceConflict, dF as WorkspaceContext, dG as WorkspaceOpenResponse, dH as WorkspaceResponse, dI as WsConnection, dJ as account, dK as agentconfig, dL as agents, dM as appendTranscriptionHints, dN as assistant, dO as authenticatedFetch, dP as bookPublicSlot, dQ as buildCitationChunkData, dR as buildDocNameMap, dS as buildDocumentTools, dT as buildFactsContextTool, dU as buildRetrievalChunkTool, dV as buildRetrievalFullContextTool, dW as buildRetrievalTocTool, dX as buildTurnRequest, dY as calendar, dZ as calls, d_ as canTagHaveParent, d$ as cancelPublicBooking, e0 as capabilities, e1 as chats, e2 as composeConfiguration, e3 as composeTools, e4 as computeRunStats, e5 as connectErrorMessage, e6 as connectWebSocket, e7 as connectWithReconnect, e8 as connectors, e9 as contacts, ea as continuityPrompt, eb as conversations, ec as countCitations, ed as createAuthenticatedClient, ee as createDocumentWaiter, ef as createIndexAssigner, eg as databases, eh as defaultKindForFormat, ei as diagnoseSetup, ej as doctags, ek as documentTools, el as documents, em as estimateDraftTokens, en as extractDocumentIdsFromMessages, eo as extractFactIdsFromMessages, ep as extractSubagentLanes, eq as facts, er as files, es as filterDocumentTags, et as filterSkills, eu as findLeafForTaskMessage, ev as findMainSiblingLeaf, ew as findReplyTarget, ex as findSubagentRunId, ey as flattenTagTree, ez as formatAgentStepLabel, eA as formatFileSize, eB as formatGbp, eC as formatGbpPerMillionTokens, eD as formatItemLabel, eE as formatStreamSummary, eF as formatTokens, eG as formatUserName, eH as formatWorkspaceChoices, eI as formatWsMessage, eJ as generateEncryptedWorkspaceKey, eK as generateNewWorkspaceKey, eL as getAgentStepLabel, eM as getAttachableRunId, eN as getChildTags, eO as getContextRemainingPercent, eP as getContextUsedPercent, eQ as getContextUsedTokens, eR as getCurrentStep, eS as getEligibleParentTags, eT as getErrorCode, eU as getErrorMessage, eV as getPublicBookingPage, eW as getRawWorkspaceKey, eX as getRunToAttach, eY as getRunToCancel, eZ as getStepDisplay, e_ as getStepTool, e$ as getSubagentBranchRecord, f0 as getTagDescendantIds, f1 as health, f2 as houseTemplates, f3 as hydrateAgentSteps, f5 as identityErrorCode, f4 as identityVerification, f6 as instructions, f7 as isAnnotationTag, f8 as isConnectorVendorVisible, f9 as isDriveSyncVendor, fa as isEntityTag, fb as isFlatKind, fc as isLabelTag, fd as isMailboxSyncVendor, fe as isNearAiUsageBudget, ff as isPresenceTag, fg as isSharePointVendor, fh as isSharedSkill, fi as isTraceItem, fj as mail, fk as mcpTools, fl as mergeAgentSteps, fm as modelConnections, fn as notifications, fo as parseSSEEvents, fp as parseSlashCommand, fq as parseSlashTokenInProgress, fr as parseStructuredResponse, fs as performPasswordLogin, ft as performSigningKeyLogin, fu as performSsoDeviceFlowLogin, fv as pickMainThread, fw as profile, fx as progressFetch, fy as projects, fz as quotaExceededFrom, fA as quotaFromStreamError, fB as reduceOutputItem, fC as refusalReason, fD as requireData, fE as requireOk, fF as resolveAuth, fG as resolveCitations, fH as resolveSummary, fI as resolveWorkspace, fJ as responses, fK as searchChunks, fL as secureMail, fM as selectFullContextDocument, fN as selectWorkspace, fO as selectWorkspaceById, fP as sessions, fQ as settings, fR as signatureRequests, fS as sliceToSubagentThread, fT as streamSSE, fU as stripCitationMarkdown, fV as subagentJobLabel, fW as summarizeCitations, fX as support, fY as tagUseCount, fZ as tags, f_ as tagsForScope, f$ as tagsOfGroup, g0 as topLevelAgentSteps, g1 as uploadSkill, g2 as usdToGbp, g3 as work, g4 as workflowSteps, g5 as workflows, g6 as workspaceConflictOf, g7 as workspaces, g8 as wouldCreateTagCycle } from './browser-CP0e4GnL.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, cC as SkippedFile, dq as UploadResult, t as AuthHeaders, dj as UploadBatchResult, dn as UploadOptions, dk as UploadDirectOptions, dl as UploadDirectResult, cq as SUPPORTED_EXTENSIONS, bk as MailAttachment, S as ChatCryptoContext } from './browser-CkjCLAZL.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 DiagnoseOptions, aD as DirectModelUsage, aE as DocInfo, aF as DocInfoMap, aG as DocNameMap, aH as DocumentAutomationAction, aI as DocumentListFields, aJ as DocumentListOrder, aK as DocumentSelector, aL as DocumentWaiter, aM as DocumentWaiterOptions, aN as DriveSyncProgress, aO as DriveSyncSummary, aP as DuplicateContactError, aQ as ENTITY_KINDS, aR as EditScope, aS as EntityKind, aT as EventCreateBody, aU as EventPatchBody, aV as FLAT_TAG_KINDS, aZ as FindTimeParams, a_ as FormattedWsMessage, a$ as FreeBusyEntry, b0 as FullContextSelection, b1 as GOOGLE_VENDORS, b2 as HolidayCountry, b3 as HouseTemplateCandidate, b4 as IMANAGE_VENDORS, b5 as IdentityErrorCode, b6 as IdentityPurchase, b7 as IdentityState, b8 as IdentityStatus, b9 as ImportResult, ba as InvitationRead, bb as JsonSchemaOutputFormat, bc as LinkedRun, bd as ListAllOptions, be as ListEventsParams, bg as ListPaginatedOptions, bh as MAILBOX_SYNC_VENDORS, bi as MAX_RETRIEVE_DOC_IDS, bj as MICROSOFT_VENDORS, bl as MessageLevel, bm as ModelConnection, bn as OAuthAccountKind, bo as OutputItemDone, bp as OverlayItem, bq as OverlayLayerName, br as PRESENCE_KINDS, bs as PROMPT_CONTEXT_CHARS, bt as ParsedResponse, bu as ParsedSlashCommand, bv as ParsedStructuredResponse, bw as PendingAuthResponse, bx as PersonKey, by as PersonalConnectionInput, bz as PlanStepsError, bA as PlanWorkRequest, bB as ProductResponse, bC as ProjectAddonKind, bD as ProjectAddonSettingsRequest, bE as ProjectBudget, bF as ProjectCheckoutRequest, bG as ProjectConversationUsageResponse, bH as ProjectCreateOptions, bI as ProjectDetails, bJ as ProjectEventKind, bK as ProjectEventResponse, bL as ProjectInvoicesResponse, bM as ProjectNextPeriodAddonsRequest, bN as ProjectPlanChangeRequest, bO as ProjectQuoteRequest, bP as ProjectResponse, bQ as ProjectUpdateRequest, bR as ProjectUsageResponse, bS as PublicBookingError, bT as PublicBookingPage, bU as QuotaExceeded, bV as RaisedSignal, bW as RawResponseEvent, bX as ReconnectOptions, bY as ReconnectableWsConnection, bZ as ResolvedCitation, b_ as ResolvedRecipient, b$ as RespondParams, c0 as RespondPartstat, c1 as Response, c2 as ResponseCreateRequest, c3 as ResponseCreateResult, c4 as ResponseHandle, c5 as ResponseSnapshot, c6 as ResponseStart, c7 as ResponseStartOptions, c8 as ResponseStream, c9 as ResponseStreamEvent, ca as ResponseTools, cb as RoomCreateBody, cc as RoomQuery, cd as RoomRead, ce as RunProgress, cf as RunStats, cg as RunStep, ch as RunWaitingOn, ci as SHAREPOINT_VENDORS, cj as SSEEvent, ck as SSEStreamCallbacks, cl as SSEStreamOutcome, cm as SSEStreamResult, cn as STEP_FIELD_OPTION_TONES, co as STOP_ID_WAIT_MS, cp as STOP_REPEAT_WINDOW_MS, cr as ScopedTarget, cs as SearchChunk, ct as SecureMailCompose, cu as SecureMailSend, cv as SecureMailSender, cw as SendBack, cx as SetupDiagnostic, cy as SetupReport, cz as ShareRead, cA as ShareRole, cB as SkillSummary, cD as SlackConnectionStatus, cE as StepActionRequest, cF as StepActivityEvent, cG as StepAssignee, cH as StepDisplay, cI as StepField, cJ as StepFieldOption, cK as StepFieldOptionTone, cL as StepKind, cM as StepPhase, cN as StepSignal, cO as StepSignalWhen, cP as StepState, cQ as StepStatus, cR as SubagentBranchRecord, cS as SubagentLaneInfo, cT as SubmitBackgroundQueryOptions, cU as SubscribeParams, cV as SupportTicketInput, cW as SyncTriggerResult, cX as TAG_KINDS, cY as TAG_NESTING_MAX_DEPTH, cZ as TagChange, c_ as TagFieldDefinition, c$ as TagGroup, d0 as TagKind, d1 as TagKindField, d2 as TagKindSchema, d3 as TagLinks, d4 as TagListQuery, d5 as TagNode, d6 as TagResponse, d7 as TagScope, d8 as TagTreeRow, d9 as TaskPlan, da as TaskPlanStep, db as TaxQuoteResponse, dc as Thread, dd as ThreadsResponse, de as TimeSuggestion, df as TurnRequest, dg as UpdateConversationRequest, di as UpdateWorkflowRequest, dm as UploadDocumentsOptions, dp as UploadProgressListener, dr as UsageBreakdown, ds as UserConnectorEntry, dt as UserDailyUsageResponse, du as UserInfo, dv as WebSocketAuthError, dw as WeeklyHoursSpec, dx as WorkStatus, dy as WorkflowAuthMode, dz as WorkflowResponse, dA as WorkflowRunHistoryResponse, dB as WorkflowRunResponse, dC as WorkspaceConflict, dD as WorkspaceContext, dE as WorkspaceOpenResponse, dF as WorkspaceResponse, dG as WsConnection, dH as account, dI as agentconfig, dJ as agents, dK as appendTranscriptionHints, dL as assistant, dM as authenticatedFetch, dN as bookPublicSlot, dO as buildCitationChunkData, dP as buildDocNameMap, dQ as buildDocumentTools, dR as buildFactsContextTool, dS as buildRetrievalChunkTool, dT as buildRetrievalFullContextTool, dU as buildRetrievalTocTool, dV as buildTurnRequest, dW as calendar, dX as calls, dY as canTagHaveParent, dZ as cancelPublicBooking, d_ as capabilities, d$ as chats, e0 as composeConfiguration, e1 as composeTools, e2 as computeRunStats, e3 as connectErrorMessage, e4 as connectWebSocket, e5 as connectWithReconnect, e6 as connectors, e7 as contacts, e8 as continuityPrompt, e9 as conversations, ea as countCitations, eb as createAuthenticatedClient, ec as createDocumentWaiter, ed as createIndexAssigner, ee as databases, ef as defaultKindForFormat, eg as diagnoseSetup, eh as doctags, ei as documentTools, ej as documents, ek as estimateDraftTokens, el as extractDocumentIdsFromMessages, em as extractFactIdsFromMessages, en as extractSubagentLanes, eo as facts, ep as files, eq as filterDocumentTags, er as filterSkills, es as findLeafForTaskMessage, et as findMainSiblingLeaf, eu as findReplyTarget, ev as findSubagentRunId, ew as flattenTagTree, ex as formatAgentStepLabel, ey as formatFileSize, ez as formatGbp, eA as formatGbpPerMillionTokens, eB as formatItemLabel, eC as formatStreamSummary, eD as formatTokens, eE as formatUserName, eF as formatWorkspaceChoices, eG as formatWsMessage, eH as generateEncryptedWorkspaceKey, eI as generateNewWorkspaceKey, eJ as getAgentStepLabel, eK as getAttachableRunId, eL as getChildTags, eM as getContextRemainingPercent, eN as getContextUsedPercent, eO as getContextUsedTokens, eP as getCurrentStep, eQ as getEligibleParentTags, eR as getErrorCode, eS as getErrorMessage, eT as getPublicBookingPage, eU as getRawWorkspaceKey, eV as getRunToAttach, eW as getRunToCancel, eX as getStepDisplay, eY as getStepTool, eZ as getSubagentBranchRecord, e_ as getTagDescendantIds, e$ as health, f0 as houseTemplates, f1 as hydrateAgentSteps, f3 as identityErrorCode, f2 as identityVerification, f4 as instructions, f5 as isAnnotationTag, f6 as isConnectorVendorVisible, f7 as isDriveSyncVendor, f8 as isEntityTag, f9 as isFlatKind, fa as isLabelTag, fb as isMailboxSyncVendor, fc as isNearAiUsageBudget, fd as isPresenceTag, fe as isSharePointVendor, ff as isSharedSkill, fg as isTraceItem, fh as mail, fi as mcpTools, fj as mergeAgentSteps, fk as modelConnections, fl as notifications, fm as parseSSEEvents, fn as parseSlashCommand, fo as parseSlashTokenInProgress, fp as parseStructuredResponse, fq as performPasswordLogin, fr as performSigningKeyLogin, fs as performSsoDeviceFlowLogin, ft as pickMainThread, fu as profile, fv as progressFetch, fw as projects, fx as quotaExceededFrom, fy as quotaFromStreamError, fz as reduceOutputItem, fA as refusalReason, fB as requireData, fC as requireOk, fD as resolveAuth, fE as resolveCitations, fF as resolveSummary, fG as resolveWorkspace, fH as responses, fI as searchChunks, fJ as secureMail, fK as selectFullContextDocument, fL as selectWorkspace, fM as selectWorkspaceById, fN as sessions, fO as settings, fP as signatureRequests, fQ as sliceToSubagentThread, fR as streamSSE, fS as stripCitationMarkdown, fT as subagentJobLabel, fU as summarizeCitations, fV as support, fW as tagUseCount, fX as tags, fY as tagsForScope, fZ as tagsOfGroup, f_ as topLevelAgentSteps, f$ as uploadSkill, g0 as usdToGbp, g1 as work, g2 as workflowSteps, g3 as workflows, g4 as workspaceConflictOf, g5 as workspaces, g6 as wouldCreateTagCycle } from './browser-CkjCLAZL.js';
1
+ import { a4 as ConfigStore, a1 as CliConfig, a2 as CliCredentials, _ as ChatSession, cC as SkippedFile, ds as UploadResult, t as AuthHeaders, dl as UploadBatchResult, dq as UploadOptions, dm as UploadDirectOptions, dn as UploadDirectResult, cq as SUPPORTED_EXTENSIONS, bk as MailAttachment, S as ChatCryptoContext } from './browser-xgwYmWyv.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 DiagnoseOptions, aD as DirectModelUsage, aE as DocInfo, aF as DocInfoMap, aG as DocNameMap, aH as DocumentAutomationAction, aI as DocumentListFields, aJ as DocumentListOrder, aK as DocumentSelector, aL as DocumentWaiter, aM as DocumentWaiterOptions, aN as DriveSyncProgress, aO as DriveSyncSummary, aP as DuplicateContactError, aQ as ENTITY_KINDS, aR as EditScope, aS as EntityKind, aT as EventCreateBody, aU as EventPatchBody, aV as FLAT_TAG_KINDS, aZ as FindTimeParams, a_ as FormattedWsMessage, a$ as FreeBusyEntry, b0 as FullContextSelection, b1 as GOOGLE_VENDORS, b2 as HolidayCountry, b3 as HouseTemplateCandidate, b4 as IMANAGE_VENDORS, b5 as IdentityErrorCode, b6 as IdentityPurchase, b7 as IdentityState, b8 as IdentityStatus, b9 as ImportResult, ba as InvitationRead, bb as JsonSchemaOutputFormat, bc as LinkedRun, bd as ListAllOptions, be as ListEventsParams, bg as ListPaginatedOptions, bh as MAILBOX_SYNC_VENDORS, bi as MAX_RETRIEVE_DOC_IDS, bj as MICROSOFT_VENDORS, bl as MessageLevel, bm as ModelConnection, bn as OAuthAccountKind, bo as OutputItemDone, bp as OverlayItem, bq as OverlayLayerName, br as PRESENCE_KINDS, bs as PROMPT_CONTEXT_CHARS, bt as ParsedResponse, bu as ParsedSlashCommand, bv as ParsedStructuredResponse, bw as PendingAuthResponse, bx as PersonKey, by as PersonalConnectionInput, bz as PlanStepsError, bA as PlanWorkRequest, bB as ProductResponse, bC as ProjectAddonKind, bD as ProjectAddonSettingsRequest, bE as ProjectBudget, bF as ProjectCheckoutRequest, bG as ProjectConversationUsageResponse, bH as ProjectCreateOptions, bI as ProjectDetails, bJ as ProjectEventKind, bK as ProjectEventResponse, bL as ProjectInvoicesResponse, bM as ProjectNextPeriodAddonsRequest, bN as ProjectPlanChangeRequest, bO as ProjectQuoteRequest, bP as ProjectResponse, bQ as ProjectUpdateRequest, bR as ProjectUsageResponse, bS as PublicBookingError, bT as PublicBookingPage, bU as QuotaExceeded, bV as RaisedSignal, bW as RawResponseEvent, bX as ReconnectOptions, bY as ReconnectableWsConnection, bZ as ResolvedCitation, b_ as ResolvedRecipient, b$ as RespondParams, c0 as RespondPartstat, c1 as Response, c2 as ResponseCreateRequest, c3 as ResponseCreateResult, c4 as ResponseHandle, c5 as ResponseSnapshot, c6 as ResponseStart, c7 as ResponseStartOptions, c8 as ResponseStream, c9 as ResponseStreamEvent, ca as ResponseTools, cb as RoomCreateBody, cc as RoomQuery, cd as RoomRead, ce as RunProgress, cf as RunStats, cg as RunStep, ch as RunWaitingOn, ci as SHAREPOINT_VENDORS, cj as SSEEvent, ck as SSEStreamCallbacks, cl as SSEStreamOutcome, cm as SSEStreamResult, cn as STEP_FIELD_OPTION_TONES, co as STOP_ID_WAIT_MS, cp as STOP_REPEAT_WINDOW_MS, cr as ScopedTarget, cs as SearchChunk, ct as SecureMailCompose, cu as SecureMailSend, cv as SecureMailSender, cw as SendBack, cx as SetupDiagnostic, cy as SetupReport, cz as ShareRead, cA as ShareRole, cB as SkillSummary, cD as SlackConnectionStatus, cE as StepActionRequest, cF as StepActivityEvent, cG as StepAssignee, cH as StepDisplay, cI as StepField, cJ as StepFieldOption, cK as StepFieldOptionTone, cL as StepKind, cM as StepPhase, cN as StepSignal, cO as StepSignalWhen, cP as StepState, cQ as StepStatus, cR as SubagentBranchRecord, cS as SubagentLaneInfo, cT as SubmitBackgroundQueryOptions, cU as SubscribeParams, cV as SupportRating, cW as SupportTicket, cX as SupportTicketInput, cY as SyncTriggerResult, cZ as TAG_KINDS, c_ as TAG_NESTING_MAX_DEPTH, c$ as TagChange, d0 as TagFieldDefinition, d1 as TagGroup, d2 as TagKind, d3 as TagKindField, d4 as TagKindSchema, d5 as TagLinks, d6 as TagListQuery, d7 as TagNode, d8 as TagResponse, d9 as TagScope, da as TagTreeRow, db as TaskPlan, dc as TaskPlanStep, dd as TaxQuoteResponse, de as Thread, df as ThreadsResponse, dg as TimeSuggestion, dh as TurnRequest, di as UpdateConversationRequest, dk as UpdateWorkflowRequest, dp as UploadDocumentsOptions, dr as UploadProgressListener, dt as UsageBreakdown, du as UserConnectorEntry, dv as UserDailyUsageResponse, dw as UserInfo, dx as WebSocketAuthError, dy as WeeklyHoursSpec, dz as WorkStatus, dA as WorkflowAuthMode, dB as WorkflowResponse, dC as WorkflowRunHistoryResponse, dD as WorkflowRunResponse, dE as WorkspaceConflict, dF as WorkspaceContext, dG as WorkspaceOpenResponse, dH as WorkspaceResponse, dI as WsConnection, dJ as account, dK as agentconfig, dL as agents, dM as appendTranscriptionHints, dN as assistant, dO as authenticatedFetch, dP as bookPublicSlot, dQ as buildCitationChunkData, dR as buildDocNameMap, dS as buildDocumentTools, dT as buildFactsContextTool, dU as buildRetrievalChunkTool, dV as buildRetrievalFullContextTool, dW as buildRetrievalTocTool, dX as buildTurnRequest, dY as calendar, dZ as calls, d_ as canTagHaveParent, d$ as cancelPublicBooking, e0 as capabilities, e1 as chats, e2 as composeConfiguration, e3 as composeTools, e4 as computeRunStats, e5 as connectErrorMessage, e6 as connectWebSocket, e7 as connectWithReconnect, e8 as connectors, e9 as contacts, ea as continuityPrompt, eb as conversations, ec as countCitations, ed as createAuthenticatedClient, ee as createDocumentWaiter, ef as createIndexAssigner, eg as databases, eh as defaultKindForFormat, ei as diagnoseSetup, ej as doctags, ek as documentTools, el as documents, em as estimateDraftTokens, en as extractDocumentIdsFromMessages, eo as extractFactIdsFromMessages, ep as extractSubagentLanes, eq as facts, er as files, es as filterDocumentTags, et as filterSkills, eu as findLeafForTaskMessage, ev as findMainSiblingLeaf, ew as findReplyTarget, ex as findSubagentRunId, ey as flattenTagTree, ez as formatAgentStepLabel, eA as formatFileSize, eB as formatGbp, eC as formatGbpPerMillionTokens, eD as formatItemLabel, eE as formatStreamSummary, eF as formatTokens, eG as formatUserName, eH as formatWorkspaceChoices, eI as formatWsMessage, eJ as generateEncryptedWorkspaceKey, eK as generateNewWorkspaceKey, eL as getAgentStepLabel, eM as getAttachableRunId, eN as getChildTags, eO as getContextRemainingPercent, eP as getContextUsedPercent, eQ as getContextUsedTokens, eR as getCurrentStep, eS as getEligibleParentTags, eT as getErrorCode, eU as getErrorMessage, eV as getPublicBookingPage, eW as getRawWorkspaceKey, eX as getRunToAttach, eY as getRunToCancel, eZ as getStepDisplay, e_ as getStepTool, e$ as getSubagentBranchRecord, f0 as getTagDescendantIds, f1 as health, f2 as houseTemplates, f3 as hydrateAgentSteps, f5 as identityErrorCode, f4 as identityVerification, f6 as instructions, f7 as isAnnotationTag, f8 as isConnectorVendorVisible, f9 as isDriveSyncVendor, fa as isEntityTag, fb as isFlatKind, fc as isLabelTag, fd as isMailboxSyncVendor, fe as isNearAiUsageBudget, ff as isPresenceTag, fg as isSharePointVendor, fh as isSharedSkill, fi as isTraceItem, fj as mail, fk as mcpTools, fl as mergeAgentSteps, fm as modelConnections, fn as notifications, fo as parseSSEEvents, fp as parseSlashCommand, fq as parseSlashTokenInProgress, fr as parseStructuredResponse, fs as performPasswordLogin, ft as performSigningKeyLogin, fu as performSsoDeviceFlowLogin, fv as pickMainThread, fw as profile, fx as progressFetch, fy as projects, fz as quotaExceededFrom, fA as quotaFromStreamError, fB as reduceOutputItem, fC as refusalReason, fD as requireData, fE as requireOk, fF as resolveAuth, fG as resolveCitations, fH as resolveSummary, fI as resolveWorkspace, fJ as responses, fK as searchChunks, fL as secureMail, fM as selectFullContextDocument, fN as selectWorkspace, fO as selectWorkspaceById, fP as sessions, fQ as settings, fR as signatureRequests, fS as sliceToSubagentThread, fT as streamSSE, fU as stripCitationMarkdown, fV as subagentJobLabel, fW as summarizeCitations, fX as support, fY as tagUseCount, fZ as tags, f_ as tagsForScope, f$ as tagsOfGroup, g0 as topLevelAgentSteps, g1 as uploadSkill, g2 as usdToGbp, g3 as work, g4 as workflowSteps, g5 as workflows, g6 as workspaceConflictOf, g7 as workspaces, g8 as wouldCreateTagCycle } from './browser-xgwYmWyv.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
@@ -5175,7 +5175,10 @@ function buildChunkLookup(tools) {
5175
5175
  // src/operations/support.ts
5176
5176
  var support_exports = {};
5177
5177
  __export(support_exports, {
5178
- createSupportTicket: () => createSupportTicket
5178
+ createSupportTicket: () => createSupportTicket,
5179
+ getSupportTicket: () => getSupportTicket,
5180
+ listSupportTickets: () => listSupportTickets,
5181
+ rateSupportTicket: () => rateSupportTicket
5179
5182
  });
5180
5183
 
5181
5184
  // src/operations/mail-encoding.ts
@@ -5204,6 +5207,29 @@ async function createSupportTicket(arbi, input) {
5204
5207
  "Could not send your support request."
5205
5208
  );
5206
5209
  }
5210
+ async function listSupportTickets(arbi) {
5211
+ return requireData(
5212
+ await arbi.fetch.GET("/v1/support/tickets"),
5213
+ "Could not load your support tickets."
5214
+ );
5215
+ }
5216
+ async function getSupportTicket(arbi, ticketId) {
5217
+ return requireData(
5218
+ await arbi.fetch.GET("/v1/support/tickets/{ticket_id}", {
5219
+ params: { path: { ticket_id: ticketId } }
5220
+ }),
5221
+ "Could not load your support ticket."
5222
+ );
5223
+ }
5224
+ async function rateSupportTicket(arbi, ticketId, rating) {
5225
+ return requireData(
5226
+ await arbi.fetch.POST("/v1/support/tickets/{ticket_id}/rating", {
5227
+ params: { path: { ticket_id: ticketId } },
5228
+ body: rating
5229
+ }),
5230
+ "Could not send your rating."
5231
+ );
5232
+ }
5207
5233
 
5208
5234
  // src/diagnostics.ts
5209
5235
  async function diagnoseSetup(options) {
@@ -10541,8 +10567,10 @@ __export(mail_exports, {
10541
10567
  listFolders: () => listFolders,
10542
10568
  listMailAccounts: () => listMailAccounts,
10543
10569
  listMessages: () => listMessages,
10570
+ openDraftEditor: () => openDraftEditor,
10544
10571
  saveDraft: () => saveDraft,
10545
10572
  sendMessage: () => sendMessage,
10573
+ unlockMailCredentials: () => unlockMailCredentials,
10546
10574
  unlockNativeMail: () => unlockNativeMail,
10547
10575
  updateMessage: () => updateMessage
10548
10576
  });
@@ -10639,6 +10667,47 @@ async function unlockNativeMail(mail, keys) {
10639
10667
  secretKey.fill(0);
10640
10668
  }
10641
10669
  }
10670
+ async function unlockMailCredentials(mail, accountId, keys) {
10671
+ await initSodium();
10672
+ const secretKey = encryptionKeypairFromSigningKey(keys.signingPrivateKey).secretKey;
10673
+ const { sealed_credentials } = await json(
10674
+ mail(`${accountPath(accountId)}/sealed-credentials`)
10675
+ );
10676
+ const bytes = sealedBoxDecrypt(sealed_credentials, secretKey);
10677
+ try {
10678
+ const access = await sealKeyForSession(bytes, keys.serverSessionKey);
10679
+ await mail(`${accountPath(accountId)}/session-credentials`, {
10680
+ method: "POST",
10681
+ body: JSON.stringify({ access })
10682
+ });
10683
+ } finally {
10684
+ bytes.fill(0);
10685
+ secretKey.fill(0);
10686
+ }
10687
+ }
10688
+ async function openDraftEditor(mail, body, keys) {
10689
+ const open = (extra = {}) => json(
10690
+ mail("/drafts/editor", { method: "POST", body: JSON.stringify({ ...body, ...extra }) })
10691
+ );
10692
+ try {
10693
+ return await open();
10694
+ } catch (error) {
10695
+ const { status, apiError } = error;
10696
+ const locked = apiError?.detail;
10697
+ if (status !== 423 || !locked?.sealed_key || !locked.room_id) throw error;
10698
+ const { signingPrivateKey, serverSessionKey } = await keys();
10699
+ await initSodium();
10700
+ const secretKey = encryptionKeypairFromSigningKey(signingPrivateKey).secretKey;
10701
+ const key = sealedBoxDecrypt(locked.sealed_key, secretKey);
10702
+ try {
10703
+ const sealed = await sealKeyForSession(key, serverSessionKey);
10704
+ return await open({ room_id: locked.room_id, key: sealed });
10705
+ } finally {
10706
+ key.fill(0);
10707
+ secretKey.fill(0);
10708
+ }
10709
+ }
10710
+ }
10642
10711
  function attachmentFromBytes(name, contentType, bytes) {
10643
10712
  return {
10644
10713
  id: "",
@@ -12907,34 +12976,84 @@ var Arbi = class {
12907
12976
  * recovery. Pass `fetch` to the `mail` operations, e.g. `mail.listFolders(arbi.mail.fetch)`.
12908
12977
  */
12909
12978
  mail = {
12910
- /** Fetch a path under `/v1/mail`; rejects a non-2xx response with an `ArbiApiError` (`status`). */
12911
- fetch: (path5, init = {}) => this.recovering(async () => {
12912
- const { baseUrl, accessToken, fetch: send = globalThis.fetch } = this.getAuthHeaders();
12913
- const headers = new Headers(init.headers);
12914
- headers.set("Authorization", `Bearer ${accessToken}`);
12915
- if (init.body && !headers.has("Content-Type"))
12916
- headers.set("Content-Type", "application/json");
12917
- const response = await send(`${baseUrl}/v1/mail${path5}`, { ...init, headers });
12918
- if (!response.ok) {
12919
- const body = await response.json().catch(() => null);
12920
- throw new ArbiApiError(
12921
- typeof body?.detail === "string" ? body.detail : "The mail request could not be completed",
12922
- body,
12923
- response.status
12924
- );
12925
- }
12926
- return response;
12979
+ /**
12980
+ * Fetch a path under `/v1/mail`; rejects a non-2xx response with an `ArbiApiError` (`status`).
12981
+ * A read of the native inbox unlocks it first (`unlockNative`), so mail that arrived since is
12982
+ * readable too; `nativeUnlocked` skips that when the caller already unlocked it for this pass.
12983
+ * With no token yet (a new tab) the session is restored first; a 401 re-logs in and is sent
12984
+ * again once.
12985
+ */
12986
+ fetch: (path5, init = {}, { nativeUnlocked = false } = {}) => this.recovering(async () => {
12987
+ const nativeRead = path5.startsWith("/accounts/native/") && (init.method ?? "GET").toUpperCase() !== "POST";
12988
+ if (nativeRead && !nativeUnlocked) await this.mail.unlockNative();
12989
+ return this.mailRequest(path5, init);
12927
12990
  }),
12928
- /** Unlock the signed-in user's native inbox for this server session (see `unlockNativeMail`). */
12929
- unlockNative: () => {
12930
- const login = this.loginResult;
12931
- if (!login) return Promise.reject(new ArbiError("Sign in to unlock your inbox"));
12932
- return unlockNativeMail(this.mail.fetch, {
12933
- signingPrivateKey: login.signingPrivateKey,
12934
- serverSessionKey: login.serverSessionKey
12935
- });
12936
- }
12991
+ /**
12992
+ * Unlock the signed-in user's native inbox for this server session (see `unlockNativeMail`).
12993
+ * Concurrent calls share one unlock.
12994
+ */
12995
+ unlockNative: () => this.nativeUnlock ??= this.nativeMailKeys().then((keys) => unlockNativeMail(this.mail.fetch, keys)).finally(() => {
12996
+ this.nativeUnlock = null;
12997
+ }),
12998
+ /**
12999
+ * Hand this session what the server needs to read `account`: the native inbox's keys, a
13000
+ * Microsoft or Gmail account's connector tokens, an IMAP account's sealed credentials.
13001
+ */
13002
+ unlockAccount: async (account) => {
13003
+ if (account.provider === "native") return this.mail.unlockNative();
13004
+ if (account.provider === "microsoft" || account.provider === "gmail") {
13005
+ await this.connectors.bridgeTokens({ vendor: account.provider });
13006
+ return;
13007
+ }
13008
+ await unlockMailCredentials(this.mail.fetch, account.id, await this.nativeMailKeys());
13009
+ },
13010
+ /**
13011
+ * Open a native draft's body in the Word editor, unlocking its room for this session with the
13012
+ * user's key when the server asks (see `openDraftEditor`).
13013
+ */
13014
+ openDraftEditor: (body) => openDraftEditor(this.mail.fetch, body, () => this.nativeMailKeys())
12937
13015
  };
13016
+ /** The native inbox unlock in flight (`mail.unlockNative`). */
13017
+ nativeUnlock = null;
13018
+ /** One request under `/v1/mail` on the session's token (see `mail.fetch`). */
13019
+ async mailRequest(path5, init) {
13020
+ const client = this.requireClient();
13021
+ let token = client.session.getState().accessToken;
13022
+ if (!token) token = await client.auth.relogin();
13023
+ if (!token) throw new ArbiError("Sign in again to restore your session");
13024
+ const send = client.http?.fetch ?? globalThis.fetch;
13025
+ const request = (bearer) => {
13026
+ const headers = new Headers(init.headers);
13027
+ headers.set("Authorization", `Bearer ${bearer}`);
13028
+ if (init.body && !headers.has("Content-Type")) headers.set("Content-Type", "application/json");
13029
+ return send(`${this.options.url}/v1/mail${path5}`, { ...init, headers });
13030
+ };
13031
+ let response = await request(token);
13032
+ if (response.status === 401) {
13033
+ const refreshed = await client.auth.relogin();
13034
+ if (refreshed) response = await request(refreshed);
13035
+ }
13036
+ if (!response.ok) {
13037
+ const body = await response.json().catch(() => null);
13038
+ throw new ArbiApiError(
13039
+ typeof body?.detail === "string" ? body.detail : "The mail request could not be completed",
13040
+ body,
13041
+ response.status
13042
+ );
13043
+ }
13044
+ return response;
13045
+ }
13046
+ /**
13047
+ * The keys that unlock the user's mail for this server session: the session's key (current after
13048
+ * a re-login) and the identity key (the login's, or the one kept on this device).
13049
+ */
13050
+ async nativeMailKeys() {
13051
+ const client = this.requireClient();
13052
+ const serverSessionKey = client.session.getState().serverSessionKey ?? this.loginResult?.serverSessionKey ?? null;
13053
+ const signingPrivateKey = this.loginResult?.signingPrivateKey ?? (await client.storage.getSession().catch(() => null))?.signingPrivateKey;
13054
+ if (!serverSessionKey || !signingPrivateKey) throw new ArbiError("Sign in to unlock your inbox");
13055
+ return { signingPrivateKey, serverSessionKey };
13056
+ }
12938
13057
  // ── Secure mail ─────────────────────────────────────────────────────
12939
13058
  /**
12940
13059
  * Mail to anyone, sealed in this browser under a key that travels only in the link's fragment
@@ -13870,6 +13989,9 @@ var Arbi = class {
13870
13989
  };
13871
13990
  // ── Health ────────────────────────────────────────────────────────────
13872
13991
  support = {
13992
+ list: () => this.recovering(() => listSupportTickets(this.requireClient())),
13993
+ get: (ticketId) => this.recovering(() => getSupportTicket(this.requireClient(), ticketId)),
13994
+ rate: (ticketId, rating) => this.recovering(() => rateSupportTicket(this.requireClient(), ticketId, rating)),
13873
13995
  create: (input) => {
13874
13996
  const request = { ...input, idempotencyKey: input.idempotencyKey ?? crypto.randomUUID() };
13875
13997
  return this.recovering(() => createSupportTicket(this.requireClient(), request));