@agents24/node 0.5.9 → 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 +81 -57
- 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 +81 -57
- package/dist/bff.js.map +1 -1
- package/dist/{client-DA9J56wi.d.cts → client-DTdpRgGB.d.cts} +111 -1
- package/dist/{client-DA9J56wi.d.ts → client-DTdpRgGB.d.ts} +111 -1
- package/dist/index.cjs +65 -18
- 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 +65 -18
- 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/generated/resourceInstallations.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 +15 -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();
|
|
@@ -767,7 +767,9 @@ var ResourceInstallationsNamespace = class {
|
|
|
767
767
|
formData.append("file", new Blob([archiveBytes]), filename);
|
|
768
768
|
const response = await this.http.fetchOrThrow(
|
|
769
769
|
this.http.url("/resource-installations/plan", {
|
|
770
|
-
prune: upload.prune
|
|
770
|
+
prune: upload.prune,
|
|
771
|
+
integration_mode: upload.integrationMode,
|
|
772
|
+
primary_resource_key: upload.primaryResourceKey
|
|
771
773
|
}),
|
|
772
774
|
{ method: "POST", headers: this.http.multipartHeaders(void 0, void 0, false), body: formData },
|
|
773
775
|
"Failed to upload the Agents24 resource package."
|
|
@@ -782,7 +784,7 @@ var ResourceInstallationsNamespace = class {
|
|
|
782
784
|
const filename = /^[A-Za-z0-9][A-Za-z0-9._-]{0,200}\.zip$/.test(candidate) ? candidate : "resource.agents24.zip";
|
|
783
785
|
formData.append("file", new Blob([archiveBytes]), filename);
|
|
784
786
|
const response = await this.http.fetchOrThrow(
|
|
785
|
-
this.http.url(`/resource-installations/${installationId}/pull/plan`, void 0),
|
|
787
|
+
this.http.url(`/resource-installations/${encodeURIComponent(installationId)}/pull/plan`, void 0),
|
|
786
788
|
{ method: "POST", headers: this.http.multipartHeaders(void 0, void 0, false), body: formData },
|
|
787
789
|
"Failed to upload the Agents24 resource package."
|
|
788
790
|
);
|
|
@@ -790,10 +792,10 @@ var ResourceInstallationsNamespace = class {
|
|
|
790
792
|
return await response.json();
|
|
791
793
|
}
|
|
792
794
|
downloadPull(installationId, pullId) {
|
|
793
|
-
return this.http.requestJson(`/resource-installations/${installationId}/pull/${pullId}/download`);
|
|
795
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/pull/${encodeURIComponent(pullId)}/download`);
|
|
794
796
|
}
|
|
795
797
|
acceptPull(installationId, pullId, request, options) {
|
|
796
|
-
return this.http.requestJson(`/resource-installations/${installationId}/pull/${pullId}/accept`, {
|
|
798
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/pull/${encodeURIComponent(pullId)}/accept`, {
|
|
797
799
|
method: "POST",
|
|
798
800
|
body: request,
|
|
799
801
|
options,
|
|
@@ -801,7 +803,7 @@ var ResourceInstallationsNamespace = class {
|
|
|
801
803
|
});
|
|
802
804
|
}
|
|
803
805
|
link(installationId, request, options) {
|
|
804
|
-
return this.http.requestJson(`/resource-installations/${installationId}/link`, {
|
|
806
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/link`, {
|
|
805
807
|
method: "POST",
|
|
806
808
|
body: request,
|
|
807
809
|
options,
|
|
@@ -809,7 +811,7 @@ var ResourceInstallationsNamespace = class {
|
|
|
809
811
|
});
|
|
810
812
|
}
|
|
811
813
|
configureSecrets(installationId, request, options) {
|
|
812
|
-
return this.http.requestJson(`/resource-installations/${installationId}/secrets`, {
|
|
814
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/secrets`, {
|
|
813
815
|
method: "PUT",
|
|
814
816
|
body: request,
|
|
815
817
|
options,
|
|
@@ -817,7 +819,7 @@ var ResourceInstallationsNamespace = class {
|
|
|
817
819
|
});
|
|
818
820
|
}
|
|
819
821
|
apply(operationId, request, options) {
|
|
820
|
-
return this.http.requestJson(`/resource-installations/operations/${operationId}/apply`, {
|
|
822
|
+
return this.http.requestJson(`/resource-installations/operations/${encodeURIComponent(operationId)}/apply`, {
|
|
821
823
|
method: "POST",
|
|
822
824
|
body: request,
|
|
823
825
|
options,
|
|
@@ -825,10 +827,10 @@ var ResourceInstallationsNamespace = class {
|
|
|
825
827
|
});
|
|
826
828
|
}
|
|
827
829
|
operationStatus(operationId) {
|
|
828
|
-
return this.http.requestJson(`/resource-installations/operations/${operationId}/status`);
|
|
830
|
+
return this.http.requestJson(`/resource-installations/operations/${encodeURIComponent(operationId)}/status`);
|
|
829
831
|
}
|
|
830
832
|
publish(installationId, request, options) {
|
|
831
|
-
return this.http.requestJson(`/resource-installations/${installationId}/publish`, {
|
|
833
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/publish`, {
|
|
832
834
|
method: "POST",
|
|
833
835
|
body: request,
|
|
834
836
|
options,
|
|
@@ -836,7 +838,7 @@ var ResourceInstallationsNamespace = class {
|
|
|
836
838
|
});
|
|
837
839
|
}
|
|
838
840
|
prepareDevelopmentSession(installationId, request, options) {
|
|
839
|
-
return this.http.requestJson(`/resource-installations/${installationId}/artifact-development-sessions`, {
|
|
841
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/artifact-development-sessions`, {
|
|
840
842
|
method: "POST",
|
|
841
843
|
body: request,
|
|
842
844
|
options,
|
|
@@ -844,17 +846,17 @@ var ResourceInstallationsNamespace = class {
|
|
|
844
846
|
});
|
|
845
847
|
}
|
|
846
848
|
developmentSessionStatus(installationId, resourceKey) {
|
|
847
|
-
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)}`);
|
|
848
850
|
}
|
|
849
851
|
revokeDevelopmentSession(installationId, sessionId, options) {
|
|
850
|
-
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)}`, {
|
|
851
853
|
method: "DELETE",
|
|
852
854
|
options,
|
|
853
855
|
mutation: true
|
|
854
856
|
});
|
|
855
857
|
}
|
|
856
858
|
bindDeployment(installationId, request, options) {
|
|
857
|
-
return this.http.requestJson(`/resource-installations/${installationId}/deployment`, {
|
|
859
|
+
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/deployment`, {
|
|
858
860
|
method: "PUT",
|
|
859
861
|
body: request,
|
|
860
862
|
options,
|
|
@@ -897,6 +899,44 @@ var RunsNamespace = class {
|
|
|
897
899
|
}
|
|
898
900
|
};
|
|
899
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
|
+
|
|
900
940
|
// src/generated/instructions.ts
|
|
901
941
|
var InstructionsNamespace = class {
|
|
902
942
|
constructor(http) {
|
|
@@ -904,7 +944,7 @@ var InstructionsNamespace = class {
|
|
|
904
944
|
}
|
|
905
945
|
http;
|
|
906
946
|
publish(instructionId, options) {
|
|
907
|
-
return this.http.requestJson(`/prompts/${instructionId}/publish`, {
|
|
947
|
+
return this.http.requestJson(`/prompts/${encodeURIComponent(instructionId)}/publish`, {
|
|
908
948
|
method: "POST",
|
|
909
949
|
body: {},
|
|
910
950
|
options,
|
|
@@ -983,10 +1023,10 @@ var CustomerProfilesNamespace = class {
|
|
|
983
1023
|
});
|
|
984
1024
|
}
|
|
985
1025
|
get(customerPrincipalRef) {
|
|
986
|
-
return this.http.requestJson(`/public/embed/customer-principals/${customerPrincipalRef}/profile`);
|
|
1026
|
+
return this.http.requestJson(`/public/embed/customer-principals/${encodeURIComponent(customerPrincipalRef)}/profile`);
|
|
987
1027
|
}
|
|
988
1028
|
clear(customerPrincipalRef, options) {
|
|
989
|
-
return this.http.requestJson(`/public/embed/customer-principals/${customerPrincipalRef}/profile`, {
|
|
1029
|
+
return this.http.requestJson(`/public/embed/customer-principals/${encodeURIComponent(customerPrincipalRef)}/profile`, {
|
|
990
1030
|
method: "DELETE",
|
|
991
1031
|
options,
|
|
992
1032
|
mutation: true
|
|
@@ -1008,6 +1048,7 @@ var Agents24 = class {
|
|
|
1008
1048
|
agents;
|
|
1009
1049
|
embed;
|
|
1010
1050
|
runs;
|
|
1051
|
+
delegations;
|
|
1011
1052
|
resourcePackages;
|
|
1012
1053
|
resourceInstallations;
|
|
1013
1054
|
clientDeployments;
|
|
@@ -1020,6 +1061,7 @@ var Agents24 = class {
|
|
|
1020
1061
|
this.agents = new AgentsNamespace(http);
|
|
1021
1062
|
this.embed = new EmbedNamespace(http);
|
|
1022
1063
|
this.runs = new RunsNamespace(http);
|
|
1064
|
+
this.delegations = new DelegationsNamespace(http);
|
|
1023
1065
|
this.resourcePackages = new ResourcePackagesNamespace(http);
|
|
1024
1066
|
this.resourceInstallations = new ResourceInstallationsNamespace(http);
|
|
1025
1067
|
this.clientDeployments = new ClientDeploymentsNamespace(http);
|
|
@@ -1083,6 +1125,11 @@ var SDK_OPERATION_IDS = [
|
|
|
1083
1125
|
"customer_profiles.get",
|
|
1084
1126
|
"customer_profiles.search",
|
|
1085
1127
|
"customer_profiles.upsert",
|
|
1128
|
+
"delegations.act",
|
|
1129
|
+
"delegations.events",
|
|
1130
|
+
"delegations.history",
|
|
1131
|
+
"delegations.inspect",
|
|
1132
|
+
"delegations.list",
|
|
1086
1133
|
"embed.attach_agent_run",
|
|
1087
1134
|
"embed.cancel_agent_run",
|
|
1088
1135
|
"embed.create_attachment_content_access",
|