@agents24/node 0.5.10 → 0.5.12
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 +7 -7
- package/dist/bff.cjs +80 -56
- 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 +80 -56
- package/dist/bff.js.map +1 -1
- package/dist/{client-xs_JXgvz.d.cts → client-DTdpRgGB.d.cts} +97 -1
- package/dist/{client-xs_JXgvz.d.ts → client-DTdpRgGB.d.ts} +97 -1
- package/dist/index.cjs +62 -17
- 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 +62 -17
- package/dist/index.js.map +1 -1
- package/dist/server.cjs +11 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +6 -1
- package/dist/server.d.ts +6 -1
- package/dist/server.js +11 -2
- package/dist/server.js.map +1 -1
- package/dist/types/bff-values.d.ts +6 -0
- package/dist/types/bff-values.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/delegations.d.ts +80 -0
- package/dist/types/delegations.d.ts.map +1 -0
- package/dist/types/generated/delegations.d.ts +18 -0
- package/dist/types/generated/delegations.d.ts.map +1 -0
- package/dist/types/generated/manifest.d.ts +1 -1
- package/dist/types/generated/manifest.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/server.d.ts +5 -0
- package/dist/types/server.d.ts.map +1 -1
- package/dist/types/types.d.ts +1 -0
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -24,6 +24,101 @@ declare class Agents24SDKError extends Error {
|
|
|
24
24
|
get details(): Readonly<Record<string, unknown>>;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
declare class DelegationsNamespace {
|
|
28
|
+
protected readonly http: Agents24HttpClient;
|
|
29
|
+
constructor(http: Agents24HttpClient);
|
|
30
|
+
history(runId: string, handle: string, options?: {
|
|
31
|
+
before?: number;
|
|
32
|
+
limit?: number;
|
|
33
|
+
}): Promise<DelegationHistory>;
|
|
34
|
+
list(runId: string): Promise<DelegationTaskList>;
|
|
35
|
+
inspect(runId: string, handle: string): Promise<DelegationTask>;
|
|
36
|
+
events(runId: string, options?: {
|
|
37
|
+
after?: number;
|
|
38
|
+
limit?: number;
|
|
39
|
+
}): Promise<DelegationEvents>;
|
|
40
|
+
act(runId: string, handle: string, request: DelegationActionRequest, options?: RequestOptions): Promise<Record<string, unknown>>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
type DelegationStatus = "queued" | "running" | "waiting" | "paused" | "interrupt_requested" | "interrupted" | "completed" | "failed" | "cancelling" | "cancelled";
|
|
44
|
+
interface DelegationTask {
|
|
45
|
+
handle: string;
|
|
46
|
+
name: string;
|
|
47
|
+
path: string;
|
|
48
|
+
status: DelegationStatus;
|
|
49
|
+
background: boolean;
|
|
50
|
+
depth: number;
|
|
51
|
+
parent_node_id: string;
|
|
52
|
+
ownership_generation: number;
|
|
53
|
+
owner_run_id: string;
|
|
54
|
+
root_run_id: string;
|
|
55
|
+
origin: Record<string, unknown>;
|
|
56
|
+
run_id: string | null;
|
|
57
|
+
thread_id: string | null;
|
|
58
|
+
result_run_id: string | null;
|
|
59
|
+
updated_at: string;
|
|
60
|
+
capabilities: {
|
|
61
|
+
cancel: boolean;
|
|
62
|
+
interrupt: boolean;
|
|
63
|
+
};
|
|
64
|
+
result?: {
|
|
65
|
+
text: string;
|
|
66
|
+
failure_id: string | null;
|
|
67
|
+
};
|
|
68
|
+
invocations?: Array<{
|
|
69
|
+
run_id: string;
|
|
70
|
+
status: string;
|
|
71
|
+
usage: Record<string, unknown>;
|
|
72
|
+
}>;
|
|
73
|
+
pending_questions?: Array<{
|
|
74
|
+
interrupt_id: string;
|
|
75
|
+
kind: string;
|
|
76
|
+
can_answer: boolean;
|
|
77
|
+
request: Record<string, unknown>;
|
|
78
|
+
}>;
|
|
79
|
+
}
|
|
80
|
+
type DelegationAction = {
|
|
81
|
+
action: "interrupt" | "cancel";
|
|
82
|
+
};
|
|
83
|
+
type DelegationActionRequest = DelegationAction & {
|
|
84
|
+
operation_id: string;
|
|
85
|
+
};
|
|
86
|
+
interface DelegationTaskList {
|
|
87
|
+
tasks: DelegationTask[];
|
|
88
|
+
}
|
|
89
|
+
interface DelegationHistoryTurn {
|
|
90
|
+
id: string;
|
|
91
|
+
run_id: string;
|
|
92
|
+
turn_index: number;
|
|
93
|
+
status: DelegationStatus;
|
|
94
|
+
assignment_instruction: string;
|
|
95
|
+
sender: "parent";
|
|
96
|
+
created_at: string;
|
|
97
|
+
user_input_text: string | null;
|
|
98
|
+
assistant_output_text: string | null;
|
|
99
|
+
response_blocks: Array<Record<string, unknown>>;
|
|
100
|
+
}
|
|
101
|
+
interface DelegationHistory {
|
|
102
|
+
handle: string;
|
|
103
|
+
parent_agent_id: string;
|
|
104
|
+
kind: string;
|
|
105
|
+
turns: DelegationHistoryTurn[];
|
|
106
|
+
paging: {
|
|
107
|
+
has_more: boolean;
|
|
108
|
+
next_before_turn_index: number | null;
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
interface DelegationEvents {
|
|
112
|
+
schema_version: "agents24.delegation.events.v1";
|
|
113
|
+
cursor: number;
|
|
114
|
+
events: Array<{
|
|
115
|
+
seq: number;
|
|
116
|
+
kind: string;
|
|
117
|
+
task: DelegationTask;
|
|
118
|
+
}>;
|
|
119
|
+
snapshot: DelegationTask[];
|
|
120
|
+
}
|
|
121
|
+
|
|
27
122
|
type Agents24NodeOptions = {
|
|
28
123
|
baseUrl: string;
|
|
29
124
|
apiKey: string;
|
|
@@ -1394,6 +1489,7 @@ declare class Agents24 {
|
|
|
1394
1489
|
readonly agents: AgentsNamespace;
|
|
1395
1490
|
readonly embed: EmbedNamespace;
|
|
1396
1491
|
readonly runs: RunsNamespace;
|
|
1492
|
+
readonly delegations: DelegationsNamespace;
|
|
1397
1493
|
readonly resourcePackages: ResourcePackagesNamespace;
|
|
1398
1494
|
readonly resourceInstallations: ResourceInstallationsNamespace;
|
|
1399
1495
|
readonly clientDeployments: ClientDeploymentsNamespace;
|
|
@@ -1406,4 +1502,4 @@ declare class Agents24 {
|
|
|
1406
1502
|
graph(): GraphBuilder;
|
|
1407
1503
|
}
|
|
1408
1504
|
|
|
1409
|
-
export { type
|
|
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 ResourceInstallationResourceListOptions 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 NodeAuthoringSpec as aA, type NodeCatalogItem as aB, type NodeCatalogResponse as aC, type NodeSchemaResponse as aD, type PortableResourceKind as aE, type RequestOptions as aF, type ResetResourcePolicyQuotaRequest as aG, type ResourceCallableBinding as aH, type ResourceCallableBindingStatus as aI, type ResourceCandidateList as aJ, type ResourceInstallation as aK, type ResourceInstallationApplication as aL, type ResourceInstallationApplyRequest as aM, type ResourceInstallationBinding as aN, type ResourceInstallationCreateRequest as aO, type ResourceInstallationDeploymentRequest as aP, type ResourceInstallationLinkRequest as aQ, type ResourceInstallationList as aR, type ResourceInstallationOperation as aS, type ResourceInstallationPlan as aT, type ResourceInstallationPlanUpload as aU, type ResourceInstallationPublication as aV, type ResourceInstallationPublishRequest as aW, type ResourceInstallationPullAcceptRequest as aX, type ResourceInstallationPullChange as aY, type ResourceInstallationPullPayload as aZ, type ResourceInstallationPullPlan 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 EmbeddedResponseFeedbackInput as ah, type FailureCategory as ai, type FailureView as aj, type FeedbackRating as ak, type FeedbackReason as al, GraphBuilder as am, type GraphDefinition as an, type GraphEdge as ao, type GraphHints as ap, type GraphNode as aq, type GraphValueRef as ar, type HitlAction as as, type HitlAnswer as at, type LatestOrPinnedPolicy as au, type McpAuthStartRequest as av, type McpAuthStartResult as aw, type MultiAgentThreadListRequest as ax, type MultiAgentThreadSummaryEventOptions as ay, type NativePlatform as az, AgentDefinitionBuilder as b, type ResourceInstallationSecretStatus as b0, type ResourceInstallationSecretsRequest as b1, type ResourcePackageArchive as b2, type ResourcePackageCandidateOptions as b3, type ResourcePackageDependency as b4, type ResourcePackageDiagnostic as b5, type ResourcePackageExportPlan as b6, type ResourcePackageExportRequest as b7, type ResourcePackageImportPreview as b8, type ResourcePackageImportResult as b9, type ThreadDetailOptions as bA, type ThreadListOptions as bB, type ThreadSummaryEventOptions as bC, type TraceContent as bD, type TraceError as bE, type TraceSpan as bF, type TraceSpanKind as bG, type TraceSpanStatus as bH, type TraceView as bI, type UpdateClientDeploymentRequest as bJ, type WorkflowInputDefinition as bK, type ResourcePackageImportUpload as ba, type ResourcePackageUpload as bb, type ResourcePackageValidationResult as bc, type ResourcePolicyList as bd, type ResourcePolicyQuotaSchedule as be, type ResourcePolicyQuotaScheduleResult as bf, type ResourcePolicySubjectRef as bg, type ResourcePolicySummary as bh, type ResourceSelector as bi, type ResourceToolExport as bj, type ResponseFeedback as bk, type ResponseFeedbackResult as bl, type ResumeRunRequest as bm, type RunCancelOptions as bn, type RunContextOptions as bo, type RunStatus as bp, type RunTrace as bq, type ServerAttachmentUploadOptions as br, type ServerEmbedAttachmentUploadOptions as bs, type SetCustomerResourcePolicyAssignmentRequest as bt, type SetResourcePolicyQuotaScheduleRequest as bu, type StartRunResult as bv, type StateVariableDefinition as bw, type StreamRequestOptions as bx, type StreamResult as by, type ThreadDeleteOptions 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 };
|
|
@@ -24,6 +24,101 @@ declare class Agents24SDKError extends Error {
|
|
|
24
24
|
get details(): Readonly<Record<string, unknown>>;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
declare class DelegationsNamespace {
|
|
28
|
+
protected readonly http: Agents24HttpClient;
|
|
29
|
+
constructor(http: Agents24HttpClient);
|
|
30
|
+
history(runId: string, handle: string, options?: {
|
|
31
|
+
before?: number;
|
|
32
|
+
limit?: number;
|
|
33
|
+
}): Promise<DelegationHistory>;
|
|
34
|
+
list(runId: string): Promise<DelegationTaskList>;
|
|
35
|
+
inspect(runId: string, handle: string): Promise<DelegationTask>;
|
|
36
|
+
events(runId: string, options?: {
|
|
37
|
+
after?: number;
|
|
38
|
+
limit?: number;
|
|
39
|
+
}): Promise<DelegationEvents>;
|
|
40
|
+
act(runId: string, handle: string, request: DelegationActionRequest, options?: RequestOptions): Promise<Record<string, unknown>>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
type DelegationStatus = "queued" | "running" | "waiting" | "paused" | "interrupt_requested" | "interrupted" | "completed" | "failed" | "cancelling" | "cancelled";
|
|
44
|
+
interface DelegationTask {
|
|
45
|
+
handle: string;
|
|
46
|
+
name: string;
|
|
47
|
+
path: string;
|
|
48
|
+
status: DelegationStatus;
|
|
49
|
+
background: boolean;
|
|
50
|
+
depth: number;
|
|
51
|
+
parent_node_id: string;
|
|
52
|
+
ownership_generation: number;
|
|
53
|
+
owner_run_id: string;
|
|
54
|
+
root_run_id: string;
|
|
55
|
+
origin: Record<string, unknown>;
|
|
56
|
+
run_id: string | null;
|
|
57
|
+
thread_id: string | null;
|
|
58
|
+
result_run_id: string | null;
|
|
59
|
+
updated_at: string;
|
|
60
|
+
capabilities: {
|
|
61
|
+
cancel: boolean;
|
|
62
|
+
interrupt: boolean;
|
|
63
|
+
};
|
|
64
|
+
result?: {
|
|
65
|
+
text: string;
|
|
66
|
+
failure_id: string | null;
|
|
67
|
+
};
|
|
68
|
+
invocations?: Array<{
|
|
69
|
+
run_id: string;
|
|
70
|
+
status: string;
|
|
71
|
+
usage: Record<string, unknown>;
|
|
72
|
+
}>;
|
|
73
|
+
pending_questions?: Array<{
|
|
74
|
+
interrupt_id: string;
|
|
75
|
+
kind: string;
|
|
76
|
+
can_answer: boolean;
|
|
77
|
+
request: Record<string, unknown>;
|
|
78
|
+
}>;
|
|
79
|
+
}
|
|
80
|
+
type DelegationAction = {
|
|
81
|
+
action: "interrupt" | "cancel";
|
|
82
|
+
};
|
|
83
|
+
type DelegationActionRequest = DelegationAction & {
|
|
84
|
+
operation_id: string;
|
|
85
|
+
};
|
|
86
|
+
interface DelegationTaskList {
|
|
87
|
+
tasks: DelegationTask[];
|
|
88
|
+
}
|
|
89
|
+
interface DelegationHistoryTurn {
|
|
90
|
+
id: string;
|
|
91
|
+
run_id: string;
|
|
92
|
+
turn_index: number;
|
|
93
|
+
status: DelegationStatus;
|
|
94
|
+
assignment_instruction: string;
|
|
95
|
+
sender: "parent";
|
|
96
|
+
created_at: string;
|
|
97
|
+
user_input_text: string | null;
|
|
98
|
+
assistant_output_text: string | null;
|
|
99
|
+
response_blocks: Array<Record<string, unknown>>;
|
|
100
|
+
}
|
|
101
|
+
interface DelegationHistory {
|
|
102
|
+
handle: string;
|
|
103
|
+
parent_agent_id: string;
|
|
104
|
+
kind: string;
|
|
105
|
+
turns: DelegationHistoryTurn[];
|
|
106
|
+
paging: {
|
|
107
|
+
has_more: boolean;
|
|
108
|
+
next_before_turn_index: number | null;
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
interface DelegationEvents {
|
|
112
|
+
schema_version: "agents24.delegation.events.v1";
|
|
113
|
+
cursor: number;
|
|
114
|
+
events: Array<{
|
|
115
|
+
seq: number;
|
|
116
|
+
kind: string;
|
|
117
|
+
task: DelegationTask;
|
|
118
|
+
}>;
|
|
119
|
+
snapshot: DelegationTask[];
|
|
120
|
+
}
|
|
121
|
+
|
|
27
122
|
type Agents24NodeOptions = {
|
|
28
123
|
baseUrl: string;
|
|
29
124
|
apiKey: string;
|
|
@@ -1394,6 +1489,7 @@ declare class Agents24 {
|
|
|
1394
1489
|
readonly agents: AgentsNamespace;
|
|
1395
1490
|
readonly embed: EmbedNamespace;
|
|
1396
1491
|
readonly runs: RunsNamespace;
|
|
1492
|
+
readonly delegations: DelegationsNamespace;
|
|
1397
1493
|
readonly resourcePackages: ResourcePackagesNamespace;
|
|
1398
1494
|
readonly resourceInstallations: ResourceInstallationsNamespace;
|
|
1399
1495
|
readonly clientDeployments: ClientDeploymentsNamespace;
|
|
@@ -1406,4 +1502,4 @@ declare class Agents24 {
|
|
|
1406
1502
|
graph(): GraphBuilder;
|
|
1407
1503
|
}
|
|
1408
1504
|
|
|
1409
|
-
export { type
|
|
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 ResourceInstallationResourceListOptions 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 NodeAuthoringSpec as aA, type NodeCatalogItem as aB, type NodeCatalogResponse as aC, type NodeSchemaResponse as aD, type PortableResourceKind as aE, type RequestOptions as aF, type ResetResourcePolicyQuotaRequest as aG, type ResourceCallableBinding as aH, type ResourceCallableBindingStatus as aI, type ResourceCandidateList as aJ, type ResourceInstallation as aK, type ResourceInstallationApplication as aL, type ResourceInstallationApplyRequest as aM, type ResourceInstallationBinding as aN, type ResourceInstallationCreateRequest as aO, type ResourceInstallationDeploymentRequest as aP, type ResourceInstallationLinkRequest as aQ, type ResourceInstallationList as aR, type ResourceInstallationOperation as aS, type ResourceInstallationPlan as aT, type ResourceInstallationPlanUpload as aU, type ResourceInstallationPublication as aV, type ResourceInstallationPublishRequest as aW, type ResourceInstallationPullAcceptRequest as aX, type ResourceInstallationPullChange as aY, type ResourceInstallationPullPayload as aZ, type ResourceInstallationPullPlan 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 EmbeddedResponseFeedbackInput as ah, type FailureCategory as ai, type FailureView as aj, type FeedbackRating as ak, type FeedbackReason as al, GraphBuilder as am, type GraphDefinition as an, type GraphEdge as ao, type GraphHints as ap, type GraphNode as aq, type GraphValueRef as ar, type HitlAction as as, type HitlAnswer as at, type LatestOrPinnedPolicy as au, type McpAuthStartRequest as av, type McpAuthStartResult as aw, type MultiAgentThreadListRequest as ax, type MultiAgentThreadSummaryEventOptions as ay, type NativePlatform as az, AgentDefinitionBuilder as b, type ResourceInstallationSecretStatus as b0, type ResourceInstallationSecretsRequest as b1, type ResourcePackageArchive as b2, type ResourcePackageCandidateOptions as b3, type ResourcePackageDependency as b4, type ResourcePackageDiagnostic as b5, type ResourcePackageExportPlan as b6, type ResourcePackageExportRequest as b7, type ResourcePackageImportPreview as b8, type ResourcePackageImportResult as b9, type ThreadDetailOptions as bA, type ThreadListOptions as bB, type ThreadSummaryEventOptions as bC, type TraceContent as bD, type TraceError as bE, type TraceSpan as bF, type TraceSpanKind as bG, type TraceSpanStatus as bH, type TraceView as bI, type UpdateClientDeploymentRequest as bJ, type WorkflowInputDefinition as bK, type ResourcePackageImportUpload as ba, type ResourcePackageUpload as bb, type ResourcePackageValidationResult as bc, type ResourcePolicyList as bd, type ResourcePolicyQuotaSchedule as be, type ResourcePolicyQuotaScheduleResult as bf, type ResourcePolicySubjectRef as bg, type ResourcePolicySummary as bh, type ResourceSelector as bi, type ResourceToolExport as bj, type ResponseFeedback as bk, type ResponseFeedbackResult as bl, type ResumeRunRequest as bm, type RunCancelOptions as bn, type RunContextOptions as bo, type RunStatus as bp, type RunTrace as bq, type ServerAttachmentUploadOptions as br, type ServerEmbedAttachmentUploadOptions as bs, type SetCustomerResourcePolicyAssignmentRequest as bt, type SetResourcePolicyQuotaScheduleRequest as bu, type StartRunResult as bv, type StateVariableDefinition as bw, type StreamRequestOptions as bx, type StreamResult as by, type ThreadDeleteOptions 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
|
@@ -755,10 +755,10 @@ var ResourceInstallationsNamespace = class {
|
|
|
755
755
|
});
|
|
756
756
|
}
|
|
757
757
|
get(installationId) {
|
|
758
|
-
return this.http.requestJson(`/resource-installations/${installationId}`);
|
|
758
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}`);
|
|
759
759
|
}
|
|
760
760
|
getByPackageId(packageId) {
|
|
761
|
-
return this.http.requestJson(`/resource-installations/by-package/${packageId}`);
|
|
761
|
+
return this.http.requestJson(`/resource-installations/by-package/${encodeURIComponent(packageId)}`);
|
|
762
762
|
}
|
|
763
763
|
async plan(upload) {
|
|
764
764
|
const formData = new FormData();
|
|
@@ -785,7 +785,7 @@ var ResourceInstallationsNamespace = class {
|
|
|
785
785
|
const filename = /^[A-Za-z0-9][A-Za-z0-9._-]{0,200}\.zip$/.test(candidate) ? candidate : "resource.agents24.zip";
|
|
786
786
|
formData.append("file", new Blob([archiveBytes]), filename);
|
|
787
787
|
const response = await this.http.fetchOrThrow(
|
|
788
|
-
this.http.url(`/resource-installations/${installationId}/pull/plan`, void 0),
|
|
788
|
+
this.http.url(`/resource-installations/${encodeURIComponent(installationId)}/pull/plan`, void 0),
|
|
789
789
|
{ method: "POST", headers: this.http.multipartHeaders(void 0, void 0, false), body: formData },
|
|
790
790
|
"Failed to upload the Agents24 resource package."
|
|
791
791
|
);
|
|
@@ -793,10 +793,10 @@ var ResourceInstallationsNamespace = class {
|
|
|
793
793
|
return await response.json();
|
|
794
794
|
}
|
|
795
795
|
downloadPull(installationId, pullId) {
|
|
796
|
-
return this.http.requestJson(`/resource-installations/${installationId}/pull/${pullId}/download`);
|
|
796
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/pull/${encodeURIComponent(pullId)}/download`);
|
|
797
797
|
}
|
|
798
798
|
acceptPull(installationId, pullId, request, options) {
|
|
799
|
-
return this.http.requestJson(`/resource-installations/${installationId}/pull/${pullId}/accept`, {
|
|
799
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/pull/${encodeURIComponent(pullId)}/accept`, {
|
|
800
800
|
method: "POST",
|
|
801
801
|
body: request,
|
|
802
802
|
options,
|
|
@@ -804,7 +804,7 @@ var ResourceInstallationsNamespace = class {
|
|
|
804
804
|
});
|
|
805
805
|
}
|
|
806
806
|
link(installationId, request, options) {
|
|
807
|
-
return this.http.requestJson(`/resource-installations/${installationId}/link`, {
|
|
807
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/link`, {
|
|
808
808
|
method: "POST",
|
|
809
809
|
body: request,
|
|
810
810
|
options,
|
|
@@ -812,7 +812,7 @@ var ResourceInstallationsNamespace = class {
|
|
|
812
812
|
});
|
|
813
813
|
}
|
|
814
814
|
configureSecrets(installationId, request, options) {
|
|
815
|
-
return this.http.requestJson(`/resource-installations/${installationId}/secrets`, {
|
|
815
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/secrets`, {
|
|
816
816
|
method: "PUT",
|
|
817
817
|
body: request,
|
|
818
818
|
options,
|
|
@@ -820,7 +820,7 @@ var ResourceInstallationsNamespace = class {
|
|
|
820
820
|
});
|
|
821
821
|
}
|
|
822
822
|
apply(operationId, request, options) {
|
|
823
|
-
return this.http.requestJson(`/resource-installations/operations/${operationId}/apply`, {
|
|
823
|
+
return this.http.requestJson(`/resource-installations/operations/${encodeURIComponent(operationId)}/apply`, {
|
|
824
824
|
method: "POST",
|
|
825
825
|
body: request,
|
|
826
826
|
options,
|
|
@@ -828,10 +828,10 @@ var ResourceInstallationsNamespace = class {
|
|
|
828
828
|
});
|
|
829
829
|
}
|
|
830
830
|
operationStatus(operationId) {
|
|
831
|
-
return this.http.requestJson(`/resource-installations/operations/${operationId}/status`);
|
|
831
|
+
return this.http.requestJson(`/resource-installations/operations/${encodeURIComponent(operationId)}/status`);
|
|
832
832
|
}
|
|
833
833
|
publish(installationId, request, options) {
|
|
834
|
-
return this.http.requestJson(`/resource-installations/${installationId}/publish`, {
|
|
834
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/publish`, {
|
|
835
835
|
method: "POST",
|
|
836
836
|
body: request,
|
|
837
837
|
options,
|
|
@@ -839,7 +839,7 @@ var ResourceInstallationsNamespace = class {
|
|
|
839
839
|
});
|
|
840
840
|
}
|
|
841
841
|
prepareDevelopmentSession(installationId, request, options) {
|
|
842
|
-
return this.http.requestJson(`/resource-installations/${installationId}/artifact-development-sessions`, {
|
|
842
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/artifact-development-sessions`, {
|
|
843
843
|
method: "POST",
|
|
844
844
|
body: request,
|
|
845
845
|
options,
|
|
@@ -847,17 +847,17 @@ var ResourceInstallationsNamespace = class {
|
|
|
847
847
|
});
|
|
848
848
|
}
|
|
849
849
|
developmentSessionStatus(installationId, resourceKey) {
|
|
850
|
-
return this.http.requestJson(`/resource-installations/${installationId}/artifact-development-sessions/${resourceKey}`);
|
|
850
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/artifact-development-sessions/${encodeURIComponent(resourceKey)}`);
|
|
851
851
|
}
|
|
852
852
|
revokeDevelopmentSession(installationId, sessionId, options) {
|
|
853
|
-
return this.http.requestJson(`/resource-installations/${installationId}/artifact-development-sessions/${sessionId}`, {
|
|
853
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/artifact-development-sessions/${encodeURIComponent(sessionId)}`, {
|
|
854
854
|
method: "DELETE",
|
|
855
855
|
options,
|
|
856
856
|
mutation: true
|
|
857
857
|
});
|
|
858
858
|
}
|
|
859
859
|
bindDeployment(installationId, request, options) {
|
|
860
|
-
return this.http.requestJson(`/resource-installations/${installationId}/deployment`, {
|
|
860
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/deployment`, {
|
|
861
861
|
method: "PUT",
|
|
862
862
|
body: request,
|
|
863
863
|
options,
|
|
@@ -900,6 +900,44 @@ var RunsNamespace = class {
|
|
|
900
900
|
}
|
|
901
901
|
};
|
|
902
902
|
|
|
903
|
+
// src/generated/delegations.ts
|
|
904
|
+
var DelegationsNamespace = class {
|
|
905
|
+
constructor(http) {
|
|
906
|
+
this.http = http;
|
|
907
|
+
}
|
|
908
|
+
http;
|
|
909
|
+
history(runId, handle, options = {}) {
|
|
910
|
+
return this.http.requestJson(`/agents/runs/${encodeURIComponent(runId)}/delegations/${encodeURIComponent(handle)}/history`, {
|
|
911
|
+
query: {
|
|
912
|
+
before: options.before,
|
|
913
|
+
limit: options.limit ?? 20
|
|
914
|
+
}
|
|
915
|
+
});
|
|
916
|
+
}
|
|
917
|
+
list(runId) {
|
|
918
|
+
return this.http.requestJson(`/agents/runs/${encodeURIComponent(runId)}/delegations`);
|
|
919
|
+
}
|
|
920
|
+
inspect(runId, handle) {
|
|
921
|
+
return this.http.requestJson(`/agents/runs/${encodeURIComponent(runId)}/delegations/${encodeURIComponent(handle)}`);
|
|
922
|
+
}
|
|
923
|
+
events(runId, options = {}) {
|
|
924
|
+
return this.http.requestJson(`/agents/runs/${encodeURIComponent(runId)}/delegations/events`, {
|
|
925
|
+
query: {
|
|
926
|
+
after: options.after ?? 0,
|
|
927
|
+
limit: options.limit ?? 100
|
|
928
|
+
}
|
|
929
|
+
});
|
|
930
|
+
}
|
|
931
|
+
act(runId, handle, request, options) {
|
|
932
|
+
return this.http.requestJson(`/agents/runs/${encodeURIComponent(runId)}/delegations/${encodeURIComponent(handle)}/actions`, {
|
|
933
|
+
method: "POST",
|
|
934
|
+
body: request,
|
|
935
|
+
options,
|
|
936
|
+
mutation: true
|
|
937
|
+
});
|
|
938
|
+
}
|
|
939
|
+
};
|
|
940
|
+
|
|
903
941
|
// src/generated/instructions.ts
|
|
904
942
|
var InstructionsNamespace = class {
|
|
905
943
|
constructor(http) {
|
|
@@ -907,7 +945,7 @@ var InstructionsNamespace = class {
|
|
|
907
945
|
}
|
|
908
946
|
http;
|
|
909
947
|
publish(instructionId, options) {
|
|
910
|
-
return this.http.requestJson(`/prompts/${instructionId}/publish`, {
|
|
948
|
+
return this.http.requestJson(`/prompts/${encodeURIComponent(instructionId)}/publish`, {
|
|
911
949
|
method: "POST",
|
|
912
950
|
body: {},
|
|
913
951
|
options,
|
|
@@ -986,10 +1024,10 @@ var CustomerProfilesNamespace = class {
|
|
|
986
1024
|
});
|
|
987
1025
|
}
|
|
988
1026
|
get(customerPrincipalRef) {
|
|
989
|
-
return this.http.requestJson(`/public/embed/customer-principals/${customerPrincipalRef}/profile`);
|
|
1027
|
+
return this.http.requestJson(`/public/embed/customer-principals/${encodeURIComponent(customerPrincipalRef)}/profile`);
|
|
990
1028
|
}
|
|
991
1029
|
clear(customerPrincipalRef, options) {
|
|
992
|
-
return this.http.requestJson(`/public/embed/customer-principals/${customerPrincipalRef}/profile`, {
|
|
1030
|
+
return this.http.requestJson(`/public/embed/customer-principals/${encodeURIComponent(customerPrincipalRef)}/profile`, {
|
|
993
1031
|
method: "DELETE",
|
|
994
1032
|
options,
|
|
995
1033
|
mutation: true
|
|
@@ -1011,6 +1049,7 @@ var Agents24 = class {
|
|
|
1011
1049
|
agents;
|
|
1012
1050
|
embed;
|
|
1013
1051
|
runs;
|
|
1052
|
+
delegations;
|
|
1014
1053
|
resourcePackages;
|
|
1015
1054
|
resourceInstallations;
|
|
1016
1055
|
clientDeployments;
|
|
@@ -1023,6 +1062,7 @@ var Agents24 = class {
|
|
|
1023
1062
|
this.agents = new AgentsNamespace(http);
|
|
1024
1063
|
this.embed = new EmbedNamespace(http);
|
|
1025
1064
|
this.runs = new RunsNamespace(http);
|
|
1065
|
+
this.delegations = new DelegationsNamespace(http);
|
|
1026
1066
|
this.resourcePackages = new ResourcePackagesNamespace(http);
|
|
1027
1067
|
this.resourceInstallations = new ResourceInstallationsNamespace(http);
|
|
1028
1068
|
this.clientDeployments = new ClientDeploymentsNamespace(http);
|
|
@@ -1086,6 +1126,11 @@ var SDK_OPERATION_IDS = [
|
|
|
1086
1126
|
"customer_profiles.get",
|
|
1087
1127
|
"customer_profiles.search",
|
|
1088
1128
|
"customer_profiles.upsert",
|
|
1129
|
+
"delegations.act",
|
|
1130
|
+
"delegations.events",
|
|
1131
|
+
"delegations.history",
|
|
1132
|
+
"delegations.inspect",
|
|
1133
|
+
"delegations.list",
|
|
1089
1134
|
"embed.attach_agent_run",
|
|
1090
1135
|
"embed.cancel_agent_run",
|
|
1091
1136
|
"embed.create_attachment_content_access",
|