@arbidocs/sdk 0.4.85 → 0.4.88

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, aI as SkippedFile, ba as UploadResult, m as AuthHeaders, b6 as UploadBatchResult, b9 as UploadOptions, b7 as UploadDirectOptions, b8 as UploadDirectResult, aF as SUPPORTED_EXTENSIONS, a0 as MailAttachment, I as DmCryptoContext } from './browser-BOIk_RaR.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, w as ConversationUsageResponse, z as CreateWorkRequest, B as CreateWorkflowRequest, D as DOC_TERMINAL_STATUSES, E as DecryptedDmNotification, G as DmAttachmentFile, H as DmAttachmentInput, J as DocNameMap, K as DocumentAutomationAction, L as DocumentListFields, M as DocumentListOrder, N as DocumentSelector, O as DocumentWaiter, P as DocumentWaiterOptions, T as FormattedWsMessage, U as IdentityErrorCode, V as IdentityPurchase, W as IdentityState, X as IdentityStatus, Y as LinkedRun, Z as ListAllOptions, $ as ListPaginatedOptions, a1 as MessageLevel, a2 as MessageMetadataPayload, a3 as MessageQueuedEvent, a4 as OutputTokensDetails, a5 as ParsedSlashCommand, a6 as PendingAuthResponse, a7 as PlanStepsError, a8 as PlanWorkRequest, aa as ProjectBudget, ab as ProjectConversationUsageResponse, ac as ProjectDetails, ad as ProjectEventKind, ae as ProjectEventResponse, af as ProjectInvoicesResponse, ag as ProjectResponse, ah as ProjectUpdateRequest, ai as ProjectUsageResponse, aj as QueryOptions, ak as RaisedSignal, al as ReconnectOptions, am as ReconnectableWsConnection, an as ResolvedCitation, ao as ResolvedRecipient, ap as ResponseCompletedEvent, aq as ResponseContentPartAddedEvent, ar as ResponseCreatedEvent, as as ResponseFailedEvent, at as ResponseOutputItemAddedEvent, au as ResponseOutputItemDoneEvent, av as ResponseOutputTextDeltaEvent, aw as ResponseOutputTextDoneEvent, ax as ResponseUsage, ay as RunProgress, az as RunStep, aA as RunWaitingOn, aB as SSEEvent, aC as SSEStreamCallbacks, aD as SSEStreamResult, aE as SSEStreamStartData, aG as SendBack, aH as SkillSummary, aJ as StepActionRequest, aK as StepActivityEvent, aL as StepAssignee, aM as StepField, aN as StepKind, aO as StepPhase, aP as StepSignal, aQ as StepSignalWhen, aR as StepState, aS as StepStatus, aT as SubmitBackgroundQueryOptions, aU as TagChange, aV as TagFieldDefinition, aW as TagKind, aX as TagKindField, aY as TagKindSchema, aZ as TagLinks, a_ as TagListQuery, a$ as TagResponse, b0 as TaskPlan, b1 as TaskPlanStep, b2 as TokenBudgetContext, b3 as UpdateConversationRequest, b5 as UpdateWorkflowRequest, bb as UsageBreakdown, bc as UserDailyUsageResponse, bd as UserInfo, be as UserInputRequestEvent, bf as UserMessageEvent, bg as WebSocketAuthError, bh as WorkStatus, bi as WorkflowAuthMode, bj as WorkflowResponse, bk as WorkflowRunHistoryResponse, bl as WorkflowRunResponse, bm as WorkspaceContext, bn as WsConnection, bo as account, bp as agentconfig, bq as agents, br as assistant, bs as authenticatedFetch, bt as buildDocNameMap, bu as buildFactsContextTool, bv as buildRetrievalChunkTool, bw as buildRetrievalFullContextTool, bx as buildRetrievalTocTool, by as connectWebSocket, bz as connectWithReconnect, bA as consumeSSEStream, bB as contacts, bC as conversations, bD as countCitations, bE as createAuthenticatedClient, bF as createDocumentWaiter, bG as dm, bH as doctags, bI as documents, bJ as facts, bK as files, bL as filterSkills, bM as formatAgentStepLabel, bN as formatFileSize, bO as formatItemLabel, bP as formatStreamSummary, bQ as formatUserName, bR as formatWorkspaceChoices, bS as formatWsMessage, bT as generateEncryptedWorkspaceKey, bU as generateNewWorkspaceKey, bV as getErrorCode, bW as getErrorMessage, bX as getRawWorkspaceKey, bY as health, b_ as identityErrorCode, bZ as identityVerification, b$ as mail, c0 as parseSSEEvents, c1 as parseSlashCommand, c2 as parseSlashTokenInProgress, c3 as performPasswordLogin, c4 as performSigningKeyLogin, c5 as performSsoDeviceFlowLogin, c6 as profile, c7 as projects, c8 as requireData, c9 as requireOk, ca as resolveAuth, cb as resolveCitations, cc as resolveWorkspace, cd as responses, ce as selectWorkspace, cf as selectWorkspaceById, cg as sessions, ch as settings, ci as streamSSE, cj as stripCitationMarkdown, ck as summarizeCitations, cl as tags, cm as work, cn as workflowSteps, co as workflows, cp as workspaces } from './browser-BOIk_RaR.cjs';
1
+ import { t as ConfigStore, q as CliConfig, r as CliCredentials, C as ChatSession, aI as SkippedFile, ba as UploadResult, m as AuthHeaders, b6 as UploadBatchResult, b9 as UploadOptions, b7 as UploadDirectOptions, b8 as UploadDirectResult, aF as SUPPORTED_EXTENSIONS, a0 as MailAttachment, I as DmCryptoContext } from './browser-DqNDY_fc.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, w as ConversationUsageResponse, z as CreateWorkRequest, B as CreateWorkflowRequest, D as DOC_TERMINAL_STATUSES, E as DecryptedDmNotification, G as DmAttachmentFile, H as DmAttachmentInput, J as DocNameMap, K as DocumentAutomationAction, L as DocumentListFields, M as DocumentListOrder, N as DocumentSelector, O as DocumentWaiter, P as DocumentWaiterOptions, T as FormattedWsMessage, U as IdentityErrorCode, V as IdentityPurchase, W as IdentityState, X as IdentityStatus, Y as LinkedRun, Z as ListAllOptions, $ as ListPaginatedOptions, a1 as MessageLevel, a2 as MessageMetadataPayload, a3 as MessageQueuedEvent, a4 as OutputTokensDetails, a5 as ParsedSlashCommand, a6 as PendingAuthResponse, a7 as PlanStepsError, a8 as PlanWorkRequest, aa as ProjectBudget, ab as ProjectConversationUsageResponse, ac as ProjectDetails, ad as ProjectEventKind, ae as ProjectEventResponse, af as ProjectInvoicesResponse, ag as ProjectResponse, ah as ProjectUpdateRequest, ai as ProjectUsageResponse, aj as QueryOptions, ak as RaisedSignal, al as ReconnectOptions, am as ReconnectableWsConnection, an as ResolvedCitation, ao as ResolvedRecipient, ap as ResponseCompletedEvent, aq as ResponseContentPartAddedEvent, ar as ResponseCreatedEvent, as as ResponseFailedEvent, at as ResponseOutputItemAddedEvent, au as ResponseOutputItemDoneEvent, av as ResponseOutputTextDeltaEvent, aw as ResponseOutputTextDoneEvent, ax as ResponseUsage, ay as RunProgress, az as RunStep, aA as RunWaitingOn, aB as SSEEvent, aC as SSEStreamCallbacks, aD as SSEStreamResult, aE as SSEStreamStartData, aG as SendBack, aH as SkillSummary, aJ as StepActionRequest, aK as StepActivityEvent, aL as StepAssignee, aM as StepField, aN as StepKind, aO as StepPhase, aP as StepSignal, aQ as StepSignalWhen, aR as StepState, aS as StepStatus, aT as SubmitBackgroundQueryOptions, aU as TagChange, aV as TagFieldDefinition, aW as TagKind, aX as TagKindField, aY as TagKindSchema, aZ as TagLinks, a_ as TagListQuery, a$ as TagResponse, b0 as TaskPlan, b1 as TaskPlanStep, b2 as TokenBudgetContext, b3 as UpdateConversationRequest, b5 as UpdateWorkflowRequest, bb as UsageBreakdown, bc as UserDailyUsageResponse, bd as UserInfo, be as UserInputRequestEvent, bf as UserMessageEvent, bg as WebSocketAuthError, bh as WorkStatus, bi as WorkflowAuthMode, bj as WorkflowResponse, bk as WorkflowRunHistoryResponse, bl as WorkflowRunResponse, bm as WorkspaceContext, bn as WsConnection, bo as account, bp as agentconfig, bq as agents, br as assistant, bs as authenticatedFetch, bt as buildDocNameMap, bu as buildFactsContextTool, bv as buildRetrievalChunkTool, bw as buildRetrievalFullContextTool, bx as buildRetrievalTocTool, by as connectWebSocket, bz as connectWithReconnect, bA as consumeSSEStream, bB as contacts, bC as conversations, bD as countCitations, bE as createAuthenticatedClient, bF as createDocumentWaiter, bG as dm, bH as doctags, bI as documents, bJ as facts, bK as files, bL as filterSkills, bM as formatAgentStepLabel, bN as formatFileSize, bO as formatItemLabel, bP as formatStreamSummary, bQ as formatUserName, bR as formatWorkspaceChoices, bS as formatWsMessage, bT as generateEncryptedWorkspaceKey, bU as generateNewWorkspaceKey, bV as getErrorCode, bW as getErrorMessage, bX as getRawWorkspaceKey, bY as health, b_ as identityErrorCode, bZ as identityVerification, b$ as mail, c0 as parseSSEEvents, c1 as parseSlashCommand, c2 as parseSlashTokenInProgress, c3 as performPasswordLogin, c4 as performSigningKeyLogin, c5 as performSsoDeviceFlowLogin, c6 as profile, c7 as projects, c8 as requireData, c9 as requireOk, ca as resolveAuth, cb as resolveCitations, cc as resolveWorkspace, cd as responses, ce as selectWorkspace, cf as selectWorkspaceById, cg as sessions, ch as settings, ci as streamSSE, cj as stripCitationMarkdown, ck as summarizeCitations, cl as tags, cm as work, cn as workflowSteps, co as workflows, cp as workspaces } from './browser-DqNDY_fc.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, aI as SkippedFile, ba as UploadResult, m as AuthHeaders, b6 as UploadBatchResult, b9 as UploadOptions, b7 as UploadDirectOptions, b8 as UploadDirectResult, aF as SUPPORTED_EXTENSIONS, a0 as MailAttachment, I as DmCryptoContext } from './browser-BOIk_RaR.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, w as ConversationUsageResponse, z as CreateWorkRequest, B as CreateWorkflowRequest, D as DOC_TERMINAL_STATUSES, E as DecryptedDmNotification, G as DmAttachmentFile, H as DmAttachmentInput, J as DocNameMap, K as DocumentAutomationAction, L as DocumentListFields, M as DocumentListOrder, N as DocumentSelector, O as DocumentWaiter, P as DocumentWaiterOptions, T as FormattedWsMessage, U as IdentityErrorCode, V as IdentityPurchase, W as IdentityState, X as IdentityStatus, Y as LinkedRun, Z as ListAllOptions, $ as ListPaginatedOptions, a1 as MessageLevel, a2 as MessageMetadataPayload, a3 as MessageQueuedEvent, a4 as OutputTokensDetails, a5 as ParsedSlashCommand, a6 as PendingAuthResponse, a7 as PlanStepsError, a8 as PlanWorkRequest, aa as ProjectBudget, ab as ProjectConversationUsageResponse, ac as ProjectDetails, ad as ProjectEventKind, ae as ProjectEventResponse, af as ProjectInvoicesResponse, ag as ProjectResponse, ah as ProjectUpdateRequest, ai as ProjectUsageResponse, aj as QueryOptions, ak as RaisedSignal, al as ReconnectOptions, am as ReconnectableWsConnection, an as ResolvedCitation, ao as ResolvedRecipient, ap as ResponseCompletedEvent, aq as ResponseContentPartAddedEvent, ar as ResponseCreatedEvent, as as ResponseFailedEvent, at as ResponseOutputItemAddedEvent, au as ResponseOutputItemDoneEvent, av as ResponseOutputTextDeltaEvent, aw as ResponseOutputTextDoneEvent, ax as ResponseUsage, ay as RunProgress, az as RunStep, aA as RunWaitingOn, aB as SSEEvent, aC as SSEStreamCallbacks, aD as SSEStreamResult, aE as SSEStreamStartData, aG as SendBack, aH as SkillSummary, aJ as StepActionRequest, aK as StepActivityEvent, aL as StepAssignee, aM as StepField, aN as StepKind, aO as StepPhase, aP as StepSignal, aQ as StepSignalWhen, aR as StepState, aS as StepStatus, aT as SubmitBackgroundQueryOptions, aU as TagChange, aV as TagFieldDefinition, aW as TagKind, aX as TagKindField, aY as TagKindSchema, aZ as TagLinks, a_ as TagListQuery, a$ as TagResponse, b0 as TaskPlan, b1 as TaskPlanStep, b2 as TokenBudgetContext, b3 as UpdateConversationRequest, b5 as UpdateWorkflowRequest, bb as UsageBreakdown, bc as UserDailyUsageResponse, bd as UserInfo, be as UserInputRequestEvent, bf as UserMessageEvent, bg as WebSocketAuthError, bh as WorkStatus, bi as WorkflowAuthMode, bj as WorkflowResponse, bk as WorkflowRunHistoryResponse, bl as WorkflowRunResponse, bm as WorkspaceContext, bn as WsConnection, bo as account, bp as agentconfig, bq as agents, br as assistant, bs as authenticatedFetch, bt as buildDocNameMap, bu as buildFactsContextTool, bv as buildRetrievalChunkTool, bw as buildRetrievalFullContextTool, bx as buildRetrievalTocTool, by as connectWebSocket, bz as connectWithReconnect, bA as consumeSSEStream, bB as contacts, bC as conversations, bD as countCitations, bE as createAuthenticatedClient, bF as createDocumentWaiter, bG as dm, bH as doctags, bI as documents, bJ as facts, bK as files, bL as filterSkills, bM as formatAgentStepLabel, bN as formatFileSize, bO as formatItemLabel, bP as formatStreamSummary, bQ as formatUserName, bR as formatWorkspaceChoices, bS as formatWsMessage, bT as generateEncryptedWorkspaceKey, bU as generateNewWorkspaceKey, bV as getErrorCode, bW as getErrorMessage, bX as getRawWorkspaceKey, bY as health, b_ as identityErrorCode, bZ as identityVerification, b$ as mail, c0 as parseSSEEvents, c1 as parseSlashCommand, c2 as parseSlashTokenInProgress, c3 as performPasswordLogin, c4 as performSigningKeyLogin, c5 as performSsoDeviceFlowLogin, c6 as profile, c7 as projects, c8 as requireData, c9 as requireOk, ca as resolveAuth, cb as resolveCitations, cc as resolveWorkspace, cd as responses, ce as selectWorkspace, cf as selectWorkspaceById, cg as sessions, ch as settings, ci as streamSSE, cj as stripCitationMarkdown, ck as summarizeCitations, cl as tags, cm as work, cn as workflowSteps, co as workflows, cp as workspaces } from './browser-BOIk_RaR.js';
1
+ import { t as ConfigStore, q as CliConfig, r as CliCredentials, C as ChatSession, aI as SkippedFile, ba as UploadResult, m as AuthHeaders, b6 as UploadBatchResult, b9 as UploadOptions, b7 as UploadDirectOptions, b8 as UploadDirectResult, aF as SUPPORTED_EXTENSIONS, a0 as MailAttachment, I as DmCryptoContext } from './browser-DqNDY_fc.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, w as ConversationUsageResponse, z as CreateWorkRequest, B as CreateWorkflowRequest, D as DOC_TERMINAL_STATUSES, E as DecryptedDmNotification, G as DmAttachmentFile, H as DmAttachmentInput, J as DocNameMap, K as DocumentAutomationAction, L as DocumentListFields, M as DocumentListOrder, N as DocumentSelector, O as DocumentWaiter, P as DocumentWaiterOptions, T as FormattedWsMessage, U as IdentityErrorCode, V as IdentityPurchase, W as IdentityState, X as IdentityStatus, Y as LinkedRun, Z as ListAllOptions, $ as ListPaginatedOptions, a1 as MessageLevel, a2 as MessageMetadataPayload, a3 as MessageQueuedEvent, a4 as OutputTokensDetails, a5 as ParsedSlashCommand, a6 as PendingAuthResponse, a7 as PlanStepsError, a8 as PlanWorkRequest, aa as ProjectBudget, ab as ProjectConversationUsageResponse, ac as ProjectDetails, ad as ProjectEventKind, ae as ProjectEventResponse, af as ProjectInvoicesResponse, ag as ProjectResponse, ah as ProjectUpdateRequest, ai as ProjectUsageResponse, aj as QueryOptions, ak as RaisedSignal, al as ReconnectOptions, am as ReconnectableWsConnection, an as ResolvedCitation, ao as ResolvedRecipient, ap as ResponseCompletedEvent, aq as ResponseContentPartAddedEvent, ar as ResponseCreatedEvent, as as ResponseFailedEvent, at as ResponseOutputItemAddedEvent, au as ResponseOutputItemDoneEvent, av as ResponseOutputTextDeltaEvent, aw as ResponseOutputTextDoneEvent, ax as ResponseUsage, ay as RunProgress, az as RunStep, aA as RunWaitingOn, aB as SSEEvent, aC as SSEStreamCallbacks, aD as SSEStreamResult, aE as SSEStreamStartData, aG as SendBack, aH as SkillSummary, aJ as StepActionRequest, aK as StepActivityEvent, aL as StepAssignee, aM as StepField, aN as StepKind, aO as StepPhase, aP as StepSignal, aQ as StepSignalWhen, aR as StepState, aS as StepStatus, aT as SubmitBackgroundQueryOptions, aU as TagChange, aV as TagFieldDefinition, aW as TagKind, aX as TagKindField, aY as TagKindSchema, aZ as TagLinks, a_ as TagListQuery, a$ as TagResponse, b0 as TaskPlan, b1 as TaskPlanStep, b2 as TokenBudgetContext, b3 as UpdateConversationRequest, b5 as UpdateWorkflowRequest, bb as UsageBreakdown, bc as UserDailyUsageResponse, bd as UserInfo, be as UserInputRequestEvent, bf as UserMessageEvent, bg as WebSocketAuthError, bh as WorkStatus, bi as WorkflowAuthMode, bj as WorkflowResponse, bk as WorkflowRunHistoryResponse, bl as WorkflowRunResponse, bm as WorkspaceContext, bn as WsConnection, bo as account, bp as agentconfig, bq as agents, br as assistant, bs as authenticatedFetch, bt as buildDocNameMap, bu as buildFactsContextTool, bv as buildRetrievalChunkTool, bw as buildRetrievalFullContextTool, bx as buildRetrievalTocTool, by as connectWebSocket, bz as connectWithReconnect, bA as consumeSSEStream, bB as contacts, bC as conversations, bD as countCitations, bE as createAuthenticatedClient, bF as createDocumentWaiter, bG as dm, bH as doctags, bI as documents, bJ as facts, bK as files, bL as filterSkills, bM as formatAgentStepLabel, bN as formatFileSize, bO as formatItemLabel, bP as formatStreamSummary, bQ as formatUserName, bR as formatWorkspaceChoices, bS as formatWsMessage, bT as generateEncryptedWorkspaceKey, bU as generateNewWorkspaceKey, bV as getErrorCode, bW as getErrorMessage, bX as getRawWorkspaceKey, bY as health, b_ as identityErrorCode, bZ as identityVerification, b$ as mail, c0 as parseSSEEvents, c1 as parseSlashCommand, c2 as parseSlashTokenInProgress, c3 as performPasswordLogin, c4 as performSigningKeyLogin, c5 as performSsoDeviceFlowLogin, c6 as profile, c7 as projects, c8 as requireData, c9 as requireOk, ca as resolveAuth, cb as resolveCitations, cc as resolveWorkspace, cd as responses, ce as selectWorkspace, cf as selectWorkspaceById, cg as sessions, ch as settings, ci as streamSSE, cj as stripCitationMarkdown, ck as summarizeCitations, cl as tags, cm as work, cn as workflowSteps, co as workflows, cp as workspaces } from './browser-DqNDY_fc.js';
3
3
  import { SessionStorageProvider, ArbiClient } from '@arbidocs/client';
4
4
  export { LoginProfile } from '@arbidocs/client';
5
5
 
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import fs2, { readFileSync } from 'fs';
2
2
  import path2, { dirname, resolve } from 'path';
3
3
  import os2 from 'os';
4
- import { createArbiClient, base64ToBytes, deriveEncryptionKeypairFromSigning, sealedBoxDecrypt, sealKeyForSession, buildWebSocketUrl, createAuthMessage, parseServerMessage, isMessageType, createContentHash, encryptFile, initSodium, bytesToBase64, decryptFile, changePasswordWithRekey } from '@arbidocs/client';
4
+ import { createArbiClient, base64ToBytes, deriveEncryptionKeypairFromSigning, sealedBoxDecrypt, sealKeyForSession, buildWebSocketUrl, createAuthMessage, parseServerMessage, isMessageType, createContentHash, encryptFile, initSodium, bytesToBase64, decryptFile, changePassword } from '@arbidocs/client';
5
5
  import { execSync, spawn } from 'child_process';
6
6
  import { createHash } from 'crypto';
7
7
  import { fileURLToPath } from 'url';
@@ -5270,6 +5270,7 @@ __export(workspaces_exports, {
5270
5270
  copyDocuments: () => copyDocuments,
5271
5271
  createWorkspace: () => createWorkspace,
5272
5272
  deleteWorkspaces: () => deleteWorkspaces,
5273
+ getWorkspaceActivity: () => getWorkspaceActivity,
5273
5274
  grantTemporaryWorkspaceAccess: () => grantTemporaryWorkspaceAccess,
5274
5275
  listWorkspaceUsers: () => listWorkspaceUsers,
5275
5276
  listWorkspaces: () => listWorkspaces,
@@ -5366,6 +5367,17 @@ async function copyDocuments(arbi, targetWorkspaceId, docIds, targetWorkspaceKey
5366
5367
  "Failed to copy documents"
5367
5368
  );
5368
5369
  }
5370
+ async function getWorkspaceActivity(arbi, workspaceExtId, options = {}) {
5371
+ return requireData(
5372
+ await arbi.fetch.GET("/v1/workspace/{workspace_ext_id}/activity", {
5373
+ params: {
5374
+ path: { workspace_ext_id: workspaceExtId },
5375
+ query: { cursor: options.cursor ?? void 0, limit: options.limit }
5376
+ }
5377
+ }),
5378
+ "Failed to fetch workspace activity"
5379
+ );
5380
+ }
5369
5381
 
5370
5382
  // src/operations/conversations.ts
5371
5383
  var conversations_exports = {};
@@ -6363,7 +6375,12 @@ async function deleteDMs(arbi, messageIds) {
6363
6375
  var settings_exports = {};
6364
6376
  __export(settings_exports, {
6365
6377
  getSettings: () => getSettings,
6366
- updateSettings: () => updateSettings
6378
+ setListMembership: () => setListMembership,
6379
+ setWorkspaceNotificationLevel: () => setWorkspaceNotificationLevel,
6380
+ updateSettings: () => updateSettings,
6381
+ withMembership: () => withMembership,
6382
+ workspaceLevelPatch: () => workspaceLevelPatch,
6383
+ workspaceNotificationLevel: () => workspaceNotificationLevel
6367
6384
  });
6368
6385
  async function getSettings(arbi) {
6369
6386
  return requireData(await arbi.fetch.GET("/v1/user/settings"), "Failed to fetch settings");
@@ -6371,6 +6388,36 @@ async function getSettings(arbi) {
6371
6388
  async function updateSettings(arbi, body) {
6372
6389
  requireOk(await arbi.fetch.PATCH("/v1/user/settings", { body }), "Failed to update settings");
6373
6390
  }
6391
+ function withMembership(list, id, on) {
6392
+ const rest = (list ?? []).filter((x2) => x2 !== id);
6393
+ return on ? [...rest, id] : rest;
6394
+ }
6395
+ async function setListMembership(arbi, list, id, on) {
6396
+ const settings = await getSettings(arbi);
6397
+ const next = withMembership(settings[list], id, on);
6398
+ await updateSettings(arbi, { [list]: next });
6399
+ return next;
6400
+ }
6401
+ function workspaceNotificationLevel(lists, workspaceId) {
6402
+ if (lists?.muted_workspaces?.includes(workspaceId)) return "muted";
6403
+ if (lists?.followed_workspaces?.includes(workspaceId)) return "following";
6404
+ return "default";
6405
+ }
6406
+ function workspaceLevelPatch(lists, workspaceId, level) {
6407
+ return {
6408
+ muted_workspaces: withMembership(lists?.muted_workspaces, workspaceId, level === "muted"),
6409
+ followed_workspaces: withMembership(
6410
+ lists?.followed_workspaces,
6411
+ workspaceId,
6412
+ level === "following"
6413
+ )
6414
+ };
6415
+ }
6416
+ async function setWorkspaceNotificationLevel(arbi, workspaceId, level) {
6417
+ const patch = workspaceLevelPatch(await getSettings(arbi), workspaceId, level);
6418
+ await updateSettings(arbi, patch);
6419
+ return patch;
6420
+ }
6374
6421
 
6375
6422
  // src/operations/agentconfig.ts
6376
6423
  var agentconfig_exports = {};
@@ -8130,25 +8177,22 @@ var Arbi = class {
8130
8177
  return result;
8131
8178
  },
8132
8179
  /**
8133
- * Change (or, after recovery, set) the master password: re-keys the workspaces and direct
8134
- * messages. Omit `currentPassword` in recovery mode. Resolves with the new signing key, whose
8135
- * recovery file the user should save.
8180
+ * Change (or, after recovery, set) the master password. Omit `currentPassword` in recovery
8181
+ * mode. One request: the account identity is re-wrapped under the new password and nothing is
8182
+ * re-encrypted, so the session, the workspace keys and the recovery key all stay as they are.
8136
8183
  */
8137
8184
  changePassword: async (params) => {
8138
8185
  const client = this.requireClient();
8139
8186
  const lr2 = this.requireLogin();
8140
8187
  const email = client.session.getState().userEmail ?? this.userProfile?.email;
8141
8188
  if (!email) throw new ArbiError("The account email is unknown; sign in again.");
8142
- const result = await changePasswordWithRekey(
8143
- { ...params, email, userExtId: lr2.userExtId },
8189
+ await changePassword(
8190
+ { ...params, email, identitySecretKey: lr2.signingPrivateKey },
8144
8191
  {
8145
8192
  fetchClient: client.fetch,
8146
8193
  deploymentDomain: this.getDeploymentDomain()
8147
8194
  }
8148
8195
  );
8149
- this.loginResult = { ...lr2, signingPrivateKey: result.newSigningPrivateKey };
8150
- this.wrappedKeys.clear();
8151
- return result;
8152
8196
  },
8153
8197
  /** Close the account (soft delete) and sign out. Refused while a subscription is active. */
8154
8198
  requestDeletion: async () => {
@@ -8228,6 +8272,8 @@ var Arbi = class {
8228
8272
  },
8229
8273
  update: (body) => updateWorkspace(this.requireClient(), body),
8230
8274
  listUsers: () => listWorkspaceUsers(this.requireClient()),
8275
+ /** One page of a workspace's activity feed, newest first (see `getWorkspaceActivity`). */
8276
+ activity: (workspaceId, options) => getWorkspaceActivity(this.requireClient(), workspaceId, options),
8231
8277
  addUsers: (emails, role) => addWorkspaceUsers(this.requireClient(), emails, role),
8232
8278
  /**
8233
8279
  * Grant users a temporary key scoped to ONE session (identified by its public key), for
@@ -8648,7 +8694,11 @@ var Arbi = class {
8648
8694
  // ── Settings ──────────────────────────────────────────────────────────
8649
8695
  settings = {
8650
8696
  get: () => getSettings(this.requireClient()),
8651
- update: (body) => updateSettings(this.requireClient(), body)
8697
+ update: (body) => updateSettings(this.requireClient(), body),
8698
+ /** Add or remove one id in a follow / mute list (the full list is sent). */
8699
+ setListMembership: (list, id, on) => setListMembership(this.requireClient(), list, id, on),
8700
+ /** A workspace's notification level: default, following or muted. */
8701
+ setWorkspaceNotificationLevel: (workspaceId, level) => setWorkspaceNotificationLevel(this.requireClient(), workspaceId, level)
8652
8702
  };
8653
8703
  // ── Agent Configuration ───────────────────────────────────────────────
8654
8704
  agentConfig = {