@agents24/node 0.5.12 → 0.5.14

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.cts 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 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.cjs';
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';
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 EmbedThreadMessageEdit, ai as EmbedThreadMessageScope, aj as EmbedThreadMessageSubmit, ak as EmbeddedResponseFeedbackInput, al as FailureCategory, am as FailureView, an as FeedbackRating, ao as FeedbackReason, ap as GraphBuilder, aq as GraphDefinition, ar as GraphEdge, as as GraphHints, at as GraphNode, au as GraphValueRef, av as HitlAction, aw as HitlAnswer, ax as HostedArtifactDraft, ay as HostedArtifactsNamespace, az as LatestOrPinnedPolicy, aA as McpAuthStartRequest, aB as McpAuthStartResult, aC as MultiAgentThreadListRequest, aD as MultiAgentThreadSummaryEventOptions, aE as NativePlatform, aF as NodeAuthoringSpec, aG as NodeCatalogItem, aH as NodeCatalogResponse, aI as NodeSchemaResponse, aJ as PortableResourceKind, aK as RequestOptions, aL as ResetResourcePolicyQuotaRequest, aM as ResourceCallableBinding, aN as ResourceCallableBindingStatus, aO as ResourceCandidateList, aP as ResourceInstallation, aQ as ResourceInstallationApplication, aR as ResourceInstallationApplyRequest, aS as ResourceInstallationBinding, aT as ResourceInstallationCreateRequest, aU as ResourceInstallationDeploymentRequest, aV as ResourceInstallationLinkRequest, aW as ResourceInstallationList, aX as ResourceInstallationOperation, aY as ResourceInstallationPlan, aZ as ResourceInstallationPlanUpload, a_ as ResourceInstallationPublication, a$ as ResourceInstallationPublishRequest, b0 as ResourceInstallationPullAcceptRequest, b1 as ResourceInstallationPullChange, b2 as ResourceInstallationPullPayload, b3 as ResourceInstallationPullPlan, b4 as ResourceInstallationResourceListOptions, b5 as ResourceInstallationSecretStatus, b6 as ResourceInstallationSecretsRequest, b7 as ResourcePackageArchive, b8 as ResourcePackageCandidateOptions, b9 as ResourcePackageDependency, ba as ResourcePackageDiagnostic, bb as ResourcePackageExportPlan, bc as ResourcePackageExportRequest, bd as ResourcePackageImportPreview, be as ResourcePackageImportResult, bf as ResourcePackageImportUpload, bg as ResourcePackageUpload, bh as ResourcePackageValidationResult, bi as ResourcePolicyList, bj as ResourcePolicyQuotaSchedule, bk as ResourcePolicyQuotaScheduleResult, bl as ResourcePolicySubjectRef, bm as ResourcePolicySummary, bn as ResourceSelector, bo as ResourceToolExport, bp as ResponseFeedback, bq as ResponseFeedbackResult, br as ResumeRunRequest, bs as RunCancelOptions, bt as RunContextOptions, bu as RunStatus, bv as RunTrace, bw as ServerAttachmentUploadOptions, bx as ServerEmbedAttachmentUploadOptions, by as SetCustomerResourcePolicyAssignmentRequest, bz as SetResourcePolicyQuotaScheduleRequest, bA as StartRunResult, bB as StateVariableDefinition, bC as StreamRequestOptions, bD as StreamResult, bE as ThreadComputerContentAccess, bF as ThreadComputerFile, bG as ThreadComputerFileOptions, bH as ThreadComputerFileText, bI as ThreadComputerFiles, bJ as ThreadComputerStatus, bK as ThreadDeleteOptions, bL as ThreadDetailOptions, bM as ThreadListOptions, bN as ThreadSummaryEventOptions, bO as TraceContent, bP as TraceError, bQ as TraceSpan, bR as TraceSpanKind, bS as TraceSpanStatus, bT as TraceView, bU as UpdateClientDeploymentRequest, bV as WorkflowInputDefinition } from './client-DDOnbovv.cjs';
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, ThreadMessage, ThreadMessageSubmission, ThreadMessagesPage, 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", "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"];
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.thread_messages.edit", "agents.thread_messages.list", "agents.thread_messages.remove", "agents.thread_messages.resume_queue", "agents.thread_messages.submit", "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.computer.create_content_access", "client.threads.computer.get", "client.threads.computer.list", "client.threads.computer.read", "client.threads.delete", "client.threads.events", "client.threads.get", "client.threads.list", "client.threads.messages.edit", "client.threads.messages.list", "client.threads.messages.remove", "client.threads.messages.submit", "client.threads.queue.resume", "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_agent_computer_content_access", "embed.create_attachment_content_access", "embed.create_conversation_computer_content_access", "embed.delete_agent_thread", "embed.delete_conversation_thread", "embed.get_agent_computer", "embed.get_agent_run_context", "embed.get_agent_thread", "embed.get_conversation_computer", "embed.get_conversation_thread", "embed.get_resource_policy", "embed.get_runtime_bootstrap", "embed.list_agent_computer_files", "embed.list_agent_threads", "embed.list_agent_threads_multi", "embed.list_conversation_computer_files", "embed.read_agent_computer_file", "embed.read_conversation_computer_file", "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.thread_messages.edit", "embed.thread_messages.list", "embed.thread_messages.remove", "embed.thread_messages.resume_queue", "embed.thread_messages.submit", "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.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 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
- 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';
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 EmbedThreadMessageEdit, ai as EmbedThreadMessageScope, aj as EmbedThreadMessageSubmit, ak as EmbeddedResponseFeedbackInput, al as FailureCategory, am as FailureView, an as FeedbackRating, ao as FeedbackReason, ap as GraphBuilder, aq as GraphDefinition, ar as GraphEdge, as as GraphHints, at as GraphNode, au as GraphValueRef, av as HitlAction, aw as HitlAnswer, ax as HostedArtifactDraft, ay as HostedArtifactsNamespace, az as LatestOrPinnedPolicy, aA as McpAuthStartRequest, aB as McpAuthStartResult, aC as MultiAgentThreadListRequest, aD as MultiAgentThreadSummaryEventOptions, aE as NativePlatform, aF as NodeAuthoringSpec, aG as NodeCatalogItem, aH as NodeCatalogResponse, aI as NodeSchemaResponse, aJ as PortableResourceKind, aK as RequestOptions, aL as ResetResourcePolicyQuotaRequest, aM as ResourceCallableBinding, aN as ResourceCallableBindingStatus, aO as ResourceCandidateList, aP as ResourceInstallation, aQ as ResourceInstallationApplication, aR as ResourceInstallationApplyRequest, aS as ResourceInstallationBinding, aT as ResourceInstallationCreateRequest, aU as ResourceInstallationDeploymentRequest, aV as ResourceInstallationLinkRequest, aW as ResourceInstallationList, aX as ResourceInstallationOperation, aY as ResourceInstallationPlan, aZ as ResourceInstallationPlanUpload, a_ as ResourceInstallationPublication, a$ as ResourceInstallationPublishRequest, b0 as ResourceInstallationPullAcceptRequest, b1 as ResourceInstallationPullChange, b2 as ResourceInstallationPullPayload, b3 as ResourceInstallationPullPlan, b4 as ResourceInstallationResourceListOptions, b5 as ResourceInstallationSecretStatus, b6 as ResourceInstallationSecretsRequest, b7 as ResourcePackageArchive, b8 as ResourcePackageCandidateOptions, b9 as ResourcePackageDependency, ba as ResourcePackageDiagnostic, bb as ResourcePackageExportPlan, bc as ResourcePackageExportRequest, bd as ResourcePackageImportPreview, be as ResourcePackageImportResult, bf as ResourcePackageImportUpload, bg as ResourcePackageUpload, bh as ResourcePackageValidationResult, bi as ResourcePolicyList, bj as ResourcePolicyQuotaSchedule, bk as ResourcePolicyQuotaScheduleResult, bl as ResourcePolicySubjectRef, bm as ResourcePolicySummary, bn as ResourceSelector, bo as ResourceToolExport, bp as ResponseFeedback, bq as ResponseFeedbackResult, br as ResumeRunRequest, bs as RunCancelOptions, bt as RunContextOptions, bu as RunStatus, bv as RunTrace, bw as ServerAttachmentUploadOptions, bx as ServerEmbedAttachmentUploadOptions, by as SetCustomerResourcePolicyAssignmentRequest, bz as SetResourcePolicyQuotaScheduleRequest, bA as StartRunResult, bB as StateVariableDefinition, bC as StreamRequestOptions, bD as StreamResult, bE as ThreadComputerContentAccess, bF as ThreadComputerFile, bG as ThreadComputerFileOptions, bH as ThreadComputerFileText, bI as ThreadComputerFiles, bJ as ThreadComputerStatus, bK as ThreadDeleteOptions, bL as ThreadDetailOptions, bM as ThreadListOptions, bN as ThreadSummaryEventOptions, bO as TraceContent, bP as TraceError, bQ as TraceSpan, bR as TraceSpanKind, bS as TraceSpanStatus, bT as TraceView, bU as UpdateClientDeploymentRequest, bV as WorkflowInputDefinition } from './client-DDOnbovv.js';
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, ThreadMessage, ThreadMessageSubmission, ThreadMessagesPage, 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", "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"];
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.thread_messages.edit", "agents.thread_messages.list", "agents.thread_messages.remove", "agents.thread_messages.resume_queue", "agents.thread_messages.submit", "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.computer.create_content_access", "client.threads.computer.get", "client.threads.computer.list", "client.threads.computer.read", "client.threads.delete", "client.threads.events", "client.threads.get", "client.threads.list", "client.threads.messages.edit", "client.threads.messages.list", "client.threads.messages.remove", "client.threads.messages.submit", "client.threads.queue.resume", "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_agent_computer_content_access", "embed.create_attachment_content_access", "embed.create_conversation_computer_content_access", "embed.delete_agent_thread", "embed.delete_conversation_thread", "embed.get_agent_computer", "embed.get_agent_run_context", "embed.get_agent_thread", "embed.get_conversation_computer", "embed.get_conversation_thread", "embed.get_resource_policy", "embed.get_runtime_bootstrap", "embed.list_agent_computer_files", "embed.list_agent_threads", "embed.list_agent_threads_multi", "embed.list_conversation_computer_files", "embed.read_agent_computer_file", "embed.read_conversation_computer_file", "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.thread_messages.edit", "embed.thread_messages.list", "embed.thread_messages.remove", "embed.thread_messages.resume_queue", "embed.thread_messages.submit", "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
@@ -234,6 +234,51 @@ var AgentsNamespace = class {
234
234
  startRun(agentId, payload, options) {
235
235
  return this.http.requestJson(`/agents/${agentId}/run`, { method: "POST", body: payload, options, mutation: true });
236
236
  }
237
+ listThreadMessages(agentId, threadId, query) {
238
+ return this.http.requestJson(`/agents/${encodeURIComponent(agentId)}/threads/${encodeURIComponent(threadId)}/messages`, { query });
239
+ }
240
+ submitThreadMessage(agentId, threadId, payload, options) {
241
+ return this.http.requestJson(`/agents/${encodeURIComponent(agentId)}/threads/${encodeURIComponent(threadId)}/messages`, {
242
+ method: "POST",
243
+ body: {
244
+ mode: payload.mode,
245
+ input: payload.input,
246
+ attachment_ids: payload.attachmentIds ?? [],
247
+ requested_agent_id: payload.requestedAgentId,
248
+ requested_model_id: payload.requestedModelId
249
+ },
250
+ options,
251
+ mutation: true
252
+ });
253
+ }
254
+ editPendingMessage(agentId, message, payload) {
255
+ return this.http.requestJson(`/agents/${encodeURIComponent(agentId)}/threads/${encodeURIComponent(message.thread_id)}/messages/${encodeURIComponent(message.id)}`, {
256
+ method: "PATCH",
257
+ body: {
258
+ revision: message.revision,
259
+ input: payload.input,
260
+ mode: payload.mode,
261
+ attachment_ids: payload.attachmentIds ?? message.attachment_ids,
262
+ requested_agent_id: payload.requestedAgentId,
263
+ requested_model_id: payload.requestedModelId
264
+ },
265
+ mutation: true
266
+ });
267
+ }
268
+ removePendingMessage(agentId, message) {
269
+ return this.http.requestJson(`/agents/${encodeURIComponent(agentId)}/threads/${encodeURIComponent(message.thread_id)}/messages/${encodeURIComponent(message.id)}`, {
270
+ method: "DELETE",
271
+ query: { revision: message.revision },
272
+ mutation: true
273
+ });
274
+ }
275
+ resumeThreadQueue(agentId, threadId) {
276
+ return this.http.requestJson(`/agents/${encodeURIComponent(agentId)}/threads/${encodeURIComponent(threadId)}/queue/resume`, {
277
+ method: "POST",
278
+ body: {},
279
+ mutation: true
280
+ });
281
+ }
237
282
  async stream(agentId, payload, onEvent, mode, options = {}) {
238
283
  const response = await this.http.fetchOrThrow(this.http.url(`/agents/${agentId}/stream`, { mode }), {
239
284
  method: "POST",
@@ -486,6 +531,19 @@ var EmbedNamespace = class {
486
531
  signal: options.signal
487
532
  }, "Failed to connect to the embedded-agent stream endpoint.");
488
533
  await assertOk(response);
534
+ if (response.status === 202) {
535
+ const receipt = await response.json();
536
+ if (typeof receipt.message_id !== "string" || typeof receipt.thread_id !== "string" || !["queued", "blocked", "steer_pending"].includes(String(receipt.status))) {
537
+ throw new Error("Invalid queued message receipt");
538
+ }
539
+ return {
540
+ threadId: receipt.thread_id,
541
+ runId: null,
542
+ messageId: receipt.message_id,
543
+ messageStatus: receipt.status,
544
+ queuePosition: typeof receipt.queue_position === "number" ? receipt.queue_position : null
545
+ };
546
+ }
489
547
  let runId = response.headers.get("X-Run-ID");
490
548
  await consumeRuntimeEventStream(response, async (event) => {
491
549
  runId ||= event.run_id;
@@ -558,6 +616,67 @@ var EmbedNamespace = class {
558
616
  await assertOk(response);
559
617
  await consumeThreadSummaryEventStream(response, onEvent, options.signal);
560
618
  }
619
+ threadMessageQuery(scope) {
620
+ return {
621
+ external_user_id: scope.externalUserId,
622
+ external_session_id: scope.externalSessionId,
623
+ integration_id: scope.integrationId,
624
+ runtime_target: scope.runtimeTarget ?? "published"
625
+ };
626
+ }
627
+ listAgentThreadMessages(agentId, threadId, options) {
628
+ return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/threads/${encodeURIComponent(threadId)}/messages`, {
629
+ query: { ...this.threadMessageQuery(options), before: options.before, limit: options.limit }
630
+ });
631
+ }
632
+ submitAgentThreadMessage(agentId, threadId, payload, options) {
633
+ return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/threads/${encodeURIComponent(threadId)}/messages`, {
634
+ method: "POST",
635
+ body: {
636
+ external_user_id: payload.externalUserId,
637
+ external_session_id: payload.externalSessionId,
638
+ integration_id: payload.integrationId,
639
+ runtime_target: payload.runtimeTarget ?? "published",
640
+ mode: payload.mode,
641
+ input: payload.input,
642
+ attachment_ids: payload.attachmentIds ?? [],
643
+ requested_model_id: payload.requestedModelId,
644
+ tool_inputs: payload.toolInputs ?? {},
645
+ metadata: payload.metadata ?? {}
646
+ },
647
+ options,
648
+ mutation: true
649
+ });
650
+ }
651
+ editAgentThreadMessage(agentId, threadId, messageId, payload) {
652
+ return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/threads/${encodeURIComponent(threadId)}/messages/${encodeURIComponent(messageId)}`, {
653
+ method: "PATCH",
654
+ query: this.threadMessageQuery(payload),
655
+ body: {
656
+ revision: payload.revision,
657
+ input: payload.input,
658
+ mode: payload.mode,
659
+ attachment_ids: payload.attachmentIds ?? [],
660
+ requested_model_id: payload.requestedModelId
661
+ },
662
+ mutation: true
663
+ });
664
+ }
665
+ removeAgentThreadMessage(agentId, threadId, messageId, scope) {
666
+ return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/threads/${encodeURIComponent(threadId)}/messages/${encodeURIComponent(messageId)}`, {
667
+ method: "DELETE",
668
+ query: { ...this.threadMessageQuery(scope), revision: scope.revision },
669
+ mutation: true
670
+ });
671
+ }
672
+ resumeAgentThreadQueue(agentId, threadId, scope) {
673
+ return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/threads/${encodeURIComponent(threadId)}/queue/resume`, {
674
+ method: "POST",
675
+ query: this.threadMessageQuery(scope),
676
+ body: {},
677
+ mutation: true
678
+ });
679
+ }
561
680
  getConversationThread(threadId, options) {
562
681
  return this.http.requestJson(`/public/embed/threads/${threadId}`, { query: {
563
682
  agent_ids: options.agentIds,
@@ -569,6 +688,48 @@ var EmbedNamespace = class {
569
688
  runtime_target: options.runtimeTarget
570
689
  } });
571
690
  }
691
+ getConversationComputer(threadId, options) {
692
+ return this.http.requestJson(`/public/embed/threads/${encodeURIComponent(threadId)}/computer`, { query: {
693
+ agent_ids: options.agentIds,
694
+ external_user_id: options.externalUserId,
695
+ external_session_id: options.externalSessionId,
696
+ integration_id: options.integrationId,
697
+ runtime_target: options.runtimeTarget
698
+ } });
699
+ }
700
+ listConversationComputerFiles(threadId, options) {
701
+ return this.http.requestJson(`/public/embed/threads/${encodeURIComponent(threadId)}/computer/files`, { query: {
702
+ agent_ids: options.agentIds,
703
+ external_user_id: options.externalUserId,
704
+ external_session_id: options.externalSessionId,
705
+ integration_id: options.integrationId,
706
+ runtime_target: options.runtimeTarget,
707
+ path: options.path,
708
+ cursor: options.cursor,
709
+ limit: options.limit
710
+ } });
711
+ }
712
+ readConversationComputerFile(threadId, options) {
713
+ return this.http.requestJson(`/public/embed/threads/${encodeURIComponent(threadId)}/computer/file`, { query: {
714
+ agent_ids: options.agentIds,
715
+ external_user_id: options.externalUserId,
716
+ external_session_id: options.externalSessionId,
717
+ integration_id: options.integrationId,
718
+ runtime_target: options.runtimeTarget,
719
+ path: options.path
720
+ } });
721
+ }
722
+ createConversationComputerContentAccess(threadId, options) {
723
+ return this.http.requestJson(`/public/embed/threads/${encodeURIComponent(threadId)}/computer/content-access`, { method: "POST", query: {
724
+ agent_ids: options.agentIds,
725
+ external_user_id: options.externalUserId,
726
+ external_session_id: options.externalSessionId,
727
+ integration_id: options.integrationId,
728
+ runtime_target: options.runtimeTarget,
729
+ path: options.path,
730
+ download: options.download
731
+ }, body: {}, mutation: true });
732
+ }
572
733
  setConversationRuntimeSelection(threadId, request) {
573
734
  return this.http.requestJson(`/public/embed/threads/${threadId}/runtime-selection`, { method: "PATCH", body: request, mutation: true });
574
735
  }
@@ -598,6 +759,44 @@ var EmbedNamespace = class {
598
759
  integration_id: options.integrationId
599
760
  } });
600
761
  }
762
+ getAgentComputer(agentId, threadId, options) {
763
+ return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/threads/${encodeURIComponent(threadId)}/computer`, { query: {
764
+ external_user_id: options.externalUserId,
765
+ external_session_id: options.externalSessionId,
766
+ integration_id: options.integrationId,
767
+ runtime_target: options.runtimeTarget
768
+ } });
769
+ }
770
+ listAgentComputerFiles(agentId, threadId, options) {
771
+ return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/threads/${encodeURIComponent(threadId)}/computer/files`, { query: {
772
+ external_user_id: options.externalUserId,
773
+ external_session_id: options.externalSessionId,
774
+ integration_id: options.integrationId,
775
+ runtime_target: options.runtimeTarget,
776
+ path: options.path,
777
+ cursor: options.cursor,
778
+ limit: options.limit
779
+ } });
780
+ }
781
+ readAgentComputerFile(agentId, threadId, options) {
782
+ return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/threads/${encodeURIComponent(threadId)}/computer/file`, { query: {
783
+ external_user_id: options.externalUserId,
784
+ external_session_id: options.externalSessionId,
785
+ integration_id: options.integrationId,
786
+ runtime_target: options.runtimeTarget,
787
+ path: options.path
788
+ } });
789
+ }
790
+ createAgentComputerContentAccess(agentId, threadId, options) {
791
+ return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/threads/${encodeURIComponent(threadId)}/computer/content-access`, { method: "POST", query: {
792
+ external_user_id: options.externalUserId,
793
+ external_session_id: options.externalSessionId,
794
+ integration_id: options.integrationId,
795
+ runtime_target: options.runtimeTarget,
796
+ path: options.path,
797
+ download: options.download
798
+ }, body: {}, mutation: true });
799
+ }
601
800
  deleteAgentThread(agentId, threadId, options, requestOptions) {
602
801
  return this.http.requestJson(`/public/embed/agents/${agentId}/threads/${threadId}`, { method: "DELETE", query: {
603
802
  external_user_id: options.externalUserId,
@@ -953,6 +1152,51 @@ var InstructionsNamespace = class {
953
1152
  }
954
1153
  };
955
1154
 
1155
+ // src/hosted-artifacts.ts
1156
+ var HostedArtifactsNamespace = class {
1157
+ constructor(http) {
1158
+ this.http = http;
1159
+ }
1160
+ http;
1161
+ create(payload, options) {
1162
+ return this.http.requestJson("/admin/artifacts", { method: "POST", body: payload, mutation: true, options });
1163
+ }
1164
+ get(id) {
1165
+ return this.http.requestJson(`/admin/artifacts/${encodeURIComponent(id)}`);
1166
+ }
1167
+ draft(id) {
1168
+ return this.http.requestJson(`/admin/artifacts/${encodeURIComponent(id)}/working-draft`);
1169
+ }
1170
+ saveDraft(id, snapshot, expectedVersion, options) {
1171
+ return this.http.requestJson(`/admin/artifacts/${encodeURIComponent(id)}/working-draft`, {
1172
+ method: "PUT",
1173
+ body: { draft_snapshot: snapshot, expected_version: expectedVersion, origin: "cli" },
1174
+ mutation: true,
1175
+ options
1176
+ });
1177
+ }
1178
+ build(id, draft, options) {
1179
+ return this.http.requestJson(`/admin/artifacts/${encodeURIComponent(id)}/builds`, {
1180
+ method: "POST",
1181
+ body: { expected_draft_version: draft.draft_version, expected_draft_hash: draft.draft_hash, expected_runtime_hash: draft.runtime_hash },
1182
+ mutation: true,
1183
+ options
1184
+ });
1185
+ }
1186
+ buildStatus(id, buildId) {
1187
+ return this.http.requestJson(`/admin/artifacts/${encodeURIComponent(id)}/builds/${encodeURIComponent(buildId)}`);
1188
+ }
1189
+ test(id, payload, options) {
1190
+ return this.http.requestJson(`/admin/artifacts/${encodeURIComponent(id)}/test-runs`, { method: "POST", body: payload, mutation: true, options });
1191
+ }
1192
+ run(runId) {
1193
+ return this.http.requestJson(`/admin/artifact-runs/${encodeURIComponent(runId)}`);
1194
+ }
1195
+ analyzeDependencies(payload) {
1196
+ return this.http.requestJson("/admin/artifacts/analyze-dependencies", { method: "POST", body: payload });
1197
+ }
1198
+ };
1199
+
956
1200
  // src/generated/resourcePolicies.ts
957
1201
  var ResourcePoliciesNamespace = class {
958
1202
  constructor(http) {
@@ -1054,6 +1298,7 @@ var Agents24 = class {
1054
1298
  clientDeployments;
1055
1299
  clientSessions;
1056
1300
  instructions;
1301
+ hostedArtifacts;
1057
1302
  resourcePolicies;
1058
1303
  customerProfiles;
1059
1304
  constructor(options) {
@@ -1067,6 +1312,7 @@ var Agents24 = class {
1067
1312
  this.clientDeployments = new ClientDeploymentsNamespace(http);
1068
1313
  this.clientSessions = new ClientSessionsNamespace(http);
1069
1314
  this.instructions = new InstructionsNamespace(http);
1315
+ this.hostedArtifacts = new HostedArtifactsNamespace(http);
1070
1316
  this.resourcePolicies = new ResourcePoliciesNamespace(http);
1071
1317
  this.customerProfiles = new CustomerProfilesNamespace(http);
1072
1318
  }
@@ -1092,6 +1338,11 @@ var SDK_OPERATION_IDS = [
1092
1338
  "agents.schema",
1093
1339
  "agents.start_run",
1094
1340
  "agents.stream",
1341
+ "agents.thread_messages.edit",
1342
+ "agents.thread_messages.list",
1343
+ "agents.thread_messages.remove",
1344
+ "agents.thread_messages.resume_queue",
1345
+ "agents.thread_messages.submit",
1095
1346
  "agents.update",
1096
1347
  "agents.update_graph",
1097
1348
  "agents.upload_attachments",
@@ -1117,10 +1368,19 @@ var SDK_OPERATION_IDS = [
1117
1368
  "client.sessions.backendExchange",
1118
1369
  "client.sessions.refresh",
1119
1370
  "client.sessions.revoke",
1371
+ "client.threads.computer.create_content_access",
1372
+ "client.threads.computer.get",
1373
+ "client.threads.computer.list",
1374
+ "client.threads.computer.read",
1120
1375
  "client.threads.delete",
1121
1376
  "client.threads.events",
1122
1377
  "client.threads.get",
1123
1378
  "client.threads.list",
1379
+ "client.threads.messages.edit",
1380
+ "client.threads.messages.list",
1381
+ "client.threads.messages.remove",
1382
+ "client.threads.messages.submit",
1383
+ "client.threads.queue.resume",
1124
1384
  "customer_profiles.clear",
1125
1385
  "customer_profiles.get",
1126
1386
  "customer_profiles.search",
@@ -1132,16 +1392,24 @@ var SDK_OPERATION_IDS = [
1132
1392
  "delegations.list",
1133
1393
  "embed.attach_agent_run",
1134
1394
  "embed.cancel_agent_run",
1395
+ "embed.create_agent_computer_content_access",
1135
1396
  "embed.create_attachment_content_access",
1397
+ "embed.create_conversation_computer_content_access",
1136
1398
  "embed.delete_agent_thread",
1137
1399
  "embed.delete_conversation_thread",
1400
+ "embed.get_agent_computer",
1138
1401
  "embed.get_agent_run_context",
1139
1402
  "embed.get_agent_thread",
1403
+ "embed.get_conversation_computer",
1140
1404
  "embed.get_conversation_thread",
1141
1405
  "embed.get_resource_policy",
1142
1406
  "embed.get_runtime_bootstrap",
1407
+ "embed.list_agent_computer_files",
1143
1408
  "embed.list_agent_threads",
1144
1409
  "embed.list_agent_threads_multi",
1410
+ "embed.list_conversation_computer_files",
1411
+ "embed.read_agent_computer_file",
1412
+ "embed.read_conversation_computer_file",
1145
1413
  "embed.resolve_agent_alias",
1146
1414
  "embed.resolve_conversation_run",
1147
1415
  "embed.resolve_customer_principal",
@@ -1153,6 +1421,11 @@ var SDK_OPERATION_IDS = [
1153
1421
  "embed.stream_agent",
1154
1422
  "embed.stream_agent_thread_events",
1155
1423
  "embed.stream_agent_thread_events_multi",
1424
+ "embed.thread_messages.edit",
1425
+ "embed.thread_messages.list",
1426
+ "embed.thread_messages.remove",
1427
+ "embed.thread_messages.resume_queue",
1428
+ "embed.thread_messages.submit",
1156
1429
  "embed.upload_agent_attachments",
1157
1430
  "instructions.publish",
1158
1431
  "resource_installations.accept_pull",
@@ -1194,6 +1467,6 @@ var SDK_OPERATION_IDS = [
1194
1467
  "runs.get_tree"
1195
1468
  ];
1196
1469
 
1197
- export { AgentDefinitionBuilder, Agents24, Agents24SDKError as Agents24NodeError, Agents24SDKError, GraphBuilder, SDK_OPERATION_IDS };
1470
+ export { AgentDefinitionBuilder, Agents24, Agents24SDKError as Agents24NodeError, Agents24SDKError, GraphBuilder, HostedArtifactsNamespace, SDK_OPERATION_IDS };
1198
1471
  //# sourceMappingURL=index.js.map
1199
1472
  //# sourceMappingURL=index.js.map