@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.
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { a0 as ConfigStore, Z as CliConfig, _ as CliCredentials, W as ChatSession, bH as SkippedFile, ce as UploadResult, t as AuthHeaders, ca as UploadBatchResult, cd as UploadOptions, cb as UploadDirectOptions, cc as UploadDirectResult, bB as SUPPORTED_EXTENSIONS, aL as MailAttachment, P as ChatCryptoContext } from './browser-C48W4Ivd.cjs';
2
- export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, f as AgentStepEvent, g as AppPassword, h as AppPasswordCreateBody, i as AppPasswordCreated, j as Arbi, k as ArbiApiError, l as ArbiError, n as ArbiHostSession, o as ArbiOptions, p as ArbiSessionExpiredError, q as ArtifactEvent, r as AttendeeRead, s as AuthContext, 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, Q as ChatKeyRing, R as ChatKind, S as ChatMemberKey, T as ChatMemberResponse, U as ChatMessageResponse, V as ChatResponse, X as CitationSummary, Y as CitationToolSources, $ as CommandDescriptor, a1 as ConnectOptions, a2 as ConversationResponse, a3 as ConversationUsageResponse, a6 as CreateWorkRequest, a7 as CreateWorkflowRequest, a8 as DEFAULT_AI_USD_PER_GBP, a9 as DOC_TERMINAL_STATUSES, aa as DateTimeSpec, ab as DecryptedChat, ac as DecryptedChatMessage, ae as DeploymentHouseTemplate, af as DocNameMap, ag as DocumentAutomationAction, ah as DocumentListFields, ai as DocumentListOrder, aj as DocumentSelector, ak as DocumentWaiter, al as DocumentWaiterOptions, am as EditScope, an as EventCreateBody, ao as EventPatchBody, ap as FLAT_TAG_KINDS, at as FeedCreateBody, au as FeedLevel, av as FindTimeParams, aw as FormattedWsMessage, 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, aH as ListAllOptions, aI as ListEventsParams, aK as ListPaginatedOptions, aM as MailDraftSSEEvent, aN as MessageLevel, 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, 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, be as ResolvedRecipient, 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, bA as STEP_FIELD_OPTION_TONES, 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, bM as StepFieldOption, bN as StepFieldOptionTone, 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, 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, cv as agents, cw as assistant, cx as authenticatedFetch, cy as bookPublicSlot, cz as buildCitationChunkData, cA as buildDocNameMap, 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, cP as createDocumentWaiter, 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 formatStreamSummary, c$ as formatUserName, d0 as formatWorkspaceChoices, d1 as formatWsMessage, d2 as generateEncryptedWorkspaceKey, d3 as generateNewWorkspaceKey, d4 as getErrorCode, d5 as getErrorMessage, d6 as getPublicBookingPage, d7 as getRawWorkspaceKey, d8 as health, d9 as houseTemplates, db as identityErrorCode, da as identityVerification, dc as isSharedSkill, dd as mail, de as notifications, df as parseSSEEvents, dg as parseSlashCommand, dh as parseSlashTokenInProgress, di as performPasswordLogin, dj as performSigningKeyLogin, dk as performSsoDeviceFlowLogin, 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, dy as signatureRequests, dz as splitAppPasswords, dA as streamSSE, dB as stripCitationMarkdown, dC as summarizeCitations, dD as tags, dE as uploadSkill, dF as usdToGbp, dG as work, dH as workflowSteps, dI as workflows, dJ as workspaces } from './browser-C48W4Ivd.cjs';
1
+ import { a0 as ConfigStore, Z as CliConfig, _ as CliCredentials, W as ChatSession, bH as SkippedFile, cf as UploadResult, t as AuthHeaders, ca as UploadBatchResult, ce as UploadOptions, cb as UploadDirectOptions, cc as UploadDirectResult, bB as SUPPORTED_EXTENSIONS, aL as MailAttachment, P as ChatCryptoContext } from './browser-Cd9i8TIR.cjs';
2
+ export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, f as AgentStepEvent, g as AppPassword, h as AppPasswordCreateBody, i as AppPasswordCreated, j as Arbi, k as ArbiApiError, l as ArbiError, n as ArbiHostSession, o as ArbiOptions, p as ArbiSessionExpiredError, q as ArtifactEvent, r as AttendeeRead, s as AuthContext, 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, Q as ChatKeyRing, R as ChatKind, S as ChatMemberKey, T as ChatMemberResponse, U as ChatMessageResponse, V as ChatResponse, X as CitationSummary, Y as CitationToolSources, $ as CommandDescriptor, a1 as ConnectOptions, a2 as ConversationResponse, a3 as ConversationUsageResponse, a6 as CreateWorkRequest, a7 as CreateWorkflowRequest, a8 as DEFAULT_AI_USD_PER_GBP, a9 as DOC_TERMINAL_STATUSES, aa as DateTimeSpec, ab as DecryptedChat, ac as DecryptedChatMessage, ae as DeploymentHouseTemplate, af as DocNameMap, ag as DocumentAutomationAction, ah as DocumentListFields, ai as DocumentListOrder, aj as DocumentSelector, ak as DocumentWaiter, al as DocumentWaiterOptions, am as EditScope, an as EventCreateBody, ao as EventPatchBody, ap as FLAT_TAG_KINDS, at as FeedCreateBody, au as FeedLevel, av as FindTimeParams, aw as FormattedWsMessage, 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, aH as ListAllOptions, aI as ListEventsParams, aK as ListPaginatedOptions, aM as MailDraftSSEEvent, aN as MessageLevel, 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, 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, be as ResolvedRecipient, 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, bA as STEP_FIELD_OPTION_TONES, 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, bM as StepFieldOption, bN as StepFieldOptionTone, 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, c9 as UpdateWorkflowRequest, cd as UploadDocumentsOptions, 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, cw as agents, cx as assistant, cy as authenticatedFetch, cz as bookPublicSlot, cA as buildCitationChunkData, cB as buildDocNameMap, 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, cQ as createDocumentWaiter, 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, c$ as formatStreamSummary, d0 as formatUserName, d1 as formatWorkspaceChoices, d2 as formatWsMessage, d3 as generateEncryptedWorkspaceKey, d4 as generateNewWorkspaceKey, d5 as getErrorCode, d6 as getErrorMessage, d7 as getPublicBookingPage, d8 as getRawWorkspaceKey, d9 as health, da as houseTemplates, dc as identityErrorCode, db as identityVerification, dd as isSharedSkill, de as mail, df as notifications, dg as parseSSEEvents, dh as parseSlashCommand, di as parseSlashTokenInProgress, dj as performPasswordLogin, dk as performSigningKeyLogin, dl as performSsoDeviceFlowLogin, 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, dz as signatureRequests, dA as splitAppPasswords, dB as streamSSE, dC as stripCitationMarkdown, dD as summarizeCitations, dE as tags, dF as uploadSkill, dG as usdToGbp, dH as work, dI as workflowSteps, dJ as workflows, dK as workspaces } from './browser-Cd9i8TIR.cjs';
3
3
  import { SessionStorageProvider, ArbiClient, components } from '@arbidocs/client';
4
4
  export { LoginProfile } from '@arbidocs/client';
5
5
 
@@ -632,4 +632,4 @@ declare namespace index {
632
632
  export { index_ClaudeOrchestrator as ClaudeOrchestrator, type index_ClaudeOrchestratorOptions as ClaudeOrchestratorOptions, type index_DmListener as DmListener, type index_DmListenerOptions as DmListenerOptions, index_OpenClawOrchestrator as OpenClawOrchestrator, type index_OpenClawOrchestratorOptions as OpenClawOrchestratorOptions, type index_Orchestrator as Orchestrator, type index_PromptContext as PromptContext, index_startDmListener as startDmListener };
633
633
  }
634
634
 
635
- export { AuthHeaders, ChatCryptoContext, ChatSession, ClaudeOrchestrator, type ClaudeOrchestratorOptions, CliConfig, CliCredentials, ConfigStore, type DmListener, type DmListenerOptions, FileConfigStore, type FirmPoolResponse, OpenClawOrchestrator, type OpenClawOrchestratorOptions, type Orchestrator, type PromptContext, deviceFlow, documentsNode, firm, index as listen, mailNode, startDmListener };
635
+ export { AuthHeaders, ChatCryptoContext, ChatSession, ClaudeOrchestrator, type ClaudeOrchestratorOptions, CliConfig, CliCredentials, ConfigStore, type DmListener, type DmListenerOptions, FileConfigStore, type FirmPoolResponse, OpenClawOrchestrator, type OpenClawOrchestratorOptions, type Orchestrator, type PromptContext, SkippedFile, UploadOptions, UploadResult, deviceFlow, documentsNode, firm, index as listen, mailNode, startDmListener };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a0 as ConfigStore, Z as CliConfig, _ as CliCredentials, W as ChatSession, bH as SkippedFile, ce as UploadResult, t as AuthHeaders, ca as UploadBatchResult, cd as UploadOptions, cb as UploadDirectOptions, cc as UploadDirectResult, bB as SUPPORTED_EXTENSIONS, aL as MailAttachment, P as ChatCryptoContext } from './browser-C48W4Ivd.js';
2
- export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, f as AgentStepEvent, g as AppPassword, h as AppPasswordCreateBody, i as AppPasswordCreated, j as Arbi, k as ArbiApiError, l as ArbiError, n as ArbiHostSession, o as ArbiOptions, p as ArbiSessionExpiredError, q as ArtifactEvent, r as AttendeeRead, s as AuthContext, 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, Q as ChatKeyRing, R as ChatKind, S as ChatMemberKey, T as ChatMemberResponse, U as ChatMessageResponse, V as ChatResponse, X as CitationSummary, Y as CitationToolSources, $ as CommandDescriptor, a1 as ConnectOptions, a2 as ConversationResponse, a3 as ConversationUsageResponse, a6 as CreateWorkRequest, a7 as CreateWorkflowRequest, a8 as DEFAULT_AI_USD_PER_GBP, a9 as DOC_TERMINAL_STATUSES, aa as DateTimeSpec, ab as DecryptedChat, ac as DecryptedChatMessage, ae as DeploymentHouseTemplate, af as DocNameMap, ag as DocumentAutomationAction, ah as DocumentListFields, ai as DocumentListOrder, aj as DocumentSelector, ak as DocumentWaiter, al as DocumentWaiterOptions, am as EditScope, an as EventCreateBody, ao as EventPatchBody, ap as FLAT_TAG_KINDS, at as FeedCreateBody, au as FeedLevel, av as FindTimeParams, aw as FormattedWsMessage, 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, aH as ListAllOptions, aI as ListEventsParams, aK as ListPaginatedOptions, aM as MailDraftSSEEvent, aN as MessageLevel, 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, 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, be as ResolvedRecipient, 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, bA as STEP_FIELD_OPTION_TONES, 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, bM as StepFieldOption, bN as StepFieldOptionTone, 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, 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, cv as agents, cw as assistant, cx as authenticatedFetch, cy as bookPublicSlot, cz as buildCitationChunkData, cA as buildDocNameMap, 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, cP as createDocumentWaiter, 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 formatStreamSummary, c$ as formatUserName, d0 as formatWorkspaceChoices, d1 as formatWsMessage, d2 as generateEncryptedWorkspaceKey, d3 as generateNewWorkspaceKey, d4 as getErrorCode, d5 as getErrorMessage, d6 as getPublicBookingPage, d7 as getRawWorkspaceKey, d8 as health, d9 as houseTemplates, db as identityErrorCode, da as identityVerification, dc as isSharedSkill, dd as mail, de as notifications, df as parseSSEEvents, dg as parseSlashCommand, dh as parseSlashTokenInProgress, di as performPasswordLogin, dj as performSigningKeyLogin, dk as performSsoDeviceFlowLogin, 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, dy as signatureRequests, dz as splitAppPasswords, dA as streamSSE, dB as stripCitationMarkdown, dC as summarizeCitations, dD as tags, dE as uploadSkill, dF as usdToGbp, dG as work, dH as workflowSteps, dI as workflows, dJ as workspaces } from './browser-C48W4Ivd.js';
1
+ import { a0 as ConfigStore, Z as CliConfig, _ as CliCredentials, W as ChatSession, bH as SkippedFile, cf as UploadResult, t as AuthHeaders, ca as UploadBatchResult, ce as UploadOptions, cb as UploadDirectOptions, cc as UploadDirectResult, bB as SUPPORTED_EXTENSIONS, aL as MailAttachment, P as ChatCryptoContext } from './browser-Cd9i8TIR.js';
2
+ export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, f as AgentStepEvent, g as AppPassword, h as AppPasswordCreateBody, i as AppPasswordCreated, j as Arbi, k as ArbiApiError, l as ArbiError, n as ArbiHostSession, o as ArbiOptions, p as ArbiSessionExpiredError, q as ArtifactEvent, r as AttendeeRead, s as AuthContext, 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, Q as ChatKeyRing, R as ChatKind, S as ChatMemberKey, T as ChatMemberResponse, U as ChatMessageResponse, V as ChatResponse, X as CitationSummary, Y as CitationToolSources, $ as CommandDescriptor, a1 as ConnectOptions, a2 as ConversationResponse, a3 as ConversationUsageResponse, a6 as CreateWorkRequest, a7 as CreateWorkflowRequest, a8 as DEFAULT_AI_USD_PER_GBP, a9 as DOC_TERMINAL_STATUSES, aa as DateTimeSpec, ab as DecryptedChat, ac as DecryptedChatMessage, ae as DeploymentHouseTemplate, af as DocNameMap, ag as DocumentAutomationAction, ah as DocumentListFields, ai as DocumentListOrder, aj as DocumentSelector, ak as DocumentWaiter, al as DocumentWaiterOptions, am as EditScope, an as EventCreateBody, ao as EventPatchBody, ap as FLAT_TAG_KINDS, at as FeedCreateBody, au as FeedLevel, av as FindTimeParams, aw as FormattedWsMessage, 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, aH as ListAllOptions, aI as ListEventsParams, aK as ListPaginatedOptions, aM as MailDraftSSEEvent, aN as MessageLevel, 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, 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, be as ResolvedRecipient, 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, bA as STEP_FIELD_OPTION_TONES, 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, bM as StepFieldOption, bN as StepFieldOptionTone, 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, c9 as UpdateWorkflowRequest, cd as UploadDocumentsOptions, 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, cw as agents, cx as assistant, cy as authenticatedFetch, cz as bookPublicSlot, cA as buildCitationChunkData, cB as buildDocNameMap, 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, cQ as createDocumentWaiter, 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, c$ as formatStreamSummary, d0 as formatUserName, d1 as formatWorkspaceChoices, d2 as formatWsMessage, d3 as generateEncryptedWorkspaceKey, d4 as generateNewWorkspaceKey, d5 as getErrorCode, d6 as getErrorMessage, d7 as getPublicBookingPage, d8 as getRawWorkspaceKey, d9 as health, da as houseTemplates, dc as identityErrorCode, db as identityVerification, dd as isSharedSkill, de as mail, df as notifications, dg as parseSSEEvents, dh as parseSlashCommand, di as parseSlashTokenInProgress, dj as performPasswordLogin, dk as performSigningKeyLogin, dl as performSsoDeviceFlowLogin, 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, dz as signatureRequests, dA as splitAppPasswords, dB as streamSSE, dC as stripCitationMarkdown, dD as summarizeCitations, dE as tags, dF as uploadSkill, dG as usdToGbp, dH as work, dI as workflowSteps, dJ as workflows, dK as workspaces } from './browser-Cd9i8TIR.js';
3
3
  import { SessionStorageProvider, ArbiClient, components } from '@arbidocs/client';
4
4
  export { LoginProfile } from '@arbidocs/client';
5
5
 
@@ -632,4 +632,4 @@ declare namespace index {
632
632
  export { index_ClaudeOrchestrator as ClaudeOrchestrator, type index_ClaudeOrchestratorOptions as ClaudeOrchestratorOptions, type index_DmListener as DmListener, type index_DmListenerOptions as DmListenerOptions, index_OpenClawOrchestrator as OpenClawOrchestrator, type index_OpenClawOrchestratorOptions as OpenClawOrchestratorOptions, type index_Orchestrator as Orchestrator, type index_PromptContext as PromptContext, index_startDmListener as startDmListener };
633
633
  }
634
634
 
635
- export { AuthHeaders, ChatCryptoContext, ChatSession, ClaudeOrchestrator, type ClaudeOrchestratorOptions, CliConfig, CliCredentials, ConfigStore, type DmListener, type DmListenerOptions, FileConfigStore, type FirmPoolResponse, OpenClawOrchestrator, type OpenClawOrchestratorOptions, type Orchestrator, type PromptContext, deviceFlow, documentsNode, firm, index as listen, mailNode, startDmListener };
635
+ export { AuthHeaders, ChatCryptoContext, ChatSession, ClaudeOrchestrator, type ClaudeOrchestratorOptions, CliConfig, CliCredentials, ConfigStore, type DmListener, type DmListenerOptions, FileConfigStore, type FirmPoolResponse, OpenClawOrchestrator, type OpenClawOrchestratorOptions, type Orchestrator, type PromptContext, SkippedFile, UploadOptions, UploadResult, deviceFlow, documentsNode, firm, index as listen, mailNode, startDmListener };
package/dist/index.js CHANGED
@@ -4913,7 +4913,9 @@ __export(documents_exports, {
4913
4913
  mimeFromName: () => mimeFromName,
4914
4914
  presignedPut: () => presignedPut,
4915
4915
  sanitizeFolderPath: () => sanitizeFolderPath,
4916
+ similarDocuments: () => similarDocuments,
4916
4917
  updateDocuments: () => updateDocuments,
4918
+ uploadDocuments: () => uploadDocuments,
4917
4919
  uploadDocumentsDirect: () => uploadDocumentsDirect,
4918
4920
  uploadFile: () => uploadFile,
4919
4921
  uploadFiles: () => uploadFiles,
@@ -5081,16 +5083,54 @@ async function updateDocuments(arbi, documents) {
5081
5083
  "Failed to update documents"
5082
5084
  );
5083
5085
  }
5084
- async function uploadUrl(arbi, urls, shared = false) {
5086
+ async function uploadUrl(arbi, urls, shared = false, configExtId) {
5085
5087
  return requireData(
5086
5088
  await arbi.fetch.POST("/v1/document/upload-url", {
5087
5089
  params: {
5088
- query: { urls, shared }
5090
+ query: { urls, shared, ...configExtId ? { config_ext_id: configExtId } : {} }
5089
5091
  }
5090
5092
  }),
5091
5093
  "Failed to upload from URLs"
5092
5094
  );
5093
5095
  }
5096
+ async function uploadDocuments(arbi, files, options = {}) {
5097
+ const query = {};
5098
+ if (options.shared !== void 0) query.shared = options.shared;
5099
+ if (options.folder) query.folder = sanitizeFolderPath(options.folder);
5100
+ if (options.configExtId) query.config_ext_id = options.configExtId;
5101
+ if (options.wpType) query.wp_type = options.wpType;
5102
+ if (options.versionOf) query.version_of = options.versionOf;
5103
+ if (options.tagExtId) query.tag_ext_id = options.tagExtId;
5104
+ if (options.workspaceExtId) query.workspace_ext_id = options.workspaceExtId;
5105
+ if (options.derivedFrom) {
5106
+ query.derived_from = options.derivedFrom.docId;
5107
+ query.derived_role = options.derivedFrom.role;
5108
+ }
5109
+ const result = await arbi.fetch.POST("/v1/document/upload", {
5110
+ params: { query },
5111
+ // The schema types the files as strings; they go as multipart parts.
5112
+ body: { files },
5113
+ bodySerializer: () => {
5114
+ const form = new FormData();
5115
+ for (const file of files) form.append("files", file);
5116
+ return form;
5117
+ }
5118
+ });
5119
+ return requireData(result, "Failed to upload documents");
5120
+ }
5121
+ async function similarDocuments(arbi, options = {}) {
5122
+ return requireData(
5123
+ await arbi.fetch.GET("/v1/document/similar", {
5124
+ params: {
5125
+ query: {
5126
+ ...options.threshold !== void 0 ? { threshold: options.threshold } : {},
5127
+ ...options.docId ? { doc_ext_id: options.docId } : {}
5128
+ }
5129
+ }
5130
+ }),
5131
+ "Failed to fetch similar documents"
5132
+ );
5133
+ }
5094
5134
  async function getParsedContent(auth, docId, stage, version) {
5095
5135
  const res = await authenticatedFetch({
5096
5136
  ...auth,
@@ -5536,15 +5576,17 @@ async function updateWorkspace(arbi, body) {
5536
5576
  async function listWorkspaceUsers(arbi) {
5537
5577
  return requireData(await arbi.fetch.GET("/v1/workspace/users"), "Failed to fetch workspace users");
5538
5578
  }
5539
- async function addWorkspaceUsers(arbi, emails, role = "collaborator", target) {
5579
+ async function addWorkspaceUsers(arbi, emails, role = "collaborator", target, confirmInvite = false) {
5580
+ const invite = confirmInvite ? { confirm_invite: true } : {};
5540
5581
  return requireData(
5541
5582
  await arbi.fetch.POST("/v1/workspace/users", {
5542
5583
  body: target ? {
5543
5584
  emails,
5544
5585
  role,
5545
5586
  workspace_ext_id: target.workspaceExtId,
5546
- workspace_key: target.workspaceKey
5547
- } : { emails, role }
5587
+ workspace_key: target.workspaceKey,
5588
+ ...invite
5589
+ } : { emails, role, ...invite }
5548
5590
  }),
5549
5591
  "Failed to add users"
5550
5592
  );
@@ -6153,10 +6195,15 @@ __export(doctags_exports, {
6153
6195
  removeDocTags: () => removeDocTags,
6154
6196
  updateDocTag: () => updateDocTag
6155
6197
  });
6156
- async function assignDocTags(arbi, tagId, docIds, note) {
6198
+ async function assignDocTags(arbi, tagId, docIds, note, citations) {
6157
6199
  return requireData(
6158
6200
  await arbi.fetch.POST("/v1/document/doctag", {
6159
- body: { tag_ext_id: tagId, doc_ext_ids: docIds, note: note ?? null }
6201
+ body: {
6202
+ tag_ext_id: tagId,
6203
+ doc_ext_ids: docIds,
6204
+ note: note ?? null,
6205
+ ...citations ? { citations } : {}
6206
+ }
6160
6207
  }),
6161
6208
  "Failed to create doctags"
6162
6209
  );
@@ -9419,7 +9466,14 @@ var Arbi = class {
9419
9466
  listUsers: () => listWorkspaceUsers(this.requireClient()),
9420
9467
  /** One page of a workspace's activity feed, newest first (see `getWorkspaceActivity`). */
9421
9468
  activity: (workspaceId, options) => getWorkspaceActivity(this.requireClient(), workspaceId, options),
9422
- addUsers: (emails, role) => addWorkspaceUsers(this.requireClient(), emails, role),
9469
+ /** Add users to the open workspace; `confirmInvite` also invites emails not on ARBI yet. */
9470
+ addUsers: (emails, role, options) => addWorkspaceUsers(
9471
+ this.requireClient(),
9472
+ emails,
9473
+ role,
9474
+ void 0,
9475
+ options?.confirmInvite
9476
+ ),
9423
9477
  /**
9424
9478
  * Grant users a temporary key scoped to ONE session (identified by its public key), for
9425
9479
  * example an agent's run session minted by `agents.authorize()`. Nothing standing is created:
@@ -9498,12 +9552,26 @@ var Arbi = class {
9498
9552
  get: (externalIds) => getDocuments(this.requireClient(), externalIds),
9499
9553
  /** Every version of a document, oldest first; `is_current` marks the current one. */
9500
9554
  versions: (docId) => listVersions(this.requireClient(), docId),
9555
+ /** Save a translation's current version as a new PDF document linked to its original. */
9556
+ finaliseTranslation: (docId) => finaliseTranslation(this.requireClient(), docId),
9501
9557
  delete: (externalIds) => deleteDocuments(this.requireClient(), externalIds),
9502
9558
  update: (documents) => updateDocuments(this.requireClient(), documents),
9503
- uploadUrl: (urls, shared) => {
9559
+ uploadUrl: (urls, options) => {
9504
9560
  this.requireWorkspace();
9505
- return uploadUrl(this.requireClient(), urls, shared);
9561
+ return uploadUrl(
9562
+ this.requireClient(),
9563
+ urls,
9564
+ options?.shared,
9565
+ options?.configExtId
9566
+ );
9506
9567
  },
9568
+ /**
9569
+ * Upload files in one request (the open workspace, or `options.workspaceExtId`): folder, tag,
9570
+ * sharing, config, a new version of a document.
9571
+ */
9572
+ upload: (files, options) => uploadDocuments(this.requireClient(), files, options),
9573
+ /** Near-duplicate pairs at or above `threshold` (or one document's, `docId`). */
9574
+ similar: (options) => similarDocuments(this.requireClient(), options),
9507
9575
  uploadFile: (fileData, fileName, options) => {
9508
9576
  this.requireWorkspace();
9509
9577
  return this.recovering(
@@ -9754,10 +9822,12 @@ var Arbi = class {
9754
9822
  };
9755
9823
  // ── Document Tags ─────────────────────────────────────────────────────
9756
9824
  doctags = {
9757
- assign: (tagId, docIds, note) => assignDocTags(this.requireClient(), tagId, docIds, note),
9825
+ /** Apply a tag to documents, with a note (a field's value) and the passages it cites. */
9826
+ assign: (tagId, docIds, note, citations) => assignDocTags(this.requireClient(), tagId, docIds, note, citations),
9758
9827
  remove: (tagId, docIds) => removeDocTags(this.requireClient(), tagId, docIds),
9759
9828
  update: (tagId, docId, updates) => updateDocTag(this.requireClient(), tagId, docId, updates),
9760
- generate: (tagIds, docIds) => generateDocTags(this.requireClient(), tagIds, docIds)
9829
+ /** Fill the tags' values on the documents with AI (`overwrite`: also where already set). */
9830
+ generate: (tagIds, docIds, options) => generateDocTags(this.requireClient(), tagIds, docIds, options)
9761
9831
  };
9762
9832
  // ── Contacts ──────────────────────────────────────────────────────────
9763
9833
  // A card is sealed under its address book's key, which the calendar key bridge carries: without