@arbidocs/sdk 0.4.71 → 0.4.73

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, 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';
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, 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';
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
@@ -6470,6 +6470,76 @@ async function requestDeletion(arbi) {
6470
6470
  return requireData(await arbi.fetch.POST("/v1/user/request-deletion"), "Failed to delete account");
6471
6471
  }
6472
6472
 
6473
+ // src/operations/identity.ts
6474
+ var identity_exports = {};
6475
+ __export(identity_exports, {
6476
+ acceptName: () => acceptName,
6477
+ getStatus: () => getStatus,
6478
+ identityErrorCode: () => identityErrorCode,
6479
+ purchase: () => purchase,
6480
+ refresh: () => refresh,
6481
+ remove: () => remove,
6482
+ startSession: () => startSession
6483
+ });
6484
+ function refusal(apiError) {
6485
+ const detail = apiError?.detail;
6486
+ if (typeof detail === "string") return { message: detail };
6487
+ if (detail && typeof detail === "object" && !Array.isArray(detail)) {
6488
+ const { code, message } = detail;
6489
+ return {
6490
+ code: typeof code === "string" ? code : void 0,
6491
+ message: typeof message === "string" ? message : void 0
6492
+ };
6493
+ }
6494
+ return {};
6495
+ }
6496
+ function identityErrorCode(error) {
6497
+ return error instanceof ArbiApiError ? refusal(error.apiError).code : void 0;
6498
+ }
6499
+ function unwrap(result, fallback) {
6500
+ if (result.error || result.data === void 0) {
6501
+ throw new ArbiApiError(
6502
+ refusal(result.error).message ?? fallback,
6503
+ result.error,
6504
+ result.response?.status
6505
+ );
6506
+ }
6507
+ return result.data;
6508
+ }
6509
+ async function getStatus(arbi) {
6510
+ return unwrap(await arbi.fetch.GET("/v1/user/identity"), "Failed to load identity verification");
6511
+ }
6512
+ async function purchase(arbi, projectExtId) {
6513
+ return unwrap(
6514
+ await arbi.fetch.POST("/v1/user/identity/purchase", {
6515
+ body: projectExtId ? { project_ext_id: projectExtId } : {}
6516
+ }),
6517
+ "Payment could not be completed"
6518
+ );
6519
+ }
6520
+ async function startSession(arbi) {
6521
+ const data = unwrap(
6522
+ await arbi.fetch.POST("/v1/user/identity/session"),
6523
+ "Could not start identity verification"
6524
+ );
6525
+ return data.url;
6526
+ }
6527
+ async function refresh(arbi) {
6528
+ return unwrap(
6529
+ await arbi.fetch.POST("/v1/user/identity/refresh"),
6530
+ "Could not read the verification result"
6531
+ );
6532
+ }
6533
+ async function acceptName(arbi) {
6534
+ return unwrap(
6535
+ await arbi.fetch.POST("/v1/user/identity/accept-name"),
6536
+ "Could not change your name"
6537
+ );
6538
+ }
6539
+ async function remove(arbi) {
6540
+ return unwrap(await arbi.fetch.DELETE("/v1/user/identity"), "Could not remove the verification");
6541
+ }
6542
+
6473
6543
  // src/operations/projects.ts
6474
6544
  var projects_exports = {};
6475
6545
  __export(projects_exports, {
@@ -6486,10 +6556,10 @@ __export(projects_exports, {
6486
6556
  async function listProjects(arbi) {
6487
6557
  return requireData(await arbi.fetch.GET("/v1/user/projects/"), "Failed to fetch projects");
6488
6558
  }
6489
- async function createProject(arbi, name) {
6559
+ async function createProject(arbi, name, plan = "free") {
6490
6560
  return requireData(
6491
6561
  await arbi.fetch.POST("/v1/user/projects/", {
6492
- body: { name }
6562
+ body: { name, plan }
6493
6563
  }),
6494
6564
  "Failed to create project"
6495
6565
  );
@@ -6548,9 +6618,11 @@ async function getUserUsageToday(arbi) {
6548
6618
  // src/operations/work.ts
6549
6619
  var work_exports = {};
6550
6620
  __export(work_exports, {
6621
+ actOnStep: () => actOnStep,
6551
6622
  createWork: () => createWork,
6552
6623
  getActivity: () => getActivity,
6553
6624
  getPendingAuth: () => getPendingAuth,
6625
+ notifyConversation: () => notifyConversation,
6554
6626
  planWork: () => planWork,
6555
6627
  runConversation: () => runConversation,
6556
6628
  updateConversation: () => updateConversation
@@ -6588,6 +6660,24 @@ async function getPendingAuth(arbi, conversationId) {
6588
6660
  "Failed to read the pending access request"
6589
6661
  );
6590
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
+ }
6591
6681
  async function getActivity(arbi, conversationId) {
6592
6682
  return requireData(
6593
6683
  await arbi.fetch.GET("/v1/conversation/{conversation_ext_id}/activity", byId(conversationId)),
@@ -7015,7 +7105,8 @@ var Arbi = class {
7015
7105
  ...this.userProfile,
7016
7106
  givenName: updated.given_name ?? this.userProfile.givenName,
7017
7107
  familyName: updated.family_name ?? null,
7018
- picture: updated.picture ?? null
7108
+ picture: updated.picture ?? null,
7109
+ isIdentityVerified: updated.is_identity_verified ?? false
7019
7110
  });
7020
7111
  }
7021
7112
  return updated;
@@ -7060,6 +7151,49 @@ var Arbi = class {
7060
7151
  return result;
7061
7152
  }
7062
7153
  };
7154
+ // ── Identity verification ─────────────────────────────────────────────
7155
+ identity = {
7156
+ /** Whether the ID check is offered (Pro plans), its price, and where the user's check stands. */
7157
+ status: () => getStatus(this.requireClient()),
7158
+ /** Charge the one-time fee to an own Pro project; `requires_action` carries a payment URL. */
7159
+ purchase: (projectExtId) => purchase(this.requireClient(), projectExtId),
7160
+ /** The Didit session URL to run the web SDK on. */
7161
+ startSession: () => startSession(this.requireClient()),
7162
+ /** Read the decision of the open check; the profile follows a granted tick. */
7163
+ refresh: async () => {
7164
+ const status = await refresh(this.requireClient());
7165
+ this.syncIdentity(status);
7166
+ return status;
7167
+ },
7168
+ /** Take the name on the document as the account name; the profile follows. */
7169
+ acceptName: async () => {
7170
+ const client = this.requireClient();
7171
+ const offered = await getStatus(client);
7172
+ const status = await acceptName(client);
7173
+ if (this.userProfile && offered.document_given_name) {
7174
+ this.setUserProfile({
7175
+ ...this.userProfile,
7176
+ givenName: offered.document_given_name,
7177
+ familyName: offered.document_family_name ?? null,
7178
+ isIdentityVerified: status.verified
7179
+ });
7180
+ } else {
7181
+ this.syncIdentity(status);
7182
+ }
7183
+ return status;
7184
+ },
7185
+ /** Remove the tick and erase any open check. */
7186
+ remove: async () => {
7187
+ const status = await remove(this.requireClient());
7188
+ this.syncIdentity(status);
7189
+ return status;
7190
+ }
7191
+ };
7192
+ syncIdentity(status) {
7193
+ if (this.userProfile && this.userProfile.isIdentityVerified !== status.verified) {
7194
+ this.setUserProfile({ ...this.userProfile, isIdentityVerified: status.verified });
7195
+ }
7196
+ }
7063
7197
  // ── Workspaces ────────────────────────────────────────────────────────
7064
7198
  workspaces = {
7065
7199
  list: () => listWorkspaces(this.requireClient()),
@@ -7196,6 +7330,10 @@ var Arbi = class {
7196
7330
  pendingAuth: (conversationId) => getPendingAuth(this.requireClient(), conversationId),
7197
7331
  /** The task's history, oldest first. */
7198
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),
7199
7337
  /** Draft an editable plan from an objective. */
7200
7338
  plan: (body) => planWork(this.requireClient(), body),
7201
7339
  /**
@@ -8754,6 +8892,6 @@ async function startDmListener(options) {
8754
8892
  };
8755
8893
  }
8756
8894
 
8757
- export { Arbi, ArbiApiError, ArbiError, ArbiSessionExpiredError, ClaudeOrchestrator, DOC_TERMINAL_STATUSES, FileConfigStore, OpenClawOrchestrator, WebSocketAuthError, account_exports as account, agentconfig_exports as agentconfig, agents_exports as agents, assistant_exports as assistant, authenticatedFetch, buildDocNameMap, buildFactsContextTool, buildRetrievalChunkTool, buildRetrievalFullContextTool, buildRetrievalTocTool, connectWebSocket, connectWithReconnect, consumeSSEStream, contacts_exports as contacts, conversations_exports as conversations, countCitations, createAuthenticatedClient, createDocumentWaiter, device_flow_exports as deviceFlow, dm_exports as dm, doctags_exports as doctags, documents_exports as documents, documents_node_exports as documentsNode, facts_exports as facts, files_exports as files, filterSkills, formatAgentStepLabel, formatFileSize, formatItemLabel, formatStreamSummary, formatUserName, formatWorkspaceChoices, formatWsMessage, generateEncryptedWorkspaceKey, generateNewWorkspaceKey, getErrorCode, getErrorMessage, getRawWorkspaceKey, health_exports as health, listen_exports as listen, mail_exports as mail, mail_node_exports as mailNode, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, performPasswordLogin, performSigningKeyLogin, performSsoDeviceFlowLogin, profile_exports as profile, projects_exports as projects, requireData, requireOk, resolveAuth, resolveCitations, resolveWorkspace, responses_exports as responses, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, startDmListener, streamSSE, stripCitationMarkdown, summarizeCitations, tags_exports as tags, work_exports as work, workflows_exports as workflows, workspaces_exports as workspaces };
8895
+ export { Arbi, ArbiApiError, ArbiError, ArbiSessionExpiredError, ClaudeOrchestrator, DOC_TERMINAL_STATUSES, FileConfigStore, OpenClawOrchestrator, WebSocketAuthError, account_exports as account, agentconfig_exports as agentconfig, agents_exports as agents, assistant_exports as assistant, authenticatedFetch, buildDocNameMap, buildFactsContextTool, buildRetrievalChunkTool, buildRetrievalFullContextTool, buildRetrievalTocTool, connectWebSocket, connectWithReconnect, consumeSSEStream, contacts_exports as contacts, conversations_exports as conversations, countCitations, createAuthenticatedClient, createDocumentWaiter, device_flow_exports as deviceFlow, dm_exports as dm, doctags_exports as doctags, documents_exports as documents, documents_node_exports as documentsNode, facts_exports as facts, files_exports as files, filterSkills, formatAgentStepLabel, formatFileSize, formatItemLabel, formatStreamSummary, formatUserName, formatWorkspaceChoices, formatWsMessage, generateEncryptedWorkspaceKey, generateNewWorkspaceKey, getErrorCode, getErrorMessage, getRawWorkspaceKey, health_exports as health, identityErrorCode, identity_exports as identityVerification, listen_exports as listen, mail_exports as mail, mail_node_exports as mailNode, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, performPasswordLogin, performSigningKeyLogin, performSsoDeviceFlowLogin, profile_exports as profile, projects_exports as projects, requireData, requireOk, resolveAuth, resolveCitations, resolveWorkspace, responses_exports as responses, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, startDmListener, streamSSE, stripCitationMarkdown, summarizeCitations, tags_exports as tags, work_exports as work, workflows_exports as workflows, workspaces_exports as workspaces };
8758
8896
  //# sourceMappingURL=index.js.map
8759
8897
  //# sourceMappingURL=index.js.map