@arbidocs/sdk 0.5.56 → 0.5.58

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,7 +1,7 @@
1
- import { a1 as ConfigStore, _ as CliConfig, $ as CliCredentials, X as ChatSession, cc as SkippedFile, c_ as UploadResult, r as AuthHeaders, cU as UploadBatchResult, cY as UploadOptions, cV as UploadDirectOptions, cW as UploadDirectResult, c5 as SUPPORTED_EXTENSIONS, b9 as MailAttachment, P as ChatCryptoContext } from './browser-DvpIH-Qk.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 ArbiTransportError, l as ArbiWorkspaceChangedError, m as ArbiWorkspaceSupersededError, n as AskHandlers, o as AskRequest, p as AttendeeRead, q as AuthContext, s as AuthMode, t as AuthenticatedClient, B as BookingConfirmation, u as BookingPage, v as BookingPageWriteBody, w as BookingRequestBody, x as BridgeTokensOptions, C as CalDavConnectBody, y as CalDavProfile, z as CalendarAccount, D as CalendarAccountKind, E as CalendarCreateBody, F as CalendarEvent, G as CalendarKeys, H as CalendarRead, I as CalendarSettings, J as CalendarSettingsBody, K as CalendarUpdate, L as CalendarWindow, M as CallApiError, N as ChatAttachmentFile, O as ChatAttachmentInput, Q as ChatKeyRing, R as ChatKind, S as ChatMemberKey, T as ChatMemberResponse, U as ChatMessage, V as ChatMessageResponse, W as ChatResponse, Y as CitationSummary, Z as CitationToolSources, a0 as CommandDescriptor, a2 as ConnectOptions, a3 as ConnectorCatalogEntry, a4 as ConnectorFolder, a5 as ConnectorSyncProgress, a6 as ConnectorSyncStatus, a7 as ConnectorVendorKey, a8 as ConnectorVisibilitySettings, a9 as ContextUsage, aa as ConversationResponse, ab as ConversationUsageResponse, ae as CreateWorkRequest, af as CreateWorkflowRequest, ag as DEFAULT_AI_USD_PER_GBP, ah as DOC_TERMINAL_STATUSES, ai as DRIVE_SYNC_VENDORS, aj as Database, ak as DatabaseColumn, al as DatabaseColumnWrite, am as DatabaseImportResult, an as DatabaseRow, ao as DatabaseRowPage, ap as DatabaseRowsQuery, aq as DateTimeSpec, ar as DecryptedChat, as as DecryptedChatMessage, at as DeploymentHouseTemplate, au as DocInfo, av as DocInfoMap, aw as DocNameMap, ax as DocumentAutomationAction, ay as DocumentListFields, az as DocumentListOrder, aA as DocumentSelector, aB as DocumentWaiter, aC as DocumentWaiterOptions, aD as DriveSyncProgress, aE as DriveSyncSummary, aF as DuplicateContactError, aG as ENTITY_KINDS, aH as EditScope, aI as EntityKind, aJ as EventCreateBody, aK as EventPatchBody, aL as FLAT_TAG_KINDS, aP as FindTimeParams, aQ as FormattedWsMessage, aR as FreeBusyEntry, aS as FullContextSelection, aT as GOOGLE_VENDORS, aU as HolidayCountry, aV as HouseTemplateCandidate, aW as IMANAGE_VENDORS, aX as IdentityErrorCode, aY as IdentityPurchase, aZ as IdentityState, a_ as IdentityStatus, a$ as ImportResult, b0 as InvitationRead, b1 as LinkedRun, b2 as ListAllOptions, b3 as ListEventsParams, b5 as ListPaginatedOptions, b6 as MAILBOX_SYNC_VENDORS, b7 as MAX_RETRIEVE_DOC_IDS, b8 as MICROSOFT_VENDORS, ba as MessageLevel, bb as OAuthAccountKind, bc as OutputItemDone, bd as OverlayItem, be as OverlayLayerName, bf as PRESENCE_KINDS, bg as PROMPT_CONTEXT_CHARS, bh as ParsedSlashCommand, bi as PendingAuthResponse, bj as PersonKey, bk as PlanStepsError, bl as PlanWorkRequest, bm as ProductResponse, bn as ProjectAddonKind, bo as ProjectAddonSettingsRequest, bp as ProjectBudget, bq as ProjectCheckoutRequest, br as ProjectConversationUsageResponse, bs as ProjectCreateOptions, bt as ProjectDetails, bu as ProjectEventKind, bv as ProjectEventResponse, bw as ProjectInvoicesResponse, bx as ProjectNextPeriodAddonsRequest, by as ProjectPlanChangeRequest, bz as ProjectQuoteRequest, bA as ProjectResponse, bB as ProjectUpdateRequest, bC as ProjectUsageResponse, bD as PublicBookingError, bE as PublicBookingPage, bF as QuotaExceeded, bG as RaisedSignal, bH as RawResponseEvent, bI as ReconnectOptions, bJ as ReconnectableWsConnection, bK as ResolvedCitation, bL as ResolvedRecipient, bM as RespondParams, bN as RespondPartstat, bO as ResponseHandle, bP as ResponseSnapshot, bQ as ResponseStart, bR as ResponseStartOptions, bS as RoomCreateBody, bT as RoomQuery, bU as RoomRead, bV as RunProgress, bW as RunStats, bX as RunStep, bY as RunWaitingOn, bZ as SHAREPOINT_VENDORS, b_ as SSEEvent, b$ as SSEStreamCallbacks, c0 as SSEStreamOutcome, c1 as SSEStreamResult, c2 as STEP_FIELD_OPTION_TONES, c3 as STOP_ID_WAIT_MS, c4 as STOP_REPEAT_WINDOW_MS, c6 as ScopedTarget, c7 as SearchChunk, c8 as SendBack, c9 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 SyncTriggerResult, cw as TAG_KINDS, cx as TAG_NESTING_MAX_DEPTH, cy as TagChange, cz as TagFieldDefinition, cA as TagGroup, cB as TagKind, cC as TagKindField, cD as TagKindSchema, cE as TagLinks, cF as TagListQuery, cG as TagNode, cH as TagResponse, cI as TagScope, cJ as TagTreeRow, cK as TaskPlan, cL as TaskPlanStep, cM as TaxQuoteResponse, cN as Thread, cO as ThreadsResponse, cP as TimeSuggestion, cQ as TurnRequest, cR as UpdateConversationRequest, cT as UpdateWorkflowRequest, cX as UploadDocumentsOptions, cZ as UploadProgressListener, c$ as UsageBreakdown, d0 as UserConnectorEntry, d1 as UserDailyUsageResponse, d2 as UserInfo, d3 as WebSocketAuthError, d4 as WeeklyHoursSpec, d5 as WorkStatus, d6 as WorkflowAuthMode, d7 as WorkflowResponse, d8 as WorkflowRunHistoryResponse, d9 as WorkflowRunResponse, da as WorkspaceContext, db as WorkspaceOpenResponse, dc as WsConnection, dd as account, de as agentconfig, df as agents, dg as appendTranscriptionHints, dh as assistant, di as authenticatedFetch, dj as bookPublicSlot, dk as buildCitationChunkData, dl as buildDocNameMap, dm as buildDocumentTools, dn as buildFactsContextTool, dp as buildRetrievalChunkTool, dq as buildRetrievalFullContextTool, dr as buildRetrievalTocTool, ds as buildTurnRequest, dt as calendar, du as calls, dv as canTagHaveParent, dw as cancelPublicBooking, dx as chats, dy as computeRunStats, dz as connectErrorMessage, dA as connectWebSocket, dB as connectWithReconnect, dC as connectors, dD as contacts, dE as continuityPrompt, dF as conversations, dG as countCitations, dH as createAuthenticatedClient, dI as createDocumentWaiter, dJ as createIndexAssigner, dK as databases, dL as defaultKindForFormat, dM as doctags, dN as documents, dO as estimateDraftTokens, dP as extractDocumentIdsFromMessages, dQ as extractFactIdsFromMessages, dR as extractSubagentLanes, dS as facts, dT as files, dU as filterDocumentTags, dV as filterSkills, dW as findLeafForTaskMessage, dX as findMainSiblingLeaf, dY as findReplyTarget, dZ as findSubagentRunId, d_ as flattenTagTree, d$ as formatAgentStepLabel, e0 as formatFileSize, e1 as formatGbp, e2 as formatGbpPerMillionTokens, e3 as formatItemLabel, e4 as formatStreamSummary, e5 as formatTokens, e6 as formatUserName, e7 as formatWorkspaceChoices, e8 as formatWsMessage, e9 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 isAnnotationTag, ez as isConnectorVendorVisible, eA as isDriveSyncVendor, eB as isEntityTag, eC as isFlatKind, eD as isLabelTag, eE as isMailboxSyncVendor, eF as isNearAiUsageBudget, eG as isPresenceTag, eH as isSharePointVendor, eI as isSharedSkill, eJ as isTraceItem, eK as mail, eL as mergeAgentSteps, eM as notifications, eN as parseSSEEvents, eO as parseSlashCommand, eP as parseSlashTokenInProgress, eQ as performPasswordLogin, eR as performSigningKeyLogin, eS as performSsoDeviceFlowLogin, eT as pickMainThread, eU as profile, eV as progressFetch, eW as projects, eX as quotaExceededFrom, eY as quotaFromStreamError, eZ as reduceOutputItem, e_ as refusalReason, e$ as requireData, f0 as requireOk, f1 as resolveAuth, f2 as resolveCitations, f3 as resolveSummary, f4 as resolveWorkspace, f5 as responses, f6 as searchChunks, f7 as selectFullContextDocument, f8 as selectWorkspace, f9 as selectWorkspaceById, fa as sessions, fb as settings, fc as signatureRequests, fd as sliceToSubagentThread, fe as streamSSE, ff as stripCitationMarkdown, fg as subagentJobLabel, fh as summarizeCitations, fi as tagUseCount, fj as tags, fk as tagsForScope, fl as tagsOfGroup, fm as topLevelAgentSteps, fn as uploadSkill, fo as usdToGbp, fp as work, fq as workflowSteps, fr as workflows, fs as workspaces, ft as wouldCreateTagCycle } from './browser-DvpIH-Qk.cjs';
1
+ import { a1 as ConfigStore, _ as CliConfig, $ as CliCredentials, X as ChatSession, ce as SkippedFile, d0 as UploadResult, r as AuthHeaders, cW as UploadBatchResult, c_ as UploadOptions, cX as UploadDirectOptions, cY as UploadDirectResult, c7 as SUPPORTED_EXTENSIONS, bb as MailAttachment, P as ChatCryptoContext } from './browser-ENBx11nT.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 ArbiTransportError, l as ArbiWorkspaceChangedError, m as ArbiWorkspaceSupersededError, n as AskHandlers, o as AskRequest, p as AttendeeRead, q as AuthContext, s as AuthMode, t as AuthenticatedClient, B as BookingConfirmation, u as BookingPage, v as BookingPageWriteBody, w as BookingRequestBody, x as BridgeTokensOptions, C as CalDavConnectBody, y as CalDavProfile, z as CalendarAccount, D as CalendarAccountKind, E as CalendarCreateBody, F as CalendarEvent, G as CalendarKeys, H as CalendarRead, I as CalendarSettings, J as CalendarSettingsBody, K as CalendarUpdate, L as CalendarWindow, M as CallApiError, N as ChatAttachmentFile, O as ChatAttachmentInput, Q as ChatKeyRing, R as ChatKind, S as ChatMemberKey, T as ChatMemberResponse, U as ChatMessage, V as ChatMessageResponse, W as ChatResponse, Y as CitationSummary, Z as CitationToolSources, a0 as CommandDescriptor, a2 as ConnectOptions, a3 as ConnectorCatalogEntry, a4 as ConnectorFolder, a5 as ConnectorSyncProgress, a6 as ConnectorSyncStatus, a7 as ConnectorVendorKey, a8 as ConnectorVisibilitySettings, a9 as ContextUsage, aa as ConversationResponse, ab as ConversationUsageResponse, ae as CreateWorkRequest, af as CreateWorkflowRequest, ag as DEFAULT_AI_USD_PER_GBP, ah as DOC_TERMINAL_STATUSES, ai as DRIVE_SYNC_VENDORS, aj as Database, ak as DatabaseAggregateRequest, al as DatabaseAggregateResult, am as DatabaseColumn, an as DatabaseColumnWrite, ao as DatabaseImportResult, ap as DatabaseRow, aq as DatabaseRowPage, ar as DatabaseRowsQuery, as as DateTimeSpec, at as DecryptedChat, au as DecryptedChatMessage, av as DeploymentHouseTemplate, aw as DocInfo, ax as DocInfoMap, ay as DocNameMap, az as DocumentAutomationAction, aA as DocumentListFields, aB as DocumentListOrder, aC as DocumentSelector, aD as DocumentWaiter, aE as DocumentWaiterOptions, aF as DriveSyncProgress, aG as DriveSyncSummary, aH as DuplicateContactError, aI as ENTITY_KINDS, aJ as EditScope, aK as EntityKind, aL as EventCreateBody, aM as EventPatchBody, aN as FLAT_TAG_KINDS, aR as FindTimeParams, aS as FormattedWsMessage, aT as FreeBusyEntry, aU as FullContextSelection, aV as GOOGLE_VENDORS, aW as HolidayCountry, aX as HouseTemplateCandidate, aY as IMANAGE_VENDORS, aZ as IdentityErrorCode, a_ as IdentityPurchase, a$ as IdentityState, b0 as IdentityStatus, b1 as ImportResult, b2 as InvitationRead, b3 as LinkedRun, b4 as ListAllOptions, b5 as ListEventsParams, b7 as ListPaginatedOptions, b8 as MAILBOX_SYNC_VENDORS, b9 as MAX_RETRIEVE_DOC_IDS, ba as MICROSOFT_VENDORS, bc as MessageLevel, bd as OAuthAccountKind, be as OutputItemDone, bf as OverlayItem, bg as OverlayLayerName, bh as PRESENCE_KINDS, bi as PROMPT_CONTEXT_CHARS, bj as ParsedSlashCommand, bk as PendingAuthResponse, bl as PersonKey, bm as PlanStepsError, bn as PlanWorkRequest, bo as ProductResponse, bp as ProjectAddonKind, bq as ProjectAddonSettingsRequest, br as ProjectBudget, bs as ProjectCheckoutRequest, bt as ProjectConversationUsageResponse, bu as ProjectCreateOptions, bv as ProjectDetails, bw as ProjectEventKind, bx as ProjectEventResponse, by as ProjectInvoicesResponse, bz as ProjectNextPeriodAddonsRequest, bA as ProjectPlanChangeRequest, bB as ProjectQuoteRequest, bC as ProjectResponse, bD as ProjectUpdateRequest, bE as ProjectUsageResponse, bF as PublicBookingError, bG as PublicBookingPage, bH as QuotaExceeded, bI as RaisedSignal, bJ as RawResponseEvent, bK as ReconnectOptions, bL as ReconnectableWsConnection, bM as ResolvedCitation, bN as ResolvedRecipient, bO as RespondParams, bP as RespondPartstat, bQ as ResponseHandle, bR as ResponseSnapshot, bS as ResponseStart, bT as ResponseStartOptions, bU as RoomCreateBody, bV as RoomQuery, bW as RoomRead, bX as RunProgress, bY as RunStats, bZ as RunStep, b_ as RunWaitingOn, b$ as SHAREPOINT_VENDORS, c0 as SSEEvent, c1 as SSEStreamCallbacks, c2 as SSEStreamOutcome, c3 as SSEStreamResult, c4 as STEP_FIELD_OPTION_TONES, c5 as STOP_ID_WAIT_MS, c6 as STOP_REPEAT_WINDOW_MS, c8 as ScopedTarget, c9 as SearchChunk, ca as SendBack, cb as ShareRead, cc as ShareRole, cd as SkillSummary, cf as SlackConnectionStatus, cg as StepActionRequest, ch as StepActivityEvent, ci as StepAssignee, cj as StepDisplay, ck as StepField, cl as StepFieldOption, cm as StepFieldOptionTone, cn as StepKind, co as StepPhase, cp as StepSignal, cq as StepSignalWhen, cr as StepState, cs as StepStatus, ct as SubagentBranchRecord, cu as SubagentLaneInfo, cv as SubmitBackgroundQueryOptions, cw as SubscribeParams, cx as SyncTriggerResult, cy as TAG_KINDS, cz as TAG_NESTING_MAX_DEPTH, cA as TagChange, cB as TagFieldDefinition, cC as TagGroup, cD as TagKind, cE as TagKindField, cF as TagKindSchema, cG as TagLinks, cH as TagListQuery, cI as TagNode, cJ as TagResponse, cK as TagScope, cL as TagTreeRow, cM as TaskPlan, cN as TaskPlanStep, cO as TaxQuoteResponse, cP as Thread, cQ as ThreadsResponse, cR as TimeSuggestion, cS as TurnRequest, cT as UpdateConversationRequest, cV as UpdateWorkflowRequest, cZ as UploadDocumentsOptions, c$ as UploadProgressListener, d1 as UsageBreakdown, d2 as UserConnectorEntry, d3 as UserDailyUsageResponse, d4 as UserInfo, d5 as WebSocketAuthError, d6 as WeeklyHoursSpec, d7 as WorkStatus, d8 as WorkflowAuthMode, d9 as WorkflowResponse, da as WorkflowRunHistoryResponse, db as WorkflowRunResponse, dc as WorkspaceContext, dd as WorkspaceOpenResponse, de as WsConnection, df as account, dg as agentconfig, dh as agents, di as appendTranscriptionHints, dj as assistant, dk as authenticatedFetch, dl as bookPublicSlot, dm as buildCitationChunkData, dn as buildDocNameMap, dp as buildDocumentTools, dq as buildFactsContextTool, dr as buildRetrievalChunkTool, ds as buildRetrievalFullContextTool, dt as buildRetrievalTocTool, du as buildTurnRequest, dv as calendar, dw as calls, dx as canTagHaveParent, dy as cancelPublicBooking, dz as chats, dA as computeRunStats, dB as connectErrorMessage, dC as connectWebSocket, dD as connectWithReconnect, dE as connectors, dF as contacts, dG as continuityPrompt, dH as conversations, dI as countCitations, dJ as createAuthenticatedClient, dK as createDocumentWaiter, dL as createIndexAssigner, dM as databases, dN as defaultKindForFormat, dO as doctags, dP as documents, dQ as estimateDraftTokens, dR as extractDocumentIdsFromMessages, dS as extractFactIdsFromMessages, dT as extractSubagentLanes, dU as facts, dV as files, dW as filterDocumentTags, dX as filterSkills, dY as findLeafForTaskMessage, dZ as findMainSiblingLeaf, d_ as findReplyTarget, d$ as findSubagentRunId, e0 as flattenTagTree, e1 as formatAgentStepLabel, e2 as formatFileSize, e3 as formatGbp, e4 as formatGbpPerMillionTokens, e5 as formatItemLabel, e6 as formatStreamSummary, e7 as formatTokens, e8 as formatUserName, e9 as formatWorkspaceChoices, ea as formatWsMessage, eb as generateEncryptedWorkspaceKey, ec as generateNewWorkspaceKey, ed as getAgentStepLabel, ee as getAttachableRunId, ef as getChildTags, eg as getContextRemainingPercent, eh as getContextUsedPercent, ei as getContextUsedTokens, ej as getCurrentStep, ek as getEligibleParentTags, el as getErrorCode, em as getErrorMessage, en as getPublicBookingPage, eo as getRawWorkspaceKey, ep as getRunToAttach, eq as getRunToCancel, er as getStepDisplay, es as getStepTool, et as getSubagentBranchRecord, eu as getTagDescendantIds, ev as health, ew as houseTemplates, ex as hydrateAgentSteps, ez as identityErrorCode, ey as identityVerification, eA as isAnnotationTag, eB as isConnectorVendorVisible, eC as isDriveSyncVendor, eD as isEntityTag, eE as isFlatKind, eF as isLabelTag, eG as isMailboxSyncVendor, eH as isNearAiUsageBudget, eI as isPresenceTag, eJ as isSharePointVendor, eK as isSharedSkill, eL as isTraceItem, eM as mail, eN as mergeAgentSteps, eO as notifications, eP as parseSSEEvents, eQ as parseSlashCommand, eR as parseSlashTokenInProgress, eS as performPasswordLogin, eT as performSigningKeyLogin, eU as performSsoDeviceFlowLogin, eV as pickMainThread, eW as profile, eX as progressFetch, eY as projects, eZ as quotaExceededFrom, e_ as quotaFromStreamError, e$ as reduceOutputItem, f0 as refusalReason, f1 as requireData, f2 as requireOk, f3 as resolveAuth, f4 as resolveCitations, f5 as resolveSummary, f6 as resolveWorkspace, f7 as responses, f8 as searchChunks, f9 as selectFullContextDocument, fa as selectWorkspace, fb as selectWorkspaceById, fc as sessions, fd as settings, fe as signatureRequests, ff as sliceToSubagentThread, fg as streamSSE, fh as stripCitationMarkdown, fi as subagentJobLabel, fj as summarizeCitations, fk as tagUseCount, fl as tags, fm as tagsForScope, fn as tagsOfGroup, fo as topLevelAgentSteps, fp as uploadSkill, fq as usdToGbp, fr as work, fs as workflowSteps, ft as workflows, fu as workspaces, fv as wouldCreateTagCycle } from './browser-ENBx11nT.cjs';
3
3
  import { SessionPersistence, ArbiClient, components } from '@arbidocs/client';
4
- export { CallPeer, LoginProfile } from '@arbidocs/client';
4
+ export { CallPeer, HttpErrorInfo, HttpRequestInfo, HttpResponseInfo, HttpTransportOptions, LoginProfile } 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';
6
6
 
7
7
  /**
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { a1 as ConfigStore, _ as CliConfig, $ as CliCredentials, X as ChatSession, cc as SkippedFile, c_ as UploadResult, r as AuthHeaders, cU as UploadBatchResult, cY as UploadOptions, cV as UploadDirectOptions, cW as UploadDirectResult, c5 as SUPPORTED_EXTENSIONS, b9 as MailAttachment, P as ChatCryptoContext } from './browser-DEZ7kJKE.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 ArbiTransportError, l as ArbiWorkspaceChangedError, m as ArbiWorkspaceSupersededError, n as AskHandlers, o as AskRequest, p as AttendeeRead, q as AuthContext, s as AuthMode, t as AuthenticatedClient, B as BookingConfirmation, u as BookingPage, v as BookingPageWriteBody, w as BookingRequestBody, x as BridgeTokensOptions, C as CalDavConnectBody, y as CalDavProfile, z as CalendarAccount, D as CalendarAccountKind, E as CalendarCreateBody, F as CalendarEvent, G as CalendarKeys, H as CalendarRead, I as CalendarSettings, J as CalendarSettingsBody, K as CalendarUpdate, L as CalendarWindow, M as CallApiError, N as ChatAttachmentFile, O as ChatAttachmentInput, Q as ChatKeyRing, R as ChatKind, S as ChatMemberKey, T as ChatMemberResponse, U as ChatMessage, V as ChatMessageResponse, W as ChatResponse, Y as CitationSummary, Z as CitationToolSources, a0 as CommandDescriptor, a2 as ConnectOptions, a3 as ConnectorCatalogEntry, a4 as ConnectorFolder, a5 as ConnectorSyncProgress, a6 as ConnectorSyncStatus, a7 as ConnectorVendorKey, a8 as ConnectorVisibilitySettings, a9 as ContextUsage, aa as ConversationResponse, ab as ConversationUsageResponse, ae as CreateWorkRequest, af as CreateWorkflowRequest, ag as DEFAULT_AI_USD_PER_GBP, ah as DOC_TERMINAL_STATUSES, ai as DRIVE_SYNC_VENDORS, aj as Database, ak as DatabaseColumn, al as DatabaseColumnWrite, am as DatabaseImportResult, an as DatabaseRow, ao as DatabaseRowPage, ap as DatabaseRowsQuery, aq as DateTimeSpec, ar as DecryptedChat, as as DecryptedChatMessage, at as DeploymentHouseTemplate, au as DocInfo, av as DocInfoMap, aw as DocNameMap, ax as DocumentAutomationAction, ay as DocumentListFields, az as DocumentListOrder, aA as DocumentSelector, aB as DocumentWaiter, aC as DocumentWaiterOptions, aD as DriveSyncProgress, aE as DriveSyncSummary, aF as DuplicateContactError, aG as ENTITY_KINDS, aH as EditScope, aI as EntityKind, aJ as EventCreateBody, aK as EventPatchBody, aL as FLAT_TAG_KINDS, aP as FindTimeParams, aQ as FormattedWsMessage, aR as FreeBusyEntry, aS as FullContextSelection, aT as GOOGLE_VENDORS, aU as HolidayCountry, aV as HouseTemplateCandidate, aW as IMANAGE_VENDORS, aX as IdentityErrorCode, aY as IdentityPurchase, aZ as IdentityState, a_ as IdentityStatus, a$ as ImportResult, b0 as InvitationRead, b1 as LinkedRun, b2 as ListAllOptions, b3 as ListEventsParams, b5 as ListPaginatedOptions, b6 as MAILBOX_SYNC_VENDORS, b7 as MAX_RETRIEVE_DOC_IDS, b8 as MICROSOFT_VENDORS, ba as MessageLevel, bb as OAuthAccountKind, bc as OutputItemDone, bd as OverlayItem, be as OverlayLayerName, bf as PRESENCE_KINDS, bg as PROMPT_CONTEXT_CHARS, bh as ParsedSlashCommand, bi as PendingAuthResponse, bj as PersonKey, bk as PlanStepsError, bl as PlanWorkRequest, bm as ProductResponse, bn as ProjectAddonKind, bo as ProjectAddonSettingsRequest, bp as ProjectBudget, bq as ProjectCheckoutRequest, br as ProjectConversationUsageResponse, bs as ProjectCreateOptions, bt as ProjectDetails, bu as ProjectEventKind, bv as ProjectEventResponse, bw as ProjectInvoicesResponse, bx as ProjectNextPeriodAddonsRequest, by as ProjectPlanChangeRequest, bz as ProjectQuoteRequest, bA as ProjectResponse, bB as ProjectUpdateRequest, bC as ProjectUsageResponse, bD as PublicBookingError, bE as PublicBookingPage, bF as QuotaExceeded, bG as RaisedSignal, bH as RawResponseEvent, bI as ReconnectOptions, bJ as ReconnectableWsConnection, bK as ResolvedCitation, bL as ResolvedRecipient, bM as RespondParams, bN as RespondPartstat, bO as ResponseHandle, bP as ResponseSnapshot, bQ as ResponseStart, bR as ResponseStartOptions, bS as RoomCreateBody, bT as RoomQuery, bU as RoomRead, bV as RunProgress, bW as RunStats, bX as RunStep, bY as RunWaitingOn, bZ as SHAREPOINT_VENDORS, b_ as SSEEvent, b$ as SSEStreamCallbacks, c0 as SSEStreamOutcome, c1 as SSEStreamResult, c2 as STEP_FIELD_OPTION_TONES, c3 as STOP_ID_WAIT_MS, c4 as STOP_REPEAT_WINDOW_MS, c6 as ScopedTarget, c7 as SearchChunk, c8 as SendBack, c9 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 SyncTriggerResult, cw as TAG_KINDS, cx as TAG_NESTING_MAX_DEPTH, cy as TagChange, cz as TagFieldDefinition, cA as TagGroup, cB as TagKind, cC as TagKindField, cD as TagKindSchema, cE as TagLinks, cF as TagListQuery, cG as TagNode, cH as TagResponse, cI as TagScope, cJ as TagTreeRow, cK as TaskPlan, cL as TaskPlanStep, cM as TaxQuoteResponse, cN as Thread, cO as ThreadsResponse, cP as TimeSuggestion, cQ as TurnRequest, cR as UpdateConversationRequest, cT as UpdateWorkflowRequest, cX as UploadDocumentsOptions, cZ as UploadProgressListener, c$ as UsageBreakdown, d0 as UserConnectorEntry, d1 as UserDailyUsageResponse, d2 as UserInfo, d3 as WebSocketAuthError, d4 as WeeklyHoursSpec, d5 as WorkStatus, d6 as WorkflowAuthMode, d7 as WorkflowResponse, d8 as WorkflowRunHistoryResponse, d9 as WorkflowRunResponse, da as WorkspaceContext, db as WorkspaceOpenResponse, dc as WsConnection, dd as account, de as agentconfig, df as agents, dg as appendTranscriptionHints, dh as assistant, di as authenticatedFetch, dj as bookPublicSlot, dk as buildCitationChunkData, dl as buildDocNameMap, dm as buildDocumentTools, dn as buildFactsContextTool, dp as buildRetrievalChunkTool, dq as buildRetrievalFullContextTool, dr as buildRetrievalTocTool, ds as buildTurnRequest, dt as calendar, du as calls, dv as canTagHaveParent, dw as cancelPublicBooking, dx as chats, dy as computeRunStats, dz as connectErrorMessage, dA as connectWebSocket, dB as connectWithReconnect, dC as connectors, dD as contacts, dE as continuityPrompt, dF as conversations, dG as countCitations, dH as createAuthenticatedClient, dI as createDocumentWaiter, dJ as createIndexAssigner, dK as databases, dL as defaultKindForFormat, dM as doctags, dN as documents, dO as estimateDraftTokens, dP as extractDocumentIdsFromMessages, dQ as extractFactIdsFromMessages, dR as extractSubagentLanes, dS as facts, dT as files, dU as filterDocumentTags, dV as filterSkills, dW as findLeafForTaskMessage, dX as findMainSiblingLeaf, dY as findReplyTarget, dZ as findSubagentRunId, d_ as flattenTagTree, d$ as formatAgentStepLabel, e0 as formatFileSize, e1 as formatGbp, e2 as formatGbpPerMillionTokens, e3 as formatItemLabel, e4 as formatStreamSummary, e5 as formatTokens, e6 as formatUserName, e7 as formatWorkspaceChoices, e8 as formatWsMessage, e9 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 isAnnotationTag, ez as isConnectorVendorVisible, eA as isDriveSyncVendor, eB as isEntityTag, eC as isFlatKind, eD as isLabelTag, eE as isMailboxSyncVendor, eF as isNearAiUsageBudget, eG as isPresenceTag, eH as isSharePointVendor, eI as isSharedSkill, eJ as isTraceItem, eK as mail, eL as mergeAgentSteps, eM as notifications, eN as parseSSEEvents, eO as parseSlashCommand, eP as parseSlashTokenInProgress, eQ as performPasswordLogin, eR as performSigningKeyLogin, eS as performSsoDeviceFlowLogin, eT as pickMainThread, eU as profile, eV as progressFetch, eW as projects, eX as quotaExceededFrom, eY as quotaFromStreamError, eZ as reduceOutputItem, e_ as refusalReason, e$ as requireData, f0 as requireOk, f1 as resolveAuth, f2 as resolveCitations, f3 as resolveSummary, f4 as resolveWorkspace, f5 as responses, f6 as searchChunks, f7 as selectFullContextDocument, f8 as selectWorkspace, f9 as selectWorkspaceById, fa as sessions, fb as settings, fc as signatureRequests, fd as sliceToSubagentThread, fe as streamSSE, ff as stripCitationMarkdown, fg as subagentJobLabel, fh as summarizeCitations, fi as tagUseCount, fj as tags, fk as tagsForScope, fl as tagsOfGroup, fm as topLevelAgentSteps, fn as uploadSkill, fo as usdToGbp, fp as work, fq as workflowSteps, fr as workflows, fs as workspaces, ft as wouldCreateTagCycle } from './browser-DEZ7kJKE.js';
1
+ import { a1 as ConfigStore, _ as CliConfig, $ as CliCredentials, X as ChatSession, ce as SkippedFile, d0 as UploadResult, r as AuthHeaders, cW as UploadBatchResult, c_ as UploadOptions, cX as UploadDirectOptions, cY as UploadDirectResult, c7 as SUPPORTED_EXTENSIONS, bb as MailAttachment, P as ChatCryptoContext } from './browser-BX1E63gK.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 ArbiTransportError, l as ArbiWorkspaceChangedError, m as ArbiWorkspaceSupersededError, n as AskHandlers, o as AskRequest, p as AttendeeRead, q as AuthContext, s as AuthMode, t as AuthenticatedClient, B as BookingConfirmation, u as BookingPage, v as BookingPageWriteBody, w as BookingRequestBody, x as BridgeTokensOptions, C as CalDavConnectBody, y as CalDavProfile, z as CalendarAccount, D as CalendarAccountKind, E as CalendarCreateBody, F as CalendarEvent, G as CalendarKeys, H as CalendarRead, I as CalendarSettings, J as CalendarSettingsBody, K as CalendarUpdate, L as CalendarWindow, M as CallApiError, N as ChatAttachmentFile, O as ChatAttachmentInput, Q as ChatKeyRing, R as ChatKind, S as ChatMemberKey, T as ChatMemberResponse, U as ChatMessage, V as ChatMessageResponse, W as ChatResponse, Y as CitationSummary, Z as CitationToolSources, a0 as CommandDescriptor, a2 as ConnectOptions, a3 as ConnectorCatalogEntry, a4 as ConnectorFolder, a5 as ConnectorSyncProgress, a6 as ConnectorSyncStatus, a7 as ConnectorVendorKey, a8 as ConnectorVisibilitySettings, a9 as ContextUsage, aa as ConversationResponse, ab as ConversationUsageResponse, ae as CreateWorkRequest, af as CreateWorkflowRequest, ag as DEFAULT_AI_USD_PER_GBP, ah as DOC_TERMINAL_STATUSES, ai as DRIVE_SYNC_VENDORS, aj as Database, ak as DatabaseAggregateRequest, al as DatabaseAggregateResult, am as DatabaseColumn, an as DatabaseColumnWrite, ao as DatabaseImportResult, ap as DatabaseRow, aq as DatabaseRowPage, ar as DatabaseRowsQuery, as as DateTimeSpec, at as DecryptedChat, au as DecryptedChatMessage, av as DeploymentHouseTemplate, aw as DocInfo, ax as DocInfoMap, ay as DocNameMap, az as DocumentAutomationAction, aA as DocumentListFields, aB as DocumentListOrder, aC as DocumentSelector, aD as DocumentWaiter, aE as DocumentWaiterOptions, aF as DriveSyncProgress, aG as DriveSyncSummary, aH as DuplicateContactError, aI as ENTITY_KINDS, aJ as EditScope, aK as EntityKind, aL as EventCreateBody, aM as EventPatchBody, aN as FLAT_TAG_KINDS, aR as FindTimeParams, aS as FormattedWsMessage, aT as FreeBusyEntry, aU as FullContextSelection, aV as GOOGLE_VENDORS, aW as HolidayCountry, aX as HouseTemplateCandidate, aY as IMANAGE_VENDORS, aZ as IdentityErrorCode, a_ as IdentityPurchase, a$ as IdentityState, b0 as IdentityStatus, b1 as ImportResult, b2 as InvitationRead, b3 as LinkedRun, b4 as ListAllOptions, b5 as ListEventsParams, b7 as ListPaginatedOptions, b8 as MAILBOX_SYNC_VENDORS, b9 as MAX_RETRIEVE_DOC_IDS, ba as MICROSOFT_VENDORS, bc as MessageLevel, bd as OAuthAccountKind, be as OutputItemDone, bf as OverlayItem, bg as OverlayLayerName, bh as PRESENCE_KINDS, bi as PROMPT_CONTEXT_CHARS, bj as ParsedSlashCommand, bk as PendingAuthResponse, bl as PersonKey, bm as PlanStepsError, bn as PlanWorkRequest, bo as ProductResponse, bp as ProjectAddonKind, bq as ProjectAddonSettingsRequest, br as ProjectBudget, bs as ProjectCheckoutRequest, bt as ProjectConversationUsageResponse, bu as ProjectCreateOptions, bv as ProjectDetails, bw as ProjectEventKind, bx as ProjectEventResponse, by as ProjectInvoicesResponse, bz as ProjectNextPeriodAddonsRequest, bA as ProjectPlanChangeRequest, bB as ProjectQuoteRequest, bC as ProjectResponse, bD as ProjectUpdateRequest, bE as ProjectUsageResponse, bF as PublicBookingError, bG as PublicBookingPage, bH as QuotaExceeded, bI as RaisedSignal, bJ as RawResponseEvent, bK as ReconnectOptions, bL as ReconnectableWsConnection, bM as ResolvedCitation, bN as ResolvedRecipient, bO as RespondParams, bP as RespondPartstat, bQ as ResponseHandle, bR as ResponseSnapshot, bS as ResponseStart, bT as ResponseStartOptions, bU as RoomCreateBody, bV as RoomQuery, bW as RoomRead, bX as RunProgress, bY as RunStats, bZ as RunStep, b_ as RunWaitingOn, b$ as SHAREPOINT_VENDORS, c0 as SSEEvent, c1 as SSEStreamCallbacks, c2 as SSEStreamOutcome, c3 as SSEStreamResult, c4 as STEP_FIELD_OPTION_TONES, c5 as STOP_ID_WAIT_MS, c6 as STOP_REPEAT_WINDOW_MS, c8 as ScopedTarget, c9 as SearchChunk, ca as SendBack, cb as ShareRead, cc as ShareRole, cd as SkillSummary, cf as SlackConnectionStatus, cg as StepActionRequest, ch as StepActivityEvent, ci as StepAssignee, cj as StepDisplay, ck as StepField, cl as StepFieldOption, cm as StepFieldOptionTone, cn as StepKind, co as StepPhase, cp as StepSignal, cq as StepSignalWhen, cr as StepState, cs as StepStatus, ct as SubagentBranchRecord, cu as SubagentLaneInfo, cv as SubmitBackgroundQueryOptions, cw as SubscribeParams, cx as SyncTriggerResult, cy as TAG_KINDS, cz as TAG_NESTING_MAX_DEPTH, cA as TagChange, cB as TagFieldDefinition, cC as TagGroup, cD as TagKind, cE as TagKindField, cF as TagKindSchema, cG as TagLinks, cH as TagListQuery, cI as TagNode, cJ as TagResponse, cK as TagScope, cL as TagTreeRow, cM as TaskPlan, cN as TaskPlanStep, cO as TaxQuoteResponse, cP as Thread, cQ as ThreadsResponse, cR as TimeSuggestion, cS as TurnRequest, cT as UpdateConversationRequest, cV as UpdateWorkflowRequest, cZ as UploadDocumentsOptions, c$ as UploadProgressListener, d1 as UsageBreakdown, d2 as UserConnectorEntry, d3 as UserDailyUsageResponse, d4 as UserInfo, d5 as WebSocketAuthError, d6 as WeeklyHoursSpec, d7 as WorkStatus, d8 as WorkflowAuthMode, d9 as WorkflowResponse, da as WorkflowRunHistoryResponse, db as WorkflowRunResponse, dc as WorkspaceContext, dd as WorkspaceOpenResponse, de as WsConnection, df as account, dg as agentconfig, dh as agents, di as appendTranscriptionHints, dj as assistant, dk as authenticatedFetch, dl as bookPublicSlot, dm as buildCitationChunkData, dn as buildDocNameMap, dp as buildDocumentTools, dq as buildFactsContextTool, dr as buildRetrievalChunkTool, ds as buildRetrievalFullContextTool, dt as buildRetrievalTocTool, du as buildTurnRequest, dv as calendar, dw as calls, dx as canTagHaveParent, dy as cancelPublicBooking, dz as chats, dA as computeRunStats, dB as connectErrorMessage, dC as connectWebSocket, dD as connectWithReconnect, dE as connectors, dF as contacts, dG as continuityPrompt, dH as conversations, dI as countCitations, dJ as createAuthenticatedClient, dK as createDocumentWaiter, dL as createIndexAssigner, dM as databases, dN as defaultKindForFormat, dO as doctags, dP as documents, dQ as estimateDraftTokens, dR as extractDocumentIdsFromMessages, dS as extractFactIdsFromMessages, dT as extractSubagentLanes, dU as facts, dV as files, dW as filterDocumentTags, dX as filterSkills, dY as findLeafForTaskMessage, dZ as findMainSiblingLeaf, d_ as findReplyTarget, d$ as findSubagentRunId, e0 as flattenTagTree, e1 as formatAgentStepLabel, e2 as formatFileSize, e3 as formatGbp, e4 as formatGbpPerMillionTokens, e5 as formatItemLabel, e6 as formatStreamSummary, e7 as formatTokens, e8 as formatUserName, e9 as formatWorkspaceChoices, ea as formatWsMessage, eb as generateEncryptedWorkspaceKey, ec as generateNewWorkspaceKey, ed as getAgentStepLabel, ee as getAttachableRunId, ef as getChildTags, eg as getContextRemainingPercent, eh as getContextUsedPercent, ei as getContextUsedTokens, ej as getCurrentStep, ek as getEligibleParentTags, el as getErrorCode, em as getErrorMessage, en as getPublicBookingPage, eo as getRawWorkspaceKey, ep as getRunToAttach, eq as getRunToCancel, er as getStepDisplay, es as getStepTool, et as getSubagentBranchRecord, eu as getTagDescendantIds, ev as health, ew as houseTemplates, ex as hydrateAgentSteps, ez as identityErrorCode, ey as identityVerification, eA as isAnnotationTag, eB as isConnectorVendorVisible, eC as isDriveSyncVendor, eD as isEntityTag, eE as isFlatKind, eF as isLabelTag, eG as isMailboxSyncVendor, eH as isNearAiUsageBudget, eI as isPresenceTag, eJ as isSharePointVendor, eK as isSharedSkill, eL as isTraceItem, eM as mail, eN as mergeAgentSteps, eO as notifications, eP as parseSSEEvents, eQ as parseSlashCommand, eR as parseSlashTokenInProgress, eS as performPasswordLogin, eT as performSigningKeyLogin, eU as performSsoDeviceFlowLogin, eV as pickMainThread, eW as profile, eX as progressFetch, eY as projects, eZ as quotaExceededFrom, e_ as quotaFromStreamError, e$ as reduceOutputItem, f0 as refusalReason, f1 as requireData, f2 as requireOk, f3 as resolveAuth, f4 as resolveCitations, f5 as resolveSummary, f6 as resolveWorkspace, f7 as responses, f8 as searchChunks, f9 as selectFullContextDocument, fa as selectWorkspace, fb as selectWorkspaceById, fc as sessions, fd as settings, fe as signatureRequests, ff as sliceToSubagentThread, fg as streamSSE, fh as stripCitationMarkdown, fi as subagentJobLabel, fj as summarizeCitations, fk as tagUseCount, fl as tags, fm as tagsForScope, fn as tagsOfGroup, fo as topLevelAgentSteps, fp as uploadSkill, fq as usdToGbp, fr as work, fs as workflowSteps, ft as workflows, fu as workspaces, fv as wouldCreateTagCycle } from './browser-BX1E63gK.js';
3
3
  import { SessionPersistence, ArbiClient, components } from '@arbidocs/client';
4
- export { CallPeer, LoginProfile } from '@arbidocs/client';
4
+ export { CallPeer, HttpErrorInfo, HttpRequestInfo, HttpResponseInfo, HttpTransportOptions, LoginProfile } 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';
6
6
 
7
7
  /**
package/dist/index.js CHANGED
@@ -3676,10 +3676,19 @@ var STATUS_FALLBACKS = {
3676
3676
  503: "The selected LLM is not responding. Please retry or select another model."
3677
3677
  };
3678
3678
  async function authenticatedFetch(options) {
3679
- const { baseUrl, accessToken, path: path5, method, body, headers, signal } = options;
3679
+ const {
3680
+ baseUrl,
3681
+ accessToken,
3682
+ path: path5,
3683
+ method,
3684
+ body,
3685
+ headers,
3686
+ signal,
3687
+ fetch: send = globalThis.fetch
3688
+ } = options;
3680
3689
  let res;
3681
3690
  try {
3682
- res = await fetch(`${baseUrl}${path5}`, {
3691
+ res = await send(`${baseUrl}${path5}`, {
3683
3692
  method: method ?? (body ? "POST" : "GET"),
3684
3693
  headers: {
3685
3694
  Authorization: `Bearer ${accessToken}`,
@@ -3713,11 +3722,11 @@ function parseHeaders(raw) {
3713
3722
  }
3714
3723
  return headers;
3715
3724
  }
3716
- function progressFetch(onProgress) {
3725
+ function progressFetch(onProgress, transport) {
3717
3726
  const Xhr = globalThis.XMLHttpRequest;
3718
- return async (request) => {
3719
- if (!Xhr) {
3720
- const response = await fetch(request);
3727
+ const adapter = async (request) => {
3728
+ if (!Xhr || transport?.customFetch) {
3729
+ const response = await (transport?.customFetch ? transport.fetch : globalThis.fetch)(request);
3721
3730
  const size = Number(request.headers.get("content-length") ?? 0);
3722
3731
  onProgress(size, size);
3723
3732
  return response;
@@ -3731,7 +3740,10 @@ function progressFetch(onProgress) {
3731
3740
  xhr.upload.onprogress = (event) => {
3732
3741
  if (event.lengthComputable) onProgress(event.loaded, event.total);
3733
3742
  };
3743
+ const cleanup = () => request.signal.removeEventListener("abort", abort);
3744
+ const abort = () => xhr.abort();
3734
3745
  xhr.onload = () => {
3746
+ cleanup();
3735
3747
  onProgress(body.size, body.size);
3736
3748
  resolve2(
3737
3749
  new Response(NULL_BODY_STATUSES.has(xhr.status) ? null : xhr.responseText, {
@@ -3741,12 +3753,30 @@ function progressFetch(onProgress) {
3741
3753
  })
3742
3754
  );
3743
3755
  };
3744
- xhr.onerror = () => reject(new TypeError("Network error during upload"));
3745
- xhr.onabort = () => reject(new DOMException("Upload aborted", "AbortError"));
3746
- request.signal?.addEventListener("abort", () => xhr.abort(), { once: true });
3747
- xhr.send(body);
3756
+ xhr.onerror = () => {
3757
+ cleanup();
3758
+ reject(new TypeError("Network error during upload"));
3759
+ };
3760
+ xhr.onabort = () => {
3761
+ cleanup();
3762
+ reject(request.signal.reason ?? new DOMException("Upload aborted", "AbortError"));
3763
+ };
3764
+ if (request.signal.aborted) {
3765
+ reject(request.signal.reason ?? new DOMException("Upload aborted", "AbortError"));
3766
+ return;
3767
+ }
3768
+ request.signal.addEventListener("abort", abort, { once: true });
3769
+ try {
3770
+ xhr.send(body);
3771
+ } catch (error) {
3772
+ cleanup();
3773
+ reject(error);
3774
+ }
3748
3775
  });
3749
3776
  };
3777
+ if (transport?.customFetch) return adapter;
3778
+ const send = transport?.withFetch((input, init) => adapter(new Request(input, init)));
3779
+ return send ? (request) => send(request) : adapter;
3750
3780
  }
3751
3781
  var DEFAULT_SESSION = {
3752
3782
  lastMessageExtId: null,
@@ -5754,7 +5784,7 @@ async function uploadDocuments(arbi, files, options = {}) {
5754
5784
  }
5755
5785
  const result = await arbi.fetch.POST("/v1/document/upload", {
5756
5786
  params: { query: query2 },
5757
- ...options.onProgress ? { fetch: progressFetch(options.onProgress) } : {},
5787
+ ...options.onProgress ? { fetch: progressFetch(options.onProgress, arbi.http) } : {},
5758
5788
  // The schema types the files as strings; they go as multipart parts.
5759
5789
  body: { files },
5760
5790
  bodySerializer: () => {
@@ -6712,10 +6742,11 @@ function searchChunks(result) {
6712
6742
  return Array.from(byId3.values()).sort((a2, b2) => b2.score - a2.score);
6713
6743
  }
6714
6744
  async function queryAssistant(options) {
6715
- const { baseUrl, accessToken, signal, ...request } = options;
6745
+ const { baseUrl, accessToken, signal, fetch: fetch2, ...request } = options;
6716
6746
  return authenticatedFetch({
6717
6747
  baseUrl,
6718
6748
  accessToken,
6749
+ fetch: fetch2,
6719
6750
  path: "/v1/responses",
6720
6751
  method: "POST",
6721
6752
  body: JSON.stringify(buildTurnRequest(request)),
@@ -6770,7 +6801,7 @@ async function refusal(response) {
6770
6801
  );
6771
6802
  }
6772
6803
  async function openTurnStream(auth, body, signal) {
6773
- const response = await fetch(`${auth.baseUrl}/v1/responses`, {
6804
+ const response = await (auth.fetch ?? globalThis.fetch)(`${auth.baseUrl}/v1/responses`, {
6774
6805
  method: "POST",
6775
6806
  headers: { "Content-Type": "application/json", Authorization: `Bearer ${auth.accessToken}` },
6776
6807
  body: JSON.stringify(body),
@@ -6788,7 +6819,7 @@ async function openTurnStream(auth, body, signal) {
6788
6819
  return response;
6789
6820
  }
6790
6821
  async function openRunStream(auth, responseId, signal) {
6791
- const response = await fetch(
6822
+ const response = await (auth.fetch ?? globalThis.fetch)(
6792
6823
  `${auth.baseUrl}/v1/assistant/run/${encodeURIComponent(responseId)}/stream`,
6793
6824
  {
6794
6825
  method: "GET",
@@ -9771,6 +9802,7 @@ async function remindFact(arbi, factId, options = {}) {
9771
9802
  var databases_exports = {};
9772
9803
  __export(databases_exports, {
9773
9804
  addDatabaseRows: () => addDatabaseRows,
9805
+ aggregateDatabase: () => aggregateDatabase,
9774
9806
  createDatabase: () => createDatabase,
9775
9807
  deleteDatabase: () => deleteDatabase,
9776
9808
  deleteDatabaseRows: () => deleteDatabaseRows,
@@ -9806,6 +9838,15 @@ async function listDatabaseRows(arbi, databaseId, query2 = {}) {
9806
9838
  "Failed to read the rows"
9807
9839
  );
9808
9840
  }
9841
+ async function aggregateDatabase(arbi, databaseId, body) {
9842
+ return requireData(
9843
+ await arbi.fetch.POST("/v1/databases/{database_id}/aggregate", {
9844
+ params: path2(databaseId),
9845
+ body: { time_bucket: "month", limit: 50, ...body }
9846
+ }),
9847
+ "Failed to aggregate the database"
9848
+ );
9849
+ }
9809
9850
  async function createDatabase(arbi, body) {
9810
9851
  return requireData(
9811
9852
  await arbi.fetch.POST("/v1/databases", { body }),
@@ -11194,6 +11235,10 @@ var Arbi = class {
11194
11235
  options;
11195
11236
  constructor(options) {
11196
11237
  this.options = options;
11238
+ if (options.session && options.transport)
11239
+ throw new ArbiError(
11240
+ "Configure transport on the host session client, not on its Arbi wrapper."
11241
+ );
11197
11242
  if (options.session) {
11198
11243
  this.client = options.session.client;
11199
11244
  this.loginResult = options.session.login;
@@ -11218,6 +11263,7 @@ var Arbi = class {
11218
11263
  baseUrl: this.options.url,
11219
11264
  deploymentDomain: domain,
11220
11265
  credentials: this.options.credentials ?? "omit",
11266
+ transport: this.options.transport,
11221
11267
  session: createSessionManager({ storage: this.options.sessionStorage }),
11222
11268
  // A silent re-login rotates the server session key: keep ours in step, or the next
11223
11269
  // workspace open would seal the key for a session the server no longer has.
@@ -11412,11 +11458,15 @@ var Arbi = class {
11412
11458
  await this.targetWorkspace(workspaceId);
11413
11459
  return createTag(this.requireClient(), { ...options, workspaceId });
11414
11460
  }
11415
- /** The workspace a call names, opened for this session; `undefined` for the current one. */
11461
+ /**
11462
+ * The workspace a call acts on, captured when it is called: the one it names (opened for this session, not
11463
+ * switched to), else the current one. The request names it, so a switch while it is in flight cannot move it.
11464
+ * `undefined` only when no workspace is known here (the server's open one then applies, as before).
11465
+ */
11416
11466
  async targetWorkspace(workspaceId) {
11417
- if (!workspaceId || workspaceId === this.currentWorkspaceId) return void 0;
11418
- await this.openWorkspace(workspaceId);
11419
- return workspaceId;
11467
+ const target = workspaceId ?? this.currentWorkspaceId ?? void 0;
11468
+ if (target) await this.openWorkspace(target);
11469
+ return target;
11420
11470
  }
11421
11471
  /**
11422
11472
  * Make a workspace the CURRENT one: decrypt its key, open it on the server (which makes it the
@@ -11646,7 +11696,8 @@ var Arbi = class {
11646
11696
  }
11647
11697
  return {
11648
11698
  baseUrl: this.options.url,
11649
- accessToken
11699
+ accessToken,
11700
+ ...client.http ? { fetch: client.http.fetch } : {}
11650
11701
  };
11651
11702
  }
11652
11703
  // ── Projects ──────────────────────────────────────────────────────────
@@ -12163,10 +12214,10 @@ var Arbi = class {
12163
12214
  /** Authenticated native Word transport, with normal session recovery. */
12164
12215
  editor = {
12165
12216
  request: (path5, options = {}) => this.recovering(async () => {
12166
- const { baseUrl, accessToken } = this.getAuthHeaders();
12217
+ const { baseUrl, accessToken, fetch: send = globalThis.fetch } = this.getAuthHeaders();
12167
12218
  const headers = new Headers(options.headers);
12168
12219
  headers.set("Authorization", `Bearer ${accessToken}`);
12169
- const response = await fetch(`${baseUrl}/v1/editor${path5}`, { ...options, headers });
12220
+ const response = await send(`${baseUrl}/v1/editor${path5}`, { ...options, headers });
12170
12221
  if (!response.ok) {
12171
12222
  const body = await response.json().catch(() => null);
12172
12223
  throw new ArbiApiError(body?.detail || `Document request failed (${response.status})`, {
@@ -12184,12 +12235,12 @@ var Arbi = class {
12184
12235
  mail = {
12185
12236
  /** Fetch a path under `/v1/mail`; rejects a non-2xx response with an `ArbiApiError` (`status`). */
12186
12237
  fetch: (path5, init = {}) => this.recovering(async () => {
12187
- const { baseUrl, accessToken } = this.getAuthHeaders();
12238
+ const { baseUrl, accessToken, fetch: send = globalThis.fetch } = this.getAuthHeaders();
12188
12239
  const headers = new Headers(init.headers);
12189
12240
  headers.set("Authorization", `Bearer ${accessToken}`);
12190
12241
  if (init.body && !headers.has("Content-Type"))
12191
12242
  headers.set("Content-Type", "application/json");
12192
- const response = await fetch(`${baseUrl}/v1/mail${path5}`, { ...init, headers });
12243
+ const response = await send(`${baseUrl}/v1/mail${path5}`, { ...init, headers });
12193
12244
  if (!response.ok) {
12194
12245
  const body = await response.json().catch(() => null);
12195
12246
  throw new ArbiApiError(
@@ -12385,8 +12436,8 @@ var Arbi = class {
12385
12436
  */
12386
12437
  /** The open workspace's tags, or `query.workspaceId`'s (opened for this session, not switched to). */
12387
12438
  list: async (query2) => {
12388
- await this.targetWorkspace(query2?.workspaceId);
12389
- return listTags(this.requireClient(), query2);
12439
+ const workspaceId = await this.targetWorkspace(query2?.workspaceId);
12440
+ return listTags(this.requireClient(), { ...query2, workspaceId });
12390
12441
  },
12391
12442
  create: (options) => this.createTagIn(options.workspaceId ?? this.requireWorkspace(), options),
12392
12443
  delete: (tagId) => deleteTag(this.requireClient(), tagId),
@@ -13062,6 +13113,8 @@ var Arbi = class {
13062
13113
  get: (databaseId) => getDatabase(this.requireClient(), databaseId),
13063
13114
  /** A search of the rows (any cell), sorted and paged on the server. */
13064
13115
  rows: (databaseId, query2) => listDatabaseRows(this.requireClient(), databaseId, query2),
13116
+ /** Group and measure the rows on the server (a chart's labels and series). */
13117
+ aggregate: (databaseId, body) => aggregateDatabase(this.requireClient(), databaseId, body),
13065
13118
  create: (body) => createDatabase(this.requireClient(), body),
13066
13119
  update: (databaseId, body) => updateDatabase(this.requireClient(), databaseId, body),
13067
13120
  delete: (databaseId) => deleteDatabase(this.requireClient(), databaseId),