@arbidocs/sdk 0.4.131 → 0.4.132

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.
@@ -1,2 +1,2 @@
1
- export { A as ActivityKind, a as ActivityResponse, b as AgentControlStateEvent, c as AgentStepDeltaEvent, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, h as ArbiErrorEvent, i as ArbiOptions, k as ArtifactEvent, l as AuthContext, m as AuthHeaders, n as AuthMode, o as AuthenticatedClient, C as ChatAttachmentFile, p as ChatAttachmentInput, q as ChatCryptoContext, r as ChatKeyRing, s as ChatKind, t as ChatMemberKey, u as ChatMemberResponse, v as ChatMessageResponse, w as ChatResponse, x as ChatSession, y as CitationSummary, z as CitationToolSources, B as CliConfig, D as CliCredentials, E as CommandDescriptor, F as ConfigStore, G as ConnectOptions, H as ConversationResponse, I as ConversationUsageResponse, J as CreateFactRequest, K as CreateFactsRequest, L as CreateWorkRequest, M as CreateWorkflowRequest, N as DEFAULT_AI_USD_PER_GBP, Q as DecryptedChatMessage, R as DeferredInterjectionEvent, T as DocumentAutomationAction, W as DocumentSelector, Z as FLAT_TAG_KINDS, _ as FactResponse, $ as FactSearchRequest, a0 as FactSearchResponse, a2 as IdentityErrorCode, a3 as IdentityPurchase, a4 as IdentityState, a5 as IdentityStatus, a6 as LinkedRun, a8 as ListFactsOptions, ab as MailDraftSSEEvent, ad as MessageMetadataPayload, ae as MessageQueuedEvent, af as OutputTokensDetails, ag as ParsedSlashCommand, ah as PendingAuthResponse, ai as PlanStepsError, aj as PlanWorkRequest, ak as ProbeAnswerEvent, al as ProjectBudget, am as ProjectConversationUsageResponse, an as ProjectDetails, ao as ProjectEventKind, ap as ProjectEventResponse, aq as ProjectInvoicesResponse, ar as ProjectResponse, as as ProjectUpdateRequest, at as ProjectUsageResponse, au as QueryOptions, av as RaisedSignal, aw as ReconnectOptions, ax as ReconnectableWsConnection, ay as ResolvedCitation, 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 RunProgress, aK as RunStep, aL as RunWaitingOn, aM as SSEEvent, aN as SSEStreamCallbacks, aO as SSEStreamResult, aP as SSEStreamStartData, aS as SendBack, aT as SkillSummary, aV as StepActionRequest, aW as StepActivityEvent, aX as StepAssignee, aY as StepField, a$ as StepKind, b0 as StepPhase, b1 as StepSignal, b2 as StepSignalWhen, b3 as StepState, b4 as StepStatus, b5 as SubmitBackgroundQueryOptions, b6 as TAG_KINDS, b7 as TagChange, b8 as TagFieldDefinition, b9 as TagKind, ba as TagKindField, bb as TagKindSchema, bc as TagLinks, bd as TagListQuery, be as TagResponse, bf as TaskPlan, bg as TaskPlanStep, bh as TokenBudgetContext, bi as UpdateConversationRequest, bj as UpdateFactRequest, bk as UpdateWorkflowRequest, bq as UsageBreakdown, br as UserDailyUsageResponse, bs as UserInfo, bt as UserInputRequestEvent, bu as UserMessageEvent, bv as WebSocketAuthError, bw as WorkStatus, bx as WorkflowAuthMode, by as WorkflowResponse, bz as WorkflowRunHistoryResponse, bA as WorkflowRunResponse, bB as WorkspaceContext, bC as WsConnection, bD as account, bE as agentconfig, bG as assistant, bH as authenticatedFetch, bI as buildCitationChunkData, bK as buildFactsContextTool, bL as buildRetrievalChunkTool, bM as buildRetrievalFullContextTool, bN as buildRetrievalTocTool, bO as chats, bP as connectWebSocket, bQ as connectWithReconnect, bR as consumeSSEStream, bS as contacts, bT as conversations, bU as countCitations, bV as createAuthenticatedClient, bX as doctags, bY as documents, bZ as facts, b_ as files, b$ as filterSkills, c0 as formatAgentStepLabel, c1 as formatFileSize, c2 as formatGbp, c3 as formatGbpPerMillionTokens, c4 as formatItemLabel, c6 as formatUserName, c7 as formatWorkspaceChoices, cc as getErrorMessage, cd as getRawWorkspaceKey, ce as health, cg as identityErrorCode, cf as identityVerification, ch as mail, ci as notifications, cj as parseSSEEvents, ck as parseSlashCommand, cl as parseSlashTokenInProgress, cm as performPasswordLogin, cp as profile, cq as projects, cr as requireData, cs as requireOk, ct as resolveAuth, cu as resolveCitations, cv as resolveWorkspace, cw as responses, cx as selectWorkspace, cy as selectWorkspaceById, cz as sessions, cA as settings, cC as streamSSE, cD as stripCitationMarkdown, cE as summarizeCitations, cF as tags, cG as usdToGbp, cH as work, cI as workflowSteps, cJ as workflows, cK as workspaces } from './browser-BRF6pkOB.cjs';
1
+ export { A as ActivityKind, a as ActivityResponse, b as AgentControlStateEvent, c as AgentStepDeltaEvent, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, h as ArbiErrorEvent, i as ArbiHostSession, j as ArbiOptions, l as ArtifactEvent, m as AuthContext, n as AuthHeaders, o as AuthMode, p as AuthenticatedClient, C as ChatAttachmentFile, q as ChatAttachmentInput, r as ChatCryptoContext, s as ChatKeyRing, t as ChatKind, u as ChatMemberKey, v as ChatMemberResponse, w as ChatMessageResponse, x as ChatResponse, y as ChatSession, z as CitationSummary, B as CitationToolSources, D as CliConfig, E as CliCredentials, F as CommandDescriptor, G as ConfigStore, H as ConnectOptions, I as ConversationResponse, J as ConversationUsageResponse, K as CreateFactRequest, L as CreateFactsRequest, M as CreateWorkRequest, N as CreateWorkflowRequest, O as DEFAULT_AI_USD_PER_GBP, R as DecryptedChatMessage, S as DeferredInterjectionEvent, U as DocumentAutomationAction, X as DocumentSelector, _ as FLAT_TAG_KINDS, $ as FactResponse, a0 as FactSearchRequest, a1 as FactSearchResponse, a3 as IdentityErrorCode, a4 as IdentityPurchase, a5 as IdentityState, a6 as IdentityStatus, a7 as LinkedRun, a9 as ListFactsOptions, ac as MailDraftSSEEvent, ae as MessageMetadataPayload, af as MessageQueuedEvent, ag as OutputTokensDetails, ah as ParsedSlashCommand, ai as PendingAuthResponse, aj as PlanStepsError, ak as PlanWorkRequest, al as ProbeAnswerEvent, am as ProjectBudget, an as ProjectConversationUsageResponse, ao as ProjectDetails, ap as ProjectEventKind, aq as ProjectEventResponse, ar as ProjectInvoicesResponse, as as ProjectResponse, at as ProjectUpdateRequest, au as ProjectUsageResponse, av as QueryOptions, aw as RaisedSignal, ax as ReconnectOptions, ay as ReconnectableWsConnection, az as ResolvedCitation, 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 RunProgress, aL as RunStep, aM as RunWaitingOn, aN as SSEEvent, aO as SSEStreamCallbacks, aP as SSEStreamResult, aQ as SSEStreamStartData, aT as SendBack, aU as SkillSummary, aW as StepActionRequest, aX as StepActivityEvent, aY as StepAssignee, aZ as StepField, b0 as StepKind, b1 as StepPhase, b2 as StepSignal, b3 as StepSignalWhen, b4 as StepState, b5 as StepStatus, b6 as SubmitBackgroundQueryOptions, b7 as TAG_KINDS, b8 as TagChange, b9 as TagFieldDefinition, ba as TagKind, bb as TagKindField, bc as TagKindSchema, bd as TagLinks, be as TagListQuery, bf as TagResponse, bg as TaskPlan, bh as TaskPlanStep, bi as TokenBudgetContext, bj as UpdateConversationRequest, bk as UpdateFactRequest, bl as UpdateWorkflowRequest, br as UsageBreakdown, bs as UserDailyUsageResponse, bt as UserInfo, bu as UserInputRequestEvent, bv as UserMessageEvent, bw as WebSocketAuthError, bx as WorkStatus, by as WorkflowAuthMode, bz as WorkflowResponse, bA as WorkflowRunHistoryResponse, bB as WorkflowRunResponse, bC as WorkspaceContext, bD as WsConnection, bE as account, bF as agentconfig, bH as assistant, bI as authenticatedFetch, bJ as buildCitationChunkData, bL as buildFactsContextTool, bM as buildRetrievalChunkTool, bN as buildRetrievalFullContextTool, bO as buildRetrievalTocTool, bP as chats, bQ as connectWebSocket, bR as connectWithReconnect, bS as consumeSSEStream, bT as contacts, bU as conversations, bV as countCitations, bW as createAuthenticatedClient, bY as doctags, bZ as documents, b_ as facts, b$ as files, c0 as filterSkills, c1 as formatAgentStepLabel, c2 as formatFileSize, c3 as formatGbp, c4 as formatGbpPerMillionTokens, c5 as formatItemLabel, c7 as formatUserName, c8 as formatWorkspaceChoices, cd as getErrorMessage, ce as getRawWorkspaceKey, cf as health, ch as identityErrorCode, cg as identityVerification, ci as mail, cj as notifications, ck as parseSSEEvents, cl as parseSlashCommand, cm as parseSlashTokenInProgress, cn as performPasswordLogin, cq as profile, cr as projects, cs as requireData, ct as requireOk, cu as resolveAuth, cv as resolveCitations, cw as resolveWorkspace, cx as responses, cy as selectWorkspace, cz as selectWorkspaceById, cA as sessions, cB as settings, cD as streamSSE, cE as stripCitationMarkdown, cF as summarizeCitations, cG as tags, cH as usdToGbp, cI as work, cJ as workflowSteps, cK as workflows, cL as workspaces } from './browser-BsfRh5ih.cjs';
2
2
  export { LoginProfile } from '@arbidocs/client';
package/dist/browser.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { A as ActivityKind, a as ActivityResponse, b as AgentControlStateEvent, c as AgentStepDeltaEvent, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, h as ArbiErrorEvent, i as ArbiOptions, k as ArtifactEvent, l as AuthContext, m as AuthHeaders, n as AuthMode, o as AuthenticatedClient, C as ChatAttachmentFile, p as ChatAttachmentInput, q as ChatCryptoContext, r as ChatKeyRing, s as ChatKind, t as ChatMemberKey, u as ChatMemberResponse, v as ChatMessageResponse, w as ChatResponse, x as ChatSession, y as CitationSummary, z as CitationToolSources, B as CliConfig, D as CliCredentials, E as CommandDescriptor, F as ConfigStore, G as ConnectOptions, H as ConversationResponse, I as ConversationUsageResponse, J as CreateFactRequest, K as CreateFactsRequest, L as CreateWorkRequest, M as CreateWorkflowRequest, N as DEFAULT_AI_USD_PER_GBP, Q as DecryptedChatMessage, R as DeferredInterjectionEvent, T as DocumentAutomationAction, W as DocumentSelector, Z as FLAT_TAG_KINDS, _ as FactResponse, $ as FactSearchRequest, a0 as FactSearchResponse, a2 as IdentityErrorCode, a3 as IdentityPurchase, a4 as IdentityState, a5 as IdentityStatus, a6 as LinkedRun, a8 as ListFactsOptions, ab as MailDraftSSEEvent, ad as MessageMetadataPayload, ae as MessageQueuedEvent, af as OutputTokensDetails, ag as ParsedSlashCommand, ah as PendingAuthResponse, ai as PlanStepsError, aj as PlanWorkRequest, ak as ProbeAnswerEvent, al as ProjectBudget, am as ProjectConversationUsageResponse, an as ProjectDetails, ao as ProjectEventKind, ap as ProjectEventResponse, aq as ProjectInvoicesResponse, ar as ProjectResponse, as as ProjectUpdateRequest, at as ProjectUsageResponse, au as QueryOptions, av as RaisedSignal, aw as ReconnectOptions, ax as ReconnectableWsConnection, ay as ResolvedCitation, 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 RunProgress, aK as RunStep, aL as RunWaitingOn, aM as SSEEvent, aN as SSEStreamCallbacks, aO as SSEStreamResult, aP as SSEStreamStartData, aS as SendBack, aT as SkillSummary, aV as StepActionRequest, aW as StepActivityEvent, aX as StepAssignee, aY as StepField, a$ as StepKind, b0 as StepPhase, b1 as StepSignal, b2 as StepSignalWhen, b3 as StepState, b4 as StepStatus, b5 as SubmitBackgroundQueryOptions, b6 as TAG_KINDS, b7 as TagChange, b8 as TagFieldDefinition, b9 as TagKind, ba as TagKindField, bb as TagKindSchema, bc as TagLinks, bd as TagListQuery, be as TagResponse, bf as TaskPlan, bg as TaskPlanStep, bh as TokenBudgetContext, bi as UpdateConversationRequest, bj as UpdateFactRequest, bk as UpdateWorkflowRequest, bq as UsageBreakdown, br as UserDailyUsageResponse, bs as UserInfo, bt as UserInputRequestEvent, bu as UserMessageEvent, bv as WebSocketAuthError, bw as WorkStatus, bx as WorkflowAuthMode, by as WorkflowResponse, bz as WorkflowRunHistoryResponse, bA as WorkflowRunResponse, bB as WorkspaceContext, bC as WsConnection, bD as account, bE as agentconfig, bG as assistant, bH as authenticatedFetch, bI as buildCitationChunkData, bK as buildFactsContextTool, bL as buildRetrievalChunkTool, bM as buildRetrievalFullContextTool, bN as buildRetrievalTocTool, bO as chats, bP as connectWebSocket, bQ as connectWithReconnect, bR as consumeSSEStream, bS as contacts, bT as conversations, bU as countCitations, bV as createAuthenticatedClient, bX as doctags, bY as documents, bZ as facts, b_ as files, b$ as filterSkills, c0 as formatAgentStepLabel, c1 as formatFileSize, c2 as formatGbp, c3 as formatGbpPerMillionTokens, c4 as formatItemLabel, c6 as formatUserName, c7 as formatWorkspaceChoices, cc as getErrorMessage, cd as getRawWorkspaceKey, ce as health, cg as identityErrorCode, cf as identityVerification, ch as mail, ci as notifications, cj as parseSSEEvents, ck as parseSlashCommand, cl as parseSlashTokenInProgress, cm as performPasswordLogin, cp as profile, cq as projects, cr as requireData, cs as requireOk, ct as resolveAuth, cu as resolveCitations, cv as resolveWorkspace, cw as responses, cx as selectWorkspace, cy as selectWorkspaceById, cz as sessions, cA as settings, cC as streamSSE, cD as stripCitationMarkdown, cE as summarizeCitations, cF as tags, cG as usdToGbp, cH as work, cI as workflowSteps, cJ as workflows, cK as workspaces } from './browser-BRF6pkOB.js';
1
+ export { A as ActivityKind, a as ActivityResponse, b as AgentControlStateEvent, c as AgentStepDeltaEvent, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, h as ArbiErrorEvent, i as ArbiHostSession, j as ArbiOptions, l as ArtifactEvent, m as AuthContext, n as AuthHeaders, o as AuthMode, p as AuthenticatedClient, C as ChatAttachmentFile, q as ChatAttachmentInput, r as ChatCryptoContext, s as ChatKeyRing, t as ChatKind, u as ChatMemberKey, v as ChatMemberResponse, w as ChatMessageResponse, x as ChatResponse, y as ChatSession, z as CitationSummary, B as CitationToolSources, D as CliConfig, E as CliCredentials, F as CommandDescriptor, G as ConfigStore, H as ConnectOptions, I as ConversationResponse, J as ConversationUsageResponse, K as CreateFactRequest, L as CreateFactsRequest, M as CreateWorkRequest, N as CreateWorkflowRequest, O as DEFAULT_AI_USD_PER_GBP, R as DecryptedChatMessage, S as DeferredInterjectionEvent, U as DocumentAutomationAction, X as DocumentSelector, _ as FLAT_TAG_KINDS, $ as FactResponse, a0 as FactSearchRequest, a1 as FactSearchResponse, a3 as IdentityErrorCode, a4 as IdentityPurchase, a5 as IdentityState, a6 as IdentityStatus, a7 as LinkedRun, a9 as ListFactsOptions, ac as MailDraftSSEEvent, ae as MessageMetadataPayload, af as MessageQueuedEvent, ag as OutputTokensDetails, ah as ParsedSlashCommand, ai as PendingAuthResponse, aj as PlanStepsError, ak as PlanWorkRequest, al as ProbeAnswerEvent, am as ProjectBudget, an as ProjectConversationUsageResponse, ao as ProjectDetails, ap as ProjectEventKind, aq as ProjectEventResponse, ar as ProjectInvoicesResponse, as as ProjectResponse, at as ProjectUpdateRequest, au as ProjectUsageResponse, av as QueryOptions, aw as RaisedSignal, ax as ReconnectOptions, ay as ReconnectableWsConnection, az as ResolvedCitation, 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 RunProgress, aL as RunStep, aM as RunWaitingOn, aN as SSEEvent, aO as SSEStreamCallbacks, aP as SSEStreamResult, aQ as SSEStreamStartData, aT as SendBack, aU as SkillSummary, aW as StepActionRequest, aX as StepActivityEvent, aY as StepAssignee, aZ as StepField, b0 as StepKind, b1 as StepPhase, b2 as StepSignal, b3 as StepSignalWhen, b4 as StepState, b5 as StepStatus, b6 as SubmitBackgroundQueryOptions, b7 as TAG_KINDS, b8 as TagChange, b9 as TagFieldDefinition, ba as TagKind, bb as TagKindField, bc as TagKindSchema, bd as TagLinks, be as TagListQuery, bf as TagResponse, bg as TaskPlan, bh as TaskPlanStep, bi as TokenBudgetContext, bj as UpdateConversationRequest, bk as UpdateFactRequest, bl as UpdateWorkflowRequest, br as UsageBreakdown, bs as UserDailyUsageResponse, bt as UserInfo, bu as UserInputRequestEvent, bv as UserMessageEvent, bw as WebSocketAuthError, bx as WorkStatus, by as WorkflowAuthMode, bz as WorkflowResponse, bA as WorkflowRunHistoryResponse, bB as WorkflowRunResponse, bC as WorkspaceContext, bD as WsConnection, bE as account, bF as agentconfig, bH as assistant, bI as authenticatedFetch, bJ as buildCitationChunkData, bL as buildFactsContextTool, bM as buildRetrievalChunkTool, bN as buildRetrievalFullContextTool, bO as buildRetrievalTocTool, bP as chats, bQ as connectWebSocket, bR as connectWithReconnect, bS as consumeSSEStream, bT as contacts, bU as conversations, bV as countCitations, bW as createAuthenticatedClient, bY as doctags, bZ as documents, b_ as facts, b$ as files, c0 as filterSkills, c1 as formatAgentStepLabel, c2 as formatFileSize, c3 as formatGbp, c4 as formatGbpPerMillionTokens, c5 as formatItemLabel, c7 as formatUserName, c8 as formatWorkspaceChoices, cd as getErrorMessage, ce as getRawWorkspaceKey, cf as health, ch as identityErrorCode, cg as identityVerification, ci as mail, cj as notifications, ck as parseSSEEvents, cl as parseSlashCommand, cm as parseSlashTokenInProgress, cn as performPasswordLogin, cq as profile, cr as projects, cs as requireData, ct as requireOk, cu as resolveAuth, cv as resolveCitations, cw as resolveWorkspace, cx as responses, cy as selectWorkspace, cz as selectWorkspaceById, cA as sessions, cB as settings, cD as streamSSE, cE as stripCitationMarkdown, cF as summarizeCitations, cG as tags, cH as usdToGbp, cI as work, cJ as workflowSteps, cK as workflows, cL as workspaces } from './browser-BsfRh5ih.js';
2
2
  export { LoginProfile } from '@arbidocs/client';
package/dist/browser.js CHANGED
@@ -5596,6 +5596,15 @@ async function deleteAgents(arbi, agentExtIds) {
5596
5596
  "Failed to delete agents"
5597
5597
  );
5598
5598
  }
5599
+ async function generateAgentAvatar(arbi, agentExtId, prompt) {
5600
+ return requireData(
5601
+ await arbi.fetch.POST("/v1/agents/{agent_ext_id}/avatar", {
5602
+ params: { path: { agent_ext_id: agentExtId } },
5603
+ body: { prompt }
5604
+ }),
5605
+ "Failed to generate the agent avatar"
5606
+ );
5607
+ }
5599
5608
  async function authorizeAgent(arbi, agentExtId, workspaceExtId, ttlSeconds) {
5600
5609
  return requireData(
5601
5610
  await arbi.fetch.POST("/v1/agents/{agent_ext_id}/authorize", {
@@ -7729,6 +7738,12 @@ var Arbi = class {
7729
7738
  options;
7730
7739
  constructor(options) {
7731
7740
  this.options = options;
7741
+ if (options.session) {
7742
+ this.client = options.session.client;
7743
+ this.loginResult = options.session.login;
7744
+ this.userProfile = options.session.login.profile ?? null;
7745
+ this.currentWorkspaceId = options.session.workspaceId ?? null;
7746
+ }
7732
7747
  }
7733
7748
  // ── Lifecycle ───────────────────────────────────────────────────────────
7734
7749
  /**
@@ -8671,6 +8686,8 @@ var Arbi = class {
8671
8686
  getConfig: (agentExtId) => getAgentConfig(this.requireClient(), agentExtId),
8672
8687
  listWorkspaces: (agentExtId) => listAgentWorkspaces(this.requireClient(), agentExtId),
8673
8688
  delete: (agentExtIds) => deleteAgents(this.requireClient(), agentExtIds),
8689
+ /** Generate an avatar from `prompt` and set it as the agent's picture. */
8690
+ generateAvatar: (agentExtId, prompt) => generateAgentAvatar(this.requireClient(), agentExtId, prompt),
8674
8691
  /** Mint a TTL'd run session for an agent; see `grantTemporaryAccess` to also deposit a key. */
8675
8692
  authorize: (agentExtId, workspaceId, ttlSeconds) => authorizeAgent(this.requireClient(), agentExtId, workspaceId, ttlSeconds),
8676
8693
  authorizeLimits: () => getAuthorizeLimits(this.requireClient()),