@arbidocs/sdk 0.4.144 → 0.4.146

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.
@@ -1,2 +1,2 @@
1
- export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as AgentControlStateEvent, e as AgentStepDeltaEvent, f as AgentStepEvent, g as AppPassword, h as AppPasswordCreateBody, i as AppPasswordCreated, j as Arbi, k as ArbiApiError, l as ArbiError, m as ArbiErrorEvent, n as ArbiHostSession, o as ArbiOptions, q as ArtifactEvent, 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, C as CalDavConnectBody, z as CalDavProfile, D as CalendarAccount, E as CalendarAccountKind, F as CalendarCreateBody, G as CalendarEvent, H as CalendarKeys, I as CalendarRead, J as CalendarSettings, K as CalendarSettingsBody, L as CalendarUpdate, M as CalendarWindow, N as ChatAttachmentFile, O as ChatAttachmentInput, P as ChatCryptoContext, Q as ChatKeyRing, R as ChatKind, S as ChatMemberKey, T as ChatMemberResponse, U as ChatMessageResponse, V as ChatResponse, W as ChatSession, X as CitationSummary, Y as CitationToolSources, Z as CliConfig, _ as CliCredentials, $ as CommandDescriptor, a0 as ConfigStore, a1 as ConnectOptions, a2 as ConversationResponse, a3 as ConversationUsageResponse, a4 as CreateFactRequest, a5 as CreateFactsRequest, a6 as CreateWorkRequest, a7 as CreateWorkflowRequest, a8 as DEFAULT_AI_USD_PER_GBP, aa as DateTimeSpec, ac as DecryptedChatMessage, ad as DeferredInterjectionEvent, ae as DeploymentHouseTemplate, ag as DocumentAutomationAction, aj as DocumentSelector, am as EditScope, an as EventCreateBody, ao as EventPatchBody, ap as FLAT_TAG_KINDS, aq as FactResponse, ar as FactSearchRequest, as as FactSearchResponse, at as FeedCreateBody, au as FeedLevel, av as FindTimeParams, ax as FreeBusyEntry, ay as HolidayCountry, az as HouseTemplateCandidate, aA as IdentityErrorCode, aB as IdentityPurchase, aC as IdentityState, aD as IdentityStatus, aE as ImportResult, aF as InvitationRead, aG as LinkedRun, aI as ListEventsParams, aJ as ListFactsOptions, aM as MailDraftSSEEvent, aO as MessageMetadataPayload, aP as MessageQueuedEvent, aQ as OAuthAccountKind, aR as OutputTokensDetails, aS as OverlayItem, aT as OverlayLayerName, aU as ParsedSlashCommand, aV as PendingAuthResponse, aW as PersonKey, aX as PlanStepsError, aY as PlanWorkRequest, aZ as ProbeAnswerEvent, a_ as ProjectBudget, a$ as ProjectConversationUsageResponse, b0 as ProjectDetails, b1 as ProjectEventKind, b2 as ProjectEventResponse, b3 as ProjectInvoicesResponse, b4 as ProjectResponse, b5 as ProjectUpdateRequest, b6 as ProjectUsageResponse, b7 as PublicBookingError, b8 as PublicBookingPage, b9 as QueryOptions, ba as RaisedSignal, bb as ReconnectOptions, bc as ReconnectableWsConnection, bd as ResolvedCitation, bf as RespondParams, bg as RespondPartstat, bh as ResponseCompletedEvent, bi as ResponseContentPartAddedEvent, bj as ResponseCreatedEvent, bk as ResponseFailedEvent, bl as ResponseOutputItemAddedEvent, bm as ResponseOutputItemDoneEvent, bn as ResponseOutputTextDeltaEvent, bo as ResponseOutputTextDoneEvent, bp as ResponseUsage, bq as RoomCreateBody, br as RoomQuery, bs as RoomRead, bt as RunProgress, bu as RunStep, bv as RunWaitingOn, bw as SSEEvent, bx as SSEStreamCallbacks, by as SSEStreamResult, bz as SSEStreamStartData, bC as ScopedTarget, bD as SendBack, bE as ShareRead, bF as ShareRole, bG as SkillSummary, bI as StepActionRequest, bJ as StepActivityEvent, bK as StepAssignee, bL as StepField, bO as StepKind, bP as StepPhase, bQ as StepSignal, bR as StepSignalWhen, bS as StepState, bT as StepStatus, bU as SubmitBackgroundQueryOptions, bV as SubscribeParams, bW as TAG_KINDS, bX as TagChange, bY as TagFieldDefinition, bZ as TagKind, b_ as TagKindField, b$ as TagKindSchema, c0 as TagLinks, c1 as TagListQuery, c2 as TagResponse, c3 as TaskPlan, c4 as TaskPlanStep, c5 as TimeSuggestion, c6 as TokenBudgetContext, c7 as UpdateConversationRequest, c8 as UpdateFactRequest, c9 as UpdateWorkflowRequest, cf as UsageBreakdown, cg as UserDailyUsageResponse, ch as UserInfo, ci as UserInputRequestEvent, cj as UserMessageEvent, ck as WebSocketAuthError, cl as WeeklyHoursSpec, cm as WorkStatus, cn as WorkflowAuthMode, co as WorkflowResponse, cp as WorkflowRunHistoryResponse, cq as WorkflowRunResponse, cr as WorkspaceContext, cs as WsConnection, ct as account, cu as agentconfig, cw as assistant, cx as authenticatedFetch, cy as bookPublicSlot, cz as buildCitationChunkData, cB as buildFactsContextTool, cC as buildRetrievalChunkTool, cD as buildRetrievalFullContextTool, cE as buildRetrievalTocTool, cF as calendar, cG as cancelPublicBooking, cH as chats, cI as connectWebSocket, cJ as connectWithReconnect, cK as consumeSSEStream, cL as contacts, cM as conversations, cN as countCitations, cO as createAuthenticatedClient, cQ as doctags, cR as documents, cS as facts, cT as files, cU as filterSkills, cV as formatAgentStepLabel, cW as formatFileSize, cX as formatGbp, cY as formatGbpPerMillionTokens, cZ as formatItemLabel, c$ as formatUserName, d0 as formatWorkspaceChoices, d5 as getErrorMessage, d6 as getPublicBookingPage, d7 as getRawWorkspaceKey, d8 as health, d9 as houseTemplates, db as identityErrorCode, da as identityVerification, dd as mail, de as notifications, df as parseSSEEvents, dg as parseSlashCommand, dh as parseSlashTokenInProgress, di as performPasswordLogin, dl as profile, dm as projects, dn as requireData, dp as requireOk, dq as resolveAuth, dr as resolveCitations, ds as resolveWorkspace, dt as responses, du as selectWorkspace, dv as selectWorkspaceById, dw as sessions, dx as settings, dz as splitAppPasswords, dA as streamSSE, dB as stripCitationMarkdown, dC as summarizeCitations, dD as tags, dF as usdToGbp, dG as work, dH as workflowSteps, dI as workflows, dJ as workspaces } from './browser-C48W4Ivd.cjs';
1
+ export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as AgentControlStateEvent, e as AgentStepDeltaEvent, f as AgentStepEvent, g as AppPassword, h as AppPasswordCreateBody, i as AppPasswordCreated, j as Arbi, k as ArbiApiError, l as ArbiError, m as ArbiErrorEvent, n as ArbiHostSession, o as ArbiOptions, q as ArtifactEvent, 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, C as CalDavConnectBody, z as CalDavProfile, D as CalendarAccount, E as CalendarAccountKind, F as CalendarCreateBody, G as CalendarEvent, H as CalendarKeys, I as CalendarRead, J as CalendarSettings, K as CalendarSettingsBody, L as CalendarUpdate, M as CalendarWindow, N as ChatAttachmentFile, O as ChatAttachmentInput, P as ChatCryptoContext, Q as ChatKeyRing, R as ChatKind, S as ChatMemberKey, T as ChatMemberResponse, U as ChatMessageResponse, V as ChatResponse, W as ChatSession, X as CitationSummary, Y as CitationToolSources, Z as CliConfig, _ as CliCredentials, $ as CommandDescriptor, a0 as ConfigStore, a1 as ConnectOptions, a2 as ConversationResponse, a3 as ConversationUsageResponse, a4 as CreateFactRequest, a5 as CreateFactsRequest, a6 as CreateWorkRequest, a7 as CreateWorkflowRequest, a8 as DEFAULT_AI_USD_PER_GBP, aa as DateTimeSpec, ac as DecryptedChatMessage, ad as DeferredInterjectionEvent, ae as DeploymentHouseTemplate, ag as DocumentAutomationAction, aj as DocumentSelector, am as EditScope, an as EventCreateBody, ao as EventPatchBody, ap as FLAT_TAG_KINDS, aq as FactResponse, ar as FactSearchRequest, as as FactSearchResponse, at as FeedCreateBody, au as FeedLevel, av as FindTimeParams, ax as FreeBusyEntry, ay as HolidayCountry, az as HouseTemplateCandidate, aA as IdentityErrorCode, aB as IdentityPurchase, aC as IdentityState, aD as IdentityStatus, aE as ImportResult, aF as InvitationRead, aG as LinkedRun, aI as ListEventsParams, aJ as ListFactsOptions, aM as MailDraftSSEEvent, aO as MessageMetadataPayload, aP as MessageQueuedEvent, aQ as OAuthAccountKind, aR as OutputTokensDetails, aS as OverlayItem, aT as OverlayLayerName, aU as ParsedSlashCommand, aV as PendingAuthResponse, aW as PersonKey, aX as PlanStepsError, aY as PlanWorkRequest, aZ as ProbeAnswerEvent, a_ as ProjectBudget, a$ as ProjectConversationUsageResponse, b0 as ProjectDetails, b1 as ProjectEventKind, b2 as ProjectEventResponse, b3 as ProjectInvoicesResponse, b4 as ProjectResponse, b5 as ProjectUpdateRequest, b6 as ProjectUsageResponse, b7 as PublicBookingError, b8 as PublicBookingPage, b9 as QueryOptions, ba as RaisedSignal, bb as ReconnectOptions, bc as ReconnectableWsConnection, bd as ResolvedCitation, bf as RespondParams, bg as RespondPartstat, bh as ResponseCompletedEvent, bi as ResponseContentPartAddedEvent, bj as ResponseCreatedEvent, bk as ResponseFailedEvent, bl as ResponseOutputItemAddedEvent, bm as ResponseOutputItemDoneEvent, bn as ResponseOutputTextDeltaEvent, bo as ResponseOutputTextDoneEvent, bp as ResponseUsage, bq as RoomCreateBody, br as RoomQuery, bs as RoomRead, bt as RunProgress, bu as RunStep, bv as RunWaitingOn, bw as SSEEvent, bx as SSEStreamCallbacks, by as SSEStreamResult, bz as SSEStreamStartData, bC as ScopedTarget, bD as SendBack, bE as ShareRead, bF as ShareRole, bG as SkillSummary, bH as SkippedFile, bI as StepActionRequest, bJ as StepActivityEvent, bK as StepAssignee, bL as StepField, bO as StepKind, bP as StepPhase, bQ as StepSignal, bR as StepSignalWhen, bS as StepState, bT as StepStatus, bU as SubmitBackgroundQueryOptions, bV as SubscribeParams, bW as TAG_KINDS, bX as TagChange, bY as TagFieldDefinition, bZ as TagKind, b_ as TagKindField, b$ as TagKindSchema, c0 as TagLinks, c1 as TagListQuery, c2 as TagResponse, c3 as TaskPlan, c4 as TaskPlanStep, c5 as TimeSuggestion, c6 as TokenBudgetContext, c7 as UpdateConversationRequest, c8 as UpdateFactRequest, c9 as UpdateWorkflowRequest, cd as UploadDocumentsOptions, ce as UploadOptions, cf as UploadResult, cg as UsageBreakdown, ch as UserDailyUsageResponse, ci as UserInfo, cj as UserInputRequestEvent, ck as UserMessageEvent, cl as WebSocketAuthError, cm as WeeklyHoursSpec, cn as WorkStatus, co as WorkflowAuthMode, cp as WorkflowResponse, cq as WorkflowRunHistoryResponse, cr as WorkflowRunResponse, cs as WorkspaceContext, ct as WsConnection, cu as account, cv as agentconfig, cx as assistant, cy as authenticatedFetch, cz as bookPublicSlot, cA as buildCitationChunkData, cC as buildFactsContextTool, cD as buildRetrievalChunkTool, cE as buildRetrievalFullContextTool, cF as buildRetrievalTocTool, cG as calendar, cH as cancelPublicBooking, cI as chats, cJ as connectWebSocket, cK as connectWithReconnect, cL as consumeSSEStream, cM as contacts, cN as conversations, cO as countCitations, cP as createAuthenticatedClient, cR as doctags, cS as documents, cT as facts, cU as files, cV as filterSkills, cW as formatAgentStepLabel, cX as formatFileSize, cY as formatGbp, cZ as formatGbpPerMillionTokens, c_ as formatItemLabel, d0 as formatUserName, d1 as formatWorkspaceChoices, d6 as getErrorMessage, d7 as getPublicBookingPage, d8 as getRawWorkspaceKey, d9 as health, da as houseTemplates, dc as identityErrorCode, db as identityVerification, de as mail, df as notifications, dg as parseSSEEvents, dh as parseSlashCommand, di as parseSlashTokenInProgress, dj as performPasswordLogin, dm as profile, dn as projects, dp as requireData, dq as requireOk, dr as resolveAuth, ds as resolveCitations, dt as resolveWorkspace, du as responses, dv as selectWorkspace, dw as selectWorkspaceById, dx as sessions, dy as settings, dA as splitAppPasswords, dB as streamSSE, dC as stripCitationMarkdown, dD as summarizeCitations, dE as tags, dG as usdToGbp, dH as work, dI as workflowSteps, dJ as workflows, dK as workspaces } from './browser-Cd9i8TIR.cjs';
2
2
  export { LoginProfile } from '@arbidocs/client';
package/dist/browser.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as AgentControlStateEvent, e as AgentStepDeltaEvent, f as AgentStepEvent, g as AppPassword, h as AppPasswordCreateBody, i as AppPasswordCreated, j as Arbi, k as ArbiApiError, l as ArbiError, m as ArbiErrorEvent, n as ArbiHostSession, o as ArbiOptions, q as ArtifactEvent, 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, C as CalDavConnectBody, z as CalDavProfile, D as CalendarAccount, E as CalendarAccountKind, F as CalendarCreateBody, G as CalendarEvent, H as CalendarKeys, I as CalendarRead, J as CalendarSettings, K as CalendarSettingsBody, L as CalendarUpdate, M as CalendarWindow, N as ChatAttachmentFile, O as ChatAttachmentInput, P as ChatCryptoContext, Q as ChatKeyRing, R as ChatKind, S as ChatMemberKey, T as ChatMemberResponse, U as ChatMessageResponse, V as ChatResponse, W as ChatSession, X as CitationSummary, Y as CitationToolSources, Z as CliConfig, _ as CliCredentials, $ as CommandDescriptor, a0 as ConfigStore, a1 as ConnectOptions, a2 as ConversationResponse, a3 as ConversationUsageResponse, a4 as CreateFactRequest, a5 as CreateFactsRequest, a6 as CreateWorkRequest, a7 as CreateWorkflowRequest, a8 as DEFAULT_AI_USD_PER_GBP, aa as DateTimeSpec, ac as DecryptedChatMessage, ad as DeferredInterjectionEvent, ae as DeploymentHouseTemplate, ag as DocumentAutomationAction, aj as DocumentSelector, am as EditScope, an as EventCreateBody, ao as EventPatchBody, ap as FLAT_TAG_KINDS, aq as FactResponse, ar as FactSearchRequest, as as FactSearchResponse, at as FeedCreateBody, au as FeedLevel, av as FindTimeParams, ax as FreeBusyEntry, ay as HolidayCountry, az as HouseTemplateCandidate, aA as IdentityErrorCode, aB as IdentityPurchase, aC as IdentityState, aD as IdentityStatus, aE as ImportResult, aF as InvitationRead, aG as LinkedRun, aI as ListEventsParams, aJ as ListFactsOptions, aM as MailDraftSSEEvent, aO as MessageMetadataPayload, aP as MessageQueuedEvent, aQ as OAuthAccountKind, aR as OutputTokensDetails, aS as OverlayItem, aT as OverlayLayerName, aU as ParsedSlashCommand, aV as PendingAuthResponse, aW as PersonKey, aX as PlanStepsError, aY as PlanWorkRequest, aZ as ProbeAnswerEvent, a_ as ProjectBudget, a$ as ProjectConversationUsageResponse, b0 as ProjectDetails, b1 as ProjectEventKind, b2 as ProjectEventResponse, b3 as ProjectInvoicesResponse, b4 as ProjectResponse, b5 as ProjectUpdateRequest, b6 as ProjectUsageResponse, b7 as PublicBookingError, b8 as PublicBookingPage, b9 as QueryOptions, ba as RaisedSignal, bb as ReconnectOptions, bc as ReconnectableWsConnection, bd as ResolvedCitation, bf as RespondParams, bg as RespondPartstat, bh as ResponseCompletedEvent, bi as ResponseContentPartAddedEvent, bj as ResponseCreatedEvent, bk as ResponseFailedEvent, bl as ResponseOutputItemAddedEvent, bm as ResponseOutputItemDoneEvent, bn as ResponseOutputTextDeltaEvent, bo as ResponseOutputTextDoneEvent, bp as ResponseUsage, bq as RoomCreateBody, br as RoomQuery, bs as RoomRead, bt as RunProgress, bu as RunStep, bv as RunWaitingOn, bw as SSEEvent, bx as SSEStreamCallbacks, by as SSEStreamResult, bz as SSEStreamStartData, bC as ScopedTarget, bD as SendBack, bE as ShareRead, bF as ShareRole, bG as SkillSummary, bI as StepActionRequest, bJ as StepActivityEvent, bK as StepAssignee, bL as StepField, bO as StepKind, bP as StepPhase, bQ as StepSignal, bR as StepSignalWhen, bS as StepState, bT as StepStatus, bU as SubmitBackgroundQueryOptions, bV as SubscribeParams, bW as TAG_KINDS, bX as TagChange, bY as TagFieldDefinition, bZ as TagKind, b_ as TagKindField, b$ as TagKindSchema, c0 as TagLinks, c1 as TagListQuery, c2 as TagResponse, c3 as TaskPlan, c4 as TaskPlanStep, c5 as TimeSuggestion, c6 as TokenBudgetContext, c7 as UpdateConversationRequest, c8 as UpdateFactRequest, c9 as UpdateWorkflowRequest, cf as UsageBreakdown, cg as UserDailyUsageResponse, ch as UserInfo, ci as UserInputRequestEvent, cj as UserMessageEvent, ck as WebSocketAuthError, cl as WeeklyHoursSpec, cm as WorkStatus, cn as WorkflowAuthMode, co as WorkflowResponse, cp as WorkflowRunHistoryResponse, cq as WorkflowRunResponse, cr as WorkspaceContext, cs as WsConnection, ct as account, cu as agentconfig, cw as assistant, cx as authenticatedFetch, cy as bookPublicSlot, cz as buildCitationChunkData, cB as buildFactsContextTool, cC as buildRetrievalChunkTool, cD as buildRetrievalFullContextTool, cE as buildRetrievalTocTool, cF as calendar, cG as cancelPublicBooking, cH as chats, cI as connectWebSocket, cJ as connectWithReconnect, cK as consumeSSEStream, cL as contacts, cM as conversations, cN as countCitations, cO as createAuthenticatedClient, cQ as doctags, cR as documents, cS as facts, cT as files, cU as filterSkills, cV as formatAgentStepLabel, cW as formatFileSize, cX as formatGbp, cY as formatGbpPerMillionTokens, cZ as formatItemLabel, c$ as formatUserName, d0 as formatWorkspaceChoices, d5 as getErrorMessage, d6 as getPublicBookingPage, d7 as getRawWorkspaceKey, d8 as health, d9 as houseTemplates, db as identityErrorCode, da as identityVerification, dd as mail, de as notifications, df as parseSSEEvents, dg as parseSlashCommand, dh as parseSlashTokenInProgress, di as performPasswordLogin, dl as profile, dm as projects, dn as requireData, dp as requireOk, dq as resolveAuth, dr as resolveCitations, ds as resolveWorkspace, dt as responses, du as selectWorkspace, dv as selectWorkspaceById, dw as sessions, dx as settings, dz as splitAppPasswords, dA as streamSSE, dB as stripCitationMarkdown, dC as summarizeCitations, dD as tags, dF as usdToGbp, dG as work, dH as workflowSteps, dI as workflows, dJ as workspaces } from './browser-C48W4Ivd.js';
1
+ export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as AgentControlStateEvent, e as AgentStepDeltaEvent, f as AgentStepEvent, g as AppPassword, h as AppPasswordCreateBody, i as AppPasswordCreated, j as Arbi, k as ArbiApiError, l as ArbiError, m as ArbiErrorEvent, n as ArbiHostSession, o as ArbiOptions, q as ArtifactEvent, 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, C as CalDavConnectBody, z as CalDavProfile, D as CalendarAccount, E as CalendarAccountKind, F as CalendarCreateBody, G as CalendarEvent, H as CalendarKeys, I as CalendarRead, J as CalendarSettings, K as CalendarSettingsBody, L as CalendarUpdate, M as CalendarWindow, N as ChatAttachmentFile, O as ChatAttachmentInput, P as ChatCryptoContext, Q as ChatKeyRing, R as ChatKind, S as ChatMemberKey, T as ChatMemberResponse, U as ChatMessageResponse, V as ChatResponse, W as ChatSession, X as CitationSummary, Y as CitationToolSources, Z as CliConfig, _ as CliCredentials, $ as CommandDescriptor, a0 as ConfigStore, a1 as ConnectOptions, a2 as ConversationResponse, a3 as ConversationUsageResponse, a4 as CreateFactRequest, a5 as CreateFactsRequest, a6 as CreateWorkRequest, a7 as CreateWorkflowRequest, a8 as DEFAULT_AI_USD_PER_GBP, aa as DateTimeSpec, ac as DecryptedChatMessage, ad as DeferredInterjectionEvent, ae as DeploymentHouseTemplate, ag as DocumentAutomationAction, aj as DocumentSelector, am as EditScope, an as EventCreateBody, ao as EventPatchBody, ap as FLAT_TAG_KINDS, aq as FactResponse, ar as FactSearchRequest, as as FactSearchResponse, at as FeedCreateBody, au as FeedLevel, av as FindTimeParams, ax as FreeBusyEntry, ay as HolidayCountry, az as HouseTemplateCandidate, aA as IdentityErrorCode, aB as IdentityPurchase, aC as IdentityState, aD as IdentityStatus, aE as ImportResult, aF as InvitationRead, aG as LinkedRun, aI as ListEventsParams, aJ as ListFactsOptions, aM as MailDraftSSEEvent, aO as MessageMetadataPayload, aP as MessageQueuedEvent, aQ as OAuthAccountKind, aR as OutputTokensDetails, aS as OverlayItem, aT as OverlayLayerName, aU as ParsedSlashCommand, aV as PendingAuthResponse, aW as PersonKey, aX as PlanStepsError, aY as PlanWorkRequest, aZ as ProbeAnswerEvent, a_ as ProjectBudget, a$ as ProjectConversationUsageResponse, b0 as ProjectDetails, b1 as ProjectEventKind, b2 as ProjectEventResponse, b3 as ProjectInvoicesResponse, b4 as ProjectResponse, b5 as ProjectUpdateRequest, b6 as ProjectUsageResponse, b7 as PublicBookingError, b8 as PublicBookingPage, b9 as QueryOptions, ba as RaisedSignal, bb as ReconnectOptions, bc as ReconnectableWsConnection, bd as ResolvedCitation, bf as RespondParams, bg as RespondPartstat, bh as ResponseCompletedEvent, bi as ResponseContentPartAddedEvent, bj as ResponseCreatedEvent, bk as ResponseFailedEvent, bl as ResponseOutputItemAddedEvent, bm as ResponseOutputItemDoneEvent, bn as ResponseOutputTextDeltaEvent, bo as ResponseOutputTextDoneEvent, bp as ResponseUsage, bq as RoomCreateBody, br as RoomQuery, bs as RoomRead, bt as RunProgress, bu as RunStep, bv as RunWaitingOn, bw as SSEEvent, bx as SSEStreamCallbacks, by as SSEStreamResult, bz as SSEStreamStartData, bC as ScopedTarget, bD as SendBack, bE as ShareRead, bF as ShareRole, bG as SkillSummary, bH as SkippedFile, bI as StepActionRequest, bJ as StepActivityEvent, bK as StepAssignee, bL as StepField, bO as StepKind, bP as StepPhase, bQ as StepSignal, bR as StepSignalWhen, bS as StepState, bT as StepStatus, bU as SubmitBackgroundQueryOptions, bV as SubscribeParams, bW as TAG_KINDS, bX as TagChange, bY as TagFieldDefinition, bZ as TagKind, b_ as TagKindField, b$ as TagKindSchema, c0 as TagLinks, c1 as TagListQuery, c2 as TagResponse, c3 as TaskPlan, c4 as TaskPlanStep, c5 as TimeSuggestion, c6 as TokenBudgetContext, c7 as UpdateConversationRequest, c8 as UpdateFactRequest, c9 as UpdateWorkflowRequest, cd as UploadDocumentsOptions, ce as UploadOptions, cf as UploadResult, cg as UsageBreakdown, ch as UserDailyUsageResponse, ci as UserInfo, cj as UserInputRequestEvent, ck as UserMessageEvent, cl as WebSocketAuthError, cm as WeeklyHoursSpec, cn as WorkStatus, co as WorkflowAuthMode, cp as WorkflowResponse, cq as WorkflowRunHistoryResponse, cr as WorkflowRunResponse, cs as WorkspaceContext, ct as WsConnection, cu as account, cv as agentconfig, cx as assistant, cy as authenticatedFetch, cz as bookPublicSlot, cA as buildCitationChunkData, cC as buildFactsContextTool, cD as buildRetrievalChunkTool, cE as buildRetrievalFullContextTool, cF as buildRetrievalTocTool, cG as calendar, cH as cancelPublicBooking, cI as chats, cJ as connectWebSocket, cK as connectWithReconnect, cL as consumeSSEStream, cM as contacts, cN as conversations, cO as countCitations, cP as createAuthenticatedClient, cR as doctags, cS as documents, cT as facts, cU as files, cV as filterSkills, cW as formatAgentStepLabel, cX as formatFileSize, cY as formatGbp, cZ as formatGbpPerMillionTokens, c_ as formatItemLabel, d0 as formatUserName, d1 as formatWorkspaceChoices, d6 as getErrorMessage, d7 as getPublicBookingPage, d8 as getRawWorkspaceKey, d9 as health, da as houseTemplates, dc as identityErrorCode, db as identityVerification, de as mail, df as notifications, dg as parseSSEEvents, dh as parseSlashCommand, di as parseSlashTokenInProgress, dj as performPasswordLogin, dm as profile, dn as projects, dp as requireData, dq as requireOk, dr as resolveAuth, ds as resolveCitations, dt as resolveWorkspace, du as responses, dv as selectWorkspace, dw as selectWorkspaceById, dx as sessions, dy as settings, dA as splitAppPasswords, dB as streamSSE, dC as stripCitationMarkdown, dD as summarizeCitations, dE as tags, dG as usdToGbp, dH as work, dI as workflowSteps, dJ as workflows, dK as workspaces } from './browser-Cd9i8TIR.js';
2
2
  export { LoginProfile } from '@arbidocs/client';
package/dist/browser.js CHANGED
@@ -4365,7 +4365,9 @@ __export(documents_exports, {
4365
4365
  mimeFromName: () => mimeFromName,
4366
4366
  presignedPut: () => presignedPut,
4367
4367
  sanitizeFolderPath: () => sanitizeFolderPath,
4368
+ similarDocuments: () => similarDocuments,
4368
4369
  updateDocuments: () => updateDocuments,
4370
+ uploadDocuments: () => uploadDocuments,
4369
4371
  uploadDocumentsDirect: () => uploadDocumentsDirect,
4370
4372
  uploadFile: () => uploadFile,
4371
4373
  uploadFiles: () => uploadFiles,
@@ -4533,16 +4535,54 @@ async function updateDocuments(arbi, documents) {
4533
4535
  "Failed to update documents"
4534
4536
  );
4535
4537
  }
4536
- async function uploadUrl(arbi, urls, shared = false) {
4538
+ async function uploadUrl(arbi, urls, shared = false, configExtId) {
4537
4539
  return requireData(
4538
4540
  await arbi.fetch.POST("/v1/document/upload-url", {
4539
4541
  params: {
4540
- query: { urls, shared }
4542
+ query: { urls, shared, ...configExtId ? { config_ext_id: configExtId } : {} }
4541
4543
  }
4542
4544
  }),
4543
4545
  "Failed to upload from URLs"
4544
4546
  );
4545
4547
  }
4548
+ async function uploadDocuments(arbi, files, options = {}) {
4549
+ const query = {};
4550
+ if (options.shared !== void 0) query.shared = options.shared;
4551
+ if (options.folder) query.folder = sanitizeFolderPath(options.folder);
4552
+ if (options.configExtId) query.config_ext_id = options.configExtId;
4553
+ if (options.wpType) query.wp_type = options.wpType;
4554
+ if (options.versionOf) query.version_of = options.versionOf;
4555
+ if (options.tagExtId) query.tag_ext_id = options.tagExtId;
4556
+ if (options.workspaceExtId) query.workspace_ext_id = options.workspaceExtId;
4557
+ if (options.derivedFrom) {
4558
+ query.derived_from = options.derivedFrom.docId;
4559
+ query.derived_role = options.derivedFrom.role;
4560
+ }
4561
+ const result = await arbi.fetch.POST("/v1/document/upload", {
4562
+ params: { query },
4563
+ // The schema types the files as strings; they go as multipart parts.
4564
+ body: { files },
4565
+ bodySerializer: () => {
4566
+ const form = new FormData();
4567
+ for (const file of files) form.append("files", file);
4568
+ return form;
4569
+ }
4570
+ });
4571
+ return requireData(result, "Failed to upload documents");
4572
+ }
4573
+ async function similarDocuments(arbi, options = {}) {
4574
+ return requireData(
4575
+ await arbi.fetch.GET("/v1/document/similar", {
4576
+ params: {
4577
+ query: {
4578
+ ...options.threshold !== void 0 ? { threshold: options.threshold } : {},
4579
+ ...options.docId ? { doc_ext_id: options.docId } : {}
4580
+ }
4581
+ }
4582
+ }),
4583
+ "Failed to fetch similar documents"
4584
+ );
4585
+ }
4546
4586
  async function getParsedContent(auth, docId, stage, version) {
4547
4587
  const res = await authenticatedFetch({
4548
4588
  ...auth,
@@ -4967,15 +5007,17 @@ async function updateWorkspace(arbi, body) {
4967
5007
  async function listWorkspaceUsers(arbi) {
4968
5008
  return requireData(await arbi.fetch.GET("/v1/workspace/users"), "Failed to fetch workspace users");
4969
5009
  }
4970
- async function addWorkspaceUsers(arbi, emails, role = "collaborator", target) {
5010
+ async function addWorkspaceUsers(arbi, emails, role = "collaborator", target, confirmInvite = false) {
5011
+ const invite = confirmInvite ? { confirm_invite: true } : {};
4971
5012
  return requireData(
4972
5013
  await arbi.fetch.POST("/v1/workspace/users", {
4973
5014
  body: target ? {
4974
5015
  emails,
4975
5016
  role,
4976
5017
  workspace_ext_id: target.workspaceExtId,
4977
- workspace_key: target.workspaceKey
4978
- } : { emails, role }
5018
+ workspace_key: target.workspaceKey,
5019
+ ...invite
5020
+ } : { emails, role, ...invite }
4979
5021
  }),
4980
5022
  "Failed to add users"
4981
5023
  );
@@ -5584,10 +5626,15 @@ __export(doctags_exports, {
5584
5626
  removeDocTags: () => removeDocTags,
5585
5627
  updateDocTag: () => updateDocTag
5586
5628
  });
5587
- async function assignDocTags(arbi, tagId, docIds, note) {
5629
+ async function assignDocTags(arbi, tagId, docIds, note, citations) {
5588
5630
  return requireData(
5589
5631
  await arbi.fetch.POST("/v1/document/doctag", {
5590
- body: { tag_ext_id: tagId, doc_ext_ids: docIds, note: note ?? null }
5632
+ body: {
5633
+ tag_ext_id: tagId,
5634
+ doc_ext_ids: docIds,
5635
+ note: note ?? null,
5636
+ ...citations ? { citations } : {}
5637
+ }
5591
5638
  }),
5592
5639
  "Failed to create doctags"
5593
5640
  );
@@ -8829,7 +8876,14 @@ var Arbi = class {
8829
8876
  listUsers: () => listWorkspaceUsers(this.requireClient()),
8830
8877
  /** One page of a workspace's activity feed, newest first (see `getWorkspaceActivity`). */
8831
8878
  activity: (workspaceId, options) => getWorkspaceActivity(this.requireClient(), workspaceId, options),
8832
- addUsers: (emails, role) => addWorkspaceUsers(this.requireClient(), emails, role),
8879
+ /** Add users to the open workspace; `confirmInvite` also invites emails not on ARBI yet. */
8880
+ addUsers: (emails, role, options) => addWorkspaceUsers(
8881
+ this.requireClient(),
8882
+ emails,
8883
+ role,
8884
+ void 0,
8885
+ options?.confirmInvite
8886
+ ),
8833
8887
  /**
8834
8888
  * Grant users a temporary key scoped to ONE session (identified by its public key), for
8835
8889
  * example an agent's run session minted by `agents.authorize()`. Nothing standing is created:
@@ -8908,12 +8962,26 @@ var Arbi = class {
8908
8962
  get: (externalIds) => getDocuments(this.requireClient(), externalIds),
8909
8963
  /** Every version of a document, oldest first; `is_current` marks the current one. */
8910
8964
  versions: (docId) => listVersions(this.requireClient(), docId),
8965
+ /** Save a translation's current version as a new PDF document linked to its original. */
8966
+ finaliseTranslation: (docId) => finaliseTranslation(this.requireClient(), docId),
8911
8967
  delete: (externalIds) => deleteDocuments(this.requireClient(), externalIds),
8912
8968
  update: (documents) => updateDocuments(this.requireClient(), documents),
8913
- uploadUrl: (urls, shared) => {
8969
+ uploadUrl: (urls, options) => {
8914
8970
  this.requireWorkspace();
8915
- return uploadUrl(this.requireClient(), urls, shared);
8971
+ return uploadUrl(
8972
+ this.requireClient(),
8973
+ urls,
8974
+ options?.shared,
8975
+ options?.configExtId
8976
+ );
8916
8977
  },
8978
+ /**
8979
+ * Upload files in one request (the open workspace, or `options.workspaceExtId`): folder, tag,
8980
+ * sharing, config, a new version of a document.
8981
+ */
8982
+ upload: (files, options) => uploadDocuments(this.requireClient(), files, options),
8983
+ /** Near-duplicate pairs at or above `threshold` (or one document's, `docId`). */
8984
+ similar: (options) => similarDocuments(this.requireClient(), options),
8917
8985
  uploadFile: (fileData, fileName, options) => {
8918
8986
  this.requireWorkspace();
8919
8987
  return this.recovering(
@@ -9164,10 +9232,12 @@ var Arbi = class {
9164
9232
  };
9165
9233
  // ── Document Tags ─────────────────────────────────────────────────────
9166
9234
  doctags = {
9167
- assign: (tagId, docIds, note) => assignDocTags(this.requireClient(), tagId, docIds, note),
9235
+ /** Apply a tag to documents, with a note (a field's value) and the passages it cites. */
9236
+ assign: (tagId, docIds, note, citations) => assignDocTags(this.requireClient(), tagId, docIds, note, citations),
9168
9237
  remove: (tagId, docIds) => removeDocTags(this.requireClient(), tagId, docIds),
9169
9238
  update: (tagId, docId, updates) => updateDocTag(this.requireClient(), tagId, docId, updates),
9170
- generate: (tagIds, docIds) => generateDocTags(this.requireClient(), tagIds, docIds)
9239
+ /** Fill the tags' values on the documents with AI (`overwrite`: also where already set). */
9240
+ generate: (tagIds, docIds, options) => generateDocTags(this.requireClient(), tagIds, docIds, options)
9171
9241
  };
9172
9242
  // ── Contacts ──────────────────────────────────────────────────────────
9173
9243
  // A card is sealed under its address book's key, which the calendar key bridge carries: without