@arbidocs/sdk 0.5.128 → 0.5.130
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-hBFgBg_x.d.ts → browser-1VkMgddb.d.ts} +159 -10
- package/dist/{browser-1yrAECmt.d.cts → browser-CikZRvkq.d.cts} +159 -10
- package/dist/browser.cjs +105 -4
- 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 +105 -5
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +105 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +105 -5
- 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
|
|
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 AssistantArrival, s as AssistantBrief, t as AssistantBriefInput, u as AssistantStatus, v as AttendeeRead, w as AuthContext, x as AuthHeaders, y as AuthMode, z as AuthenticatedClient, B as BookingConfirmation, C as BookingPage, D as BookingPageWriteBody, E as BookingRequestBody, F as BridgeTokensOptions, G as CalDavConnectBody, H as CalDavProfile, I as CalendarAccount, J as CalendarAccountKind, K as CalendarCreateBody, L as CalendarEvent, M as CalendarKeys, N as CalendarRead, O as CalendarSettings, P as CalendarSettingsBody, Q as CalendarUpdate, R as CalendarWindow, S as CallApiError, T as Capabilities, U as ChatAttachmentFile, V as ChatAttachmentInput, W as ChatCryptoContext, X as ChatKeyRing, Y as ChatKind, Z as ChatMemberKey, _ as ChatMemberResponse, $ as ChatMessage, a0 as ChatMessageResponse, a1 as ChatResponse, a2 as ChatSession, a3 as CitationSummary, a4 as CitationToolSources, a5 as CliConfig, a6 as CliCredentials, a7 as CommandDescriptor, a8 as ConfigStore, a9 as Configuration, aa as ConfigurationPatch, ab as ConnectOptions, ac as ConnectionModel, ad as ConnectorCatalogEntry, ae as ConnectorFolder, af as ConnectorSyncProgress, ag as ConnectorSyncStatus, ah as ConnectorVendorKey, ai as ConnectorVisibilitySettings, aj as ContextUsage, ak as ConversationResponse, al as ConversationUsageResponse, am as CreateFactRequest, an as CreateFactsRequest, ao as CreateWorkRequest, ap as CreateWorkflowRequest, aq as DEFAULT_AI_USD_PER_GBP, as as DRIVE_SYNC_VENDORS, at as Database, au as DatabaseAggregateRequest, av as DatabaseAggregateResult, aw as DatabaseColumn, ax as DatabaseColumnWrite, ay as DatabaseImportResult, az as DatabaseRow, aA as DatabaseRowPage, aB as DatabaseRowsQuery, aC as DateTimeSpec, aE as DecryptedChatMessage, aF as DeploymentHouseTemplate, aG as DiagnoseOptions, aH as DirectModelUsage, aI as DocInfo, aJ as DocInfoMap, aL as DocumentAutomationAction, aO as DocumentSelector, aR as DriveSyncProgress, aS as DriveSyncSummary, aT as DuplicateContactError, aU as ENTITY_KINDS, aV as EditScope, aW as EntityKind, aX as EventCreateBody, aY as EventPatchBody, aZ as FLAT_TAG_KINDS, a_ as FactResponse, a$ as FactSearchRequest, b0 as FactSearchResponse, b1 as FindTimeParams, b3 as FreeBusyEntry, b4 as FullContextSelection, b5 as GOOGLE_VENDORS, b6 as HolidayCountry, b7 as HouseTemplateCandidate, b8 as IMANAGE_VENDORS, b9 as IdentityErrorCode, ba as IdentityPurchase, bb as IdentityState, bc as IdentityStatus, bd as ImportResult, be as InvitationRead, bf as JsonSchemaOutputFormat, bg as LinkedRun, bi as ListEventsParams, bj as ListFactsOptions, bl as MAILBOX_SYNC_VENDORS, bm as MAX_RETRIEVE_DOC_IDS, bn as MICROSOFT_VENDORS, bq as ModelConnection, br as OAuthAccountKind, bs as OutputItemDone, bt as OverlayItem, bu as OverlayLayerName, bv as PRESENCE_KINDS, bw as PROMPT_CONTEXT_CHARS, bx as ParsedResponse, by as ParsedSlashCommand, bz as ParsedStructuredResponse, bA as PendingAuthResponse, bB as PersonKey, bC as PersonalConnectionInput, bD as PlanStepsError, bE as PlanWorkRequest, bF as ProductResponse, bG as ProjectAddonKind, bH as ProjectAddonSettingsRequest, bI as ProjectBudget, bJ as ProjectCheckoutRequest, bK as ProjectConversationUsageResponse, bL as ProjectCreateOptions, bM as ProjectDetails, bN as ProjectEventKind, bO as ProjectEventResponse, bP as ProjectInvoicesResponse, bQ as ProjectNextPeriodAddonsRequest, bR as ProjectPlanChangeRequest, bS as ProjectQuoteRequest, bT as ProjectResponse, bU as ProjectUpdateRequest, bV as ProjectUsageResponse, bW as PublicBookingError, bX as PublicBookingPage, bY as QuotaExceeded, bZ as RaisedSignal, b_ as RawResponseEvent, b$ as ReconnectOptions, c0 as ReconnectableWsConnection, c1 as ResolvedCitation, c3 as RespondParams, c4 as RespondPartstat, c5 as Response, c6 as ResponseCreateRequest, c7 as ResponseCreateResult, c8 as ResponseHandle, c9 as ResponseSnapshot, ca as ResponseStart, cb as ResponseStartOptions, cc as ResponseStream, cd as ResponseStreamEvent, ce as ResponseTools, cf as RoomCreateBody, cg as RoomQuery, ch as RoomRead, ci as RunProgress, cj as RunStats, ck as RunStep, cl as RunWaitingOn, cm as SHAREPOINT_VENDORS, cn as SSEEvent, co as SSEStreamCallbacks, cp as SSEStreamOutcome, cq as SSEStreamResult, cs as STOP_ID_WAIT_MS, ct as STOP_REPEAT_WINDOW_MS, cv as ScopedTarget, cw as SearchChunk, cx as SecureMailCompose, cy as SecureMailSend, cz as SecureMailSender, cA as SendBack, cB as SetupDiagnostic, cC as SetupReport, cD as ShareRead, cE as ShareRole, cF as SkillSummary, cG as SkippedFile, cH as SlackConnectionStatus, cI as StepActionRequest, cJ as StepActivityEvent, cK as StepAssignee, cL as StepDisplay, cM as StepField, cP as StepKind, cQ as StepPhase, cR as StepSignal, cS as StepSignalWhen, cT as StepState, cU as StepStatus, cV as SubagentBranchRecord, cW as SubagentLaneInfo, cX as SubmitBackgroundQueryOptions, cY as SubscribeParams, cZ as SupportRating, c_ as SupportTicket, c$ as SupportTicketInput, d0 as SyncTriggerResult, d1 as TAG_KINDS, d2 as TAG_NESTING_MAX_DEPTH, d3 as TagChange, d4 as TagFieldDefinition, d5 as TagGroup, d6 as TagKind, d7 as TagKindField, d8 as TagKindSchema, d9 as TagLinks, da as TagListQuery, db as TagNode, dc as TagResponse, dd as TagScope, de as TagTreeRow, df as TaskPlan, dg as TaskPlanStep, dh as TaxQuoteResponse, di as Thread, dj as ThreadsResponse, dk as TimeSuggestion, dl as TurnRequest, dm as UpdateConversationRequest, dn as UpdateFactRequest, dp as UpdateWorkflowRequest, dt as UploadDocumentsOptions, du as UploadOptions, dv as UploadProgressListener, dw as UploadResult, dx as UsageBreakdown, dy as UserConnectorEntry, dz as UserDailyUsageResponse, dA as UserInfo, dB as WebSocketAuthError, dC as WeeklyHoursSpec, dD as WorkStatus, dE as WorkflowAuthMode, dF as WorkflowResponse, dG as WorkflowRunHistoryResponse, dH as WorkflowRunResponse, dI as WorkspaceConflict, dJ as WorkspaceContext, dK as WorkspaceOpenResponse, dL as WorkspaceResponse, dM as WsConnection, dN as account, dO as agentconfig, dQ as appendTranscriptionHints, dR as assistant, dS as authenticatedFetch, dT as bookPublicSlot, dU as buildCitationChunkData, dW as buildDocumentTools, dX as buildFactsContextTool, dY as buildRetrievalChunkTool, dZ as buildRetrievalFullContextTool, d_ as buildRetrievalTocTool, d$ as buildTurnRequest, e0 as calendar, e1 as calls, e2 as canTagHaveParent, e3 as cancelPublicBooking, e4 as capabilities, e5 as chats, e6 as composeConfiguration, e7 as composeTools, e8 as computeRunStats, e9 as connectErrorMessage, ea as connectWebSocket, eb as connectWithReconnect, ec as connectors, ed as contacts, ee as continuityPrompt, ef as conversations, eg as countCitations, eh as createAuthenticatedClient, ej as createIndexAssigner, ek as databases, el as defaultKindForFormat, em as diagnoseSetup, en as doctags, eo as documentTools, ep as documents, eq as estimateDraftTokens, er as extractDocumentIdsFromMessages, es as extractFactIdsFromMessages, et as extractSubagentLanes, eu as facts, ev as files, ew as filterDocumentTags, ex as filterSkills, ey as findLeafForTaskMessage, ez as findMainSiblingLeaf, eA as findReplyTarget, eB as findSubagentRunId, eC as flattenTagTree, eD as formatAgentStepLabel, eE as formatFileSize, eF as formatGbp, eG as formatGbpPerMillionTokens, eH as formatItemLabel, eJ as formatTokens, eK as formatUserName, eL as formatWorkspaceChoices, eP as getAgentStepLabel, eQ as getAttachableRunId, eR as getChildTags, eS as getContextRemainingPercent, eT as getContextUsedPercent, eU as getContextUsedTokens, eV as getCurrentStep, eW as getEligibleParentTags, eX as getErrorCode, eY as getErrorMessage, eZ as getPublicBookingPage, e_ as getRawWorkspaceKey, e$ as getRunToAttach, f0 as getRunToCancel, f1 as getStepDisplay, f2 as getStepTool, f3 as getSubagentBranchRecord, f4 as getTagDescendantIds, f5 as health, f6 as houseTemplates, f7 as hydrateAgentSteps, f9 as identityErrorCode, f8 as identityVerification, fa as instructions, fb as isAnnotationTag, fc as isConnectorVendorVisible, fd as isDriveSyncVendor, fe as isEntityTag, ff as isFlatKind, fg as isLabelTag, fh as isMailboxSyncVendor, fi as isNearAiUsageBudget, fj as isPresenceTag, fk as isSharePointVendor, fl as isSharedSkill, fm as isTraceItem, fn as mail, fo as mcpTools, fp as mergeAgentSteps, fq as modelConnections, fr as notifications, fs as parseSSEEvents, ft as parseSlashCommand, fu as parseSlashTokenInProgress, fv as parseStructuredResponse, fw as performPasswordLogin, fz as pickMainThread, fA as profile, fB as progressFetch, fC as projects, fD as quotaExceededFrom, fE as quotaFromStreamError, fF as reduceOutputItem, fG as refusalReason, fH as requireData, fI as requireOk, fJ as resolveAuth, fK as resolveCitations, fL as resolveSummary, fM as resolveWorkspace, fN as responses, fO as searchChunks, fP as secureMail, fQ as selectFullContextDocument, fR as selectWorkspace, fS as selectWorkspaceById, fT as sessions, fU as settings, fW as sliceToSubagentThread, fX as streamSSE, fY as stripCitationMarkdown, fZ as subagentJobLabel, f_ as summarizeCitations, f$ as support, g0 as tagUseCount, g1 as tags, g2 as tagsForScope, g3 as tagsOfGroup, g4 as topLevelAgentSteps, g6 as usdToGbp, g7 as work, g8 as workflowSteps, g9 as workflows, ga as workspaceAssistant, gb as workspaceConflictOf, gc as workspaces, gd as wouldCreateTagCycle } from './browser-CikZRvkq.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-B5Lw0KTC.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
|
|
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 AssistantArrival, s as AssistantBrief, t as AssistantBriefInput, u as AssistantStatus, v as AttendeeRead, w as AuthContext, x as AuthHeaders, y as AuthMode, z as AuthenticatedClient, B as BookingConfirmation, C as BookingPage, D as BookingPageWriteBody, E as BookingRequestBody, F as BridgeTokensOptions, G as CalDavConnectBody, H as CalDavProfile, I as CalendarAccount, J as CalendarAccountKind, K as CalendarCreateBody, L as CalendarEvent, M as CalendarKeys, N as CalendarRead, O as CalendarSettings, P as CalendarSettingsBody, Q as CalendarUpdate, R as CalendarWindow, S as CallApiError, T as Capabilities, U as ChatAttachmentFile, V as ChatAttachmentInput, W as ChatCryptoContext, X as ChatKeyRing, Y as ChatKind, Z as ChatMemberKey, _ as ChatMemberResponse, $ as ChatMessage, a0 as ChatMessageResponse, a1 as ChatResponse, a2 as ChatSession, a3 as CitationSummary, a4 as CitationToolSources, a5 as CliConfig, a6 as CliCredentials, a7 as CommandDescriptor, a8 as ConfigStore, a9 as Configuration, aa as ConfigurationPatch, ab as ConnectOptions, ac as ConnectionModel, ad as ConnectorCatalogEntry, ae as ConnectorFolder, af as ConnectorSyncProgress, ag as ConnectorSyncStatus, ah as ConnectorVendorKey, ai as ConnectorVisibilitySettings, aj as ContextUsage, ak as ConversationResponse, al as ConversationUsageResponse, am as CreateFactRequest, an as CreateFactsRequest, ao as CreateWorkRequest, ap as CreateWorkflowRequest, aq as DEFAULT_AI_USD_PER_GBP, as as DRIVE_SYNC_VENDORS, at as Database, au as DatabaseAggregateRequest, av as DatabaseAggregateResult, aw as DatabaseColumn, ax as DatabaseColumnWrite, ay as DatabaseImportResult, az as DatabaseRow, aA as DatabaseRowPage, aB as DatabaseRowsQuery, aC as DateTimeSpec, aE as DecryptedChatMessage, aF as DeploymentHouseTemplate, aG as DiagnoseOptions, aH as DirectModelUsage, aI as DocInfo, aJ as DocInfoMap, aL as DocumentAutomationAction, aO as DocumentSelector, aR as DriveSyncProgress, aS as DriveSyncSummary, aT as DuplicateContactError, aU as ENTITY_KINDS, aV as EditScope, aW as EntityKind, aX as EventCreateBody, aY as EventPatchBody, aZ as FLAT_TAG_KINDS, a_ as FactResponse, a$ as FactSearchRequest, b0 as FactSearchResponse, b1 as FindTimeParams, b3 as FreeBusyEntry, b4 as FullContextSelection, b5 as GOOGLE_VENDORS, b6 as HolidayCountry, b7 as HouseTemplateCandidate, b8 as IMANAGE_VENDORS, b9 as IdentityErrorCode, ba as IdentityPurchase, bb as IdentityState, bc as IdentityStatus, bd as ImportResult, be as InvitationRead, bf as JsonSchemaOutputFormat, bg as LinkedRun, bi as ListEventsParams, bj as ListFactsOptions, bl as MAILBOX_SYNC_VENDORS, bm as MAX_RETRIEVE_DOC_IDS, bn as MICROSOFT_VENDORS, bq as ModelConnection, br as OAuthAccountKind, bs as OutputItemDone, bt as OverlayItem, bu as OverlayLayerName, bv as PRESENCE_KINDS, bw as PROMPT_CONTEXT_CHARS, bx as ParsedResponse, by as ParsedSlashCommand, bz as ParsedStructuredResponse, bA as PendingAuthResponse, bB as PersonKey, bC as PersonalConnectionInput, bD as PlanStepsError, bE as PlanWorkRequest, bF as ProductResponse, bG as ProjectAddonKind, bH as ProjectAddonSettingsRequest, bI as ProjectBudget, bJ as ProjectCheckoutRequest, bK as ProjectConversationUsageResponse, bL as ProjectCreateOptions, bM as ProjectDetails, bN as ProjectEventKind, bO as ProjectEventResponse, bP as ProjectInvoicesResponse, bQ as ProjectNextPeriodAddonsRequest, bR as ProjectPlanChangeRequest, bS as ProjectQuoteRequest, bT as ProjectResponse, bU as ProjectUpdateRequest, bV as ProjectUsageResponse, bW as PublicBookingError, bX as PublicBookingPage, bY as QuotaExceeded, bZ as RaisedSignal, b_ as RawResponseEvent, b$ as ReconnectOptions, c0 as ReconnectableWsConnection, c1 as ResolvedCitation, c3 as RespondParams, c4 as RespondPartstat, c5 as Response, c6 as ResponseCreateRequest, c7 as ResponseCreateResult, c8 as ResponseHandle, c9 as ResponseSnapshot, ca as ResponseStart, cb as ResponseStartOptions, cc as ResponseStream, cd as ResponseStreamEvent, ce as ResponseTools, cf as RoomCreateBody, cg as RoomQuery, ch as RoomRead, ci as RunProgress, cj as RunStats, ck as RunStep, cl as RunWaitingOn, cm as SHAREPOINT_VENDORS, cn as SSEEvent, co as SSEStreamCallbacks, cp as SSEStreamOutcome, cq as SSEStreamResult, cs as STOP_ID_WAIT_MS, ct as STOP_REPEAT_WINDOW_MS, cv as ScopedTarget, cw as SearchChunk, cx as SecureMailCompose, cy as SecureMailSend, cz as SecureMailSender, cA as SendBack, cB as SetupDiagnostic, cC as SetupReport, cD as ShareRead, cE as ShareRole, cF as SkillSummary, cG as SkippedFile, cH as SlackConnectionStatus, cI as StepActionRequest, cJ as StepActivityEvent, cK as StepAssignee, cL as StepDisplay, cM as StepField, cP as StepKind, cQ as StepPhase, cR as StepSignal, cS as StepSignalWhen, cT as StepState, cU as StepStatus, cV as SubagentBranchRecord, cW as SubagentLaneInfo, cX as SubmitBackgroundQueryOptions, cY as SubscribeParams, cZ as SupportRating, c_ as SupportTicket, c$ as SupportTicketInput, d0 as SyncTriggerResult, d1 as TAG_KINDS, d2 as TAG_NESTING_MAX_DEPTH, d3 as TagChange, d4 as TagFieldDefinition, d5 as TagGroup, d6 as TagKind, d7 as TagKindField, d8 as TagKindSchema, d9 as TagLinks, da as TagListQuery, db as TagNode, dc as TagResponse, dd as TagScope, de as TagTreeRow, df as TaskPlan, dg as TaskPlanStep, dh as TaxQuoteResponse, di as Thread, dj as ThreadsResponse, dk as TimeSuggestion, dl as TurnRequest, dm as UpdateConversationRequest, dn as UpdateFactRequest, dp as UpdateWorkflowRequest, dt as UploadDocumentsOptions, du as UploadOptions, dv as UploadProgressListener, dw as UploadResult, dx as UsageBreakdown, dy as UserConnectorEntry, dz as UserDailyUsageResponse, dA as UserInfo, dB as WebSocketAuthError, dC as WeeklyHoursSpec, dD as WorkStatus, dE as WorkflowAuthMode, dF as WorkflowResponse, dG as WorkflowRunHistoryResponse, dH as WorkflowRunResponse, dI as WorkspaceConflict, dJ as WorkspaceContext, dK as WorkspaceOpenResponse, dL as WorkspaceResponse, dM as WsConnection, dN as account, dO as agentconfig, dQ as appendTranscriptionHints, dR as assistant, dS as authenticatedFetch, dT as bookPublicSlot, dU as buildCitationChunkData, dW as buildDocumentTools, dX as buildFactsContextTool, dY as buildRetrievalChunkTool, dZ as buildRetrievalFullContextTool, d_ as buildRetrievalTocTool, d$ as buildTurnRequest, e0 as calendar, e1 as calls, e2 as canTagHaveParent, e3 as cancelPublicBooking, e4 as capabilities, e5 as chats, e6 as composeConfiguration, e7 as composeTools, e8 as computeRunStats, e9 as connectErrorMessage, ea as connectWebSocket, eb as connectWithReconnect, ec as connectors, ed as contacts, ee as continuityPrompt, ef as conversations, eg as countCitations, eh as createAuthenticatedClient, ej as createIndexAssigner, ek as databases, el as defaultKindForFormat, em as diagnoseSetup, en as doctags, eo as documentTools, ep as documents, eq as estimateDraftTokens, er as extractDocumentIdsFromMessages, es as extractFactIdsFromMessages, et as extractSubagentLanes, eu as facts, ev as files, ew as filterDocumentTags, ex as filterSkills, ey as findLeafForTaskMessage, ez as findMainSiblingLeaf, eA as findReplyTarget, eB as findSubagentRunId, eC as flattenTagTree, eD as formatAgentStepLabel, eE as formatFileSize, eF as formatGbp, eG as formatGbpPerMillionTokens, eH as formatItemLabel, eJ as formatTokens, eK as formatUserName, eL as formatWorkspaceChoices, eP as getAgentStepLabel, eQ as getAttachableRunId, eR as getChildTags, eS as getContextRemainingPercent, eT as getContextUsedPercent, eU as getContextUsedTokens, eV as getCurrentStep, eW as getEligibleParentTags, eX as getErrorCode, eY as getErrorMessage, eZ as getPublicBookingPage, e_ as getRawWorkspaceKey, e$ as getRunToAttach, f0 as getRunToCancel, f1 as getStepDisplay, f2 as getStepTool, f3 as getSubagentBranchRecord, f4 as getTagDescendantIds, f5 as health, f6 as houseTemplates, f7 as hydrateAgentSteps, f9 as identityErrorCode, f8 as identityVerification, fa as instructions, fb as isAnnotationTag, fc as isConnectorVendorVisible, fd as isDriveSyncVendor, fe as isEntityTag, ff as isFlatKind, fg as isLabelTag, fh as isMailboxSyncVendor, fi as isNearAiUsageBudget, fj as isPresenceTag, fk as isSharePointVendor, fl as isSharedSkill, fm as isTraceItem, fn as mail, fo as mcpTools, fp as mergeAgentSteps, fq as modelConnections, fr as notifications, fs as parseSSEEvents, ft as parseSlashCommand, fu as parseSlashTokenInProgress, fv as parseStructuredResponse, fw as performPasswordLogin, fz as pickMainThread, fA as profile, fB as progressFetch, fC as projects, fD as quotaExceededFrom, fE as quotaFromStreamError, fF as reduceOutputItem, fG as refusalReason, fH as requireData, fI as requireOk, fJ as resolveAuth, fK as resolveCitations, fL as resolveSummary, fM as resolveWorkspace, fN as responses, fO as searchChunks, fP as secureMail, fQ as selectFullContextDocument, fR as selectWorkspace, fS as selectWorkspaceById, fT as sessions, fU as settings, fW as sliceToSubagentThread, fX as streamSSE, fY as stripCitationMarkdown, fZ as subagentJobLabel, f_ as summarizeCitations, f$ as support, g0 as tagUseCount, g1 as tags, g2 as tagsForScope, g3 as tagsOfGroup, g4 as topLevelAgentSteps, g6 as usdToGbp, g7 as work, g8 as workflowSteps, g9 as workflows, ga as workspaceAssistant, gb as workspaceConflictOf, gc as workspaces, gd as wouldCreateTagCycle } from './browser-1VkMgddb.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-B5Lw0KTC.js';
|
|
3
3
|
export { CallPeer, HttpErrorInfo, HttpRequestInfo, HttpResponseInfo, HttpTransportOptions, LoginProfile, SessionPersistence } from '@arbidocs/client';
|
package/dist/browser.js
CHANGED
|
@@ -5820,6 +5820,7 @@ __export(documents_exports, {
|
|
|
5820
5820
|
listVersions: () => listVersions,
|
|
5821
5821
|
mimeFromName: () => mimeFromName,
|
|
5822
5822
|
presignedPut: () => presignedPut,
|
|
5823
|
+
restoreVersion: () => restoreVersion,
|
|
5823
5824
|
sanitizeFolderPath: () => sanitizeFolderPath,
|
|
5824
5825
|
similarDocuments: () => similarDocuments,
|
|
5825
5826
|
updateDocuments: () => updateDocuments,
|
|
@@ -5989,6 +5990,19 @@ async function listVersions(arbi, docId) {
|
|
|
5989
5990
|
"Failed to fetch document versions"
|
|
5990
5991
|
);
|
|
5991
5992
|
}
|
|
5993
|
+
async function restoreVersion(arbi, docId, version, expectedCurrentVersion, workspaceExtId, signal) {
|
|
5994
|
+
const query2 = {
|
|
5995
|
+
expected_current_version: expectedCurrentVersion,
|
|
5996
|
+
workspace_ext_id: workspaceExtId
|
|
5997
|
+
};
|
|
5998
|
+
return requireData(
|
|
5999
|
+
await arbi.fetch.POST("/v1/document/{document_ext_id}/versions/{n}/restore", {
|
|
6000
|
+
params: { path: { document_ext_id: docId, n: version }, query: query2 },
|
|
6001
|
+
signal
|
|
6002
|
+
}),
|
|
6003
|
+
"Failed to restore document version"
|
|
6004
|
+
);
|
|
6005
|
+
}
|
|
5992
6006
|
async function finaliseTranslation(arbi, docId) {
|
|
5993
6007
|
return requireData(
|
|
5994
6008
|
await arbi.fetch.POST("/v1/document/{document_ext_id}/finalise-translation", {
|
|
@@ -6531,6 +6545,62 @@ async function unlockModelConnections(arbi, keys, onlyId) {
|
|
|
6531
6545
|
}
|
|
6532
6546
|
}
|
|
6533
6547
|
|
|
6548
|
+
// src/operations/workspace-assistant.ts
|
|
6549
|
+
var workspace_assistant_exports = {};
|
|
6550
|
+
__export(workspace_assistant_exports, {
|
|
6551
|
+
getBrief: () => getBrief,
|
|
6552
|
+
getStatus: () => getStatus,
|
|
6553
|
+
listArrivals: () => listArrivals,
|
|
6554
|
+
markArrivalWrong: () => markArrivalWrong,
|
|
6555
|
+
markMessageDraftSent: () => markMessageDraftSent,
|
|
6556
|
+
updateBrief: () => updateBrief
|
|
6557
|
+
});
|
|
6558
|
+
var FAILED2 = "Could not update the workspace Assistant";
|
|
6559
|
+
async function getBrief(arbi, workspaceExtId) {
|
|
6560
|
+
return requireData(
|
|
6561
|
+
await arbi.fetch.GET("/v1/workspace-assistant/brief", {
|
|
6562
|
+
params: { query: { workspace_ext_id: workspaceExtId } }
|
|
6563
|
+
}),
|
|
6564
|
+
FAILED2
|
|
6565
|
+
);
|
|
6566
|
+
}
|
|
6567
|
+
async function updateBrief(arbi, body) {
|
|
6568
|
+
return requireData(await arbi.fetch.PUT("/v1/workspace-assistant/brief", { body }), FAILED2);
|
|
6569
|
+
}
|
|
6570
|
+
async function listArrivals(arbi, workspaceExtId, limit = 50) {
|
|
6571
|
+
return requireData(
|
|
6572
|
+
await arbi.fetch.GET("/v1/workspace-assistant/arrivals", {
|
|
6573
|
+
params: { query: { workspace_ext_id: workspaceExtId, limit } }
|
|
6574
|
+
}),
|
|
6575
|
+
FAILED2
|
|
6576
|
+
);
|
|
6577
|
+
}
|
|
6578
|
+
async function markArrivalWrong(arbi, arrivalExtId) {
|
|
6579
|
+
return requireData(
|
|
6580
|
+
await arbi.fetch.POST("/v1/workspace-assistant/arrivals/{arrival_ext_id}/wrong", {
|
|
6581
|
+
params: { path: { arrival_ext_id: arrivalExtId } }
|
|
6582
|
+
}),
|
|
6583
|
+
FAILED2
|
|
6584
|
+
);
|
|
6585
|
+
}
|
|
6586
|
+
async function markMessageDraftSent(arbi, arrivalExtId, index) {
|
|
6587
|
+
requireOk(
|
|
6588
|
+
await arbi.fetch.POST(
|
|
6589
|
+
"/v1/workspace-assistant/arrivals/{arrival_ext_id}/message-drafts/{index}/sent",
|
|
6590
|
+
{ params: { path: { arrival_ext_id: arrivalExtId, index } } }
|
|
6591
|
+
),
|
|
6592
|
+
FAILED2
|
|
6593
|
+
);
|
|
6594
|
+
}
|
|
6595
|
+
async function getStatus(arbi, workspaceExtId) {
|
|
6596
|
+
return requireData(
|
|
6597
|
+
await arbi.fetch.GET("/v1/workspace-assistant/status", {
|
|
6598
|
+
params: { query: { workspace_ext_id: workspaceExtId } }
|
|
6599
|
+
}),
|
|
6600
|
+
FAILED2
|
|
6601
|
+
);
|
|
6602
|
+
}
|
|
6603
|
+
|
|
6534
6604
|
// src/operations/secure-mail.ts
|
|
6535
6605
|
var secure_mail_exports = {};
|
|
6536
6606
|
__export(secure_mail_exports, {
|
|
@@ -8683,7 +8753,7 @@ async function requestDeletion(arbi) {
|
|
|
8683
8753
|
var identity_exports = {};
|
|
8684
8754
|
__export(identity_exports, {
|
|
8685
8755
|
acceptName: () => acceptName,
|
|
8686
|
-
getStatus: () =>
|
|
8756
|
+
getStatus: () => getStatus2,
|
|
8687
8757
|
identityErrorCode: () => identityErrorCode,
|
|
8688
8758
|
purchase: () => purchase,
|
|
8689
8759
|
refresh: () => refresh,
|
|
@@ -8715,7 +8785,7 @@ function unwrap(result, fallback) {
|
|
|
8715
8785
|
}
|
|
8716
8786
|
return result.data;
|
|
8717
8787
|
}
|
|
8718
|
-
async function
|
|
8788
|
+
async function getStatus2(arbi) {
|
|
8719
8789
|
return unwrap(await arbi.fetch.GET("/v1/user/identity"), "Failed to load identity verification");
|
|
8720
8790
|
}
|
|
8721
8791
|
async function purchase(arbi, projectExtId) {
|
|
@@ -12232,7 +12302,7 @@ var Arbi = class {
|
|
|
12232
12302
|
// ── Identity verification ─────────────────────────────────────────────
|
|
12233
12303
|
identity = {
|
|
12234
12304
|
/** Whether the ID check is offered (Pro plans), its price, and where the user's check stands. */
|
|
12235
|
-
status: () =>
|
|
12305
|
+
status: () => getStatus2(this.requireClient()),
|
|
12236
12306
|
/** Charge the one-time fee to an own Pro project; `requires_action` carries a payment URL. */
|
|
12237
12307
|
purchase: (projectExtId) => purchase(this.requireClient(), projectExtId),
|
|
12238
12308
|
/** The Didit session URL to run the web SDK on. */
|
|
@@ -12246,7 +12316,7 @@ var Arbi = class {
|
|
|
12246
12316
|
/** Take the name on the document as the account name; the profile follows. */
|
|
12247
12317
|
acceptName: async () => {
|
|
12248
12318
|
const client = this.requireClient();
|
|
12249
|
-
const offered = await
|
|
12319
|
+
const offered = await getStatus2(client);
|
|
12250
12320
|
const status = await acceptName(client);
|
|
12251
12321
|
if (this.userProfile && offered.document_given_name) {
|
|
12252
12322
|
this.setUserProfile({
|
|
@@ -12474,6 +12544,25 @@ var Arbi = class {
|
|
|
12474
12544
|
get: (externalIds) => getDocuments(this.requireClient(), externalIds),
|
|
12475
12545
|
/** Every version of a document, oldest first; `is_current` marks the current one. */
|
|
12476
12546
|
versions: (docId) => listVersions(this.requireClient(), docId),
|
|
12547
|
+
/** Restore an earlier snapshot as a new version, retaining history and rejecting concurrent edits. */
|
|
12548
|
+
restoreVersion: (docId, version, expectedCurrentVersion) => {
|
|
12549
|
+
const workspaceExtId = this.requireWorkspace();
|
|
12550
|
+
const signal = this.requireClient().auth.sessionSignal();
|
|
12551
|
+
return this.recovering(() => {
|
|
12552
|
+
signal.throwIfAborted();
|
|
12553
|
+
if (this.currentWorkspaceId !== workspaceExtId) {
|
|
12554
|
+
throw new ArbiWorkspaceChangedError(workspaceExtId, "restoring a document in");
|
|
12555
|
+
}
|
|
12556
|
+
return restoreVersion(
|
|
12557
|
+
this.requireClient(),
|
|
12558
|
+
docId,
|
|
12559
|
+
version,
|
|
12560
|
+
expectedCurrentVersion,
|
|
12561
|
+
workspaceExtId,
|
|
12562
|
+
signal
|
|
12563
|
+
);
|
|
12564
|
+
});
|
|
12565
|
+
},
|
|
12477
12566
|
/** Save a translation's current version as a new PDF document linked to its original. */
|
|
12478
12567
|
finaliseTranslation: (docId) => finaliseTranslation(this.requireClient(), docId),
|
|
12479
12568
|
delete: (externalIds) => deleteDocuments(this.requireClient(), externalIds),
|
|
@@ -13848,6 +13937,17 @@ var Arbi = class {
|
|
|
13848
13937
|
/** The documents the open workspace may use as its house template. */
|
|
13849
13938
|
candidates: () => listHouseTemplateCandidates(this.requireClient())
|
|
13850
13939
|
};
|
|
13940
|
+
// ── Workspace Assistant ─────────────────────────────────────────────
|
|
13941
|
+
/** The workspace's standing instructions for its Assistant, and what it did with each arrival. */
|
|
13942
|
+
workspaceAssistant = {
|
|
13943
|
+
brief: (workspaceExtId) => getBrief(this.requireClient(), workspaceExtId),
|
|
13944
|
+
updateBrief: (body) => updateBrief(this.requireClient(), body),
|
|
13945
|
+
arrivals: (workspaceExtId, limit) => listArrivals(this.requireClient(), workspaceExtId, limit),
|
|
13946
|
+
status: (workspaceExtId) => getStatus(this.requireClient(), workspaceExtId),
|
|
13947
|
+
markWrong: (arrivalExtId) => markArrivalWrong(this.requireClient(), arrivalExtId),
|
|
13948
|
+
/** Record that a message the Assistant drafted was sent, so it is not offered again. */
|
|
13949
|
+
markMessageSent: (arrivalExtId, index) => markMessageDraftSent(this.requireClient(), arrivalExtId, index)
|
|
13950
|
+
};
|
|
13851
13951
|
// ── Model connections ───────────────────────────────────────────────
|
|
13852
13952
|
/**
|
|
13853
13953
|
* The main agent's OpenAI-compatible endpoints: the box's and the user's own. A personal key is
|
|
@@ -14706,6 +14806,6 @@ function composeTools(base, next, mode) {
|
|
|
14706
14806
|
return structuredClone(mode === "add" ? { ...base, ...next } : next);
|
|
14707
14807
|
}
|
|
14708
14808
|
|
|
14709
|
-
export { ACCOUNT_VENDOR, Arbi, ArbiApiError, ArbiError, ArbiSessionExpiredError, ArbiStructuredOutputError, ArbiTransportError, ArbiWorkspaceChangedError, ArbiWorkspaceSupersededError, ArbiWorkspaceUnavailableError, CallApiError, DEFAULT_AI_USD_PER_GBP, DRIVE_SYNC_VENDORS, DuplicateContactError, ENTITY_KINDS, FLAT_TAG_KINDS, GOOGLE_VENDORS, IMANAGE_VENDORS, MAILBOX_SYNC_VENDORS, MAX_RETRIEVE_DOC_IDS, MICROSOFT_VENDORS, PRESENCE_KINDS, PROMPT_CONTEXT_CHARS, PlanStepsError, PublicBookingError, ResponseStream, SHAREPOINT_VENDORS, STOP_ID_WAIT_MS, STOP_REPEAT_WINDOW_MS, TAG_KINDS, TAG_NESTING_MAX_DEPTH, WebSocketAuthError, account_exports as account, agentconfig_exports as agentconfig, appendTranscriptionHints, assistant_exports as assistant, authenticatedFetch, bookPublicSlot, buildCitationChunkData, buildDocumentTools, buildFactsContextTool, buildRetrievalChunkTool, buildRetrievalFullContextTool, buildRetrievalTocTool, buildTurnRequest, calendar_exports as calendar, calls_exports as calls, canTagHaveParent, cancelPublicBooking, capabilities, chats_exports as chats, composeConfiguration, composeTools, computeRunStats, connectErrorMessage, connectWebSocket, connectWithReconnect, connectors_exports as connectors, contacts_exports as contacts, continuityPrompt, conversations_exports as conversations, countCitations, createAuthenticatedClient, createIndexAssigner, databases_exports as databases, defaultKindForFormat, diagnoseSetup, doctags_exports as doctags, documentTools, documents_exports as documents, estimateDraftTokens, extractDocumentIdsFromMessages, extractFactIdsFromMessages, extractSubagentLanes, facts_exports as facts, files_exports as files, filterDocumentTags, filterSkills, findLeafForTaskMessage, findMainSiblingLeaf, findReplyTarget, findSubagentRunId, flattenTagTree, formatAgentStepLabel, formatFileSize, formatGbp, formatGbpPerMillionTokens, formatItemLabel, formatTokens, formatUserName, formatWorkspaceChoices, getAgentStepLabel, getAttachableRunId, getChildTags, getContextRemainingPercent, getContextUsedPercent, getContextUsedTokens, getCurrentStep, getEligibleParentTags, getErrorCode, getErrorMessage, getPublicBookingPage, getRawWorkspaceKey, getRunToAttach, getRunToCancel, getStepDisplay, getStepTool, getSubagentBranchRecord, getTagDescendantIds, health_exports as health, house_template_exports as houseTemplates, hydrateAgentSteps, identityErrorCode, identity_exports as identityVerification, instructions, isAnnotationTag, isConnectorVendorVisible, isDriveSyncVendor, isEntityTag, isFlatKind, isLabelTag, isMailboxSyncVendor, isNearAiUsageBudget, isPresenceTag, isSharePointVendor, isSharedSkill, isTraceItem, mail_exports as mail, mcpTools, mergeAgentSteps, model_connections_exports as modelConnections, notifications_exports as notifications, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, parseStructuredResponse, performPasswordLogin, pickMainThread, profile_exports as profile, progressFetch, projects_exports as projects, quotaExceededFrom, quotaFromStreamError, reduceOutputItem, refusalReason, requireData, requireOk, resolveAuth, resolveCitations, resolveSummary, resolveWorkspace, responses_exports as responses, searchChunks, secure_mail_exports as secureMail, selectFullContextDocument, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, sliceToSubagentThread, streamSSE, stripCitationMarkdown, subagentJobLabel, summarizeCitations, support_exports as support, tagUseCount, tags_exports as tags, tagsForScope, tagsOfGroup, topLevelAgentSteps, usdToGbp, work_exports as work, workflow_steps_exports as workflowSteps, workflows_exports as workflows, workspaceConflictOf, workspaces_exports as workspaces, wouldCreateTagCycle };
|
|
14809
|
+
export { ACCOUNT_VENDOR, Arbi, ArbiApiError, ArbiError, ArbiSessionExpiredError, ArbiStructuredOutputError, ArbiTransportError, ArbiWorkspaceChangedError, ArbiWorkspaceSupersededError, ArbiWorkspaceUnavailableError, CallApiError, DEFAULT_AI_USD_PER_GBP, DRIVE_SYNC_VENDORS, DuplicateContactError, ENTITY_KINDS, FLAT_TAG_KINDS, GOOGLE_VENDORS, IMANAGE_VENDORS, MAILBOX_SYNC_VENDORS, MAX_RETRIEVE_DOC_IDS, MICROSOFT_VENDORS, PRESENCE_KINDS, PROMPT_CONTEXT_CHARS, PlanStepsError, PublicBookingError, ResponseStream, SHAREPOINT_VENDORS, STOP_ID_WAIT_MS, STOP_REPEAT_WINDOW_MS, TAG_KINDS, TAG_NESTING_MAX_DEPTH, WebSocketAuthError, account_exports as account, agentconfig_exports as agentconfig, appendTranscriptionHints, assistant_exports as assistant, authenticatedFetch, bookPublicSlot, buildCitationChunkData, buildDocumentTools, buildFactsContextTool, buildRetrievalChunkTool, buildRetrievalFullContextTool, buildRetrievalTocTool, buildTurnRequest, calendar_exports as calendar, calls_exports as calls, canTagHaveParent, cancelPublicBooking, capabilities, chats_exports as chats, composeConfiguration, composeTools, computeRunStats, connectErrorMessage, connectWebSocket, connectWithReconnect, connectors_exports as connectors, contacts_exports as contacts, continuityPrompt, conversations_exports as conversations, countCitations, createAuthenticatedClient, createIndexAssigner, databases_exports as databases, defaultKindForFormat, diagnoseSetup, doctags_exports as doctags, documentTools, documents_exports as documents, estimateDraftTokens, extractDocumentIdsFromMessages, extractFactIdsFromMessages, extractSubagentLanes, facts_exports as facts, files_exports as files, filterDocumentTags, filterSkills, findLeafForTaskMessage, findMainSiblingLeaf, findReplyTarget, findSubagentRunId, flattenTagTree, formatAgentStepLabel, formatFileSize, formatGbp, formatGbpPerMillionTokens, formatItemLabel, formatTokens, formatUserName, formatWorkspaceChoices, getAgentStepLabel, getAttachableRunId, getChildTags, getContextRemainingPercent, getContextUsedPercent, getContextUsedTokens, getCurrentStep, getEligibleParentTags, getErrorCode, getErrorMessage, getPublicBookingPage, getRawWorkspaceKey, getRunToAttach, getRunToCancel, getStepDisplay, getStepTool, getSubagentBranchRecord, getTagDescendantIds, health_exports as health, house_template_exports as houseTemplates, hydrateAgentSteps, identityErrorCode, identity_exports as identityVerification, instructions, isAnnotationTag, isConnectorVendorVisible, isDriveSyncVendor, isEntityTag, isFlatKind, isLabelTag, isMailboxSyncVendor, isNearAiUsageBudget, isPresenceTag, isSharePointVendor, isSharedSkill, isTraceItem, mail_exports as mail, mcpTools, mergeAgentSteps, model_connections_exports as modelConnections, notifications_exports as notifications, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, parseStructuredResponse, performPasswordLogin, pickMainThread, profile_exports as profile, progressFetch, projects_exports as projects, quotaExceededFrom, quotaFromStreamError, reduceOutputItem, refusalReason, requireData, requireOk, resolveAuth, resolveCitations, resolveSummary, resolveWorkspace, responses_exports as responses, searchChunks, secure_mail_exports as secureMail, selectFullContextDocument, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, sliceToSubagentThread, streamSSE, stripCitationMarkdown, subagentJobLabel, summarizeCitations, support_exports as support, tagUseCount, tags_exports as tags, tagsForScope, tagsOfGroup, topLevelAgentSteps, usdToGbp, work_exports as work, workflow_steps_exports as workflowSteps, workflows_exports as workflows, workspace_assistant_exports as workspaceAssistant, workspaceConflictOf, workspaces_exports as workspaces, wouldCreateTagCycle };
|
|
14710
14810
|
//# sourceMappingURL=browser.js.map
|
|
14711
14811
|
//# sourceMappingURL=browser.js.map
|