@arbidocs/sdk 0.4.70 → 0.4.71
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/README.md +1 -0
- package/dist/{browser-Dhk899kq.d.cts → browser-Bf2QdtQY.d.cts} +6 -0
- package/dist/{browser-Dhk899kq.d.ts → browser-Bf2QdtQY.d.ts} +6 -0
- package/dist/browser.cjs +10 -2
- 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 +10 -2
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +10 -2
- 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 +10 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ConfigStore, q as CliConfig, r as CliCredentials, C as ChatSession, ap as SkippedFile, aA as UploadResult, m as AuthHeaders, aw as UploadBatchResult, az as UploadOptions, ax as UploadDirectOptions, ay as UploadDirectResult, an as SUPPORTED_EXTENSIONS, W as MailAttachment, H as DmCryptoContext } from './browser-
|
|
2
|
-
export { A as ActivityKind, a as ActivityResponse, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArtifactEvent, l as AuthContext, n as AuthMode, o as AuthenticatedClient, p as CitationSummary, s as CommandDescriptor, u as ConnectOptions, v as ConversationResponse, y as CreateWorkRequest, z as CreateWorkflowRequest, D as DOC_TERMINAL_STATUSES, B as DecryptedDmNotification, F as DmAttachmentFile, G as DmAttachmentInput, I as DocNameMap, J as DocumentAutomationAction, K as DocumentListFields, L as DocumentListOrder, M as DocumentSelector, N as DocumentWaiter, O as DocumentWaiterOptions, S as FormattedWsMessage, T as ListAllOptions, V as ListPaginatedOptions, X as MessageLevel, Y as MessageMetadataPayload, Z as MessageQueuedEvent, _ as OutputTokensDetails, $ as ParsedSlashCommand, a0 as PendingAuthResponse, a1 as PlanWorkRequest, a3 as ProjectInvoicesResponse, a4 as ProjectUsageResponse, a5 as QueryOptions, a6 as ReconnectOptions, a7 as ReconnectableWsConnection, a8 as ResolvedCitation, a9 as ResolvedRecipient, 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, 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, aP as agents, aQ as assistant, aR as authenticatedFetch, aS as buildDocNameMap, aT as buildFactsContextTool, aU as buildRetrievalChunkTool, aV as buildRetrievalFullContextTool, aW as buildRetrievalTocTool, aX as connectWebSocket, aY as connectWithReconnect, aZ as consumeSSEStream, a_ as contacts, a$ as conversations, b0 as countCitations, b1 as createAuthenticatedClient, b2 as createDocumentWaiter, b3 as dm, b4 as doctags, b5 as documents, b6 as facts, b7 as files, b8 as filterSkills, b9 as formatAgentStepLabel, ba as formatFileSize, bb as formatItemLabel, bc as formatStreamSummary, bd as formatUserName, be as formatWorkspaceChoices, bf as formatWsMessage, bg as generateEncryptedWorkspaceKey, bh as generateNewWorkspaceKey, bi as getErrorCode, bj as getErrorMessage, bk as getRawWorkspaceKey, bl as health, bm as mail, bn as parseSSEEvents, bo as parseSlashCommand, bp as parseSlashTokenInProgress, bq as performPasswordLogin, br as performSigningKeyLogin, bs as performSsoDeviceFlowLogin, bt as profile, bu as projects, bv as requireData, bw as requireOk, bx as resolveAuth, by as resolveCitations, bz as resolveWorkspace, bA as responses, bB as selectWorkspace, bC as selectWorkspaceById, bD as sessions, bE as settings, bF as streamSSE, bG as stripCitationMarkdown, bH as summarizeCitations, bI as tags, bJ as work, bK as workflows, bL as workspaces } from './browser-
|
|
1
|
+
import { t as ConfigStore, q as CliConfig, r as CliCredentials, C as ChatSession, ap as SkippedFile, aA as UploadResult, m as AuthHeaders, aw as UploadBatchResult, az as UploadOptions, ax as UploadDirectOptions, ay as UploadDirectResult, an as SUPPORTED_EXTENSIONS, W as MailAttachment, H as DmCryptoContext } from './browser-Bf2QdtQY.cjs';
|
|
2
|
+
export { A as ActivityKind, a as ActivityResponse, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArtifactEvent, l as AuthContext, n as AuthMode, o as AuthenticatedClient, p as CitationSummary, s as CommandDescriptor, u as ConnectOptions, v as ConversationResponse, y as CreateWorkRequest, z as CreateWorkflowRequest, D as DOC_TERMINAL_STATUSES, B as DecryptedDmNotification, F as DmAttachmentFile, G as DmAttachmentInput, I as DocNameMap, J as DocumentAutomationAction, K as DocumentListFields, L as DocumentListOrder, M as DocumentSelector, N as DocumentWaiter, O as DocumentWaiterOptions, S as FormattedWsMessage, T as ListAllOptions, V as ListPaginatedOptions, X as MessageLevel, Y as MessageMetadataPayload, Z as MessageQueuedEvent, _ as OutputTokensDetails, $ as ParsedSlashCommand, a0 as PendingAuthResponse, a1 as PlanWorkRequest, a3 as ProjectInvoicesResponse, a4 as ProjectUsageResponse, a5 as QueryOptions, a6 as ReconnectOptions, a7 as ReconnectableWsConnection, a8 as ResolvedCitation, a9 as ResolvedRecipient, 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, 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, aP as agents, aQ as assistant, aR as authenticatedFetch, aS as buildDocNameMap, aT as buildFactsContextTool, aU as buildRetrievalChunkTool, aV as buildRetrievalFullContextTool, aW as buildRetrievalTocTool, aX as connectWebSocket, aY as connectWithReconnect, aZ as consumeSSEStream, a_ as contacts, a$ as conversations, b0 as countCitations, b1 as createAuthenticatedClient, b2 as createDocumentWaiter, b3 as dm, b4 as doctags, b5 as documents, b6 as facts, b7 as files, b8 as filterSkills, b9 as formatAgentStepLabel, ba as formatFileSize, bb as formatItemLabel, bc as formatStreamSummary, bd as formatUserName, be as formatWorkspaceChoices, bf as formatWsMessage, bg as generateEncryptedWorkspaceKey, bh as generateNewWorkspaceKey, bi as getErrorCode, bj as getErrorMessage, bk as getRawWorkspaceKey, bl as health, bm as mail, bn as parseSSEEvents, bo as parseSlashCommand, bp as parseSlashTokenInProgress, bq as performPasswordLogin, br as performSigningKeyLogin, bs as performSsoDeviceFlowLogin, bt as profile, bu as projects, bv as requireData, bw as requireOk, bx as resolveAuth, by as resolveCitations, bz as resolveWorkspace, bA as responses, bB as selectWorkspace, bC as selectWorkspaceById, bD as sessions, bE as settings, bF as streamSSE, bG as stripCitationMarkdown, bH as summarizeCitations, bI as tags, bJ as work, bK as workflows, bL as workspaces } from './browser-Bf2QdtQY.cjs';
|
|
3
3
|
import { SessionStorageProvider, ArbiClient } from '@arbidocs/client';
|
|
4
4
|
export { LoginProfile } from '@arbidocs/client';
|
|
5
5
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ConfigStore, q as CliConfig, r as CliCredentials, C as ChatSession, ap as SkippedFile, aA as UploadResult, m as AuthHeaders, aw as UploadBatchResult, az as UploadOptions, ax as UploadDirectOptions, ay as UploadDirectResult, an as SUPPORTED_EXTENSIONS, W as MailAttachment, H as DmCryptoContext } from './browser-
|
|
2
|
-
export { A as ActivityKind, a as ActivityResponse, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArtifactEvent, l as AuthContext, n as AuthMode, o as AuthenticatedClient, p as CitationSummary, s as CommandDescriptor, u as ConnectOptions, v as ConversationResponse, y as CreateWorkRequest, z as CreateWorkflowRequest, D as DOC_TERMINAL_STATUSES, B as DecryptedDmNotification, F as DmAttachmentFile, G as DmAttachmentInput, I as DocNameMap, J as DocumentAutomationAction, K as DocumentListFields, L as DocumentListOrder, M as DocumentSelector, N as DocumentWaiter, O as DocumentWaiterOptions, S as FormattedWsMessage, T as ListAllOptions, V as ListPaginatedOptions, X as MessageLevel, Y as MessageMetadataPayload, Z as MessageQueuedEvent, _ as OutputTokensDetails, $ as ParsedSlashCommand, a0 as PendingAuthResponse, a1 as PlanWorkRequest, a3 as ProjectInvoicesResponse, a4 as ProjectUsageResponse, a5 as QueryOptions, a6 as ReconnectOptions, a7 as ReconnectableWsConnection, a8 as ResolvedCitation, a9 as ResolvedRecipient, 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, 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, aP as agents, aQ as assistant, aR as authenticatedFetch, aS as buildDocNameMap, aT as buildFactsContextTool, aU as buildRetrievalChunkTool, aV as buildRetrievalFullContextTool, aW as buildRetrievalTocTool, aX as connectWebSocket, aY as connectWithReconnect, aZ as consumeSSEStream, a_ as contacts, a$ as conversations, b0 as countCitations, b1 as createAuthenticatedClient, b2 as createDocumentWaiter, b3 as dm, b4 as doctags, b5 as documents, b6 as facts, b7 as files, b8 as filterSkills, b9 as formatAgentStepLabel, ba as formatFileSize, bb as formatItemLabel, bc as formatStreamSummary, bd as formatUserName, be as formatWorkspaceChoices, bf as formatWsMessage, bg as generateEncryptedWorkspaceKey, bh as generateNewWorkspaceKey, bi as getErrorCode, bj as getErrorMessage, bk as getRawWorkspaceKey, bl as health, bm as mail, bn as parseSSEEvents, bo as parseSlashCommand, bp as parseSlashTokenInProgress, bq as performPasswordLogin, br as performSigningKeyLogin, bs as performSsoDeviceFlowLogin, bt as profile, bu as projects, bv as requireData, bw as requireOk, bx as resolveAuth, by as resolveCitations, bz as resolveWorkspace, bA as responses, bB as selectWorkspace, bC as selectWorkspaceById, bD as sessions, bE as settings, bF as streamSSE, bG as stripCitationMarkdown, bH as summarizeCitations, bI as tags, bJ as work, bK as workflows, bL as workspaces } from './browser-
|
|
1
|
+
import { t as ConfigStore, q as CliConfig, r as CliCredentials, C as ChatSession, ap as SkippedFile, aA as UploadResult, m as AuthHeaders, aw as UploadBatchResult, az as UploadOptions, ax as UploadDirectOptions, ay as UploadDirectResult, an as SUPPORTED_EXTENSIONS, W as MailAttachment, H as DmCryptoContext } from './browser-Bf2QdtQY.js';
|
|
2
|
+
export { A as ActivityKind, a as ActivityResponse, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArtifactEvent, l as AuthContext, n as AuthMode, o as AuthenticatedClient, p as CitationSummary, s as CommandDescriptor, u as ConnectOptions, v as ConversationResponse, y as CreateWorkRequest, z as CreateWorkflowRequest, D as DOC_TERMINAL_STATUSES, B as DecryptedDmNotification, F as DmAttachmentFile, G as DmAttachmentInput, I as DocNameMap, J as DocumentAutomationAction, K as DocumentListFields, L as DocumentListOrder, M as DocumentSelector, N as DocumentWaiter, O as DocumentWaiterOptions, S as FormattedWsMessage, T as ListAllOptions, V as ListPaginatedOptions, X as MessageLevel, Y as MessageMetadataPayload, Z as MessageQueuedEvent, _ as OutputTokensDetails, $ as ParsedSlashCommand, a0 as PendingAuthResponse, a1 as PlanWorkRequest, a3 as ProjectInvoicesResponse, a4 as ProjectUsageResponse, a5 as QueryOptions, a6 as ReconnectOptions, a7 as ReconnectableWsConnection, a8 as ResolvedCitation, a9 as ResolvedRecipient, 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, 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, aP as agents, aQ as assistant, aR as authenticatedFetch, aS as buildDocNameMap, aT as buildFactsContextTool, aU as buildRetrievalChunkTool, aV as buildRetrievalFullContextTool, aW as buildRetrievalTocTool, aX as connectWebSocket, aY as connectWithReconnect, aZ as consumeSSEStream, a_ as contacts, a$ as conversations, b0 as countCitations, b1 as createAuthenticatedClient, b2 as createDocumentWaiter, b3 as dm, b4 as doctags, b5 as documents, b6 as facts, b7 as files, b8 as filterSkills, b9 as formatAgentStepLabel, ba as formatFileSize, bb as formatItemLabel, bc as formatStreamSummary, bd as formatUserName, be as formatWorkspaceChoices, bf as formatWsMessage, bg as generateEncryptedWorkspaceKey, bh as generateNewWorkspaceKey, bi as getErrorCode, bj as getErrorMessage, bk as getRawWorkspaceKey, bl as health, bm as mail, bn as parseSSEEvents, bo as parseSlashCommand, bp as parseSlashTokenInProgress, bq as performPasswordLogin, br as performSigningKeyLogin, bs as performSsoDeviceFlowLogin, bt as profile, bu as projects, bv as requireData, bw as requireOk, bx as resolveAuth, by as resolveCitations, bz as resolveWorkspace, bA as responses, bB as selectWorkspace, bC as selectWorkspaceById, bD as sessions, bE as settings, bF as streamSSE, bG as stripCitationMarkdown, bH as summarizeCitations, bI as tags, bJ as work, bK as workflows, bL as workspaces } from './browser-Bf2QdtQY.js';
|
|
3
3
|
import { SessionStorageProvider, ArbiClient } from '@arbidocs/client';
|
|
4
4
|
export { LoginProfile } from '@arbidocs/client';
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -6741,10 +6741,18 @@ var Arbi = class {
|
|
|
6741
6741
|
this.options = options;
|
|
6742
6742
|
}
|
|
6743
6743
|
// ── Lifecycle ───────────────────────────────────────────────────────────
|
|
6744
|
+
/**
|
|
6745
|
+
* The deployment domain the user's keys are derived for: `deploymentDomain` when given,
|
|
6746
|
+
* otherwise the hostname of `url`. Signing and password changes re-derive keys with it, so a
|
|
6747
|
+
* host that needs it (the document tools' e-signing) reads it here rather than recomputing it.
|
|
6748
|
+
*/
|
|
6749
|
+
getDeploymentDomain() {
|
|
6750
|
+
return this.options.deploymentDomain ?? new URL(this.options.url).hostname;
|
|
6751
|
+
}
|
|
6744
6752
|
/** Initialize the SDK client and sodium crypto. Called automatically by login(). */
|
|
6745
6753
|
async init() {
|
|
6746
6754
|
if (this.client) return this.client;
|
|
6747
|
-
const domain = this.
|
|
6755
|
+
const domain = this.getDeploymentDomain();
|
|
6748
6756
|
this.client = createArbiClient({
|
|
6749
6757
|
baseUrl: this.options.url,
|
|
6750
6758
|
deploymentDomain: domain,
|
|
@@ -7039,7 +7047,7 @@ var Arbi = class {
|
|
|
7039
7047
|
{ ...params, email, userExtId: lr2.userExtId },
|
|
7040
7048
|
{
|
|
7041
7049
|
fetchClient: client.fetch,
|
|
7042
|
-
deploymentDomain: this.
|
|
7050
|
+
deploymentDomain: this.getDeploymentDomain()
|
|
7043
7051
|
}
|
|
7044
7052
|
);
|
|
7045
7053
|
this.loginResult = { ...lr2, signingPrivateKey: result.newSigningPrivateKey };
|