@agents24/node 0.5.27 → 0.5.29

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.
Files changed (83) hide show
  1. package/README.md +7 -1
  2. package/compatibility.json +7 -7
  3. package/dist/artifacts.cjs +13 -1
  4. package/dist/artifacts.cjs.map +1 -1
  5. package/dist/artifacts.d.cts +36 -2
  6. package/dist/artifacts.d.ts +36 -2
  7. package/dist/artifacts.js +13 -2
  8. package/dist/artifacts.js.map +1 -1
  9. package/dist/bff.cjs +60 -11
  10. package/dist/bff.cjs.map +1 -1
  11. package/dist/bff.d.cts +2 -1
  12. package/dist/bff.d.ts +2 -1
  13. package/dist/bff.js +60 -11
  14. package/dist/bff.js.map +1 -1
  15. package/dist/{client-Dr0U2u5Q.d.cts → client-CH-cgwTv.d.cts} +276 -10
  16. package/dist/{client-Dr0U2u5Q.d.ts → client-CH-cgwTv.d.ts} +276 -10
  17. package/dist/index.cjs +172 -14
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +12 -3
  20. package/dist/index.d.ts +12 -3
  21. package/dist/index.js +171 -15
  22. package/dist/index.js.map +1 -1
  23. package/dist/relay.cjs +514 -0
  24. package/dist/relay.cjs.map +1 -0
  25. package/dist/relay.d.cts +98 -0
  26. package/dist/relay.d.ts +98 -0
  27. package/dist/relay.js +511 -0
  28. package/dist/relay.js.map +1 -0
  29. package/dist/server.cjs +80 -10
  30. package/dist/server.cjs.map +1 -1
  31. package/dist/server.d.cts +3 -0
  32. package/dist/server.d.ts +3 -0
  33. package/dist/server.js +80 -10
  34. package/dist/server.js.map +1 -1
  35. package/dist/types/agents.d.ts +1 -0
  36. package/dist/types/agents.d.ts.map +1 -1
  37. package/dist/types/artifacts.d.ts +35 -1
  38. package/dist/types/artifacts.d.ts.map +1 -1
  39. package/dist/types/bff-request.d.ts +5 -3
  40. package/dist/types/bff-request.d.ts.map +1 -1
  41. package/dist/types/bff.d.ts.map +1 -1
  42. package/dist/types/builders.d.ts.map +1 -1
  43. package/dist/types/client.d.ts +4 -0
  44. package/dist/types/client.d.ts.map +1 -1
  45. package/dist/types/embed-run-wait.d.ts +9 -0
  46. package/dist/types/embed-run-wait.d.ts.map +1 -0
  47. package/dist/types/embed-types.d.ts +15 -2
  48. package/dist/types/embed-types.d.ts.map +1 -1
  49. package/dist/types/embed.d.ts +5 -1
  50. package/dist/types/embed.d.ts.map +1 -1
  51. package/dist/types/generated/artifact-execution-options.d.ts +42 -0
  52. package/dist/types/generated/artifact-execution-options.d.ts.map +1 -0
  53. package/dist/types/generated/delegation-types.d.ts +3 -2
  54. package/dist/types/generated/delegation-types.d.ts.map +1 -1
  55. package/dist/types/generated/ingestion-types.d.ts +16 -0
  56. package/dist/types/generated/ingestion-types.d.ts.map +1 -1
  57. package/dist/types/generated/ingestionJobs.d.ts +2 -2
  58. package/dist/types/generated/ingestionJobs.d.ts.map +1 -1
  59. package/dist/types/generated/manifest.d.ts +1 -1
  60. package/dist/types/generated/manifest.d.ts.map +1 -1
  61. package/dist/types/generated/model-capabilities.d.ts +3 -2
  62. package/dist/types/generated/model-capabilities.d.ts.map +1 -1
  63. package/dist/types/generated/relayClients.d.ts +13 -0
  64. package/dist/types/generated/relayClients.d.ts.map +1 -0
  65. package/dist/types/generated/resourceInstallations.d.ts +1 -2
  66. package/dist/types/generated/resourceInstallations.d.ts.map +1 -1
  67. package/dist/types/generated/run-usage.d.ts +12 -0
  68. package/dist/types/generated/run-usage.d.ts.map +1 -0
  69. package/dist/types/http.d.ts +1 -0
  70. package/dist/types/http.d.ts.map +1 -1
  71. package/dist/types/index.d.ts +3 -0
  72. package/dist/types/index.d.ts.map +1 -1
  73. package/dist/types/models.d.ts +92 -0
  74. package/dist/types/models.d.ts.map +1 -0
  75. package/dist/types/relay-http.d.ts +14 -0
  76. package/dist/types/relay-http.d.ts.map +1 -0
  77. package/dist/types/relay.d.ts +89 -0
  78. package/dist/types/relay.d.ts.map +1 -0
  79. package/dist/types/server.d.ts +3 -0
  80. package/dist/types/server.d.ts.map +1 -1
  81. package/dist/types/types.d.ts +79 -2
  82. package/dist/types/types.d.ts.map +1 -1
  83. package/package.json +9 -3
package/dist/index.d.cts CHANGED
@@ -1,7 +1,16 @@
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 ContentChunk, L as ContentSegment, M as ControlPlaneAgentRunRequest, N as ControlPlaneRunEventsResponse, O as ConversationRunRequest, P as ConversationRunResult, Q as ConversationRuntimeSelectionRequest, R as ConversationRuntimeSelectionResult, S as ConversationThreadOptions, T as CreateBackendClientSessionRequest, U as CreateClientDeploymentRequest, V as CustomerIdentityRequest, W as CustomerPrincipalRefRequest, X as CustomerProfile, Y as CustomerProfileList, Z as CustomerProfilePatch, _ as CustomerProfileSearchOptions, $ as CustomerResourcePolicyAssignment, a0 as DelegationAction, a1 as DelegationActionReceipt, a2 as DelegationActionRequest, a3 as DelegationEvents, a4 as DelegationHistory, a5 as DelegationHistoryTurn, a6 as DelegationStatus, a7 as DelegationTask, a8 as DelegationTaskList, a9 as EffectiveCustomerResourcePolicyRequest, aa as EffectiveResourcePolicy, ab as EmbedAgentAliasResolution, ac as EmbedAttachmentContentAccessRequest, ad as EmbedCustomerPrincipalResolveRequest, ae as EmbedCustomerPrincipalResolveResponse, af as EmbedDelegationOptions, ag as EmbedResourcePolicyRequest, ah as EmbedRunCancelOptions, ai as EmbedRunStartRequest, aj as EmbedRuntimeBootstrap, ak as EmbedStreamRequest, al as EmbedThreadMessageEdit, am as EmbedThreadMessageScope, an as EmbedThreadMessageSubmit, ao as EmbeddedResponseFeedbackInput, ap as EvidenceLocation, aq as FailureCategory, ar as FailureView, as as FeedbackRating, at as FeedbackReason, au as FileAssetReference, av as GraphBuilder, aw as GraphDefinition, ax as GraphEdge, ay as GraphHints, az as GraphNode, aA as GraphValueRef, aB as HitlAction, aC as HitlAnswer, aD as HostedArtifactDraft, aE as HostedArtifactsNamespace, aF as IndexedCleanupAck, aG as IndexedContent, aH as IndexedContentListOptions, aI as IndexedContentPage, aJ as IndexedRecordIdListOptions, aK as IndexedRecordIdPage, aL as IngestionBatch, aM as IngestionBatchListOptions, aN as IngestionBatchPage, aO as IngestionJob, aP as IngestionJobAcknowledgment, aQ as IngestionJobGetOptions, aR as IngestionJobListOptions, aS as IngestionJobPage, aT as IngestionJobStart, aU as JobFieldData, aV as JobPayloadDownload, aW as JobResult, aX as JobStep, aY as JobStepData, aZ as JobStepDataOptions, a_ as JobStepDownloadOptions, a$ as JobStepFieldOptions, b0 as JobSteps, b1 as KnowledgeStore, b2 as KnowledgeStoreChunking, b3 as KnowledgeStoreCreate, b4 as KnowledgeStoreListOptions, b5 as KnowledgeStoreNamespace, b6 as KnowledgeStorePage, b7 as KnowledgeStoreStats, b8 as KnowledgeStoreUpdate, b9 as LatestOrPinnedPolicy, ba as McpAuthStartRequest, bb as McpAuthStartResult, bc as ModelCapabilitiesV1, bd as ModelPricingDimension, be as ModelRequirements, bf as ModelRuntimeKind, bg as MultiAgentThreadListRequest, bh as MultiAgentThreadSummaryEventOptions, bi as NamespaceDataStats, bj as NamespaceInput, bk as NamespaceListOptions, bl as NamespacePage, bm as NamespaceSummary, bn as NativePlatform, bo as NodeAuthoringSpec, bp as NodeCatalogItem, bq as NodeCatalogResponse, br as NodeSchemaResponse, bs as OCROptions, bt as PayloadAvailability, bu as PipelineInputField, bv as PipelineInputSchema, bw as PipelineInputStep, bx as PipelineInputUpload, by as PipelineListOptions, bz as PipelinePage, bA as PipelineSummary, bB as PortableResourceKind, bC as ProcessedContent, bD as ProcessedContentOptions, bE as ProcessedContentReference, bF as ProcessingInput, bG as ProcessingInputSource, bH as PublishedExecutable, bI as RagRetention, bJ as RawVectorMatch, bK as RawVectorRecord, bL as RecordBatchResult, bM as RecordCapabilities, bN as RecordDeleteRequest, bO as RecordFetchRequest, bP as RecordFetchResult, bQ as RecordListRequest, bR as RecordMutationAck, bS as RecordPage, bT as RecordQueryRequest, bU as RecordQueryResult, bV as RecordUpdateRequest, bW as RecordUpsertRequest, bX as RequestOptions, bY as ResetResourcePolicyQuotaRequest, bZ as ResourceCallableBinding, b_ as ResourceCallableBindingStatus, b$ as ResourceCandidateList, c0 as ResourceInstallation, c1 as ResourceInstallationApplication, c2 as ResourceInstallationApplyRequest, c3 as ResourceInstallationBinding, c4 as ResourceInstallationCreateRequest, c5 as ResourceInstallationDeploymentRequest, c6 as ResourceInstallationLinkRequest, c7 as ResourceInstallationList, c8 as ResourceInstallationOperation, c9 as ResourceInstallationPlan, ca as ResourceInstallationPlanUpload, cb as ResourceInstallationPublication, cc as ResourceInstallationPublishRequest, cd as ResourceInstallationPullAcceptRequest, ce as ResourceInstallationPullChange, cf as ResourceInstallationPullPayload, cg as ResourceInstallationPullPlan, ch as ResourceInstallationResourceListOptions, ci as ResourceInstallationSecretStatus, cj as ResourceInstallationSecretsRequest, ck as ResourcePackageArchive, cl as ResourcePackageCandidateOptions, cm as ResourcePackageDependency, cn as ResourcePackageDiagnostic, co as ResourcePackageExportPlan, cp as ResourcePackageExportRequest, cq as ResourcePackageImportPreview, cr as ResourcePackageImportResult, cs as ResourcePackageImportUpload, ct as ResourcePackageUpload, cu as ResourcePackageValidationResult, cv as ResourcePolicyList, cw as ResourcePolicyQuotaSchedule, cx as ResourcePolicyQuotaScheduleResult, cy as ResourcePolicySubjectRef, cz as ResourcePolicySummary, cA as ResourceSelector, cB as ResourceToolExport, cC as ResponseFeedback, cD as ResponseFeedbackResult, cE as ResumeRunRequest, cF as RetrievalEvidence, cG as RunCancelOptions, cH as RunContextOptions, cI as RunStatus, cJ as RunTrace, cK as ServerAttachmentUploadOptions, cL as ServerEmbedAttachmentUploadOptions, cM as SetCustomerResourcePolicyAssignmentRequest, cN as SetResourcePolicyQuotaScheduleRequest, cO as SourceDescriptor, cP as SourceOutcome, cQ as StartRunResult, cR as StateVariableDefinition, cS as StreamRequestOptions, cT as StreamResult, cU as ThreadComputerContentAccess, cV as ThreadComputerFile, cW as ThreadComputerFileOptions, cX as ThreadComputerFileText, cY as ThreadComputerFiles, cZ as ThreadComputerStatus, c_ as ThreadDeleteOptions, c$ as ThreadDetailOptions, d0 as ThreadListOptions, d1 as ThreadSummaryEventOptions, d2 as TraceContent, d3 as TraceError, d4 as TraceSpan, d5 as TraceSpanKind, d6 as TraceSpanStatus, d7 as TraceView, d8 as UpdateClientDeploymentRequest, d9 as UploadPart, da as UploadPartAck, db as UploadSession, dc as UploadSessionStart, dd as WorkflowInputDefinition } from './client-Dr0U2u5Q.cjs';
1
+ import { E as EmbeddedRunSnapshot } from './client-CH-cgwTv.cjs';
2
+ 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 ArtifactRelayClientCreate, w as ArtifactRelayClientList, x as ArtifactRelayClientStatus, y as ArtifactRelayConnectionTicket, R as ArtifactRelayOptions, z as ArtifactRelayOptionsQuery, B as ArtifactRelayTicketRequest, C as AttachRunRequest, D as AttachmentContentAccessRequest, F as BackendSessionRequestOptions, G as BranchingHint, H as ClearCustomerResourcePolicyAssignmentResult, I as ClientAuthMode, J as ClientDeployment, K as ClientDeploymentListQuery, L as ClientDeploymentListResponse, M as ClientNativeProfile, N as ClientRuntimeNativeProfileInput, O as ClientRuntimeOidcConfig, P as ClientRuntimePolicyInput, Q as ClientSessionCredentials, S as ContentChunk, T as ContentSegment, U as ControlPlaneAgentRunRequest, V as ControlPlaneRunEventsResponse, W as ConversationRunRequest, X as ConversationRunResult, Y as ConversationRuntimeSelectionRequest, Z as ConversationRuntimeSelectionResult, _ as ConversationThreadOptions, $ as CreateBackendClientSessionRequest, a0 as CreateClientDeploymentRequest, a1 as CustomerIdentityRequest, a2 as CustomerPrincipalRefRequest, a3 as CustomerProfile, a4 as CustomerProfileList, a5 as CustomerProfilePatch, a6 as CustomerProfileSearchOptions, a7 as CustomerResourcePolicyAssignment, a8 as DelegationAction, a9 as DelegationActionReceipt, aa as DelegationActionRequest, ab as DelegationEvents, ac as DelegationHistory, ad as DelegationHistoryTurn, ae as DelegationStatus, af as DelegationTask, ag as DelegationTaskList, ah as EffectiveCustomerResourcePolicyRequest, ai as EffectiveResourcePolicy, aj as EmbedAgentAliasResolution, ak as EmbedAttachmentContentAccessRequest, al as EmbedCustomerPrincipalResolveRequest, am as EmbedCustomerPrincipalResolveResponse, an as EmbedDelegationOptions, ao as EmbedResourcePolicyRequest, ap as EmbedRunCancelOptions, aq as EmbedRunStartRequest, ar as EmbedRuntimeBootstrap, as as EmbedStreamRequest, at as EmbedThreadMessageEdit, au as EmbedThreadMessageScope, av as EmbedThreadMessageSubmit, aw as EmbeddedResponseFeedbackInput, ax as EvidenceLocation, ay as FailureCategory, az as FailureView, aA as FeedbackRating, aB as FeedbackReason, aC as FileAssetReference, aD as GraphBuilder, aE as GraphDefinition, aF as GraphEdge, aG as GraphHints, aH as GraphNode, aI as GraphValueRef, aJ as HitlAction, aK as HitlAnswer, aL as HostedArtifactDraft, aM as HostedArtifactsNamespace, aN as IndexedCleanupAck, aO as IndexedContent, aP as IndexedContentListOptions, aQ as IndexedContentPage, aR as IndexedRecordIdListOptions, aS as IndexedRecordIdPage, aT as IngestionBatch, aU as IngestionBatchListOptions, aV as IngestionBatchPage, aW as IngestionJob, aX as IngestionJobAcknowledgment, aY as IngestionJobGetOptions, aZ as IngestionJobListOptions, a_ as IngestionJobPage, a$ as IngestionJobStart, b0 as JobFieldData, b1 as JobPayloadDownload, b2 as JobResult, b3 as JobResultOptions, b4 as JobStep, b5 as JobStepData, b6 as JobStepDataOptions, b7 as JobStepDownloadOptions, b8 as JobStepFieldOptions, b9 as JobSteps, ba as KnowledgeStore, bb as KnowledgeStoreChunking, bc as KnowledgeStoreCreate, bd as KnowledgeStoreListOptions, be as KnowledgeStoreNamespace, bf as KnowledgeStorePage, bg as KnowledgeStoreStats, bh as KnowledgeStoreUpdate, bi as LatestOrPinnedPolicy, bj as McpAuthStartRequest, bk as McpAuthStartResult, bl as ModelCapabilitiesV1, bm as ModelOffering, bn as ModelPricingDimension, bo as ModelProviderCreate, bp as ModelProviderRoute, bq as ModelRequirements, br as ModelRuntimeKind, bs as ModelSummary, bt as ModelsNamespace, bu as MultiAgentThreadListRequest, bv as MultiAgentThreadSummaryEventOptions, bw as NamespaceDataStats, bx as NamespaceInput, by as NamespaceListOptions, bz as NamespacePage, bA as NamespaceSummary, bB as NativePlatform, bC as NodeAuthoringSpec, bD as NodeCatalogItem, bE as NodeCatalogResponse, bF as NodeSchemaResponse, bG as OCROptions, bH as PayloadAvailability, bI as PipelineInputField, bJ as PipelineInputSchema, bK as PipelineInputStep, bL as PipelineInputUpload, bM as PipelineListOptions, bN as PipelinePage, bO as PipelineResultPage, bP as PipelineSummary, bQ as PortableResourceKind, bR as ProcessedContent, bS as ProcessedContentOptions, bT as ProcessedContentReference, bU as ProcessingInput, bV as ProcessingInputSource, bW as PublishedExecutable, bX as RagRetention, bY as RawVectorMatch, bZ as RawVectorRecord, b_ as RecordBatchResult, b$ as RecordCapabilities, c0 as RecordDeleteRequest, c1 as RecordFetchRequest, c2 as RecordFetchResult, c3 as RecordListRequest, c4 as RecordMutationAck, c5 as RecordPage, c6 as RecordQueryRequest, c7 as RecordQueryResult, c8 as RecordUpdateRequest, c9 as RecordUpsertRequest, ca as RequestOptions, cb as ResetResourcePolicyQuotaRequest, cc as ResourceCallableBinding, cd as ResourceCallableBindingStatus, ce as ResourceCandidateList, cf as ResourceInstallation, cg as ResourceInstallationApplication, ch as ResourceInstallationApplyRequest, ci as ResourceInstallationBinding, cj as ResourceInstallationCreateRequest, ck as ResourceInstallationDeploymentRequest, cl as ResourceInstallationLinkRequest, cm as ResourceInstallationList, cn as ResourceInstallationOperation, co as ResourceInstallationPlan, cp as ResourceInstallationPlanUpload, cq as ResourceInstallationPublication, cr as ResourceInstallationPublishRequest, cs as ResourceInstallationPullAcceptRequest, ct as ResourceInstallationPullChange, cu as ResourceInstallationPullPayload, cv as ResourceInstallationPullPlan, cw as ResourceInstallationResourceListOptions, cx as ResourceInstallationSecretStatus, cy as ResourceInstallationSecretsRequest, cz as ResourcePackageArchive, cA as ResourcePackageCandidateOptions, cB as ResourcePackageDependency, cC as ResourcePackageDiagnostic, cD as ResourcePackageExportPlan, cE as ResourcePackageExportRequest, cF as ResourcePackageImportPreview, cG as ResourcePackageImportResult, cH as ResourcePackageImportUpload, cI as ResourcePackageUpload, cJ as ResourcePackageValidationResult, cK as ResourcePolicyList, cL as ResourcePolicyQuotaSchedule, cM as ResourcePolicyQuotaScheduleResult, cN as ResourcePolicySubjectRef, cO as ResourcePolicySummary, cP as ResourceSelector, cQ as ResourceToolExport, cR as ResponseFeedback, cS as ResponseFeedbackResult, cT as ResumeRunRequest, cU as RetrievalEvidence, cV as RunCancelOptions, cW as RunContextOptions, cX as RunExecutionLimits, cY as RunStatus, cZ as RunTrace, c_ as RunUsage, c$ as ServerAttachmentUploadOptions, d0 as ServerEmbedAttachmentUploadOptions, d1 as SetCustomerResourcePolicyAssignmentRequest, d2 as SetResourcePolicyQuotaScheduleRequest, d3 as SourceDescriptor, d4 as SourceOutcome, d5 as StartRunResult, d6 as StateVariableDefinition, d7 as StreamRequestOptions, d8 as StreamResult, d9 as ThreadComputerContentAccess, da as ThreadComputerFile, db as ThreadComputerFileOptions, dc as ThreadComputerFileText, dd as ThreadComputerFiles, de as ThreadComputerStatus, df as ThreadDeleteOptions, dg as ThreadDetailOptions, dh as ThreadListOptions, di as ThreadSummaryEventOptions, dj as TraceContent, dk as TraceError, dl as TraceSpan, dm as TraceSpanKind, dn as TraceSpanStatus, dp as TraceView, dq as UpdateClientDeploymentRequest, dr as UploadPart, ds as UploadPartAck, dt as UploadSession, du as UploadSessionStart, dv as WaitForAgentRunOptions, dw as WorkflowInputDefinition } from './client-CH-cgwTv.cjs';
2
3
  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';
4
+ export { AttachmentDescriptor, AttachmentProcessingInputs, AttachmentProcessingOutput, ClientInputFeature } from '@agents24/client';
3
5
 
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", "embed_delegations.act", "embed_delegations.events", "embed_delegations.history", "embed_delegations.inspect", "embed_delegations.list", "ingestionJobs.abort_upload", "ingestionJobs.cancel", "ingestionJobs.complete_upload", "ingestionJobs.create_upload", "ingestionJobs.download_step_data", "ingestionJobs.get", "ingestionJobs.get_processed_content", "ingestionJobs.get_result", "ingestionJobs.get_step_data", "ingestionJobs.get_step_field", "ingestionJobs.get_upload", "ingestionJobs.list", "ingestionJobs.list_batches", "ingestionJobs.list_steps", "ingestionJobs.put_upload_part", "ingestionJobs.resume", "ingestionJobs.start", "ingestionJobs.upload_input", "instructions.publish", "knowledgeStores.archive", "knowledgeStores.cancel_cleanup_job", "knowledgeStores.create", "knowledgeStores.delete_indexed_content", "knowledgeStores.delete_records", "knowledgeStores.fetch_records", "knowledgeStores.get", "knowledgeStores.get_cleanup_job", "knowledgeStores.get_indexed_content", "knowledgeStores.list", "knowledgeStores.list_indexed_content", "knowledgeStores.list_indexed_record_ids", "knowledgeStores.list_namespaces", "knowledgeStores.list_records", "knowledgeStores.namespace_stats", "knowledgeStores.query_records", "knowledgeStores.resume_cleanup_job", "knowledgeStores.stats", "knowledgeStores.update", "knowledgeStores.update_record", "knowledgeStores.upsert_records", "pipelines.get", "pipelines.get_input_schema", "pipelines.get_published_executable", "pipelines.list", "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"];
6
+ 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", "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", "embed_delegations.act", "embed_delegations.events", "embed_delegations.history", "embed_delegations.inspect", "embed_delegations.list", "ingestionJobs.abort_upload", "ingestionJobs.cancel", "ingestionJobs.complete_upload", "ingestionJobs.create_upload", "ingestionJobs.download_step_data", "ingestionJobs.get", "ingestionJobs.get_processed_content", "ingestionJobs.get_result", "ingestionJobs.get_step_data", "ingestionJobs.get_step_field", "ingestionJobs.get_upload", "ingestionJobs.list", "ingestionJobs.list_batches", "ingestionJobs.list_steps", "ingestionJobs.put_upload_part", "ingestionJobs.resume", "ingestionJobs.start", "ingestionJobs.upload_input", "instructions.publish", "knowledgeStores.archive", "knowledgeStores.cancel_cleanup_job", "knowledgeStores.create", "knowledgeStores.delete_indexed_content", "knowledgeStores.delete_records", "knowledgeStores.fetch_records", "knowledgeStores.get", "knowledgeStores.get_cleanup_job", "knowledgeStores.get_indexed_content", "knowledgeStores.list", "knowledgeStores.list_indexed_content", "knowledgeStores.list_indexed_record_ids", "knowledgeStores.list_namespaces", "knowledgeStores.list_records", "knowledgeStores.namespace_stats", "knowledgeStores.query_records", "knowledgeStores.resume_cleanup_job", "knowledgeStores.stats", "knowledgeStores.update", "knowledgeStores.update_record", "knowledgeStores.upsert_records", "pipelines.get", "pipelines.get_input_schema", "pipelines.get_published_executable", "pipelines.list", "relayClients.agent_options", "relay_clients.create", "relay_clients.create_ticket", "relay_clients.get", "relay_clients.list", "relay_clients.revoke", "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.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
7
  type SDKOperationId = (typeof SDK_OPERATION_IDS)[number];
6
8
 
7
- export { type SDKOperationId, SDK_OPERATION_IDS };
9
+ /** Observation ended; the durable run remains available under the same identity. */
10
+ declare class AgentRunWaitError extends Error {
11
+ readonly runId: string;
12
+ readonly snapshot: EmbeddedRunSnapshot | null;
13
+ constructor(runId: string, snapshot: EmbeddedRunSnapshot | null, name: "AbortError" | "TimeoutError");
14
+ }
15
+
16
+ export { AgentRunWaitError, EmbeddedRunSnapshot, type SDKOperationId, SDK_OPERATION_IDS };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,16 @@
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 ContentChunk, L as ContentSegment, M as ControlPlaneAgentRunRequest, N as ControlPlaneRunEventsResponse, O as ConversationRunRequest, P as ConversationRunResult, Q as ConversationRuntimeSelectionRequest, R as ConversationRuntimeSelectionResult, S as ConversationThreadOptions, T as CreateBackendClientSessionRequest, U as CreateClientDeploymentRequest, V as CustomerIdentityRequest, W as CustomerPrincipalRefRequest, X as CustomerProfile, Y as CustomerProfileList, Z as CustomerProfilePatch, _ as CustomerProfileSearchOptions, $ as CustomerResourcePolicyAssignment, a0 as DelegationAction, a1 as DelegationActionReceipt, a2 as DelegationActionRequest, a3 as DelegationEvents, a4 as DelegationHistory, a5 as DelegationHistoryTurn, a6 as DelegationStatus, a7 as DelegationTask, a8 as DelegationTaskList, a9 as EffectiveCustomerResourcePolicyRequest, aa as EffectiveResourcePolicy, ab as EmbedAgentAliasResolution, ac as EmbedAttachmentContentAccessRequest, ad as EmbedCustomerPrincipalResolveRequest, ae as EmbedCustomerPrincipalResolveResponse, af as EmbedDelegationOptions, ag as EmbedResourcePolicyRequest, ah as EmbedRunCancelOptions, ai as EmbedRunStartRequest, aj as EmbedRuntimeBootstrap, ak as EmbedStreamRequest, al as EmbedThreadMessageEdit, am as EmbedThreadMessageScope, an as EmbedThreadMessageSubmit, ao as EmbeddedResponseFeedbackInput, ap as EvidenceLocation, aq as FailureCategory, ar as FailureView, as as FeedbackRating, at as FeedbackReason, au as FileAssetReference, av as GraphBuilder, aw as GraphDefinition, ax as GraphEdge, ay as GraphHints, az as GraphNode, aA as GraphValueRef, aB as HitlAction, aC as HitlAnswer, aD as HostedArtifactDraft, aE as HostedArtifactsNamespace, aF as IndexedCleanupAck, aG as IndexedContent, aH as IndexedContentListOptions, aI as IndexedContentPage, aJ as IndexedRecordIdListOptions, aK as IndexedRecordIdPage, aL as IngestionBatch, aM as IngestionBatchListOptions, aN as IngestionBatchPage, aO as IngestionJob, aP as IngestionJobAcknowledgment, aQ as IngestionJobGetOptions, aR as IngestionJobListOptions, aS as IngestionJobPage, aT as IngestionJobStart, aU as JobFieldData, aV as JobPayloadDownload, aW as JobResult, aX as JobStep, aY as JobStepData, aZ as JobStepDataOptions, a_ as JobStepDownloadOptions, a$ as JobStepFieldOptions, b0 as JobSteps, b1 as KnowledgeStore, b2 as KnowledgeStoreChunking, b3 as KnowledgeStoreCreate, b4 as KnowledgeStoreListOptions, b5 as KnowledgeStoreNamespace, b6 as KnowledgeStorePage, b7 as KnowledgeStoreStats, b8 as KnowledgeStoreUpdate, b9 as LatestOrPinnedPolicy, ba as McpAuthStartRequest, bb as McpAuthStartResult, bc as ModelCapabilitiesV1, bd as ModelPricingDimension, be as ModelRequirements, bf as ModelRuntimeKind, bg as MultiAgentThreadListRequest, bh as MultiAgentThreadSummaryEventOptions, bi as NamespaceDataStats, bj as NamespaceInput, bk as NamespaceListOptions, bl as NamespacePage, bm as NamespaceSummary, bn as NativePlatform, bo as NodeAuthoringSpec, bp as NodeCatalogItem, bq as NodeCatalogResponse, br as NodeSchemaResponse, bs as OCROptions, bt as PayloadAvailability, bu as PipelineInputField, bv as PipelineInputSchema, bw as PipelineInputStep, bx as PipelineInputUpload, by as PipelineListOptions, bz as PipelinePage, bA as PipelineSummary, bB as PortableResourceKind, bC as ProcessedContent, bD as ProcessedContentOptions, bE as ProcessedContentReference, bF as ProcessingInput, bG as ProcessingInputSource, bH as PublishedExecutable, bI as RagRetention, bJ as RawVectorMatch, bK as RawVectorRecord, bL as RecordBatchResult, bM as RecordCapabilities, bN as RecordDeleteRequest, bO as RecordFetchRequest, bP as RecordFetchResult, bQ as RecordListRequest, bR as RecordMutationAck, bS as RecordPage, bT as RecordQueryRequest, bU as RecordQueryResult, bV as RecordUpdateRequest, bW as RecordUpsertRequest, bX as RequestOptions, bY as ResetResourcePolicyQuotaRequest, bZ as ResourceCallableBinding, b_ as ResourceCallableBindingStatus, b$ as ResourceCandidateList, c0 as ResourceInstallation, c1 as ResourceInstallationApplication, c2 as ResourceInstallationApplyRequest, c3 as ResourceInstallationBinding, c4 as ResourceInstallationCreateRequest, c5 as ResourceInstallationDeploymentRequest, c6 as ResourceInstallationLinkRequest, c7 as ResourceInstallationList, c8 as ResourceInstallationOperation, c9 as ResourceInstallationPlan, ca as ResourceInstallationPlanUpload, cb as ResourceInstallationPublication, cc as ResourceInstallationPublishRequest, cd as ResourceInstallationPullAcceptRequest, ce as ResourceInstallationPullChange, cf as ResourceInstallationPullPayload, cg as ResourceInstallationPullPlan, ch as ResourceInstallationResourceListOptions, ci as ResourceInstallationSecretStatus, cj as ResourceInstallationSecretsRequest, ck as ResourcePackageArchive, cl as ResourcePackageCandidateOptions, cm as ResourcePackageDependency, cn as ResourcePackageDiagnostic, co as ResourcePackageExportPlan, cp as ResourcePackageExportRequest, cq as ResourcePackageImportPreview, cr as ResourcePackageImportResult, cs as ResourcePackageImportUpload, ct as ResourcePackageUpload, cu as ResourcePackageValidationResult, cv as ResourcePolicyList, cw as ResourcePolicyQuotaSchedule, cx as ResourcePolicyQuotaScheduleResult, cy as ResourcePolicySubjectRef, cz as ResourcePolicySummary, cA as ResourceSelector, cB as ResourceToolExport, cC as ResponseFeedback, cD as ResponseFeedbackResult, cE as ResumeRunRequest, cF as RetrievalEvidence, cG as RunCancelOptions, cH as RunContextOptions, cI as RunStatus, cJ as RunTrace, cK as ServerAttachmentUploadOptions, cL as ServerEmbedAttachmentUploadOptions, cM as SetCustomerResourcePolicyAssignmentRequest, cN as SetResourcePolicyQuotaScheduleRequest, cO as SourceDescriptor, cP as SourceOutcome, cQ as StartRunResult, cR as StateVariableDefinition, cS as StreamRequestOptions, cT as StreamResult, cU as ThreadComputerContentAccess, cV as ThreadComputerFile, cW as ThreadComputerFileOptions, cX as ThreadComputerFileText, cY as ThreadComputerFiles, cZ as ThreadComputerStatus, c_ as ThreadDeleteOptions, c$ as ThreadDetailOptions, d0 as ThreadListOptions, d1 as ThreadSummaryEventOptions, d2 as TraceContent, d3 as TraceError, d4 as TraceSpan, d5 as TraceSpanKind, d6 as TraceSpanStatus, d7 as TraceView, d8 as UpdateClientDeploymentRequest, d9 as UploadPart, da as UploadPartAck, db as UploadSession, dc as UploadSessionStart, dd as WorkflowInputDefinition } from './client-Dr0U2u5Q.js';
1
+ import { E as EmbeddedRunSnapshot } from './client-CH-cgwTv.js';
2
+ 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 ArtifactRelayClientCreate, w as ArtifactRelayClientList, x as ArtifactRelayClientStatus, y as ArtifactRelayConnectionTicket, R as ArtifactRelayOptions, z as ArtifactRelayOptionsQuery, B as ArtifactRelayTicketRequest, C as AttachRunRequest, D as AttachmentContentAccessRequest, F as BackendSessionRequestOptions, G as BranchingHint, H as ClearCustomerResourcePolicyAssignmentResult, I as ClientAuthMode, J as ClientDeployment, K as ClientDeploymentListQuery, L as ClientDeploymentListResponse, M as ClientNativeProfile, N as ClientRuntimeNativeProfileInput, O as ClientRuntimeOidcConfig, P as ClientRuntimePolicyInput, Q as ClientSessionCredentials, S as ContentChunk, T as ContentSegment, U as ControlPlaneAgentRunRequest, V as ControlPlaneRunEventsResponse, W as ConversationRunRequest, X as ConversationRunResult, Y as ConversationRuntimeSelectionRequest, Z as ConversationRuntimeSelectionResult, _ as ConversationThreadOptions, $ as CreateBackendClientSessionRequest, a0 as CreateClientDeploymentRequest, a1 as CustomerIdentityRequest, a2 as CustomerPrincipalRefRequest, a3 as CustomerProfile, a4 as CustomerProfileList, a5 as CustomerProfilePatch, a6 as CustomerProfileSearchOptions, a7 as CustomerResourcePolicyAssignment, a8 as DelegationAction, a9 as DelegationActionReceipt, aa as DelegationActionRequest, ab as DelegationEvents, ac as DelegationHistory, ad as DelegationHistoryTurn, ae as DelegationStatus, af as DelegationTask, ag as DelegationTaskList, ah as EffectiveCustomerResourcePolicyRequest, ai as EffectiveResourcePolicy, aj as EmbedAgentAliasResolution, ak as EmbedAttachmentContentAccessRequest, al as EmbedCustomerPrincipalResolveRequest, am as EmbedCustomerPrincipalResolveResponse, an as EmbedDelegationOptions, ao as EmbedResourcePolicyRequest, ap as EmbedRunCancelOptions, aq as EmbedRunStartRequest, ar as EmbedRuntimeBootstrap, as as EmbedStreamRequest, at as EmbedThreadMessageEdit, au as EmbedThreadMessageScope, av as EmbedThreadMessageSubmit, aw as EmbeddedResponseFeedbackInput, ax as EvidenceLocation, ay as FailureCategory, az as FailureView, aA as FeedbackRating, aB as FeedbackReason, aC as FileAssetReference, aD as GraphBuilder, aE as GraphDefinition, aF as GraphEdge, aG as GraphHints, aH as GraphNode, aI as GraphValueRef, aJ as HitlAction, aK as HitlAnswer, aL as HostedArtifactDraft, aM as HostedArtifactsNamespace, aN as IndexedCleanupAck, aO as IndexedContent, aP as IndexedContentListOptions, aQ as IndexedContentPage, aR as IndexedRecordIdListOptions, aS as IndexedRecordIdPage, aT as IngestionBatch, aU as IngestionBatchListOptions, aV as IngestionBatchPage, aW as IngestionJob, aX as IngestionJobAcknowledgment, aY as IngestionJobGetOptions, aZ as IngestionJobListOptions, a_ as IngestionJobPage, a$ as IngestionJobStart, b0 as JobFieldData, b1 as JobPayloadDownload, b2 as JobResult, b3 as JobResultOptions, b4 as JobStep, b5 as JobStepData, b6 as JobStepDataOptions, b7 as JobStepDownloadOptions, b8 as JobStepFieldOptions, b9 as JobSteps, ba as KnowledgeStore, bb as KnowledgeStoreChunking, bc as KnowledgeStoreCreate, bd as KnowledgeStoreListOptions, be as KnowledgeStoreNamespace, bf as KnowledgeStorePage, bg as KnowledgeStoreStats, bh as KnowledgeStoreUpdate, bi as LatestOrPinnedPolicy, bj as McpAuthStartRequest, bk as McpAuthStartResult, bl as ModelCapabilitiesV1, bm as ModelOffering, bn as ModelPricingDimension, bo as ModelProviderCreate, bp as ModelProviderRoute, bq as ModelRequirements, br as ModelRuntimeKind, bs as ModelSummary, bt as ModelsNamespace, bu as MultiAgentThreadListRequest, bv as MultiAgentThreadSummaryEventOptions, bw as NamespaceDataStats, bx as NamespaceInput, by as NamespaceListOptions, bz as NamespacePage, bA as NamespaceSummary, bB as NativePlatform, bC as NodeAuthoringSpec, bD as NodeCatalogItem, bE as NodeCatalogResponse, bF as NodeSchemaResponse, bG as OCROptions, bH as PayloadAvailability, bI as PipelineInputField, bJ as PipelineInputSchema, bK as PipelineInputStep, bL as PipelineInputUpload, bM as PipelineListOptions, bN as PipelinePage, bO as PipelineResultPage, bP as PipelineSummary, bQ as PortableResourceKind, bR as ProcessedContent, bS as ProcessedContentOptions, bT as ProcessedContentReference, bU as ProcessingInput, bV as ProcessingInputSource, bW as PublishedExecutable, bX as RagRetention, bY as RawVectorMatch, bZ as RawVectorRecord, b_ as RecordBatchResult, b$ as RecordCapabilities, c0 as RecordDeleteRequest, c1 as RecordFetchRequest, c2 as RecordFetchResult, c3 as RecordListRequest, c4 as RecordMutationAck, c5 as RecordPage, c6 as RecordQueryRequest, c7 as RecordQueryResult, c8 as RecordUpdateRequest, c9 as RecordUpsertRequest, ca as RequestOptions, cb as ResetResourcePolicyQuotaRequest, cc as ResourceCallableBinding, cd as ResourceCallableBindingStatus, ce as ResourceCandidateList, cf as ResourceInstallation, cg as ResourceInstallationApplication, ch as ResourceInstallationApplyRequest, ci as ResourceInstallationBinding, cj as ResourceInstallationCreateRequest, ck as ResourceInstallationDeploymentRequest, cl as ResourceInstallationLinkRequest, cm as ResourceInstallationList, cn as ResourceInstallationOperation, co as ResourceInstallationPlan, cp as ResourceInstallationPlanUpload, cq as ResourceInstallationPublication, cr as ResourceInstallationPublishRequest, cs as ResourceInstallationPullAcceptRequest, ct as ResourceInstallationPullChange, cu as ResourceInstallationPullPayload, cv as ResourceInstallationPullPlan, cw as ResourceInstallationResourceListOptions, cx as ResourceInstallationSecretStatus, cy as ResourceInstallationSecretsRequest, cz as ResourcePackageArchive, cA as ResourcePackageCandidateOptions, cB as ResourcePackageDependency, cC as ResourcePackageDiagnostic, cD as ResourcePackageExportPlan, cE as ResourcePackageExportRequest, cF as ResourcePackageImportPreview, cG as ResourcePackageImportResult, cH as ResourcePackageImportUpload, cI as ResourcePackageUpload, cJ as ResourcePackageValidationResult, cK as ResourcePolicyList, cL as ResourcePolicyQuotaSchedule, cM as ResourcePolicyQuotaScheduleResult, cN as ResourcePolicySubjectRef, cO as ResourcePolicySummary, cP as ResourceSelector, cQ as ResourceToolExport, cR as ResponseFeedback, cS as ResponseFeedbackResult, cT as ResumeRunRequest, cU as RetrievalEvidence, cV as RunCancelOptions, cW as RunContextOptions, cX as RunExecutionLimits, cY as RunStatus, cZ as RunTrace, c_ as RunUsage, c$ as ServerAttachmentUploadOptions, d0 as ServerEmbedAttachmentUploadOptions, d1 as SetCustomerResourcePolicyAssignmentRequest, d2 as SetResourcePolicyQuotaScheduleRequest, d3 as SourceDescriptor, d4 as SourceOutcome, d5 as StartRunResult, d6 as StateVariableDefinition, d7 as StreamRequestOptions, d8 as StreamResult, d9 as ThreadComputerContentAccess, da as ThreadComputerFile, db as ThreadComputerFileOptions, dc as ThreadComputerFileText, dd as ThreadComputerFiles, de as ThreadComputerStatus, df as ThreadDeleteOptions, dg as ThreadDetailOptions, dh as ThreadListOptions, di as ThreadSummaryEventOptions, dj as TraceContent, dk as TraceError, dl as TraceSpan, dm as TraceSpanKind, dn as TraceSpanStatus, dp as TraceView, dq as UpdateClientDeploymentRequest, dr as UploadPart, ds as UploadPartAck, dt as UploadSession, du as UploadSessionStart, dv as WaitForAgentRunOptions, dw as WorkflowInputDefinition } from './client-CH-cgwTv.js';
2
3
  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';
4
+ export { AttachmentDescriptor, AttachmentProcessingInputs, AttachmentProcessingOutput, ClientInputFeature } from '@agents24/client';
3
5
 
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", "embed_delegations.act", "embed_delegations.events", "embed_delegations.history", "embed_delegations.inspect", "embed_delegations.list", "ingestionJobs.abort_upload", "ingestionJobs.cancel", "ingestionJobs.complete_upload", "ingestionJobs.create_upload", "ingestionJobs.download_step_data", "ingestionJobs.get", "ingestionJobs.get_processed_content", "ingestionJobs.get_result", "ingestionJobs.get_step_data", "ingestionJobs.get_step_field", "ingestionJobs.get_upload", "ingestionJobs.list", "ingestionJobs.list_batches", "ingestionJobs.list_steps", "ingestionJobs.put_upload_part", "ingestionJobs.resume", "ingestionJobs.start", "ingestionJobs.upload_input", "instructions.publish", "knowledgeStores.archive", "knowledgeStores.cancel_cleanup_job", "knowledgeStores.create", "knowledgeStores.delete_indexed_content", "knowledgeStores.delete_records", "knowledgeStores.fetch_records", "knowledgeStores.get", "knowledgeStores.get_cleanup_job", "knowledgeStores.get_indexed_content", "knowledgeStores.list", "knowledgeStores.list_indexed_content", "knowledgeStores.list_indexed_record_ids", "knowledgeStores.list_namespaces", "knowledgeStores.list_records", "knowledgeStores.namespace_stats", "knowledgeStores.query_records", "knowledgeStores.resume_cleanup_job", "knowledgeStores.stats", "knowledgeStores.update", "knowledgeStores.update_record", "knowledgeStores.upsert_records", "pipelines.get", "pipelines.get_input_schema", "pipelines.get_published_executable", "pipelines.list", "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"];
6
+ 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", "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", "embed_delegations.act", "embed_delegations.events", "embed_delegations.history", "embed_delegations.inspect", "embed_delegations.list", "ingestionJobs.abort_upload", "ingestionJobs.cancel", "ingestionJobs.complete_upload", "ingestionJobs.create_upload", "ingestionJobs.download_step_data", "ingestionJobs.get", "ingestionJobs.get_processed_content", "ingestionJobs.get_result", "ingestionJobs.get_step_data", "ingestionJobs.get_step_field", "ingestionJobs.get_upload", "ingestionJobs.list", "ingestionJobs.list_batches", "ingestionJobs.list_steps", "ingestionJobs.put_upload_part", "ingestionJobs.resume", "ingestionJobs.start", "ingestionJobs.upload_input", "instructions.publish", "knowledgeStores.archive", "knowledgeStores.cancel_cleanup_job", "knowledgeStores.create", "knowledgeStores.delete_indexed_content", "knowledgeStores.delete_records", "knowledgeStores.fetch_records", "knowledgeStores.get", "knowledgeStores.get_cleanup_job", "knowledgeStores.get_indexed_content", "knowledgeStores.list", "knowledgeStores.list_indexed_content", "knowledgeStores.list_indexed_record_ids", "knowledgeStores.list_namespaces", "knowledgeStores.list_records", "knowledgeStores.namespace_stats", "knowledgeStores.query_records", "knowledgeStores.resume_cleanup_job", "knowledgeStores.stats", "knowledgeStores.update", "knowledgeStores.update_record", "knowledgeStores.upsert_records", "pipelines.get", "pipelines.get_input_schema", "pipelines.get_published_executable", "pipelines.list", "relayClients.agent_options", "relay_clients.create", "relay_clients.create_ticket", "relay_clients.get", "relay_clients.list", "relay_clients.revoke", "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.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
7
  type SDKOperationId = (typeof SDK_OPERATION_IDS)[number];
6
8
 
7
- export { type SDKOperationId, SDK_OPERATION_IDS };
9
+ /** Observation ended; the durable run remains available under the same identity. */
10
+ declare class AgentRunWaitError extends Error {
11
+ readonly runId: string;
12
+ readonly snapshot: EmbeddedRunSnapshot | null;
13
+ constructor(runId: string, snapshot: EmbeddedRunSnapshot | null, name: "AbortError" | "TimeoutError");
14
+ }
15
+
16
+ export { AgentRunWaitError, EmbeddedRunSnapshot, type SDKOperationId, SDK_OPERATION_IDS };
package/dist/index.js CHANGED
@@ -146,6 +146,7 @@ var Agents24HttpClient = class {
146
146
  if (config.options?.validateOnly !== void 0) query.validate_only = config.options.validateOnly;
147
147
  const response = await this.fetchOrThrow(this.url(requestPath, query), {
148
148
  method: config.method || "GET",
149
+ signal: config.signal ?? config.options?.signal,
149
150
  headers: this.jsonHeaders(config.headers, config.options, Boolean(config.mutation)),
150
151
  ...config.body === void 0 ? {} : { body: JSON.stringify(config.body) }
151
152
  }, "Failed to connect to the Agents24 API.");
@@ -255,7 +256,8 @@ var AgentsNamespace = class {
255
256
  input: payload.input,
256
257
  attachment_ids: payload.attachmentIds ?? [],
257
258
  requested_agent_id: payload.requestedAgentId,
258
- requested_model_id: payload.requestedModelId
259
+ requested_model_id: payload.requestedModelId,
260
+ ...payload.relayClientId !== void 0 ? { relay_client_id: payload.relayClientId } : {}
259
261
  },
260
262
  options,
261
263
  mutation: true
@@ -372,6 +374,13 @@ var AgentDefinitionBuilder = class {
372
374
  toolset_attachments: toolsetAttachments(this.options),
373
375
  input_sources: [{ id: "workflow-text", value_ref: { namespace: "workflow_input", key: "text", label: "Workflow input / Text" } }]
374
376
  };
377
+ if (this.options.toolSchemaBudgetBytes !== void 0) {
378
+ const budget = this.options.toolSchemaBudgetBytes;
379
+ if (budget !== null && (!Number.isSafeInteger(budget) || budget < 1)) {
380
+ throw new TypeError("toolSchemaBudgetBytes must be a positive integer or null");
381
+ }
382
+ agentConfig.tool_schema_budget_bytes = budget;
383
+ }
375
384
  if (this.options.model) agentConfig.model_id = refId(this.options.model);
376
385
  return {
377
386
  spec_version: "4.0",
@@ -513,6 +522,60 @@ var ClientSessionsNamespace = class {
513
522
  }
514
523
  };
515
524
 
525
+ // src/embed-run-wait.ts
526
+ var AgentRunWaitError = class extends Error {
527
+ constructor(runId, snapshot, name) {
528
+ super(`Stopped waiting for Agent run ${runId}.`);
529
+ this.runId = runId;
530
+ this.snapshot = snapshot;
531
+ this.name = name;
532
+ }
533
+ runId;
534
+ snapshot;
535
+ };
536
+ async function waitForEmbeddedRun(runId, read, options = {}) {
537
+ const timeoutMs = options.timeoutMs ?? 12e4;
538
+ if (!Number.isFinite(timeoutMs) || timeoutMs <= 0) throw new RangeError("timeoutMs must be a positive finite number.");
539
+ const controller = new AbortController();
540
+ let timedOut = false;
541
+ const abort = () => controller.abort();
542
+ const timer = setTimeout(() => {
543
+ timedOut = true;
544
+ controller.abort();
545
+ }, timeoutMs);
546
+ options.signal?.addEventListener("abort", abort, { once: true });
547
+ if (options.signal?.aborted) abort();
548
+ let snapshot = null;
549
+ try {
550
+ let delayMs = 250;
551
+ while (true) {
552
+ controller.signal.throwIfAborted();
553
+ snapshot = await read(controller.signal);
554
+ controller.signal.throwIfAborted();
555
+ if (["completed", "failed", "cancelled", "paused"].includes(snapshot.status)) return snapshot;
556
+ await new Promise((resolve, reject) => {
557
+ const stop = () => {
558
+ clearTimeout(delay);
559
+ reject(controller.signal.reason);
560
+ };
561
+ const delay = setTimeout(() => {
562
+ controller.signal.removeEventListener("abort", stop);
563
+ resolve();
564
+ }, delayMs);
565
+ controller.signal.addEventListener("abort", stop, { once: true });
566
+ if (controller.signal.aborted) stop();
567
+ });
568
+ delayMs = Math.min(2e3, delayMs * 2);
569
+ }
570
+ } catch (error) {
571
+ if (controller.signal.aborted) throw new AgentRunWaitError(runId, snapshot, timedOut ? "TimeoutError" : "AbortError");
572
+ throw error;
573
+ } finally {
574
+ clearTimeout(timer);
575
+ options.signal?.removeEventListener("abort", abort);
576
+ }
577
+ }
578
+
516
579
  // src/generated/embedDelegations.ts
517
580
  var EmbedDelegationsNamespace = class {
518
581
  constructor(http) {
@@ -735,13 +798,15 @@ var EmbedNamespace = class extends EmbedDelegationsNamespace {
735
798
  agent_version_id: payload.agentVersionId,
736
799
  requested_agent_id: payload.requestedAgentId,
737
800
  client_submission_id: payload.clientSubmissionId,
801
+ relay_client_id: payload.relayClientId,
738
802
  mode: payload.mode,
739
803
  input: payload.input,
740
804
  attachment_ids: payload.attachmentIds ?? [],
741
805
  requested_model_id: payload.requestedModelId,
742
806
  knowledge_namespaces: payload.knowledgeNamespaces,
807
+ execution_limits: payload.executionLimits,
743
808
  tool_inputs: payload.toolInputs ?? {},
744
- metadata: payload.metadata ?? {}
809
+ ...payload.metadata === void 0 ? {} : { metadata: payload.metadata }
745
810
  },
746
811
  options,
747
812
  mutation: true
@@ -758,7 +823,8 @@ var EmbedNamespace = class extends EmbedDelegationsNamespace {
758
823
  agent_version_id: payload.agentVersionId,
759
824
  requested_agent_id: payload.requestedAgentId,
760
825
  attachment_ids: payload.attachmentIds ?? [],
761
- requested_model_id: payload.requestedModelId
826
+ requested_model_id: payload.requestedModelId,
827
+ ...payload.metadata === void 0 ? {} : { metadata: payload.metadata }
762
828
  },
763
829
  mutation: true
764
830
  });
@@ -918,6 +984,15 @@ var EmbedNamespace = class extends EmbedDelegationsNamespace {
918
984
  chat_scope: options.chatScope
919
985
  }, options: requestOptions, mutation: true });
920
986
  }
987
+ getAgentRun(agentId, runId, scope, options = {}) {
988
+ return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/runs/${encodeURIComponent(runId)}`, {
989
+ query: this.threadMessageQuery(scope),
990
+ signal: options.signal
991
+ });
992
+ }
993
+ waitForAgentRun(agentId, runId, scope, options = {}) {
994
+ return waitForEmbeddedRun(runId, (signal) => this.getAgentRun(agentId, runId, scope, { signal }), options);
995
+ }
921
996
  getAgentRunContext(agentId, runId, options) {
922
997
  return this.http.requestJson(`/public/embed/agents/${agentId}/runs/${runId}/context`, { query: {
923
998
  external_user_id: options.externalUserId,
@@ -947,6 +1022,7 @@ var EmbedNamespace = class extends EmbedDelegationsNamespace {
947
1022
  form.set("external_user_id", options.externalUserId);
948
1023
  if (options.externalSessionId) form.set("external_session_id", options.externalSessionId);
949
1024
  if (options.threadId) form.set("thread_id", options.threadId);
1025
+ if (options.runId) form.set("run_id", options.runId);
950
1026
  if (options.runtimeTarget) form.set("runtime_target", options.runtimeTarget);
951
1027
  if (options.integrationId) form.set("integration_id", options.integrationId);
952
1028
  if (options.chatScope) form.set("chat_scope", options.chatScope);
@@ -954,7 +1030,8 @@ var EmbedNamespace = class extends EmbedDelegationsNamespace {
954
1030
  const response = await this.http.fetchOrThrow(this.http.url(`/public/embed/agents/${agentId}/attachments/upload`), {
955
1031
  method: "POST",
956
1032
  headers: this.http.multipartHeaders(void 0, { idempotencyKey: options.idempotencyKey }, true),
957
- body: form
1033
+ body: form,
1034
+ signal: options.signal
958
1035
  }, "Failed to connect to the embedded-agent attachment endpoint.");
959
1036
  await assertOk(response);
960
1037
  return await response.json();
@@ -1052,6 +1129,48 @@ var ResourcePackagesNamespace = class {
1052
1129
  }
1053
1130
  };
1054
1131
 
1132
+ // src/generated/relayClients.ts
1133
+ var RelayClientsNamespace = class {
1134
+ constructor(http) {
1135
+ this.http = http;
1136
+ }
1137
+ http;
1138
+ create(request, options) {
1139
+ return this.http.requestJson("/artifact-relay/clients", {
1140
+ method: "POST",
1141
+ body: request,
1142
+ options
1143
+ });
1144
+ }
1145
+ list() {
1146
+ return this.http.requestJson("/artifact-relay/clients");
1147
+ }
1148
+ get(clientId) {
1149
+ return this.http.requestJson(`/artifact-relay/clients/${encodeURIComponent(clientId)}`);
1150
+ }
1151
+ revoke(clientId, options) {
1152
+ return this.http.requestJson(`/artifact-relay/clients/${encodeURIComponent(clientId)}`, {
1153
+ method: "DELETE",
1154
+ options
1155
+ });
1156
+ }
1157
+ createTicket(clientId, request, options) {
1158
+ return this.http.requestJson(`/artifact-relay/clients/${encodeURIComponent(clientId)}/tickets`, {
1159
+ method: "POST",
1160
+ body: request,
1161
+ options
1162
+ });
1163
+ }
1164
+ agentOptions(agentId, options = {}) {
1165
+ return this.http.requestJson(`/agents/${encodeURIComponent(agentId)}/relay-clients`, {
1166
+ query: {
1167
+ runtime_target: options.runtimeTarget ?? "draft",
1168
+ agent_version_id: options.agentVersionId
1169
+ }
1170
+ });
1171
+ }
1172
+ };
1173
+
1055
1174
  // src/generated/resourceInstallations.ts
1056
1175
  var ResourceInstallationsNamespace = class {
1057
1176
  constructor(http) {
@@ -1153,13 +1272,6 @@ var ResourceInstallationsNamespace = class {
1153
1272
  mutation: true
1154
1273
  });
1155
1274
  }
1156
- prepareDevelopmentSession(installationId, request, options) {
1157
- return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/artifact-development-sessions`, {
1158
- method: "POST",
1159
- body: request,
1160
- options
1161
- });
1162
- }
1163
1275
  developmentSessionStatus(installationId, resourceKey) {
1164
1276
  return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/artifact-development-sessions/${encodeURIComponent(resourceKey)}`);
1165
1277
  }
@@ -1403,6 +1515,35 @@ var CustomerProfilesNamespace = class {
1403
1515
  }
1404
1516
  };
1405
1517
 
1518
+ // src/models.ts
1519
+ var ModelsNamespace = class {
1520
+ constructor(http) {
1521
+ this.http = http;
1522
+ }
1523
+ http;
1524
+ list(query = {}) {
1525
+ return this.http.requestJson("/models", { query });
1526
+ }
1527
+ get(modelId) {
1528
+ return this.http.requestJson(`/models/${encodeURIComponent(modelId)}`);
1529
+ }
1530
+ listOfferings(query = {}) {
1531
+ return this.http.requestJson("/models/offerings", { query });
1532
+ }
1533
+ addProvider(modelId, request, options) {
1534
+ return this.http.requestJson(`/models/${encodeURIComponent(modelId)}/providers`, { method: "POST", body: request, options, mutation: true });
1535
+ }
1536
+ selectProvider(modelId, request, options) {
1537
+ return this.http.requestJson(`/models/${encodeURIComponent(modelId)}/providers/selection`, { method: "PUT", body: request, options, mutation: true });
1538
+ }
1539
+ updateProvider(modelId, providerId, request, options) {
1540
+ return this.http.requestJson(`/models/${encodeURIComponent(modelId)}/providers/${encodeURIComponent(providerId)}`, { method: "PATCH", body: request, options, mutation: true });
1541
+ }
1542
+ removeProvider(modelId, providerId, options) {
1543
+ return this.http.requestJson(`/models/${encodeURIComponent(modelId)}/providers/${encodeURIComponent(providerId)}`, { method: "DELETE", options, mutation: true });
1544
+ }
1545
+ };
1546
+
1406
1547
  // src/generated/pipelines.ts
1407
1548
  var PipelinesNamespace = class {
1408
1549
  constructor(http) {
@@ -1562,8 +1703,13 @@ var IngestionJobsNamespace = class {
1562
1703
  }
1563
1704
  });
1564
1705
  }
1565
- getResult(jobId) {
1566
- return this.http.requestJson(`/admin/pipelines/jobs/${encodeURIComponent(jobId)}/result`);
1706
+ getResult(jobId, options = {}) {
1707
+ return this.http.requestJson(`/admin/pipelines/jobs/${encodeURIComponent(jobId)}/result`, {
1708
+ query: {
1709
+ page_size: options.page_size,
1710
+ cursor: options.cursor
1711
+ }
1712
+ });
1567
1713
  }
1568
1714
  getProcessedContent(jobId, options) {
1569
1715
  return this.http.requestJson(`/admin/pipelines/jobs/${encodeURIComponent(jobId)}/processed-content`, {
@@ -1780,6 +1926,7 @@ var GeneratedIntegrationNamespaces = class {
1780
1926
  // src/client.ts
1781
1927
  var Agents24 = class extends GeneratedIntegrationNamespaces {
1782
1928
  agents;
1929
+ relayClients;
1783
1930
  embed;
1784
1931
  runs;
1785
1932
  delegations;
@@ -1791,10 +1938,12 @@ var Agents24 = class extends GeneratedIntegrationNamespaces {
1791
1938
  hostedArtifacts;
1792
1939
  resourcePolicies;
1793
1940
  customerProfiles;
1941
+ models;
1794
1942
  constructor(options) {
1795
1943
  const http = new Agents24HttpClient(options);
1796
1944
  super(http);
1797
1945
  this.agents = new AgentsNamespace(http);
1946
+ this.relayClients = new RelayClientsNamespace(http);
1798
1947
  this.embed = new EmbedNamespace(http);
1799
1948
  this.runs = new RunsNamespace(http);
1800
1949
  this.delegations = new DelegationsNamespace(http);
@@ -1806,6 +1955,7 @@ var Agents24 = class extends GeneratedIntegrationNamespaces {
1806
1955
  this.hostedArtifacts = new HostedArtifactsNamespace(http);
1807
1956
  this.resourcePolicies = new ResourcePoliciesNamespace(http);
1808
1957
  this.customerProfiles = new CustomerProfilesNamespace(http);
1958
+ this.models = new ModelsNamespace(http);
1809
1959
  }
1810
1960
  agent(options) {
1811
1961
  return new AgentDefinitionBuilder(this.agents, options);
@@ -1889,6 +2039,7 @@ var SDK_OPERATION_IDS = [
1889
2039
  "embed.delete_agent_thread",
1890
2040
  "embed.delete_conversation_thread",
1891
2041
  "embed.get_agent_computer",
2042
+ "embed.get_agent_run",
1892
2043
  "embed.get_agent_run_context",
1893
2044
  "embed.get_agent_thread",
1894
2045
  "embed.get_conversation_computer",
@@ -1967,6 +2118,12 @@ var SDK_OPERATION_IDS = [
1967
2118
  "pipelines.get_input_schema",
1968
2119
  "pipelines.get_published_executable",
1969
2120
  "pipelines.list",
2121
+ "relayClients.agent_options",
2122
+ "relay_clients.create",
2123
+ "relay_clients.create_ticket",
2124
+ "relay_clients.get",
2125
+ "relay_clients.list",
2126
+ "relay_clients.revoke",
1970
2127
  "resource_installations.accept_pull",
1971
2128
  "resource_installations.apply",
1972
2129
  "resource_installations.bind_deployment",
@@ -1981,7 +2138,6 @@ var SDK_OPERATION_IDS = [
1981
2138
  "resource_installations.operation_status",
1982
2139
  "resource_installations.plan",
1983
2140
  "resource_installations.plan_pull",
1984
- "resource_installations.prepare_development_session",
1985
2141
  "resource_installations.publish",
1986
2142
  "resource_installations.resources",
1987
2143
  "resource_installations.revoke_development_session",
@@ -2006,6 +2162,6 @@ var SDK_OPERATION_IDS = [
2006
2162
  "runs.get_tree"
2007
2163
  ];
2008
2164
 
2009
- export { AgentDefinitionBuilder, Agents24, Agents24SDKError as Agents24NodeError, Agents24SDKError, GraphBuilder, HostedArtifactsNamespace, SDK_OPERATION_IDS };
2165
+ export { AgentDefinitionBuilder, AgentRunWaitError, Agents24, Agents24SDKError as Agents24NodeError, Agents24SDKError, GraphBuilder, HostedArtifactsNamespace, ModelsNamespace, SDK_OPERATION_IDS };
2010
2166
  //# sourceMappingURL=index.js.map
2011
2167
  //# sourceMappingURL=index.js.map