@arbidocs/sdk 0.5.81 → 0.5.82
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 +12 -0
- package/dist/{browser-CP0e4GnL.d.cts → browser-4oIgAqs1.d.cts} +96 -40
- package/dist/{browser-xgwYmWyv.d.ts → browser-CL-6Y6E1.d.ts} +96 -40
- package/dist/browser.cjs +181 -62
- 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 +181 -62
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +181 -62
- 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 +181 -62
- package/dist/index.js.map +1 -1
- package/examples/human-review/package.json +1 -1
- package/examples/react-chat/package.json +2 -2
- 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 ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiStructuredOutputError, l as ArbiTransportError, m as ArbiWorkspaceChangedError, n as ArbiWorkspaceSupersededError, o as ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AttendeeRead, s as AuthContext, t as AuthHeaders, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, S as ChatCryptoContext, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, _ as ChatSession, $ as CitationSummary, a0 as CitationToolSources, a1 as CliConfig, a2 as CliCredentials, a3 as CommandDescriptor, a4 as ConfigStore, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectionModel, a9 as ConnectorCatalogEntry, aa as ConnectorFolder, ab as ConnectorSyncProgress, ac as ConnectorSyncStatus, ad as ConnectorVendorKey, ae as ConnectorVisibilitySettings, af as ContextUsage, ag as ConversationResponse, ah as ConversationUsageResponse, ai as CreateFactRequest, aj as CreateFactsRequest, ak as CreateWorkRequest, al as CreateWorkflowRequest, am as DEFAULT_AI_USD_PER_GBP, ao as DRIVE_SYNC_VENDORS, ap as Database, aq as DatabaseAggregateRequest, ar as DatabaseAggregateResult, as as DatabaseColumn, at as DatabaseColumnWrite, au as DatabaseImportResult, av as DatabaseRow, aw as DatabaseRowPage, ax as DatabaseRowsQuery, ay as DateTimeSpec, aA as DecryptedChatMessage, aB as DeploymentHouseTemplate, aC as DiagnoseOptions, aD as DirectModelUsage, aE as DocInfo, aF as DocInfoMap, aH as DocumentAutomationAction, aK as DocumentSelector, aN as DriveSyncProgress, aO as DriveSyncSummary, aP as DuplicateContactError, aQ as ENTITY_KINDS, aR as EditScope, aS as EntityKind, aT as EventCreateBody, aU as EventPatchBody, aV as FLAT_TAG_KINDS, aW as FactResponse, aX as FactSearchRequest, aY as FactSearchResponse, aZ as FindTimeParams, a$ as FreeBusyEntry, b0 as FullContextSelection, b1 as GOOGLE_VENDORS, b2 as HolidayCountry, b3 as HouseTemplateCandidate, b4 as IMANAGE_VENDORS, b5 as IdentityErrorCode, b6 as IdentityPurchase, b7 as IdentityState, b8 as IdentityStatus, b9 as ImportResult, ba as InvitationRead, bb as JsonSchemaOutputFormat, bc as LinkedRun, be as ListEventsParams, bf as ListFactsOptions, bh as MAILBOX_SYNC_VENDORS, bi as MAX_RETRIEVE_DOC_IDS, bj as MICROSOFT_VENDORS, bm as ModelConnection, bn as OAuthAccountKind, bo as OutputItemDone, bp as OverlayItem, bq as OverlayLayerName, br as PRESENCE_KINDS, bs as PROMPT_CONTEXT_CHARS, bt as ParsedResponse, bu as ParsedSlashCommand, bv as ParsedStructuredResponse, bw as PendingAuthResponse, bx as PersonKey, by as PersonalConnectionInput, bz as PlanStepsError, bA as PlanWorkRequest, bB as ProductResponse, bC as ProjectAddonKind, bD as ProjectAddonSettingsRequest, bE as ProjectBudget, bF as ProjectCheckoutRequest, bG as ProjectConversationUsageResponse, bH as ProjectCreateOptions, bI as ProjectDetails, bJ as ProjectEventKind, bK as ProjectEventResponse, bL as ProjectInvoicesResponse, bM as ProjectNextPeriodAddonsRequest, bN as ProjectPlanChangeRequest, bO as ProjectQuoteRequest, bP as ProjectResponse, bQ as ProjectUpdateRequest, bR as ProjectUsageResponse, bS as PublicBookingError, bT as PublicBookingPage, bU as QuotaExceeded, bV as RaisedSignal, bW as RawResponseEvent, bX as ReconnectOptions, bY as ReconnectableWsConnection, bZ as ResolvedCitation, b$ as RespondParams, c0 as RespondPartstat, c1 as Response, c2 as ResponseCreateRequest, c3 as ResponseCreateResult, c4 as ResponseHandle, c5 as ResponseSnapshot, c6 as ResponseStart, c7 as ResponseStartOptions, c8 as ResponseStream, c9 as ResponseStreamEvent, ca as ResponseTools, cb as RoomCreateBody, cc as RoomQuery, cd as RoomRead, ce as RunProgress, cf as RunStats, cg as RunStep, ch as RunWaitingOn, ci as SHAREPOINT_VENDORS, cj as SSEEvent, ck as SSEStreamCallbacks, cl as SSEStreamOutcome, cm as SSEStreamResult, co as STOP_ID_WAIT_MS, cp as STOP_REPEAT_WINDOW_MS, cr as ScopedTarget, cs as SearchChunk, ct as SecureMailCompose, cu as SecureMailSend, cv as SecureMailSender, cw as SendBack, cx as SetupDiagnostic, cy as SetupReport, cz as ShareRead, cA as ShareRole, cB as SkillSummary, cC as SkippedFile, cD as SlackConnectionStatus, cE as StepActionRequest, cF as StepActivityEvent, cG as StepAssignee, cH as StepDisplay, cI as StepField, cL as StepKind, cM as StepPhase, cN as StepSignal, cO as StepSignalWhen, cP as StepState, cQ as StepStatus, cR as SubagentBranchRecord, cS as SubagentLaneInfo, cT as SubmitBackgroundQueryOptions, cU as SubscribeParams, cV as SupportRating, cW as SupportTicket, cX as SupportTicketInput, cY as SyncTriggerResult, cZ as TAG_KINDS, c_ as TAG_NESTING_MAX_DEPTH, c$ as TagChange, d0 as TagFieldDefinition, d1 as TagGroup, d2 as TagKind, d3 as TagKindField, d4 as TagKindSchema, d5 as TagLinks, d6 as TagListQuery, d7 as TagNode, d8 as TagResponse, d9 as TagScope, da as TagTreeRow, db as TaskPlan, dc as TaskPlanStep, dd as TaxQuoteResponse, de as Thread, df as ThreadsResponse, dg as TimeSuggestion, dh as TurnRequest, di as UpdateConversationRequest, dj as UpdateFactRequest, dk as UpdateWorkflowRequest, dp as UploadDocumentsOptions, dq as UploadOptions, dr as UploadProgressListener, ds as UploadResult, dt as UsageBreakdown, du as UserConnectorEntry, dv as UserDailyUsageResponse, dw as UserInfo, dx as WebSocketAuthError, dy as WeeklyHoursSpec, dz as WorkStatus, dA as WorkflowAuthMode, dB as WorkflowResponse, dC as WorkflowRunHistoryResponse, dD as WorkflowRunResponse, dE as WorkspaceConflict, dF as WorkspaceContext, dG as WorkspaceOpenResponse, dH as WorkspaceResponse, dI as WsConnection, dJ as account, dK as agentconfig, dM as appendTranscriptionHints, dN as assistant, dO as authenticatedFetch, dP as bookPublicSlot, dQ as buildCitationChunkData, dS as buildDocumentTools, dT as buildFactsContextTool, dU as buildRetrievalChunkTool, dV as buildRetrievalFullContextTool, dW as buildRetrievalTocTool, dX as buildTurnRequest, dY as calendar, dZ as calls, d_ as canTagHaveParent, d$ as cancelPublicBooking, e0 as capabilities, e1 as chats, e2 as composeConfiguration, e3 as composeTools, e4 as computeRunStats, e5 as connectErrorMessage, e6 as connectWebSocket, e7 as connectWithReconnect, e8 as connectors, e9 as contacts, ea as continuityPrompt, eb as conversations, ec as countCitations, ed as createAuthenticatedClient, ef as createIndexAssigner, eg as databases, eh as defaultKindForFormat, ei as diagnoseSetup, ej as doctags, ek as documentTools, el as documents, em as estimateDraftTokens, en as extractDocumentIdsFromMessages, eo as extractFactIdsFromMessages, ep as extractSubagentLanes, eq as facts, er as files, es as filterDocumentTags, et as filterSkills, eu as findLeafForTaskMessage, ev as findMainSiblingLeaf, ew as findReplyTarget, ex as findSubagentRunId, ey as flattenTagTree, ez as formatAgentStepLabel, eA as formatFileSize, eB as formatGbp, eC as formatGbpPerMillionTokens, eD as formatItemLabel, eF as formatTokens, eG as formatUserName, eH as formatWorkspaceChoices, eL as getAgentStepLabel, eM as getAttachableRunId, eN as getChildTags, eO as getContextRemainingPercent, eP as getContextUsedPercent, eQ as getContextUsedTokens, eR as getCurrentStep, eS as getEligibleParentTags, eT as getErrorCode, eU as getErrorMessage, eV as getPublicBookingPage, eW as getRawWorkspaceKey, eX as getRunToAttach, eY as getRunToCancel, eZ as getStepDisplay, e_ as getStepTool, e$ as getSubagentBranchRecord, f0 as getTagDescendantIds, f1 as health, f2 as houseTemplates, f3 as hydrateAgentSteps, f5 as identityErrorCode, f4 as identityVerification, f6 as instructions, f7 as isAnnotationTag, f8 as isConnectorVendorVisible, f9 as isDriveSyncVendor, fa as isEntityTag, fb as isFlatKind, fc as isLabelTag, fd as isMailboxSyncVendor, fe as isNearAiUsageBudget, ff as isPresenceTag, fg as isSharePointVendor, fh as isSharedSkill, fi as isTraceItem, fj as mail, fk as mcpTools, fl as mergeAgentSteps, fm as modelConnections, fn as notifications, fo as parseSSEEvents, fp as parseSlashCommand, fq as parseSlashTokenInProgress, fr as parseStructuredResponse, fs as performPasswordLogin, fv as pickMainThread, fw as profile, fx as progressFetch, fy as projects, fz as quotaExceededFrom, fA as quotaFromStreamError, fB as reduceOutputItem, fC as refusalReason, fD as requireData, fE as requireOk, fF as resolveAuth, fG as resolveCitations, fH as resolveSummary, fI as resolveWorkspace, fJ as responses, fK as searchChunks, fL as secureMail, fM as selectFullContextDocument, fN as selectWorkspace, fO as selectWorkspaceById, fP as sessions, fQ as settings, fS as sliceToSubagentThread, fT as streamSSE, fU as stripCitationMarkdown, fV as subagentJobLabel, fW as summarizeCitations, fX as support, fY as tagUseCount, fZ as tags, f_ as tagsForScope, f$ as tagsOfGroup, g0 as topLevelAgentSteps, g2 as usdToGbp, g3 as work, g4 as workflowSteps, g5 as workflows, g6 as workspaceConflictOf, g7 as workspaces, g8 as wouldCreateTagCycle } from './browser-
|
|
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 ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiStructuredOutputError, l as ArbiTransportError, m as ArbiWorkspaceChangedError, n as ArbiWorkspaceSupersededError, o as ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AttendeeRead, s as AuthContext, t as AuthHeaders, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, S as ChatCryptoContext, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, _ as ChatSession, $ as CitationSummary, a0 as CitationToolSources, a1 as CliConfig, a2 as CliCredentials, a3 as CommandDescriptor, a4 as ConfigStore, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectionModel, a9 as ConnectorCatalogEntry, aa as ConnectorFolder, ab as ConnectorSyncProgress, ac as ConnectorSyncStatus, ad as ConnectorVendorKey, ae as ConnectorVisibilitySettings, af as ContextUsage, ag as ConversationResponse, ah as ConversationUsageResponse, ai as CreateFactRequest, aj as CreateFactsRequest, ak as CreateWorkRequest, al as CreateWorkflowRequest, am as DEFAULT_AI_USD_PER_GBP, ao as DRIVE_SYNC_VENDORS, ap as Database, aq as DatabaseAggregateRequest, ar as DatabaseAggregateResult, as as DatabaseColumn, at as DatabaseColumnWrite, au as DatabaseImportResult, av as DatabaseRow, aw as DatabaseRowPage, ax as DatabaseRowsQuery, ay as DateTimeSpec, aA as DecryptedChatMessage, aB as DeploymentHouseTemplate, aC as DiagnoseOptions, aD as DirectModelUsage, aE as DocInfo, aF as DocInfoMap, aH as DocumentAutomationAction, aK as DocumentSelector, aN as DriveSyncProgress, aO as DriveSyncSummary, aP as DuplicateContactError, aQ as ENTITY_KINDS, aR as EditScope, aS as EntityKind, aT as EventCreateBody, aU as EventPatchBody, aV as FLAT_TAG_KINDS, aW as FactResponse, aX as FactSearchRequest, aY as FactSearchResponse, aZ as FindTimeParams, a$ as FreeBusyEntry, b0 as FullContextSelection, b1 as GOOGLE_VENDORS, b2 as HolidayCountry, b3 as HouseTemplateCandidate, b4 as IMANAGE_VENDORS, b5 as IdentityErrorCode, b6 as IdentityPurchase, b7 as IdentityState, b8 as IdentityStatus, b9 as ImportResult, ba as InvitationRead, bb as JsonSchemaOutputFormat, bc as LinkedRun, be as ListEventsParams, bf as ListFactsOptions, bh as MAILBOX_SYNC_VENDORS, bi as MAX_RETRIEVE_DOC_IDS, bj as MICROSOFT_VENDORS, bm as ModelConnection, bn as OAuthAccountKind, bo as OutputItemDone, bp as OverlayItem, bq as OverlayLayerName, br as PRESENCE_KINDS, bs as PROMPT_CONTEXT_CHARS, bt as ParsedResponse, bu as ParsedSlashCommand, bv as ParsedStructuredResponse, bw as PendingAuthResponse, bx as PersonKey, by as PersonalConnectionInput, bz as PlanStepsError, bA as PlanWorkRequest, bB as ProductResponse, bC as ProjectAddonKind, bD as ProjectAddonSettingsRequest, bE as ProjectBudget, bF as ProjectCheckoutRequest, bG as ProjectConversationUsageResponse, bH as ProjectCreateOptions, bI as ProjectDetails, bJ as ProjectEventKind, bK as ProjectEventResponse, bL as ProjectInvoicesResponse, bM as ProjectNextPeriodAddonsRequest, bN as ProjectPlanChangeRequest, bO as ProjectQuoteRequest, bP as ProjectResponse, bQ as ProjectUpdateRequest, bR as ProjectUsageResponse, bS as PublicBookingError, bT as PublicBookingPage, bU as QuotaExceeded, bV as RaisedSignal, bW as RawResponseEvent, bX as ReconnectOptions, bY as ReconnectableWsConnection, bZ as ResolvedCitation, b$ as RespondParams, c0 as RespondPartstat, c1 as Response, c2 as ResponseCreateRequest, c3 as ResponseCreateResult, c4 as ResponseHandle, c5 as ResponseSnapshot, c6 as ResponseStart, c7 as ResponseStartOptions, c8 as ResponseStream, c9 as ResponseStreamEvent, ca as ResponseTools, cb as RoomCreateBody, cc as RoomQuery, cd as RoomRead, ce as RunProgress, cf as RunStats, cg as RunStep, ch as RunWaitingOn, ci as SHAREPOINT_VENDORS, cj as SSEEvent, ck as SSEStreamCallbacks, cl as SSEStreamOutcome, cm as SSEStreamResult, co as STOP_ID_WAIT_MS, cp as STOP_REPEAT_WINDOW_MS, cr as ScopedTarget, cs as SearchChunk, ct as SecureMailCompose, cu as SecureMailSend, cv as SecureMailSender, cw as SendBack, cx as SetupDiagnostic, cy as SetupReport, cz as ShareRead, cA as ShareRole, cB as SkillSummary, cC as SkippedFile, cD as SlackConnectionStatus, cE as StepActionRequest, cF as StepActivityEvent, cG as StepAssignee, cH as StepDisplay, cI as StepField, cL as StepKind, cM as StepPhase, cN as StepSignal, cO as StepSignalWhen, cP as StepState, cQ as StepStatus, cR as SubagentBranchRecord, cS as SubagentLaneInfo, cT as SubmitBackgroundQueryOptions, cU as SubscribeParams, cV as SupportRating, cW as SupportTicket, cX as SupportTicketInput, cY as SyncTriggerResult, cZ as TAG_KINDS, c_ as TAG_NESTING_MAX_DEPTH, c$ as TagChange, d0 as TagFieldDefinition, d1 as TagGroup, d2 as TagKind, d3 as TagKindField, d4 as TagKindSchema, d5 as TagLinks, d6 as TagListQuery, d7 as TagNode, d8 as TagResponse, d9 as TagScope, da as TagTreeRow, db as TaskPlan, dc as TaskPlanStep, dd as TaxQuoteResponse, de as Thread, df as ThreadsResponse, dg as TimeSuggestion, dh as TurnRequest, di as UpdateConversationRequest, dj as UpdateFactRequest, dk as UpdateWorkflowRequest, dp as UploadDocumentsOptions, dq as UploadOptions, dr as UploadProgressListener, ds as UploadResult, dt as UsageBreakdown, du as UserConnectorEntry, dv as UserDailyUsageResponse, dw as UserInfo, dx as WebSocketAuthError, dy as WeeklyHoursSpec, dz as WorkStatus, dA as WorkflowAuthMode, dB as WorkflowResponse, dC as WorkflowRunHistoryResponse, dD as WorkflowRunResponse, dE as WorkspaceConflict, dF as WorkspaceContext, dG as WorkspaceOpenResponse, dH as WorkspaceResponse, dI as WsConnection, dJ as account, dK as agentconfig, dM as appendTranscriptionHints, dN as assistant, dO as authenticatedFetch, dP as bookPublicSlot, dQ as buildCitationChunkData, dS as buildDocumentTools, dT as buildFactsContextTool, dU as buildRetrievalChunkTool, dV as buildRetrievalFullContextTool, dW as buildRetrievalTocTool, dX as buildTurnRequest, dY as calendar, dZ as calls, d_ as canTagHaveParent, d$ as cancelPublicBooking, e0 as capabilities, e1 as chats, e2 as composeConfiguration, e3 as composeTools, e4 as computeRunStats, e5 as connectErrorMessage, e6 as connectWebSocket, e7 as connectWithReconnect, e8 as connectors, e9 as contacts, ea as continuityPrompt, eb as conversations, ec as countCitations, ed as createAuthenticatedClient, ef as createIndexAssigner, eg as databases, eh as defaultKindForFormat, ei as diagnoseSetup, ej as doctags, ek as documentTools, el as documents, em as estimateDraftTokens, en as extractDocumentIdsFromMessages, eo as extractFactIdsFromMessages, ep as extractSubagentLanes, eq as facts, er as files, es as filterDocumentTags, et as filterSkills, eu as findLeafForTaskMessage, ev as findMainSiblingLeaf, ew as findReplyTarget, ex as findSubagentRunId, ey as flattenTagTree, ez as formatAgentStepLabel, eA as formatFileSize, eB as formatGbp, eC as formatGbpPerMillionTokens, eD as formatItemLabel, eF as formatTokens, eG as formatUserName, eH as formatWorkspaceChoices, eL as getAgentStepLabel, eM as getAttachableRunId, eN as getChildTags, eO as getContextRemainingPercent, eP as getContextUsedPercent, eQ as getContextUsedTokens, eR as getCurrentStep, eS as getEligibleParentTags, eT as getErrorCode, eU as getErrorMessage, eV as getPublicBookingPage, eW as getRawWorkspaceKey, eX as getRunToAttach, eY as getRunToCancel, eZ as getStepDisplay, e_ as getStepTool, e$ as getSubagentBranchRecord, f0 as getTagDescendantIds, f1 as health, f2 as houseTemplates, f3 as hydrateAgentSteps, f5 as identityErrorCode, f4 as identityVerification, f6 as instructions, f7 as isAnnotationTag, f8 as isConnectorVendorVisible, f9 as isDriveSyncVendor, fa as isEntityTag, fb as isFlatKind, fc as isLabelTag, fd as isMailboxSyncVendor, fe as isNearAiUsageBudget, ff as isPresenceTag, fg as isSharePointVendor, fh as isSharedSkill, fi as isTraceItem, fj as mail, fk as mcpTools, fl as mergeAgentSteps, fm as modelConnections, fn as notifications, fo as parseSSEEvents, fp as parseSlashCommand, fq as parseSlashTokenInProgress, fr as parseStructuredResponse, fs as performPasswordLogin, fv as pickMainThread, fw as profile, fx as progressFetch, fy as projects, fz as quotaExceededFrom, fA as quotaFromStreamError, fB as reduceOutputItem, fC as refusalReason, fD as requireData, fE as requireOk, fF as resolveAuth, fG as resolveCitations, fH as resolveSummary, fI as resolveWorkspace, fJ as responses, fK as searchChunks, fL as secureMail, fM as selectFullContextDocument, fN as selectWorkspace, fO as selectWorkspaceById, fP as sessions, fQ as settings, fS as sliceToSubagentThread, fT as streamSSE, fU as stripCitationMarkdown, fV as subagentJobLabel, fW as summarizeCitations, fX as support, fY as tagUseCount, fZ as tags, f_ as tagsForScope, f$ as tagsOfGroup, g0 as topLevelAgentSteps, g2 as usdToGbp, g3 as work, g4 as workflowSteps, g5 as workflows, g6 as workspaceConflictOf, g7 as workspaces, g8 as wouldCreateTagCycle } from './browser-4oIgAqs1.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, HttpErrorInfo, HttpRequestInfo, HttpResponseInfo, HttpTransportOptions, LoginProfile, SessionPersistence } 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 ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiStructuredOutputError, l as ArbiTransportError, m as ArbiWorkspaceChangedError, n as ArbiWorkspaceSupersededError, o as ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AttendeeRead, s as AuthContext, t as AuthHeaders, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, S as ChatCryptoContext, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, _ as ChatSession, $ as CitationSummary, a0 as CitationToolSources, a1 as CliConfig, a2 as CliCredentials, a3 as CommandDescriptor, a4 as ConfigStore, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectionModel, a9 as ConnectorCatalogEntry, aa as ConnectorFolder, ab as ConnectorSyncProgress, ac as ConnectorSyncStatus, ad as ConnectorVendorKey, ae as ConnectorVisibilitySettings, af as ContextUsage, ag as ConversationResponse, ah as ConversationUsageResponse, ai as CreateFactRequest, aj as CreateFactsRequest, ak as CreateWorkRequest, al as CreateWorkflowRequest, am as DEFAULT_AI_USD_PER_GBP, ao as DRIVE_SYNC_VENDORS, ap as Database, aq as DatabaseAggregateRequest, ar as DatabaseAggregateResult, as as DatabaseColumn, at as DatabaseColumnWrite, au as DatabaseImportResult, av as DatabaseRow, aw as DatabaseRowPage, ax as DatabaseRowsQuery, ay as DateTimeSpec, aA as DecryptedChatMessage, aB as DeploymentHouseTemplate, aC as DiagnoseOptions, aD as DirectModelUsage, aE as DocInfo, aF as DocInfoMap, aH as DocumentAutomationAction, aK as DocumentSelector, aN as DriveSyncProgress, aO as DriveSyncSummary, aP as DuplicateContactError, aQ as ENTITY_KINDS, aR as EditScope, aS as EntityKind, aT as EventCreateBody, aU as EventPatchBody, aV as FLAT_TAG_KINDS, aW as FactResponse, aX as FactSearchRequest, aY as FactSearchResponse, aZ as FindTimeParams, a$ as FreeBusyEntry, b0 as FullContextSelection, b1 as GOOGLE_VENDORS, b2 as HolidayCountry, b3 as HouseTemplateCandidate, b4 as IMANAGE_VENDORS, b5 as IdentityErrorCode, b6 as IdentityPurchase, b7 as IdentityState, b8 as IdentityStatus, b9 as ImportResult, ba as InvitationRead, bb as JsonSchemaOutputFormat, bc as LinkedRun, be as ListEventsParams, bf as ListFactsOptions, bh as MAILBOX_SYNC_VENDORS, bi as MAX_RETRIEVE_DOC_IDS, bj as MICROSOFT_VENDORS, bm as ModelConnection, bn as OAuthAccountKind, bo as OutputItemDone, bp as OverlayItem, bq as OverlayLayerName, br as PRESENCE_KINDS, bs as PROMPT_CONTEXT_CHARS, bt as ParsedResponse, bu as ParsedSlashCommand, bv as ParsedStructuredResponse, bw as PendingAuthResponse, bx as PersonKey, by as PersonalConnectionInput, bz as PlanStepsError, bA as PlanWorkRequest, bB as ProductResponse, bC as ProjectAddonKind, bD as ProjectAddonSettingsRequest, bE as ProjectBudget, bF as ProjectCheckoutRequest, bG as ProjectConversationUsageResponse, bH as ProjectCreateOptions, bI as ProjectDetails, bJ as ProjectEventKind, bK as ProjectEventResponse, bL as ProjectInvoicesResponse, bM as ProjectNextPeriodAddonsRequest, bN as ProjectPlanChangeRequest, bO as ProjectQuoteRequest, bP as ProjectResponse, bQ as ProjectUpdateRequest, bR as ProjectUsageResponse, bS as PublicBookingError, bT as PublicBookingPage, bU as QuotaExceeded, bV as RaisedSignal, bW as RawResponseEvent, bX as ReconnectOptions, bY as ReconnectableWsConnection, bZ as ResolvedCitation, b$ as RespondParams, c0 as RespondPartstat, c1 as Response, c2 as ResponseCreateRequest, c3 as ResponseCreateResult, c4 as ResponseHandle, c5 as ResponseSnapshot, c6 as ResponseStart, c7 as ResponseStartOptions, c8 as ResponseStream, c9 as ResponseStreamEvent, ca as ResponseTools, cb as RoomCreateBody, cc as RoomQuery, cd as RoomRead, ce as RunProgress, cf as RunStats, cg as RunStep, ch as RunWaitingOn, ci as SHAREPOINT_VENDORS, cj as SSEEvent, ck as SSEStreamCallbacks, cl as SSEStreamOutcome, cm as SSEStreamResult, co as STOP_ID_WAIT_MS, cp as STOP_REPEAT_WINDOW_MS, cr as ScopedTarget, cs as SearchChunk, ct as SecureMailCompose, cu as SecureMailSend, cv as SecureMailSender, cw as SendBack, cx as SetupDiagnostic, cy as SetupReport, cz as ShareRead, cA as ShareRole, cB as SkillSummary, cC as SkippedFile, cD as SlackConnectionStatus, cE as StepActionRequest, cF as StepActivityEvent, cG as StepAssignee, cH as StepDisplay, cI as StepField, cL as StepKind, cM as StepPhase, cN as StepSignal, cO as StepSignalWhen, cP as StepState, cQ as StepStatus, cR as SubagentBranchRecord, cS as SubagentLaneInfo, cT as SubmitBackgroundQueryOptions, cU as SubscribeParams, cV as SupportRating, cW as SupportTicket, cX as SupportTicketInput, cY as SyncTriggerResult, cZ as TAG_KINDS, c_ as TAG_NESTING_MAX_DEPTH, c$ as TagChange, d0 as TagFieldDefinition, d1 as TagGroup, d2 as TagKind, d3 as TagKindField, d4 as TagKindSchema, d5 as TagLinks, d6 as TagListQuery, d7 as TagNode, d8 as TagResponse, d9 as TagScope, da as TagTreeRow, db as TaskPlan, dc as TaskPlanStep, dd as TaxQuoteResponse, de as Thread, df as ThreadsResponse, dg as TimeSuggestion, dh as TurnRequest, di as UpdateConversationRequest, dj as UpdateFactRequest, dk as UpdateWorkflowRequest, dp as UploadDocumentsOptions, dq as UploadOptions, dr as UploadProgressListener, ds as UploadResult, dt as UsageBreakdown, du as UserConnectorEntry, dv as UserDailyUsageResponse, dw as UserInfo, dx as WebSocketAuthError, dy as WeeklyHoursSpec, dz as WorkStatus, dA as WorkflowAuthMode, dB as WorkflowResponse, dC as WorkflowRunHistoryResponse, dD as WorkflowRunResponse, dE as WorkspaceConflict, dF as WorkspaceContext, dG as WorkspaceOpenResponse, dH as WorkspaceResponse, dI as WsConnection, dJ as account, dK as agentconfig, dM as appendTranscriptionHints, dN as assistant, dO as authenticatedFetch, dP as bookPublicSlot, dQ as buildCitationChunkData, dS as buildDocumentTools, dT as buildFactsContextTool, dU as buildRetrievalChunkTool, dV as buildRetrievalFullContextTool, dW as buildRetrievalTocTool, dX as buildTurnRequest, dY as calendar, dZ as calls, d_ as canTagHaveParent, d$ as cancelPublicBooking, e0 as capabilities, e1 as chats, e2 as composeConfiguration, e3 as composeTools, e4 as computeRunStats, e5 as connectErrorMessage, e6 as connectWebSocket, e7 as connectWithReconnect, e8 as connectors, e9 as contacts, ea as continuityPrompt, eb as conversations, ec as countCitations, ed as createAuthenticatedClient, ef as createIndexAssigner, eg as databases, eh as defaultKindForFormat, ei as diagnoseSetup, ej as doctags, ek as documentTools, el as documents, em as estimateDraftTokens, en as extractDocumentIdsFromMessages, eo as extractFactIdsFromMessages, ep as extractSubagentLanes, eq as facts, er as files, es as filterDocumentTags, et as filterSkills, eu as findLeafForTaskMessage, ev as findMainSiblingLeaf, ew as findReplyTarget, ex as findSubagentRunId, ey as flattenTagTree, ez as formatAgentStepLabel, eA as formatFileSize, eB as formatGbp, eC as formatGbpPerMillionTokens, eD as formatItemLabel, eF as formatTokens, eG as formatUserName, eH as formatWorkspaceChoices, eL as getAgentStepLabel, eM as getAttachableRunId, eN as getChildTags, eO as getContextRemainingPercent, eP as getContextUsedPercent, eQ as getContextUsedTokens, eR as getCurrentStep, eS as getEligibleParentTags, eT as getErrorCode, eU as getErrorMessage, eV as getPublicBookingPage, eW as getRawWorkspaceKey, eX as getRunToAttach, eY as getRunToCancel, eZ as getStepDisplay, e_ as getStepTool, e$ as getSubagentBranchRecord, f0 as getTagDescendantIds, f1 as health, f2 as houseTemplates, f3 as hydrateAgentSteps, f5 as identityErrorCode, f4 as identityVerification, f6 as instructions, f7 as isAnnotationTag, f8 as isConnectorVendorVisible, f9 as isDriveSyncVendor, fa as isEntityTag, fb as isFlatKind, fc as isLabelTag, fd as isMailboxSyncVendor, fe as isNearAiUsageBudget, ff as isPresenceTag, fg as isSharePointVendor, fh as isSharedSkill, fi as isTraceItem, fj as mail, fk as mcpTools, fl as mergeAgentSteps, fm as modelConnections, fn as notifications, fo as parseSSEEvents, fp as parseSlashCommand, fq as parseSlashTokenInProgress, fr as parseStructuredResponse, fs as performPasswordLogin, fv as pickMainThread, fw as profile, fx as progressFetch, fy as projects, fz as quotaExceededFrom, fA as quotaFromStreamError, fB as reduceOutputItem, fC as refusalReason, fD as requireData, fE as requireOk, fF as resolveAuth, fG as resolveCitations, fH as resolveSummary, fI as resolveWorkspace, fJ as responses, fK as searchChunks, fL as secureMail, fM as selectFullContextDocument, fN as selectWorkspace, fO as selectWorkspaceById, fP as sessions, fQ as settings, fS as sliceToSubagentThread, fT as streamSSE, fU as stripCitationMarkdown, fV as subagentJobLabel, fW as summarizeCitations, fX as support, fY as tagUseCount, fZ as tags, f_ as tagsForScope, f$ as tagsOfGroup, g0 as topLevelAgentSteps, g2 as usdToGbp, g3 as work, g4 as workflowSteps, g5 as workflows, g6 as workspaceConflictOf, g7 as workspaces, g8 as wouldCreateTagCycle } from './browser-
|
|
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 ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiStructuredOutputError, l as ArbiTransportError, m as ArbiWorkspaceChangedError, n as ArbiWorkspaceSupersededError, o as ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AttendeeRead, s as AuthContext, t as AuthHeaders, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, S as ChatCryptoContext, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, _ as ChatSession, $ as CitationSummary, a0 as CitationToolSources, a1 as CliConfig, a2 as CliCredentials, a3 as CommandDescriptor, a4 as ConfigStore, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectionModel, a9 as ConnectorCatalogEntry, aa as ConnectorFolder, ab as ConnectorSyncProgress, ac as ConnectorSyncStatus, ad as ConnectorVendorKey, ae as ConnectorVisibilitySettings, af as ContextUsage, ag as ConversationResponse, ah as ConversationUsageResponse, ai as CreateFactRequest, aj as CreateFactsRequest, ak as CreateWorkRequest, al as CreateWorkflowRequest, am as DEFAULT_AI_USD_PER_GBP, ao as DRIVE_SYNC_VENDORS, ap as Database, aq as DatabaseAggregateRequest, ar as DatabaseAggregateResult, as as DatabaseColumn, at as DatabaseColumnWrite, au as DatabaseImportResult, av as DatabaseRow, aw as DatabaseRowPage, ax as DatabaseRowsQuery, ay as DateTimeSpec, aA as DecryptedChatMessage, aB as DeploymentHouseTemplate, aC as DiagnoseOptions, aD as DirectModelUsage, aE as DocInfo, aF as DocInfoMap, aH as DocumentAutomationAction, aK as DocumentSelector, aN as DriveSyncProgress, aO as DriveSyncSummary, aP as DuplicateContactError, aQ as ENTITY_KINDS, aR as EditScope, aS as EntityKind, aT as EventCreateBody, aU as EventPatchBody, aV as FLAT_TAG_KINDS, aW as FactResponse, aX as FactSearchRequest, aY as FactSearchResponse, aZ as FindTimeParams, a$ as FreeBusyEntry, b0 as FullContextSelection, b1 as GOOGLE_VENDORS, b2 as HolidayCountry, b3 as HouseTemplateCandidate, b4 as IMANAGE_VENDORS, b5 as IdentityErrorCode, b6 as IdentityPurchase, b7 as IdentityState, b8 as IdentityStatus, b9 as ImportResult, ba as InvitationRead, bb as JsonSchemaOutputFormat, bc as LinkedRun, be as ListEventsParams, bf as ListFactsOptions, bh as MAILBOX_SYNC_VENDORS, bi as MAX_RETRIEVE_DOC_IDS, bj as MICROSOFT_VENDORS, bm as ModelConnection, bn as OAuthAccountKind, bo as OutputItemDone, bp as OverlayItem, bq as OverlayLayerName, br as PRESENCE_KINDS, bs as PROMPT_CONTEXT_CHARS, bt as ParsedResponse, bu as ParsedSlashCommand, bv as ParsedStructuredResponse, bw as PendingAuthResponse, bx as PersonKey, by as PersonalConnectionInput, bz as PlanStepsError, bA as PlanWorkRequest, bB as ProductResponse, bC as ProjectAddonKind, bD as ProjectAddonSettingsRequest, bE as ProjectBudget, bF as ProjectCheckoutRequest, bG as ProjectConversationUsageResponse, bH as ProjectCreateOptions, bI as ProjectDetails, bJ as ProjectEventKind, bK as ProjectEventResponse, bL as ProjectInvoicesResponse, bM as ProjectNextPeriodAddonsRequest, bN as ProjectPlanChangeRequest, bO as ProjectQuoteRequest, bP as ProjectResponse, bQ as ProjectUpdateRequest, bR as ProjectUsageResponse, bS as PublicBookingError, bT as PublicBookingPage, bU as QuotaExceeded, bV as RaisedSignal, bW as RawResponseEvent, bX as ReconnectOptions, bY as ReconnectableWsConnection, bZ as ResolvedCitation, b$ as RespondParams, c0 as RespondPartstat, c1 as Response, c2 as ResponseCreateRequest, c3 as ResponseCreateResult, c4 as ResponseHandle, c5 as ResponseSnapshot, c6 as ResponseStart, c7 as ResponseStartOptions, c8 as ResponseStream, c9 as ResponseStreamEvent, ca as ResponseTools, cb as RoomCreateBody, cc as RoomQuery, cd as RoomRead, ce as RunProgress, cf as RunStats, cg as RunStep, ch as RunWaitingOn, ci as SHAREPOINT_VENDORS, cj as SSEEvent, ck as SSEStreamCallbacks, cl as SSEStreamOutcome, cm as SSEStreamResult, co as STOP_ID_WAIT_MS, cp as STOP_REPEAT_WINDOW_MS, cr as ScopedTarget, cs as SearchChunk, ct as SecureMailCompose, cu as SecureMailSend, cv as SecureMailSender, cw as SendBack, cx as SetupDiagnostic, cy as SetupReport, cz as ShareRead, cA as ShareRole, cB as SkillSummary, cC as SkippedFile, cD as SlackConnectionStatus, cE as StepActionRequest, cF as StepActivityEvent, cG as StepAssignee, cH as StepDisplay, cI as StepField, cL as StepKind, cM as StepPhase, cN as StepSignal, cO as StepSignalWhen, cP as StepState, cQ as StepStatus, cR as SubagentBranchRecord, cS as SubagentLaneInfo, cT as SubmitBackgroundQueryOptions, cU as SubscribeParams, cV as SupportRating, cW as SupportTicket, cX as SupportTicketInput, cY as SyncTriggerResult, cZ as TAG_KINDS, c_ as TAG_NESTING_MAX_DEPTH, c$ as TagChange, d0 as TagFieldDefinition, d1 as TagGroup, d2 as TagKind, d3 as TagKindField, d4 as TagKindSchema, d5 as TagLinks, d6 as TagListQuery, d7 as TagNode, d8 as TagResponse, d9 as TagScope, da as TagTreeRow, db as TaskPlan, dc as TaskPlanStep, dd as TaxQuoteResponse, de as Thread, df as ThreadsResponse, dg as TimeSuggestion, dh as TurnRequest, di as UpdateConversationRequest, dj as UpdateFactRequest, dk as UpdateWorkflowRequest, dp as UploadDocumentsOptions, dq as UploadOptions, dr as UploadProgressListener, ds as UploadResult, dt as UsageBreakdown, du as UserConnectorEntry, dv as UserDailyUsageResponse, dw as UserInfo, dx as WebSocketAuthError, dy as WeeklyHoursSpec, dz as WorkStatus, dA as WorkflowAuthMode, dB as WorkflowResponse, dC as WorkflowRunHistoryResponse, dD as WorkflowRunResponse, dE as WorkspaceConflict, dF as WorkspaceContext, dG as WorkspaceOpenResponse, dH as WorkspaceResponse, dI as WsConnection, dJ as account, dK as agentconfig, dM as appendTranscriptionHints, dN as assistant, dO as authenticatedFetch, dP as bookPublicSlot, dQ as buildCitationChunkData, dS as buildDocumentTools, dT as buildFactsContextTool, dU as buildRetrievalChunkTool, dV as buildRetrievalFullContextTool, dW as buildRetrievalTocTool, dX as buildTurnRequest, dY as calendar, dZ as calls, d_ as canTagHaveParent, d$ as cancelPublicBooking, e0 as capabilities, e1 as chats, e2 as composeConfiguration, e3 as composeTools, e4 as computeRunStats, e5 as connectErrorMessage, e6 as connectWebSocket, e7 as connectWithReconnect, e8 as connectors, e9 as contacts, ea as continuityPrompt, eb as conversations, ec as countCitations, ed as createAuthenticatedClient, ef as createIndexAssigner, eg as databases, eh as defaultKindForFormat, ei as diagnoseSetup, ej as doctags, ek as documentTools, el as documents, em as estimateDraftTokens, en as extractDocumentIdsFromMessages, eo as extractFactIdsFromMessages, ep as extractSubagentLanes, eq as facts, er as files, es as filterDocumentTags, et as filterSkills, eu as findLeafForTaskMessage, ev as findMainSiblingLeaf, ew as findReplyTarget, ex as findSubagentRunId, ey as flattenTagTree, ez as formatAgentStepLabel, eA as formatFileSize, eB as formatGbp, eC as formatGbpPerMillionTokens, eD as formatItemLabel, eF as formatTokens, eG as formatUserName, eH as formatWorkspaceChoices, eL as getAgentStepLabel, eM as getAttachableRunId, eN as getChildTags, eO as getContextRemainingPercent, eP as getContextUsedPercent, eQ as getContextUsedTokens, eR as getCurrentStep, eS as getEligibleParentTags, eT as getErrorCode, eU as getErrorMessage, eV as getPublicBookingPage, eW as getRawWorkspaceKey, eX as getRunToAttach, eY as getRunToCancel, eZ as getStepDisplay, e_ as getStepTool, e$ as getSubagentBranchRecord, f0 as getTagDescendantIds, f1 as health, f2 as houseTemplates, f3 as hydrateAgentSteps, f5 as identityErrorCode, f4 as identityVerification, f6 as instructions, f7 as isAnnotationTag, f8 as isConnectorVendorVisible, f9 as isDriveSyncVendor, fa as isEntityTag, fb as isFlatKind, fc as isLabelTag, fd as isMailboxSyncVendor, fe as isNearAiUsageBudget, ff as isPresenceTag, fg as isSharePointVendor, fh as isSharedSkill, fi as isTraceItem, fj as mail, fk as mcpTools, fl as mergeAgentSteps, fm as modelConnections, fn as notifications, fo as parseSSEEvents, fp as parseSlashCommand, fq as parseSlashTokenInProgress, fr as parseStructuredResponse, fs as performPasswordLogin, fv as pickMainThread, fw as profile, fx as progressFetch, fy as projects, fz as quotaExceededFrom, fA as quotaFromStreamError, fB as reduceOutputItem, fC as refusalReason, fD as requireData, fE as requireOk, fF as resolveAuth, fG as resolveCitations, fH as resolveSummary, fI as resolveWorkspace, fJ as responses, fK as searchChunks, fL as secureMail, fM as selectFullContextDocument, fN as selectWorkspace, fO as selectWorkspaceById, fP as sessions, fQ as settings, fS as sliceToSubagentThread, fT as streamSSE, fU as stripCitationMarkdown, fV as subagentJobLabel, fW as summarizeCitations, fX as support, fY as tagUseCount, fZ as tags, f_ as tagsForScope, f$ as tagsOfGroup, g0 as topLevelAgentSteps, g2 as usdToGbp, g3 as work, g4 as workflowSteps, g5 as workflows, g6 as workspaceConflictOf, g7 as workspaces, g8 as wouldCreateTagCycle } from './browser-CL-6Y6E1.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, HttpErrorInfo, HttpRequestInfo, HttpResponseInfo, HttpTransportOptions, LoginProfile, SessionPersistence } from '@arbidocs/client';
|
package/dist/browser.js
CHANGED
|
@@ -3637,6 +3637,21 @@ function requireData(result, message) {
|
|
|
3637
3637
|
}
|
|
3638
3638
|
return result.data;
|
|
3639
3639
|
}
|
|
3640
|
+
var WORKSPACE_REQUEST_CONFLICT_MESSAGES = {
|
|
3641
|
+
workspace_mismatch: "This belongs to another workspace, so nothing was saved.",
|
|
3642
|
+
workspace_key_required: "This workspace isn't unlocked in this session, so nothing was saved or read. Open the workspace and try again."
|
|
3643
|
+
};
|
|
3644
|
+
function requireWorkspaceData(result, message, conflicts = WORKSPACE_REQUEST_CONFLICT_MESSAGES) {
|
|
3645
|
+
const status = result.response?.status;
|
|
3646
|
+
const conflict = result.error && status === 409 ? workspaceConflictOf(result.error) : null;
|
|
3647
|
+
if (conflict) {
|
|
3648
|
+
throw new ArbiApiError(conflicts[conflict.code], result.error, status, {
|
|
3649
|
+
code: conflict.code,
|
|
3650
|
+
requestId: result.response?.headers?.get("x-request-id") ?? void 0
|
|
3651
|
+
});
|
|
3652
|
+
}
|
|
3653
|
+
return requireData(result, message);
|
|
3654
|
+
}
|
|
3640
3655
|
function requireOk(result, message) {
|
|
3641
3656
|
if (result.error) {
|
|
3642
3657
|
throw new ArbiApiError(message, result.error, result.response?.status, {
|
|
@@ -5708,19 +5723,7 @@ var UPLOAD_WORKSPACE_CONFLICT_MESSAGES = {
|
|
|
5708
5723
|
workspace_key_required: "The workspace couldn't be unlocked for this upload, so the files were not saved."
|
|
5709
5724
|
};
|
|
5710
5725
|
function requireUploadData(result, message) {
|
|
5711
|
-
|
|
5712
|
-
const conflict = result.error && status === 409 ? workspaceConflictOf(result.error) : null;
|
|
5713
|
-
if (conflict) {
|
|
5714
|
-
throw new ArbiApiError(
|
|
5715
|
-
UPLOAD_WORKSPACE_CONFLICT_MESSAGES[conflict.code],
|
|
5716
|
-
result.error,
|
|
5717
|
-
status,
|
|
5718
|
-
{
|
|
5719
|
-
code: conflict.code
|
|
5720
|
-
}
|
|
5721
|
-
);
|
|
5722
|
-
}
|
|
5723
|
-
return requireData(result, message);
|
|
5726
|
+
return requireWorkspaceData(result, message, UPLOAD_WORKSPACE_CONFLICT_MESSAGES);
|
|
5724
5727
|
}
|
|
5725
5728
|
async function uploadDocuments(arbi, files, options = {}) {
|
|
5726
5729
|
const query2 = {};
|
|
@@ -6615,15 +6618,27 @@ __export(conversations_exports, {
|
|
|
6615
6618
|
searchConversations: () => searchConversations,
|
|
6616
6619
|
updateConversationAssistantMode: () => updateConversationAssistantMode
|
|
6617
6620
|
});
|
|
6618
|
-
|
|
6619
|
-
|
|
6621
|
+
|
|
6622
|
+
// src/operations/workspace-query.ts
|
|
6623
|
+
var workspaceQuery = (workspaceExtId) => workspaceExtId ? { workspace_ext_id: workspaceExtId } : {};
|
|
6624
|
+
|
|
6625
|
+
// src/operations/conversations.ts
|
|
6626
|
+
async function listConversations(arbi, workspaceExtId) {
|
|
6627
|
+
return requireWorkspaceData(
|
|
6628
|
+
await arbi.fetch.GET("/v1/conversation/list", {
|
|
6629
|
+
params: { query: workspaceQuery(workspaceExtId) }
|
|
6630
|
+
}),
|
|
6631
|
+
"Failed to fetch conversations"
|
|
6632
|
+
);
|
|
6620
6633
|
}
|
|
6621
|
-
async function importConversations(auth, fileData, fileName, source = "auto") {
|
|
6634
|
+
async function importConversations(auth, fileData, fileName, source = "auto", workspaceExtId) {
|
|
6622
6635
|
const formData = new FormData();
|
|
6623
6636
|
formData.append("file", fileData, fileName);
|
|
6637
|
+
const query2 = new URLSearchParams({ source });
|
|
6638
|
+
if (workspaceExtId) query2.set("workspace_ext_id", workspaceExtId);
|
|
6624
6639
|
const res = await authenticatedFetch({
|
|
6625
6640
|
...auth,
|
|
6626
|
-
path: `/v1/conversation/import
|
|
6641
|
+
path: `/v1/conversation/import?${query2}`,
|
|
6627
6642
|
method: "POST",
|
|
6628
6643
|
body: formData
|
|
6629
6644
|
});
|
|
@@ -6645,9 +6660,12 @@ async function deleteConversation(arbi, conversationId) {
|
|
|
6645
6660
|
"Failed to delete conversation"
|
|
6646
6661
|
);
|
|
6647
6662
|
}
|
|
6648
|
-
async function searchConversations(arbi, body) {
|
|
6649
|
-
return
|
|
6650
|
-
await arbi.fetch.POST("/v1/conversation/search", {
|
|
6663
|
+
async function searchConversations(arbi, body, workspaceExtId) {
|
|
6664
|
+
return requireWorkspaceData(
|
|
6665
|
+
await arbi.fetch.POST("/v1/conversation/search", {
|
|
6666
|
+
params: { query: workspaceQuery(workspaceExtId) },
|
|
6667
|
+
body
|
|
6668
|
+
}),
|
|
6651
6669
|
"Failed to search conversations"
|
|
6652
6670
|
);
|
|
6653
6671
|
}
|
|
@@ -7010,9 +7028,14 @@ async function interject(arbi, assistantMessageExtId, answer) {
|
|
|
7010
7028
|
);
|
|
7011
7029
|
}
|
|
7012
7030
|
async function listSkills(arbi, options) {
|
|
7013
|
-
const result =
|
|
7031
|
+
const result = requireWorkspaceData(
|
|
7014
7032
|
await arbi.fetch.GET("/v1/assistant/skills", {
|
|
7015
|
-
params: {
|
|
7033
|
+
params: {
|
|
7034
|
+
query: {
|
|
7035
|
+
include_hidden: options?.includeHidden ?? false,
|
|
7036
|
+
...workspaceQuery(options?.workspaceExtId)
|
|
7037
|
+
}
|
|
7038
|
+
}
|
|
7016
7039
|
}),
|
|
7017
7040
|
"Failed to list skills"
|
|
7018
7041
|
);
|
|
@@ -8488,9 +8511,10 @@ __export(files_exports, {
|
|
|
8488
8511
|
uploadFile: () => uploadFile2
|
|
8489
8512
|
});
|
|
8490
8513
|
async function listFiles(arbi, options) {
|
|
8491
|
-
|
|
8514
|
+
const { workspaceExtId, ...query2 } = options ?? {};
|
|
8515
|
+
return requireWorkspaceData(
|
|
8492
8516
|
await arbi.fetch.GET("/v1/files", {
|
|
8493
|
-
params: { query:
|
|
8517
|
+
params: { query: { ...query2, ...workspaceQuery(workspaceExtId) } }
|
|
8494
8518
|
}),
|
|
8495
8519
|
"Failed to list files"
|
|
8496
8520
|
);
|
|
@@ -8511,13 +8535,13 @@ async function deleteFile(arbi, fileId) {
|
|
|
8511
8535
|
"Failed to delete file"
|
|
8512
8536
|
);
|
|
8513
8537
|
}
|
|
8514
|
-
async function uploadFile2(auth, fileData, fileName, purpose = "assistants") {
|
|
8538
|
+
async function uploadFile2(auth, fileData, fileName, purpose = "assistants", workspaceExtId) {
|
|
8515
8539
|
const formData = new FormData();
|
|
8516
8540
|
formData.append("file", fileData, fileName);
|
|
8517
8541
|
formData.append("purpose", purpose);
|
|
8518
8542
|
const res = await authenticatedFetch({
|
|
8519
8543
|
...auth,
|
|
8520
|
-
path: "/v1/files",
|
|
8544
|
+
path: workspaceExtId ? `/v1/files?workspace_ext_id=${encodeURIComponent(workspaceExtId)}` : "/v1/files",
|
|
8521
8545
|
method: "POST",
|
|
8522
8546
|
body: formData
|
|
8523
8547
|
});
|
|
@@ -9594,22 +9618,31 @@ function stepsPlan(steps) {
|
|
|
9594
9618
|
}
|
|
9595
9619
|
|
|
9596
9620
|
// src/operations/work.ts
|
|
9621
|
+
var TASK_WORKSPACE_CONFLICT_MESSAGES = {
|
|
9622
|
+
...WORKSPACE_REQUEST_CONFLICT_MESSAGES,
|
|
9623
|
+
workspace_mismatch: "The parent task is in another workspace, so the task was not saved. Choose a parent in the same workspace."
|
|
9624
|
+
};
|
|
9597
9625
|
var byId = (conversationId) => ({
|
|
9598
9626
|
params: { path: { conversation_ext_id: conversationId } }
|
|
9599
9627
|
});
|
|
9600
9628
|
async function updateConversation(arbi, conversationId, body) {
|
|
9601
|
-
return
|
|
9629
|
+
return requireWorkspaceData(
|
|
9602
9630
|
await arbi.fetch.PATCH("/v1/conversation/{conversation_ext_id}", {
|
|
9603
9631
|
...byId(conversationId),
|
|
9604
9632
|
body
|
|
9605
9633
|
}),
|
|
9606
|
-
"Failed to update conversation"
|
|
9634
|
+
"Failed to update conversation",
|
|
9635
|
+
TASK_WORKSPACE_CONFLICT_MESSAGES
|
|
9607
9636
|
);
|
|
9608
9637
|
}
|
|
9609
|
-
async function createWork(arbi, body) {
|
|
9610
|
-
return
|
|
9611
|
-
await arbi.fetch.POST("/v1/conversation/work", {
|
|
9612
|
-
|
|
9638
|
+
async function createWork(arbi, body, workspaceExtId) {
|
|
9639
|
+
return requireWorkspaceData(
|
|
9640
|
+
await arbi.fetch.POST("/v1/conversation/work", {
|
|
9641
|
+
params: { query: workspaceQuery(workspaceExtId) },
|
|
9642
|
+
body
|
|
9643
|
+
}),
|
|
9644
|
+
"Failed to create task",
|
|
9645
|
+
TASK_WORKSPACE_CONFLICT_MESSAGES
|
|
9613
9646
|
);
|
|
9614
9647
|
}
|
|
9615
9648
|
async function runConversation(arbi, conversationId) {
|
|
@@ -9675,9 +9708,12 @@ async function getActivity(arbi, conversationId) {
|
|
|
9675
9708
|
"Failed to read the task activity"
|
|
9676
9709
|
);
|
|
9677
9710
|
}
|
|
9678
|
-
async function planWork(arbi, body) {
|
|
9679
|
-
return
|
|
9680
|
-
await arbi.fetch.POST("/v1/conversation/work/plan", {
|
|
9711
|
+
async function planWork(arbi, body, workspaceExtId) {
|
|
9712
|
+
return requireWorkspaceData(
|
|
9713
|
+
await arbi.fetch.POST("/v1/conversation/work/plan", {
|
|
9714
|
+
params: { query: workspaceQuery(workspaceExtId) },
|
|
9715
|
+
body
|
|
9716
|
+
}),
|
|
9681
9717
|
"Failed to draft a plan"
|
|
9682
9718
|
);
|
|
9683
9719
|
}
|
|
@@ -9797,14 +9833,26 @@ __export(facts_exports, {
|
|
|
9797
9833
|
searchFacts: () => searchFacts,
|
|
9798
9834
|
updateFact: () => updateFact
|
|
9799
9835
|
});
|
|
9800
|
-
async function createFact(arbi, body) {
|
|
9801
|
-
return
|
|
9836
|
+
async function createFact(arbi, body, workspaceExtId) {
|
|
9837
|
+
return requireWorkspaceData(
|
|
9838
|
+
await arbi.fetch.POST("/v1/facts/", {
|
|
9839
|
+
params: { query: workspaceQuery(workspaceExtId) },
|
|
9840
|
+
body
|
|
9841
|
+
}),
|
|
9842
|
+
"Failed to create note"
|
|
9843
|
+
);
|
|
9802
9844
|
}
|
|
9803
|
-
async function createFactsBatch(arbi, body) {
|
|
9804
|
-
return
|
|
9845
|
+
async function createFactsBatch(arbi, body, workspaceExtId) {
|
|
9846
|
+
return requireWorkspaceData(
|
|
9847
|
+
await arbi.fetch.POST("/v1/facts/batch", {
|
|
9848
|
+
params: { query: workspaceQuery(workspaceExtId) },
|
|
9849
|
+
body
|
|
9850
|
+
}),
|
|
9851
|
+
"Failed to create notes"
|
|
9852
|
+
);
|
|
9805
9853
|
}
|
|
9806
9854
|
async function listFacts(arbi, options) {
|
|
9807
|
-
return
|
|
9855
|
+
return requireWorkspaceData(
|
|
9808
9856
|
await arbi.fetch.GET("/v1/facts/list", {
|
|
9809
9857
|
params: {
|
|
9810
9858
|
query: {
|
|
@@ -9814,18 +9862,25 @@ async function listFacts(arbi, options) {
|
|
|
9814
9862
|
tag_ext_id: options?.tagExtIds,
|
|
9815
9863
|
doc_ext_id: options?.docExtId,
|
|
9816
9864
|
limit: options?.limit,
|
|
9817
|
-
offset: options?.offset
|
|
9865
|
+
offset: options?.offset,
|
|
9866
|
+
...workspaceQuery(options?.workspaceExtId)
|
|
9818
9867
|
}
|
|
9819
9868
|
}
|
|
9820
9869
|
}),
|
|
9821
9870
|
"Failed to list notes"
|
|
9822
9871
|
);
|
|
9823
9872
|
}
|
|
9824
|
-
async function searchFacts(arbi, body) {
|
|
9825
|
-
return
|
|
9873
|
+
async function searchFacts(arbi, body, workspaceExtId) {
|
|
9874
|
+
return requireWorkspaceData(
|
|
9875
|
+
await arbi.fetch.POST("/v1/facts/search", {
|
|
9876
|
+
params: { query: workspaceQuery(workspaceExtId) },
|
|
9877
|
+
body
|
|
9878
|
+
}),
|
|
9879
|
+
"Failed to search notes"
|
|
9880
|
+
);
|
|
9826
9881
|
}
|
|
9827
9882
|
async function updateFact(arbi, factId, body) {
|
|
9828
|
-
return
|
|
9883
|
+
return requireWorkspaceData(
|
|
9829
9884
|
await arbi.fetch.PATCH("/v1/facts/{fact_ext_id}", {
|
|
9830
9885
|
params: { path: { fact_ext_id: factId } },
|
|
9831
9886
|
body
|
|
@@ -9840,7 +9895,7 @@ async function deleteFact(arbi, factId) {
|
|
|
9840
9895
|
if (error) throw new Error("Failed to delete note");
|
|
9841
9896
|
}
|
|
9842
9897
|
async function remindFact(arbi, factId, options = {}) {
|
|
9843
|
-
return
|
|
9898
|
+
return requireWorkspaceData(
|
|
9844
9899
|
await arbi.fetch.POST("/v1/facts/{fact_ext_id}/remind", {
|
|
9845
9900
|
params: { path: { fact_ext_id: factId } },
|
|
9846
9901
|
body: {
|
|
@@ -12279,11 +12334,22 @@ var Arbi = class {
|
|
|
12279
12334
|
};
|
|
12280
12335
|
// ── Conversations ─────────────────────────────────────────────────────
|
|
12281
12336
|
conversations = {
|
|
12282
|
-
|
|
12337
|
+
/** The current workspace's conversations, or `options.workspaceId`'s (opened, not switched to). */
|
|
12338
|
+
list: async (options) => listConversations(
|
|
12339
|
+
this.requireClient(),
|
|
12340
|
+
await this.requireTargetWorkspace(options?.workspaceId)
|
|
12341
|
+
),
|
|
12283
12342
|
getThreads: (conversationId) => getConversationThreads(this.requireClient(), conversationId),
|
|
12284
12343
|
delete: (conversationId) => deleteConversation(this.requireClient(), conversationId),
|
|
12285
|
-
/**
|
|
12286
|
-
|
|
12344
|
+
/**
|
|
12345
|
+
* Search the past conversation messages (keyword + semantic, grouped) of the current
|
|
12346
|
+
* workspace, or `options.workspaceId` (opened for this session, not switched to).
|
|
12347
|
+
*/
|
|
12348
|
+
search: async (body, options) => searchConversations(
|
|
12349
|
+
this.requireClient(),
|
|
12350
|
+
body,
|
|
12351
|
+
await this.requireTargetWorkspace(options?.workspaceId)
|
|
12352
|
+
),
|
|
12287
12353
|
/**
|
|
12288
12354
|
* Patch a conversation: `title`, `shared` (owner only), its bound document
|
|
12289
12355
|
* (`bound_document_ext_id`, `null` unbinds), and the work fields (`description`, `due_at`,
|
|
@@ -12291,8 +12357,16 @@ var Arbi = class {
|
|
|
12291
12357
|
* and attaching a thread to a document.
|
|
12292
12358
|
*/
|
|
12293
12359
|
update: (conversationId, body) => updateConversation(this.requireClient(), conversationId, body),
|
|
12294
|
-
/**
|
|
12295
|
-
|
|
12360
|
+
/**
|
|
12361
|
+
* Create a work item: a plain to-do, or (with a prompt / skill) agent work that starts now. It
|
|
12362
|
+
* is made in the current workspace, or `options.workspaceId` (opened, not switched to), which
|
|
12363
|
+
* the request names: a switch while it is sent cannot move it.
|
|
12364
|
+
*/
|
|
12365
|
+
createWork: async (body, options) => createWork(
|
|
12366
|
+
this.requireClient(),
|
|
12367
|
+
body,
|
|
12368
|
+
await this.requireTargetWorkspace(options?.workspaceId)
|
|
12369
|
+
),
|
|
12296
12370
|
/** Run a work item now, or retry it. */
|
|
12297
12371
|
run: (conversationId) => runConversation(this.requireClient(), conversationId),
|
|
12298
12372
|
/** The session key an unattended run waits for the owner to allow; 404 when nothing waits. */
|
|
@@ -12313,8 +12387,12 @@ var Arbi = class {
|
|
|
12313
12387
|
usage: (conversationId) => getConversationUsage(this.requireClient(), conversationId),
|
|
12314
12388
|
/** Notify people about a conversation (each gets a notification); resolves with who was. */
|
|
12315
12389
|
notify: (conversationId, userIds) => notifyConversation(this.requireClient(), conversationId, userIds),
|
|
12316
|
-
/** Draft an editable plan from an objective. */
|
|
12317
|
-
plan: (body) => planWork(
|
|
12390
|
+
/** Draft an editable plan from an objective, in the current workspace or `options.workspaceId`. */
|
|
12391
|
+
plan: async (body, options) => planWork(
|
|
12392
|
+
this.requireClient(),
|
|
12393
|
+
body,
|
|
12394
|
+
await this.requireTargetWorkspace(options?.workspaceId)
|
|
12395
|
+
),
|
|
12318
12396
|
/**
|
|
12319
12397
|
* Run a work item and, when the run is parked waiting for workspace access, grant the agent's
|
|
12320
12398
|
* run session a temporary key and run it again. Work that needs no access grant returns from the
|
|
@@ -12788,8 +12866,15 @@ var Arbi = class {
|
|
|
12788
12866
|
},
|
|
12789
12867
|
/** Read the status of a background turn. */
|
|
12790
12868
|
getResponse: (id) => this.recovering(() => getResponse(this.getAuthHeaders(), id)),
|
|
12791
|
-
/**
|
|
12792
|
-
|
|
12869
|
+
/**
|
|
12870
|
+
* The skills the caller can run (own + shared marketplace), metadata only. Without a
|
|
12871
|
+
* marketplace they are the current workspace's, or `options.workspaceId`'s (opened, not
|
|
12872
|
+
* switched to).
|
|
12873
|
+
*/
|
|
12874
|
+
listSkills: async (options) => listSkills(this.requireClient(), {
|
|
12875
|
+
includeHidden: options?.includeHidden,
|
|
12876
|
+
workspaceExtId: await this.targetWorkspace(options?.workspaceId)
|
|
12877
|
+
}),
|
|
12793
12878
|
/**
|
|
12794
12879
|
* Save a SKILL.md as the caller's skill ``slug``: private unless ``shared`` (pass
|
|
12795
12880
|
* ``shared: isSharedSkill(skill)`` when changing an existing skill, so a shared one stays shared).
|
|
@@ -13425,12 +13510,23 @@ var Arbi = class {
|
|
|
13425
13510
|
};
|
|
13426
13511
|
// ── Files (OpenAI-compatible) ────────────────────────────────────────
|
|
13427
13512
|
files = {
|
|
13428
|
-
|
|
13513
|
+
/** The current workspace's files, or `options.workspaceId`'s (opened, not switched to). */
|
|
13514
|
+
list: async (options) => {
|
|
13515
|
+
const { workspaceId, ...rest } = options ?? {};
|
|
13516
|
+
return listFiles(this.requireClient(), {
|
|
13517
|
+
...rest,
|
|
13518
|
+
workspaceExtId: await this.targetWorkspace(workspaceId)
|
|
13519
|
+
});
|
|
13520
|
+
},
|
|
13429
13521
|
get: (fileId) => getFile(this.requireClient(), fileId),
|
|
13430
13522
|
delete: (fileId) => deleteFile(this.requireClient(), fileId),
|
|
13431
|
-
|
|
13432
|
-
|
|
13433
|
-
|
|
13523
|
+
/** Upload a file into the current workspace, or `options.workspaceId` (opened, not switched to). */
|
|
13524
|
+
upload: async (fileData, fileName, purpose, options) => {
|
|
13525
|
+
const workspaceExtId = await this.targetWorkspace(options?.workspaceId);
|
|
13526
|
+
return this.recovering(
|
|
13527
|
+
() => uploadFile2(this.getAuthHeaders(), fileData, fileName, purpose, workspaceExtId)
|
|
13528
|
+
);
|
|
13529
|
+
},
|
|
13434
13530
|
getContent: (fileId) => this.recovering(() => getFileContent(this.getAuthHeaders(), fileId))
|
|
13435
13531
|
};
|
|
13436
13532
|
// ── Agents ──────────────────────────────────────────────────────────
|
|
@@ -13566,15 +13662,38 @@ var Arbi = class {
|
|
|
13566
13662
|
export: (databaseId, format) => exportDatabase(this.requireClient(), databaseId, format)
|
|
13567
13663
|
};
|
|
13568
13664
|
// ── Workspace facts ─────────────────────────────────────────────────
|
|
13665
|
+
/**
|
|
13666
|
+
* Notes. Create, list and search act in the current workspace, or `workspaceId` (opened for this
|
|
13667
|
+
* session, not switched to), which the request names; update, delete and remind act in the
|
|
13668
|
+
* note's own workspace, which the server derives from it.
|
|
13669
|
+
*/
|
|
13569
13670
|
facts = {
|
|
13570
|
-
create: (body) => createFact(
|
|
13671
|
+
create: async (body, options) => createFact(
|
|
13672
|
+
this.requireClient(),
|
|
13673
|
+
body,
|
|
13674
|
+
await this.requireTargetWorkspace(options?.workspaceId)
|
|
13675
|
+
),
|
|
13571
13676
|
/** Create up to 200 notes in one all-or-nothing request. */
|
|
13572
|
-
createBatch: (body) => createFactsBatch(
|
|
13677
|
+
createBatch: async (body, options) => createFactsBatch(
|
|
13678
|
+
this.requireClient(),
|
|
13679
|
+
body,
|
|
13680
|
+
await this.requireTargetWorkspace(options?.workspaceId)
|
|
13681
|
+
),
|
|
13573
13682
|
/** Pass `from`/`to`/`datedOnly` for the timeline view — dated notes only,
|
|
13574
13683
|
* ordered by when they happened. `tagExtIds` / `docExtId` narrow the list;
|
|
13575
13684
|
* `limit` / `offset` page it. */
|
|
13576
|
-
list: (options) =>
|
|
13577
|
-
|
|
13685
|
+
list: async (options) => {
|
|
13686
|
+
const { workspaceId, ...filter } = options ?? {};
|
|
13687
|
+
return listFacts(this.requireClient(), {
|
|
13688
|
+
...filter,
|
|
13689
|
+
workspaceExtId: await this.requireTargetWorkspace(workspaceId)
|
|
13690
|
+
});
|
|
13691
|
+
},
|
|
13692
|
+
search: async (body, options) => searchFacts(
|
|
13693
|
+
this.requireClient(),
|
|
13694
|
+
body,
|
|
13695
|
+
await this.requireTargetWorkspace(options?.workspaceId)
|
|
13696
|
+
),
|
|
13578
13697
|
update: (factId, body) => updateFact(this.requireClient(), factId, body),
|
|
13579
13698
|
delete: (factId) => deleteFact(this.requireClient(), factId),
|
|
13580
13699
|
/** One-off reminder on a dated note: an explicit `remindAt`, or
|