@arbidocs/sdk 0.5.68 → 0.5.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{browser-D0iEy5W9.d.ts → browser-Bf6pRBuP.d.ts} +294 -195
- package/dist/{browser-BsuUurv5.d.cts → browser-CA2ecqVP.d.cts} +294 -195
- package/dist/browser.cjs +240 -65
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +241 -67
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +242 -66
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.js +243 -68
- package/dist/index.js.map +1 -1
- package/examples/react-chat/package.json +2 -2
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a4 as ConfigStore, a1 as CliConfig, a2 as CliCredentials, _ as ChatSession,
|
|
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
|
|
1
|
+
import { a4 as ConfigStore, a1 as CliConfig, a2 as CliCredentials, _ as ChatSession, cz as SkippedFile, dl as UploadResult, t as AuthHeaders, df as UploadBatchResult, dj as UploadOptions, dg as UploadDirectOptions, dh as UploadDirectResult, cp as SUPPORTED_EXTENSIONS, bj as MailAttachment, S as ChatCryptoContext } from './browser-CA2ecqVP.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 SecureMailCompose, ct as SecureMailSend, cu as SecureMailSender, cv as SendBack, cw as ShareRead, cx as ShareRole, cy as SkillSummary, cA as SlackConnectionStatus, cB as StepActionRequest, cC as StepActivityEvent, cD as StepAssignee, cE as StepDisplay, cF as StepField, cG as StepFieldOption, cH as StepFieldOptionTone, cI as StepKind, cJ as StepPhase, cK as StepSignal, cL as StepSignalWhen, cM as StepState, cN as StepStatus, cO as SubagentBranchRecord, cP as SubagentLaneInfo, cQ as SubmitBackgroundQueryOptions, cR as SubscribeParams, cS as SyncTriggerResult, cT as TAG_KINDS, cU as TAG_NESTING_MAX_DEPTH, cV as TagChange, cW as TagFieldDefinition, cX as TagGroup, cY as TagKind, cZ as TagKindField, c_ as TagKindSchema, c$ as TagLinks, d0 as TagListQuery, d1 as TagNode, d2 as TagResponse, d3 as TagScope, d4 as TagTreeRow, d5 as TaskPlan, d6 as TaskPlanStep, d7 as TaxQuoteResponse, d8 as Thread, d9 as ThreadsResponse, da as TimeSuggestion, db as TurnRequest, dc as UpdateConversationRequest, de as UpdateWorkflowRequest, di as UploadDocumentsOptions, dk as UploadProgressListener, dm as UsageBreakdown, dn as UserConnectorEntry, dp as UserDailyUsageResponse, dq as UserInfo, dr as WebSocketAuthError, ds as WeeklyHoursSpec, dt as WorkStatus, du as WorkflowAuthMode, dv as WorkflowResponse, dw as WorkflowRunHistoryResponse, dx as WorkflowRunResponse, dy as WorkspaceConflict, dz as WorkspaceContext, dA as WorkspaceOpenResponse, dB as WorkspaceResponse, 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, dO as buildRetrievalChunkTool, dP as buildRetrievalFullContextTool, dQ as buildRetrievalTocTool, dR as buildTurnRequest, dS as calendar, dT as calls, dU as canTagHaveParent, dV as cancelPublicBooking, dW as capabilities, dX as chats, dY as composeConfiguration, dZ as composeTools, d_ as computeRunStats, d$ as connectErrorMessage, e0 as connectWebSocket, e1 as connectWithReconnect, e2 as connectors, e3 as contacts, e4 as continuityPrompt, e5 as conversations, e6 as countCitations, e7 as createAuthenticatedClient, e8 as createDocumentWaiter, e9 as createIndexAssigner, ea as databases, eb as defaultKindForFormat, ec as doctags, ed as documentTools, ee as documents, ef as estimateDraftTokens, eg as extractDocumentIdsFromMessages, eh as extractFactIdsFromMessages, ei as extractSubagentLanes, ej as facts, ek as files, el as filterDocumentTags, em as filterSkills, en as findLeafForTaskMessage, eo as findMainSiblingLeaf, ep as findReplyTarget, eq as findSubagentRunId, er as flattenTagTree, es as formatAgentStepLabel, et as formatFileSize, eu as formatGbp, ev as formatGbpPerMillionTokens, ew as formatItemLabel, ex as formatStreamSummary, ey as formatTokens, ez as formatUserName, eA as formatWorkspaceChoices, eB as formatWsMessage, eC as generateEncryptedWorkspaceKey, eD as generateNewWorkspaceKey, eE as getAgentStepLabel, eF as getAttachableRunId, eG as getChildTags, eH as getContextRemainingPercent, eI as getContextUsedPercent, eJ as getContextUsedTokens, eK as getCurrentStep, eL as getEligibleParentTags, eM as getErrorCode, eN as getErrorMessage, eO as getPublicBookingPage, eP as getRawWorkspaceKey, eQ as getRunToAttach, eR as getRunToCancel, eS as getStepDisplay, eT as getStepTool, eU as getSubagentBranchRecord, eV as getTagDescendantIds, eW as health, eX as houseTemplates, eY as hydrateAgentSteps, e_ as identityErrorCode, eZ as identityVerification, e$ as instructions, f0 as isAnnotationTag, f1 as isConnectorVendorVisible, f2 as isDriveSyncVendor, f3 as isEntityTag, f4 as isFlatKind, f5 as isLabelTag, f6 as isMailboxSyncVendor, f7 as isNearAiUsageBudget, f8 as isPresenceTag, f9 as isSharePointVendor, fa as isSharedSkill, fb as isTraceItem, fc as mail, fd as mcpTools, fe as mergeAgentSteps, ff as modelConnections, fg as notifications, fh as parseSSEEvents, fi as parseSlashCommand, fj as parseSlashTokenInProgress, fk as parseStructuredResponse, fl as performPasswordLogin, fm as performSigningKeyLogin, fn as performSsoDeviceFlowLogin, fo as pickMainThread, fp as profile, fq as progressFetch, fr as projects, fs as quotaExceededFrom, ft as quotaFromStreamError, fu as reduceOutputItem, fv as refusalReason, fw as requireData, fx as requireOk, fy as resolveAuth, fz as resolveCitations, fA as resolveSummary, fB as resolveWorkspace, fC as responses, fD as searchChunks, fE as secureMail, fF as selectFullContextDocument, fG as selectWorkspace, fH as selectWorkspaceById, fI as sessions, fJ as settings, fK as signatureRequests, fL as sliceToSubagentThread, fM as streamSSE, fN as stripCitationMarkdown, fO as subagentJobLabel, fP as summarizeCitations, fQ as tagUseCount, fR as tags, fS as tagsForScope, fT as tagsOfGroup, fU as topLevelAgentSteps, fV as uploadSkill, fW as usdToGbp, fX as work, fY as workflowSteps, fZ as workflows, f_ as workspaceConflictOf, f$ as workspaces, g0 as wouldCreateTagCycle } from './browser-CA2ecqVP.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
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
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
|
|
1
|
+
import { a4 as ConfigStore, a1 as CliConfig, a2 as CliCredentials, _ as ChatSession, cz as SkippedFile, dl as UploadResult, t as AuthHeaders, df as UploadBatchResult, dj as UploadOptions, dg as UploadDirectOptions, dh as UploadDirectResult, cp as SUPPORTED_EXTENSIONS, bj as MailAttachment, S as ChatCryptoContext } from './browser-Bf6pRBuP.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 SecureMailCompose, ct as SecureMailSend, cu as SecureMailSender, cv as SendBack, cw as ShareRead, cx as ShareRole, cy as SkillSummary, cA as SlackConnectionStatus, cB as StepActionRequest, cC as StepActivityEvent, cD as StepAssignee, cE as StepDisplay, cF as StepField, cG as StepFieldOption, cH as StepFieldOptionTone, cI as StepKind, cJ as StepPhase, cK as StepSignal, cL as StepSignalWhen, cM as StepState, cN as StepStatus, cO as SubagentBranchRecord, cP as SubagentLaneInfo, cQ as SubmitBackgroundQueryOptions, cR as SubscribeParams, cS as SyncTriggerResult, cT as TAG_KINDS, cU as TAG_NESTING_MAX_DEPTH, cV as TagChange, cW as TagFieldDefinition, cX as TagGroup, cY as TagKind, cZ as TagKindField, c_ as TagKindSchema, c$ as TagLinks, d0 as TagListQuery, d1 as TagNode, d2 as TagResponse, d3 as TagScope, d4 as TagTreeRow, d5 as TaskPlan, d6 as TaskPlanStep, d7 as TaxQuoteResponse, d8 as Thread, d9 as ThreadsResponse, da as TimeSuggestion, db as TurnRequest, dc as UpdateConversationRequest, de as UpdateWorkflowRequest, di as UploadDocumentsOptions, dk as UploadProgressListener, dm as UsageBreakdown, dn as UserConnectorEntry, dp as UserDailyUsageResponse, dq as UserInfo, dr as WebSocketAuthError, ds as WeeklyHoursSpec, dt as WorkStatus, du as WorkflowAuthMode, dv as WorkflowResponse, dw as WorkflowRunHistoryResponse, dx as WorkflowRunResponse, dy as WorkspaceConflict, dz as WorkspaceContext, dA as WorkspaceOpenResponse, dB as WorkspaceResponse, 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, dO as buildRetrievalChunkTool, dP as buildRetrievalFullContextTool, dQ as buildRetrievalTocTool, dR as buildTurnRequest, dS as calendar, dT as calls, dU as canTagHaveParent, dV as cancelPublicBooking, dW as capabilities, dX as chats, dY as composeConfiguration, dZ as composeTools, d_ as computeRunStats, d$ as connectErrorMessage, e0 as connectWebSocket, e1 as connectWithReconnect, e2 as connectors, e3 as contacts, e4 as continuityPrompt, e5 as conversations, e6 as countCitations, e7 as createAuthenticatedClient, e8 as createDocumentWaiter, e9 as createIndexAssigner, ea as databases, eb as defaultKindForFormat, ec as doctags, ed as documentTools, ee as documents, ef as estimateDraftTokens, eg as extractDocumentIdsFromMessages, eh as extractFactIdsFromMessages, ei as extractSubagentLanes, ej as facts, ek as files, el as filterDocumentTags, em as filterSkills, en as findLeafForTaskMessage, eo as findMainSiblingLeaf, ep as findReplyTarget, eq as findSubagentRunId, er as flattenTagTree, es as formatAgentStepLabel, et as formatFileSize, eu as formatGbp, ev as formatGbpPerMillionTokens, ew as formatItemLabel, ex as formatStreamSummary, ey as formatTokens, ez as formatUserName, eA as formatWorkspaceChoices, eB as formatWsMessage, eC as generateEncryptedWorkspaceKey, eD as generateNewWorkspaceKey, eE as getAgentStepLabel, eF as getAttachableRunId, eG as getChildTags, eH as getContextRemainingPercent, eI as getContextUsedPercent, eJ as getContextUsedTokens, eK as getCurrentStep, eL as getEligibleParentTags, eM as getErrorCode, eN as getErrorMessage, eO as getPublicBookingPage, eP as getRawWorkspaceKey, eQ as getRunToAttach, eR as getRunToCancel, eS as getStepDisplay, eT as getStepTool, eU as getSubagentBranchRecord, eV as getTagDescendantIds, eW as health, eX as houseTemplates, eY as hydrateAgentSteps, e_ as identityErrorCode, eZ as identityVerification, e$ as instructions, f0 as isAnnotationTag, f1 as isConnectorVendorVisible, f2 as isDriveSyncVendor, f3 as isEntityTag, f4 as isFlatKind, f5 as isLabelTag, f6 as isMailboxSyncVendor, f7 as isNearAiUsageBudget, f8 as isPresenceTag, f9 as isSharePointVendor, fa as isSharedSkill, fb as isTraceItem, fc as mail, fd as mcpTools, fe as mergeAgentSteps, ff as modelConnections, fg as notifications, fh as parseSSEEvents, fi as parseSlashCommand, fj as parseSlashTokenInProgress, fk as parseStructuredResponse, fl as performPasswordLogin, fm as performSigningKeyLogin, fn as performSsoDeviceFlowLogin, fo as pickMainThread, fp as profile, fq as progressFetch, fr as projects, fs as quotaExceededFrom, ft as quotaFromStreamError, fu as reduceOutputItem, fv as refusalReason, fw as requireData, fx as requireOk, fy as resolveAuth, fz as resolveCitations, fA as resolveSummary, fB as resolveWorkspace, fC as responses, fD as searchChunks, fE as secureMail, fF as selectFullContextDocument, fG as selectWorkspace, fH as selectWorkspaceById, fI as sessions, fJ as settings, fK as signatureRequests, fL as sliceToSubagentThread, fM as streamSSE, fN as stripCitationMarkdown, fO as subagentJobLabel, fP as summarizeCitations, fQ as tagUseCount, fR as tags, fS as tagsForScope, fT as tagsOfGroup, fU as topLevelAgentSteps, fV as uploadSkill, fW as usdToGbp, fX as work, fY as workflowSteps, fZ as workflows, f_ as workspaceConflictOf, f$ as workspaces, g0 as wouldCreateTagCycle } from './browser-Bf6pRBuP.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
|
|
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
|
|
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
|
|
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
|
|
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
|