@arbidocs/sdk 0.5.51 → 0.5.53
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-D7wYZMhd.d.ts → browser-CAjoEmx3.d.ts} +10 -1
- package/dist/{browser-CHDMPri4.d.cts → browser-CzRV0kfR.d.cts} +10 -1
- package/dist/browser.cjs +19 -7
- 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 +19 -7
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +19 -7
- 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 +19 -7
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as ConfigStore, Y as CliConfig, Z as CliCredentials, V as ChatSession, c4 as SkippedFile, cS as UploadResult, p as AuthHeaders, cM as UploadBatchResult, cQ as UploadOptions, cN as UploadDirectOptions, cO as UploadDirectResult, bZ as SUPPORTED_EXTENSIONS, b7 as MailAttachment, N as ChatCryptoContext } from './browser-
|
|
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 ArbiHostSession, h as ArbiOptions, i as ArbiSessionExpiredError, j as ArbiWorkspaceChangedError, k as ArbiWorkspaceSupersededError, l as AskHandlers, m as AskRequest, n as AttendeeRead, o as AuthContext, 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, O as ChatKeyRing, P as ChatKind, Q as ChatMemberKey, R as ChatMemberResponse, S as ChatMessage, T as ChatMessageResponse, U as ChatResponse, W as CitationSummary, X as CitationToolSources, _ as CommandDescriptor, 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, ac as CreateWorkRequest, ad as CreateWorkflowRequest, ae as DEFAULT_AI_USD_PER_GBP, af as DOC_TERMINAL_STATUSES, 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, ap as DecryptedChat, aq as DecryptedChatMessage, ar as DeploymentHouseTemplate, as as DocInfo, at as DocInfoMap, au as DocNameMap, av as DocumentAutomationAction, aw as DocumentListFields, ax as DocumentListOrder, ay as DocumentSelector, az as DocumentWaiter, aA as DocumentWaiterOptions, 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, aN as FindTimeParams, aO as FormattedWsMessage, 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, b0 as ListAllOptions, b1 as ListEventsParams, b3 as ListPaginatedOptions, b4 as MAILBOX_SYNC_VENDORS, b5 as MAX_RETRIEVE_DOC_IDS, b6 as MICROSOFT_VENDORS, b8 as MessageLevel, 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, bI as ResolvedRecipient, 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, bW as STEP_FIELD_OPTION_TONES, 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, c5 as SlackConnectionStatus, c6 as StepActionRequest, c7 as StepActivityEvent, c8 as StepAssignee, c9 as StepDisplay, ca as StepField, cb as StepFieldOption, cc as StepFieldOptionTone, 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, cL as UpdateWorkflowRequest, cP as UploadDocumentsOptions, cR as UploadProgressListener, 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, d7 as agents, d8 as appendTranscriptionHints, d9 as assistant, da as authenticatedFetch, db as bookPublicSlot, dc as buildCitationChunkData, dd as buildDocNameMap, 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, dA as createDocumentWaiter, 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, dY as formatStreamSummary, dZ as formatTokens, d_ as formatUserName, d$ as formatWorkspaceChoices, e0 as formatWsMessage, e1 as generateEncryptedWorkspaceKey, e2 as generateNewWorkspaceKey, e3 as getAgentStepLabel, e4 as getAttachableRunId, e5 as getChildTags, e6 as getContextRemainingPercent, e7 as getContextUsedPercent, e8 as getContextUsedTokens, e9 as getCurrentStep, ea as getEligibleParentTags, eb as getErrorCode, 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, eJ as performSigningKeyLogin, eK as performSsoDeviceFlowLogin, 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, f4 as signatureRequests, 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, ff as uploadSkill, fg as usdToGbp, fh as work, fi as workflowSteps, fj as workflows, fk as workspaces, fl as wouldCreateTagCycle } from './browser-
|
|
1
|
+
import { $ as ConfigStore, Y as CliConfig, Z as CliCredentials, V as ChatSession, c4 as SkippedFile, cS as UploadResult, p as AuthHeaders, cM as UploadBatchResult, cQ as UploadOptions, cN as UploadDirectOptions, cO as UploadDirectResult, bZ as SUPPORTED_EXTENSIONS, b7 as MailAttachment, N as ChatCryptoContext } from './browser-CzRV0kfR.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 ArbiHostSession, h as ArbiOptions, i as ArbiSessionExpiredError, j as ArbiWorkspaceChangedError, k as ArbiWorkspaceSupersededError, l as AskHandlers, m as AskRequest, n as AttendeeRead, o as AuthContext, 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, O as ChatKeyRing, P as ChatKind, Q as ChatMemberKey, R as ChatMemberResponse, S as ChatMessage, T as ChatMessageResponse, U as ChatResponse, W as CitationSummary, X as CitationToolSources, _ as CommandDescriptor, 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, ac as CreateWorkRequest, ad as CreateWorkflowRequest, ae as DEFAULT_AI_USD_PER_GBP, af as DOC_TERMINAL_STATUSES, 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, ap as DecryptedChat, aq as DecryptedChatMessage, ar as DeploymentHouseTemplate, as as DocInfo, at as DocInfoMap, au as DocNameMap, av as DocumentAutomationAction, aw as DocumentListFields, ax as DocumentListOrder, ay as DocumentSelector, az as DocumentWaiter, aA as DocumentWaiterOptions, 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, aN as FindTimeParams, aO as FormattedWsMessage, 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, b0 as ListAllOptions, b1 as ListEventsParams, b3 as ListPaginatedOptions, b4 as MAILBOX_SYNC_VENDORS, b5 as MAX_RETRIEVE_DOC_IDS, b6 as MICROSOFT_VENDORS, b8 as MessageLevel, 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, bI as ResolvedRecipient, 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, bW as STEP_FIELD_OPTION_TONES, 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, c5 as SlackConnectionStatus, c6 as StepActionRequest, c7 as StepActivityEvent, c8 as StepAssignee, c9 as StepDisplay, ca as StepField, cb as StepFieldOption, cc as StepFieldOptionTone, 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, cL as UpdateWorkflowRequest, cP as UploadDocumentsOptions, cR as UploadProgressListener, 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, d7 as agents, d8 as appendTranscriptionHints, d9 as assistant, da as authenticatedFetch, db as bookPublicSlot, dc as buildCitationChunkData, dd as buildDocNameMap, 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, dA as createDocumentWaiter, 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, dY as formatStreamSummary, dZ as formatTokens, d_ as formatUserName, d$ as formatWorkspaceChoices, e0 as formatWsMessage, e1 as generateEncryptedWorkspaceKey, e2 as generateNewWorkspaceKey, e3 as getAgentStepLabel, e4 as getAttachableRunId, e5 as getChildTags, e6 as getContextRemainingPercent, e7 as getContextUsedPercent, e8 as getContextUsedTokens, e9 as getCurrentStep, ea as getEligibleParentTags, eb as getErrorCode, 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, eJ as performSigningKeyLogin, eK as performSsoDeviceFlowLogin, 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, f4 as signatureRequests, 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, ff as uploadSkill, fg as usdToGbp, fh as work, fi as workflowSteps, fj as workflows, fk as workspaces, fl as wouldCreateTagCycle } from './browser-CzRV0kfR.cjs';
|
|
3
3
|
import { SessionPersistence, ArbiClient, components } from '@arbidocs/client';
|
|
4
4
|
export { CallPeer, 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';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as ConfigStore, Y as CliConfig, Z as CliCredentials, V as ChatSession, c4 as SkippedFile, cS as UploadResult, p as AuthHeaders, cM as UploadBatchResult, cQ as UploadOptions, cN as UploadDirectOptions, cO as UploadDirectResult, bZ as SUPPORTED_EXTENSIONS, b7 as MailAttachment, N as ChatCryptoContext } from './browser-
|
|
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 ArbiHostSession, h as ArbiOptions, i as ArbiSessionExpiredError, j as ArbiWorkspaceChangedError, k as ArbiWorkspaceSupersededError, l as AskHandlers, m as AskRequest, n as AttendeeRead, o as AuthContext, 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, O as ChatKeyRing, P as ChatKind, Q as ChatMemberKey, R as ChatMemberResponse, S as ChatMessage, T as ChatMessageResponse, U as ChatResponse, W as CitationSummary, X as CitationToolSources, _ as CommandDescriptor, 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, ac as CreateWorkRequest, ad as CreateWorkflowRequest, ae as DEFAULT_AI_USD_PER_GBP, af as DOC_TERMINAL_STATUSES, 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, ap as DecryptedChat, aq as DecryptedChatMessage, ar as DeploymentHouseTemplate, as as DocInfo, at as DocInfoMap, au as DocNameMap, av as DocumentAutomationAction, aw as DocumentListFields, ax as DocumentListOrder, ay as DocumentSelector, az as DocumentWaiter, aA as DocumentWaiterOptions, 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, aN as FindTimeParams, aO as FormattedWsMessage, 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, b0 as ListAllOptions, b1 as ListEventsParams, b3 as ListPaginatedOptions, b4 as MAILBOX_SYNC_VENDORS, b5 as MAX_RETRIEVE_DOC_IDS, b6 as MICROSOFT_VENDORS, b8 as MessageLevel, 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, bI as ResolvedRecipient, 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, bW as STEP_FIELD_OPTION_TONES, 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, c5 as SlackConnectionStatus, c6 as StepActionRequest, c7 as StepActivityEvent, c8 as StepAssignee, c9 as StepDisplay, ca as StepField, cb as StepFieldOption, cc as StepFieldOptionTone, 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, cL as UpdateWorkflowRequest, cP as UploadDocumentsOptions, cR as UploadProgressListener, 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, d7 as agents, d8 as appendTranscriptionHints, d9 as assistant, da as authenticatedFetch, db as bookPublicSlot, dc as buildCitationChunkData, dd as buildDocNameMap, 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, dA as createDocumentWaiter, 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, dY as formatStreamSummary, dZ as formatTokens, d_ as formatUserName, d$ as formatWorkspaceChoices, e0 as formatWsMessage, e1 as generateEncryptedWorkspaceKey, e2 as generateNewWorkspaceKey, e3 as getAgentStepLabel, e4 as getAttachableRunId, e5 as getChildTags, e6 as getContextRemainingPercent, e7 as getContextUsedPercent, e8 as getContextUsedTokens, e9 as getCurrentStep, ea as getEligibleParentTags, eb as getErrorCode, 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, eJ as performSigningKeyLogin, eK as performSsoDeviceFlowLogin, 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, f4 as signatureRequests, 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, ff as uploadSkill, fg as usdToGbp, fh as work, fi as workflowSteps, fj as workflows, fk as workspaces, fl as wouldCreateTagCycle } from './browser-
|
|
1
|
+
import { $ as ConfigStore, Y as CliConfig, Z as CliCredentials, V as ChatSession, c4 as SkippedFile, cS as UploadResult, p as AuthHeaders, cM as UploadBatchResult, cQ as UploadOptions, cN as UploadDirectOptions, cO as UploadDirectResult, bZ as SUPPORTED_EXTENSIONS, b7 as MailAttachment, N as ChatCryptoContext } from './browser-CAjoEmx3.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 ArbiHostSession, h as ArbiOptions, i as ArbiSessionExpiredError, j as ArbiWorkspaceChangedError, k as ArbiWorkspaceSupersededError, l as AskHandlers, m as AskRequest, n as AttendeeRead, o as AuthContext, 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, O as ChatKeyRing, P as ChatKind, Q as ChatMemberKey, R as ChatMemberResponse, S as ChatMessage, T as ChatMessageResponse, U as ChatResponse, W as CitationSummary, X as CitationToolSources, _ as CommandDescriptor, 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, ac as CreateWorkRequest, ad as CreateWorkflowRequest, ae as DEFAULT_AI_USD_PER_GBP, af as DOC_TERMINAL_STATUSES, 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, ap as DecryptedChat, aq as DecryptedChatMessage, ar as DeploymentHouseTemplate, as as DocInfo, at as DocInfoMap, au as DocNameMap, av as DocumentAutomationAction, aw as DocumentListFields, ax as DocumentListOrder, ay as DocumentSelector, az as DocumentWaiter, aA as DocumentWaiterOptions, 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, aN as FindTimeParams, aO as FormattedWsMessage, 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, b0 as ListAllOptions, b1 as ListEventsParams, b3 as ListPaginatedOptions, b4 as MAILBOX_SYNC_VENDORS, b5 as MAX_RETRIEVE_DOC_IDS, b6 as MICROSOFT_VENDORS, b8 as MessageLevel, 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, bI as ResolvedRecipient, 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, bW as STEP_FIELD_OPTION_TONES, 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, c5 as SlackConnectionStatus, c6 as StepActionRequest, c7 as StepActivityEvent, c8 as StepAssignee, c9 as StepDisplay, ca as StepField, cb as StepFieldOption, cc as StepFieldOptionTone, 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, cL as UpdateWorkflowRequest, cP as UploadDocumentsOptions, cR as UploadProgressListener, 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, d7 as agents, d8 as appendTranscriptionHints, d9 as assistant, da as authenticatedFetch, db as bookPublicSlot, dc as buildCitationChunkData, dd as buildDocNameMap, 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, dA as createDocumentWaiter, 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, dY as formatStreamSummary, dZ as formatTokens, d_ as formatUserName, d$ as formatWorkspaceChoices, e0 as formatWsMessage, e1 as generateEncryptedWorkspaceKey, e2 as generateNewWorkspaceKey, e3 as getAgentStepLabel, e4 as getAttachableRunId, e5 as getChildTags, e6 as getContextRemainingPercent, e7 as getContextUsedPercent, e8 as getContextUsedTokens, e9 as getCurrentStep, ea as getEligibleParentTags, eb as getErrorCode, 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, eJ as performSigningKeyLogin, eK as performSsoDeviceFlowLogin, 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, f4 as signatureRequests, 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, ff as uploadSkill, fg as usdToGbp, fh as work, fi as workflowSteps, fj as workflows, fk as workspaces, fl as wouldCreateTagCycle } from './browser-CAjoEmx3.js';
|
|
3
3
|
import { SessionPersistence, ArbiClient, components } from '@arbidocs/client';
|
|
4
4
|
export { CallPeer, 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';
|
package/dist/index.js
CHANGED
|
@@ -5603,9 +5603,10 @@ async function getDeploymentHouseTemplate(arbi) {
|
|
|
5603
5603
|
const { data, error, response } = await arbi.fetch.GET("/v1/deployment/house-template", {
|
|
5604
5604
|
parseAs: "arrayBuffer"
|
|
5605
5605
|
});
|
|
5606
|
-
|
|
5606
|
+
const status = response.status;
|
|
5607
|
+
if (status === 204 || status === 404) return null;
|
|
5607
5608
|
if (error || !data)
|
|
5608
|
-
throw new ArbiApiError("Could not read the deployment house template", error,
|
|
5609
|
+
throw new ArbiApiError("Could not read the deployment house template", error, status);
|
|
5609
5610
|
return {
|
|
5610
5611
|
bytes: new Uint8Array(data),
|
|
5611
5612
|
name: filenameOf(response) ?? "House template.dotx"
|
|
@@ -6497,6 +6498,7 @@ async function listTags(arbi, query2 = {}) {
|
|
|
6497
6498
|
if (query2.ids?.length) params.ids = query2.ids;
|
|
6498
6499
|
if (query2.include?.length) params.include = query2.include;
|
|
6499
6500
|
if (query2.linksLimit !== void 0) params.links_limit = query2.linksLimit;
|
|
6501
|
+
if (query2.workspaceId) params.workspace_ext_id = query2.workspaceId;
|
|
6500
6502
|
return requireData(
|
|
6501
6503
|
await arbi.fetch.GET(
|
|
6502
6504
|
"/v1/tag/",
|
|
@@ -6508,6 +6510,7 @@ async function listTags(arbi, query2 = {}) {
|
|
|
6508
6510
|
async function createTag(arbi, options) {
|
|
6509
6511
|
return requireData(
|
|
6510
6512
|
await arbi.fetch.POST("/v1/tag/", {
|
|
6513
|
+
...options.workspaceId ? { params: { query: { workspace_ext_id: options.workspaceId } } } : {},
|
|
6511
6514
|
body: {
|
|
6512
6515
|
name: options.name,
|
|
6513
6516
|
tag_type: options.tagType ?? { type: "checkbox", options: [] },
|
|
@@ -10875,6 +10878,14 @@ var Arbi = class {
|
|
|
10875
10878
|
this.requireLogin();
|
|
10876
10879
|
return this.requireClient().workspaceKeys.prime(workspaceId);
|
|
10877
10880
|
}
|
|
10881
|
+
/**
|
|
10882
|
+
* Create a tag in `workspaceId`, named on the request: a switch while it is sent cannot move it to the workspace
|
|
10883
|
+
* opened next, and a workspace other than the current one is opened for this session first.
|
|
10884
|
+
*/
|
|
10885
|
+
async createTagIn(workspaceId, options) {
|
|
10886
|
+
await this.targetWorkspace(workspaceId);
|
|
10887
|
+
return createTag(this.requireClient(), { ...options, workspaceId });
|
|
10888
|
+
}
|
|
10878
10889
|
/** The workspace a call names, opened for this session; `undefined` for the current one. */
|
|
10879
10890
|
async targetWorkspace(workspaceId) {
|
|
10880
10891
|
if (!workspaceId || workspaceId === this.currentWorkspaceId) return void 0;
|
|
@@ -11793,11 +11804,12 @@ var Arbi = class {
|
|
|
11793
11804
|
* each tag's documents, facts and threads: `list({ kind: 'issue', include: ['links'] })` is the
|
|
11794
11805
|
* issue table's rows (its columns: `tagKinds.get('issue')`).
|
|
11795
11806
|
*/
|
|
11796
|
-
|
|
11797
|
-
|
|
11798
|
-
|
|
11799
|
-
|
|
11800
|
-
}
|
|
11807
|
+
/** The open workspace's tags, or `query.workspaceId`'s (opened for this session, not switched to). */
|
|
11808
|
+
list: async (query2) => {
|
|
11809
|
+
await this.targetWorkspace(query2?.workspaceId);
|
|
11810
|
+
return listTags(this.requireClient(), query2);
|
|
11811
|
+
},
|
|
11812
|
+
create: (options) => this.createTagIn(options.workspaceId ?? this.requireWorkspace(), options),
|
|
11801
11813
|
delete: (tagId) => deleteTag(this.requireClient(), tagId),
|
|
11802
11814
|
update: (tagId, change) => updateTag(this.requireClient(), tagId, change),
|
|
11803
11815
|
/** Merge-patch a tag's values for its kind's fields (`null` clears one). */
|