@arbidocs/sdk 0.5.67 → 0.5.69

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, cw as SkippedFile, di as UploadResult, t as AuthHeaders, dc as UploadBatchResult, dg as UploadOptions, dd as UploadDirectOptions, de as UploadDirectResult, cp as SUPPORTED_EXTENSIONS, bj as MailAttachment, S as ChatCryptoContext } from './browser-BsuUurv5.cjs';
2
- export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiStructuredOutputError, l as ArbiTransportError, m as ArbiWorkspaceChangedError, n as ArbiWorkspaceSupersededError, o as ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AttendeeRead, s as AuthContext, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, $ as CitationSummary, a0 as CitationToolSources, a3 as CommandDescriptor, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectionModel, a9 as ConnectorCatalogEntry, aa as ConnectorFolder, ab as ConnectorSyncProgress, ac as ConnectorSyncStatus, ad as ConnectorVendorKey, ae as ConnectorVisibilitySettings, af as ContextUsage, ag as ConversationResponse, ah as ConversationUsageResponse, ak as CreateWorkRequest, al as CreateWorkflowRequest, am as DEFAULT_AI_USD_PER_GBP, an as DOC_TERMINAL_STATUSES, ao as DRIVE_SYNC_VENDORS, ap as Database, aq as DatabaseAggregateRequest, ar as DatabaseAggregateResult, as as DatabaseColumn, at as DatabaseColumnWrite, au as DatabaseImportResult, av as DatabaseRow, aw as DatabaseRowPage, ax as DatabaseRowsQuery, ay as DateTimeSpec, az as DecryptedChat, aA as DecryptedChatMessage, aB as DeploymentHouseTemplate, aC as DirectModelUsage, aD as DocInfo, aE as DocInfoMap, aF as DocNameMap, aG as DocumentAutomationAction, aH as DocumentListFields, aI as DocumentListOrder, aJ as DocumentSelector, aK as DocumentWaiter, aL as DocumentWaiterOptions, aM as DriveSyncProgress, aN as DriveSyncSummary, aO as DuplicateContactError, aP as ENTITY_KINDS, aQ as EditScope, aR as EntityKind, aS as EventCreateBody, aT as EventPatchBody, aU as FLAT_TAG_KINDS, aY as FindTimeParams, aZ as FormattedWsMessage, a_ as FreeBusyEntry, a$ as FullContextSelection, b0 as GOOGLE_VENDORS, b1 as HolidayCountry, b2 as HouseTemplateCandidate, b3 as IMANAGE_VENDORS, b4 as IdentityErrorCode, b5 as IdentityPurchase, b6 as IdentityState, b7 as IdentityStatus, b8 as ImportResult, b9 as InvitationRead, ba as JsonSchemaOutputFormat, bb as LinkedRun, bc as ListAllOptions, bd as ListEventsParams, bf as ListPaginatedOptions, bg as MAILBOX_SYNC_VENDORS, bh as MAX_RETRIEVE_DOC_IDS, bi as MICROSOFT_VENDORS, bk as MessageLevel, bl as ModelConnection, bm as OAuthAccountKind, bn as OutputItemDone, bo as OverlayItem, bp as OverlayLayerName, bq as PRESENCE_KINDS, br as PROMPT_CONTEXT_CHARS, bs as ParsedResponse, bt as ParsedSlashCommand, bu as ParsedStructuredResponse, bv as PendingAuthResponse, bw as PersonKey, bx as PersonalConnectionInput, by as PlanStepsError, bz as PlanWorkRequest, bA as ProductResponse, bB as ProjectAddonKind, bC as ProjectAddonSettingsRequest, bD as ProjectBudget, bE as ProjectCheckoutRequest, bF as ProjectConversationUsageResponse, bG as ProjectCreateOptions, bH as ProjectDetails, bI as ProjectEventKind, bJ as ProjectEventResponse, bK as ProjectInvoicesResponse, bL as ProjectNextPeriodAddonsRequest, bM as ProjectPlanChangeRequest, bN as ProjectQuoteRequest, bO as ProjectResponse, bP as ProjectUpdateRequest, bQ as ProjectUsageResponse, bR as PublicBookingError, bS as PublicBookingPage, bT as QuotaExceeded, bU as RaisedSignal, bV as RawResponseEvent, bW as ReconnectOptions, bX as ReconnectableWsConnection, bY as ResolvedCitation, bZ as ResolvedRecipient, b_ as RespondParams, b$ as RespondPartstat, c0 as Response, c1 as ResponseCreateRequest, c2 as ResponseCreateResult, c3 as ResponseHandle, c4 as ResponseSnapshot, c5 as ResponseStart, c6 as ResponseStartOptions, c7 as ResponseStream, c8 as ResponseStreamEvent, c9 as ResponseTools, ca as RoomCreateBody, cb as RoomQuery, cc as RoomRead, cd as RunProgress, ce as RunStats, cf as RunStep, cg as RunWaitingOn, ch as SHAREPOINT_VENDORS, ci as SSEEvent, cj as SSEStreamCallbacks, ck as SSEStreamOutcome, cl as SSEStreamResult, cm as STEP_FIELD_OPTION_TONES, cn as STOP_ID_WAIT_MS, co as STOP_REPEAT_WINDOW_MS, cq as ScopedTarget, cr as SearchChunk, cs as SendBack, ct as ShareRead, cu as ShareRole, cv as SkillSummary, cx as SlackConnectionStatus, cy as StepActionRequest, cz as StepActivityEvent, cA as StepAssignee, cB as StepDisplay, cC as StepField, cD as StepFieldOption, cE as StepFieldOptionTone, cF as StepKind, cG as StepPhase, cH as StepSignal, cI as StepSignalWhen, cJ as StepState, cK as StepStatus, cL as SubagentBranchRecord, cM as SubagentLaneInfo, cN as SubmitBackgroundQueryOptions, cO as SubscribeParams, cP as SyncTriggerResult, cQ as TAG_KINDS, cR as TAG_NESTING_MAX_DEPTH, cS as TagChange, cT as TagFieldDefinition, cU as TagGroup, cV as TagKind, cW as TagKindField, cX as TagKindSchema, cY as TagLinks, cZ as TagListQuery, c_ as TagNode, c$ as TagResponse, d0 as TagScope, d1 as TagTreeRow, d2 as TaskPlan, d3 as TaskPlanStep, d4 as TaxQuoteResponse, d5 as Thread, d6 as ThreadsResponse, d7 as TimeSuggestion, d8 as TurnRequest, d9 as UpdateConversationRequest, db as UpdateWorkflowRequest, df as UploadDocumentsOptions, dh as UploadProgressListener, dj as UsageBreakdown, dk as UserConnectorEntry, dl as UserDailyUsageResponse, dm as UserInfo, dn as WebSocketAuthError, dp as WeeklyHoursSpec, dq as WorkStatus, dr as WorkflowAuthMode, ds as WorkflowResponse, dt as WorkflowRunHistoryResponse, du as WorkflowRunResponse, dv as WorkspaceConflict, dw as WorkspaceContext, dx as WorkspaceOpenResponse, dy as WorkspaceResponse, dz as WsConnection, dA as account, dB as agentconfig, dC as agents, dD as appendTranscriptionHints, dE as assistant, dF as authenticatedFetch, dG as bookPublicSlot, dH as buildCitationChunkData, dI as buildDocNameMap, dJ as buildDocumentTools, dK as buildFactsContextTool, dL as buildRetrievalChunkTool, dM as buildRetrievalFullContextTool, dN as buildRetrievalTocTool, dO as buildTurnRequest, dP as calendar, dQ as calls, dR as canTagHaveParent, dS as cancelPublicBooking, dT as capabilities, dU as chats, dV as composeConfiguration, dW as composeTools, dX as computeRunStats, dY as connectErrorMessage, dZ as connectWebSocket, d_ as connectWithReconnect, d$ as connectors, e0 as contacts, e1 as continuityPrompt, e2 as conversations, e3 as countCitations, e4 as createAuthenticatedClient, e5 as createDocumentWaiter, e6 as createIndexAssigner, e7 as databases, e8 as defaultKindForFormat, e9 as doctags, ea as documentTools, eb as documents, ec as estimateDraftTokens, ed as extractDocumentIdsFromMessages, ee as extractFactIdsFromMessages, ef as extractSubagentLanes, eg as facts, eh as files, ei as filterDocumentTags, ej as filterSkills, ek as findLeafForTaskMessage, el as findMainSiblingLeaf, em as findReplyTarget, en as findSubagentRunId, eo as flattenTagTree, ep as formatAgentStepLabel, eq as formatFileSize, er as formatGbp, es as formatGbpPerMillionTokens, et as formatItemLabel, eu as formatStreamSummary, ev as formatTokens, ew as formatUserName, ex as formatWorkspaceChoices, ey as formatWsMessage, ez as generateEncryptedWorkspaceKey, eA as generateNewWorkspaceKey, eB as getAgentStepLabel, eC as getAttachableRunId, eD as getChildTags, eE as getContextRemainingPercent, eF as getContextUsedPercent, eG as getContextUsedTokens, eH as getCurrentStep, eI as getEligibleParentTags, eJ as getErrorCode, eK as getErrorMessage, eL as getPublicBookingPage, eM as getRawWorkspaceKey, eN as getRunToAttach, eO as getRunToCancel, eP as getStepDisplay, eQ as getStepTool, eR as getSubagentBranchRecord, eS as getTagDescendantIds, eT as health, eU as houseTemplates, eV as hydrateAgentSteps, eX as identityErrorCode, eW as identityVerification, eY as instructions, eZ as isAnnotationTag, e_ as isConnectorVendorVisible, e$ as isDriveSyncVendor, f0 as isEntityTag, f1 as isFlatKind, f2 as isLabelTag, f3 as isMailboxSyncVendor, f4 as isNearAiUsageBudget, f5 as isPresenceTag, f6 as isSharePointVendor, f7 as isSharedSkill, f8 as isTraceItem, f9 as mail, fa as mcpTools, fb as mergeAgentSteps, fc as modelConnections, fd as notifications, fe as parseSSEEvents, ff as parseSlashCommand, fg as parseSlashTokenInProgress, fh as parseStructuredResponse, fi as performPasswordLogin, fj as performSigningKeyLogin, fk as performSsoDeviceFlowLogin, fl as pickMainThread, fm as profile, fn as progressFetch, fo as projects, fp as quotaExceededFrom, fq as quotaFromStreamError, fr as reduceOutputItem, fs as refusalReason, ft as requireData, fu as requireOk, fv as resolveAuth, fw as resolveCitations, fx as resolveSummary, fy as resolveWorkspace, fz as responses, fA as searchChunks, fB as selectFullContextDocument, fC as selectWorkspace, fD as selectWorkspaceById, fE as sessions, fF as settings, fG as signatureRequests, fH as sliceToSubagentThread, fI as streamSSE, fJ as stripCitationMarkdown, fK as subagentJobLabel, fL as summarizeCitations, fM as tagUseCount, fN as tags, fO as tagsForScope, fP as tagsOfGroup, fQ as topLevelAgentSteps, fR as uploadSkill, fS as usdToGbp, fT as work, fU as workflowSteps, fV as workflows, fW as workspaceConflictOf, fX as workspaces, fY as wouldCreateTagCycle } from './browser-BsuUurv5.cjs';
1
+ import { a4 as ConfigStore, a1 as CliConfig, a2 as CliCredentials, _ as ChatSession, cw as SkippedFile, di as UploadResult, t as AuthHeaders, dc as UploadBatchResult, dg as UploadOptions, dd as UploadDirectOptions, de as UploadDirectResult, cp as SUPPORTED_EXTENSIONS, bj as MailAttachment, S as ChatCryptoContext } from './browser-CuDnbE8Y.cjs';
2
+ export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiStructuredOutputError, l as ArbiTransportError, m as ArbiWorkspaceChangedError, n as ArbiWorkspaceSupersededError, o as ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AttendeeRead, s as AuthContext, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, $ as CitationSummary, a0 as CitationToolSources, a3 as CommandDescriptor, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectionModel, a9 as ConnectorCatalogEntry, aa as ConnectorFolder, ab as ConnectorSyncProgress, ac as ConnectorSyncStatus, ad as ConnectorVendorKey, ae as ConnectorVisibilitySettings, af as ContextUsage, ag as ConversationResponse, ah as ConversationUsageResponse, ak as CreateWorkRequest, al as CreateWorkflowRequest, am as DEFAULT_AI_USD_PER_GBP, an as DOC_TERMINAL_STATUSES, ao as DRIVE_SYNC_VENDORS, ap as Database, aq as DatabaseAggregateRequest, ar as DatabaseAggregateResult, as as DatabaseColumn, at as DatabaseColumnWrite, au as DatabaseImportResult, av as DatabaseRow, aw as DatabaseRowPage, ax as DatabaseRowsQuery, ay as DateTimeSpec, az as DecryptedChat, aA as DecryptedChatMessage, aB as DeploymentHouseTemplate, aC as DirectModelUsage, aD as DocInfo, aE as DocInfoMap, aF as DocNameMap, aG as DocumentAutomationAction, aH as DocumentListFields, aI as DocumentListOrder, aJ as DocumentSelector, aK as DocumentWaiter, aL as DocumentWaiterOptions, aM as DriveSyncProgress, aN as DriveSyncSummary, aO as DuplicateContactError, aP as ENTITY_KINDS, aQ as EditScope, aR as EntityKind, aS as EventCreateBody, aT as EventPatchBody, aU as FLAT_TAG_KINDS, aY as FindTimeParams, aZ as FormattedWsMessage, a_ as FreeBusyEntry, a$ as FullContextSelection, b0 as GOOGLE_VENDORS, b1 as HolidayCountry, b2 as HouseTemplateCandidate, b3 as IMANAGE_VENDORS, b4 as IdentityErrorCode, b5 as IdentityPurchase, b6 as IdentityState, b7 as IdentityStatus, b8 as ImportResult, b9 as InvitationRead, ba as JsonSchemaOutputFormat, bb as LinkedRun, bc as ListAllOptions, bd as ListEventsParams, bf as ListPaginatedOptions, bg as MAILBOX_SYNC_VENDORS, bh as MAX_RETRIEVE_DOC_IDS, bi as MICROSOFT_VENDORS, bk as MessageLevel, bl as ModelConnection, bm as OAuthAccountKind, bn as OutputItemDone, bo as OverlayItem, bp as OverlayLayerName, bq as PRESENCE_KINDS, br as PROMPT_CONTEXT_CHARS, bs as ParsedResponse, bt as ParsedSlashCommand, bu as ParsedStructuredResponse, bv as PendingAuthResponse, bw as PersonKey, bx as PersonalConnectionInput, by as PlanStepsError, bz as PlanWorkRequest, bA as ProductResponse, bB as ProjectAddonKind, bC as ProjectAddonSettingsRequest, bD as ProjectBudget, bE as ProjectCheckoutRequest, bF as ProjectConversationUsageResponse, bG as ProjectCreateOptions, bH as ProjectDetails, bI as ProjectEventKind, bJ as ProjectEventResponse, bK as ProjectInvoicesResponse, bL as ProjectNextPeriodAddonsRequest, bM as ProjectPlanChangeRequest, bN as ProjectQuoteRequest, bO as ProjectResponse, bP as ProjectUpdateRequest, bQ as ProjectUsageResponse, bR as PublicBookingError, bS as PublicBookingPage, bT as QuotaExceeded, bU as RaisedSignal, bV as RawResponseEvent, bW as ReconnectOptions, bX as ReconnectableWsConnection, bY as ResolvedCitation, bZ as ResolvedRecipient, b_ as RespondParams, b$ as RespondPartstat, c0 as Response, c1 as ResponseCreateRequest, c2 as ResponseCreateResult, c3 as ResponseHandle, c4 as ResponseSnapshot, c5 as ResponseStart, c6 as ResponseStartOptions, c7 as ResponseStream, c8 as ResponseStreamEvent, c9 as ResponseTools, ca as RoomCreateBody, cb as RoomQuery, cc as RoomRead, cd as RunProgress, ce as RunStats, cf as RunStep, cg as RunWaitingOn, ch as SHAREPOINT_VENDORS, ci as SSEEvent, cj as SSEStreamCallbacks, ck as SSEStreamOutcome, cl as SSEStreamResult, cm as STEP_FIELD_OPTION_TONES, cn as STOP_ID_WAIT_MS, co as STOP_REPEAT_WINDOW_MS, cq as ScopedTarget, cr as SearchChunk, cs as SendBack, ct as ShareRead, cu as ShareRole, cv as SkillSummary, cx as SlackConnectionStatus, cy as StepActionRequest, cz as StepActivityEvent, cA as StepAssignee, cB as StepDisplay, cC as StepField, cD as StepFieldOption, cE as StepFieldOptionTone, cF as StepKind, cG as StepPhase, cH as StepSignal, cI as StepSignalWhen, cJ as StepState, cK as StepStatus, cL as SubagentBranchRecord, cM as SubagentLaneInfo, cN as SubmitBackgroundQueryOptions, cO as SubscribeParams, cP as SyncTriggerResult, cQ as TAG_KINDS, cR as TAG_NESTING_MAX_DEPTH, cS as TagChange, cT as TagFieldDefinition, cU as TagGroup, cV as TagKind, cW as TagKindField, cX as TagKindSchema, cY as TagLinks, cZ as TagListQuery, c_ as TagNode, c$ as TagResponse, d0 as TagScope, d1 as TagTreeRow, d2 as TaskPlan, d3 as TaskPlanStep, d4 as TaxQuoteResponse, d5 as Thread, d6 as ThreadsResponse, d7 as TimeSuggestion, d8 as TurnRequest, d9 as UpdateConversationRequest, db as UpdateWorkflowRequest, df as UploadDocumentsOptions, dh as UploadProgressListener, dj as UsageBreakdown, dk as UserConnectorEntry, dl as UserDailyUsageResponse, dm as UserInfo, dn as WebSocketAuthError, dp as WeeklyHoursSpec, dq as WorkStatus, dr as WorkflowAuthMode, ds as WorkflowResponse, dt as WorkflowRunHistoryResponse, du as WorkflowRunResponse, dv as WorkspaceConflict, dw as WorkspaceContext, dx as WorkspaceOpenResponse, dy as WorkspaceResponse, dz as WsConnection, dA as account, dB as agentconfig, dC as agents, dD as appendTranscriptionHints, dE as assistant, dF as authenticatedFetch, dG as bookPublicSlot, dH as buildCitationChunkData, dI as buildDocNameMap, dJ as buildDocumentTools, dK as buildFactsContextTool, dL as buildRetrievalChunkTool, dM as buildRetrievalFullContextTool, dN as buildRetrievalTocTool, dO as buildTurnRequest, dP as calendar, dQ as calls, dR as canTagHaveParent, dS as cancelPublicBooking, dT as capabilities, dU as chats, dV as composeConfiguration, dW as composeTools, dX as computeRunStats, dY as connectErrorMessage, dZ as connectWebSocket, d_ as connectWithReconnect, d$ as connectors, e0 as contacts, e1 as continuityPrompt, e2 as conversations, e3 as countCitations, e4 as createAuthenticatedClient, e5 as createDocumentWaiter, e6 as createIndexAssigner, e7 as databases, e8 as defaultKindForFormat, e9 as doctags, ea as documentTools, eb as documents, ec as estimateDraftTokens, ed as extractDocumentIdsFromMessages, ee as extractFactIdsFromMessages, ef as extractSubagentLanes, eg as facts, eh as files, ei as filterDocumentTags, ej as filterSkills, ek as findLeafForTaskMessage, el as findMainSiblingLeaf, em as findReplyTarget, en as findSubagentRunId, eo as flattenTagTree, ep as formatAgentStepLabel, eq as formatFileSize, er as formatGbp, es as formatGbpPerMillionTokens, et as formatItemLabel, eu as formatStreamSummary, ev as formatTokens, ew as formatUserName, ex as formatWorkspaceChoices, ey as formatWsMessage, ez as generateEncryptedWorkspaceKey, eA as generateNewWorkspaceKey, eB as getAgentStepLabel, eC as getAttachableRunId, eD as getChildTags, eE as getContextRemainingPercent, eF as getContextUsedPercent, eG as getContextUsedTokens, eH as getCurrentStep, eI as getEligibleParentTags, eJ as getErrorCode, eK as getErrorMessage, eL as getPublicBookingPage, eM as getRawWorkspaceKey, eN as getRunToAttach, eO as getRunToCancel, eP as getStepDisplay, eQ as getStepTool, eR as getSubagentBranchRecord, eS as getTagDescendantIds, eT as health, eU as houseTemplates, eV as hydrateAgentSteps, eX as identityErrorCode, eW as identityVerification, eY as instructions, eZ as isAnnotationTag, e_ as isConnectorVendorVisible, e$ as isDriveSyncVendor, f0 as isEntityTag, f1 as isFlatKind, f2 as isLabelTag, f3 as isMailboxSyncVendor, f4 as isNearAiUsageBudget, f5 as isPresenceTag, f6 as isSharePointVendor, f7 as isSharedSkill, f8 as isTraceItem, f9 as mail, fa as mcpTools, fb as mergeAgentSteps, fc as modelConnections, fd as notifications, fe as parseSSEEvents, ff as parseSlashCommand, fg as parseSlashTokenInProgress, fh as parseStructuredResponse, fi as performPasswordLogin, fj as performSigningKeyLogin, fk as performSsoDeviceFlowLogin, fl as pickMainThread, fm as profile, fn as progressFetch, fo as projects, fp as quotaExceededFrom, fq as quotaFromStreamError, fr as reduceOutputItem, fs as refusalReason, ft as requireData, fu as requireOk, fv as resolveAuth, fw as resolveCitations, fx as resolveSummary, fy as resolveWorkspace, fz as responses, fA as searchChunks, fB as selectFullContextDocument, fC as selectWorkspace, fD as selectWorkspaceById, fE as sessions, fF as settings, fG as signatureRequests, fH as sliceToSubagentThread, fI as streamSSE, fJ as stripCitationMarkdown, fK as subagentJobLabel, fL as summarizeCitations, fM as tagUseCount, fN as tags, fO as tagsForScope, fP as tagsOfGroup, fQ as topLevelAgentSteps, fR as uploadSkill, fS as usdToGbp, fT as work, fU as workflowSteps, fV as workflows, fW as workspaceConflictOf, fX as workspaces, fY as wouldCreateTagCycle } from './browser-CuDnbE8Y.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';
@@ -189,7 +189,7 @@ declare function uploadLocalFile(auth: AuthHeaders, filePath: string, options?:
189
189
  * the CLI this is unwrapped lazily from the stored signing key + workspace
190
190
  * ``wrapped_key``; see ``getRawWorkspaceKey`` in ``auth.ts``.
191
191
  */
192
- declare function uploadLocalFilesDirect(arbi: ArbiClient, workspaceKey: Uint8Array, filePaths: string[], options?: UploadDirectOptions): Promise<UploadDirectResult>;
192
+ declare function uploadLocalFilesDirect(arbi: ArbiClient, workspaceKey: Uint8Array, filePaths: string[], options: UploadDirectOptions): Promise<UploadDirectResult>;
193
193
  /**
194
194
  * Options for the direct-upload directory/zip/archive helpers. Mirrors the
195
195
  * legacy ``UploadDirectoryOptions`` so CLI consumers can switch between the
@@ -205,26 +205,28 @@ interface UploadDirectoryDirectOptions {
205
205
  };
206
206
  }) => void;
207
207
  configExtId?: string;
208
+ /** The workspace whose key the files are encrypted with, named on every request. */
209
+ workspaceExtId: string;
208
210
  }
209
211
  /**
210
212
  * Walk a directory, group supported files by their relative subfolder (with
211
213
  * the directory basename as the root), and upload each group via the
212
214
  * direct-to-MinIO flow.
213
215
  */
214
- declare function uploadLocalDirectoryDirect(arbi: ArbiClient, workspaceKey: Uint8Array, dirPath: string, options?: UploadDirectoryDirectOptions): Promise<UploadBatchResult>;
216
+ declare function uploadLocalDirectoryDirect(arbi: ArbiClient, workspaceKey: Uint8Array, dirPath: string, options: UploadDirectoryDirectOptions): Promise<UploadBatchResult>;
215
217
  /**
216
218
  * Extract a zip archive in memory, group supported entries by their internal
217
219
  * folder structure, and upload each group via the direct-to-MinIO flow. Uses
218
220
  * jszip via dynamic import so the dep is optional at load time. Mirrors the
219
221
  * single-root detection behavior of ``uploadZip``.
220
222
  */
221
- declare function uploadLocalZipDirect(arbi: ArbiClient, workspaceKey: Uint8Array, zipPath: string, options?: UploadDirectoryDirectOptions): Promise<UploadBatchResult>;
223
+ declare function uploadLocalZipDirect(arbi: ArbiClient, workspaceKey: Uint8Array, zipPath: string, options: UploadDirectoryDirectOptions): Promise<UploadBatchResult>;
222
224
  /**
223
225
  * Upload a 7z/rar archive via the direct-to-MinIO flow. Shells out to the
224
226
  * system ``7z`` binary to extract to a temporary directory, then delegates
225
227
  * to ``uploadLocalDirectoryDirect``. The temp directory is removed on exit.
226
228
  */
227
- declare function uploadLocalArchiveDirect(arbi: ArbiClient, workspaceKey: Uint8Array, archivePath: string, options?: UploadDirectoryDirectOptions): Promise<UploadBatchResult>;
229
+ declare function uploadLocalArchiveDirect(arbi: ArbiClient, workspaceKey: Uint8Array, archivePath: string, options: UploadDirectoryDirectOptions): Promise<UploadBatchResult>;
228
230
  /**
229
231
  * Upload all supported files from a directory, preserving folder structure.
230
232
  * Files are grouped by their relative folder path, then each group is split
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a4 as ConfigStore, a1 as CliConfig, a2 as CliCredentials, _ as ChatSession, cw as SkippedFile, di as UploadResult, t as AuthHeaders, dc as UploadBatchResult, dg as UploadOptions, dd as UploadDirectOptions, de as UploadDirectResult, cp as SUPPORTED_EXTENSIONS, bj as MailAttachment, S as ChatCryptoContext } from './browser-D0iEy5W9.js';
2
- export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiStructuredOutputError, l as ArbiTransportError, m as ArbiWorkspaceChangedError, n as ArbiWorkspaceSupersededError, o as ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AttendeeRead, s as AuthContext, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, $ as CitationSummary, a0 as CitationToolSources, a3 as CommandDescriptor, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectionModel, a9 as ConnectorCatalogEntry, aa as ConnectorFolder, ab as ConnectorSyncProgress, ac as ConnectorSyncStatus, ad as ConnectorVendorKey, ae as ConnectorVisibilitySettings, af as ContextUsage, ag as ConversationResponse, ah as ConversationUsageResponse, ak as CreateWorkRequest, al as CreateWorkflowRequest, am as DEFAULT_AI_USD_PER_GBP, an as DOC_TERMINAL_STATUSES, ao as DRIVE_SYNC_VENDORS, ap as Database, aq as DatabaseAggregateRequest, ar as DatabaseAggregateResult, as as DatabaseColumn, at as DatabaseColumnWrite, au as DatabaseImportResult, av as DatabaseRow, aw as DatabaseRowPage, ax as DatabaseRowsQuery, ay as DateTimeSpec, az as DecryptedChat, aA as DecryptedChatMessage, aB as DeploymentHouseTemplate, aC as DirectModelUsage, aD as DocInfo, aE as DocInfoMap, aF as DocNameMap, aG as DocumentAutomationAction, aH as DocumentListFields, aI as DocumentListOrder, aJ as DocumentSelector, aK as DocumentWaiter, aL as DocumentWaiterOptions, aM as DriveSyncProgress, aN as DriveSyncSummary, aO as DuplicateContactError, aP as ENTITY_KINDS, aQ as EditScope, aR as EntityKind, aS as EventCreateBody, aT as EventPatchBody, aU as FLAT_TAG_KINDS, aY as FindTimeParams, aZ as FormattedWsMessage, a_ as FreeBusyEntry, a$ as FullContextSelection, b0 as GOOGLE_VENDORS, b1 as HolidayCountry, b2 as HouseTemplateCandidate, b3 as IMANAGE_VENDORS, b4 as IdentityErrorCode, b5 as IdentityPurchase, b6 as IdentityState, b7 as IdentityStatus, b8 as ImportResult, b9 as InvitationRead, ba as JsonSchemaOutputFormat, bb as LinkedRun, bc as ListAllOptions, bd as ListEventsParams, bf as ListPaginatedOptions, bg as MAILBOX_SYNC_VENDORS, bh as MAX_RETRIEVE_DOC_IDS, bi as MICROSOFT_VENDORS, bk as MessageLevel, bl as ModelConnection, bm as OAuthAccountKind, bn as OutputItemDone, bo as OverlayItem, bp as OverlayLayerName, bq as PRESENCE_KINDS, br as PROMPT_CONTEXT_CHARS, bs as ParsedResponse, bt as ParsedSlashCommand, bu as ParsedStructuredResponse, bv as PendingAuthResponse, bw as PersonKey, bx as PersonalConnectionInput, by as PlanStepsError, bz as PlanWorkRequest, bA as ProductResponse, bB as ProjectAddonKind, bC as ProjectAddonSettingsRequest, bD as ProjectBudget, bE as ProjectCheckoutRequest, bF as ProjectConversationUsageResponse, bG as ProjectCreateOptions, bH as ProjectDetails, bI as ProjectEventKind, bJ as ProjectEventResponse, bK as ProjectInvoicesResponse, bL as ProjectNextPeriodAddonsRequest, bM as ProjectPlanChangeRequest, bN as ProjectQuoteRequest, bO as ProjectResponse, bP as ProjectUpdateRequest, bQ as ProjectUsageResponse, bR as PublicBookingError, bS as PublicBookingPage, bT as QuotaExceeded, bU as RaisedSignal, bV as RawResponseEvent, bW as ReconnectOptions, bX as ReconnectableWsConnection, bY as ResolvedCitation, bZ as ResolvedRecipient, b_ as RespondParams, b$ as RespondPartstat, c0 as Response, c1 as ResponseCreateRequest, c2 as ResponseCreateResult, c3 as ResponseHandle, c4 as ResponseSnapshot, c5 as ResponseStart, c6 as ResponseStartOptions, c7 as ResponseStream, c8 as ResponseStreamEvent, c9 as ResponseTools, ca as RoomCreateBody, cb as RoomQuery, cc as RoomRead, cd as RunProgress, ce as RunStats, cf as RunStep, cg as RunWaitingOn, ch as SHAREPOINT_VENDORS, ci as SSEEvent, cj as SSEStreamCallbacks, ck as SSEStreamOutcome, cl as SSEStreamResult, cm as STEP_FIELD_OPTION_TONES, cn as STOP_ID_WAIT_MS, co as STOP_REPEAT_WINDOW_MS, cq as ScopedTarget, cr as SearchChunk, cs as SendBack, ct as ShareRead, cu as ShareRole, cv as SkillSummary, cx as SlackConnectionStatus, cy as StepActionRequest, cz as StepActivityEvent, cA as StepAssignee, cB as StepDisplay, cC as StepField, cD as StepFieldOption, cE as StepFieldOptionTone, cF as StepKind, cG as StepPhase, cH as StepSignal, cI as StepSignalWhen, cJ as StepState, cK as StepStatus, cL as SubagentBranchRecord, cM as SubagentLaneInfo, cN as SubmitBackgroundQueryOptions, cO as SubscribeParams, cP as SyncTriggerResult, cQ as TAG_KINDS, cR as TAG_NESTING_MAX_DEPTH, cS as TagChange, cT as TagFieldDefinition, cU as TagGroup, cV as TagKind, cW as TagKindField, cX as TagKindSchema, cY as TagLinks, cZ as TagListQuery, c_ as TagNode, c$ as TagResponse, d0 as TagScope, d1 as TagTreeRow, d2 as TaskPlan, d3 as TaskPlanStep, d4 as TaxQuoteResponse, d5 as Thread, d6 as ThreadsResponse, d7 as TimeSuggestion, d8 as TurnRequest, d9 as UpdateConversationRequest, db as UpdateWorkflowRequest, df as UploadDocumentsOptions, dh as UploadProgressListener, dj as UsageBreakdown, dk as UserConnectorEntry, dl as UserDailyUsageResponse, dm as UserInfo, dn as WebSocketAuthError, dp as WeeklyHoursSpec, dq as WorkStatus, dr as WorkflowAuthMode, ds as WorkflowResponse, dt as WorkflowRunHistoryResponse, du as WorkflowRunResponse, dv as WorkspaceConflict, dw as WorkspaceContext, dx as WorkspaceOpenResponse, dy as WorkspaceResponse, dz as WsConnection, dA as account, dB as agentconfig, dC as agents, dD as appendTranscriptionHints, dE as assistant, dF as authenticatedFetch, dG as bookPublicSlot, dH as buildCitationChunkData, dI as buildDocNameMap, dJ as buildDocumentTools, dK as buildFactsContextTool, dL as buildRetrievalChunkTool, dM as buildRetrievalFullContextTool, dN as buildRetrievalTocTool, dO as buildTurnRequest, dP as calendar, dQ as calls, dR as canTagHaveParent, dS as cancelPublicBooking, dT as capabilities, dU as chats, dV as composeConfiguration, dW as composeTools, dX as computeRunStats, dY as connectErrorMessage, dZ as connectWebSocket, d_ as connectWithReconnect, d$ as connectors, e0 as contacts, e1 as continuityPrompt, e2 as conversations, e3 as countCitations, e4 as createAuthenticatedClient, e5 as createDocumentWaiter, e6 as createIndexAssigner, e7 as databases, e8 as defaultKindForFormat, e9 as doctags, ea as documentTools, eb as documents, ec as estimateDraftTokens, ed as extractDocumentIdsFromMessages, ee as extractFactIdsFromMessages, ef as extractSubagentLanes, eg as facts, eh as files, ei as filterDocumentTags, ej as filterSkills, ek as findLeafForTaskMessage, el as findMainSiblingLeaf, em as findReplyTarget, en as findSubagentRunId, eo as flattenTagTree, ep as formatAgentStepLabel, eq as formatFileSize, er as formatGbp, es as formatGbpPerMillionTokens, et as formatItemLabel, eu as formatStreamSummary, ev as formatTokens, ew as formatUserName, ex as formatWorkspaceChoices, ey as formatWsMessage, ez as generateEncryptedWorkspaceKey, eA as generateNewWorkspaceKey, eB as getAgentStepLabel, eC as getAttachableRunId, eD as getChildTags, eE as getContextRemainingPercent, eF as getContextUsedPercent, eG as getContextUsedTokens, eH as getCurrentStep, eI as getEligibleParentTags, eJ as getErrorCode, eK as getErrorMessage, eL as getPublicBookingPage, eM as getRawWorkspaceKey, eN as getRunToAttach, eO as getRunToCancel, eP as getStepDisplay, eQ as getStepTool, eR as getSubagentBranchRecord, eS as getTagDescendantIds, eT as health, eU as houseTemplates, eV as hydrateAgentSteps, eX as identityErrorCode, eW as identityVerification, eY as instructions, eZ as isAnnotationTag, e_ as isConnectorVendorVisible, e$ as isDriveSyncVendor, f0 as isEntityTag, f1 as isFlatKind, f2 as isLabelTag, f3 as isMailboxSyncVendor, f4 as isNearAiUsageBudget, f5 as isPresenceTag, f6 as isSharePointVendor, f7 as isSharedSkill, f8 as isTraceItem, f9 as mail, fa as mcpTools, fb as mergeAgentSteps, fc as modelConnections, fd as notifications, fe as parseSSEEvents, ff as parseSlashCommand, fg as parseSlashTokenInProgress, fh as parseStructuredResponse, fi as performPasswordLogin, fj as performSigningKeyLogin, fk as performSsoDeviceFlowLogin, fl as pickMainThread, fm as profile, fn as progressFetch, fo as projects, fp as quotaExceededFrom, fq as quotaFromStreamError, fr as reduceOutputItem, fs as refusalReason, ft as requireData, fu as requireOk, fv as resolveAuth, fw as resolveCitations, fx as resolveSummary, fy as resolveWorkspace, fz as responses, fA as searchChunks, fB as selectFullContextDocument, fC as selectWorkspace, fD as selectWorkspaceById, fE as sessions, fF as settings, fG as signatureRequests, fH as sliceToSubagentThread, fI as streamSSE, fJ as stripCitationMarkdown, fK as subagentJobLabel, fL as summarizeCitations, fM as tagUseCount, fN as tags, fO as tagsForScope, fP as tagsOfGroup, fQ as topLevelAgentSteps, fR as uploadSkill, fS as usdToGbp, fT as work, fU as workflowSteps, fV as workflows, fW as workspaceConflictOf, fX as workspaces, fY as wouldCreateTagCycle } from './browser-D0iEy5W9.js';
1
+ import { a4 as ConfigStore, a1 as CliConfig, a2 as CliCredentials, _ as ChatSession, cw as SkippedFile, di as UploadResult, t as AuthHeaders, dc as UploadBatchResult, dg as UploadOptions, dd as UploadDirectOptions, de as UploadDirectResult, cp as SUPPORTED_EXTENSIONS, bj as MailAttachment, S as ChatCryptoContext } from './browser-BvdQbiFa.js';
2
+ export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiStructuredOutputError, l as ArbiTransportError, m as ArbiWorkspaceChangedError, n as ArbiWorkspaceSupersededError, o as ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AttendeeRead, s as AuthContext, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, $ as CitationSummary, a0 as CitationToolSources, a3 as CommandDescriptor, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectionModel, a9 as ConnectorCatalogEntry, aa as ConnectorFolder, ab as ConnectorSyncProgress, ac as ConnectorSyncStatus, ad as ConnectorVendorKey, ae as ConnectorVisibilitySettings, af as ContextUsage, ag as ConversationResponse, ah as ConversationUsageResponse, ak as CreateWorkRequest, al as CreateWorkflowRequest, am as DEFAULT_AI_USD_PER_GBP, an as DOC_TERMINAL_STATUSES, ao as DRIVE_SYNC_VENDORS, ap as Database, aq as DatabaseAggregateRequest, ar as DatabaseAggregateResult, as as DatabaseColumn, at as DatabaseColumnWrite, au as DatabaseImportResult, av as DatabaseRow, aw as DatabaseRowPage, ax as DatabaseRowsQuery, ay as DateTimeSpec, az as DecryptedChat, aA as DecryptedChatMessage, aB as DeploymentHouseTemplate, aC as DirectModelUsage, aD as DocInfo, aE as DocInfoMap, aF as DocNameMap, aG as DocumentAutomationAction, aH as DocumentListFields, aI as DocumentListOrder, aJ as DocumentSelector, aK as DocumentWaiter, aL as DocumentWaiterOptions, aM as DriveSyncProgress, aN as DriveSyncSummary, aO as DuplicateContactError, aP as ENTITY_KINDS, aQ as EditScope, aR as EntityKind, aS as EventCreateBody, aT as EventPatchBody, aU as FLAT_TAG_KINDS, aY as FindTimeParams, aZ as FormattedWsMessage, a_ as FreeBusyEntry, a$ as FullContextSelection, b0 as GOOGLE_VENDORS, b1 as HolidayCountry, b2 as HouseTemplateCandidate, b3 as IMANAGE_VENDORS, b4 as IdentityErrorCode, b5 as IdentityPurchase, b6 as IdentityState, b7 as IdentityStatus, b8 as ImportResult, b9 as InvitationRead, ba as JsonSchemaOutputFormat, bb as LinkedRun, bc as ListAllOptions, bd as ListEventsParams, bf as ListPaginatedOptions, bg as MAILBOX_SYNC_VENDORS, bh as MAX_RETRIEVE_DOC_IDS, bi as MICROSOFT_VENDORS, bk as MessageLevel, bl as ModelConnection, bm as OAuthAccountKind, bn as OutputItemDone, bo as OverlayItem, bp as OverlayLayerName, bq as PRESENCE_KINDS, br as PROMPT_CONTEXT_CHARS, bs as ParsedResponse, bt as ParsedSlashCommand, bu as ParsedStructuredResponse, bv as PendingAuthResponse, bw as PersonKey, bx as PersonalConnectionInput, by as PlanStepsError, bz as PlanWorkRequest, bA as ProductResponse, bB as ProjectAddonKind, bC as ProjectAddonSettingsRequest, bD as ProjectBudget, bE as ProjectCheckoutRequest, bF as ProjectConversationUsageResponse, bG as ProjectCreateOptions, bH as ProjectDetails, bI as ProjectEventKind, bJ as ProjectEventResponse, bK as ProjectInvoicesResponse, bL as ProjectNextPeriodAddonsRequest, bM as ProjectPlanChangeRequest, bN as ProjectQuoteRequest, bO as ProjectResponse, bP as ProjectUpdateRequest, bQ as ProjectUsageResponse, bR as PublicBookingError, bS as PublicBookingPage, bT as QuotaExceeded, bU as RaisedSignal, bV as RawResponseEvent, bW as ReconnectOptions, bX as ReconnectableWsConnection, bY as ResolvedCitation, bZ as ResolvedRecipient, b_ as RespondParams, b$ as RespondPartstat, c0 as Response, c1 as ResponseCreateRequest, c2 as ResponseCreateResult, c3 as ResponseHandle, c4 as ResponseSnapshot, c5 as ResponseStart, c6 as ResponseStartOptions, c7 as ResponseStream, c8 as ResponseStreamEvent, c9 as ResponseTools, ca as RoomCreateBody, cb as RoomQuery, cc as RoomRead, cd as RunProgress, ce as RunStats, cf as RunStep, cg as RunWaitingOn, ch as SHAREPOINT_VENDORS, ci as SSEEvent, cj as SSEStreamCallbacks, ck as SSEStreamOutcome, cl as SSEStreamResult, cm as STEP_FIELD_OPTION_TONES, cn as STOP_ID_WAIT_MS, co as STOP_REPEAT_WINDOW_MS, cq as ScopedTarget, cr as SearchChunk, cs as SendBack, ct as ShareRead, cu as ShareRole, cv as SkillSummary, cx as SlackConnectionStatus, cy as StepActionRequest, cz as StepActivityEvent, cA as StepAssignee, cB as StepDisplay, cC as StepField, cD as StepFieldOption, cE as StepFieldOptionTone, cF as StepKind, cG as StepPhase, cH as StepSignal, cI as StepSignalWhen, cJ as StepState, cK as StepStatus, cL as SubagentBranchRecord, cM as SubagentLaneInfo, cN as SubmitBackgroundQueryOptions, cO as SubscribeParams, cP as SyncTriggerResult, cQ as TAG_KINDS, cR as TAG_NESTING_MAX_DEPTH, cS as TagChange, cT as TagFieldDefinition, cU as TagGroup, cV as TagKind, cW as TagKindField, cX as TagKindSchema, cY as TagLinks, cZ as TagListQuery, c_ as TagNode, c$ as TagResponse, d0 as TagScope, d1 as TagTreeRow, d2 as TaskPlan, d3 as TaskPlanStep, d4 as TaxQuoteResponse, d5 as Thread, d6 as ThreadsResponse, d7 as TimeSuggestion, d8 as TurnRequest, d9 as UpdateConversationRequest, db as UpdateWorkflowRequest, df as UploadDocumentsOptions, dh as UploadProgressListener, dj as UsageBreakdown, dk as UserConnectorEntry, dl as UserDailyUsageResponse, dm as UserInfo, dn as WebSocketAuthError, dp as WeeklyHoursSpec, dq as WorkStatus, dr as WorkflowAuthMode, ds as WorkflowResponse, dt as WorkflowRunHistoryResponse, du as WorkflowRunResponse, dv as WorkspaceConflict, dw as WorkspaceContext, dx as WorkspaceOpenResponse, dy as WorkspaceResponse, dz as WsConnection, dA as account, dB as agentconfig, dC as agents, dD as appendTranscriptionHints, dE as assistant, dF as authenticatedFetch, dG as bookPublicSlot, dH as buildCitationChunkData, dI as buildDocNameMap, dJ as buildDocumentTools, dK as buildFactsContextTool, dL as buildRetrievalChunkTool, dM as buildRetrievalFullContextTool, dN as buildRetrievalTocTool, dO as buildTurnRequest, dP as calendar, dQ as calls, dR as canTagHaveParent, dS as cancelPublicBooking, dT as capabilities, dU as chats, dV as composeConfiguration, dW as composeTools, dX as computeRunStats, dY as connectErrorMessage, dZ as connectWebSocket, d_ as connectWithReconnect, d$ as connectors, e0 as contacts, e1 as continuityPrompt, e2 as conversations, e3 as countCitations, e4 as createAuthenticatedClient, e5 as createDocumentWaiter, e6 as createIndexAssigner, e7 as databases, e8 as defaultKindForFormat, e9 as doctags, ea as documentTools, eb as documents, ec as estimateDraftTokens, ed as extractDocumentIdsFromMessages, ee as extractFactIdsFromMessages, ef as extractSubagentLanes, eg as facts, eh as files, ei as filterDocumentTags, ej as filterSkills, ek as findLeafForTaskMessage, el as findMainSiblingLeaf, em as findReplyTarget, en as findSubagentRunId, eo as flattenTagTree, ep as formatAgentStepLabel, eq as formatFileSize, er as formatGbp, es as formatGbpPerMillionTokens, et as formatItemLabel, eu as formatStreamSummary, ev as formatTokens, ew as formatUserName, ex as formatWorkspaceChoices, ey as formatWsMessage, ez as generateEncryptedWorkspaceKey, eA as generateNewWorkspaceKey, eB as getAgentStepLabel, eC as getAttachableRunId, eD as getChildTags, eE as getContextRemainingPercent, eF as getContextUsedPercent, eG as getContextUsedTokens, eH as getCurrentStep, eI as getEligibleParentTags, eJ as getErrorCode, eK as getErrorMessage, eL as getPublicBookingPage, eM as getRawWorkspaceKey, eN as getRunToAttach, eO as getRunToCancel, eP as getStepDisplay, eQ as getStepTool, eR as getSubagentBranchRecord, eS as getTagDescendantIds, eT as health, eU as houseTemplates, eV as hydrateAgentSteps, eX as identityErrorCode, eW as identityVerification, eY as instructions, eZ as isAnnotationTag, e_ as isConnectorVendorVisible, e$ as isDriveSyncVendor, f0 as isEntityTag, f1 as isFlatKind, f2 as isLabelTag, f3 as isMailboxSyncVendor, f4 as isNearAiUsageBudget, f5 as isPresenceTag, f6 as isSharePointVendor, f7 as isSharedSkill, f8 as isTraceItem, f9 as mail, fa as mcpTools, fb as mergeAgentSteps, fc as modelConnections, fd as notifications, fe as parseSSEEvents, ff as parseSlashCommand, fg as parseSlashTokenInProgress, fh as parseStructuredResponse, fi as performPasswordLogin, fj as performSigningKeyLogin, fk as performSsoDeviceFlowLogin, fl as pickMainThread, fm as profile, fn as progressFetch, fo as projects, fp as quotaExceededFrom, fq as quotaFromStreamError, fr as reduceOutputItem, fs as refusalReason, ft as requireData, fu as requireOk, fv as resolveAuth, fw as resolveCitations, fx as resolveSummary, fy as resolveWorkspace, fz as responses, fA as searchChunks, fB as selectFullContextDocument, fC as selectWorkspace, fD as selectWorkspaceById, fE as sessions, fF as settings, fG as signatureRequests, fH as sliceToSubagentThread, fI as streamSSE, fJ as stripCitationMarkdown, fK as subagentJobLabel, fL as summarizeCitations, fM as tagUseCount, fN as tags, fO as tagsForScope, fP as tagsOfGroup, fQ as topLevelAgentSteps, fR as uploadSkill, fS as usdToGbp, fT as work, fU as workflowSteps, fV as workflows, fW as workspaceConflictOf, fX as workspaces, fY as wouldCreateTagCycle } from './browser-BvdQbiFa.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';
@@ -189,7 +189,7 @@ declare function uploadLocalFile(auth: AuthHeaders, filePath: string, options?:
189
189
  * the CLI this is unwrapped lazily from the stored signing key + workspace
190
190
  * ``wrapped_key``; see ``getRawWorkspaceKey`` in ``auth.ts``.
191
191
  */
192
- declare function uploadLocalFilesDirect(arbi: ArbiClient, workspaceKey: Uint8Array, filePaths: string[], options?: UploadDirectOptions): Promise<UploadDirectResult>;
192
+ declare function uploadLocalFilesDirect(arbi: ArbiClient, workspaceKey: Uint8Array, filePaths: string[], options: UploadDirectOptions): Promise<UploadDirectResult>;
193
193
  /**
194
194
  * Options for the direct-upload directory/zip/archive helpers. Mirrors the
195
195
  * legacy ``UploadDirectoryOptions`` so CLI consumers can switch between the
@@ -205,26 +205,28 @@ interface UploadDirectoryDirectOptions {
205
205
  };
206
206
  }) => void;
207
207
  configExtId?: string;
208
+ /** The workspace whose key the files are encrypted with, named on every request. */
209
+ workspaceExtId: string;
208
210
  }
209
211
  /**
210
212
  * Walk a directory, group supported files by their relative subfolder (with
211
213
  * the directory basename as the root), and upload each group via the
212
214
  * direct-to-MinIO flow.
213
215
  */
214
- declare function uploadLocalDirectoryDirect(arbi: ArbiClient, workspaceKey: Uint8Array, dirPath: string, options?: UploadDirectoryDirectOptions): Promise<UploadBatchResult>;
216
+ declare function uploadLocalDirectoryDirect(arbi: ArbiClient, workspaceKey: Uint8Array, dirPath: string, options: UploadDirectoryDirectOptions): Promise<UploadBatchResult>;
215
217
  /**
216
218
  * Extract a zip archive in memory, group supported entries by their internal
217
219
  * folder structure, and upload each group via the direct-to-MinIO flow. Uses
218
220
  * jszip via dynamic import so the dep is optional at load time. Mirrors the
219
221
  * single-root detection behavior of ``uploadZip``.
220
222
  */
221
- declare function uploadLocalZipDirect(arbi: ArbiClient, workspaceKey: Uint8Array, zipPath: string, options?: UploadDirectoryDirectOptions): Promise<UploadBatchResult>;
223
+ declare function uploadLocalZipDirect(arbi: ArbiClient, workspaceKey: Uint8Array, zipPath: string, options: UploadDirectoryDirectOptions): Promise<UploadBatchResult>;
222
224
  /**
223
225
  * Upload a 7z/rar archive via the direct-to-MinIO flow. Shells out to the
224
226
  * system ``7z`` binary to extract to a temporary directory, then delegates
225
227
  * to ``uploadLocalDirectoryDirect``. The temp directory is removed on exit.
226
228
  */
227
- declare function uploadLocalArchiveDirect(arbi: ArbiClient, workspaceKey: Uint8Array, archivePath: string, options?: UploadDirectoryDirectOptions): Promise<UploadBatchResult>;
229
+ declare function uploadLocalArchiveDirect(arbi: ArbiClient, workspaceKey: Uint8Array, archivePath: string, options: UploadDirectoryDirectOptions): Promise<UploadBatchResult>;
228
230
  /**
229
231
  * Upload all supported files from a directory, preserving folder structure.
230
232
  * Files are grouped by their relative folder path, then each group is split
package/dist/index.js CHANGED
@@ -6013,16 +6013,40 @@ async function updateDocuments(arbi, documents) {
6013
6013
  "Failed to update documents"
6014
6014
  );
6015
6015
  }
6016
- async function uploadUrl(arbi, urls, shared = false, configExtId) {
6017
- return requireData(
6016
+ async function uploadUrl(arbi, urls, options) {
6017
+ return requireUploadData(
6018
6018
  await arbi.fetch.POST("/v1/document/upload-url", {
6019
6019
  params: {
6020
- query: { urls, shared, ...configExtId ? { config_ext_id: configExtId } : {} }
6020
+ query: {
6021
+ urls,
6022
+ shared: options.shared ?? false,
6023
+ workspace_ext_id: options.workspaceExtId,
6024
+ ...options.configExtId ? { config_ext_id: options.configExtId } : {}
6025
+ }
6021
6026
  }
6022
6027
  }),
6023
6028
  "Failed to upload from URLs"
6024
6029
  );
6025
6030
  }
6031
+ var UPLOAD_WORKSPACE_CONFLICT_MESSAGES = {
6032
+ workspace_mismatch: "These files were prepared for another workspace, so they were not saved. Upload them again.",
6033
+ workspace_key_required: "The workspace couldn't be unlocked for this upload, so the files were not saved."
6034
+ };
6035
+ function requireUploadData(result, message) {
6036
+ const status = result.response?.status;
6037
+ const conflict = result.error && status === 409 ? workspaceConflictOf(result.error) : null;
6038
+ if (conflict) {
6039
+ throw new ArbiApiError(
6040
+ UPLOAD_WORKSPACE_CONFLICT_MESSAGES[conflict.code],
6041
+ result.error,
6042
+ status,
6043
+ {
6044
+ code: conflict.code
6045
+ }
6046
+ );
6047
+ }
6048
+ return requireData(result, message);
6049
+ }
6026
6050
  async function uploadDocuments(arbi, files, options = {}) {
6027
6051
  const query2 = {};
6028
6052
  if (options.shared !== void 0) query2.shared = options.shared;
@@ -6047,7 +6071,7 @@ async function uploadDocuments(arbi, files, options = {}) {
6047
6071
  return form;
6048
6072
  }
6049
6073
  });
6050
- return requireData(result, "Failed to upload documents");
6074
+ return requireUploadData(result, "Failed to upload documents");
6051
6075
  }
6052
6076
  async function similarDocuments(arbi, options = {}) {
6053
6077
  return requireData(
@@ -6204,6 +6228,9 @@ async function presignedPut(url, body, onProgress, headers) {
6204
6228
  }
6205
6229
  }
6206
6230
  async function uploadDocumentsDirect(arbi, workspaceKey, files, options) {
6231
+ if (!options?.workspaceExtId) {
6232
+ throw new ArbiError("uploadDocumentsDirect needs options.workspaceExtId (the key's workspace)");
6233
+ }
6207
6234
  if (files.length === 0) return { doc_ext_ids: [], skipped: [] };
6208
6235
  const SECRETBOX_ENVELOPE_OVERHEAD = 40;
6209
6236
  const declared = files.map((f2) => ({
@@ -6215,21 +6242,19 @@ async function uploadDocumentsDirect(arbi, workspaceKey, files, options) {
6215
6242
  }));
6216
6243
  const initBody = {
6217
6244
  files: declared,
6218
- shared: options?.shared !== false,
6219
- config_ext_id: options?.configExtId ?? null,
6245
+ shared: options.shared !== false,
6246
+ config_ext_id: options.configExtId ?? null,
6220
6247
  // Only sent when set, so a plain upload is accepted by any server version.
6221
- ...options?.versionOf ? { version_of: options.versionOf } : {},
6222
- wp_type: options?.wpType ?? null,
6223
- tag_ext_id: options?.tagExtId ?? null,
6224
- folder: options?.folder ? sanitizeFolderPath(options.folder) : null,
6225
- presign_expires_in: options?.presignExpiresIn ?? 3600
6248
+ ...options.versionOf ? { version_of: options.versionOf } : {},
6249
+ wp_type: options.wpType ?? null,
6250
+ tag_ext_id: options.tagExtId ?? null,
6251
+ folder: options.folder ? sanitizeFolderPath(options.folder) : null,
6252
+ presign_expires_in: options.presignExpiresIn ?? 3600
6226
6253
  };
6227
- const guarded = options?.inWorkspace ?? ((send) => send());
6228
- const initResult = await guarded(
6229
- async () => requireData(
6230
- await arbi.fetch.POST("/v1/document/upload-init", { body: initBody }),
6231
- "Failed to initialize direct upload"
6232
- )
6254
+ const query2 = { workspace_ext_id: options.workspaceExtId };
6255
+ const initResult = requireUploadData(
6256
+ await arbi.fetch.POST("/v1/document/upload-init", { params: { query: query2 }, body: initBody }),
6257
+ "Failed to initialize direct upload"
6233
6258
  );
6234
6259
  const items = initResult.items ?? [];
6235
6260
  const bytesByName = /* @__PURE__ */ new Map();
@@ -6263,7 +6288,7 @@ async function uploadDocumentsDirect(arbi, workspaceKey, files, options) {
6263
6288
  const total = ciphertext.length;
6264
6289
  try {
6265
6290
  await presignedPut(item.upload_url, ciphertext, (loaded, putTotal) => {
6266
- options?.onBytesProgress?.({
6291
+ options.onBytesProgress?.({
6267
6292
  fileIndex,
6268
6293
  fileName: item.file_name,
6269
6294
  loaded,
@@ -6275,7 +6300,7 @@ async function uploadDocumentsDirect(arbi, workspaceKey, files, options) {
6275
6300
  `Presigned PUT for ${item.doc_ext_id} failed: ${err instanceof Error ? err.message : String(err)}`
6276
6301
  );
6277
6302
  }
6278
- options?.onBytesProgress?.({
6303
+ options.onBytesProgress?.({
6279
6304
  fileIndex,
6280
6305
  fileName: item.file_name,
6281
6306
  loaded: total,
@@ -6286,16 +6311,15 @@ async function uploadDocumentsDirect(arbi, workspaceKey, files, options) {
6286
6311
  if (toCommit.length === 0) {
6287
6312
  return { doc_ext_ids: [], skipped };
6288
6313
  }
6289
- const commitResult = await guarded(
6290
- async () => requireData(
6291
- await arbi.fetch.POST("/v1/document/upload-commit", {
6292
- body: {
6293
- doc_ext_ids: toCommit,
6294
- tag_ext_id: options?.tagExtId ?? null
6295
- }
6296
- }),
6297
- "Failed to commit direct upload"
6298
- )
6314
+ const commitResult = requireUploadData(
6315
+ await arbi.fetch.POST("/v1/document/upload-commit", {
6316
+ params: { query: query2 },
6317
+ body: {
6318
+ doc_ext_ids: toCommit,
6319
+ tag_ext_id: options.tagExtId ?? null
6320
+ }
6321
+ }),
6322
+ "Failed to commit direct upload"
6299
6323
  );
6300
6324
  return {
6301
6325
  doc_ext_ids: commitResult.doc_ext_ids ?? [],
@@ -11790,6 +11814,10 @@ var Arbi = class {
11790
11814
  if (target) await this.openWorkspace(target);
11791
11815
  return target;
11792
11816
  }
11817
+ /** {@link targetWorkspace} for a call that cannot go without one: throws when none is known. */
11818
+ async requireTargetWorkspace(workspaceId) {
11819
+ return await this.targetWorkspace(workspaceId) ?? this.requireWorkspace();
11820
+ }
11793
11821
  /**
11794
11822
  * Make a workspace the CURRENT one: decrypt its key, open it on the server (which makes it the
11795
11823
  * session's active workspace) and record it in the session. This is navigation: only the host's
@@ -12403,20 +12431,23 @@ var Arbi = class {
12403
12431
  finaliseTranslation: (docId) => finaliseTranslation(this.requireClient(), docId),
12404
12432
  delete: (externalIds) => deleteDocuments(this.requireClient(), externalIds),
12405
12433
  update: (documents) => updateDocuments(this.requireClient(), documents),
12406
- uploadUrl: (urls, options) => {
12407
- this.requireWorkspace();
12408
- return uploadUrl(
12409
- this.requireClient(),
12410
- urls,
12411
- options?.shared,
12412
- options?.configExtId
12413
- );
12434
+ /** Make documents from web addresses in the current workspace, or `options.workspaceId`. */
12435
+ uploadUrl: async (urls, options) => {
12436
+ const { workspaceId, ...rest } = options ?? {};
12437
+ return uploadUrl(this.requireClient(), urls, {
12438
+ workspaceExtId: await this.requireTargetWorkspace(workspaceId),
12439
+ ...rest
12440
+ });
12414
12441
  },
12415
12442
  /**
12416
- * Upload files in one request (the open workspace, or `options.workspaceExtId`): folder, tag,
12417
- * sharing, config, a new version of a document.
12443
+ * Upload files in one request into the current workspace, or `options.workspaceExtId`: folder,
12444
+ * tag, sharing, config, a new version of a document. The request names the workspace either
12445
+ * way, so a switch while it is in flight cannot move it.
12418
12446
  */
12419
- upload: (files, options) => uploadDocuments(this.requireClient(), files, options),
12447
+ upload: async (files, options) => uploadDocuments(this.requireClient(), files, {
12448
+ ...options,
12449
+ workspaceExtId: await this.requireTargetWorkspace(options?.workspaceExtId ?? void 0)
12450
+ }),
12420
12451
  /** Near-duplicate pairs at or above `threshold` (or one document's, `docId`). */
12421
12452
  similar: (options) => similarDocuments(this.requireClient(), options),
12422
12453
  /**
@@ -12441,19 +12472,15 @@ var Arbi = class {
12441
12472
  },
12442
12473
  /**
12443
12474
  * Upload files straight to storage, encrypted here with `workspaceKey` (`uploadDocumentsDirect`),
12444
- * into `workspaceId`, which must be the workspace open NOW. `upload-init` and `upload-commit`
12445
- * name no workspace yet (they act on the session's open one), so each runs under
12446
- * `readInWorkspace`: it is not sent, or its answer not kept, unless `workspaceId` is open when
12447
- * it is sent and still when it returns. A switch refuses the upload
12448
- * (`ArbiWorkspaceChangedError`) instead of storing files encrypted with one workspace's key in
12449
- * another. For any other workspace use `upload` with `workspaceExtId`, which names it.
12475
+ * into `workspaceId`, whose key it must be. `upload-init` and `upload-commit` name that
12476
+ * workspace (made usable for this session first, not switched to), so a switch while the
12477
+ * upload runs cannot move the files into another workspace.
12450
12478
  */
12451
- uploadDirect: (workspaceId, workspaceKey, files, options) => {
12452
- if (this.currentWorkspaceId !== workspaceId)
12453
- return Promise.reject(new ArbiWorkspaceChangedError(workspaceId, "uploading to"));
12479
+ uploadDirect: async (workspaceId, workspaceKey, files, options) => {
12480
+ const workspaceExtId = await this.requireTargetWorkspace(workspaceId);
12454
12481
  return uploadDocumentsDirect(this.requireClient(), workspaceKey, files, {
12455
12482
  ...options,
12456
- inWorkspace: (send) => this.readInWorkspace(workspaceId, send)
12483
+ workspaceExtId
12457
12484
  });
12458
12485
  },
12459
12486
  /** Download a document's original file — its current version, or `version`. */
@@ -13820,7 +13847,8 @@ async function runGroupedDirectUpload(arbi, workspaceKey, groups, options) {
13820
13847
  options?.onBatchStart?.(progress);
13821
13848
  const result = await uploadDocumentsDirect(arbi, workspaceKey, group.files, {
13822
13849
  folder: group.folder || void 0,
13823
- configExtId: options?.configExtId
13850
+ configExtId: options.configExtId,
13851
+ workspaceExtId: options.workspaceExtId
13824
13852
  });
13825
13853
  const skipped = result.skipped ?? [];
13826
13854
  allDocIds.push(...result.doc_ext_ids);