@arbidocs/sdk 0.4.54 → 0.4.55

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/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { t as ConfigStore, q as CliConfig, r as CliCredentials, C as ChatSession, ar as SkippedFile, aC as UploadResult, m as AuthHeaders, ay as UploadBatchResult, aB as UploadOptions, az as UploadDirectOptions, aA as UploadDirectResult, ap as SUPPORTED_EXTENSIONS, W as MailAttachment, H as DmCryptoContext } from './browser-ottmzMPY.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 RequestApprovalRequest, a9 as ResolvedCitation, aa as ResolvedRecipient, ab as ResponseCompletedEvent, ac as ResponseContentPartAddedEvent, ad as ResponseCreatedEvent, ae as ResponseFailedEvent, af as ResponseOutputItemAddedEvent, ag as ResponseOutputItemDoneEvent, ah as ResponseOutputTextDeltaEvent, ai as ResponseOutputTextDoneEvent, aj as ResponseUsage, ak as ReviewWorkRequest, al as SSEEvent, am as SSEStreamCallbacks, an as SSEStreamResult, ao as SSEStreamStartData, aq as SkillSummary, as as SubmitBackgroundQueryOptions, at as TaskPlan, au as TokenBudgetContext, av as UpdateConversationRequest, ax as UpdateWorkflowRequest, aD as UserDailyUsageResponse, aE as UserInfo, aF as UserInputRequestEvent, aG as UserMessageEvent, aH as WebSocketAuthError, aI as WorkStatus, aJ as WorkflowAuthMode, aK as WorkflowResponse, aL as WorkflowRunHistoryResponse, aM as WorkflowRunResponse, aN as WorkspaceContext, aO as WsConnection, aP as account, aQ as agentconfig, aR as agents, aS as assistant, aT as authenticatedFetch, aU as buildDocNameMap, aV as buildRetrievalChunkTool, aW as buildRetrievalFullContextTool, aX as buildRetrievalTocTool, aY as connectWebSocket, aZ as connectWithReconnect, a_ as consumeSSEStream, a$ as contacts, b0 as conversations, b1 as countCitations, b2 as createAuthenticatedClient, b3 as createDocumentWaiter, b4 as dm, b5 as doctags, b6 as documents, b7 as facts, b8 as files, b9 as filterSkills, ba as formatAgentStepLabel, bb as formatFileSize, bc as formatItemLabel, bd as formatStreamSummary, be as formatUserName, bf as formatWorkspaceChoices, bg as formatWsMessage, bh as generateEncryptedWorkspaceKey, bi as generateNewWorkspaceKey, bj as getErrorCode, bk as getErrorMessage, bl as getRawWorkspaceKey, bm as health, bn as mail, bo as parseSSEEvents, bp as parseSlashCommand, bq as parseSlashTokenInProgress, br as performPasswordLogin, bs as performSigningKeyLogin, bt as performSsoDeviceFlowLogin, bu as profile, bv as projects, bw as requireData, bx as requireOk, by as resolveAuth, bz as resolveCitations, bA as resolveWorkspace, bB as responses, bC as selectWorkspace, bD as selectWorkspaceById, bE as sessions, bF as settings, bG as streamSSE, bH as stripCitationMarkdown, bI as summarizeCitations, bJ as tags, bK as work, bL as workflows, bM as workspaces } from './browser-ottmzMPY.cjs';
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-BpU45eZn.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 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, b1 as createDocumentWaiter, 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, bb as formatStreamSummary, bc as formatUserName, bd as formatWorkspaceChoices, be as formatWsMessage, bf as generateEncryptedWorkspaceKey, bg as generateNewWorkspaceKey, bh as getErrorCode, bi as getErrorMessage, bj as getRawWorkspaceKey, bk as health, bl as mail, bm as parseSSEEvents, bn as parseSlashCommand, bo as parseSlashTokenInProgress, bp as performPasswordLogin, bq as performSigningKeyLogin, br as performSsoDeviceFlowLogin, 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-BpU45eZn.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, ar as SkippedFile, aC as UploadResult, m as AuthHeaders, ay as UploadBatchResult, aB as UploadOptions, az as UploadDirectOptions, aA as UploadDirectResult, ap as SUPPORTED_EXTENSIONS, W as MailAttachment, H as DmCryptoContext } from './browser-ottmzMPY.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 RequestApprovalRequest, a9 as ResolvedCitation, aa as ResolvedRecipient, ab as ResponseCompletedEvent, ac as ResponseContentPartAddedEvent, ad as ResponseCreatedEvent, ae as ResponseFailedEvent, af as ResponseOutputItemAddedEvent, ag as ResponseOutputItemDoneEvent, ah as ResponseOutputTextDeltaEvent, ai as ResponseOutputTextDoneEvent, aj as ResponseUsage, ak as ReviewWorkRequest, al as SSEEvent, am as SSEStreamCallbacks, an as SSEStreamResult, ao as SSEStreamStartData, aq as SkillSummary, as as SubmitBackgroundQueryOptions, at as TaskPlan, au as TokenBudgetContext, av as UpdateConversationRequest, ax as UpdateWorkflowRequest, aD as UserDailyUsageResponse, aE as UserInfo, aF as UserInputRequestEvent, aG as UserMessageEvent, aH as WebSocketAuthError, aI as WorkStatus, aJ as WorkflowAuthMode, aK as WorkflowResponse, aL as WorkflowRunHistoryResponse, aM as WorkflowRunResponse, aN as WorkspaceContext, aO as WsConnection, aP as account, aQ as agentconfig, aR as agents, aS as assistant, aT as authenticatedFetch, aU as buildDocNameMap, aV as buildRetrievalChunkTool, aW as buildRetrievalFullContextTool, aX as buildRetrievalTocTool, aY as connectWebSocket, aZ as connectWithReconnect, a_ as consumeSSEStream, a$ as contacts, b0 as conversations, b1 as countCitations, b2 as createAuthenticatedClient, b3 as createDocumentWaiter, b4 as dm, b5 as doctags, b6 as documents, b7 as facts, b8 as files, b9 as filterSkills, ba as formatAgentStepLabel, bb as formatFileSize, bc as formatItemLabel, bd as formatStreamSummary, be as formatUserName, bf as formatWorkspaceChoices, bg as formatWsMessage, bh as generateEncryptedWorkspaceKey, bi as generateNewWorkspaceKey, bj as getErrorCode, bk as getErrorMessage, bl as getRawWorkspaceKey, bm as health, bn as mail, bo as parseSSEEvents, bp as parseSlashCommand, bq as parseSlashTokenInProgress, br as performPasswordLogin, bs as performSigningKeyLogin, bt as performSsoDeviceFlowLogin, bu as profile, bv as projects, bw as requireData, bx as requireOk, by as resolveAuth, bz as resolveCitations, bA as resolveWorkspace, bB as responses, bC as selectWorkspace, bD as selectWorkspaceById, bE as sessions, bF as settings, bG as streamSSE, bH as stripCitationMarkdown, bI as summarizeCitations, bJ as tags, bK as work, bL as workflows, bM as workspaces } from './browser-ottmzMPY.js';
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-BpU45eZn.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 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, b1 as createDocumentWaiter, 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, bb as formatStreamSummary, bc as formatUserName, bd as formatWorkspaceChoices, be as formatWsMessage, bf as generateEncryptedWorkspaceKey, bg as generateNewWorkspaceKey, bh as getErrorCode, bi as getErrorMessage, bj as getRawWorkspaceKey, bk as health, bl as mail, bm as parseSSEEvents, bn as parseSlashCommand, bo as parseSlashTokenInProgress, bp as performPasswordLogin, bq as performSigningKeyLogin, br as performSsoDeviceFlowLogin, 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-BpU45eZn.js';
3
3
  import { SessionStorageProvider, ArbiClient } from '@arbidocs/client';
4
4
  export { LoginProfile } from '@arbidocs/client';
5
5
 
package/dist/index.js CHANGED
@@ -6525,8 +6525,6 @@ __export(work_exports, {
6525
6525
  getActivity: () => getActivity,
6526
6526
  getPendingAuth: () => getPendingAuth,
6527
6527
  planWork: () => planWork,
6528
- requestApproval: () => requestApproval,
6529
- reviewConversation: () => reviewConversation,
6530
6528
  runConversation: () => runConversation,
6531
6529
  updateConversation: () => updateConversation
6532
6530
  });
@@ -6554,24 +6552,6 @@ async function runConversation(arbi, conversationId) {
6554
6552
  "Failed to run task"
6555
6553
  );
6556
6554
  }
6557
- async function reviewConversation(arbi, conversationId, body) {
6558
- return requireData(
6559
- await arbi.fetch.POST("/v1/conversation/{conversation_ext_id}/review", {
6560
- ...byId(conversationId),
6561
- body
6562
- }),
6563
- "Failed to review task"
6564
- );
6565
- }
6566
- async function requestApproval(arbi, conversationId, body) {
6567
- return requireData(
6568
- await arbi.fetch.POST("/v1/conversation/{conversation_ext_id}/request-approval", {
6569
- ...byId(conversationId),
6570
- body
6571
- }),
6572
- "Failed to request approval"
6573
- );
6574
- }
6575
6555
  async function getPendingAuth(arbi, conversationId) {
6576
6556
  return requireData(
6577
6557
  await arbi.fetch.GET(
@@ -7165,7 +7145,7 @@ var Arbi = class {
7165
7145
  delete: (conversationId) => deleteConversation(this.requireClient(), conversationId),
7166
7146
  /**
7167
7147
  * Patch a conversation: `title`, `shared` (owner only), and the work fields (`description`,
7168
- * `due_at`, `signoff_user_ext_id`, `parent_conversation_ext_id`, `status`, `plan`). The one call
7148
+ * `due_at`, `parent_conversation_ext_id`, `status`, `plan`). The one call
7169
7149
  * behind rename, share and unshare.
7170
7150
  */
7171
7151
  update: (conversationId, body) => updateConversation(this.requireClient(), conversationId, body),
@@ -7173,19 +7153,15 @@ var Arbi = class {
7173
7153
  createWork: (body) => createWork(this.requireClient(), body),
7174
7154
  /** Run a work item now, or retry it. */
7175
7155
  run: (conversationId) => runConversation(this.requireClient(), conversationId),
7176
- /** The sign-off person approves, or sends feedback back to the agent in the same thread. */
7177
- review: (conversationId, body) => reviewConversation(this.requireClient(), conversationId, body),
7178
- /** Hand sign-off to another workspace member. */
7179
- requestApproval: (conversationId, body) => requestApproval(this.requireClient(), conversationId, body),
7180
7156
  /** The session key an unattended run waits for the owner to allow; 404 when nothing waits. */
7181
7157
  pendingAuth: (conversationId) => getPendingAuth(this.requireClient(), conversationId),
7182
7158
  /** The task's history, oldest first. */
7183
7159
  activity: (conversationId) => getActivity(this.requireClient(), conversationId),
7184
- /** Draft a reviewable plan from an objective. */
7160
+ /** Draft an editable plan from an objective. */
7185
7161
  plan: (body) => planWork(this.requireClient(), body),
7186
7162
  /**
7187
7163
  * Run a work item and, when the run is parked waiting for workspace access, grant the agent's
7188
- * run session a temporary key and run it again. Work that needs no approval returns from the
7164
+ * run session a temporary key and run it again. Work that needs no access grant returns from the
7189
7165
  * first call already running.
7190
7166
  */
7191
7167
  runWithAuth: async (conversationId) => {
@@ -7247,7 +7223,7 @@ var Arbi = class {
7247
7223
  // ── Assistant ─────────────────────────────────────────────────────────
7248
7224
  assistant = {
7249
7225
  cancelRun: (responseId) => this.recovering(() => cancelAssistantRun(this.getAuthHeaders(), responseId)),
7250
- /** Start a durable background turn; task options make its thread a reviewable work item. */
7226
+ /** Start a durable background turn; task options make its thread a work item. */
7251
7227
  submit: (question, options) => {
7252
7228
  const workspaceId = this.requireWorkspace();
7253
7229
  return this.recovering(