@agents24/node 0.5.10 → 0.5.11
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
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { a as AgentCreateRequest, b as AgentDefinitionBuilder, c as AgentDefinitionOptions, d as AgentListResponse, e as AgentRef, f as AgentResponse, g as AgentStreamRequest, h as AgentSummary, i as AgentToolsetAttachment, j as AgentUpdateRequest, k as AgentValidationIssue, l as AgentValidationResult, A as Agents24, m as Agents24NodeError, n as Agents24NodeErrorKind, o as Agents24NodeOptions, p as Agents24Options, m as Agents24SDKError, q as Agents24SDKErrorKind, r as Agents24SDKSerializedError, s as ArtifactDevelopmentSession, t as ArtifactDevelopmentSessionAdmission, u as ArtifactDevelopmentSessionPrepareRequest, v as AttachRunRequest, w as AttachmentContentAccessRequest, B as BackendSessionRequestOptions, x as BranchingHint, C as ClearCustomerResourcePolicyAssignmentResult, y as ClientAuthMode, z as ClientDeployment, D as ClientDeploymentListQuery, E as ClientDeploymentListResponse, F as ClientNativeProfile, G as ClientRuntimeNativeProfileInput, H as ClientRuntimeOidcConfig, I as ClientRuntimePolicyInput, J as ClientSessionCredentials, K as ControlPlaneAgentRunRequest, L as ControlPlaneRunEventsResponse, M as ConversationRunRequest, N as ConversationRunResult, O as ConversationRuntimeSelectionRequest, P as ConversationRuntimeSelectionResult, Q as ConversationThreadOptions, R as CreateBackendClientSessionRequest, S as CreateClientDeploymentRequest, T as CustomerIdentityRequest, U as CustomerPrincipalRefRequest, V as CustomerProfile, W as CustomerProfileList, X as CustomerProfilePatch, Y as CustomerProfileSearchOptions, Z as CustomerResourcePolicyAssignment, _ as
|
|
1
|
+
export { a as AgentCreateRequest, b as AgentDefinitionBuilder, c as AgentDefinitionOptions, d as AgentListResponse, e as AgentRef, f as AgentResponse, g as AgentStreamRequest, h as AgentSummary, i as AgentToolsetAttachment, j as AgentUpdateRequest, k as AgentValidationIssue, l as AgentValidationResult, A as Agents24, m as Agents24NodeError, n as Agents24NodeErrorKind, o as Agents24NodeOptions, p as Agents24Options, m as Agents24SDKError, q as Agents24SDKErrorKind, r as Agents24SDKSerializedError, s as ArtifactDevelopmentSession, t as ArtifactDevelopmentSessionAdmission, u as ArtifactDevelopmentSessionPrepareRequest, v as AttachRunRequest, w as AttachmentContentAccessRequest, B as BackendSessionRequestOptions, x as BranchingHint, C as ClearCustomerResourcePolicyAssignmentResult, y as ClientAuthMode, z as ClientDeployment, D as ClientDeploymentListQuery, E as ClientDeploymentListResponse, F as ClientNativeProfile, G as ClientRuntimeNativeProfileInput, H as ClientRuntimeOidcConfig, I as ClientRuntimePolicyInput, J as ClientSessionCredentials, K as ControlPlaneAgentRunRequest, L as ControlPlaneRunEventsResponse, M as ConversationRunRequest, N as ConversationRunResult, O as ConversationRuntimeSelectionRequest, P as ConversationRuntimeSelectionResult, Q as ConversationThreadOptions, R as CreateBackendClientSessionRequest, S as CreateClientDeploymentRequest, T as CustomerIdentityRequest, U as CustomerPrincipalRefRequest, V as CustomerProfile, W as CustomerProfileList, X as CustomerProfilePatch, Y as CustomerProfileSearchOptions, Z as CustomerResourcePolicyAssignment, _ as DelegationAction, $ as DelegationActionRequest, a0 as DelegationEvents, a1 as DelegationHistory, a2 as DelegationHistoryTurn, a3 as DelegationStatus, a4 as DelegationTask, a5 as DelegationTaskList, a6 as EffectiveCustomerResourcePolicyRequest, a7 as EffectiveResourcePolicy, a8 as EmbedAgentAliasResolution, a9 as EmbedAttachmentContentAccessRequest, aa as EmbedCustomerPrincipalResolveRequest, ab as EmbedCustomerPrincipalResolveResponse, ac as EmbedResourcePolicyRequest, ad as EmbedRunCancelOptions, ae as EmbedRunStartRequest, af as EmbedRuntimeBootstrap, ag as EmbedStreamRequest, ah as EmbeddedResponseFeedbackInput, ai as FailureCategory, aj as FailureView, ak as FeedbackRating, al as FeedbackReason, am as GraphBuilder, an as GraphDefinition, ao as GraphEdge, ap as GraphHints, aq as GraphNode, ar as GraphValueRef, as as HitlAction, at as HitlAnswer, au as LatestOrPinnedPolicy, av as McpAuthStartRequest, aw as McpAuthStartResult, ax as MultiAgentThreadListRequest, ay as MultiAgentThreadSummaryEventOptions, az as NativePlatform, aA as NodeAuthoringSpec, aB as NodeCatalogItem, aC as NodeCatalogResponse, aD as NodeSchemaResponse, aE as PortableResourceKind, aF as RequestOptions, aG as ResetResourcePolicyQuotaRequest, aH as ResourceCallableBinding, aI as ResourceCallableBindingStatus, aJ as ResourceCandidateList, aK as ResourceInstallation, aL as ResourceInstallationApplication, aM as ResourceInstallationApplyRequest, aN as ResourceInstallationBinding, aO as ResourceInstallationCreateRequest, aP as ResourceInstallationDeploymentRequest, aQ as ResourceInstallationLinkRequest, aR as ResourceInstallationList, aS as ResourceInstallationOperation, aT as ResourceInstallationPlan, aU as ResourceInstallationPlanUpload, aV as ResourceInstallationPublication, aW as ResourceInstallationPublishRequest, aX as ResourceInstallationPullAcceptRequest, aY as ResourceInstallationPullChange, aZ as ResourceInstallationPullPayload, a_ as ResourceInstallationPullPlan, a$ as ResourceInstallationResourceListOptions, b0 as ResourceInstallationSecretStatus, b1 as ResourceInstallationSecretsRequest, b2 as ResourcePackageArchive, b3 as ResourcePackageCandidateOptions, b4 as ResourcePackageDependency, b5 as ResourcePackageDiagnostic, b6 as ResourcePackageExportPlan, b7 as ResourcePackageExportRequest, b8 as ResourcePackageImportPreview, b9 as ResourcePackageImportResult, ba as ResourcePackageImportUpload, bb as ResourcePackageUpload, bc as ResourcePackageValidationResult, bd as ResourcePolicyList, be as ResourcePolicyQuotaSchedule, bf as ResourcePolicyQuotaScheduleResult, bg as ResourcePolicySubjectRef, bh as ResourcePolicySummary, bi as ResourceSelector, bj as ResourceToolExport, bk as ResponseFeedback, bl as ResponseFeedbackResult, bm as ResumeRunRequest, bn as RunCancelOptions, bo as RunContextOptions, bp as RunStatus, bq as RunTrace, br as ServerAttachmentUploadOptions, bs as ServerEmbedAttachmentUploadOptions, bt as SetCustomerResourcePolicyAssignmentRequest, bu as SetResourcePolicyQuotaScheduleRequest, bv as StartRunResult, bw as StateVariableDefinition, bx as StreamRequestOptions, by as StreamResult, bz as ThreadDeleteOptions, bA as ThreadDetailOptions, bB as ThreadListOptions, bC as ThreadSummaryEventOptions, bD as TraceContent, bE as TraceError, bF as TraceSpan, bG as TraceSpanKind, bH as TraceSpanStatus, bI as TraceView, bJ as UpdateClientDeploymentRequest, bK as WorkflowInputDefinition } from './client-DTdpRgGB.js';
|
|
2
2
|
export { ActiveThreadRun, Attachment, AttachmentContentAccess, AttachmentUploadResult, CONTRACT_HASH, ContextCompression, ContextWindow, ContextWindowConfidence, ContextWindowSource, ContextWindowStage, ContextWindowTracker, JsonScalar, JsonValue, ModelTurnEventName, ModelTurnKind, ModelTurnOutcome, ModelTurnPayload, ModelTurnRuntimeEvent, ModelTurnStatus, ProtocolErrorCategory, PublicResponseBlock, RUNTIME_PROTOCOL_VERSION, PublicResponseBlock as ResponseBlock, RunCancelResult, RunContext, RunResumeResult, RuntimeEvent, THREAD_SUMMARY_PROTOCOL_VERSION, ThreadDeleteResult, ThreadDetail, ThreadSummary, ThreadSummaryEvent, ThreadTurn, ThreadsResponse, ToolInputOverrides, compressionFromContextWindow, createContextWindowTracker, mergeContextWindow, mergeContextWindowUpdate, normalizeContextCompression, normalizeContextWindow, parseRuntimeEvent, parseRuntimeSsePayload, parseThreadSummarySsePayload, validateResponseBlock, validateRuntimeEvent, validateThreadSummaryEvent } from '@agents24/client/protocol';
|
|
3
3
|
|
|
4
|
-
declare const SDK_OPERATION_IDS: readonly ["agents.cancel_run", "agents.catalog", "agents.create", "agents.create_attachment_content_access", "agents.delete", "agents.get", "agents.list", "agents.publish", "agents.resume_run", "agents.schema", "agents.start_run", "agents.stream", "agents.update", "agents.update_graph", "agents.upload_attachments", "agents.validate", "client.attachments.create_content_access", "client.attachments.upload", "client.bootstrap", "client.chat.stream", "client.deployments.create", "client.deployments.delete", "client.deployments.get", "client.deployments.list", "client.deployments.update", "client.hitl.resume", "client.jwks", "client.mcp.redeem", "client.mcp.start", "client.resource_policy", "client.runs.attach", "client.runs.cancel", "client.runs.set_feedback", "client.sessions.anonymous", "client.sessions.backendExchange", "client.sessions.refresh", "client.sessions.revoke", "client.threads.delete", "client.threads.events", "client.threads.get", "client.threads.list", "customer_profiles.clear", "customer_profiles.get", "customer_profiles.search", "customer_profiles.upsert", "embed.attach_agent_run", "embed.cancel_agent_run", "embed.create_attachment_content_access", "embed.delete_agent_thread", "embed.delete_conversation_thread", "embed.get_agent_run_context", "embed.get_agent_thread", "embed.get_conversation_thread", "embed.get_resource_policy", "embed.get_runtime_bootstrap", "embed.list_agent_threads", "embed.list_agent_threads_multi", "embed.resolve_agent_alias", "embed.resolve_conversation_run", "embed.resolve_customer_principal", "embed.resume_agent_run", "embed.set_agent_run_feedback", "embed.set_conversation_runtime_selection", "embed.start_agent_run", "embed.start_agent_run_mcp_auth", "embed.stream_agent", "embed.stream_agent_thread_events", "embed.stream_agent_thread_events_multi", "embed.upload_agent_attachments", "instructions.publish", "resource_installations.accept_pull", "resource_installations.apply", "resource_installations.bind_deployment", "resource_installations.configure_secrets", "resource_installations.create", "resource_installations.development_session_status", "resource_installations.download_pull", "resource_installations.get", "resource_installations.get_by_package_id", "resource_installations.link", "resource_installations.list", "resource_installations.operation_status", "resource_installations.plan", "resource_installations.plan_pull", "resource_installations.prepare_development_session", "resource_installations.publish", "resource_installations.resources", "resource_installations.revoke_development_session", "resource_packages.candidates", "resource_packages.export", "resource_packages.export_plan", "resource_packages.exportability", "resource_packages.import", "resource_packages.import_preview", "resource_packages.validate", "resource_policies.clear_customer_assignment", "resource_policies.get_customer_assignment", "resource_policies.get_effective_customer_policy", "resource_policies.list", "resource_policies.reset_quota_now", "resource_policies.set_customer_assignment", "resource_policies.set_quota_schedule", "runs.get", "runs.get_context", "runs.get_events", "runs.get_trace", "runs.get_tree"];
|
|
4
|
+
declare const SDK_OPERATION_IDS: readonly ["agents.cancel_run", "agents.catalog", "agents.create", "agents.create_attachment_content_access", "agents.delete", "agents.get", "agents.list", "agents.publish", "agents.resume_run", "agents.schema", "agents.start_run", "agents.stream", "agents.update", "agents.update_graph", "agents.upload_attachments", "agents.validate", "client.attachments.create_content_access", "client.attachments.upload", "client.bootstrap", "client.chat.stream", "client.deployments.create", "client.deployments.delete", "client.deployments.get", "client.deployments.list", "client.deployments.update", "client.hitl.resume", "client.jwks", "client.mcp.redeem", "client.mcp.start", "client.resource_policy", "client.runs.attach", "client.runs.cancel", "client.runs.set_feedback", "client.sessions.anonymous", "client.sessions.backendExchange", "client.sessions.refresh", "client.sessions.revoke", "client.threads.delete", "client.threads.events", "client.threads.get", "client.threads.list", "customer_profiles.clear", "customer_profiles.get", "customer_profiles.search", "customer_profiles.upsert", "delegations.act", "delegations.events", "delegations.history", "delegations.inspect", "delegations.list", "embed.attach_agent_run", "embed.cancel_agent_run", "embed.create_attachment_content_access", "embed.delete_agent_thread", "embed.delete_conversation_thread", "embed.get_agent_run_context", "embed.get_agent_thread", "embed.get_conversation_thread", "embed.get_resource_policy", "embed.get_runtime_bootstrap", "embed.list_agent_threads", "embed.list_agent_threads_multi", "embed.resolve_agent_alias", "embed.resolve_conversation_run", "embed.resolve_customer_principal", "embed.resume_agent_run", "embed.set_agent_run_feedback", "embed.set_conversation_runtime_selection", "embed.start_agent_run", "embed.start_agent_run_mcp_auth", "embed.stream_agent", "embed.stream_agent_thread_events", "embed.stream_agent_thread_events_multi", "embed.upload_agent_attachments", "instructions.publish", "resource_installations.accept_pull", "resource_installations.apply", "resource_installations.bind_deployment", "resource_installations.configure_secrets", "resource_installations.create", "resource_installations.development_session_status", "resource_installations.download_pull", "resource_installations.get", "resource_installations.get_by_package_id", "resource_installations.link", "resource_installations.list", "resource_installations.operation_status", "resource_installations.plan", "resource_installations.plan_pull", "resource_installations.prepare_development_session", "resource_installations.publish", "resource_installations.resources", "resource_installations.revoke_development_session", "resource_packages.candidates", "resource_packages.export", "resource_packages.export_plan", "resource_packages.exportability", "resource_packages.import", "resource_packages.import_preview", "resource_packages.validate", "resource_policies.clear_customer_assignment", "resource_policies.get_customer_assignment", "resource_policies.get_effective_customer_policy", "resource_policies.list", "resource_policies.reset_quota_now", "resource_policies.set_customer_assignment", "resource_policies.set_quota_schedule", "runs.get", "runs.get_context", "runs.get_events", "runs.get_trace", "runs.get_tree"];
|
|
5
5
|
type SDKOperationId = (typeof SDK_OPERATION_IDS)[number];
|
|
6
6
|
|
|
7
7
|
export { type SDKOperationId, SDK_OPERATION_IDS };
|
package/dist/index.js
CHANGED
|
@@ -754,10 +754,10 @@ var ResourceInstallationsNamespace = class {
|
|
|
754
754
|
});
|
|
755
755
|
}
|
|
756
756
|
get(installationId) {
|
|
757
|
-
return this.http.requestJson(`/resource-installations/${installationId}`);
|
|
757
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}`);
|
|
758
758
|
}
|
|
759
759
|
getByPackageId(packageId) {
|
|
760
|
-
return this.http.requestJson(`/resource-installations/by-package/${packageId}`);
|
|
760
|
+
return this.http.requestJson(`/resource-installations/by-package/${encodeURIComponent(packageId)}`);
|
|
761
761
|
}
|
|
762
762
|
async plan(upload) {
|
|
763
763
|
const formData = new FormData();
|
|
@@ -784,7 +784,7 @@ var ResourceInstallationsNamespace = class {
|
|
|
784
784
|
const filename = /^[A-Za-z0-9][A-Za-z0-9._-]{0,200}\.zip$/.test(candidate) ? candidate : "resource.agents24.zip";
|
|
785
785
|
formData.append("file", new Blob([archiveBytes]), filename);
|
|
786
786
|
const response = await this.http.fetchOrThrow(
|
|
787
|
-
this.http.url(`/resource-installations/${installationId}/pull/plan`, void 0),
|
|
787
|
+
this.http.url(`/resource-installations/${encodeURIComponent(installationId)}/pull/plan`, void 0),
|
|
788
788
|
{ method: "POST", headers: this.http.multipartHeaders(void 0, void 0, false), body: formData },
|
|
789
789
|
"Failed to upload the Agents24 resource package."
|
|
790
790
|
);
|
|
@@ -792,10 +792,10 @@ var ResourceInstallationsNamespace = class {
|
|
|
792
792
|
return await response.json();
|
|
793
793
|
}
|
|
794
794
|
downloadPull(installationId, pullId) {
|
|
795
|
-
return this.http.requestJson(`/resource-installations/${installationId}/pull/${pullId}/download`);
|
|
795
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/pull/${encodeURIComponent(pullId)}/download`);
|
|
796
796
|
}
|
|
797
797
|
acceptPull(installationId, pullId, request, options) {
|
|
798
|
-
return this.http.requestJson(`/resource-installations/${installationId}/pull/${pullId}/accept`, {
|
|
798
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/pull/${encodeURIComponent(pullId)}/accept`, {
|
|
799
799
|
method: "POST",
|
|
800
800
|
body: request,
|
|
801
801
|
options,
|
|
@@ -803,7 +803,7 @@ var ResourceInstallationsNamespace = class {
|
|
|
803
803
|
});
|
|
804
804
|
}
|
|
805
805
|
link(installationId, request, options) {
|
|
806
|
-
return this.http.requestJson(`/resource-installations/${installationId}/link`, {
|
|
806
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/link`, {
|
|
807
807
|
method: "POST",
|
|
808
808
|
body: request,
|
|
809
809
|
options,
|
|
@@ -811,7 +811,7 @@ var ResourceInstallationsNamespace = class {
|
|
|
811
811
|
});
|
|
812
812
|
}
|
|
813
813
|
configureSecrets(installationId, request, options) {
|
|
814
|
-
return this.http.requestJson(`/resource-installations/${installationId}/secrets`, {
|
|
814
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/secrets`, {
|
|
815
815
|
method: "PUT",
|
|
816
816
|
body: request,
|
|
817
817
|
options,
|
|
@@ -819,7 +819,7 @@ var ResourceInstallationsNamespace = class {
|
|
|
819
819
|
});
|
|
820
820
|
}
|
|
821
821
|
apply(operationId, request, options) {
|
|
822
|
-
return this.http.requestJson(`/resource-installations/operations/${operationId}/apply`, {
|
|
822
|
+
return this.http.requestJson(`/resource-installations/operations/${encodeURIComponent(operationId)}/apply`, {
|
|
823
823
|
method: "POST",
|
|
824
824
|
body: request,
|
|
825
825
|
options,
|
|
@@ -827,10 +827,10 @@ var ResourceInstallationsNamespace = class {
|
|
|
827
827
|
});
|
|
828
828
|
}
|
|
829
829
|
operationStatus(operationId) {
|
|
830
|
-
return this.http.requestJson(`/resource-installations/operations/${operationId}/status`);
|
|
830
|
+
return this.http.requestJson(`/resource-installations/operations/${encodeURIComponent(operationId)}/status`);
|
|
831
831
|
}
|
|
832
832
|
publish(installationId, request, options) {
|
|
833
|
-
return this.http.requestJson(`/resource-installations/${installationId}/publish`, {
|
|
833
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/publish`, {
|
|
834
834
|
method: "POST",
|
|
835
835
|
body: request,
|
|
836
836
|
options,
|
|
@@ -838,7 +838,7 @@ var ResourceInstallationsNamespace = class {
|
|
|
838
838
|
});
|
|
839
839
|
}
|
|
840
840
|
prepareDevelopmentSession(installationId, request, options) {
|
|
841
|
-
return this.http.requestJson(`/resource-installations/${installationId}/artifact-development-sessions`, {
|
|
841
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/artifact-development-sessions`, {
|
|
842
842
|
method: "POST",
|
|
843
843
|
body: request,
|
|
844
844
|
options,
|
|
@@ -846,17 +846,17 @@ var ResourceInstallationsNamespace = class {
|
|
|
846
846
|
});
|
|
847
847
|
}
|
|
848
848
|
developmentSessionStatus(installationId, resourceKey) {
|
|
849
|
-
return this.http.requestJson(`/resource-installations/${installationId}/artifact-development-sessions/${resourceKey}`);
|
|
849
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/artifact-development-sessions/${encodeURIComponent(resourceKey)}`);
|
|
850
850
|
}
|
|
851
851
|
revokeDevelopmentSession(installationId, sessionId, options) {
|
|
852
|
-
return this.http.requestJson(`/resource-installations/${installationId}/artifact-development-sessions/${sessionId}`, {
|
|
852
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/artifact-development-sessions/${encodeURIComponent(sessionId)}`, {
|
|
853
853
|
method: "DELETE",
|
|
854
854
|
options,
|
|
855
855
|
mutation: true
|
|
856
856
|
});
|
|
857
857
|
}
|
|
858
858
|
bindDeployment(installationId, request, options) {
|
|
859
|
-
return this.http.requestJson(`/resource-installations/${installationId}/deployment`, {
|
|
859
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/deployment`, {
|
|
860
860
|
method: "PUT",
|
|
861
861
|
body: request,
|
|
862
862
|
options,
|
|
@@ -899,6 +899,44 @@ var RunsNamespace = class {
|
|
|
899
899
|
}
|
|
900
900
|
};
|
|
901
901
|
|
|
902
|
+
// src/generated/delegations.ts
|
|
903
|
+
var DelegationsNamespace = class {
|
|
904
|
+
constructor(http) {
|
|
905
|
+
this.http = http;
|
|
906
|
+
}
|
|
907
|
+
http;
|
|
908
|
+
history(runId, handle, options = {}) {
|
|
909
|
+
return this.http.requestJson(`/agents/runs/${encodeURIComponent(runId)}/delegations/${encodeURIComponent(handle)}/history`, {
|
|
910
|
+
query: {
|
|
911
|
+
before: options.before,
|
|
912
|
+
limit: options.limit ?? 20
|
|
913
|
+
}
|
|
914
|
+
});
|
|
915
|
+
}
|
|
916
|
+
list(runId) {
|
|
917
|
+
return this.http.requestJson(`/agents/runs/${encodeURIComponent(runId)}/delegations`);
|
|
918
|
+
}
|
|
919
|
+
inspect(runId, handle) {
|
|
920
|
+
return this.http.requestJson(`/agents/runs/${encodeURIComponent(runId)}/delegations/${encodeURIComponent(handle)}`);
|
|
921
|
+
}
|
|
922
|
+
events(runId, options = {}) {
|
|
923
|
+
return this.http.requestJson(`/agents/runs/${encodeURIComponent(runId)}/delegations/events`, {
|
|
924
|
+
query: {
|
|
925
|
+
after: options.after ?? 0,
|
|
926
|
+
limit: options.limit ?? 100
|
|
927
|
+
}
|
|
928
|
+
});
|
|
929
|
+
}
|
|
930
|
+
act(runId, handle, request, options) {
|
|
931
|
+
return this.http.requestJson(`/agents/runs/${encodeURIComponent(runId)}/delegations/${encodeURIComponent(handle)}/actions`, {
|
|
932
|
+
method: "POST",
|
|
933
|
+
body: request,
|
|
934
|
+
options,
|
|
935
|
+
mutation: true
|
|
936
|
+
});
|
|
937
|
+
}
|
|
938
|
+
};
|
|
939
|
+
|
|
902
940
|
// src/generated/instructions.ts
|
|
903
941
|
var InstructionsNamespace = class {
|
|
904
942
|
constructor(http) {
|
|
@@ -906,7 +944,7 @@ var InstructionsNamespace = class {
|
|
|
906
944
|
}
|
|
907
945
|
http;
|
|
908
946
|
publish(instructionId, options) {
|
|
909
|
-
return this.http.requestJson(`/prompts/${instructionId}/publish`, {
|
|
947
|
+
return this.http.requestJson(`/prompts/${encodeURIComponent(instructionId)}/publish`, {
|
|
910
948
|
method: "POST",
|
|
911
949
|
body: {},
|
|
912
950
|
options,
|
|
@@ -985,10 +1023,10 @@ var CustomerProfilesNamespace = class {
|
|
|
985
1023
|
});
|
|
986
1024
|
}
|
|
987
1025
|
get(customerPrincipalRef) {
|
|
988
|
-
return this.http.requestJson(`/public/embed/customer-principals/${customerPrincipalRef}/profile`);
|
|
1026
|
+
return this.http.requestJson(`/public/embed/customer-principals/${encodeURIComponent(customerPrincipalRef)}/profile`);
|
|
989
1027
|
}
|
|
990
1028
|
clear(customerPrincipalRef, options) {
|
|
991
|
-
return this.http.requestJson(`/public/embed/customer-principals/${customerPrincipalRef}/profile`, {
|
|
1029
|
+
return this.http.requestJson(`/public/embed/customer-principals/${encodeURIComponent(customerPrincipalRef)}/profile`, {
|
|
992
1030
|
method: "DELETE",
|
|
993
1031
|
options,
|
|
994
1032
|
mutation: true
|
|
@@ -1010,6 +1048,7 @@ var Agents24 = class {
|
|
|
1010
1048
|
agents;
|
|
1011
1049
|
embed;
|
|
1012
1050
|
runs;
|
|
1051
|
+
delegations;
|
|
1013
1052
|
resourcePackages;
|
|
1014
1053
|
resourceInstallations;
|
|
1015
1054
|
clientDeployments;
|
|
@@ -1022,6 +1061,7 @@ var Agents24 = class {
|
|
|
1022
1061
|
this.agents = new AgentsNamespace(http);
|
|
1023
1062
|
this.embed = new EmbedNamespace(http);
|
|
1024
1063
|
this.runs = new RunsNamespace(http);
|
|
1064
|
+
this.delegations = new DelegationsNamespace(http);
|
|
1025
1065
|
this.resourcePackages = new ResourcePackagesNamespace(http);
|
|
1026
1066
|
this.resourceInstallations = new ResourceInstallationsNamespace(http);
|
|
1027
1067
|
this.clientDeployments = new ClientDeploymentsNamespace(http);
|
|
@@ -1085,6 +1125,11 @@ var SDK_OPERATION_IDS = [
|
|
|
1085
1125
|
"customer_profiles.get",
|
|
1086
1126
|
"customer_profiles.search",
|
|
1087
1127
|
"customer_profiles.upsert",
|
|
1128
|
+
"delegations.act",
|
|
1129
|
+
"delegations.events",
|
|
1130
|
+
"delegations.history",
|
|
1131
|
+
"delegations.inspect",
|
|
1132
|
+
"delegations.list",
|
|
1088
1133
|
"embed.attach_agent_run",
|
|
1089
1134
|
"embed.cancel_agent_run",
|
|
1090
1135
|
"embed.create_attachment_content_access",
|