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