@arbidocs/sdk 0.4.72 → 0.4.74
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-BWUCi_v2.d.cts → browser-BBYaJCyB.d.cts} +112 -2
- package/dist/{browser-BWUCi_v2.d.ts → browser-BBYaJCyB.d.ts} +112 -2
- package/dist/browser.cjs +24 -0
- 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 +24 -0
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +24 -0
- 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 +24 -0
- 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, at as SkippedFile,
|
|
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 IdentityErrorCode, U as IdentityPurchase, V as IdentityState, W as IdentityStatus, X as ListAllOptions, Z as ListPaginatedOptions, $ as MessageLevel, a0 as MessageMetadataPayload, a1 as MessageQueuedEvent, a2 as OutputTokensDetails, a3 as ParsedSlashCommand, a4 as PendingAuthResponse, a5 as PlanWorkRequest, a7 as ProjectInvoicesResponse, a8 as ProjectUsageResponse, a9 as QueryOptions, aa as ReconnectOptions, ab as ReconnectableWsConnection, ac as ResolvedCitation, ad as ResolvedRecipient, ae as ResponseCompletedEvent, af as ResponseContentPartAddedEvent, ag as ResponseCreatedEvent, ah as ResponseFailedEvent, ai as ResponseOutputItemAddedEvent, aj as ResponseOutputItemDoneEvent, ak as ResponseOutputTextDeltaEvent, al as ResponseOutputTextDoneEvent, am as ResponseUsage, an as SSEEvent, ao as SSEStreamCallbacks, ap as SSEStreamResult, aq as SSEStreamStartData, as as SkillSummary, au as
|
|
1
|
+
import { t as ConfigStore, q as CliConfig, r as CliCredentials, C as ChatSession, at as SkippedFile, aF as UploadResult, m as AuthHeaders, aB as UploadBatchResult, aE as UploadOptions, aC as UploadDirectOptions, aD as UploadDirectResult, ar as SUPPORTED_EXTENSIONS, _ as MailAttachment, H as DmCryptoContext } from './browser-BBYaJCyB.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 IdentityErrorCode, U as IdentityPurchase, V as IdentityState, W as IdentityStatus, X as ListAllOptions, Z as ListPaginatedOptions, $ as MessageLevel, a0 as MessageMetadataPayload, a1 as MessageQueuedEvent, a2 as OutputTokensDetails, a3 as ParsedSlashCommand, a4 as PendingAuthResponse, a5 as PlanWorkRequest, a7 as ProjectInvoicesResponse, a8 as ProjectUsageResponse, a9 as QueryOptions, aa as ReconnectOptions, ab as ReconnectableWsConnection, ac as ResolvedCitation, ad as ResolvedRecipient, ae as ResponseCompletedEvent, af as ResponseContentPartAddedEvent, ag as ResponseCreatedEvent, ah as ResponseFailedEvent, ai as ResponseOutputItemAddedEvent, aj as ResponseOutputItemDoneEvent, ak as ResponseOutputTextDeltaEvent, al as ResponseOutputTextDoneEvent, am as ResponseUsage, an as SSEEvent, ao as SSEStreamCallbacks, ap as SSEStreamResult, aq as SSEStreamStartData, as as SkillSummary, au as StepActionRequest, av as SubmitBackgroundQueryOptions, aw as TaskPlan, ax as TokenBudgetContext, ay as UpdateConversationRequest, aA as UpdateWorkflowRequest, aG as UserDailyUsageResponse, aH as UserInfo, aI as UserInputRequestEvent, aJ as UserMessageEvent, aK as WebSocketAuthError, aL as WorkStatus, aM as WorkflowAuthMode, aN as WorkflowResponse, aO as WorkflowRunHistoryResponse, aP as WorkflowRunResponse, aQ as WorkspaceContext, aR as WsConnection, aS as account, aT as agentconfig, aU as agents, aV as assistant, aW as authenticatedFetch, aX as buildDocNameMap, aY as buildFactsContextTool, aZ as buildRetrievalChunkTool, a_ as buildRetrievalFullContextTool, a$ as buildRetrievalTocTool, b0 as connectWebSocket, b1 as connectWithReconnect, b2 as consumeSSEStream, b3 as contacts, b4 as conversations, b5 as countCitations, b6 as createAuthenticatedClient, b7 as createDocumentWaiter, b8 as dm, b9 as doctags, ba as documents, bb as facts, bc as files, bd as filterSkills, be as formatAgentStepLabel, bf as formatFileSize, bg as formatItemLabel, bh as formatStreamSummary, bi as formatUserName, bj as formatWorkspaceChoices, bk as formatWsMessage, bl as generateEncryptedWorkspaceKey, bm as generateNewWorkspaceKey, bn as getErrorCode, bo as getErrorMessage, bp as getRawWorkspaceKey, bq as health, bs as identityErrorCode, br as identityVerification, bt as mail, bu as parseSSEEvents, bv as parseSlashCommand, bw as parseSlashTokenInProgress, bx as performPasswordLogin, by as performSigningKeyLogin, bz as performSsoDeviceFlowLogin, bA as profile, bB as projects, bC as requireData, bD as requireOk, bE as resolveAuth, bF as resolveCitations, bG as resolveWorkspace, bH as responses, bI as selectWorkspace, bJ as selectWorkspaceById, bK as sessions, bL as settings, bM as streamSSE, bN as stripCitationMarkdown, bO as summarizeCitations, bP as tags, bQ as work, bR as workflows, bS as workspaces } from './browser-BBYaJCyB.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, at as SkippedFile,
|
|
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 IdentityErrorCode, U as IdentityPurchase, V as IdentityState, W as IdentityStatus, X as ListAllOptions, Z as ListPaginatedOptions, $ as MessageLevel, a0 as MessageMetadataPayload, a1 as MessageQueuedEvent, a2 as OutputTokensDetails, a3 as ParsedSlashCommand, a4 as PendingAuthResponse, a5 as PlanWorkRequest, a7 as ProjectInvoicesResponse, a8 as ProjectUsageResponse, a9 as QueryOptions, aa as ReconnectOptions, ab as ReconnectableWsConnection, ac as ResolvedCitation, ad as ResolvedRecipient, ae as ResponseCompletedEvent, af as ResponseContentPartAddedEvent, ag as ResponseCreatedEvent, ah as ResponseFailedEvent, ai as ResponseOutputItemAddedEvent, aj as ResponseOutputItemDoneEvent, ak as ResponseOutputTextDeltaEvent, al as ResponseOutputTextDoneEvent, am as ResponseUsage, an as SSEEvent, ao as SSEStreamCallbacks, ap as SSEStreamResult, aq as SSEStreamStartData, as as SkillSummary, au as
|
|
1
|
+
import { t as ConfigStore, q as CliConfig, r as CliCredentials, C as ChatSession, at as SkippedFile, aF as UploadResult, m as AuthHeaders, aB as UploadBatchResult, aE as UploadOptions, aC as UploadDirectOptions, aD as UploadDirectResult, ar as SUPPORTED_EXTENSIONS, _ as MailAttachment, H as DmCryptoContext } from './browser-BBYaJCyB.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 IdentityErrorCode, U as IdentityPurchase, V as IdentityState, W as IdentityStatus, X as ListAllOptions, Z as ListPaginatedOptions, $ as MessageLevel, a0 as MessageMetadataPayload, a1 as MessageQueuedEvent, a2 as OutputTokensDetails, a3 as ParsedSlashCommand, a4 as PendingAuthResponse, a5 as PlanWorkRequest, a7 as ProjectInvoicesResponse, a8 as ProjectUsageResponse, a9 as QueryOptions, aa as ReconnectOptions, ab as ReconnectableWsConnection, ac as ResolvedCitation, ad as ResolvedRecipient, ae as ResponseCompletedEvent, af as ResponseContentPartAddedEvent, ag as ResponseCreatedEvent, ah as ResponseFailedEvent, ai as ResponseOutputItemAddedEvent, aj as ResponseOutputItemDoneEvent, ak as ResponseOutputTextDeltaEvent, al as ResponseOutputTextDoneEvent, am as ResponseUsage, an as SSEEvent, ao as SSEStreamCallbacks, ap as SSEStreamResult, aq as SSEStreamStartData, as as SkillSummary, au as StepActionRequest, av as SubmitBackgroundQueryOptions, aw as TaskPlan, ax as TokenBudgetContext, ay as UpdateConversationRequest, aA as UpdateWorkflowRequest, aG as UserDailyUsageResponse, aH as UserInfo, aI as UserInputRequestEvent, aJ as UserMessageEvent, aK as WebSocketAuthError, aL as WorkStatus, aM as WorkflowAuthMode, aN as WorkflowResponse, aO as WorkflowRunHistoryResponse, aP as WorkflowRunResponse, aQ as WorkspaceContext, aR as WsConnection, aS as account, aT as agentconfig, aU as agents, aV as assistant, aW as authenticatedFetch, aX as buildDocNameMap, aY as buildFactsContextTool, aZ as buildRetrievalChunkTool, a_ as buildRetrievalFullContextTool, a$ as buildRetrievalTocTool, b0 as connectWebSocket, b1 as connectWithReconnect, b2 as consumeSSEStream, b3 as contacts, b4 as conversations, b5 as countCitations, b6 as createAuthenticatedClient, b7 as createDocumentWaiter, b8 as dm, b9 as doctags, ba as documents, bb as facts, bc as files, bd as filterSkills, be as formatAgentStepLabel, bf as formatFileSize, bg as formatItemLabel, bh as formatStreamSummary, bi as formatUserName, bj as formatWorkspaceChoices, bk as formatWsMessage, bl as generateEncryptedWorkspaceKey, bm as generateNewWorkspaceKey, bn as getErrorCode, bo as getErrorMessage, bp as getRawWorkspaceKey, bq as health, bs as identityErrorCode, br as identityVerification, bt as mail, bu as parseSSEEvents, bv as parseSlashCommand, bw as parseSlashTokenInProgress, bx as performPasswordLogin, by as performSigningKeyLogin, bz as performSsoDeviceFlowLogin, bA as profile, bB as projects, bC as requireData, bD as requireOk, bE as resolveAuth, bF as resolveCitations, bG as resolveWorkspace, bH as responses, bI as selectWorkspace, bJ as selectWorkspaceById, bK as sessions, bL as settings, bM as streamSSE, bN as stripCitationMarkdown, bO as summarizeCitations, bP as tags, bQ as work, bR as workflows, bS as workspaces } from './browser-BBYaJCyB.js';
|
|
3
3
|
import { SessionStorageProvider, ArbiClient } from '@arbidocs/client';
|
|
4
4
|
export { LoginProfile } from '@arbidocs/client';
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -6618,9 +6618,11 @@ async function getUserUsageToday(arbi) {
|
|
|
6618
6618
|
// src/operations/work.ts
|
|
6619
6619
|
var work_exports = {};
|
|
6620
6620
|
__export(work_exports, {
|
|
6621
|
+
actOnStep: () => actOnStep,
|
|
6621
6622
|
createWork: () => createWork,
|
|
6622
6623
|
getActivity: () => getActivity,
|
|
6623
6624
|
getPendingAuth: () => getPendingAuth,
|
|
6625
|
+
notifyConversation: () => notifyConversation,
|
|
6624
6626
|
planWork: () => planWork,
|
|
6625
6627
|
runConversation: () => runConversation,
|
|
6626
6628
|
updateConversation: () => updateConversation
|
|
@@ -6658,6 +6660,24 @@ async function getPendingAuth(arbi, conversationId) {
|
|
|
6658
6660
|
"Failed to read the pending access request"
|
|
6659
6661
|
);
|
|
6660
6662
|
}
|
|
6663
|
+
async function actOnStep(arbi, conversationId, body) {
|
|
6664
|
+
return requireData(
|
|
6665
|
+
await arbi.fetch.POST("/v1/conversation/{conversation_ext_id}/step", {
|
|
6666
|
+
...byId(conversationId),
|
|
6667
|
+
body
|
|
6668
|
+
}),
|
|
6669
|
+
"Failed to update the workflow step"
|
|
6670
|
+
);
|
|
6671
|
+
}
|
|
6672
|
+
async function notifyConversation(arbi, conversationId, userIds) {
|
|
6673
|
+
return requireData(
|
|
6674
|
+
await arbi.fetch.POST("/v1/conversation/{conversation_ext_id}/notify", {
|
|
6675
|
+
...byId(conversationId),
|
|
6676
|
+
body: { user_ext_ids: userIds }
|
|
6677
|
+
}),
|
|
6678
|
+
"Failed to notify people about the conversation"
|
|
6679
|
+
);
|
|
6680
|
+
}
|
|
6661
6681
|
async function getActivity(arbi, conversationId) {
|
|
6662
6682
|
return requireData(
|
|
6663
6683
|
await arbi.fetch.GET("/v1/conversation/{conversation_ext_id}/activity", byId(conversationId)),
|
|
@@ -7310,6 +7330,10 @@ var Arbi = class {
|
|
|
7310
7330
|
pendingAuth: (conversationId) => getPendingAuth(this.requireClient(), conversationId),
|
|
7311
7331
|
/** The task's history, oldest first. */
|
|
7312
7332
|
activity: (conversationId) => getActivity(this.requireClient(), conversationId),
|
|
7333
|
+
/** Complete or skip a step of a workflow run; the run goes on to its next agent step. */
|
|
7334
|
+
actOnStep: (conversationId, body) => actOnStep(this.requireClient(), conversationId, body),
|
|
7335
|
+
/** Notify people about a conversation (each gets a notification); resolves with who was. */
|
|
7336
|
+
notify: (conversationId, userIds) => notifyConversation(this.requireClient(), conversationId, userIds),
|
|
7313
7337
|
/** Draft an editable plan from an objective. */
|
|
7314
7338
|
plan: (body) => planWork(this.requireClient(), body),
|
|
7315
7339
|
/**
|