@arbidocs/sdk 0.4.143 → 0.4.145
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-C48W4Ivd.d.cts → browser-BUKI5Mtb.d.cts} +79 -7
- package/dist/{browser-C48W4Ivd.d.ts → browser-BUKI5Mtb.d.ts} +79 -7
- package/dist/browser.cjs +69 -8
- 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 +69 -8
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +69 -8
- 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 +69 -8
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
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,
|
|
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,
|
|
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-BUKI5Mtb.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-BUKI5Mtb.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,
|
|
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,
|
|
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-BUKI5Mtb.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-BUKI5Mtb.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,
|
|
@@ -6153,10 +6193,15 @@ __export(doctags_exports, {
|
|
|
6153
6193
|
removeDocTags: () => removeDocTags,
|
|
6154
6194
|
updateDocTag: () => updateDocTag
|
|
6155
6195
|
});
|
|
6156
|
-
async function assignDocTags(arbi, tagId, docIds, note) {
|
|
6196
|
+
async function assignDocTags(arbi, tagId, docIds, note, citations) {
|
|
6157
6197
|
return requireData(
|
|
6158
6198
|
await arbi.fetch.POST("/v1/document/doctag", {
|
|
6159
|
-
body: {
|
|
6199
|
+
body: {
|
|
6200
|
+
tag_ext_id: tagId,
|
|
6201
|
+
doc_ext_ids: docIds,
|
|
6202
|
+
note: note ?? null,
|
|
6203
|
+
...citations ? { citations } : {}
|
|
6204
|
+
}
|
|
6160
6205
|
}),
|
|
6161
6206
|
"Failed to create doctags"
|
|
6162
6207
|
);
|
|
@@ -9498,12 +9543,26 @@ var Arbi = class {
|
|
|
9498
9543
|
get: (externalIds) => getDocuments(this.requireClient(), externalIds),
|
|
9499
9544
|
/** Every version of a document, oldest first; `is_current` marks the current one. */
|
|
9500
9545
|
versions: (docId) => listVersions(this.requireClient(), docId),
|
|
9546
|
+
/** Save a translation's current version as a new PDF document linked to its original. */
|
|
9547
|
+
finaliseTranslation: (docId) => finaliseTranslation(this.requireClient(), docId),
|
|
9501
9548
|
delete: (externalIds) => deleteDocuments(this.requireClient(), externalIds),
|
|
9502
9549
|
update: (documents) => updateDocuments(this.requireClient(), documents),
|
|
9503
|
-
uploadUrl: (urls,
|
|
9550
|
+
uploadUrl: (urls, options) => {
|
|
9504
9551
|
this.requireWorkspace();
|
|
9505
|
-
return uploadUrl(
|
|
9552
|
+
return uploadUrl(
|
|
9553
|
+
this.requireClient(),
|
|
9554
|
+
urls,
|
|
9555
|
+
options?.shared,
|
|
9556
|
+
options?.configExtId
|
|
9557
|
+
);
|
|
9506
9558
|
},
|
|
9559
|
+
/**
|
|
9560
|
+
* Upload files in one request (the open workspace, or `options.workspaceExtId`): folder, tag,
|
|
9561
|
+
* sharing, config, a new version of a document.
|
|
9562
|
+
*/
|
|
9563
|
+
upload: (files, options) => uploadDocuments(this.requireClient(), files, options),
|
|
9564
|
+
/** Near-duplicate pairs at or above `threshold` (or one document's, `docId`). */
|
|
9565
|
+
similar: (options) => similarDocuments(this.requireClient(), options),
|
|
9507
9566
|
uploadFile: (fileData, fileName, options) => {
|
|
9508
9567
|
this.requireWorkspace();
|
|
9509
9568
|
return this.recovering(
|
|
@@ -9754,10 +9813,12 @@ var Arbi = class {
|
|
|
9754
9813
|
};
|
|
9755
9814
|
// ── Document Tags ─────────────────────────────────────────────────────
|
|
9756
9815
|
doctags = {
|
|
9757
|
-
|
|
9816
|
+
/** Apply a tag to documents, with a note (a field's value) and the passages it cites. */
|
|
9817
|
+
assign: (tagId, docIds, note, citations) => assignDocTags(this.requireClient(), tagId, docIds, note, citations),
|
|
9758
9818
|
remove: (tagId, docIds) => removeDocTags(this.requireClient(), tagId, docIds),
|
|
9759
9819
|
update: (tagId, docId, updates) => updateDocTag(this.requireClient(), tagId, docId, updates),
|
|
9760
|
-
|
|
9820
|
+
/** Fill the tags' values on the documents with AI (`overwrite`: also where already set). */
|
|
9821
|
+
generate: (tagIds, docIds, options) => generateDocTags(this.requireClient(), tagIds, docIds, options)
|
|
9761
9822
|
};
|
|
9762
9823
|
// ── Contacts ──────────────────────────────────────────────────────────
|
|
9763
9824
|
// A card is sealed under its address book's key, which the calendar key bridge carries: without
|