@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.
- package/dist/{browser-BRF6pkOB.d.cts → browser-BsfRh5ih.d.cts} +29 -2
- package/dist/{browser-BRF6pkOB.d.ts → browser-BsfRh5ih.d.ts} +29 -2
- package/dist/browser.cjs +17 -0
- 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 +17 -0
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +18 -0
- 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 +18 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/browser.d.cts
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,
|
|
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,
|
|
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()),
|