@agents24/node 0.5.8 → 0.5.10
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 +5 -5
- package/dist/bff.cjs +89 -34
- package/dist/bff.cjs.map +1 -1
- package/dist/bff.d.cts +13 -2
- package/dist/bff.d.ts +13 -2
- package/dist/bff.js +89 -34
- package/dist/bff.js.map +1 -1
- package/dist/{client-B-fZ0Vk_.d.cts → client-xs_JXgvz.d.cts} +31 -6
- package/dist/{client-B-fZ0Vk_.d.ts → client-xs_JXgvz.d.ts} +31 -6
- package/dist/index.cjs +12 -1
- 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 +12 -1
- package/dist/index.js.map +1 -1
- package/dist/types/agents.d.ts +2 -2
- package/dist/types/agents.d.ts.map +1 -1
- package/dist/types/bff-agent-resolution.d.ts +11 -0
- package/dist/types/bff-agent-resolution.d.ts.map +1 -1
- package/dist/types/bff-diagnostics.d.ts +5 -0
- package/dist/types/bff-diagnostics.d.ts.map +1 -0
- package/dist/types/bff-errors.d.ts.map +1 -1
- package/dist/types/bff.d.ts +1 -1
- package/dist/types/bff.d.ts.map +1 -1
- package/dist/types/embed.d.ts +2 -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/generated/resourceInstallations.d.ts.map +1 -1
- package/dist/types/types.d.ts +28 -4
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -52,14 +52,22 @@ type AgentStreamRequest = {
|
|
|
52
52
|
tool_inputs?: ToolInputOverrides;
|
|
53
53
|
requested_model_id?: string;
|
|
54
54
|
requested_model_node_id?: string;
|
|
55
|
-
external_user_id?: string;
|
|
56
|
-
external_session_id?: string;
|
|
57
|
-
metadata?: Record<string, unknown>;
|
|
58
55
|
client?: Record<string, unknown>;
|
|
59
56
|
node_state?: Record<string, unknown>;
|
|
60
57
|
runtime_target?: "draft" | "published";
|
|
61
58
|
agent_version_id?: string;
|
|
62
59
|
};
|
|
60
|
+
type ControlPlaneAgentRunRequest = {
|
|
61
|
+
input?: string;
|
|
62
|
+
messages?: Array<Record<string, unknown>>;
|
|
63
|
+
thread_id?: string;
|
|
64
|
+
runtime_context?: Record<string, unknown>;
|
|
65
|
+
tool_inputs?: ToolInputOverrides;
|
|
66
|
+
requested_model_id?: string;
|
|
67
|
+
requested_model_node_id?: string;
|
|
68
|
+
runtime_target?: "draft" | "published";
|
|
69
|
+
agent_version_id?: string;
|
|
70
|
+
};
|
|
63
71
|
type StreamResult = {
|
|
64
72
|
threadId: string | null;
|
|
65
73
|
runId: string | null;
|
|
@@ -70,7 +78,6 @@ type EmbedStreamRequest = {
|
|
|
70
78
|
messages?: Array<Record<string, unknown>>;
|
|
71
79
|
attachment_ids?: string[];
|
|
72
80
|
thread_id?: string;
|
|
73
|
-
runtime_context?: Record<string, unknown>;
|
|
74
81
|
tool_inputs?: ToolInputOverrides;
|
|
75
82
|
requested_model_id?: string;
|
|
76
83
|
requested_model_node_id?: string;
|
|
@@ -81,6 +88,9 @@ type EmbedStreamRequest = {
|
|
|
81
88
|
runtime_target?: "draft" | "published";
|
|
82
89
|
integration_id: string;
|
|
83
90
|
};
|
|
91
|
+
type EmbedRunStartRequest = Omit<EmbedStreamRequest, "thread_id"> & {
|
|
92
|
+
thread_id?: string;
|
|
93
|
+
};
|
|
84
94
|
type AttachRunRequest = {
|
|
85
95
|
external_user_id: string;
|
|
86
96
|
external_session_id?: string;
|
|
@@ -466,6 +476,12 @@ type RunStatus = {
|
|
|
466
476
|
id: string;
|
|
467
477
|
status: string;
|
|
468
478
|
result?: unknown;
|
|
479
|
+
assistant_output?: {
|
|
480
|
+
text: string | null;
|
|
481
|
+
final_output: unknown;
|
|
482
|
+
final_output_available: boolean;
|
|
483
|
+
};
|
|
484
|
+
model_context_summary?: Record<string, unknown>;
|
|
469
485
|
failure?: FailureView | null;
|
|
470
486
|
checkpoint?: Record<string, unknown> | null;
|
|
471
487
|
run_usage?: Record<string, unknown>;
|
|
@@ -727,6 +743,8 @@ type ResourcePackageImportUpload = ResourcePackageUpload & {
|
|
|
727
743
|
};
|
|
728
744
|
type ResourceInstallationPlanUpload = ResourcePackageUpload & {
|
|
729
745
|
prune?: boolean;
|
|
746
|
+
integrationMode?: "publish-only" | "bff" | "client-deployment";
|
|
747
|
+
primaryResourceKey?: string;
|
|
730
748
|
};
|
|
731
749
|
type ResourceInstallationPullChange = {
|
|
732
750
|
status: "A" | "M" | "D";
|
|
@@ -965,12 +983,18 @@ type ResourceInstallationCreateRequest = {
|
|
|
965
983
|
package_name: string;
|
|
966
984
|
operation_id: string;
|
|
967
985
|
};
|
|
986
|
+
type ResourceInstallationApplication = {
|
|
987
|
+
integration_mode: "publish-only" | "bff" | "client-deployment";
|
|
988
|
+
primary_resource_key: string | null;
|
|
989
|
+
};
|
|
968
990
|
type ResourceInstallationPlan = {
|
|
969
991
|
installation_id: string | null;
|
|
970
992
|
operation_id: string;
|
|
971
993
|
package_id: string;
|
|
972
994
|
package_name: string;
|
|
973
995
|
package_hash: string;
|
|
996
|
+
application: ResourceInstallationApplication;
|
|
997
|
+
pending_selections: Array<Record<string, unknown>>;
|
|
974
998
|
actions: Array<Record<string, unknown>>;
|
|
975
999
|
external_requirements: Array<Record<string, unknown>>;
|
|
976
1000
|
artifact_actions: Array<Record<string, unknown>>;
|
|
@@ -1207,7 +1231,7 @@ declare class AgentsNamespace {
|
|
|
1207
1231
|
schema(nodeTypes: string[]): Promise<NodeSchemaResponse>;
|
|
1208
1232
|
validate(agentId: string): Promise<AgentValidationResult>;
|
|
1209
1233
|
publish(agentId: string, options?: RequestOptions): Promise<AgentResponse>;
|
|
1210
|
-
startRun(agentId: string, payload:
|
|
1234
|
+
startRun(agentId: string, payload: ControlPlaneAgentRunRequest, options?: RequestOptions): Promise<StartRunResult>;
|
|
1211
1235
|
stream(agentId: string, payload: AgentStreamRequest, onEvent?: (event: RuntimeEvent) => void | Promise<void>, mode?: "debug" | "production" | string, options?: StreamRequestOptions): Promise<StreamResult>;
|
|
1212
1236
|
resumeRun(runId: string, payload: Record<string, unknown>, options?: RequestOptions): Promise<Record<string, unknown>>;
|
|
1213
1237
|
cancelRun(runId: string, options?: RunCancelOptions): Promise<RunCancelResult>;
|
|
@@ -1261,6 +1285,7 @@ declare class EmbedNamespace {
|
|
|
1261
1285
|
private readonly http;
|
|
1262
1286
|
constructor(http: Agents24HttpClient);
|
|
1263
1287
|
streamAgent(agentId: string, payload: EmbedStreamRequest, onEvent?: (event: RuntimeEvent) => void | Promise<void>, options?: StreamRequestOptions): Promise<StreamResult>;
|
|
1288
|
+
startAgentRun(agentId: string, payload: EmbedRunStartRequest, options?: RequestOptions): Promise<StartRunResult>;
|
|
1264
1289
|
attachAgentRun(agentId: string, runId: string, payload: AttachRunRequest, onEvent?: (event: RuntimeEvent) => void | Promise<void>, options?: StreamRequestOptions): Promise<StreamResult>;
|
|
1265
1290
|
private stream;
|
|
1266
1291
|
resumeAgentRun(agentId: string, runId: string, payload: ResumeRunRequest, options?: RequestOptions): Promise<RunResumeResult>;
|
|
@@ -1381,4 +1406,4 @@ declare class Agents24 {
|
|
|
1381
1406
|
graph(): GraphBuilder;
|
|
1382
1407
|
}
|
|
1383
1408
|
|
|
1384
|
-
export { type
|
|
1409
|
+
export { type EffectiveResourcePolicy 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 EffectiveCustomerResourcePolicyRequest as _, type AgentCreateRequest as a, type ResourcePackageExportRequest as a$, type EmbedAgentAliasResolution as a0, type EmbedAttachmentContentAccessRequest as a1, type EmbedCustomerPrincipalResolveRequest as a2, type EmbedCustomerPrincipalResolveResponse as a3, type EmbedResourcePolicyRequest as a4, type EmbedRunCancelOptions as a5, type EmbedRunStartRequest as a6, type EmbedRuntimeBootstrap as a7, type EmbedStreamRequest as a8, type EmbeddedResponseFeedbackInput as a9, type ResourceCallableBindingStatus as aA, type ResourceCandidateList as aB, type ResourceInstallation as aC, type ResourceInstallationApplication as aD, type ResourceInstallationApplyRequest as aE, type ResourceInstallationBinding as aF, type ResourceInstallationCreateRequest as aG, type ResourceInstallationDeploymentRequest as aH, type ResourceInstallationLinkRequest as aI, type ResourceInstallationList as aJ, type ResourceInstallationOperation as aK, type ResourceInstallationPlan as aL, type ResourceInstallationPlanUpload as aM, type ResourceInstallationPublication as aN, type ResourceInstallationPublishRequest as aO, type ResourceInstallationPullAcceptRequest as aP, type ResourceInstallationPullChange as aQ, type ResourceInstallationPullPayload as aR, type ResourceInstallationPullPlan as aS, type ResourceInstallationResourceListOptions as aT, type ResourceInstallationSecretStatus as aU, type ResourceInstallationSecretsRequest as aV, type ResourcePackageArchive as aW, type ResourcePackageCandidateOptions as aX, type ResourcePackageDependency as aY, type ResourcePackageDiagnostic as aZ, type ResourcePackageExportPlan as a_, type FailureCategory as aa, type FailureView as ab, type FeedbackRating as ac, type FeedbackReason as ad, GraphBuilder as ae, type GraphDefinition as af, type GraphEdge as ag, type GraphHints as ah, type GraphNode as ai, type GraphValueRef as aj, type HitlAction as ak, type HitlAnswer as al, type LatestOrPinnedPolicy as am, type McpAuthStartRequest as an, type McpAuthStartResult as ao, type MultiAgentThreadListRequest as ap, type MultiAgentThreadSummaryEventOptions as aq, type NativePlatform as ar, type NodeAuthoringSpec as as, type NodeCatalogItem as at, type NodeCatalogResponse as au, type NodeSchemaResponse as av, type PortableResourceKind as aw, type RequestOptions as ax, type ResetResourcePolicyQuotaRequest as ay, type ResourceCallableBinding as az, AgentDefinitionBuilder as b, type ResourcePackageImportPreview as b0, type ResourcePackageImportResult as b1, type ResourcePackageImportUpload as b2, type ResourcePackageUpload as b3, type ResourcePackageValidationResult as b4, type ResourcePolicyList as b5, type ResourcePolicyQuotaSchedule as b6, type ResourcePolicyQuotaScheduleResult as b7, type ResourcePolicySubjectRef as b8, type ResourcePolicySummary as b9, type TraceView as bA, type UpdateClientDeploymentRequest as bB, type WorkflowInputDefinition as bC, type ResourceSelector as ba, type ResourceToolExport as bb, type ResponseFeedback as bc, type ResponseFeedbackResult as bd, type ResumeRunRequest as be, type RunCancelOptions as bf, type RunContextOptions as bg, type RunStatus as bh, type RunTrace as bi, type ServerAttachmentUploadOptions as bj, type ServerEmbedAttachmentUploadOptions as bk, type SetCustomerResourcePolicyAssignmentRequest as bl, type SetResourcePolicyQuotaScheduleRequest as bm, type StartRunResult as bn, type StateVariableDefinition as bo, type StreamRequestOptions as bp, type StreamResult as bq, type ThreadDeleteOptions as br, type ThreadDetailOptions as bs, type ThreadListOptions as bt, type ThreadSummaryEventOptions as bu, type TraceContent as bv, type TraceError as bw, type TraceSpan as bx, type TraceSpanKind as by, type TraceSpanStatus 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 };
|
|
@@ -52,14 +52,22 @@ type AgentStreamRequest = {
|
|
|
52
52
|
tool_inputs?: ToolInputOverrides;
|
|
53
53
|
requested_model_id?: string;
|
|
54
54
|
requested_model_node_id?: string;
|
|
55
|
-
external_user_id?: string;
|
|
56
|
-
external_session_id?: string;
|
|
57
|
-
metadata?: Record<string, unknown>;
|
|
58
55
|
client?: Record<string, unknown>;
|
|
59
56
|
node_state?: Record<string, unknown>;
|
|
60
57
|
runtime_target?: "draft" | "published";
|
|
61
58
|
agent_version_id?: string;
|
|
62
59
|
};
|
|
60
|
+
type ControlPlaneAgentRunRequest = {
|
|
61
|
+
input?: string;
|
|
62
|
+
messages?: Array<Record<string, unknown>>;
|
|
63
|
+
thread_id?: string;
|
|
64
|
+
runtime_context?: Record<string, unknown>;
|
|
65
|
+
tool_inputs?: ToolInputOverrides;
|
|
66
|
+
requested_model_id?: string;
|
|
67
|
+
requested_model_node_id?: string;
|
|
68
|
+
runtime_target?: "draft" | "published";
|
|
69
|
+
agent_version_id?: string;
|
|
70
|
+
};
|
|
63
71
|
type StreamResult = {
|
|
64
72
|
threadId: string | null;
|
|
65
73
|
runId: string | null;
|
|
@@ -70,7 +78,6 @@ type EmbedStreamRequest = {
|
|
|
70
78
|
messages?: Array<Record<string, unknown>>;
|
|
71
79
|
attachment_ids?: string[];
|
|
72
80
|
thread_id?: string;
|
|
73
|
-
runtime_context?: Record<string, unknown>;
|
|
74
81
|
tool_inputs?: ToolInputOverrides;
|
|
75
82
|
requested_model_id?: string;
|
|
76
83
|
requested_model_node_id?: string;
|
|
@@ -81,6 +88,9 @@ type EmbedStreamRequest = {
|
|
|
81
88
|
runtime_target?: "draft" | "published";
|
|
82
89
|
integration_id: string;
|
|
83
90
|
};
|
|
91
|
+
type EmbedRunStartRequest = Omit<EmbedStreamRequest, "thread_id"> & {
|
|
92
|
+
thread_id?: string;
|
|
93
|
+
};
|
|
84
94
|
type AttachRunRequest = {
|
|
85
95
|
external_user_id: string;
|
|
86
96
|
external_session_id?: string;
|
|
@@ -466,6 +476,12 @@ type RunStatus = {
|
|
|
466
476
|
id: string;
|
|
467
477
|
status: string;
|
|
468
478
|
result?: unknown;
|
|
479
|
+
assistant_output?: {
|
|
480
|
+
text: string | null;
|
|
481
|
+
final_output: unknown;
|
|
482
|
+
final_output_available: boolean;
|
|
483
|
+
};
|
|
484
|
+
model_context_summary?: Record<string, unknown>;
|
|
469
485
|
failure?: FailureView | null;
|
|
470
486
|
checkpoint?: Record<string, unknown> | null;
|
|
471
487
|
run_usage?: Record<string, unknown>;
|
|
@@ -727,6 +743,8 @@ type ResourcePackageImportUpload = ResourcePackageUpload & {
|
|
|
727
743
|
};
|
|
728
744
|
type ResourceInstallationPlanUpload = ResourcePackageUpload & {
|
|
729
745
|
prune?: boolean;
|
|
746
|
+
integrationMode?: "publish-only" | "bff" | "client-deployment";
|
|
747
|
+
primaryResourceKey?: string;
|
|
730
748
|
};
|
|
731
749
|
type ResourceInstallationPullChange = {
|
|
732
750
|
status: "A" | "M" | "D";
|
|
@@ -965,12 +983,18 @@ type ResourceInstallationCreateRequest = {
|
|
|
965
983
|
package_name: string;
|
|
966
984
|
operation_id: string;
|
|
967
985
|
};
|
|
986
|
+
type ResourceInstallationApplication = {
|
|
987
|
+
integration_mode: "publish-only" | "bff" | "client-deployment";
|
|
988
|
+
primary_resource_key: string | null;
|
|
989
|
+
};
|
|
968
990
|
type ResourceInstallationPlan = {
|
|
969
991
|
installation_id: string | null;
|
|
970
992
|
operation_id: string;
|
|
971
993
|
package_id: string;
|
|
972
994
|
package_name: string;
|
|
973
995
|
package_hash: string;
|
|
996
|
+
application: ResourceInstallationApplication;
|
|
997
|
+
pending_selections: Array<Record<string, unknown>>;
|
|
974
998
|
actions: Array<Record<string, unknown>>;
|
|
975
999
|
external_requirements: Array<Record<string, unknown>>;
|
|
976
1000
|
artifact_actions: Array<Record<string, unknown>>;
|
|
@@ -1207,7 +1231,7 @@ declare class AgentsNamespace {
|
|
|
1207
1231
|
schema(nodeTypes: string[]): Promise<NodeSchemaResponse>;
|
|
1208
1232
|
validate(agentId: string): Promise<AgentValidationResult>;
|
|
1209
1233
|
publish(agentId: string, options?: RequestOptions): Promise<AgentResponse>;
|
|
1210
|
-
startRun(agentId: string, payload:
|
|
1234
|
+
startRun(agentId: string, payload: ControlPlaneAgentRunRequest, options?: RequestOptions): Promise<StartRunResult>;
|
|
1211
1235
|
stream(agentId: string, payload: AgentStreamRequest, onEvent?: (event: RuntimeEvent) => void | Promise<void>, mode?: "debug" | "production" | string, options?: StreamRequestOptions): Promise<StreamResult>;
|
|
1212
1236
|
resumeRun(runId: string, payload: Record<string, unknown>, options?: RequestOptions): Promise<Record<string, unknown>>;
|
|
1213
1237
|
cancelRun(runId: string, options?: RunCancelOptions): Promise<RunCancelResult>;
|
|
@@ -1261,6 +1285,7 @@ declare class EmbedNamespace {
|
|
|
1261
1285
|
private readonly http;
|
|
1262
1286
|
constructor(http: Agents24HttpClient);
|
|
1263
1287
|
streamAgent(agentId: string, payload: EmbedStreamRequest, onEvent?: (event: RuntimeEvent) => void | Promise<void>, options?: StreamRequestOptions): Promise<StreamResult>;
|
|
1288
|
+
startAgentRun(agentId: string, payload: EmbedRunStartRequest, options?: RequestOptions): Promise<StartRunResult>;
|
|
1264
1289
|
attachAgentRun(agentId: string, runId: string, payload: AttachRunRequest, onEvent?: (event: RuntimeEvent) => void | Promise<void>, options?: StreamRequestOptions): Promise<StreamResult>;
|
|
1265
1290
|
private stream;
|
|
1266
1291
|
resumeAgentRun(agentId: string, runId: string, payload: ResumeRunRequest, options?: RequestOptions): Promise<RunResumeResult>;
|
|
@@ -1381,4 +1406,4 @@ declare class Agents24 {
|
|
|
1381
1406
|
graph(): GraphBuilder;
|
|
1382
1407
|
}
|
|
1383
1408
|
|
|
1384
|
-
export { type
|
|
1409
|
+
export { type EffectiveResourcePolicy 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 EffectiveCustomerResourcePolicyRequest as _, type AgentCreateRequest as a, type ResourcePackageExportRequest as a$, type EmbedAgentAliasResolution as a0, type EmbedAttachmentContentAccessRequest as a1, type EmbedCustomerPrincipalResolveRequest as a2, type EmbedCustomerPrincipalResolveResponse as a3, type EmbedResourcePolicyRequest as a4, type EmbedRunCancelOptions as a5, type EmbedRunStartRequest as a6, type EmbedRuntimeBootstrap as a7, type EmbedStreamRequest as a8, type EmbeddedResponseFeedbackInput as a9, type ResourceCallableBindingStatus as aA, type ResourceCandidateList as aB, type ResourceInstallation as aC, type ResourceInstallationApplication as aD, type ResourceInstallationApplyRequest as aE, type ResourceInstallationBinding as aF, type ResourceInstallationCreateRequest as aG, type ResourceInstallationDeploymentRequest as aH, type ResourceInstallationLinkRequest as aI, type ResourceInstallationList as aJ, type ResourceInstallationOperation as aK, type ResourceInstallationPlan as aL, type ResourceInstallationPlanUpload as aM, type ResourceInstallationPublication as aN, type ResourceInstallationPublishRequest as aO, type ResourceInstallationPullAcceptRequest as aP, type ResourceInstallationPullChange as aQ, type ResourceInstallationPullPayload as aR, type ResourceInstallationPullPlan as aS, type ResourceInstallationResourceListOptions as aT, type ResourceInstallationSecretStatus as aU, type ResourceInstallationSecretsRequest as aV, type ResourcePackageArchive as aW, type ResourcePackageCandidateOptions as aX, type ResourcePackageDependency as aY, type ResourcePackageDiagnostic as aZ, type ResourcePackageExportPlan as a_, type FailureCategory as aa, type FailureView as ab, type FeedbackRating as ac, type FeedbackReason as ad, GraphBuilder as ae, type GraphDefinition as af, type GraphEdge as ag, type GraphHints as ah, type GraphNode as ai, type GraphValueRef as aj, type HitlAction as ak, type HitlAnswer as al, type LatestOrPinnedPolicy as am, type McpAuthStartRequest as an, type McpAuthStartResult as ao, type MultiAgentThreadListRequest as ap, type MultiAgentThreadSummaryEventOptions as aq, type NativePlatform as ar, type NodeAuthoringSpec as as, type NodeCatalogItem as at, type NodeCatalogResponse as au, type NodeSchemaResponse as av, type PortableResourceKind as aw, type RequestOptions as ax, type ResetResourcePolicyQuotaRequest as ay, type ResourceCallableBinding as az, AgentDefinitionBuilder as b, type ResourcePackageImportPreview as b0, type ResourcePackageImportResult as b1, type ResourcePackageImportUpload as b2, type ResourcePackageUpload as b3, type ResourcePackageValidationResult as b4, type ResourcePolicyList as b5, type ResourcePolicyQuotaSchedule as b6, type ResourcePolicyQuotaScheduleResult as b7, type ResourcePolicySubjectRef as b8, type ResourcePolicySummary as b9, type TraceView as bA, type UpdateClientDeploymentRequest as bB, type WorkflowInputDefinition as bC, type ResourceSelector as ba, type ResourceToolExport as bb, type ResponseFeedback as bc, type ResponseFeedbackResult as bd, type ResumeRunRequest as be, type RunCancelOptions as bf, type RunContextOptions as bg, type RunStatus as bh, type RunTrace as bi, type ServerAttachmentUploadOptions as bj, type ServerEmbedAttachmentUploadOptions as bk, type SetCustomerResourcePolicyAssignmentRequest as bl, type SetResourcePolicyQuotaScheduleRequest as bm, type StartRunResult as bn, type StateVariableDefinition as bo, type StreamRequestOptions as bp, type StreamResult as bq, type ThreadDeleteOptions as br, type ThreadDetailOptions as bs, type ThreadListOptions as bt, type ThreadSummaryEventOptions as bu, type TraceContent as bv, type TraceError as bw, type TraceSpan as bx, type TraceSpanKind as by, type TraceSpanStatus 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 };
|
package/dist/index.cjs
CHANGED
|
@@ -468,6 +468,14 @@ var EmbedNamespace = class {
|
|
|
468
468
|
async streamAgent(agentId, payload, onEvent, options = {}) {
|
|
469
469
|
return this.stream(`/public/embed/agents/${agentId}/chat/stream`, payload, onEvent, options);
|
|
470
470
|
}
|
|
471
|
+
startAgentRun(agentId, payload, options) {
|
|
472
|
+
return this.http.requestJson(`/public/embed/agents/${agentId}/runs`, {
|
|
473
|
+
method: "POST",
|
|
474
|
+
body: payload,
|
|
475
|
+
options,
|
|
476
|
+
mutation: true
|
|
477
|
+
});
|
|
478
|
+
}
|
|
471
479
|
async attachAgentRun(agentId, runId, payload, onEvent, options = {}) {
|
|
472
480
|
return this.stream(`/public/embed/agents/${agentId}/runs/${runId}/stream`, payload, onEvent, options);
|
|
473
481
|
}
|
|
@@ -760,7 +768,9 @@ var ResourceInstallationsNamespace = class {
|
|
|
760
768
|
formData.append("file", new Blob([archiveBytes]), filename);
|
|
761
769
|
const response = await this.http.fetchOrThrow(
|
|
762
770
|
this.http.url("/resource-installations/plan", {
|
|
763
|
-
prune: upload.prune
|
|
771
|
+
prune: upload.prune,
|
|
772
|
+
integration_mode: upload.integrationMode,
|
|
773
|
+
primary_resource_key: upload.primaryResourceKey
|
|
764
774
|
}),
|
|
765
775
|
{ method: "POST", headers: this.http.multipartHeaders(void 0, void 0, false), body: formData },
|
|
766
776
|
"Failed to upload the Agents24 resource package."
|
|
@@ -1094,6 +1104,7 @@ var SDK_OPERATION_IDS = [
|
|
|
1094
1104
|
"embed.resume_agent_run",
|
|
1095
1105
|
"embed.set_agent_run_feedback",
|
|
1096
1106
|
"embed.set_conversation_runtime_selection",
|
|
1107
|
+
"embed.start_agent_run",
|
|
1097
1108
|
"embed.start_agent_run_mcp_auth",
|
|
1098
1109
|
"embed.stream_agent",
|
|
1099
1110
|
"embed.stream_agent_thread_events",
|