@arbidocs/sdk 0.4.63 → 0.4.65
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-DbRaA0v7.d.cts → browser-D5Jwb3f2.d.cts} +186 -144
- package/dist/{browser-DbRaA0v7.d.ts → browser-D5Jwb3f2.d.ts} +186 -144
- package/dist/browser.cjs +11 -7
- 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 +11 -7
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +11 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +11 -7
- 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 ActivityKind, a as ActivityResponse, b as AgentControlStateEvent, c as AgentStepDeltaEvent, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, h as ArbiErrorEvent, i as ArbiOptions, k as ArtifactEvent, l as AuthContext, m as AuthHeaders, n as AuthMode, o as AuthenticatedClient, C as ChatSession, p as CitationSummary, q as CliConfig, r as CliCredentials, s as CommandDescriptor, t as ConfigStore, u as ConnectOptions, v as ConversationResponse, w as CreateFactRequest, x as CreateFactsRequest, y as CreateWorkRequest, z as CreateWorkflowRequest, B as DecryptedDmNotification, E as DeferredInterjectionEvent, F as DmAttachmentFile, G as DmAttachmentInput, J as DocumentAutomationAction, M as DocumentSelector, P as FactResponse, Q as FactSearchRequest, R as FactSearchResponse, U as ListFactsOptions, Y as MessageMetadataPayload, Z as MessageQueuedEvent, _ as OutputTokensDetails, $ as ParsedSlashCommand, a0 as PendingAuthResponse, a1 as PlanWorkRequest, a2 as ProbeAnswerEvent, a3 as ProjectInvoicesResponse, a4 as ProjectUsageResponse, a5 as QueryOptions, a6 as ReconnectOptions, a7 as ReconnectableWsConnection, a8 as ResolvedCitation, aa as ResponseCompletedEvent, ab as ResponseContentPartAddedEvent, ac as ResponseCreatedEvent, ad as ResponseFailedEvent, ae as ResponseOutputItemAddedEvent, af as ResponseOutputItemDoneEvent, ag as ResponseOutputTextDeltaEvent, ah as ResponseOutputTextDoneEvent, ai as ResponseUsage, aj as SSEEvent, ak as SSEStreamCallbacks, al as SSEStreamResult, am as SSEStreamStartData, ao as SkillSummary, aq as SubmitBackgroundQueryOptions, ar as TaskPlan, as as TokenBudgetContext, at as UpdateConversationRequest, au as UpdateFactRequest, av as UpdateWorkflowRequest, aB as UserDailyUsageResponse, aC as UserInfo, aD as UserInputRequestEvent, aE as UserMessageEvent, aF as WebSocketAuthError, aG as WorkStatus, aH as WorkflowAuthMode, aI as WorkflowResponse, aJ as WorkflowRunHistoryResponse, aK as WorkflowRunResponse, aL as WorkspaceContext, aM as WsConnection, aN as account, aO as agentconfig, aQ as assistant, aR as authenticatedFetch, aT as buildRetrievalChunkTool, aU as buildRetrievalFullContextTool, aV as buildRetrievalTocTool, aW as connectWebSocket, aX as connectWithReconnect, aY as consumeSSEStream, aZ as contacts, a_ as conversations, a$ as countCitations, b0 as createAuthenticatedClient, b2 as dm, b3 as doctags, b4 as documents, b5 as facts, b6 as files, b7 as filterSkills, b8 as formatAgentStepLabel, b9 as formatFileSize, ba as formatItemLabel, bc as formatUserName, bd as formatWorkspaceChoices, bi as getErrorMessage, bj as getRawWorkspaceKey, bk as health, bl as mail, bm as parseSSEEvents, bn as parseSlashCommand, bo as parseSlashTokenInProgress, bp as performPasswordLogin, bs as profile, bt as projects, bu as requireData, bv as requireOk, bw as resolveAuth, bx as resolveCitations, by as resolveWorkspace, bz as responses, bA as selectWorkspace, bB as selectWorkspaceById, bC as sessions, bD as settings, bE as streamSSE, bF as stripCitationMarkdown, bG as summarizeCitations, bH as tags, bI as work, bJ as workflows, bK as workspaces } from './browser-
|
|
1
|
+
export { A as ActivityKind, a as ActivityResponse, b as AgentControlStateEvent, c as AgentStepDeltaEvent, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, h as ArbiErrorEvent, i as ArbiOptions, k as ArtifactEvent, l as AuthContext, m as AuthHeaders, n as AuthMode, o as AuthenticatedClient, C as ChatSession, p as CitationSummary, q as CliConfig, r as CliCredentials, s as CommandDescriptor, t as ConfigStore, u as ConnectOptions, v as ConversationResponse, w as CreateFactRequest, x as CreateFactsRequest, y as CreateWorkRequest, z as CreateWorkflowRequest, B as DecryptedDmNotification, E as DeferredInterjectionEvent, F as DmAttachmentFile, G as DmAttachmentInput, J as DocumentAutomationAction, M as DocumentSelector, P as FactResponse, Q as FactSearchRequest, R as FactSearchResponse, U as ListFactsOptions, Y as MessageMetadataPayload, Z as MessageQueuedEvent, _ as OutputTokensDetails, $ as ParsedSlashCommand, a0 as PendingAuthResponse, a1 as PlanWorkRequest, a2 as ProbeAnswerEvent, a3 as ProjectInvoicesResponse, a4 as ProjectUsageResponse, a5 as QueryOptions, a6 as ReconnectOptions, a7 as ReconnectableWsConnection, a8 as ResolvedCitation, aa as ResponseCompletedEvent, ab as ResponseContentPartAddedEvent, ac as ResponseCreatedEvent, ad as ResponseFailedEvent, ae as ResponseOutputItemAddedEvent, af as ResponseOutputItemDoneEvent, ag as ResponseOutputTextDeltaEvent, ah as ResponseOutputTextDoneEvent, ai as ResponseUsage, aj as SSEEvent, ak as SSEStreamCallbacks, al as SSEStreamResult, am as SSEStreamStartData, ao as SkillSummary, aq as SubmitBackgroundQueryOptions, ar as TaskPlan, as as TokenBudgetContext, at as UpdateConversationRequest, au as UpdateFactRequest, av as UpdateWorkflowRequest, aB as UserDailyUsageResponse, aC as UserInfo, aD as UserInputRequestEvent, aE as UserMessageEvent, aF as WebSocketAuthError, aG as WorkStatus, aH as WorkflowAuthMode, aI as WorkflowResponse, aJ as WorkflowRunHistoryResponse, aK as WorkflowRunResponse, aL as WorkspaceContext, aM as WsConnection, aN as account, aO as agentconfig, aQ as assistant, aR as authenticatedFetch, aT as buildRetrievalChunkTool, aU as buildRetrievalFullContextTool, aV as buildRetrievalTocTool, aW as connectWebSocket, aX as connectWithReconnect, aY as consumeSSEStream, aZ as contacts, a_ as conversations, a$ as countCitations, b0 as createAuthenticatedClient, b2 as dm, b3 as doctags, b4 as documents, b5 as facts, b6 as files, b7 as filterSkills, b8 as formatAgentStepLabel, b9 as formatFileSize, ba as formatItemLabel, bc as formatUserName, bd as formatWorkspaceChoices, bi as getErrorMessage, bj as getRawWorkspaceKey, bk as health, bl as mail, bm as parseSSEEvents, bn as parseSlashCommand, bo as parseSlashTokenInProgress, bp as performPasswordLogin, bs as profile, bt as projects, bu as requireData, bv as requireOk, bw as resolveAuth, bx as resolveCitations, by as resolveWorkspace, bz as responses, bA as selectWorkspace, bB as selectWorkspaceById, bC as sessions, bD as settings, bE as streamSSE, bF as stripCitationMarkdown, bG as summarizeCitations, bH as tags, bI as work, bJ as workflows, bK as workspaces } from './browser-D5Jwb3f2.cjs';
|
|
2
2
|
export { LoginProfile } from '@arbidocs/client';
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as ActivityKind, a as ActivityResponse, b as AgentControlStateEvent, c as AgentStepDeltaEvent, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, h as ArbiErrorEvent, i as ArbiOptions, k as ArtifactEvent, l as AuthContext, m as AuthHeaders, n as AuthMode, o as AuthenticatedClient, C as ChatSession, p as CitationSummary, q as CliConfig, r as CliCredentials, s as CommandDescriptor, t as ConfigStore, u as ConnectOptions, v as ConversationResponse, w as CreateFactRequest, x as CreateFactsRequest, y as CreateWorkRequest, z as CreateWorkflowRequest, B as DecryptedDmNotification, E as DeferredInterjectionEvent, F as DmAttachmentFile, G as DmAttachmentInput, J as DocumentAutomationAction, M as DocumentSelector, P as FactResponse, Q as FactSearchRequest, R as FactSearchResponse, U as ListFactsOptions, Y as MessageMetadataPayload, Z as MessageQueuedEvent, _ as OutputTokensDetails, $ as ParsedSlashCommand, a0 as PendingAuthResponse, a1 as PlanWorkRequest, a2 as ProbeAnswerEvent, a3 as ProjectInvoicesResponse, a4 as ProjectUsageResponse, a5 as QueryOptions, a6 as ReconnectOptions, a7 as ReconnectableWsConnection, a8 as ResolvedCitation, aa as ResponseCompletedEvent, ab as ResponseContentPartAddedEvent, ac as ResponseCreatedEvent, ad as ResponseFailedEvent, ae as ResponseOutputItemAddedEvent, af as ResponseOutputItemDoneEvent, ag as ResponseOutputTextDeltaEvent, ah as ResponseOutputTextDoneEvent, ai as ResponseUsage, aj as SSEEvent, ak as SSEStreamCallbacks, al as SSEStreamResult, am as SSEStreamStartData, ao as SkillSummary, aq as SubmitBackgroundQueryOptions, ar as TaskPlan, as as TokenBudgetContext, at as UpdateConversationRequest, au as UpdateFactRequest, av as UpdateWorkflowRequest, aB as UserDailyUsageResponse, aC as UserInfo, aD as UserInputRequestEvent, aE as UserMessageEvent, aF as WebSocketAuthError, aG as WorkStatus, aH as WorkflowAuthMode, aI as WorkflowResponse, aJ as WorkflowRunHistoryResponse, aK as WorkflowRunResponse, aL as WorkspaceContext, aM as WsConnection, aN as account, aO as agentconfig, aQ as assistant, aR as authenticatedFetch, aT as buildRetrievalChunkTool, aU as buildRetrievalFullContextTool, aV as buildRetrievalTocTool, aW as connectWebSocket, aX as connectWithReconnect, aY as consumeSSEStream, aZ as contacts, a_ as conversations, a$ as countCitations, b0 as createAuthenticatedClient, b2 as dm, b3 as doctags, b4 as documents, b5 as facts, b6 as files, b7 as filterSkills, b8 as formatAgentStepLabel, b9 as formatFileSize, ba as formatItemLabel, bc as formatUserName, bd as formatWorkspaceChoices, bi as getErrorMessage, bj as getRawWorkspaceKey, bk as health, bl as mail, bm as parseSSEEvents, bn as parseSlashCommand, bo as parseSlashTokenInProgress, bp as performPasswordLogin, bs as profile, bt as projects, bu as requireData, bv as requireOk, bw as resolveAuth, bx as resolveCitations, by as resolveWorkspace, bz as responses, bA as selectWorkspace, bB as selectWorkspaceById, bC as sessions, bD as settings, bE as streamSSE, bF as stripCitationMarkdown, bG as summarizeCitations, bH as tags, bI as work, bJ as workflows, bK as workspaces } from './browser-
|
|
1
|
+
export { A as ActivityKind, a as ActivityResponse, b as AgentControlStateEvent, c as AgentStepDeltaEvent, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, h as ArbiErrorEvent, i as ArbiOptions, k as ArtifactEvent, l as AuthContext, m as AuthHeaders, n as AuthMode, o as AuthenticatedClient, C as ChatSession, p as CitationSummary, q as CliConfig, r as CliCredentials, s as CommandDescriptor, t as ConfigStore, u as ConnectOptions, v as ConversationResponse, w as CreateFactRequest, x as CreateFactsRequest, y as CreateWorkRequest, z as CreateWorkflowRequest, B as DecryptedDmNotification, E as DeferredInterjectionEvent, F as DmAttachmentFile, G as DmAttachmentInput, J as DocumentAutomationAction, M as DocumentSelector, P as FactResponse, Q as FactSearchRequest, R as FactSearchResponse, U as ListFactsOptions, Y as MessageMetadataPayload, Z as MessageQueuedEvent, _ as OutputTokensDetails, $ as ParsedSlashCommand, a0 as PendingAuthResponse, a1 as PlanWorkRequest, a2 as ProbeAnswerEvent, a3 as ProjectInvoicesResponse, a4 as ProjectUsageResponse, a5 as QueryOptions, a6 as ReconnectOptions, a7 as ReconnectableWsConnection, a8 as ResolvedCitation, aa as ResponseCompletedEvent, ab as ResponseContentPartAddedEvent, ac as ResponseCreatedEvent, ad as ResponseFailedEvent, ae as ResponseOutputItemAddedEvent, af as ResponseOutputItemDoneEvent, ag as ResponseOutputTextDeltaEvent, ah as ResponseOutputTextDoneEvent, ai as ResponseUsage, aj as SSEEvent, ak as SSEStreamCallbacks, al as SSEStreamResult, am as SSEStreamStartData, ao as SkillSummary, aq as SubmitBackgroundQueryOptions, ar as TaskPlan, as as TokenBudgetContext, at as UpdateConversationRequest, au as UpdateFactRequest, av as UpdateWorkflowRequest, aB as UserDailyUsageResponse, aC as UserInfo, aD as UserInputRequestEvent, aE as UserMessageEvent, aF as WebSocketAuthError, aG as WorkStatus, aH as WorkflowAuthMode, aI as WorkflowResponse, aJ as WorkflowRunHistoryResponse, aK as WorkflowRunResponse, aL as WorkspaceContext, aM as WsConnection, aN as account, aO as agentconfig, aQ as assistant, aR as authenticatedFetch, aT as buildRetrievalChunkTool, aU as buildRetrievalFullContextTool, aV as buildRetrievalTocTool, aW as connectWebSocket, aX as connectWithReconnect, aY as consumeSSEStream, aZ as contacts, a_ as conversations, a$ as countCitations, b0 as createAuthenticatedClient, b2 as dm, b3 as doctags, b4 as documents, b5 as facts, b6 as files, b7 as filterSkills, b8 as formatAgentStepLabel, b9 as formatFileSize, ba as formatItemLabel, bc as formatUserName, bd as formatWorkspaceChoices, bi as getErrorMessage, bj as getRawWorkspaceKey, bk as health, bl as mail, bm as parseSSEEvents, bn as parseSlashCommand, bo as parseSlashTokenInProgress, bp as performPasswordLogin, bs as profile, bt as projects, bu as requireData, bv as requireOk, bw as resolveAuth, bx as resolveCitations, by as resolveWorkspace, bz as responses, bA as selectWorkspace, bB as selectWorkspaceById, bC as sessions, bD as settings, bE as streamSSE, bF as stripCitationMarkdown, bG as summarizeCitations, bH as tags, bI as work, bJ as workflows, bK as workspaces } from './browser-D5Jwb3f2.js';
|
|
2
2
|
export { LoginProfile } from '@arbidocs/client';
|
package/dist/browser.js
CHANGED
|
@@ -4479,10 +4479,10 @@ async function uploadUrl(arbi, urls, shared = false) {
|
|
|
4479
4479
|
"Failed to upload from URLs"
|
|
4480
4480
|
);
|
|
4481
4481
|
}
|
|
4482
|
-
async function getParsedContent(auth, docId, stage) {
|
|
4482
|
+
async function getParsedContent(auth, docId, stage, version) {
|
|
4483
4483
|
const res = await authenticatedFetch({
|
|
4484
4484
|
...auth,
|
|
4485
|
-
path: `/v1/document/${docId}/parsed-${stage}`
|
|
4485
|
+
path: `/v1/document/${docId}/parsed-${stage}${version ? `?version=${version}` : ""}`
|
|
4486
4486
|
});
|
|
4487
4487
|
return res.json();
|
|
4488
4488
|
}
|
|
@@ -4540,10 +4540,10 @@ async function uploadFiles(auth, files, options) {
|
|
|
4540
4540
|
});
|
|
4541
4541
|
return res.json();
|
|
4542
4542
|
}
|
|
4543
|
-
async function downloadDocument(auth, docId) {
|
|
4543
|
+
async function downloadDocument(auth, docId, version) {
|
|
4544
4544
|
return authenticatedFetch({
|
|
4545
4545
|
...auth,
|
|
4546
|
-
path: `/v1/document/${docId}/download`
|
|
4546
|
+
path: `/v1/document/${docId}/download${version ? `?version=${version}` : ""}`
|
|
4547
4547
|
});
|
|
4548
4548
|
}
|
|
4549
4549
|
function mimeFromName(name) {
|
|
@@ -4702,6 +4702,7 @@ async function uploadDocumentsDirect(arbi, workspaceKey, files, options) {
|
|
|
4702
4702
|
);
|
|
4703
4703
|
return {
|
|
4704
4704
|
doc_ext_ids: commitResult.doc_ext_ids ?? [],
|
|
4705
|
+
version: commitResult.version ?? null,
|
|
4705
4706
|
skipped: [...skipped, ...commitResult.skipped ?? []]
|
|
4706
4707
|
};
|
|
4707
4708
|
}
|
|
@@ -6582,7 +6583,7 @@ var Arbi = class {
|
|
|
6582
6583
|
*/
|
|
6583
6584
|
listAll: (options) => listAll(this.requireClient(), options),
|
|
6584
6585
|
get: (externalIds) => getDocuments(this.requireClient(), externalIds),
|
|
6585
|
-
/** Every version of a document
|
|
6586
|
+
/** Every version of a document, oldest first; `is_current` marks the current one. */
|
|
6586
6587
|
versions: (docId) => listVersions(this.requireClient(), docId),
|
|
6587
6588
|
delete: (externalIds) => deleteDocuments(this.requireClient(), externalIds),
|
|
6588
6589
|
update: (documents) => updateDocuments(this.requireClient(), documents),
|
|
@@ -6596,8 +6597,11 @@ var Arbi = class {
|
|
|
6596
6597
|
() => uploadFile(this.getAuthHeaders(), fileData, fileName, options)
|
|
6597
6598
|
);
|
|
6598
6599
|
},
|
|
6599
|
-
|
|
6600
|
-
|
|
6600
|
+
/** Download a document's original file — its current version, or `version`. */
|
|
6601
|
+
download: (docId, version) => this.recovering(() => downloadDocument(this.getAuthHeaders(), docId, version)),
|
|
6602
|
+
getParsedContent: (docId, stage, version) => this.recovering(
|
|
6603
|
+
() => getParsedContent(this.getAuthHeaders(), docId, stage, version)
|
|
6604
|
+
),
|
|
6601
6605
|
getThumbnails: (docIds) => this.recovering(() => getThumbnails(this.getAuthHeaders(), docIds))
|
|
6602
6606
|
};
|
|
6603
6607
|
// ── Conversations ─────────────────────────────────────────────────────
|