@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/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 ControlPlaneRunEventsResponse, L as ConversationRunRequest, M as ConversationRunResult, N as ConversationRuntimeSelectionRequest, O as ConversationRuntimeSelectionResult, P as ConversationThreadOptions, Q as CreateBackendClientSessionRequest, R as CreateClientDeploymentRequest, S as CustomerIdentityRequest, T as CustomerPrincipalRefRequest, U as CustomerProfile, V as CustomerProfileList, W as CustomerProfilePatch, X as CustomerProfileSearchOptions, Y as CustomerResourcePolicyAssignment, Z as EffectiveCustomerResourcePolicyRequest, _ as EffectiveResourcePolicy, $ as EmbedAgentAliasResolution, a0 as EmbedAttachmentContentAccessRequest, a1 as EmbedCustomerPrincipalResolveRequest, a2 as EmbedCustomerPrincipalResolveResponse, a3 as EmbedResourcePolicyRequest, a4 as EmbedRunCancelOptions, a5 as EmbedRuntimeBootstrap, a6 as EmbedStreamRequest, a7 as EmbeddedResponseFeedbackInput, a8 as FailureCategory, a9 as FailureView, aa as FeedbackRating, ab as FeedbackReason, ac as GraphBuilder, ad as GraphDefinition, ae as GraphEdge, af as GraphHints, ag as GraphNode, ah as GraphValueRef, ai as HitlAction, aj as HitlAnswer, ak as LatestOrPinnedPolicy, al as McpAuthStartRequest, am as McpAuthStartResult, an as MultiAgentThreadListRequest, ao as MultiAgentThreadSummaryEventOptions, ap as NativePlatform, aq as NodeAuthoringSpec, ar as NodeCatalogItem, as as NodeCatalogResponse, at as NodeSchemaResponse, au as PortableResourceKind, av as RequestOptions, aw as ResetResourcePolicyQuotaRequest, ax as ResourceCallableBinding, ay as ResourceCallableBindingStatus, az as ResourceCandidateList, aA as ResourceInstallation, aB as ResourceInstallationApplyRequest, aC as ResourceInstallationBinding, aD as ResourceInstallationCreateRequest, aE as ResourceInstallationDeploymentRequest, aF as ResourceInstallationLinkRequest, aG as ResourceInstallationList, aH as ResourceInstallationOperation, aI as ResourceInstallationPlan, aJ as ResourceInstallationPlanUpload, aK as ResourceInstallationPublication, aL as ResourceInstallationPublishRequest, aM as ResourceInstallationPullAcceptRequest, aN as ResourceInstallationPullChange, aO as ResourceInstallationPullPayload, aP as ResourceInstallationPullPlan, aQ as ResourceInstallationResourceListOptions, aR as ResourceInstallationSecretStatus, aS as ResourceInstallationSecretsRequest, aT as ResourcePackageArchive, aU as ResourcePackageCandidateOptions, aV as ResourcePackageDependency, aW as ResourcePackageDiagnostic, aX as ResourcePackageExportPlan, aY as ResourcePackageExportRequest, aZ as ResourcePackageImportPreview, a_ as ResourcePackageImportResult, a$ as ResourcePackageImportUpload, b0 as ResourcePackageUpload, b1 as ResourcePackageValidationResult, b2 as ResourcePolicyList, b3 as ResourcePolicyQuotaSchedule, b4 as ResourcePolicyQuotaScheduleResult, b5 as ResourcePolicySubjectRef, b6 as ResourcePolicySummary, b7 as ResourceSelector, b8 as ResourceToolExport, b9 as ResponseFeedback, ba as ResponseFeedbackResult, bb as ResumeRunRequest, bc as RunCancelOptions, bd as RunContextOptions, be as RunStatus, bf as RunTrace, bg as ServerAttachmentUploadOptions, bh as ServerEmbedAttachmentUploadOptions, bi as SetCustomerResourcePolicyAssignmentRequest, bj as SetResourcePolicyQuotaScheduleRequest, bk as StartRunResult, bl as StateVariableDefinition, bm as StreamRequestOptions, bn as StreamResult, bo as ThreadDeleteOptions, bp as ThreadDetailOptions, bq as ThreadListOptions, br as ThreadSummaryEventOptions, bs as TraceContent, bt as TraceError, bu as TraceSpan, bv as TraceSpanKind, bw as TraceSpanStatus, bx as TraceView, by as UpdateClientDeploymentRequest, bz as WorkflowInputDefinition } from './client-B-fZ0Vk_.js';
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 EffectiveCustomerResourcePolicyRequest, $ as EffectiveResourcePolicy, a0 as EmbedAgentAliasResolution, a1 as EmbedAttachmentContentAccessRequest, a2 as EmbedCustomerPrincipalResolveRequest, a3 as EmbedCustomerPrincipalResolveResponse, a4 as EmbedResourcePolicyRequest, a5 as EmbedRunCancelOptions, a6 as EmbedRunStartRequest, a7 as EmbedRuntimeBootstrap, a8 as EmbedStreamRequest, a9 as EmbeddedResponseFeedbackInput, aa as FailureCategory, ab as FailureView, ac as FeedbackRating, ad as FeedbackReason, ae as GraphBuilder, af as GraphDefinition, ag as GraphEdge, ah as GraphHints, ai as GraphNode, aj as GraphValueRef, ak as HitlAction, al as HitlAnswer, am as LatestOrPinnedPolicy, an as McpAuthStartRequest, ao as McpAuthStartResult, ap as MultiAgentThreadListRequest, aq as MultiAgentThreadSummaryEventOptions, ar as NativePlatform, as as NodeAuthoringSpec, at as NodeCatalogItem, au as NodeCatalogResponse, av as NodeSchemaResponse, aw as PortableResourceKind, ax as RequestOptions, ay as ResetResourcePolicyQuotaRequest, az as ResourceCallableBinding, aA as ResourceCallableBindingStatus, aB as ResourceCandidateList, aC as ResourceInstallation, aD as ResourceInstallationApplication, aE as ResourceInstallationApplyRequest, aF as ResourceInstallationBinding, aG as ResourceInstallationCreateRequest, aH as ResourceInstallationDeploymentRequest, aI as ResourceInstallationLinkRequest, aJ as ResourceInstallationList, aK as ResourceInstallationOperation, aL as ResourceInstallationPlan, aM as ResourceInstallationPlanUpload, aN as ResourceInstallationPublication, aO as ResourceInstallationPublishRequest, aP as ResourceInstallationPullAcceptRequest, aQ as ResourceInstallationPullChange, aR as ResourceInstallationPullPayload, aS as ResourceInstallationPullPlan, aT as ResourceInstallationResourceListOptions, aU as ResourceInstallationSecretStatus, aV as ResourceInstallationSecretsRequest, aW as ResourcePackageArchive, aX as ResourcePackageCandidateOptions, aY as ResourcePackageDependency, aZ as ResourcePackageDiagnostic, a_ as ResourcePackageExportPlan, a$ as ResourcePackageExportRequest, b0 as ResourcePackageImportPreview, b1 as ResourcePackageImportResult, b2 as ResourcePackageImportUpload, b3 as ResourcePackageUpload, b4 as ResourcePackageValidationResult, b5 as ResourcePolicyList, b6 as ResourcePolicyQuotaSchedule, b7 as ResourcePolicyQuotaScheduleResult, b8 as ResourcePolicySubjectRef, b9 as ResourcePolicySummary, ba as ResourceSelector, bb as ResourceToolExport, bc as ResponseFeedback, bd as ResponseFeedbackResult, be as ResumeRunRequest, bf as RunCancelOptions, bg as RunContextOptions, bh as RunStatus, bi as RunTrace, bj as ServerAttachmentUploadOptions, bk as ServerEmbedAttachmentUploadOptions, bl as SetCustomerResourcePolicyAssignmentRequest, bm as SetResourcePolicyQuotaScheduleRequest, bn as StartRunResult, bo as StateVariableDefinition, bp as StreamRequestOptions, bq as StreamResult, br as ThreadDeleteOptions, bs as ThreadDetailOptions, bt as ThreadListOptions, bu as ThreadSummaryEventOptions, bv as TraceContent, bw as TraceError, bx as TraceSpan, by as TraceSpanKind, bz as TraceSpanStatus, bA as TraceView, bB as UpdateClientDeploymentRequest, bC as WorkflowInputDefinition } from './client-xs_JXgvz.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_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", "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
@@ -467,6 +467,14 @@ var EmbedNamespace = class {
467
467
  async streamAgent(agentId, payload, onEvent, options = {}) {
468
468
  return this.stream(`/public/embed/agents/${agentId}/chat/stream`, payload, onEvent, options);
469
469
  }
470
+ startAgentRun(agentId, payload, options) {
471
+ return this.http.requestJson(`/public/embed/agents/${agentId}/runs`, {
472
+ method: "POST",
473
+ body: payload,
474
+ options,
475
+ mutation: true
476
+ });
477
+ }
470
478
  async attachAgentRun(agentId, runId, payload, onEvent, options = {}) {
471
479
  return this.stream(`/public/embed/agents/${agentId}/runs/${runId}/stream`, payload, onEvent, options);
472
480
  }
@@ -759,7 +767,9 @@ var ResourceInstallationsNamespace = class {
759
767
  formData.append("file", new Blob([archiveBytes]), filename);
760
768
  const response = await this.http.fetchOrThrow(
761
769
  this.http.url("/resource-installations/plan", {
762
- prune: upload.prune
770
+ prune: upload.prune,
771
+ integration_mode: upload.integrationMode,
772
+ primary_resource_key: upload.primaryResourceKey
763
773
  }),
764
774
  { method: "POST", headers: this.http.multipartHeaders(void 0, void 0, false), body: formData },
765
775
  "Failed to upload the Agents24 resource package."
@@ -1093,6 +1103,7 @@ var SDK_OPERATION_IDS = [
1093
1103
  "embed.resume_agent_run",
1094
1104
  "embed.set_agent_run_feedback",
1095
1105
  "embed.set_conversation_runtime_selection",
1106
+ "embed.start_agent_run",
1096
1107
  "embed.start_agent_run_mcp_auth",
1097
1108
  "embed.stream_agent",
1098
1109
  "embed.stream_agent_thread_events",