@arbidocs/sdk 0.4.86 → 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/{browser-V51dp6kY.d.cts → browser-DqNDY_fc.d.cts} +717 -609
- package/dist/{browser-V51dp6kY.d.ts → browser-DqNDY_fc.d.ts} +717 -609
- package/dist/browser.cjs +55 -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 +55 -2
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +55 -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 +55 -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, 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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
@@ -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
|
-
|
|
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 = {};
|
|
@@ -8225,6 +8272,8 @@ var Arbi = class {
|
|
|
8225
8272
|
},
|
|
8226
8273
|
update: (body) => updateWorkspace(this.requireClient(), body),
|
|
8227
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),
|
|
8228
8277
|
addUsers: (emails, role) => addWorkspaceUsers(this.requireClient(), emails, role),
|
|
8229
8278
|
/**
|
|
8230
8279
|
* Grant users a temporary key scoped to ONE session (identified by its public key), for
|
|
@@ -8645,7 +8694,11 @@ var Arbi = class {
|
|
|
8645
8694
|
// ── Settings ──────────────────────────────────────────────────────────
|
|
8646
8695
|
settings = {
|
|
8647
8696
|
get: () => getSettings(this.requireClient()),
|
|
8648
|
-
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)
|
|
8649
8702
|
};
|
|
8650
8703
|
// ── Agent Configuration ───────────────────────────────────────────────
|
|
8651
8704
|
agentConfig = {
|