@agents24/node 0.5.12 → 0.5.14
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/compatibility.json +8 -8
- package/dist/bff.cjs +244 -52
- package/dist/bff.cjs.map +1 -1
- package/dist/bff.d.cts +1 -1
- package/dist/bff.d.ts +1 -1
- package/dist/bff.js +244 -52
- package/dist/bff.js.map +1 -1
- package/dist/{client-DTdpRgGB.d.cts → client-DDOnbovv.d.cts} +158 -2
- package/dist/{client-DTdpRgGB.d.ts → client-DDOnbovv.d.ts} +158 -2
- package/dist/index.cjs +274 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +274 -1
- package/dist/index.js.map +1 -1
- package/dist/types/agents.d.ts +28 -1
- package/dist/types/agents.d.ts.map +1 -1
- package/dist/types/bff-sse.d.ts +2 -0
- package/dist/types/bff-sse.d.ts.map +1 -0
- package/dist/types/bff.d.ts.map +1 -1
- package/dist/types/client.d.ts +2 -0
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/embed.d.ts +37 -1
- package/dist/types/embed.d.ts.map +1 -1
- package/dist/types/generated/manifest.d.ts +1 -1
- package/dist/types/generated/manifest.d.ts.map +1 -1
- package/dist/types/hosted-artifacts.d.ts +37 -0
- package/dist/types/hosted-artifacts.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types.d.ts +59 -2
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ToolInputOverrides, ContextWindow, RuntimeEvent, RunCancelResult, AttachmentUploadResult, AttachmentContentAccess, RunResumeResult, ThreadsResponse, ThreadSummaryEvent, ThreadDetail, ThreadDeleteResult, RunContext } from '@agents24/client/protocol';
|
|
1
|
+
import { ToolInputOverrides, ContextWindow, RuntimeEvent, ThreadMessagesPage, ThreadMessageSubmission, ThreadMessage, RunCancelResult, AttachmentUploadResult, AttachmentContentAccess, RunResumeResult, ThreadsResponse, ThreadSummaryEvent, ThreadDetail, ThreadDeleteResult, RunContext } from '@agents24/client/protocol';
|
|
2
2
|
|
|
3
3
|
type Agents24SDKErrorKind = "protocol" | "network" | "http";
|
|
4
4
|
type Agents24NodeErrorKind = Agents24SDKErrorKind;
|
|
@@ -166,6 +166,9 @@ type ControlPlaneAgentRunRequest = {
|
|
|
166
166
|
type StreamResult = {
|
|
167
167
|
threadId: string | null;
|
|
168
168
|
runId: string | null;
|
|
169
|
+
messageId?: string;
|
|
170
|
+
messageStatus?: "queued" | "blocked" | "steer_pending";
|
|
171
|
+
queuePosition?: number | null;
|
|
169
172
|
};
|
|
170
173
|
type EmbedStreamRequest = {
|
|
171
174
|
agent_version_id?: string;
|
|
@@ -274,6 +277,60 @@ type ThreadListOptions = {
|
|
|
274
277
|
skip?: number;
|
|
275
278
|
limit?: number;
|
|
276
279
|
};
|
|
280
|
+
type EmbedThreadMessageScope = {
|
|
281
|
+
externalUserId: string;
|
|
282
|
+
externalSessionId?: string;
|
|
283
|
+
runtimeTarget?: "draft" | "published";
|
|
284
|
+
integrationId: string;
|
|
285
|
+
};
|
|
286
|
+
type EmbedThreadMessageSubmit = EmbedThreadMessageScope & {
|
|
287
|
+
mode: "queue" | "steer";
|
|
288
|
+
input: string;
|
|
289
|
+
attachmentIds?: string[];
|
|
290
|
+
requestedModelId?: string;
|
|
291
|
+
toolInputs?: ToolInputOverrides;
|
|
292
|
+
metadata?: Record<string, unknown>;
|
|
293
|
+
};
|
|
294
|
+
type EmbedThreadMessageEdit = EmbedThreadMessageScope & {
|
|
295
|
+
revision: number;
|
|
296
|
+
input: string;
|
|
297
|
+
attachmentIds?: string[];
|
|
298
|
+
requestedModelId?: string;
|
|
299
|
+
mode?: "steer";
|
|
300
|
+
};
|
|
301
|
+
type ThreadComputerStatus = {
|
|
302
|
+
available: boolean;
|
|
303
|
+
status: string;
|
|
304
|
+
computer_id?: string;
|
|
305
|
+
actions: string[];
|
|
306
|
+
};
|
|
307
|
+
type ThreadComputerFile = {
|
|
308
|
+
path: string;
|
|
309
|
+
kind: "file" | "directory";
|
|
310
|
+
size_bytes: number | null;
|
|
311
|
+
};
|
|
312
|
+
type ThreadComputerFiles = {
|
|
313
|
+
items: ThreadComputerFile[];
|
|
314
|
+
next_cursor: number | null;
|
|
315
|
+
};
|
|
316
|
+
type ThreadComputerFileText = {
|
|
317
|
+
path: string;
|
|
318
|
+
content: string;
|
|
319
|
+
byte_size: number;
|
|
320
|
+
};
|
|
321
|
+
type ThreadComputerContentAccess = {
|
|
322
|
+
url: string;
|
|
323
|
+
snapshot_id: string;
|
|
324
|
+
path: string;
|
|
325
|
+
byte_size: number;
|
|
326
|
+
content_type: string;
|
|
327
|
+
expires_at: string;
|
|
328
|
+
};
|
|
329
|
+
type ThreadComputerFileOptions = {
|
|
330
|
+
path?: string;
|
|
331
|
+
cursor?: number;
|
|
332
|
+
limit?: number;
|
|
333
|
+
};
|
|
277
334
|
type ThreadDetailOptions = {
|
|
278
335
|
externalUserId: string;
|
|
279
336
|
externalSessionId?: string;
|
|
@@ -1327,6 +1384,33 @@ declare class AgentsNamespace {
|
|
|
1327
1384
|
validate(agentId: string): Promise<AgentValidationResult>;
|
|
1328
1385
|
publish(agentId: string, options?: RequestOptions): Promise<AgentResponse>;
|
|
1329
1386
|
startRun(agentId: string, payload: ControlPlaneAgentRunRequest, options?: RequestOptions): Promise<StartRunResult>;
|
|
1387
|
+
listThreadMessages(agentId: string, threadId: string, query?: {
|
|
1388
|
+
before?: number;
|
|
1389
|
+
limit?: number;
|
|
1390
|
+
}): Promise<ThreadMessagesPage>;
|
|
1391
|
+
submitThreadMessage(agentId: string, threadId: string, payload: {
|
|
1392
|
+
mode: "queue" | "steer";
|
|
1393
|
+
input: string;
|
|
1394
|
+
attachmentIds?: string[];
|
|
1395
|
+
requestedAgentId?: string;
|
|
1396
|
+
requestedModelId?: string;
|
|
1397
|
+
}, options?: RequestOptions): Promise<ThreadMessageSubmission>;
|
|
1398
|
+
editPendingMessage(agentId: string, message: ThreadMessage, payload: {
|
|
1399
|
+
input: string;
|
|
1400
|
+
attachmentIds?: string[];
|
|
1401
|
+
requestedAgentId?: string;
|
|
1402
|
+
requestedModelId?: string;
|
|
1403
|
+
mode?: "steer";
|
|
1404
|
+
}): Promise<ThreadMessage>;
|
|
1405
|
+
removePendingMessage(agentId: string, message: ThreadMessage): Promise<{
|
|
1406
|
+
message_id: string;
|
|
1407
|
+
status: "removed";
|
|
1408
|
+
}>;
|
|
1409
|
+
resumeThreadQueue(agentId: string, threadId: string): Promise<{
|
|
1410
|
+
thread_id: string;
|
|
1411
|
+
paused: boolean;
|
|
1412
|
+
run_id: string | null;
|
|
1413
|
+
}>;
|
|
1330
1414
|
stream(agentId: string, payload: AgentStreamRequest, onEvent?: (event: RuntimeEvent) => void | Promise<void>, mode?: "debug" | "production" | string, options?: StreamRequestOptions): Promise<StreamResult>;
|
|
1331
1415
|
resumeRun(runId: string, payload: Record<string, unknown>, options?: RequestOptions): Promise<Record<string, unknown>>;
|
|
1332
1416
|
cancelRun(runId: string, options?: RunCancelOptions): Promise<RunCancelResult>;
|
|
@@ -1393,11 +1477,47 @@ declare class EmbedNamespace {
|
|
|
1393
1477
|
listAgentThreadsMulti(options: MultiAgentThreadListRequest): Promise<ThreadsResponse>;
|
|
1394
1478
|
subscribeAgentThreadEvents(agentId: string, options: ThreadSummaryEventOptions, onEvent: (event: ThreadSummaryEvent) => void | Promise<void>): Promise<void>;
|
|
1395
1479
|
subscribeAgentThreadEventsMulti(options: MultiAgentThreadSummaryEventOptions, onEvent: (event: ThreadSummaryEvent) => void | Promise<void>): Promise<void>;
|
|
1480
|
+
private threadMessageQuery;
|
|
1481
|
+
listAgentThreadMessages(agentId: string, threadId: string, options: EmbedThreadMessageScope & {
|
|
1482
|
+
before?: number;
|
|
1483
|
+
limit?: number;
|
|
1484
|
+
}): Promise<ThreadMessagesPage>;
|
|
1485
|
+
submitAgentThreadMessage(agentId: string, threadId: string, payload: EmbedThreadMessageSubmit, options?: RequestOptions): Promise<ThreadMessageSubmission>;
|
|
1486
|
+
editAgentThreadMessage(agentId: string, threadId: string, messageId: string, payload: EmbedThreadMessageEdit): Promise<ThreadMessage>;
|
|
1487
|
+
removeAgentThreadMessage(agentId: string, threadId: string, messageId: string, scope: EmbedThreadMessageScope & {
|
|
1488
|
+
revision: number;
|
|
1489
|
+
}): Promise<{
|
|
1490
|
+
message_id: string;
|
|
1491
|
+
status: "removed";
|
|
1492
|
+
}>;
|
|
1493
|
+
resumeAgentThreadQueue(agentId: string, threadId: string, scope: EmbedThreadMessageScope): Promise<{
|
|
1494
|
+
thread_id: string;
|
|
1495
|
+
paused: boolean;
|
|
1496
|
+
run_id: string | null;
|
|
1497
|
+
}>;
|
|
1396
1498
|
getConversationThread(threadId: string, options: ConversationThreadOptions): Promise<ThreadDetail>;
|
|
1499
|
+
getConversationComputer(threadId: string, options: ConversationThreadOptions): Promise<ThreadComputerStatus>;
|
|
1500
|
+
listConversationComputerFiles(threadId: string, options: ConversationThreadOptions & ThreadComputerFileOptions): Promise<ThreadComputerFiles>;
|
|
1501
|
+
readConversationComputerFile(threadId: string, options: ConversationThreadOptions & {
|
|
1502
|
+
path: string;
|
|
1503
|
+
}): Promise<ThreadComputerFileText>;
|
|
1504
|
+
createConversationComputerContentAccess(threadId: string, options: ConversationThreadOptions & {
|
|
1505
|
+
path: string;
|
|
1506
|
+
download?: boolean;
|
|
1507
|
+
}): Promise<ThreadComputerContentAccess>;
|
|
1397
1508
|
setConversationRuntimeSelection(threadId: string, request: ConversationRuntimeSelectionRequest): Promise<ConversationRuntimeSelectionResult>;
|
|
1398
1509
|
resolveConversationRun(runId: string, request: ConversationRunRequest): Promise<ConversationRunResult>;
|
|
1399
1510
|
deleteConversationThread(threadId: string, options: ConversationThreadOptions, requestOptions?: RequestOptions): Promise<ThreadDeleteResult>;
|
|
1400
1511
|
getAgentThread(agentId: string, threadId: string, options: ThreadDetailOptions): Promise<ThreadDetail>;
|
|
1512
|
+
getAgentComputer(agentId: string, threadId: string, options: ThreadDeleteOptions): Promise<ThreadComputerStatus>;
|
|
1513
|
+
listAgentComputerFiles(agentId: string, threadId: string, options: ThreadDeleteOptions & ThreadComputerFileOptions): Promise<ThreadComputerFiles>;
|
|
1514
|
+
readAgentComputerFile(agentId: string, threadId: string, options: ThreadDeleteOptions & {
|
|
1515
|
+
path: string;
|
|
1516
|
+
}): Promise<ThreadComputerFileText>;
|
|
1517
|
+
createAgentComputerContentAccess(agentId: string, threadId: string, options: ThreadDeleteOptions & {
|
|
1518
|
+
path: string;
|
|
1519
|
+
download?: boolean;
|
|
1520
|
+
}): Promise<ThreadComputerContentAccess>;
|
|
1401
1521
|
deleteAgentThread(agentId: string, threadId: string, options: ThreadDeleteOptions, requestOptions?: RequestOptions): Promise<ThreadDeleteResult>;
|
|
1402
1522
|
getAgentRunContext(agentId: string, runId: string, options: RunContextOptions): Promise<RunContext>;
|
|
1403
1523
|
cancelAgentRun(agentId: string, runId: string, options: EmbedRunCancelOptions, requestOptions?: RequestOptions): Promise<RunCancelResult>;
|
|
@@ -1464,6 +1584,41 @@ declare class InstructionsNamespace {
|
|
|
1464
1584
|
publish(instructionId: string, options?: RequestOptions): Promise<Record<string, unknown>>;
|
|
1465
1585
|
}
|
|
1466
1586
|
|
|
1587
|
+
type HostedArtifactDraft = {
|
|
1588
|
+
artifact_id: string;
|
|
1589
|
+
draft_snapshot: Record<string, unknown>;
|
|
1590
|
+
draft_version: number;
|
|
1591
|
+
draft_hash: string;
|
|
1592
|
+
runtime_hash: string;
|
|
1593
|
+
last_origin: string;
|
|
1594
|
+
credential_refs: Array<{
|
|
1595
|
+
key: string;
|
|
1596
|
+
credential_id: string | null;
|
|
1597
|
+
credential_name: string | null;
|
|
1598
|
+
status: string;
|
|
1599
|
+
}>;
|
|
1600
|
+
legacy_credential_refs: Array<{
|
|
1601
|
+
key: string;
|
|
1602
|
+
legacy_credential_id: string;
|
|
1603
|
+
credential_id: string | null;
|
|
1604
|
+
credential_name: string | null;
|
|
1605
|
+
status: string;
|
|
1606
|
+
}>;
|
|
1607
|
+
};
|
|
1608
|
+
declare class HostedArtifactsNamespace {
|
|
1609
|
+
private readonly http;
|
|
1610
|
+
constructor(http: Agents24HttpClient);
|
|
1611
|
+
create(payload: Record<string, unknown>, options?: RequestOptions): Promise<Record<string, unknown>>;
|
|
1612
|
+
get(id: string): Promise<Record<string, unknown>>;
|
|
1613
|
+
draft(id: string): Promise<HostedArtifactDraft>;
|
|
1614
|
+
saveDraft(id: string, snapshot: Record<string, unknown>, expectedVersion: number, options?: RequestOptions): Promise<HostedArtifactDraft>;
|
|
1615
|
+
build(id: string, draft: Pick<HostedArtifactDraft, "draft_version" | "draft_hash" | "runtime_hash">, options?: RequestOptions): Promise<Record<string, unknown>>;
|
|
1616
|
+
buildStatus(id: string, buildId: string): Promise<Record<string, unknown>>;
|
|
1617
|
+
test(id: string, payload: Record<string, unknown>, options?: RequestOptions): Promise<Record<string, unknown>>;
|
|
1618
|
+
run(runId: string): Promise<Record<string, unknown>>;
|
|
1619
|
+
analyzeDependencies(payload: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1467
1622
|
declare class ResourcePoliciesNamespace {
|
|
1468
1623
|
protected readonly http: Agents24HttpClient;
|
|
1469
1624
|
constructor(http: Agents24HttpClient);
|
|
@@ -1495,6 +1650,7 @@ declare class Agents24 {
|
|
|
1495
1650
|
readonly clientDeployments: ClientDeploymentsNamespace;
|
|
1496
1651
|
readonly clientSessions: ClientSessionsNamespace;
|
|
1497
1652
|
readonly instructions: InstructionsNamespace;
|
|
1653
|
+
readonly hostedArtifacts: HostedArtifactsNamespace;
|
|
1498
1654
|
readonly resourcePolicies: ResourcePoliciesNamespace;
|
|
1499
1655
|
readonly customerProfiles: CustomerProfilesNamespace;
|
|
1500
1656
|
constructor(options: Agents24NodeOptions);
|
|
@@ -1502,4 +1658,4 @@ declare class Agents24 {
|
|
|
1502
1658
|
graph(): GraphBuilder;
|
|
1503
1659
|
}
|
|
1504
1660
|
|
|
1505
|
-
export { type DelegationActionRequest as $, Agents24 as A, type BackendSessionRequestOptions as B, type ClearCustomerResourcePolicyAssignmentResult as C, type ClientDeploymentListQuery as D, type ClientDeploymentListResponse as E, type ClientNativeProfile as F, type ClientRuntimeNativeProfileInput as G, type ClientRuntimeOidcConfig as H, type ClientRuntimePolicyInput as I, type ClientSessionCredentials as J, type ControlPlaneAgentRunRequest as K, type ControlPlaneRunEventsResponse as L, type ConversationRunRequest as M, type ConversationRunResult as N, type ConversationRuntimeSelectionRequest as O, type ConversationRuntimeSelectionResult as P, type ConversationThreadOptions as Q, type CreateBackendClientSessionRequest as R, type CreateClientDeploymentRequest as S, type CustomerIdentityRequest as T, type CustomerPrincipalRefRequest as U, type CustomerProfile as V, type CustomerProfileList as W, type CustomerProfilePatch as X, type CustomerProfileSearchOptions as Y, type CustomerResourcePolicyAssignment as Z, type DelegationAction as _, type AgentCreateRequest as a, type
|
|
1661
|
+
export { type DelegationActionRequest as $, Agents24 as A, type BackendSessionRequestOptions as B, type ClearCustomerResourcePolicyAssignmentResult as C, type ClientDeploymentListQuery as D, type ClientDeploymentListResponse as E, type ClientNativeProfile as F, type ClientRuntimeNativeProfileInput as G, type ClientRuntimeOidcConfig as H, type ClientRuntimePolicyInput as I, type ClientSessionCredentials as J, type ControlPlaneAgentRunRequest as K, type ControlPlaneRunEventsResponse as L, type ConversationRunRequest as M, type ConversationRunResult as N, type ConversationRuntimeSelectionRequest as O, type ConversationRuntimeSelectionResult as P, type ConversationThreadOptions as Q, type CreateBackendClientSessionRequest as R, type CreateClientDeploymentRequest as S, type CustomerIdentityRequest as T, type CustomerPrincipalRefRequest as U, type CustomerProfile as V, type CustomerProfileList as W, type CustomerProfilePatch as X, type CustomerProfileSearchOptions as Y, type CustomerResourcePolicyAssignment as Z, type DelegationAction as _, type AgentCreateRequest as a, type ResourceInstallationPublishRequest as a$, type DelegationEvents as a0, type DelegationHistory as a1, type DelegationHistoryTurn as a2, type DelegationStatus as a3, type DelegationTask as a4, type DelegationTaskList as a5, type EffectiveCustomerResourcePolicyRequest as a6, type EffectiveResourcePolicy as a7, type EmbedAgentAliasResolution as a8, type EmbedAttachmentContentAccessRequest as a9, type McpAuthStartRequest as aA, type McpAuthStartResult as aB, type MultiAgentThreadListRequest as aC, type MultiAgentThreadSummaryEventOptions as aD, type NativePlatform as aE, type NodeAuthoringSpec as aF, type NodeCatalogItem as aG, type NodeCatalogResponse as aH, type NodeSchemaResponse as aI, type PortableResourceKind as aJ, type RequestOptions as aK, type ResetResourcePolicyQuotaRequest as aL, type ResourceCallableBinding as aM, type ResourceCallableBindingStatus as aN, type ResourceCandidateList as aO, type ResourceInstallation as aP, type ResourceInstallationApplication as aQ, type ResourceInstallationApplyRequest as aR, type ResourceInstallationBinding as aS, type ResourceInstallationCreateRequest as aT, type ResourceInstallationDeploymentRequest as aU, type ResourceInstallationLinkRequest as aV, type ResourceInstallationList as aW, type ResourceInstallationOperation as aX, type ResourceInstallationPlan as aY, type ResourceInstallationPlanUpload as aZ, type ResourceInstallationPublication as a_, type EmbedCustomerPrincipalResolveRequest as aa, type EmbedCustomerPrincipalResolveResponse as ab, type EmbedResourcePolicyRequest as ac, type EmbedRunCancelOptions as ad, type EmbedRunStartRequest as ae, type EmbedRuntimeBootstrap as af, type EmbedStreamRequest as ag, type EmbedThreadMessageEdit as ah, type EmbedThreadMessageScope as ai, type EmbedThreadMessageSubmit as aj, type EmbeddedResponseFeedbackInput as ak, type FailureCategory as al, type FailureView as am, type FeedbackRating as an, type FeedbackReason as ao, GraphBuilder as ap, type GraphDefinition as aq, type GraphEdge as ar, type GraphHints as as, type GraphNode as at, type GraphValueRef as au, type HitlAction as av, type HitlAnswer as aw, type HostedArtifactDraft as ax, HostedArtifactsNamespace as ay, type LatestOrPinnedPolicy as az, AgentDefinitionBuilder as b, type ResourceInstallationPullAcceptRequest as b0, type ResourceInstallationPullChange as b1, type ResourceInstallationPullPayload as b2, type ResourceInstallationPullPlan as b3, type ResourceInstallationResourceListOptions as b4, type ResourceInstallationSecretStatus as b5, type ResourceInstallationSecretsRequest as b6, type ResourcePackageArchive as b7, type ResourcePackageCandidateOptions as b8, type ResourcePackageDependency as b9, type StartRunResult as bA, type StateVariableDefinition as bB, type StreamRequestOptions as bC, type StreamResult as bD, type ThreadComputerContentAccess as bE, type ThreadComputerFile as bF, type ThreadComputerFileOptions as bG, type ThreadComputerFileText as bH, type ThreadComputerFiles as bI, type ThreadComputerStatus as bJ, type ThreadDeleteOptions as bK, type ThreadDetailOptions as bL, type ThreadListOptions as bM, type ThreadSummaryEventOptions as bN, type TraceContent as bO, type TraceError as bP, type TraceSpan as bQ, type TraceSpanKind as bR, type TraceSpanStatus as bS, type TraceView as bT, type UpdateClientDeploymentRequest as bU, type WorkflowInputDefinition as bV, type ResourcePackageDiagnostic as ba, type ResourcePackageExportPlan as bb, type ResourcePackageExportRequest as bc, type ResourcePackageImportPreview as bd, type ResourcePackageImportResult as be, type ResourcePackageImportUpload as bf, type ResourcePackageUpload as bg, type ResourcePackageValidationResult as bh, type ResourcePolicyList as bi, type ResourcePolicyQuotaSchedule as bj, type ResourcePolicyQuotaScheduleResult as bk, type ResourcePolicySubjectRef as bl, type ResourcePolicySummary as bm, type ResourceSelector as bn, type ResourceToolExport as bo, type ResponseFeedback as bp, type ResponseFeedbackResult as bq, type ResumeRunRequest as br, type RunCancelOptions as bs, type RunContextOptions as bt, type RunStatus as bu, type RunTrace as bv, type ServerAttachmentUploadOptions as bw, type ServerEmbedAttachmentUploadOptions as bx, type SetCustomerResourcePolicyAssignmentRequest as by, type SetResourcePolicyQuotaScheduleRequest as bz, type AgentDefinitionOptions as c, type AgentListResponse as d, type AgentRef as e, type AgentResponse as f, type AgentStreamRequest as g, type AgentSummary as h, type AgentToolsetAttachment as i, type AgentUpdateRequest as j, type AgentValidationIssue as k, type AgentValidationResult as l, Agents24SDKError as m, type Agents24NodeErrorKind as n, type Agents24NodeOptions as o, type Agents24Options as p, type Agents24SDKErrorKind as q, type Agents24SDKSerializedError as r, type ArtifactDevelopmentSession as s, type ArtifactDevelopmentSessionAdmission as t, type ArtifactDevelopmentSessionPrepareRequest as u, type AttachRunRequest as v, type AttachmentContentAccessRequest as w, type BranchingHint as x, type ClientAuthMode as y, type ClientDeployment as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ToolInputOverrides, ContextWindow, RuntimeEvent, RunCancelResult, AttachmentUploadResult, AttachmentContentAccess, RunResumeResult, ThreadsResponse, ThreadSummaryEvent, ThreadDetail, ThreadDeleteResult, RunContext } from '@agents24/client/protocol';
|
|
1
|
+
import { ToolInputOverrides, ContextWindow, RuntimeEvent, ThreadMessagesPage, ThreadMessageSubmission, ThreadMessage, RunCancelResult, AttachmentUploadResult, AttachmentContentAccess, RunResumeResult, ThreadsResponse, ThreadSummaryEvent, ThreadDetail, ThreadDeleteResult, RunContext } from '@agents24/client/protocol';
|
|
2
2
|
|
|
3
3
|
type Agents24SDKErrorKind = "protocol" | "network" | "http";
|
|
4
4
|
type Agents24NodeErrorKind = Agents24SDKErrorKind;
|
|
@@ -166,6 +166,9 @@ type ControlPlaneAgentRunRequest = {
|
|
|
166
166
|
type StreamResult = {
|
|
167
167
|
threadId: string | null;
|
|
168
168
|
runId: string | null;
|
|
169
|
+
messageId?: string;
|
|
170
|
+
messageStatus?: "queued" | "blocked" | "steer_pending";
|
|
171
|
+
queuePosition?: number | null;
|
|
169
172
|
};
|
|
170
173
|
type EmbedStreamRequest = {
|
|
171
174
|
agent_version_id?: string;
|
|
@@ -274,6 +277,60 @@ type ThreadListOptions = {
|
|
|
274
277
|
skip?: number;
|
|
275
278
|
limit?: number;
|
|
276
279
|
};
|
|
280
|
+
type EmbedThreadMessageScope = {
|
|
281
|
+
externalUserId: string;
|
|
282
|
+
externalSessionId?: string;
|
|
283
|
+
runtimeTarget?: "draft" | "published";
|
|
284
|
+
integrationId: string;
|
|
285
|
+
};
|
|
286
|
+
type EmbedThreadMessageSubmit = EmbedThreadMessageScope & {
|
|
287
|
+
mode: "queue" | "steer";
|
|
288
|
+
input: string;
|
|
289
|
+
attachmentIds?: string[];
|
|
290
|
+
requestedModelId?: string;
|
|
291
|
+
toolInputs?: ToolInputOverrides;
|
|
292
|
+
metadata?: Record<string, unknown>;
|
|
293
|
+
};
|
|
294
|
+
type EmbedThreadMessageEdit = EmbedThreadMessageScope & {
|
|
295
|
+
revision: number;
|
|
296
|
+
input: string;
|
|
297
|
+
attachmentIds?: string[];
|
|
298
|
+
requestedModelId?: string;
|
|
299
|
+
mode?: "steer";
|
|
300
|
+
};
|
|
301
|
+
type ThreadComputerStatus = {
|
|
302
|
+
available: boolean;
|
|
303
|
+
status: string;
|
|
304
|
+
computer_id?: string;
|
|
305
|
+
actions: string[];
|
|
306
|
+
};
|
|
307
|
+
type ThreadComputerFile = {
|
|
308
|
+
path: string;
|
|
309
|
+
kind: "file" | "directory";
|
|
310
|
+
size_bytes: number | null;
|
|
311
|
+
};
|
|
312
|
+
type ThreadComputerFiles = {
|
|
313
|
+
items: ThreadComputerFile[];
|
|
314
|
+
next_cursor: number | null;
|
|
315
|
+
};
|
|
316
|
+
type ThreadComputerFileText = {
|
|
317
|
+
path: string;
|
|
318
|
+
content: string;
|
|
319
|
+
byte_size: number;
|
|
320
|
+
};
|
|
321
|
+
type ThreadComputerContentAccess = {
|
|
322
|
+
url: string;
|
|
323
|
+
snapshot_id: string;
|
|
324
|
+
path: string;
|
|
325
|
+
byte_size: number;
|
|
326
|
+
content_type: string;
|
|
327
|
+
expires_at: string;
|
|
328
|
+
};
|
|
329
|
+
type ThreadComputerFileOptions = {
|
|
330
|
+
path?: string;
|
|
331
|
+
cursor?: number;
|
|
332
|
+
limit?: number;
|
|
333
|
+
};
|
|
277
334
|
type ThreadDetailOptions = {
|
|
278
335
|
externalUserId: string;
|
|
279
336
|
externalSessionId?: string;
|
|
@@ -1327,6 +1384,33 @@ declare class AgentsNamespace {
|
|
|
1327
1384
|
validate(agentId: string): Promise<AgentValidationResult>;
|
|
1328
1385
|
publish(agentId: string, options?: RequestOptions): Promise<AgentResponse>;
|
|
1329
1386
|
startRun(agentId: string, payload: ControlPlaneAgentRunRequest, options?: RequestOptions): Promise<StartRunResult>;
|
|
1387
|
+
listThreadMessages(agentId: string, threadId: string, query?: {
|
|
1388
|
+
before?: number;
|
|
1389
|
+
limit?: number;
|
|
1390
|
+
}): Promise<ThreadMessagesPage>;
|
|
1391
|
+
submitThreadMessage(agentId: string, threadId: string, payload: {
|
|
1392
|
+
mode: "queue" | "steer";
|
|
1393
|
+
input: string;
|
|
1394
|
+
attachmentIds?: string[];
|
|
1395
|
+
requestedAgentId?: string;
|
|
1396
|
+
requestedModelId?: string;
|
|
1397
|
+
}, options?: RequestOptions): Promise<ThreadMessageSubmission>;
|
|
1398
|
+
editPendingMessage(agentId: string, message: ThreadMessage, payload: {
|
|
1399
|
+
input: string;
|
|
1400
|
+
attachmentIds?: string[];
|
|
1401
|
+
requestedAgentId?: string;
|
|
1402
|
+
requestedModelId?: string;
|
|
1403
|
+
mode?: "steer";
|
|
1404
|
+
}): Promise<ThreadMessage>;
|
|
1405
|
+
removePendingMessage(agentId: string, message: ThreadMessage): Promise<{
|
|
1406
|
+
message_id: string;
|
|
1407
|
+
status: "removed";
|
|
1408
|
+
}>;
|
|
1409
|
+
resumeThreadQueue(agentId: string, threadId: string): Promise<{
|
|
1410
|
+
thread_id: string;
|
|
1411
|
+
paused: boolean;
|
|
1412
|
+
run_id: string | null;
|
|
1413
|
+
}>;
|
|
1330
1414
|
stream(agentId: string, payload: AgentStreamRequest, onEvent?: (event: RuntimeEvent) => void | Promise<void>, mode?: "debug" | "production" | string, options?: StreamRequestOptions): Promise<StreamResult>;
|
|
1331
1415
|
resumeRun(runId: string, payload: Record<string, unknown>, options?: RequestOptions): Promise<Record<string, unknown>>;
|
|
1332
1416
|
cancelRun(runId: string, options?: RunCancelOptions): Promise<RunCancelResult>;
|
|
@@ -1393,11 +1477,47 @@ declare class EmbedNamespace {
|
|
|
1393
1477
|
listAgentThreadsMulti(options: MultiAgentThreadListRequest): Promise<ThreadsResponse>;
|
|
1394
1478
|
subscribeAgentThreadEvents(agentId: string, options: ThreadSummaryEventOptions, onEvent: (event: ThreadSummaryEvent) => void | Promise<void>): Promise<void>;
|
|
1395
1479
|
subscribeAgentThreadEventsMulti(options: MultiAgentThreadSummaryEventOptions, onEvent: (event: ThreadSummaryEvent) => void | Promise<void>): Promise<void>;
|
|
1480
|
+
private threadMessageQuery;
|
|
1481
|
+
listAgentThreadMessages(agentId: string, threadId: string, options: EmbedThreadMessageScope & {
|
|
1482
|
+
before?: number;
|
|
1483
|
+
limit?: number;
|
|
1484
|
+
}): Promise<ThreadMessagesPage>;
|
|
1485
|
+
submitAgentThreadMessage(agentId: string, threadId: string, payload: EmbedThreadMessageSubmit, options?: RequestOptions): Promise<ThreadMessageSubmission>;
|
|
1486
|
+
editAgentThreadMessage(agentId: string, threadId: string, messageId: string, payload: EmbedThreadMessageEdit): Promise<ThreadMessage>;
|
|
1487
|
+
removeAgentThreadMessage(agentId: string, threadId: string, messageId: string, scope: EmbedThreadMessageScope & {
|
|
1488
|
+
revision: number;
|
|
1489
|
+
}): Promise<{
|
|
1490
|
+
message_id: string;
|
|
1491
|
+
status: "removed";
|
|
1492
|
+
}>;
|
|
1493
|
+
resumeAgentThreadQueue(agentId: string, threadId: string, scope: EmbedThreadMessageScope): Promise<{
|
|
1494
|
+
thread_id: string;
|
|
1495
|
+
paused: boolean;
|
|
1496
|
+
run_id: string | null;
|
|
1497
|
+
}>;
|
|
1396
1498
|
getConversationThread(threadId: string, options: ConversationThreadOptions): Promise<ThreadDetail>;
|
|
1499
|
+
getConversationComputer(threadId: string, options: ConversationThreadOptions): Promise<ThreadComputerStatus>;
|
|
1500
|
+
listConversationComputerFiles(threadId: string, options: ConversationThreadOptions & ThreadComputerFileOptions): Promise<ThreadComputerFiles>;
|
|
1501
|
+
readConversationComputerFile(threadId: string, options: ConversationThreadOptions & {
|
|
1502
|
+
path: string;
|
|
1503
|
+
}): Promise<ThreadComputerFileText>;
|
|
1504
|
+
createConversationComputerContentAccess(threadId: string, options: ConversationThreadOptions & {
|
|
1505
|
+
path: string;
|
|
1506
|
+
download?: boolean;
|
|
1507
|
+
}): Promise<ThreadComputerContentAccess>;
|
|
1397
1508
|
setConversationRuntimeSelection(threadId: string, request: ConversationRuntimeSelectionRequest): Promise<ConversationRuntimeSelectionResult>;
|
|
1398
1509
|
resolveConversationRun(runId: string, request: ConversationRunRequest): Promise<ConversationRunResult>;
|
|
1399
1510
|
deleteConversationThread(threadId: string, options: ConversationThreadOptions, requestOptions?: RequestOptions): Promise<ThreadDeleteResult>;
|
|
1400
1511
|
getAgentThread(agentId: string, threadId: string, options: ThreadDetailOptions): Promise<ThreadDetail>;
|
|
1512
|
+
getAgentComputer(agentId: string, threadId: string, options: ThreadDeleteOptions): Promise<ThreadComputerStatus>;
|
|
1513
|
+
listAgentComputerFiles(agentId: string, threadId: string, options: ThreadDeleteOptions & ThreadComputerFileOptions): Promise<ThreadComputerFiles>;
|
|
1514
|
+
readAgentComputerFile(agentId: string, threadId: string, options: ThreadDeleteOptions & {
|
|
1515
|
+
path: string;
|
|
1516
|
+
}): Promise<ThreadComputerFileText>;
|
|
1517
|
+
createAgentComputerContentAccess(agentId: string, threadId: string, options: ThreadDeleteOptions & {
|
|
1518
|
+
path: string;
|
|
1519
|
+
download?: boolean;
|
|
1520
|
+
}): Promise<ThreadComputerContentAccess>;
|
|
1401
1521
|
deleteAgentThread(agentId: string, threadId: string, options: ThreadDeleteOptions, requestOptions?: RequestOptions): Promise<ThreadDeleteResult>;
|
|
1402
1522
|
getAgentRunContext(agentId: string, runId: string, options: RunContextOptions): Promise<RunContext>;
|
|
1403
1523
|
cancelAgentRun(agentId: string, runId: string, options: EmbedRunCancelOptions, requestOptions?: RequestOptions): Promise<RunCancelResult>;
|
|
@@ -1464,6 +1584,41 @@ declare class InstructionsNamespace {
|
|
|
1464
1584
|
publish(instructionId: string, options?: RequestOptions): Promise<Record<string, unknown>>;
|
|
1465
1585
|
}
|
|
1466
1586
|
|
|
1587
|
+
type HostedArtifactDraft = {
|
|
1588
|
+
artifact_id: string;
|
|
1589
|
+
draft_snapshot: Record<string, unknown>;
|
|
1590
|
+
draft_version: number;
|
|
1591
|
+
draft_hash: string;
|
|
1592
|
+
runtime_hash: string;
|
|
1593
|
+
last_origin: string;
|
|
1594
|
+
credential_refs: Array<{
|
|
1595
|
+
key: string;
|
|
1596
|
+
credential_id: string | null;
|
|
1597
|
+
credential_name: string | null;
|
|
1598
|
+
status: string;
|
|
1599
|
+
}>;
|
|
1600
|
+
legacy_credential_refs: Array<{
|
|
1601
|
+
key: string;
|
|
1602
|
+
legacy_credential_id: string;
|
|
1603
|
+
credential_id: string | null;
|
|
1604
|
+
credential_name: string | null;
|
|
1605
|
+
status: string;
|
|
1606
|
+
}>;
|
|
1607
|
+
};
|
|
1608
|
+
declare class HostedArtifactsNamespace {
|
|
1609
|
+
private readonly http;
|
|
1610
|
+
constructor(http: Agents24HttpClient);
|
|
1611
|
+
create(payload: Record<string, unknown>, options?: RequestOptions): Promise<Record<string, unknown>>;
|
|
1612
|
+
get(id: string): Promise<Record<string, unknown>>;
|
|
1613
|
+
draft(id: string): Promise<HostedArtifactDraft>;
|
|
1614
|
+
saveDraft(id: string, snapshot: Record<string, unknown>, expectedVersion: number, options?: RequestOptions): Promise<HostedArtifactDraft>;
|
|
1615
|
+
build(id: string, draft: Pick<HostedArtifactDraft, "draft_version" | "draft_hash" | "runtime_hash">, options?: RequestOptions): Promise<Record<string, unknown>>;
|
|
1616
|
+
buildStatus(id: string, buildId: string): Promise<Record<string, unknown>>;
|
|
1617
|
+
test(id: string, payload: Record<string, unknown>, options?: RequestOptions): Promise<Record<string, unknown>>;
|
|
1618
|
+
run(runId: string): Promise<Record<string, unknown>>;
|
|
1619
|
+
analyzeDependencies(payload: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1467
1622
|
declare class ResourcePoliciesNamespace {
|
|
1468
1623
|
protected readonly http: Agents24HttpClient;
|
|
1469
1624
|
constructor(http: Agents24HttpClient);
|
|
@@ -1495,6 +1650,7 @@ declare class Agents24 {
|
|
|
1495
1650
|
readonly clientDeployments: ClientDeploymentsNamespace;
|
|
1496
1651
|
readonly clientSessions: ClientSessionsNamespace;
|
|
1497
1652
|
readonly instructions: InstructionsNamespace;
|
|
1653
|
+
readonly hostedArtifacts: HostedArtifactsNamespace;
|
|
1498
1654
|
readonly resourcePolicies: ResourcePoliciesNamespace;
|
|
1499
1655
|
readonly customerProfiles: CustomerProfilesNamespace;
|
|
1500
1656
|
constructor(options: Agents24NodeOptions);
|
|
@@ -1502,4 +1658,4 @@ declare class Agents24 {
|
|
|
1502
1658
|
graph(): GraphBuilder;
|
|
1503
1659
|
}
|
|
1504
1660
|
|
|
1505
|
-
export { type DelegationActionRequest as $, Agents24 as A, type BackendSessionRequestOptions as B, type ClearCustomerResourcePolicyAssignmentResult as C, type ClientDeploymentListQuery as D, type ClientDeploymentListResponse as E, type ClientNativeProfile as F, type ClientRuntimeNativeProfileInput as G, type ClientRuntimeOidcConfig as H, type ClientRuntimePolicyInput as I, type ClientSessionCredentials as J, type ControlPlaneAgentRunRequest as K, type ControlPlaneRunEventsResponse as L, type ConversationRunRequest as M, type ConversationRunResult as N, type ConversationRuntimeSelectionRequest as O, type ConversationRuntimeSelectionResult as P, type ConversationThreadOptions as Q, type CreateBackendClientSessionRequest as R, type CreateClientDeploymentRequest as S, type CustomerIdentityRequest as T, type CustomerPrincipalRefRequest as U, type CustomerProfile as V, type CustomerProfileList as W, type CustomerProfilePatch as X, type CustomerProfileSearchOptions as Y, type CustomerResourcePolicyAssignment as Z, type DelegationAction as _, type AgentCreateRequest as a, type
|
|
1661
|
+
export { type DelegationActionRequest as $, Agents24 as A, type BackendSessionRequestOptions as B, type ClearCustomerResourcePolicyAssignmentResult as C, type ClientDeploymentListQuery as D, type ClientDeploymentListResponse as E, type ClientNativeProfile as F, type ClientRuntimeNativeProfileInput as G, type ClientRuntimeOidcConfig as H, type ClientRuntimePolicyInput as I, type ClientSessionCredentials as J, type ControlPlaneAgentRunRequest as K, type ControlPlaneRunEventsResponse as L, type ConversationRunRequest as M, type ConversationRunResult as N, type ConversationRuntimeSelectionRequest as O, type ConversationRuntimeSelectionResult as P, type ConversationThreadOptions as Q, type CreateBackendClientSessionRequest as R, type CreateClientDeploymentRequest as S, type CustomerIdentityRequest as T, type CustomerPrincipalRefRequest as U, type CustomerProfile as V, type CustomerProfileList as W, type CustomerProfilePatch as X, type CustomerProfileSearchOptions as Y, type CustomerResourcePolicyAssignment as Z, type DelegationAction as _, type AgentCreateRequest as a, type ResourceInstallationPublishRequest as a$, type DelegationEvents as a0, type DelegationHistory as a1, type DelegationHistoryTurn as a2, type DelegationStatus as a3, type DelegationTask as a4, type DelegationTaskList as a5, type EffectiveCustomerResourcePolicyRequest as a6, type EffectiveResourcePolicy as a7, type EmbedAgentAliasResolution as a8, type EmbedAttachmentContentAccessRequest as a9, type McpAuthStartRequest as aA, type McpAuthStartResult as aB, type MultiAgentThreadListRequest as aC, type MultiAgentThreadSummaryEventOptions as aD, type NativePlatform as aE, type NodeAuthoringSpec as aF, type NodeCatalogItem as aG, type NodeCatalogResponse as aH, type NodeSchemaResponse as aI, type PortableResourceKind as aJ, type RequestOptions as aK, type ResetResourcePolicyQuotaRequest as aL, type ResourceCallableBinding as aM, type ResourceCallableBindingStatus as aN, type ResourceCandidateList as aO, type ResourceInstallation as aP, type ResourceInstallationApplication as aQ, type ResourceInstallationApplyRequest as aR, type ResourceInstallationBinding as aS, type ResourceInstallationCreateRequest as aT, type ResourceInstallationDeploymentRequest as aU, type ResourceInstallationLinkRequest as aV, type ResourceInstallationList as aW, type ResourceInstallationOperation as aX, type ResourceInstallationPlan as aY, type ResourceInstallationPlanUpload as aZ, type ResourceInstallationPublication as a_, type EmbedCustomerPrincipalResolveRequest as aa, type EmbedCustomerPrincipalResolveResponse as ab, type EmbedResourcePolicyRequest as ac, type EmbedRunCancelOptions as ad, type EmbedRunStartRequest as ae, type EmbedRuntimeBootstrap as af, type EmbedStreamRequest as ag, type EmbedThreadMessageEdit as ah, type EmbedThreadMessageScope as ai, type EmbedThreadMessageSubmit as aj, type EmbeddedResponseFeedbackInput as ak, type FailureCategory as al, type FailureView as am, type FeedbackRating as an, type FeedbackReason as ao, GraphBuilder as ap, type GraphDefinition as aq, type GraphEdge as ar, type GraphHints as as, type GraphNode as at, type GraphValueRef as au, type HitlAction as av, type HitlAnswer as aw, type HostedArtifactDraft as ax, HostedArtifactsNamespace as ay, type LatestOrPinnedPolicy as az, AgentDefinitionBuilder as b, type ResourceInstallationPullAcceptRequest as b0, type ResourceInstallationPullChange as b1, type ResourceInstallationPullPayload as b2, type ResourceInstallationPullPlan as b3, type ResourceInstallationResourceListOptions as b4, type ResourceInstallationSecretStatus as b5, type ResourceInstallationSecretsRequest as b6, type ResourcePackageArchive as b7, type ResourcePackageCandidateOptions as b8, type ResourcePackageDependency as b9, type StartRunResult as bA, type StateVariableDefinition as bB, type StreamRequestOptions as bC, type StreamResult as bD, type ThreadComputerContentAccess as bE, type ThreadComputerFile as bF, type ThreadComputerFileOptions as bG, type ThreadComputerFileText as bH, type ThreadComputerFiles as bI, type ThreadComputerStatus as bJ, type ThreadDeleteOptions as bK, type ThreadDetailOptions as bL, type ThreadListOptions as bM, type ThreadSummaryEventOptions as bN, type TraceContent as bO, type TraceError as bP, type TraceSpan as bQ, type TraceSpanKind as bR, type TraceSpanStatus as bS, type TraceView as bT, type UpdateClientDeploymentRequest as bU, type WorkflowInputDefinition as bV, type ResourcePackageDiagnostic as ba, type ResourcePackageExportPlan as bb, type ResourcePackageExportRequest as bc, type ResourcePackageImportPreview as bd, type ResourcePackageImportResult as be, type ResourcePackageImportUpload as bf, type ResourcePackageUpload as bg, type ResourcePackageValidationResult as bh, type ResourcePolicyList as bi, type ResourcePolicyQuotaSchedule as bj, type ResourcePolicyQuotaScheduleResult as bk, type ResourcePolicySubjectRef as bl, type ResourcePolicySummary as bm, type ResourceSelector as bn, type ResourceToolExport as bo, type ResponseFeedback as bp, type ResponseFeedbackResult as bq, type ResumeRunRequest as br, type RunCancelOptions as bs, type RunContextOptions as bt, type RunStatus as bu, type RunTrace as bv, type ServerAttachmentUploadOptions as bw, type ServerEmbedAttachmentUploadOptions as bx, type SetCustomerResourcePolicyAssignmentRequest as by, type SetResourcePolicyQuotaScheduleRequest as bz, type AgentDefinitionOptions as c, type AgentListResponse as d, type AgentRef as e, type AgentResponse as f, type AgentStreamRequest as g, type AgentSummary as h, type AgentToolsetAttachment as i, type AgentUpdateRequest as j, type AgentValidationIssue as k, type AgentValidationResult as l, Agents24SDKError as m, type Agents24NodeErrorKind as n, type Agents24NodeOptions as o, type Agents24Options as p, type Agents24SDKErrorKind as q, type Agents24SDKSerializedError as r, type ArtifactDevelopmentSession as s, type ArtifactDevelopmentSessionAdmission as t, type ArtifactDevelopmentSessionPrepareRequest as u, type AttachRunRequest as v, type AttachmentContentAccessRequest as w, type BranchingHint as x, type ClientAuthMode as y, type ClientDeployment as z };
|