@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/browser.d.cts
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
|
|
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-BUKI5Mtb.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
|
|
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-BUKI5Mtb.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,
|
|
@@ -5584,10 +5624,15 @@ __export(doctags_exports, {
|
|
|
5584
5624
|
removeDocTags: () => removeDocTags,
|
|
5585
5625
|
updateDocTag: () => updateDocTag
|
|
5586
5626
|
});
|
|
5587
|
-
async function assignDocTags(arbi, tagId, docIds, note) {
|
|
5627
|
+
async function assignDocTags(arbi, tagId, docIds, note, citations) {
|
|
5588
5628
|
return requireData(
|
|
5589
5629
|
await arbi.fetch.POST("/v1/document/doctag", {
|
|
5590
|
-
body: {
|
|
5630
|
+
body: {
|
|
5631
|
+
tag_ext_id: tagId,
|
|
5632
|
+
doc_ext_ids: docIds,
|
|
5633
|
+
note: note ?? null,
|
|
5634
|
+
...citations ? { citations } : {}
|
|
5635
|
+
}
|
|
5591
5636
|
}),
|
|
5592
5637
|
"Failed to create doctags"
|
|
5593
5638
|
);
|
|
@@ -8908,12 +8953,26 @@ var Arbi = class {
|
|
|
8908
8953
|
get: (externalIds) => getDocuments(this.requireClient(), externalIds),
|
|
8909
8954
|
/** Every version of a document, oldest first; `is_current` marks the current one. */
|
|
8910
8955
|
versions: (docId) => listVersions(this.requireClient(), docId),
|
|
8956
|
+
/** Save a translation's current version as a new PDF document linked to its original. */
|
|
8957
|
+
finaliseTranslation: (docId) => finaliseTranslation(this.requireClient(), docId),
|
|
8911
8958
|
delete: (externalIds) => deleteDocuments(this.requireClient(), externalIds),
|
|
8912
8959
|
update: (documents) => updateDocuments(this.requireClient(), documents),
|
|
8913
|
-
uploadUrl: (urls,
|
|
8960
|
+
uploadUrl: (urls, options) => {
|
|
8914
8961
|
this.requireWorkspace();
|
|
8915
|
-
return uploadUrl(
|
|
8962
|
+
return uploadUrl(
|
|
8963
|
+
this.requireClient(),
|
|
8964
|
+
urls,
|
|
8965
|
+
options?.shared,
|
|
8966
|
+
options?.configExtId
|
|
8967
|
+
);
|
|
8916
8968
|
},
|
|
8969
|
+
/**
|
|
8970
|
+
* Upload files in one request (the open workspace, or `options.workspaceExtId`): folder, tag,
|
|
8971
|
+
* sharing, config, a new version of a document.
|
|
8972
|
+
*/
|
|
8973
|
+
upload: (files, options) => uploadDocuments(this.requireClient(), files, options),
|
|
8974
|
+
/** Near-duplicate pairs at or above `threshold` (or one document's, `docId`). */
|
|
8975
|
+
similar: (options) => similarDocuments(this.requireClient(), options),
|
|
8917
8976
|
uploadFile: (fileData, fileName, options) => {
|
|
8918
8977
|
this.requireWorkspace();
|
|
8919
8978
|
return this.recovering(
|
|
@@ -9164,10 +9223,12 @@ var Arbi = class {
|
|
|
9164
9223
|
};
|
|
9165
9224
|
// ── Document Tags ─────────────────────────────────────────────────────
|
|
9166
9225
|
doctags = {
|
|
9167
|
-
|
|
9226
|
+
/** Apply a tag to documents, with a note (a field's value) and the passages it cites. */
|
|
9227
|
+
assign: (tagId, docIds, note, citations) => assignDocTags(this.requireClient(), tagId, docIds, note, citations),
|
|
9168
9228
|
remove: (tagId, docIds) => removeDocTags(this.requireClient(), tagId, docIds),
|
|
9169
9229
|
update: (tagId, docId, updates) => updateDocTag(this.requireClient(), tagId, docId, updates),
|
|
9170
|
-
|
|
9230
|
+
/** Fill the tags' values on the documents with AI (`overwrite`: also where already set). */
|
|
9231
|
+
generate: (tagIds, docIds, options) => generateDocTags(this.requireClient(), tagIds, docIds, options)
|
|
9171
9232
|
};
|
|
9172
9233
|
// ── Contacts ──────────────────────────────────────────────────────────
|
|
9173
9234
|
// A card is sealed under its address book's key, which the calendar key bridge carries: without
|