@arbidocs/sdk 0.5.14 → 0.5.16
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-BNmzQBfy.d.cts → browser-4TgMltob.d.cts} +251 -8
- package/dist/{browser-B4w2pgiI.d.ts → browser-Be_hfP61.d.ts} +251 -8
- package/dist/browser.cjs +196 -15
- 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 +196 -15
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +264 -83
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +260 -79
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/browser.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
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 ArbiHostSession, h as ArbiOptions, j as ArbiWorkspaceChangedError, k as ArbiWorkspaceSupersededError, l as AskHandlers, m as AskRequest, n as AttendeeRead, o as AuthContext, p as AuthHeaders, q as AuthMode, r as AuthenticatedClient, B as BookingConfirmation, s as BookingPage, t as BookingPageWriteBody, u as BookingRequestBody, v as BridgeTokensOptions, C as CalDavConnectBody, w as CalDavProfile, x as CalendarAccount, y as CalendarAccountKind, z as CalendarCreateBody, D as CalendarEvent, E as CalendarKeys, F as CalendarRead, G as CalendarSettings, H as CalendarSettingsBody, I as CalendarUpdate, J as CalendarWindow, K as CallApiError, L as ChatAttachmentFile, M as ChatAttachmentInput, N as ChatCryptoContext, O as ChatKeyRing, P as ChatKind, Q as ChatMemberKey, R as ChatMemberResponse, S as ChatMessage, T as ChatMessageResponse, U as ChatResponse, V as ChatSession, W as CitationSummary, X as CitationToolSources, Y as CliConfig, Z as CliCredentials, _ as CommandDescriptor, $ as ConfigStore, a0 as ConnectOptions, a1 as ConnectorCatalogEntry, a2 as ConnectorFolder, a3 as ConnectorSyncProgress, a4 as ConnectorSyncStatus, a5 as ConnectorVendorKey, a6 as ConnectorVisibilitySettings, a7 as ContextUsage, a8 as ConversationResponse, a9 as ConversationUsageResponse, aa as CreateFactRequest, ab as CreateFactsRequest, ac as CreateWorkRequest, ad as CreateWorkflowRequest, ae as DEFAULT_AI_USD_PER_GBP, ag as DRIVE_SYNC_VENDORS, ah as
|
|
1
|
+
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 ArbiHostSession, h as ArbiOptions, j as ArbiWorkspaceChangedError, k as ArbiWorkspaceSupersededError, l as AskHandlers, m as AskRequest, n as AttendeeRead, o as AuthContext, p as AuthHeaders, q as AuthMode, r as AuthenticatedClient, B as BookingConfirmation, s as BookingPage, t as BookingPageWriteBody, u as BookingRequestBody, v as BridgeTokensOptions, C as CalDavConnectBody, w as CalDavProfile, x as CalendarAccount, y as CalendarAccountKind, z as CalendarCreateBody, D as CalendarEvent, E as CalendarKeys, F as CalendarRead, G as CalendarSettings, H as CalendarSettingsBody, I as CalendarUpdate, J as CalendarWindow, K as CallApiError, L as ChatAttachmentFile, M as ChatAttachmentInput, N as ChatCryptoContext, O as ChatKeyRing, P as ChatKind, Q as ChatMemberKey, R as ChatMemberResponse, S as ChatMessage, T as ChatMessageResponse, U as ChatResponse, V as ChatSession, W as CitationSummary, X as CitationToolSources, Y as CliConfig, Z as CliCredentials, _ as CommandDescriptor, $ as ConfigStore, a0 as ConnectOptions, a1 as ConnectorCatalogEntry, a2 as ConnectorFolder, a3 as ConnectorSyncProgress, a4 as ConnectorSyncStatus, a5 as ConnectorVendorKey, a6 as ConnectorVisibilitySettings, a7 as ContextUsage, a8 as ConversationResponse, a9 as ConversationUsageResponse, aa as CreateFactRequest, ab as CreateFactsRequest, ac as CreateWorkRequest, ad as CreateWorkflowRequest, ae as DEFAULT_AI_USD_PER_GBP, ag as DRIVE_SYNC_VENDORS, ah as Database, ai as DatabaseColumn, aj as DatabaseColumnWrite, ak as DatabaseImportResult, al as DatabaseRow, am as DatabaseRowPage, an as DatabaseRowsQuery, ao as DateTimeSpec, aq as DecryptedChatMessage, ar as DeploymentHouseTemplate, as as DocInfo, at as DocInfoMap, av as DocumentAutomationAction, ay as DocumentSelector, aB as DriveSyncProgress, aC as DriveSyncSummary, aD as DuplicateContactError, aE as ENTITY_KINDS, aF as EditScope, aG as EntityKind, aH as EventCreateBody, aI as EventPatchBody, aJ as FLAT_TAG_KINDS, aK as FactResponse, aL as FactSearchRequest, aM as FactSearchResponse, aN as FindTimeParams, aP as FreeBusyEntry, aQ as FullContextSelection, aR as GOOGLE_VENDORS, aS as HolidayCountry, aT as HouseTemplateCandidate, aU as IMANAGE_VENDORS, aV as IdentityErrorCode, aW as IdentityPurchase, aX as IdentityState, aY as IdentityStatus, aZ as ImportResult, a_ as InvitationRead, a$ as LinkedRun, b1 as ListEventsParams, b2 as ListFactsOptions, b4 as MAILBOX_SYNC_VENDORS, b5 as MAX_RETRIEVE_DOC_IDS, b6 as MICROSOFT_VENDORS, b9 as OAuthAccountKind, ba as OutputItemDone, bb as OverlayItem, bc as OverlayLayerName, bd as PRESENCE_KINDS, be as PROMPT_CONTEXT_CHARS, bf as ParsedSlashCommand, bg as PendingAuthResponse, bh as PersonKey, bi as PlanStepsError, bj as PlanWorkRequest, bk as ProductResponse, bl as ProjectAddonKind, bm as ProjectAddonSettingsRequest, bn as ProjectBudget, bo as ProjectCheckoutRequest, bp as ProjectConversationUsageResponse, bq as ProjectCreateOptions, br as ProjectDetails, bs as ProjectEventKind, bt as ProjectEventResponse, bu as ProjectInvoicesResponse, bv as ProjectNextPeriodAddonsRequest, bw as ProjectPlanChangeRequest, bx as ProjectQuoteRequest, by as ProjectResponse, bz as ProjectUpdateRequest, bA as ProjectUsageResponse, bB as PublicBookingError, bC as PublicBookingPage, bD as QuotaExceeded, bE as RaisedSignal, bF as ReconnectOptions, bG as ReconnectableWsConnection, bH as ResolvedCitation, bJ as RespondParams, bK as RespondPartstat, bL as RoomCreateBody, bM as RoomQuery, bN as RoomRead, bO as RunProgress, bP as RunStats, bQ as RunStep, bR as RunWaitingOn, bS as SHAREPOINT_VENDORS, bT as SSEEvent, bU as SSEStreamCallbacks, bV as SSEStreamResult, bX as STOP_ID_WAIT_MS, bY as STOP_REPEAT_WINDOW_MS, b_ as ScopedTarget, b$ as SearchChunk, c0 as SendBack, c1 as ShareRead, c2 as ShareRole, c3 as SkillSummary, c4 as SkippedFile, c5 as SlackConnectionStatus, c6 as StepActionRequest, c7 as StepActivityEvent, c8 as StepAssignee, c9 as StepDisplay, ca as StepField, cd as StepKind, ce as StepPhase, cf as StepSignal, cg as StepSignalWhen, ch as StepState, ci as StepStatus, cj as SubagentBranchRecord, ck as SubagentLaneInfo, cl as SubmitBackgroundQueryOptions, cm as SubscribeParams, cn as SyncTriggerResult, co as TAG_KINDS, cp as TAG_NESTING_MAX_DEPTH, cq as TagChange, cr as TagFieldDefinition, cs as TagGroup, ct as TagKind, cu as TagKindField, cv as TagKindSchema, cw as TagLinks, cx as TagListQuery, cy as TagNode, cz as TagResponse, cA as TagScope, cB as TagTreeRow, cC as TaskPlan, cD as TaskPlanStep, cE as TaxQuoteResponse, cF as Thread, cG as ThreadsResponse, cH as TimeSuggestion, cI as TurnRequest, cJ as UpdateConversationRequest, cK as UpdateFactRequest, cL as UpdateWorkflowRequest, cP as UploadDocumentsOptions, cQ as UploadOptions, cR as UploadProgressListener, cS as UploadResult, cT as UsageBreakdown, cU as UserConnectorEntry, cV as UserDailyUsageResponse, cW as UserInfo, cX as WebSocketAuthError, cY as WeeklyHoursSpec, cZ as WorkStatus, c_ as WorkflowAuthMode, c$ as WorkflowResponse, d0 as WorkflowRunHistoryResponse, d1 as WorkflowRunResponse, d2 as WorkspaceContext, d3 as WorkspaceOpenResponse, d4 as WsConnection, d5 as account, d6 as agentconfig, d8 as appendTranscriptionHints, d9 as assistant, da as authenticatedFetch, db as bookPublicSlot, dc as buildCitationChunkData, de as buildDocumentTools, df as buildFactsContextTool, dg as buildRetrievalChunkTool, dh as buildRetrievalFullContextTool, di as buildRetrievalTocTool, dj as buildTurnRequest, dk as calendar, dl as calls, dm as canTagHaveParent, dn as cancelPublicBooking, dp as chats, dq as computeRunStats, dr as connectErrorMessage, ds as connectWebSocket, dt as connectWithReconnect, du as connectors, dv as contacts, dw as continuityPrompt, dx as conversations, dy as countCitations, dz as createAuthenticatedClient, dB as createIndexAssigner, dC as databases, dD as defaultKindForFormat, dE as doctags, dF as documents, dG as estimateDraftTokens, dH as extractDocumentIdsFromMessages, dI as extractFactIdsFromMessages, dJ as extractSubagentLanes, dK as facts, dL as files, dM as filterDocumentTags, dN as filterSkills, dO as findLeafForTaskMessage, dP as findMainSiblingLeaf, dQ as findReplyTarget, dR as findSubagentRunId, dS as flattenTagTree, dT as formatAgentStepLabel, dU as formatFileSize, dV as formatGbp, dW as formatGbpPerMillionTokens, dX as formatItemLabel, dZ as formatTokens, d_ as formatUserName, d$ as formatWorkspaceChoices, e3 as getAgentStepLabel, e4 as getAttachableRunId, e5 as getChildTags, e6 as getContextRemainingPercent, e7 as getContextUsedPercent, e8 as getContextUsedTokens, e9 as getCurrentStep, ea as getEligibleParentTags, ec as getErrorMessage, ed as getPublicBookingPage, ee as getRawWorkspaceKey, ef as getRunToAttach, eg as getRunToCancel, eh as getStepDisplay, ei as getStepTool, ej as getSubagentBranchRecord, ek as getTagDescendantIds, el as health, em as houseTemplates, en as hydrateAgentSteps, ep as identityErrorCode, eo as identityVerification, eq as isAnnotationTag, er as isConnectorVendorVisible, es as isDriveSyncVendor, et as isEntityTag, eu as isFlatKind, ev as isLabelTag, ew as isMailboxSyncVendor, ex as isNearAiUsageBudget, ey as isPresenceTag, ez as isSharePointVendor, eA as isSharedSkill, eB as isTraceItem, eC as mail, eD as mergeAgentSteps, eE as notifications, eF as parseSSEEvents, eG as parseSlashCommand, eH as parseSlashTokenInProgress, eI as performPasswordLogin, eL as pickMainThread, eM as profile, eN as progressFetch, eO as projects, eP as quotaExceededFrom, eQ as quotaFromStreamError, eR as reduceOutputItem, eS as refusalReason, eT as requireData, eU as requireOk, eV as resolveAuth, eW as resolveCitations, eX as resolveSummary, eY as resolveWorkspace, eZ as responses, e_ as searchChunks, e$ as selectFullContextDocument, f0 as selectWorkspace, f1 as selectWorkspaceById, f2 as sessions, f3 as settings, f5 as sliceToSubagentThread, f6 as streamSSE, f7 as stripCitationMarkdown, f8 as subagentJobLabel, f9 as summarizeCitations, fa as tagUseCount, fb as tags, fc as tagsForScope, fd as tagsOfGroup, fe as topLevelAgentSteps, fg as usdToGbp, fh as work, fi as workflowSteps, fj as workflows, fk as workspaces, fl as wouldCreateTagCycle } from './browser-4TgMltob.cjs';
|
|
2
2
|
export { A as AgentControlStateEvent, a as AgentStepDeltaEvent, b as AgentStepEvent, c as ArbiErrorEvent, d as ArtifactEvent, D as DeferredInterjectionEvent, M as MailDraftSSEEvent, e as MessageMetadataPayload, f as MessageQueuedEvent, O as OutputTokensDetails, P as ProbeAnswerEvent, 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';
|
|
3
3
|
export { CallPeer, LoginProfile } from '@arbidocs/client';
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
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 ArbiHostSession, h as ArbiOptions, j as ArbiWorkspaceChangedError, k as ArbiWorkspaceSupersededError, l as AskHandlers, m as AskRequest, n as AttendeeRead, o as AuthContext, p as AuthHeaders, q as AuthMode, r as AuthenticatedClient, B as BookingConfirmation, s as BookingPage, t as BookingPageWriteBody, u as BookingRequestBody, v as BridgeTokensOptions, C as CalDavConnectBody, w as CalDavProfile, x as CalendarAccount, y as CalendarAccountKind, z as CalendarCreateBody, D as CalendarEvent, E as CalendarKeys, F as CalendarRead, G as CalendarSettings, H as CalendarSettingsBody, I as CalendarUpdate, J as CalendarWindow, K as CallApiError, L as ChatAttachmentFile, M as ChatAttachmentInput, N as ChatCryptoContext, O as ChatKeyRing, P as ChatKind, Q as ChatMemberKey, R as ChatMemberResponse, S as ChatMessage, T as ChatMessageResponse, U as ChatResponse, V as ChatSession, W as CitationSummary, X as CitationToolSources, Y as CliConfig, Z as CliCredentials, _ as CommandDescriptor, $ as ConfigStore, a0 as ConnectOptions, a1 as ConnectorCatalogEntry, a2 as ConnectorFolder, a3 as ConnectorSyncProgress, a4 as ConnectorSyncStatus, a5 as ConnectorVendorKey, a6 as ConnectorVisibilitySettings, a7 as ContextUsage, a8 as ConversationResponse, a9 as ConversationUsageResponse, aa as CreateFactRequest, ab as CreateFactsRequest, ac as CreateWorkRequest, ad as CreateWorkflowRequest, ae as DEFAULT_AI_USD_PER_GBP, ag as DRIVE_SYNC_VENDORS, ah as
|
|
1
|
+
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 ArbiHostSession, h as ArbiOptions, j as ArbiWorkspaceChangedError, k as ArbiWorkspaceSupersededError, l as AskHandlers, m as AskRequest, n as AttendeeRead, o as AuthContext, p as AuthHeaders, q as AuthMode, r as AuthenticatedClient, B as BookingConfirmation, s as BookingPage, t as BookingPageWriteBody, u as BookingRequestBody, v as BridgeTokensOptions, C as CalDavConnectBody, w as CalDavProfile, x as CalendarAccount, y as CalendarAccountKind, z as CalendarCreateBody, D as CalendarEvent, E as CalendarKeys, F as CalendarRead, G as CalendarSettings, H as CalendarSettingsBody, I as CalendarUpdate, J as CalendarWindow, K as CallApiError, L as ChatAttachmentFile, M as ChatAttachmentInput, N as ChatCryptoContext, O as ChatKeyRing, P as ChatKind, Q as ChatMemberKey, R as ChatMemberResponse, S as ChatMessage, T as ChatMessageResponse, U as ChatResponse, V as ChatSession, W as CitationSummary, X as CitationToolSources, Y as CliConfig, Z as CliCredentials, _ as CommandDescriptor, $ as ConfigStore, a0 as ConnectOptions, a1 as ConnectorCatalogEntry, a2 as ConnectorFolder, a3 as ConnectorSyncProgress, a4 as ConnectorSyncStatus, a5 as ConnectorVendorKey, a6 as ConnectorVisibilitySettings, a7 as ContextUsage, a8 as ConversationResponse, a9 as ConversationUsageResponse, aa as CreateFactRequest, ab as CreateFactsRequest, ac as CreateWorkRequest, ad as CreateWorkflowRequest, ae as DEFAULT_AI_USD_PER_GBP, ag as DRIVE_SYNC_VENDORS, ah as Database, ai as DatabaseColumn, aj as DatabaseColumnWrite, ak as DatabaseImportResult, al as DatabaseRow, am as DatabaseRowPage, an as DatabaseRowsQuery, ao as DateTimeSpec, aq as DecryptedChatMessage, ar as DeploymentHouseTemplate, as as DocInfo, at as DocInfoMap, av as DocumentAutomationAction, ay as DocumentSelector, aB as DriveSyncProgress, aC as DriveSyncSummary, aD as DuplicateContactError, aE as ENTITY_KINDS, aF as EditScope, aG as EntityKind, aH as EventCreateBody, aI as EventPatchBody, aJ as FLAT_TAG_KINDS, aK as FactResponse, aL as FactSearchRequest, aM as FactSearchResponse, aN as FindTimeParams, aP as FreeBusyEntry, aQ as FullContextSelection, aR as GOOGLE_VENDORS, aS as HolidayCountry, aT as HouseTemplateCandidate, aU as IMANAGE_VENDORS, aV as IdentityErrorCode, aW as IdentityPurchase, aX as IdentityState, aY as IdentityStatus, aZ as ImportResult, a_ as InvitationRead, a$ as LinkedRun, b1 as ListEventsParams, b2 as ListFactsOptions, b4 as MAILBOX_SYNC_VENDORS, b5 as MAX_RETRIEVE_DOC_IDS, b6 as MICROSOFT_VENDORS, b9 as OAuthAccountKind, ba as OutputItemDone, bb as OverlayItem, bc as OverlayLayerName, bd as PRESENCE_KINDS, be as PROMPT_CONTEXT_CHARS, bf as ParsedSlashCommand, bg as PendingAuthResponse, bh as PersonKey, bi as PlanStepsError, bj as PlanWorkRequest, bk as ProductResponse, bl as ProjectAddonKind, bm as ProjectAddonSettingsRequest, bn as ProjectBudget, bo as ProjectCheckoutRequest, bp as ProjectConversationUsageResponse, bq as ProjectCreateOptions, br as ProjectDetails, bs as ProjectEventKind, bt as ProjectEventResponse, bu as ProjectInvoicesResponse, bv as ProjectNextPeriodAddonsRequest, bw as ProjectPlanChangeRequest, bx as ProjectQuoteRequest, by as ProjectResponse, bz as ProjectUpdateRequest, bA as ProjectUsageResponse, bB as PublicBookingError, bC as PublicBookingPage, bD as QuotaExceeded, bE as RaisedSignal, bF as ReconnectOptions, bG as ReconnectableWsConnection, bH as ResolvedCitation, bJ as RespondParams, bK as RespondPartstat, bL as RoomCreateBody, bM as RoomQuery, bN as RoomRead, bO as RunProgress, bP as RunStats, bQ as RunStep, bR as RunWaitingOn, bS as SHAREPOINT_VENDORS, bT as SSEEvent, bU as SSEStreamCallbacks, bV as SSEStreamResult, bX as STOP_ID_WAIT_MS, bY as STOP_REPEAT_WINDOW_MS, b_ as ScopedTarget, b$ as SearchChunk, c0 as SendBack, c1 as ShareRead, c2 as ShareRole, c3 as SkillSummary, c4 as SkippedFile, c5 as SlackConnectionStatus, c6 as StepActionRequest, c7 as StepActivityEvent, c8 as StepAssignee, c9 as StepDisplay, ca as StepField, cd as StepKind, ce as StepPhase, cf as StepSignal, cg as StepSignalWhen, ch as StepState, ci as StepStatus, cj as SubagentBranchRecord, ck as SubagentLaneInfo, cl as SubmitBackgroundQueryOptions, cm as SubscribeParams, cn as SyncTriggerResult, co as TAG_KINDS, cp as TAG_NESTING_MAX_DEPTH, cq as TagChange, cr as TagFieldDefinition, cs as TagGroup, ct as TagKind, cu as TagKindField, cv as TagKindSchema, cw as TagLinks, cx as TagListQuery, cy as TagNode, cz as TagResponse, cA as TagScope, cB as TagTreeRow, cC as TaskPlan, cD as TaskPlanStep, cE as TaxQuoteResponse, cF as Thread, cG as ThreadsResponse, cH as TimeSuggestion, cI as TurnRequest, cJ as UpdateConversationRequest, cK as UpdateFactRequest, cL as UpdateWorkflowRequest, cP as UploadDocumentsOptions, cQ as UploadOptions, cR as UploadProgressListener, cS as UploadResult, cT as UsageBreakdown, cU as UserConnectorEntry, cV as UserDailyUsageResponse, cW as UserInfo, cX as WebSocketAuthError, cY as WeeklyHoursSpec, cZ as WorkStatus, c_ as WorkflowAuthMode, c$ as WorkflowResponse, d0 as WorkflowRunHistoryResponse, d1 as WorkflowRunResponse, d2 as WorkspaceContext, d3 as WorkspaceOpenResponse, d4 as WsConnection, d5 as account, d6 as agentconfig, d8 as appendTranscriptionHints, d9 as assistant, da as authenticatedFetch, db as bookPublicSlot, dc as buildCitationChunkData, de as buildDocumentTools, df as buildFactsContextTool, dg as buildRetrievalChunkTool, dh as buildRetrievalFullContextTool, di as buildRetrievalTocTool, dj as buildTurnRequest, dk as calendar, dl as calls, dm as canTagHaveParent, dn as cancelPublicBooking, dp as chats, dq as computeRunStats, dr as connectErrorMessage, ds as connectWebSocket, dt as connectWithReconnect, du as connectors, dv as contacts, dw as continuityPrompt, dx as conversations, dy as countCitations, dz as createAuthenticatedClient, dB as createIndexAssigner, dC as databases, dD as defaultKindForFormat, dE as doctags, dF as documents, dG as estimateDraftTokens, dH as extractDocumentIdsFromMessages, dI as extractFactIdsFromMessages, dJ as extractSubagentLanes, dK as facts, dL as files, dM as filterDocumentTags, dN as filterSkills, dO as findLeafForTaskMessage, dP as findMainSiblingLeaf, dQ as findReplyTarget, dR as findSubagentRunId, dS as flattenTagTree, dT as formatAgentStepLabel, dU as formatFileSize, dV as formatGbp, dW as formatGbpPerMillionTokens, dX as formatItemLabel, dZ as formatTokens, d_ as formatUserName, d$ as formatWorkspaceChoices, e3 as getAgentStepLabel, e4 as getAttachableRunId, e5 as getChildTags, e6 as getContextRemainingPercent, e7 as getContextUsedPercent, e8 as getContextUsedTokens, e9 as getCurrentStep, ea as getEligibleParentTags, ec as getErrorMessage, ed as getPublicBookingPage, ee as getRawWorkspaceKey, ef as getRunToAttach, eg as getRunToCancel, eh as getStepDisplay, ei as getStepTool, ej as getSubagentBranchRecord, ek as getTagDescendantIds, el as health, em as houseTemplates, en as hydrateAgentSteps, ep as identityErrorCode, eo as identityVerification, eq as isAnnotationTag, er as isConnectorVendorVisible, es as isDriveSyncVendor, et as isEntityTag, eu as isFlatKind, ev as isLabelTag, ew as isMailboxSyncVendor, ex as isNearAiUsageBudget, ey as isPresenceTag, ez as isSharePointVendor, eA as isSharedSkill, eB as isTraceItem, eC as mail, eD as mergeAgentSteps, eE as notifications, eF as parseSSEEvents, eG as parseSlashCommand, eH as parseSlashTokenInProgress, eI as performPasswordLogin, eL as pickMainThread, eM as profile, eN as progressFetch, eO as projects, eP as quotaExceededFrom, eQ as quotaFromStreamError, eR as reduceOutputItem, eS as refusalReason, eT as requireData, eU as requireOk, eV as resolveAuth, eW as resolveCitations, eX as resolveSummary, eY as resolveWorkspace, eZ as responses, e_ as searchChunks, e$ as selectFullContextDocument, f0 as selectWorkspace, f1 as selectWorkspaceById, f2 as sessions, f3 as settings, f5 as sliceToSubagentThread, f6 as streamSSE, f7 as stripCitationMarkdown, f8 as subagentJobLabel, f9 as summarizeCitations, fa as tagUseCount, fb as tags, fc as tagsForScope, fd as tagsOfGroup, fe as topLevelAgentSteps, fg as usdToGbp, fh as work, fi as workflowSteps, fj as workflows, fk as workspaces, fl as wouldCreateTagCycle } from './browser-Be_hfP61.js';
|
|
2
2
|
export { A as AgentControlStateEvent, a as AgentStepDeltaEvent, b as AgentStepEvent, c as ArbiErrorEvent, d as ArtifactEvent, D as DeferredInterjectionEvent, M as MailDraftSSEEvent, e as MessageMetadataPayload, f as MessageQueuedEvent, O as OutputTokensDetails, P as ProbeAnswerEvent, 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';
|
|
3
3
|
export { CallPeer, LoginProfile } from '@arbidocs/client';
|
package/dist/browser.js
CHANGED
|
@@ -3607,8 +3607,8 @@ async function extractErrorMessage(res) {
|
|
|
3607
3607
|
return `Request failed: ${res.status} ${res.statusText}`;
|
|
3608
3608
|
}
|
|
3609
3609
|
async function authenticatedFetch(options) {
|
|
3610
|
-
const { baseUrl, accessToken, path, method, body, headers, signal } = options;
|
|
3611
|
-
const res = await fetch(`${baseUrl}${
|
|
3610
|
+
const { baseUrl, accessToken, path: path2, method, body, headers, signal } = options;
|
|
3611
|
+
const res = await fetch(`${baseUrl}${path2}`, {
|
|
3612
3612
|
method: method ?? (body ? "POST" : "GET"),
|
|
3613
3613
|
headers: {
|
|
3614
3614
|
Authorization: `Bearer ${accessToken}`,
|
|
@@ -4208,7 +4208,6 @@ async function streamSSE(response, callbacks = {}) {
|
|
|
4208
4208
|
completed
|
|
4209
4209
|
};
|
|
4210
4210
|
}
|
|
4211
|
-
var consumeSSEStream = streamSSE;
|
|
4212
4211
|
var AUTH_TIMEOUT_MS = 1e4;
|
|
4213
4212
|
var MAX_BACKOFF_MS = 3e4;
|
|
4214
4213
|
var WebSocketAuthError = class extends Error {
|
|
@@ -5060,6 +5059,7 @@ __export(workspaces_exports, {
|
|
|
5060
5059
|
addWorkspaceMembers: () => addWorkspaceMembers,
|
|
5061
5060
|
addWorkspaceMembersBody: () => addWorkspaceMembersBody,
|
|
5062
5061
|
addWorkspaceUsers: () => addWorkspaceUsers,
|
|
5062
|
+
archiveWorkspace: () => archiveWorkspace,
|
|
5063
5063
|
cancelWorkspaceTransfer: () => cancelWorkspaceTransfer,
|
|
5064
5064
|
copyDocuments: () => copyDocuments,
|
|
5065
5065
|
createWorkspace: () => createWorkspace,
|
|
@@ -5067,17 +5067,20 @@ __export(workspaces_exports, {
|
|
|
5067
5067
|
exportWorkspaceData: () => exportWorkspaceData,
|
|
5068
5068
|
getWorkspaceAccessStatus: () => getWorkspaceAccessStatus,
|
|
5069
5069
|
getWorkspaceActivity: () => getWorkspaceActivity,
|
|
5070
|
+
getWorkspaceArchive: () => getWorkspaceArchive,
|
|
5070
5071
|
getWorkspaceTransfer: () => getWorkspaceTransfer,
|
|
5071
5072
|
grantTemporaryWorkspaceAccess: () => grantTemporaryWorkspaceAccess,
|
|
5072
5073
|
listWorkspaceTransfers: () => listWorkspaceTransfers,
|
|
5073
5074
|
listWorkspaceUsers: () => listWorkspaceUsers,
|
|
5074
5075
|
listWorkspaces: () => listWorkspaces,
|
|
5076
|
+
moveWorkspaceToProject: () => moveWorkspaceToProject,
|
|
5075
5077
|
planWorkspaceTransfer: () => planWorkspaceTransfer,
|
|
5076
5078
|
primeWorkspaceKey: () => primeWorkspaceKey,
|
|
5077
5079
|
removeWorkspaceUsers: () => removeWorkspaceUsers,
|
|
5078
5080
|
resumeWorkspaceTransfer: () => resumeWorkspaceTransfer,
|
|
5079
5081
|
setUserRole: () => setUserRole,
|
|
5080
5082
|
startWorkspaceTransfer: () => startWorkspaceTransfer,
|
|
5083
|
+
unarchiveWorkspace: () => unarchiveWorkspace,
|
|
5081
5084
|
updateWorkspace: () => updateWorkspace
|
|
5082
5085
|
});
|
|
5083
5086
|
async function listWorkspaces(arbi) {
|
|
@@ -5097,6 +5100,39 @@ async function createWorkspace(arbi, name, encryptedWorkspaceKey, projectExtId,
|
|
|
5097
5100
|
"Failed to create workspace"
|
|
5098
5101
|
);
|
|
5099
5102
|
}
|
|
5103
|
+
async function moveWorkspaceToProject(arbi, workspaceExtId, projectExtId) {
|
|
5104
|
+
return requireData(
|
|
5105
|
+
await arbi.fetch.PUT("/v1/workspace/{workspace_ext_id}/project", {
|
|
5106
|
+
params: { path: { workspace_ext_id: workspaceExtId } },
|
|
5107
|
+
body: { project_ext_id: projectExtId }
|
|
5108
|
+
}),
|
|
5109
|
+
"Failed to move workspace"
|
|
5110
|
+
);
|
|
5111
|
+
}
|
|
5112
|
+
async function getWorkspaceArchive(arbi, workspaceExtId) {
|
|
5113
|
+
return requireData(
|
|
5114
|
+
await arbi.fetch.GET("/v1/workspace/{workspace_ext_id}/archive", {
|
|
5115
|
+
params: { path: { workspace_ext_id: workspaceExtId } }
|
|
5116
|
+
}),
|
|
5117
|
+
"Could not read the archive state"
|
|
5118
|
+
);
|
|
5119
|
+
}
|
|
5120
|
+
async function archiveWorkspace(arbi, workspaceExtId) {
|
|
5121
|
+
return requireData(
|
|
5122
|
+
await arbi.fetch.POST("/v1/workspace/{workspace_ext_id}/archive", {
|
|
5123
|
+
params: { path: { workspace_ext_id: workspaceExtId } }
|
|
5124
|
+
}),
|
|
5125
|
+
"Could not archive the workspace"
|
|
5126
|
+
);
|
|
5127
|
+
}
|
|
5128
|
+
async function unarchiveWorkspace(arbi, workspaceExtId) {
|
|
5129
|
+
return requireData(
|
|
5130
|
+
await arbi.fetch.POST("/v1/workspace/{workspace_ext_id}/unarchive", {
|
|
5131
|
+
params: { path: { workspace_ext_id: workspaceExtId } }
|
|
5132
|
+
}),
|
|
5133
|
+
"Could not unarchive the workspace"
|
|
5134
|
+
);
|
|
5135
|
+
}
|
|
5100
5136
|
async function deleteWorkspaces(arbi, workspaceIds) {
|
|
5101
5137
|
requireOk(
|
|
5102
5138
|
await arbi.fetch.DELETE("/v1/workspace/", {
|
|
@@ -5285,6 +5321,7 @@ __export(conversations_exports, {
|
|
|
5285
5321
|
importConversations: () => importConversations,
|
|
5286
5322
|
listConversations: () => listConversations,
|
|
5287
5323
|
postConversationMessage: () => postConversationMessage,
|
|
5324
|
+
searchConversations: () => searchConversations,
|
|
5288
5325
|
updateConversationAssistantMode: () => updateConversationAssistantMode
|
|
5289
5326
|
});
|
|
5290
5327
|
async function listConversations(arbi) {
|
|
@@ -5317,6 +5354,12 @@ async function deleteConversation(arbi, conversationId) {
|
|
|
5317
5354
|
"Failed to delete conversation"
|
|
5318
5355
|
);
|
|
5319
5356
|
}
|
|
5357
|
+
async function searchConversations(arbi, body) {
|
|
5358
|
+
return requireData(
|
|
5359
|
+
await arbi.fetch.POST("/v1/conversation/search", { body }),
|
|
5360
|
+
"Failed to search conversations"
|
|
5361
|
+
);
|
|
5362
|
+
}
|
|
5320
5363
|
async function getMessage(arbi, messageId) {
|
|
5321
5364
|
return requireData(
|
|
5322
5365
|
await arbi.fetch.GET("/v1/conversation/message/{message_ext_id}", {
|
|
@@ -8583,6 +8626,118 @@ async function remindFact(arbi, factId, options = {}) {
|
|
|
8583
8626
|
);
|
|
8584
8627
|
}
|
|
8585
8628
|
|
|
8629
|
+
// src/operations/databases.ts
|
|
8630
|
+
var databases_exports = {};
|
|
8631
|
+
__export(databases_exports, {
|
|
8632
|
+
addDatabaseRows: () => addDatabaseRows,
|
|
8633
|
+
createDatabase: () => createDatabase,
|
|
8634
|
+
deleteDatabase: () => deleteDatabase,
|
|
8635
|
+
deleteDatabaseRows: () => deleteDatabaseRows,
|
|
8636
|
+
exportDatabase: () => exportDatabase,
|
|
8637
|
+
getDatabase: () => getDatabase,
|
|
8638
|
+
importDatabase: () => importDatabase,
|
|
8639
|
+
importDatabaseRows: () => importDatabaseRows,
|
|
8640
|
+
listDatabaseRows: () => listDatabaseRows,
|
|
8641
|
+
listDatabases: () => listDatabases,
|
|
8642
|
+
updateDatabase: () => updateDatabase,
|
|
8643
|
+
updateDatabaseRow: () => updateDatabaseRow
|
|
8644
|
+
});
|
|
8645
|
+
var path = (databaseId) => ({ path: { database_id: databaseId } });
|
|
8646
|
+
function spreadsheet(file) {
|
|
8647
|
+
const form = new FormData();
|
|
8648
|
+
form.append("file", file);
|
|
8649
|
+
return { body: form, bodySerializer: () => form };
|
|
8650
|
+
}
|
|
8651
|
+
async function listDatabases(arbi) {
|
|
8652
|
+
return requireData(await arbi.fetch.GET("/v1/databases"), "Failed to list databases");
|
|
8653
|
+
}
|
|
8654
|
+
async function getDatabase(arbi, databaseId) {
|
|
8655
|
+
return requireData(
|
|
8656
|
+
await arbi.fetch.GET("/v1/databases/{database_id}", { params: path(databaseId) }),
|
|
8657
|
+
"Failed to read the database"
|
|
8658
|
+
);
|
|
8659
|
+
}
|
|
8660
|
+
async function listDatabaseRows(arbi, databaseId, query2 = {}) {
|
|
8661
|
+
return requireData(
|
|
8662
|
+
await arbi.fetch.GET("/v1/databases/{database_id}/rows", {
|
|
8663
|
+
params: { ...path(databaseId), query: query2 }
|
|
8664
|
+
}),
|
|
8665
|
+
"Failed to read the rows"
|
|
8666
|
+
);
|
|
8667
|
+
}
|
|
8668
|
+
async function createDatabase(arbi, body) {
|
|
8669
|
+
return requireData(
|
|
8670
|
+
await arbi.fetch.POST("/v1/databases", { body }),
|
|
8671
|
+
"Failed to create the database"
|
|
8672
|
+
);
|
|
8673
|
+
}
|
|
8674
|
+
async function updateDatabase(arbi, databaseId, body) {
|
|
8675
|
+
return requireData(
|
|
8676
|
+
await arbi.fetch.PATCH("/v1/databases/{database_id}", { params: path(databaseId), body }),
|
|
8677
|
+
"Failed to update the database"
|
|
8678
|
+
);
|
|
8679
|
+
}
|
|
8680
|
+
async function deleteDatabase(arbi, databaseId) {
|
|
8681
|
+
requireOk(
|
|
8682
|
+
await arbi.fetch.DELETE("/v1/databases/{database_id}", { params: path(databaseId) }),
|
|
8683
|
+
"Failed to delete the database"
|
|
8684
|
+
);
|
|
8685
|
+
}
|
|
8686
|
+
async function addDatabaseRows(arbi, databaseId, rows) {
|
|
8687
|
+
return requireData(
|
|
8688
|
+
await arbi.fetch.POST("/v1/databases/{database_id}/rows", {
|
|
8689
|
+
params: path(databaseId),
|
|
8690
|
+
body: { rows }
|
|
8691
|
+
}),
|
|
8692
|
+
"Failed to add rows"
|
|
8693
|
+
);
|
|
8694
|
+
}
|
|
8695
|
+
async function updateDatabaseRow(arbi, databaseId, rowId, values) {
|
|
8696
|
+
return requireData(
|
|
8697
|
+
await arbi.fetch.PATCH("/v1/databases/{database_id}/rows/{row_id}", {
|
|
8698
|
+
params: { path: { database_id: databaseId, row_id: rowId } },
|
|
8699
|
+
body: { values }
|
|
8700
|
+
}),
|
|
8701
|
+
"Failed to update the row"
|
|
8702
|
+
);
|
|
8703
|
+
}
|
|
8704
|
+
async function deleteDatabaseRows(arbi, databaseId, ids) {
|
|
8705
|
+
requireOk(
|
|
8706
|
+
await arbi.fetch.POST("/v1/databases/{database_id}/rows/delete", {
|
|
8707
|
+
params: path(databaseId),
|
|
8708
|
+
body: { ids }
|
|
8709
|
+
}),
|
|
8710
|
+
"Failed to delete rows"
|
|
8711
|
+
);
|
|
8712
|
+
}
|
|
8713
|
+
async function importDatabase(arbi, file, name) {
|
|
8714
|
+
return requireData(
|
|
8715
|
+
await arbi.fetch.POST("/v1/databases/import", {
|
|
8716
|
+
params: { query: { name } },
|
|
8717
|
+
...spreadsheet(file)
|
|
8718
|
+
}),
|
|
8719
|
+
"Import failed"
|
|
8720
|
+
);
|
|
8721
|
+
}
|
|
8722
|
+
async function importDatabaseRows(arbi, databaseId, file) {
|
|
8723
|
+
return requireData(
|
|
8724
|
+
await arbi.fetch.POST("/v1/databases/{database_id}/import", {
|
|
8725
|
+
params: { ...path(databaseId), query: { add_columns: true } },
|
|
8726
|
+
...spreadsheet(file)
|
|
8727
|
+
}),
|
|
8728
|
+
"Import failed"
|
|
8729
|
+
);
|
|
8730
|
+
}
|
|
8731
|
+
async function exportDatabase(arbi, databaseId, format) {
|
|
8732
|
+
return requireData(
|
|
8733
|
+
await arbi.fetch.GET("/v1/databases/{database_id}/export", {
|
|
8734
|
+
params: { ...path(databaseId), query: { format } },
|
|
8735
|
+
parseAs: "blob"
|
|
8736
|
+
}),
|
|
8737
|
+
"Export failed"
|
|
8738
|
+
);
|
|
8739
|
+
}
|
|
8740
|
+
|
|
8586
8741
|
// src/operations/mail.ts
|
|
8587
8742
|
var mail_exports = {};
|
|
8588
8743
|
__export(mail_exports, {
|
|
@@ -8604,9 +8759,9 @@ __export(mail_exports, {
|
|
|
8604
8759
|
});
|
|
8605
8760
|
var NATIVE_ACCOUNT = "native";
|
|
8606
8761
|
function createMailFetch(auth) {
|
|
8607
|
-
return (
|
|
8762
|
+
return (path2, init = {}) => authenticatedFetch({
|
|
8608
8763
|
...auth,
|
|
8609
|
-
path: `/v1/mail${
|
|
8764
|
+
path: `/v1/mail${path2}`,
|
|
8610
8765
|
method: init.method,
|
|
8611
8766
|
body: init.body,
|
|
8612
8767
|
headers: {
|
|
@@ -8645,8 +8800,8 @@ function getMessage2(mail, messageId, accountId = NATIVE_ACCOUNT) {
|
|
|
8645
8800
|
return json(mail(`${accountPath(accountId)}/messages/${encodeURIComponent(messageId)}`));
|
|
8646
8801
|
}
|
|
8647
8802
|
async function downloadAttachment(mail, messageId, attachmentId, accountId = NATIVE_ACCOUNT) {
|
|
8648
|
-
const
|
|
8649
|
-
return new Uint8Array(await (await mail(
|
|
8803
|
+
const path2 = `${accountPath(accountId)}/messages/${encodeURIComponent(messageId)}/attachments/${encodeURIComponent(attachmentId)}`;
|
|
8804
|
+
return new Uint8Array(await (await mail(path2)).arrayBuffer());
|
|
8650
8805
|
}
|
|
8651
8806
|
async function updateMessage(mail, messageId, update, accountId = NATIVE_ACCOUNT) {
|
|
8652
8807
|
await mail(`${accountPath(accountId)}/messages/${encodeURIComponent(messageId)}`, {
|
|
@@ -8698,11 +8853,11 @@ async function unlockNativeMail(mail, keys) {
|
|
|
8698
8853
|
async function claimSecureMail(mail, id, fragmentKey, recipientPublicKey) {
|
|
8699
8854
|
const key = decodeSecureMailKey(fragmentKey);
|
|
8700
8855
|
try {
|
|
8701
|
-
const
|
|
8702
|
-
const { raw } = await openSecureMail(await json(mail(
|
|
8856
|
+
const path2 = `/secure/${encodeURIComponent(id)}`;
|
|
8857
|
+
const { raw } = await openSecureMail(await json(mail(path2)), key);
|
|
8703
8858
|
raw.fill(0);
|
|
8704
8859
|
const claim = await secureMailClaim(key, recipientPublicKey);
|
|
8705
|
-
return await json(mail(`${
|
|
8860
|
+
return await json(mail(`${path2}/claim`, { method: "POST", body: JSON.stringify(claim) }));
|
|
8706
8861
|
} finally {
|
|
8707
8862
|
key.fill(0);
|
|
8708
8863
|
}
|
|
@@ -10549,6 +10704,14 @@ var Arbi = class {
|
|
|
10549
10704
|
this.requireClient().workspaceKeys.forget(workspaceIds);
|
|
10550
10705
|
},
|
|
10551
10706
|
update: (body) => updateWorkspace(this.requireClient(), body),
|
|
10707
|
+
/** A workspace's archive state (status, bytes per tier, the unarchive estimate). */
|
|
10708
|
+
archiveState: (workspaceId) => getWorkspaceArchive(this.requireClient(), workspaceId),
|
|
10709
|
+
/** Archive a workspace: closed for everyone until unarchived. */
|
|
10710
|
+
archive: (workspaceId) => archiveWorkspace(this.requireClient(), workspaceId),
|
|
10711
|
+
/** Start unarchiving a workspace (its documents are re-indexed). */
|
|
10712
|
+
unarchive: (workspaceId) => unarchiveWorkspace(this.requireClient(), workspaceId),
|
|
10713
|
+
/** Move a workspace (open or not) to another project. */
|
|
10714
|
+
moveToProject: (workspaceId, projectExtId) => moveWorkspaceToProject(this.requireClient(), workspaceId, projectExtId),
|
|
10552
10715
|
listUsers: () => listWorkspaceUsers(this.requireClient()),
|
|
10553
10716
|
/** One page of a workspace's activity feed, newest first (see `getWorkspaceActivity`). */
|
|
10554
10717
|
activity: (workspaceId, options) => getWorkspaceActivity(this.requireClient(), workspaceId, options),
|
|
@@ -10720,6 +10883,8 @@ var Arbi = class {
|
|
|
10720
10883
|
list: () => listConversations(this.requireClient()),
|
|
10721
10884
|
getThreads: (conversationId) => getConversationThreads(this.requireClient(), conversationId),
|
|
10722
10885
|
delete: (conversationId) => deleteConversation(this.requireClient(), conversationId),
|
|
10886
|
+
/** Search the open workspace's past conversation messages (keyword + semantic), grouped. */
|
|
10887
|
+
search: (body) => searchConversations(this.requireClient(), body),
|
|
10723
10888
|
/**
|
|
10724
10889
|
* Patch a conversation: `title`, `shared` (owner only), its bound document
|
|
10725
10890
|
* (`bound_document_ext_id`, `null` unbinds), and the work fields (`description`, `due_at`,
|
|
@@ -10807,11 +10972,11 @@ var Arbi = class {
|
|
|
10807
10972
|
};
|
|
10808
10973
|
/** Authenticated native Word transport, with normal session recovery. */
|
|
10809
10974
|
editor = {
|
|
10810
|
-
request: (
|
|
10975
|
+
request: (path2, options = {}) => this.recovering(async () => {
|
|
10811
10976
|
const { baseUrl, accessToken } = this.getAuthHeaders();
|
|
10812
10977
|
const headers = new Headers(options.headers);
|
|
10813
10978
|
headers.set("Authorization", `Bearer ${accessToken}`);
|
|
10814
|
-
const response = await fetch(`${baseUrl}/v1/editor${
|
|
10979
|
+
const response = await fetch(`${baseUrl}/v1/editor${path2}`, { ...options, headers });
|
|
10815
10980
|
if (!response.ok) {
|
|
10816
10981
|
const body = await response.json().catch(() => null);
|
|
10817
10982
|
throw new ArbiApiError(body?.detail || `Document request failed (${response.status})`, {
|
|
@@ -10828,13 +10993,13 @@ var Arbi = class {
|
|
|
10828
10993
|
*/
|
|
10829
10994
|
mail = {
|
|
10830
10995
|
/** Fetch a path under `/v1/mail`; rejects a non-2xx response with an `ArbiApiError` (`status`). */
|
|
10831
|
-
fetch: (
|
|
10996
|
+
fetch: (path2, init = {}) => this.recovering(async () => {
|
|
10832
10997
|
const { baseUrl, accessToken } = this.getAuthHeaders();
|
|
10833
10998
|
const headers = new Headers(init.headers);
|
|
10834
10999
|
headers.set("Authorization", `Bearer ${accessToken}`);
|
|
10835
11000
|
if (init.body && !headers.has("Content-Type"))
|
|
10836
11001
|
headers.set("Content-Type", "application/json");
|
|
10837
|
-
const response = await fetch(`${baseUrl}/v1/mail${
|
|
11002
|
+
const response = await fetch(`${baseUrl}/v1/mail${path2}`, { ...init, headers });
|
|
10838
11003
|
if (!response.ok) {
|
|
10839
11004
|
const body = await response.json().catch(() => null);
|
|
10840
11005
|
throw new ArbiApiError(
|
|
@@ -11647,6 +11812,22 @@ var Arbi = class {
|
|
|
11647
11812
|
/** The documents the open workspace may use as its house template. */
|
|
11648
11813
|
candidates: () => listHouseTemplateCandidates(this.requireClient())
|
|
11649
11814
|
};
|
|
11815
|
+
// ── Databases (user-defined tables of the open workspace) ──────────
|
|
11816
|
+
databases = {
|
|
11817
|
+
list: () => listDatabases(this.requireClient()),
|
|
11818
|
+
get: (databaseId) => getDatabase(this.requireClient(), databaseId),
|
|
11819
|
+
/** A search of the rows (any cell), sorted and paged on the server. */
|
|
11820
|
+
rows: (databaseId, query2) => listDatabaseRows(this.requireClient(), databaseId, query2),
|
|
11821
|
+
create: (body) => createDatabase(this.requireClient(), body),
|
|
11822
|
+
update: (databaseId, body) => updateDatabase(this.requireClient(), databaseId, body),
|
|
11823
|
+
delete: (databaseId) => deleteDatabase(this.requireClient(), databaseId),
|
|
11824
|
+
addRows: (databaseId, rows) => addDatabaseRows(this.requireClient(), databaseId, rows),
|
|
11825
|
+
updateRow: (databaseId, rowId, values) => updateDatabaseRow(this.requireClient(), databaseId, rowId, values),
|
|
11826
|
+
deleteRows: (databaseId, ids) => deleteDatabaseRows(this.requireClient(), databaseId, ids),
|
|
11827
|
+
import: (file, name) => importDatabase(this.requireClient(), file, name),
|
|
11828
|
+
importRows: (databaseId, file) => importDatabaseRows(this.requireClient(), databaseId, file),
|
|
11829
|
+
export: (databaseId, format) => exportDatabase(this.requireClient(), databaseId, format)
|
|
11830
|
+
};
|
|
11650
11831
|
// ── Workspace facts ─────────────────────────────────────────────────
|
|
11651
11832
|
facts = {
|
|
11652
11833
|
create: (body) => createFact(this.requireClient(), body),
|
|
@@ -12369,6 +12550,6 @@ function getRunToAttach(localGeneration, messages) {
|
|
|
12369
12550
|
return getAttachableRunId(messages);
|
|
12370
12551
|
}
|
|
12371
12552
|
|
|
12372
|
-
export { ACCOUNT_VENDOR, Arbi, ArbiApiError, ArbiError, ArbiWorkspaceChangedError, ArbiWorkspaceSupersededError, CallApiError, DEFAULT_AI_USD_PER_GBP, DRIVE_SYNC_VENDORS, DuplicateContactError, ENTITY_KINDS, FLAT_TAG_KINDS, GOOGLE_VENDORS, IMANAGE_VENDORS, MAILBOX_SYNC_VENDORS, MAX_RETRIEVE_DOC_IDS, MICROSOFT_VENDORS, PRESENCE_KINDS, PROMPT_CONTEXT_CHARS, PlanStepsError, PublicBookingError, SHAREPOINT_VENDORS, STOP_ID_WAIT_MS, STOP_REPEAT_WINDOW_MS, TAG_KINDS, TAG_NESTING_MAX_DEPTH, WebSocketAuthError, account_exports as account, agentconfig_exports as agentconfig, appendTranscriptionHints, assistant_exports as assistant, authenticatedFetch, bookPublicSlot, buildCitationChunkData, buildDocumentTools, buildFactsContextTool, buildRetrievalChunkTool, buildRetrievalFullContextTool, buildRetrievalTocTool, buildTurnRequest, calendar_exports as calendar, calls_exports as calls, canTagHaveParent, cancelPublicBooking, chats_exports as chats, computeRunStats, connectErrorMessage, connectWebSocket, connectWithReconnect, connectors_exports as connectors,
|
|
12553
|
+
export { ACCOUNT_VENDOR, Arbi, ArbiApiError, ArbiError, ArbiWorkspaceChangedError, ArbiWorkspaceSupersededError, CallApiError, DEFAULT_AI_USD_PER_GBP, DRIVE_SYNC_VENDORS, DuplicateContactError, ENTITY_KINDS, FLAT_TAG_KINDS, GOOGLE_VENDORS, IMANAGE_VENDORS, MAILBOX_SYNC_VENDORS, MAX_RETRIEVE_DOC_IDS, MICROSOFT_VENDORS, PRESENCE_KINDS, PROMPT_CONTEXT_CHARS, PlanStepsError, PublicBookingError, SHAREPOINT_VENDORS, STOP_ID_WAIT_MS, STOP_REPEAT_WINDOW_MS, TAG_KINDS, TAG_NESTING_MAX_DEPTH, WebSocketAuthError, account_exports as account, agentconfig_exports as agentconfig, appendTranscriptionHints, assistant_exports as assistant, authenticatedFetch, bookPublicSlot, buildCitationChunkData, buildDocumentTools, buildFactsContextTool, buildRetrievalChunkTool, buildRetrievalFullContextTool, buildRetrievalTocTool, buildTurnRequest, calendar_exports as calendar, calls_exports as calls, canTagHaveParent, cancelPublicBooking, chats_exports as chats, computeRunStats, connectErrorMessage, connectWebSocket, connectWithReconnect, connectors_exports as connectors, contacts_exports as contacts, continuityPrompt, conversations_exports as conversations, countCitations, createAuthenticatedClient, createIndexAssigner, databases_exports as databases, defaultKindForFormat, doctags_exports as doctags, documents_exports as documents, estimateDraftTokens, extractDocumentIdsFromMessages, extractFactIdsFromMessages, extractSubagentLanes, facts_exports as facts, files_exports as files, filterDocumentTags, filterSkills, findLeafForTaskMessage, findMainSiblingLeaf, findReplyTarget, findSubagentRunId, flattenTagTree, formatAgentStepLabel, formatFileSize, formatGbp, formatGbpPerMillionTokens, formatItemLabel, formatTokens, formatUserName, formatWorkspaceChoices, getAgentStepLabel, getAttachableRunId, getChildTags, getContextRemainingPercent, getContextUsedPercent, getContextUsedTokens, getCurrentStep, getEligibleParentTags, getErrorMessage, getPublicBookingPage, getRawWorkspaceKey, getRunToAttach, getRunToCancel, getStepDisplay, getStepTool, getSubagentBranchRecord, getTagDescendantIds, health_exports as health, house_template_exports as houseTemplates, hydrateAgentSteps, identityErrorCode, identity_exports as identityVerification, isAnnotationTag, isConnectorVendorVisible, isDriveSyncVendor, isEntityTag, isFlatKind, isLabelTag, isMailboxSyncVendor, isNearAiUsageBudget, isPresenceTag, isSharePointVendor, isSharedSkill, isTraceItem, mail_exports as mail, mergeAgentSteps, notifications_exports as notifications, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, performPasswordLogin, pickMainThread, profile_exports as profile, progressFetch, projects_exports as projects, quotaExceededFrom, quotaFromStreamError, reduceOutputItem, refusalReason, requireData, requireOk, resolveAuth, resolveCitations, resolveSummary, resolveWorkspace, responses_exports as responses, searchChunks, selectFullContextDocument, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, sliceToSubagentThread, streamSSE, stripCitationMarkdown, subagentJobLabel, summarizeCitations, tagUseCount, tags_exports as tags, tagsForScope, tagsOfGroup, topLevelAgentSteps, usdToGbp, work_exports as work, workflow_steps_exports as workflowSteps, workflows_exports as workflows, workspaces_exports as workspaces, wouldCreateTagCycle };
|
|
12373
12554
|
//# sourceMappingURL=browser.js.map
|
|
12374
12555
|
//# sourceMappingURL=browser.js.map
|