@arbidocs/sdk 0.4.131 → 0.4.133

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 { F as ConfigStore, B as CliConfig, D as CliCredentials, x as ChatSession, aU as SkippedFile, bp as UploadResult, m as AuthHeaders, bl as UploadBatchResult, bo as UploadOptions, bm as UploadDirectOptions, bn as UploadDirectResult, aR as SUPPORTED_EXTENSIONS, aa as MailAttachment, q as ChatCryptoContext } from './browser-BRF6pkOB.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, C as ChatAttachmentFile, p as ChatAttachmentInput, r as ChatKeyRing, s as ChatKind, t as ChatMemberKey, u as ChatMemberResponse, v as ChatMessageResponse, w as ChatResponse, y as CitationSummary, z as CitationToolSources, E as CommandDescriptor, G as ConnectOptions, H as ConversationResponse, I as ConversationUsageResponse, L as CreateWorkRequest, M as CreateWorkflowRequest, N as DEFAULT_AI_USD_PER_GBP, O as DOC_TERMINAL_STATUSES, P as DecryptedChat, Q as DecryptedChatMessage, S as DocNameMap, T as DocumentAutomationAction, U as DocumentListFields, V as DocumentListOrder, W as DocumentSelector, X as DocumentWaiter, Y as DocumentWaiterOptions, Z as FLAT_TAG_KINDS, a1 as FormattedWsMessage, a2 as IdentityErrorCode, a3 as IdentityPurchase, a4 as IdentityState, a5 as IdentityStatus, a6 as LinkedRun, a7 as ListAllOptions, a9 as ListPaginatedOptions, ab as MailDraftSSEEvent, ac as MessageLevel, ad as MessageMetadataPayload, ae as MessageQueuedEvent, af as OutputTokensDetails, ag as ParsedSlashCommand, ah as PendingAuthResponse, ai as PlanStepsError, aj as PlanWorkRequest, 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, az 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 RunProgress, aK as RunStep, aL as RunWaitingOn, aM as SSEEvent, aN as SSEStreamCallbacks, aO as SSEStreamResult, aP as SSEStreamStartData, aQ as STEP_FIELD_OPTION_TONES, aS as SendBack, aT as SkillSummary, aV as StepActionRequest, aW as StepActivityEvent, aX as StepAssignee, aY as StepField, aZ as StepFieldOption, a_ as StepFieldOptionTone, 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, 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, bF as agents, bG as assistant, bH as authenticatedFetch, bI as buildCitationChunkData, bJ as buildDocNameMap, 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, bW as createDocumentWaiter, 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, c5 as formatStreamSummary, c6 as formatUserName, c7 as formatWorkspaceChoices, c8 as formatWsMessage, c9 as generateEncryptedWorkspaceKey, ca as generateNewWorkspaceKey, cb as getErrorCode, 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, cn as performSigningKeyLogin, co as performSsoDeviceFlowLogin, 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, cB as signatureRequests, 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
+ import { G as ConfigStore, D as CliConfig, E as CliCredentials, y as ChatSession, aV as SkippedFile, bq as UploadResult, n as AuthHeaders, bm as UploadBatchResult, bp as UploadOptions, bn as UploadDirectOptions, bo as UploadDirectResult, aS as SUPPORTED_EXTENSIONS, ab as MailAttachment, r as ChatCryptoContext } from './browser-SjPK03CI.cjs';
2
+ export { A as ActivityKind, a as ActivityResponse, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, i as ArbiHostSession, j as ArbiOptions, k as ArbiSessionExpiredError, l as ArtifactEvent, m as AuthContext, o as AuthMode, p as AuthenticatedClient, C as ChatAttachmentFile, q as ChatAttachmentInput, s as ChatKeyRing, t as ChatKind, u as ChatMemberKey, v as ChatMemberResponse, w as ChatMessageResponse, x as ChatResponse, z as CitationSummary, B as CitationToolSources, F as CommandDescriptor, H as ConnectOptions, I as ConversationResponse, J as ConversationUsageResponse, M as CreateWorkRequest, N as CreateWorkflowRequest, O as DEFAULT_AI_USD_PER_GBP, P as DOC_TERMINAL_STATUSES, Q as DecryptedChat, R as DecryptedChatMessage, T as DocNameMap, U as DocumentAutomationAction, V as DocumentListFields, W as DocumentListOrder, X as DocumentSelector, Y as DocumentWaiter, Z as DocumentWaiterOptions, _ as FLAT_TAG_KINDS, a2 as FormattedWsMessage, a3 as IdentityErrorCode, a4 as IdentityPurchase, a5 as IdentityState, a6 as IdentityStatus, a7 as LinkedRun, a8 as ListAllOptions, aa as ListPaginatedOptions, ac as MailDraftSSEEvent, ad as MessageLevel, ae as MessageMetadataPayload, af as MessageQueuedEvent, ag as OutputTokensDetails, ah as ParsedSlashCommand, ai as PendingAuthResponse, aj as PlanStepsError, ak as PlanWorkRequest, 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, aA as ResolvedRecipient, aB as ResponseCompletedEvent, aC as ResponseContentPartAddedEvent, aD as ResponseCreatedEvent, aE as ResponseFailedEvent, aF as ResponseOutputItemAddedEvent, aG as ResponseOutputItemDoneEvent, aH as ResponseOutputTextDeltaEvent, aI as ResponseOutputTextDoneEvent, aJ as ResponseUsage, aK as RunProgress, aL as RunStep, aM as RunWaitingOn, aN as SSEEvent, aO as SSEStreamCallbacks, aP as SSEStreamResult, aQ as SSEStreamStartData, aR as STEP_FIELD_OPTION_TONES, aT as SendBack, aU as SkillSummary, aW as StepActionRequest, aX as StepActivityEvent, aY as StepAssignee, aZ as StepField, a_ as StepFieldOption, a$ as StepFieldOptionTone, 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, 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, bG as agents, bH as assistant, bI as authenticatedFetch, bJ as buildCitationChunkData, bK as buildDocNameMap, 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, bX as createDocumentWaiter, 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, c6 as formatStreamSummary, c7 as formatUserName, c8 as formatWorkspaceChoices, c9 as formatWsMessage, ca as generateEncryptedWorkspaceKey, cb as generateNewWorkspaceKey, cc as getErrorCode, 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, co as performSigningKeyLogin, cp as performSsoDeviceFlowLogin, 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, cC as signatureRequests, 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-SjPK03CI.cjs';
3
3
  import { SessionStorageProvider, ArbiClient, components } from '@arbidocs/client';
4
4
  export { LoginProfile } from '@arbidocs/client';
5
5
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { F as ConfigStore, B as CliConfig, D as CliCredentials, x as ChatSession, aU as SkippedFile, bp as UploadResult, m as AuthHeaders, bl as UploadBatchResult, bo as UploadOptions, bm as UploadDirectOptions, bn as UploadDirectResult, aR as SUPPORTED_EXTENSIONS, aa as MailAttachment, q as ChatCryptoContext } from './browser-BRF6pkOB.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, C as ChatAttachmentFile, p as ChatAttachmentInput, r as ChatKeyRing, s as ChatKind, t as ChatMemberKey, u as ChatMemberResponse, v as ChatMessageResponse, w as ChatResponse, y as CitationSummary, z as CitationToolSources, E as CommandDescriptor, G as ConnectOptions, H as ConversationResponse, I as ConversationUsageResponse, L as CreateWorkRequest, M as CreateWorkflowRequest, N as DEFAULT_AI_USD_PER_GBP, O as DOC_TERMINAL_STATUSES, P as DecryptedChat, Q as DecryptedChatMessage, S as DocNameMap, T as DocumentAutomationAction, U as DocumentListFields, V as DocumentListOrder, W as DocumentSelector, X as DocumentWaiter, Y as DocumentWaiterOptions, Z as FLAT_TAG_KINDS, a1 as FormattedWsMessage, a2 as IdentityErrorCode, a3 as IdentityPurchase, a4 as IdentityState, a5 as IdentityStatus, a6 as LinkedRun, a7 as ListAllOptions, a9 as ListPaginatedOptions, ab as MailDraftSSEEvent, ac as MessageLevel, ad as MessageMetadataPayload, ae as MessageQueuedEvent, af as OutputTokensDetails, ag as ParsedSlashCommand, ah as PendingAuthResponse, ai as PlanStepsError, aj as PlanWorkRequest, 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, az 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 RunProgress, aK as RunStep, aL as RunWaitingOn, aM as SSEEvent, aN as SSEStreamCallbacks, aO as SSEStreamResult, aP as SSEStreamStartData, aQ as STEP_FIELD_OPTION_TONES, aS as SendBack, aT as SkillSummary, aV as StepActionRequest, aW as StepActivityEvent, aX as StepAssignee, aY as StepField, aZ as StepFieldOption, a_ as StepFieldOptionTone, 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, 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, bF as agents, bG as assistant, bH as authenticatedFetch, bI as buildCitationChunkData, bJ as buildDocNameMap, 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, bW as createDocumentWaiter, 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, c5 as formatStreamSummary, c6 as formatUserName, c7 as formatWorkspaceChoices, c8 as formatWsMessage, c9 as generateEncryptedWorkspaceKey, ca as generateNewWorkspaceKey, cb as getErrorCode, 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, cn as performSigningKeyLogin, co as performSsoDeviceFlowLogin, 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, cB as signatureRequests, 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
+ import { G as ConfigStore, D as CliConfig, E as CliCredentials, y as ChatSession, aV as SkippedFile, bq as UploadResult, n as AuthHeaders, bm as UploadBatchResult, bp as UploadOptions, bn as UploadDirectOptions, bo as UploadDirectResult, aS as SUPPORTED_EXTENSIONS, ab as MailAttachment, r as ChatCryptoContext } from './browser-SjPK03CI.js';
2
+ export { A as ActivityKind, a as ActivityResponse, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, i as ArbiHostSession, j as ArbiOptions, k as ArbiSessionExpiredError, l as ArtifactEvent, m as AuthContext, o as AuthMode, p as AuthenticatedClient, C as ChatAttachmentFile, q as ChatAttachmentInput, s as ChatKeyRing, t as ChatKind, u as ChatMemberKey, v as ChatMemberResponse, w as ChatMessageResponse, x as ChatResponse, z as CitationSummary, B as CitationToolSources, F as CommandDescriptor, H as ConnectOptions, I as ConversationResponse, J as ConversationUsageResponse, M as CreateWorkRequest, N as CreateWorkflowRequest, O as DEFAULT_AI_USD_PER_GBP, P as DOC_TERMINAL_STATUSES, Q as DecryptedChat, R as DecryptedChatMessage, T as DocNameMap, U as DocumentAutomationAction, V as DocumentListFields, W as DocumentListOrder, X as DocumentSelector, Y as DocumentWaiter, Z as DocumentWaiterOptions, _ as FLAT_TAG_KINDS, a2 as FormattedWsMessage, a3 as IdentityErrorCode, a4 as IdentityPurchase, a5 as IdentityState, a6 as IdentityStatus, a7 as LinkedRun, a8 as ListAllOptions, aa as ListPaginatedOptions, ac as MailDraftSSEEvent, ad as MessageLevel, ae as MessageMetadataPayload, af as MessageQueuedEvent, ag as OutputTokensDetails, ah as ParsedSlashCommand, ai as PendingAuthResponse, aj as PlanStepsError, ak as PlanWorkRequest, 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, aA as ResolvedRecipient, aB as ResponseCompletedEvent, aC as ResponseContentPartAddedEvent, aD as ResponseCreatedEvent, aE as ResponseFailedEvent, aF as ResponseOutputItemAddedEvent, aG as ResponseOutputItemDoneEvent, aH as ResponseOutputTextDeltaEvent, aI as ResponseOutputTextDoneEvent, aJ as ResponseUsage, aK as RunProgress, aL as RunStep, aM as RunWaitingOn, aN as SSEEvent, aO as SSEStreamCallbacks, aP as SSEStreamResult, aQ as SSEStreamStartData, aR as STEP_FIELD_OPTION_TONES, aT as SendBack, aU as SkillSummary, aW as StepActionRequest, aX as StepActivityEvent, aY as StepAssignee, aZ as StepField, a_ as StepFieldOption, a$ as StepFieldOptionTone, 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, 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, bG as agents, bH as assistant, bI as authenticatedFetch, bJ as buildCitationChunkData, bK as buildDocNameMap, 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, bX as createDocumentWaiter, 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, c6 as formatStreamSummary, c7 as formatUserName, c8 as formatWorkspaceChoices, c9 as formatWsMessage, ca as generateEncryptedWorkspaceKey, cb as generateNewWorkspaceKey, cc as getErrorCode, 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, co as performSigningKeyLogin, cp as performSsoDeviceFlowLogin, 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, cC as signatureRequests, 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-SjPK03CI.js';
3
3
  import { SessionStorageProvider, ArbiClient, components } from '@arbidocs/client';
4
4
  export { LoginProfile } from '@arbidocs/client';
5
5
 
package/dist/index.js CHANGED
@@ -6140,6 +6140,7 @@ __export(agents_exports, {
6140
6140
  closeAgentSession: () => closeAgentSession,
6141
6141
  createAgent: () => createAgent,
6142
6142
  deleteAgents: () => deleteAgents,
6143
+ generateAgentAvatar: () => generateAgentAvatar,
6143
6144
  getAgentConfig: () => getAgentConfig,
6144
6145
  getAgentSession: () => getAgentSession,
6145
6146
  getAuthorizeLimits: () => getAuthorizeLimits,
@@ -6180,6 +6181,15 @@ async function deleteAgents(arbi, agentExtIds) {
6180
6181
  "Failed to delete agents"
6181
6182
  );
6182
6183
  }
6184
+ async function generateAgentAvatar(arbi, agentExtId, prompt) {
6185
+ return requireData(
6186
+ await arbi.fetch.POST("/v1/agents/{agent_ext_id}/avatar", {
6187
+ params: { path: { agent_ext_id: agentExtId } },
6188
+ body: { prompt }
6189
+ }),
6190
+ "Failed to generate the agent avatar"
6191
+ );
6192
+ }
6183
6193
  async function authorizeAgent(arbi, agentExtId, workspaceExtId, ttlSeconds) {
6184
6194
  return requireData(
6185
6195
  await arbi.fetch.POST("/v1/agents/{agent_ext_id}/authorize", {
@@ -8318,6 +8328,12 @@ var Arbi = class {
8318
8328
  options;
8319
8329
  constructor(options) {
8320
8330
  this.options = options;
8331
+ if (options.session) {
8332
+ this.client = options.session.client;
8333
+ this.loginResult = options.session.login;
8334
+ this.userProfile = options.session.login.profile ?? null;
8335
+ this.currentWorkspaceId = options.session.workspaceId ?? null;
8336
+ }
8321
8337
  }
8322
8338
  // ── Lifecycle ───────────────────────────────────────────────────────────
8323
8339
  /**
@@ -9260,6 +9276,8 @@ var Arbi = class {
9260
9276
  getConfig: (agentExtId) => getAgentConfig(this.requireClient(), agentExtId),
9261
9277
  listWorkspaces: (agentExtId) => listAgentWorkspaces(this.requireClient(), agentExtId),
9262
9278
  delete: (agentExtIds) => deleteAgents(this.requireClient(), agentExtIds),
9279
+ /** Generate an avatar from `prompt` and set it as the agent's picture. */
9280
+ generateAvatar: (agentExtId, prompt) => generateAgentAvatar(this.requireClient(), agentExtId, prompt),
9263
9281
  /** Mint a TTL'd run session for an agent; see `grantTemporaryAccess` to also deposit a key. */
9264
9282
  authorize: (agentExtId, workspaceId, ttlSeconds) => authorizeAgent(this.requireClient(), agentExtId, workspaceId, ttlSeconds),
9265
9283
  authorizeLimits: () => getAuthorizeLimits(this.requireClient()),
@@ -9289,7 +9307,9 @@ var Arbi = class {
9289
9307
  update: (workflowId, body) => updateWorkflow(this.requireClient(), workflowId, body),
9290
9308
  delete: (workflowId) => deleteWorkflow(this.requireClient(), workflowId),
9291
9309
  /** Fire a workflow now, as a test run. Resolves with the conversation it created and whether it started. */
9292
- run: (workflowId) => runWorkflow(this.requireClient(), workflowId)
9310
+ run: (workflowId) => runWorkflow(this.requireClient(), workflowId),
9311
+ /** A workflow's runs, newest first: what fired it, the task it created and how it went. */
9312
+ runs: (workflowId) => listWorkflowRuns(this.requireClient(), workflowId)
9293
9313
  };
9294
9314
  // ── Signature requests ──────────────────────────────────────────────
9295
9315
  /** Ask workspace members to sign a document at fields placed on it; signers sign in the app. */