@agents24/node 0.4.0 → 0.5.1

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 (41) hide show
  1. package/README.md +26 -2
  2. package/compatibility.json +6 -6
  3. package/dist/bff.cjs +468 -51
  4. package/dist/bff.cjs.map +1 -1
  5. package/dist/bff.d.cts +23 -4
  6. package/dist/bff.d.ts +23 -4
  7. package/dist/bff.js +468 -51
  8. package/dist/bff.js.map +1 -1
  9. package/dist/{client-C5ui84wi.d.cts → client-xWr_OGEe.d.cts} +285 -86
  10. package/dist/{client-C5ui84wi.d.ts → client-xWr_OGEe.d.ts} +285 -86
  11. package/dist/index.cjs +177 -65
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.d.cts +2 -2
  14. package/dist/index.d.ts +2 -2
  15. package/dist/index.js +177 -65
  16. package/dist/index.js.map +1 -1
  17. package/dist/types/bff-agent-resolution.d.ts +41 -0
  18. package/dist/types/bff-agent-resolution.d.ts.map +1 -0
  19. package/dist/types/bff-errors.d.ts +3 -0
  20. package/dist/types/bff-errors.d.ts.map +1 -0
  21. package/dist/types/bff.d.ts +6 -20
  22. package/dist/types/bff.d.ts.map +1 -1
  23. package/dist/types/client.d.ts +2 -2
  24. package/dist/types/client.d.ts.map +1 -1
  25. package/dist/types/embed.d.ts +7 -1
  26. package/dist/types/embed.d.ts.map +1 -1
  27. package/dist/types/generated/customerProfiles.d.ts +11 -0
  28. package/dist/types/generated/customerProfiles.d.ts.map +1 -0
  29. package/dist/types/generated/manifest.d.ts +1 -1
  30. package/dist/types/generated/manifest.d.ts.map +1 -1
  31. package/dist/types/generated/resourceInstallations.d.ts +6 -2
  32. package/dist/types/generated/resourceInstallations.d.ts.map +1 -1
  33. package/dist/types/generated/resourcePackages.d.ts +7 -3
  34. package/dist/types/generated/resourcePackages.d.ts.map +1 -1
  35. package/dist/types/generated/resourcePolicies.d.ts +3 -3
  36. package/dist/types/generated/resourcePolicies.d.ts.map +1 -1
  37. package/dist/types/types.d.ts +255 -69
  38. package/dist/types/types.d.ts.map +1 -1
  39. package/package.json +2 -2
  40. package/dist/types/generated/resourceBundles.d.ts +0 -12
  41. package/dist/types/generated/resourceBundles.d.ts.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { a as AgentCreateRequest, b as AgentDefinitionBuilder, c as AgentDefinitionOptions, d as AgentListResponse, e as AgentRef, f as AgentResponse, g as AgentStreamRequest, h as AgentSummary, i as AgentToolsetAttachment, j as AgentUpdateRequest, k as AgentValidationIssue, l as AgentValidationResult, A as Agents24, m as Agents24NodeError, n as Agents24NodeErrorKind, o as Agents24NodeOptions, p as Agents24Options, m as Agents24SDKError, q as Agents24SDKErrorKind, r as Agents24SDKSerializedError, s as ArtifactDevelopmentSession, t as ArtifactDevelopmentSessionAdmission, u as ArtifactDevelopmentSessionPrepareRequest, v as AttachRunRequest, w as AttachmentContentAccessRequest, B as BackendSessionRequestOptions, x as BranchingHint, C as ClearCustomerResourcePolicyAssignmentResult, y as ClientAuthMode, z as ClientDeployment, D as ClientDeploymentListQuery, E as ClientDeploymentListResponse, F as ClientNativeProfile, G as ClientRuntimeNativeProfileInput, H as ClientRuntimeOidcConfig, I as ClientRuntimePolicyInput, J as ClientSessionCredentials, K as ControlPlaneRunEventsResponse, L as CreateBackendClientSessionRequest, M as CreateClientDeploymentRequest, N as CustomerIdentityRequest, O as CustomerResourcePolicyAssignment, P as EffectiveCustomerResourcePolicyRequest, Q as EffectiveResourcePolicy, R as EmbedAttachmentContentAccessRequest, S as EmbedResourcePolicyRequest, T as EmbedRunCancelOptions, U as EmbedRuntimeBootstrap, V as EmbedStreamRequest, W as EmbeddedResponseFeedbackInput, X as FailureCategory, Y as FailureView, Z as FeedbackRating, _ as FeedbackReason, $ as GraphBuilder, a0 as GraphDefinition, a1 as GraphEdge, a2 as GraphHints, a3 as GraphNode, a4 as GraphValueRef, a5 as HitlAction, a6 as HitlAnswer, a7 as LatestOrPinnedPolicy, a8 as McpAuthStartRequest, a9 as McpAuthStartResult, aa as MultiAgentThreadListRequest, ab as MultiAgentThreadSummaryEventOptions, ac as NativePlatform, ad as NodeAuthoringSpec, ae as NodeCatalogItem, af as NodeCatalogResponse, ag as NodeSchemaResponse, ah as PortableResourceKind, ai as RequestOptions, aj as ResetResourcePolicyQuotaRequest, ak as ResourceBundle, al as ResourceBundleCandidateList, am as ResourceBundleCandidateOptions, an as ResourceBundleDependency, ao as ResourceBundleExportRequest, ap as ResourceBundleImportPreview, aq as ResourceBundleImportRequest, ar as ResourceBundleImportResult, as as ResourceBundleOrigin, at as ResourceBundlePlan, au as ResourceBundleResource, av as ResourceInstallation, aw as ResourceInstallationApplyRequest, ax as ResourceInstallationBinding, ay as ResourceInstallationCreateRequest, az as ResourceInstallationDeploymentRequest, aA as ResourceInstallationLinkRequest, aB as ResourceInstallationList, aC as ResourceInstallationOperation, aD as ResourceInstallationPlan, aE as ResourceInstallationPlanUpload, aF as ResourceInstallationPublication, aG as ResourceInstallationPublishRequest, aH as ResourceInstallationResourceListOptions, aI as ResourceInstallationSecretStatus, aJ as ResourceInstallationSecretsRequest, aK as ResourcePackageArchive, aL as ResourcePackageCompileResult, aM as ResourcePackageDiagnostic, aN as ResourcePackageExportRequest, aO as ResourcePackageUpload, aP as ResourcePolicyList, aQ as ResourcePolicyQuotaSchedule, aR as ResourcePolicyQuotaScheduleResult, aS as ResourcePolicySubjectRef, aT as ResourcePolicySummary, aU as ResourceSelector, aV as ResponseFeedback, aW as ResponseFeedbackResult, aX as ResumeRunRequest, aY as RunCancelOptions, aZ as RunContextOptions, a_ as RunStatus, a$ as RunTrace, b0 as ServerAttachmentUploadOptions, b1 as ServerEmbedAttachmentUploadOptions, b2 as SetCustomerResourcePolicyAssignmentRequest, b3 as SetResourcePolicyQuotaScheduleRequest, b4 as StartRunResult, b5 as StateVariableDefinition, b6 as StreamRequestOptions, b7 as StreamResult, b8 as ThreadDeleteOptions, b9 as ThreadDetailOptions, ba as ThreadListOptions, bb as ThreadSummaryEventOptions, bc as TraceContent, bd as TraceError, be as TraceSpan, bf as TraceSpanKind, bg as TraceSpanStatus, bh as TraceView, bi as UpdateClientDeploymentRequest, bj as WorkflowInputDefinition } from './client-C5ui84wi.js';
1
+ export { a as AgentCreateRequest, b as AgentDefinitionBuilder, c as AgentDefinitionOptions, d as AgentListResponse, e as AgentRef, f as AgentResponse, g as AgentStreamRequest, h as AgentSummary, i as AgentToolsetAttachment, j as AgentUpdateRequest, k as AgentValidationIssue, l as AgentValidationResult, A as Agents24, m as Agents24NodeError, n as Agents24NodeErrorKind, o as Agents24NodeOptions, p as Agents24Options, m as Agents24SDKError, q as Agents24SDKErrorKind, r as Agents24SDKSerializedError, s as ArtifactDevelopmentSession, t as ArtifactDevelopmentSessionAdmission, u as ArtifactDevelopmentSessionPrepareRequest, v as AttachRunRequest, w as AttachmentContentAccessRequest, B as BackendSessionRequestOptions, x as BranchingHint, C as ClearCustomerResourcePolicyAssignmentResult, y as ClientAuthMode, z as ClientDeployment, D as ClientDeploymentListQuery, E as ClientDeploymentListResponse, F as ClientNativeProfile, G as ClientRuntimeNativeProfileInput, H as ClientRuntimeOidcConfig, I as ClientRuntimePolicyInput, J as ClientSessionCredentials, K as ControlPlaneRunEventsResponse, L as ConversationRunRequest, M as ConversationRunResult, N as ConversationRuntimeSelectionRequest, O as ConversationRuntimeSelectionResult, P as ConversationThreadOptions, Q as CreateBackendClientSessionRequest, R as CreateClientDeploymentRequest, S as CustomerIdentityRequest, T as CustomerPrincipalRefRequest, U as CustomerProfile, V as CustomerProfileList, W as CustomerProfilePatch, X as CustomerProfileSearchOptions, Y as CustomerResourcePolicyAssignment, Z as EffectiveCustomerResourcePolicyRequest, _ as EffectiveResourcePolicy, $ as EmbedAgentAliasResolution, a0 as EmbedAttachmentContentAccessRequest, a1 as EmbedCustomerPrincipalResolveRequest, a2 as EmbedCustomerPrincipalResolveResponse, a3 as EmbedResourcePolicyRequest, a4 as EmbedRunCancelOptions, a5 as EmbedRuntimeBootstrap, a6 as EmbedStreamRequest, a7 as EmbeddedResponseFeedbackInput, a8 as FailureCategory, a9 as FailureView, aa as FeedbackRating, ab as FeedbackReason, ac as GraphBuilder, ad as GraphDefinition, ae as GraphEdge, af as GraphHints, ag as GraphNode, ah as GraphValueRef, ai as HitlAction, aj as HitlAnswer, ak as LatestOrPinnedPolicy, al as McpAuthStartRequest, am as McpAuthStartResult, an as MultiAgentThreadListRequest, ao as MultiAgentThreadSummaryEventOptions, ap as NativePlatform, aq as NodeAuthoringSpec, ar as NodeCatalogItem, as as NodeCatalogResponse, at as NodeSchemaResponse, au as PortableResourceKind, av as RequestOptions, aw as ResetResourcePolicyQuotaRequest, ax as ResourceCallableBinding, ay as ResourceCallableBindingStatus, az as ResourceCandidateList, aA as ResourceInstallation, aB as ResourceInstallationApplyRequest, aC as ResourceInstallationBinding, aD as ResourceInstallationCreateRequest, aE as ResourceInstallationDeploymentRequest, aF as ResourceInstallationLinkRequest, aG as ResourceInstallationList, aH as ResourceInstallationOperation, aI as ResourceInstallationPlan, aJ as ResourceInstallationPlanUpload, aK as ResourceInstallationPublication, aL as ResourceInstallationPublishRequest, aM as ResourceInstallationPullAcceptRequest, aN as ResourceInstallationPullChange, aO as ResourceInstallationPullPayload, aP as ResourceInstallationPullPlan, aQ as ResourceInstallationResourceListOptions, aR as ResourceInstallationSecretStatus, aS as ResourceInstallationSecretsRequest, aT as ResourcePackageArchive, aU as ResourcePackageCandidateOptions, aV as ResourcePackageDependency, aW as ResourcePackageDiagnostic, aX as ResourcePackageExportPlan, aY as ResourcePackageExportRequest, aZ as ResourcePackageImportPreview, a_ as ResourcePackageImportResult, a$ as ResourcePackageImportUpload, b0 as ResourcePackageUpload, b1 as ResourcePackageValidationResult, b2 as ResourcePolicyList, b3 as ResourcePolicyQuotaSchedule, b4 as ResourcePolicyQuotaScheduleResult, b5 as ResourcePolicySubjectRef, b6 as ResourcePolicySummary, b7 as ResourceSelector, b8 as ResourceToolExport, b9 as ResponseFeedback, ba as ResponseFeedbackResult, bb as ResumeRunRequest, bc as RunCancelOptions, bd as RunContextOptions, be as RunStatus, bf as RunTrace, bg as ServerAttachmentUploadOptions, bh as ServerEmbedAttachmentUploadOptions, bi as SetCustomerResourcePolicyAssignmentRequest, bj as SetResourcePolicyQuotaScheduleRequest, bk as StartRunResult, bl as StateVariableDefinition, bm as StreamRequestOptions, bn as StreamResult, bo as ThreadDeleteOptions, bp as ThreadDetailOptions, bq as ThreadListOptions, br as ThreadSummaryEventOptions, bs as TraceContent, bt as TraceError, bu as TraceSpan, bv as TraceSpanKind, bw as TraceSpanStatus, bx as TraceView, by as UpdateClientDeploymentRequest, bz as WorkflowInputDefinition } from './client-xWr_OGEe.js';
2
2
  export { ActiveThreadRun, Attachment, AttachmentContentAccess, AttachmentUploadResult, CONTRACT_HASH, ContextCompression, ContextWindow, ContextWindowConfidence, ContextWindowSource, ContextWindowStage, ContextWindowTracker, JsonScalar, JsonValue, ModelTurnEventName, ModelTurnKind, ModelTurnOutcome, ModelTurnPayload, ModelTurnRuntimeEvent, ModelTurnStatus, ProtocolErrorCategory, PublicResponseBlock, RUNTIME_PROTOCOL_VERSION, PublicResponseBlock as ResponseBlock, RunCancelResult, RunContext, RunResumeResult, RuntimeEvent, THREAD_SUMMARY_PROTOCOL_VERSION, ThreadDeleteResult, ThreadDetail, ThreadSummary, ThreadSummaryEvent, ThreadTurn, ThreadsResponse, ToolInputOverrides, compressionFromContextWindow, createContextWindowTracker, mergeContextWindow, mergeContextWindowUpdate, normalizeContextCompression, normalizeContextWindow, parseRuntimeEvent, parseRuntimeSsePayload, parseThreadSummarySsePayload, validateResponseBlock, validateRuntimeEvent, validateThreadSummaryEvent } from '@agents24/client/protocol';
3
3
 
4
- declare const SDK_OPERATION_IDS: readonly ["agents.cancel_run", "agents.catalog", "agents.create", "agents.create_attachment_content_access", "agents.delete", "agents.get", "agents.list", "agents.publish", "agents.resume_run", "agents.schema", "agents.start_run", "agents.stream", "agents.update", "agents.update_graph", "agents.upload_attachments", "agents.validate", "client.attachments.create_content_access", "client.attachments.upload", "client.bootstrap", "client.chat.stream", "client.deployments.create", "client.deployments.delete", "client.deployments.get", "client.deployments.list", "client.deployments.update", "client.hitl.resume", "client.jwks", "client.mcp.redeem", "client.mcp.start", "client.resource_policy", "client.runs.attach", "client.runs.cancel", "client.runs.set_feedback", "client.sessions.anonymous", "client.sessions.backendExchange", "client.sessions.refresh", "client.sessions.revoke", "client.threads.delete", "client.threads.events", "client.threads.get", "client.threads.list", "embed.attach_agent_run", "embed.cancel_agent_run", "embed.create_attachment_content_access", "embed.delete_agent_thread", "embed.get_agent_run_context", "embed.get_agent_thread", "embed.get_resource_policy", "embed.get_runtime_bootstrap", "embed.list_agent_threads", "embed.list_agent_threads_multi", "embed.resume_agent_run", "embed.set_agent_run_feedback", "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_bundles.candidates", "resource_bundles.export", "resource_bundles.export_plan", "resource_bundles.import", "resource_bundles.import_preview", "resource_installations.apply", "resource_installations.bind_deployment", "resource_installations.configure_secrets", "resource_installations.create", "resource_installations.development_session_status", "resource_installations.get", "resource_installations.link", "resource_installations.list", "resource_installations.operation_status", "resource_installations.plan", "resource_installations.prepare_development_session", "resource_installations.publish", "resource_installations.resources", "resource_installations.revoke_development_session", "resource_packages.compile", "resource_packages.export", "resource_packages.validate", "resource_policies.clear_customer_assignment", "resource_policies.get_customer_assignment", "resource_policies.get_effective_customer_policy", "resource_policies.list", "resource_policies.reset_quota_now", "resource_policies.set_customer_assignment", "resource_policies.set_quota_schedule", "runs.get", "runs.get_context", "runs.get_events", "runs.get_trace", "runs.get_tree"];
4
+ declare const SDK_OPERATION_IDS: readonly ["agents.cancel_run", "agents.catalog", "agents.create", "agents.create_attachment_content_access", "agents.delete", "agents.get", "agents.list", "agents.publish", "agents.resume_run", "agents.schema", "agents.start_run", "agents.stream", "agents.update", "agents.update_graph", "agents.upload_attachments", "agents.validate", "client.attachments.create_content_access", "client.attachments.upload", "client.bootstrap", "client.chat.stream", "client.deployments.create", "client.deployments.delete", "client.deployments.get", "client.deployments.list", "client.deployments.update", "client.hitl.resume", "client.jwks", "client.mcp.redeem", "client.mcp.start", "client.resource_policy", "client.runs.attach", "client.runs.cancel", "client.runs.set_feedback", "client.sessions.anonymous", "client.sessions.backendExchange", "client.sessions.refresh", "client.sessions.revoke", "client.threads.delete", "client.threads.events", "client.threads.get", "client.threads.list", "customer_profiles.clear", "customer_profiles.get", "customer_profiles.search", "customer_profiles.upsert", "embed.attach_agent_run", "embed.cancel_agent_run", "embed.create_attachment_content_access", "embed.delete_agent_thread", "embed.delete_conversation_thread", "embed.get_agent_run_context", "embed.get_agent_thread", "embed.get_conversation_thread", "embed.get_resource_policy", "embed.get_runtime_bootstrap", "embed.list_agent_threads", "embed.list_agent_threads_multi", "embed.resolve_agent_alias", "embed.resolve_conversation_run", "embed.resolve_customer_principal", "embed.resume_agent_run", "embed.set_agent_run_feedback", "embed.set_conversation_runtime_selection", "embed.start_agent_run_mcp_auth", "embed.stream_agent", "embed.stream_agent_thread_events", "embed.stream_agent_thread_events_multi", "embed.upload_agent_attachments", "instructions.publish", "resource_installations.accept_pull", "resource_installations.apply", "resource_installations.bind_deployment", "resource_installations.configure_secrets", "resource_installations.create", "resource_installations.development_session_status", "resource_installations.download_pull", "resource_installations.get", "resource_installations.get_by_package_id", "resource_installations.link", "resource_installations.list", "resource_installations.operation_status", "resource_installations.plan", "resource_installations.plan_pull", "resource_installations.prepare_development_session", "resource_installations.publish", "resource_installations.resources", "resource_installations.revoke_development_session", "resource_packages.candidates", "resource_packages.export", "resource_packages.export_plan", "resource_packages.exportability", "resource_packages.import", "resource_packages.import_preview", "resource_packages.validate", "resource_policies.clear_customer_assignment", "resource_policies.get_customer_assignment", "resource_policies.get_effective_customer_policy", "resource_policies.list", "resource_policies.reset_quota_now", "resource_policies.set_customer_assignment", "resource_policies.set_quota_schedule", "runs.get", "runs.get_context", "runs.get_events", "runs.get_trace", "runs.get_tree"];
5
5
  type SDKOperationId = (typeof SDK_OPERATION_IDS)[number];
6
6
 
7
7
  export { type SDKOperationId, SDK_OPERATION_IDS };
package/dist/index.js CHANGED
@@ -496,6 +496,18 @@ var EmbedNamespace = class {
496
496
  query: { agent_version_id: agentVersionId, runtime_target: runtimeTarget }
497
497
  });
498
498
  }
499
+ resolveAgentAlias(agentAlias) {
500
+ return this.http.requestJson("/public/embed/resolve-agent-alias", {
501
+ method: "POST",
502
+ body: { agent_alias: agentAlias }
503
+ });
504
+ }
505
+ resolveCustomerPrincipal(request) {
506
+ return this.http.requestJson("/public/embed/customer-principals/resolve", {
507
+ method: "POST",
508
+ body: request
509
+ });
510
+ }
499
511
  getResourcePolicy(agentId, request) {
500
512
  return this.http.requestJson(`/public/embed/agents/${agentId}/resource-policy`, {
501
513
  method: "POST",
@@ -508,7 +520,8 @@ var EmbedNamespace = class {
508
520
  external_session_id: options.externalSessionId,
509
521
  skip: options.skip ?? 0,
510
522
  limit: options.limit ?? 20,
511
- runtime_target: options.runtimeTarget
523
+ runtime_target: options.runtimeTarget,
524
+ integration_id: options.integrationId
512
525
  } });
513
526
  }
514
527
  listAgentThreadsMulti(options) {
@@ -519,7 +532,8 @@ var EmbedNamespace = class {
519
532
  external_user_id: options.externalUserId,
520
533
  external_session_id: options.externalSessionId,
521
534
  cursor: options.cursor,
522
- runtime_target: options.runtimeTarget
535
+ runtime_target: options.runtimeTarget,
536
+ integration_id: options.integrationId
523
537
  }), { method: "GET", headers: this.http.streamHeaders(), signal: options.signal }, "Failed to connect to the embedded-agent thread event endpoint.");
524
538
  await assertOk(response);
525
539
  await consumeThreadSummaryEventStream(response, onEvent, options.signal);
@@ -529,11 +543,39 @@ var EmbedNamespace = class {
529
543
  agent_ids: options.agentIds,
530
544
  external_user_id: options.externalUserId,
531
545
  external_session_id: options.externalSessionId,
532
- cursor: options.cursor
546
+ cursor: options.cursor,
547
+ runtime_target: options.runtimeTarget,
548
+ integration_id: options.integrationId
533
549
  }), { method: "GET", headers: this.http.streamHeaders(), signal: options.signal }, "Failed to connect to the embedded-agent thread event endpoint.");
534
550
  await assertOk(response);
535
551
  await consumeThreadSummaryEventStream(response, onEvent, options.signal);
536
552
  }
553
+ getConversationThread(threadId, options) {
554
+ return this.http.requestJson(`/public/embed/threads/${threadId}`, { query: {
555
+ agent_ids: options.agentIds,
556
+ external_user_id: options.externalUserId,
557
+ external_session_id: options.externalSessionId,
558
+ integration_id: options.integrationId,
559
+ before_turn_index: options.beforeTurnIndex,
560
+ limit: options.limit,
561
+ runtime_target: options.runtimeTarget
562
+ } });
563
+ }
564
+ setConversationRuntimeSelection(threadId, request) {
565
+ return this.http.requestJson(`/public/embed/threads/${threadId}/runtime-selection`, { method: "PATCH", body: request, mutation: true });
566
+ }
567
+ resolveConversationRun(runId, request) {
568
+ return this.http.requestJson(`/public/embed/runs/${runId}/resolve`, { method: "POST", body: request });
569
+ }
570
+ deleteConversationThread(threadId, options, requestOptions) {
571
+ return this.http.requestJson(`/public/embed/threads/${threadId}`, { method: "DELETE", query: {
572
+ agent_ids: options.agentIds,
573
+ external_user_id: options.externalUserId,
574
+ external_session_id: options.externalSessionId,
575
+ integration_id: options.integrationId,
576
+ runtime_target: options.runtimeTarget
577
+ }, options: requestOptions, mutation: true });
578
+ }
537
579
  getAgentThread(agentId, threadId, options) {
538
580
  return this.http.requestJson(`/public/embed/agents/${agentId}/threads/${threadId}`, { query: {
539
581
  external_user_id: options.externalUserId,
@@ -544,28 +586,32 @@ var EmbedNamespace = class {
544
586
  subthread_depth: options.subthreadDepth,
545
587
  subthread_turn_limit: options.subthreadTurnLimit,
546
588
  subthread_child_limit: options.subthreadChildLimit,
547
- runtime_target: options.runtimeTarget
589
+ runtime_target: options.runtimeTarget,
590
+ integration_id: options.integrationId
548
591
  } });
549
592
  }
550
593
  deleteAgentThread(agentId, threadId, options, requestOptions) {
551
594
  return this.http.requestJson(`/public/embed/agents/${agentId}/threads/${threadId}`, { method: "DELETE", query: {
552
595
  external_user_id: options.externalUserId,
553
596
  external_session_id: options.externalSessionId,
554
- runtime_target: options.runtimeTarget
597
+ runtime_target: options.runtimeTarget,
598
+ integration_id: options.integrationId
555
599
  }, options: requestOptions, mutation: true });
556
600
  }
557
601
  getAgentRunContext(agentId, runId, options) {
558
602
  return this.http.requestJson(`/public/embed/agents/${agentId}/runs/${runId}/context`, { query: {
559
603
  external_user_id: options.externalUserId,
560
604
  external_session_id: options.externalSessionId,
561
- runtime_target: options.runtimeTarget
605
+ runtime_target: options.runtimeTarget,
606
+ integration_id: options.integrationId
562
607
  } });
563
608
  }
564
609
  cancelAgentRun(agentId, runId, options, requestOptions) {
565
610
  return this.http.requestJson(`/public/embed/agents/${agentId}/runs/${runId}/cancel`, { method: "POST", query: {
566
611
  external_user_id: options.externalUserId,
567
612
  external_session_id: options.externalSessionId,
568
- runtime_target: options.runtimeTarget
613
+ runtime_target: options.runtimeTarget,
614
+ integration_id: options.integrationId
569
615
  }, body: {}, options: requestOptions, mutation: true });
570
616
  }
571
617
  setAgentRunFeedback(agentId, runId, payload) {
@@ -580,6 +626,7 @@ var EmbedNamespace = class {
580
626
  if (options.externalSessionId) form.set("external_session_id", options.externalSessionId);
581
627
  if (options.threadId) form.set("thread_id", options.threadId);
582
628
  if (options.runtimeTarget) form.set("runtime_target", options.runtimeTarget);
629
+ if (options.integrationId) form.set("integration_id", options.integrationId);
583
630
  for (const file of options.files) form.append("files", file, file.name);
584
631
  const response = await this.http.fetchOrThrow(this.http.url(`/public/embed/agents/${agentId}/attachments/upload`), {
585
632
  method: "POST",
@@ -597,57 +644,21 @@ var EmbedNamespace = class {
597
644
  }
598
645
  };
599
646
 
600
- // src/generated/resourceBundles.ts
601
- var ResourceBundlesNamespace = class {
647
+ // src/generated/resourcePackages.ts
648
+ var ResourcePackagesNamespace = class {
602
649
  constructor(http) {
603
650
  this.http = http;
604
651
  }
605
652
  http;
606
- exportPlan(request) {
607
- return this.http.requestJson("/resource-bundles/export/plan", {
608
- method: "POST",
609
- body: request
610
- });
611
- }
612
- exportBundle(request) {
613
- return this.http.requestJson("/resource-bundles/export", {
614
- method: "POST",
615
- body: request
616
- });
617
- }
618
- candidates(options) {
619
- return this.http.requestJson("/resource-bundles/candidates", {
620
- query: {
621
- kind: options.kind,
622
- q: options.query,
623
- limit: options.limit,
624
- offset: options.offset,
625
- required_capability: options.requiredCapability
626
- }
627
- });
653
+ getExportability() {
654
+ return this.http.requestJson("/resource-packages/exportability");
628
655
  }
629
- importPreview(request) {
630
- return this.http.requestJson("/resource-bundles/import/preview", {
656
+ exportPlan(request) {
657
+ return this.http.requestJson("/resource-packages/export/plan", {
631
658
  method: "POST",
632
659
  body: request
633
660
  });
634
661
  }
635
- importBundle(request, options) {
636
- return this.http.requestJson("/resource-bundles/import", {
637
- method: "POST",
638
- body: request,
639
- options,
640
- mutation: true
641
- });
642
- }
643
- };
644
-
645
- // src/generated/resourcePackages.ts
646
- var ResourcePackagesNamespace = class {
647
- constructor(http) {
648
- this.http = http;
649
- }
650
- http;
651
662
  async exportPackage(request) {
652
663
  const response = await this.http.fetchOrThrow(
653
664
  this.http.url("/resource-packages/export"),
@@ -668,26 +679,53 @@ var ResourcePackagesNamespace = class {
668
679
  formData.append("file", new Blob([archiveBytes]), filename);
669
680
  const response = await this.http.fetchOrThrow(
670
681
  this.http.url("/resource-packages/validate", void 0),
671
- { method: "POST", headers: this.http.multipartHeaders(), body: formData },
682
+ { method: "POST", headers: this.http.multipartHeaders(void 0, void 0, false), body: formData },
683
+ "Failed to upload the Agents24 resource package."
684
+ );
685
+ await assertOk(response);
686
+ return await response.json();
687
+ }
688
+ async importPreview(upload) {
689
+ const formData = new FormData();
690
+ const archiveBytes = upload.data.slice().buffer;
691
+ const candidate = upload.filename || "";
692
+ const filename = /^[A-Za-z0-9][A-Za-z0-9._-]{0,200}\.zip$/.test(candidate) ? candidate : "resource.agents24.zip";
693
+ formData.append("file", new Blob([archiveBytes]), filename);
694
+ formData.set("mappings", JSON.stringify(upload.mappings || {}));
695
+ const response = await this.http.fetchOrThrow(
696
+ this.http.url("/resource-packages/import/preview", void 0),
697
+ { method: "POST", headers: this.http.multipartHeaders(void 0, void 0, false), body: formData },
672
698
  "Failed to upload the Agents24 resource package."
673
699
  );
674
700
  await assertOk(response);
675
701
  return await response.json();
676
702
  }
677
- async compilePackage(upload) {
703
+ async importPackage(upload, options = {}) {
678
704
  const formData = new FormData();
679
705
  const archiveBytes = upload.data.slice().buffer;
680
706
  const candidate = upload.filename || "";
681
707
  const filename = /^[A-Za-z0-9][A-Za-z0-9._-]{0,200}\.zip$/.test(candidate) ? candidate : "resource.agents24.zip";
682
708
  formData.append("file", new Blob([archiveBytes]), filename);
709
+ formData.set("mappings", JSON.stringify(upload.mappings || {}));
683
710
  const response = await this.http.fetchOrThrow(
684
- this.http.url("/resource-packages/compile", void 0),
685
- { method: "POST", headers: this.http.multipartHeaders(), body: formData },
711
+ this.http.url("/resource-packages/import", void 0),
712
+ { method: "POST", headers: this.http.multipartHeaders(void 0, options, true), body: formData },
686
713
  "Failed to upload the Agents24 resource package."
687
714
  );
688
715
  await assertOk(response);
689
716
  return await response.json();
690
717
  }
718
+ candidates(options) {
719
+ return this.http.requestJson("/resource-packages/import/candidates", {
720
+ query: {
721
+ kind: options.kind,
722
+ q: options.query,
723
+ limit: options.limit,
724
+ offset: options.offset,
725
+ required_capability: options.requiredCapability
726
+ }
727
+ });
728
+ }
691
729
  };
692
730
 
693
731
  // src/generated/resourceInstallations.ts
@@ -710,6 +748,9 @@ var ResourceInstallationsNamespace = class {
710
748
  get(installationId) {
711
749
  return this.http.requestJson(`/resource-installations/${installationId}`);
712
750
  }
751
+ getByPackageId(packageId) {
752
+ return this.http.requestJson(`/resource-installations/by-package/${packageId}`);
753
+ }
713
754
  async plan(upload) {
714
755
  const formData = new FormData();
715
756
  const archiveBytes = upload.data.slice().buffer;
@@ -718,16 +759,39 @@ var ResourceInstallationsNamespace = class {
718
759
  formData.append("file", new Blob([archiveBytes]), filename);
719
760
  const response = await this.http.fetchOrThrow(
720
761
  this.http.url("/resource-installations/plan", {
721
- installation_id: upload.installationId,
722
- prune: upload.prune,
723
- development: upload.development
762
+ prune: upload.prune
724
763
  }),
725
- { method: "POST", headers: this.http.multipartHeaders(), body: formData },
764
+ { method: "POST", headers: this.http.multipartHeaders(void 0, void 0, false), body: formData },
765
+ "Failed to upload the Agents24 resource package."
766
+ );
767
+ await assertOk(response);
768
+ return await response.json();
769
+ }
770
+ async planPull(installationId, upload) {
771
+ const formData = new FormData();
772
+ const archiveBytes = upload.data.slice().buffer;
773
+ const candidate = upload.filename || "";
774
+ const filename = /^[A-Za-z0-9][A-Za-z0-9._-]{0,200}\.zip$/.test(candidate) ? candidate : "resource.agents24.zip";
775
+ formData.append("file", new Blob([archiveBytes]), filename);
776
+ const response = await this.http.fetchOrThrow(
777
+ this.http.url(`/resource-installations/${installationId}/pull/plan`, void 0),
778
+ { method: "POST", headers: this.http.multipartHeaders(void 0, void 0, false), body: formData },
726
779
  "Failed to upload the Agents24 resource package."
727
780
  );
728
781
  await assertOk(response);
729
782
  return await response.json();
730
783
  }
784
+ downloadPull(installationId, pullId) {
785
+ return this.http.requestJson(`/resource-installations/${installationId}/pull/${pullId}/download`);
786
+ }
787
+ acceptPull(installationId, pullId, request, options) {
788
+ return this.http.requestJson(`/resource-installations/${installationId}/pull/${pullId}/accept`, {
789
+ method: "POST",
790
+ body: request,
791
+ options,
792
+ mutation: true
793
+ });
794
+ }
731
795
  link(installationId, request, options) {
732
796
  return this.http.requestJson(`/resource-installations/${installationId}/link`, {
733
797
  method: "POST",
@@ -896,30 +960,65 @@ var ResourcePoliciesNamespace = class {
896
960
  }
897
961
  };
898
962
 
963
+ // src/generated/customerProfiles.ts
964
+ var CustomerProfilesNamespace = class {
965
+ constructor(http) {
966
+ this.http = http;
967
+ }
968
+ http;
969
+ upsert(request, options) {
970
+ return this.http.requestJson("/public/embed/customer-principals/resolve", {
971
+ method: "POST",
972
+ body: request,
973
+ options,
974
+ mutation: true
975
+ });
976
+ }
977
+ get(customerPrincipalRef) {
978
+ return this.http.requestJson(`/public/embed/customer-principals/${customerPrincipalRef}/profile`);
979
+ }
980
+ clear(customerPrincipalRef, options) {
981
+ return this.http.requestJson(`/public/embed/customer-principals/${customerPrincipalRef}/profile`, {
982
+ method: "DELETE",
983
+ options,
984
+ mutation: true
985
+ });
986
+ }
987
+ search(options) {
988
+ return this.http.requestJson("/public/embed/customer-principals", {
989
+ query: {
990
+ q: options.query,
991
+ integration_id: options.integrationId,
992
+ limit: options.limit ?? 25
993
+ }
994
+ });
995
+ }
996
+ };
997
+
899
998
  // src/client.ts
900
999
  var Agents24 = class {
901
1000
  agents;
902
1001
  embed;
903
1002
  runs;
904
- resourceBundles;
905
1003
  resourcePackages;
906
1004
  resourceInstallations;
907
1005
  clientDeployments;
908
1006
  clientSessions;
909
1007
  instructions;
910
1008
  resourcePolicies;
1009
+ customerProfiles;
911
1010
  constructor(options) {
912
1011
  const http = new Agents24HttpClient(options);
913
1012
  this.agents = new AgentsNamespace(http);
914
1013
  this.embed = new EmbedNamespace(http);
915
1014
  this.runs = new RunsNamespace(http);
916
- this.resourceBundles = new ResourceBundlesNamespace(http);
917
1015
  this.resourcePackages = new ResourcePackagesNamespace(http);
918
1016
  this.resourceInstallations = new ResourceInstallationsNamespace(http);
919
1017
  this.clientDeployments = new ClientDeploymentsNamespace(http);
920
1018
  this.clientSessions = new ClientSessionsNamespace(http);
921
1019
  this.instructions = new InstructionsNamespace(http);
922
1020
  this.resourcePolicies = new ResourcePoliciesNamespace(http);
1021
+ this.customerProfiles = new CustomerProfilesNamespace(http);
923
1022
  }
924
1023
  agent(options) {
925
1024
  return new AgentDefinitionBuilder(this.agents, options);
@@ -972,45 +1071,58 @@ var SDK_OPERATION_IDS = [
972
1071
  "client.threads.events",
973
1072
  "client.threads.get",
974
1073
  "client.threads.list",
1074
+ "customer_profiles.clear",
1075
+ "customer_profiles.get",
1076
+ "customer_profiles.search",
1077
+ "customer_profiles.upsert",
975
1078
  "embed.attach_agent_run",
976
1079
  "embed.cancel_agent_run",
977
1080
  "embed.create_attachment_content_access",
978
1081
  "embed.delete_agent_thread",
1082
+ "embed.delete_conversation_thread",
979
1083
  "embed.get_agent_run_context",
980
1084
  "embed.get_agent_thread",
1085
+ "embed.get_conversation_thread",
981
1086
  "embed.get_resource_policy",
982
1087
  "embed.get_runtime_bootstrap",
983
1088
  "embed.list_agent_threads",
984
1089
  "embed.list_agent_threads_multi",
1090
+ "embed.resolve_agent_alias",
1091
+ "embed.resolve_conversation_run",
1092
+ "embed.resolve_customer_principal",
985
1093
  "embed.resume_agent_run",
986
1094
  "embed.set_agent_run_feedback",
1095
+ "embed.set_conversation_runtime_selection",
987
1096
  "embed.start_agent_run_mcp_auth",
988
1097
  "embed.stream_agent",
989
1098
  "embed.stream_agent_thread_events",
990
1099
  "embed.stream_agent_thread_events_multi",
991
1100
  "embed.upload_agent_attachments",
992
1101
  "instructions.publish",
993
- "resource_bundles.candidates",
994
- "resource_bundles.export",
995
- "resource_bundles.export_plan",
996
- "resource_bundles.import",
997
- "resource_bundles.import_preview",
1102
+ "resource_installations.accept_pull",
998
1103
  "resource_installations.apply",
999
1104
  "resource_installations.bind_deployment",
1000
1105
  "resource_installations.configure_secrets",
1001
1106
  "resource_installations.create",
1002
1107
  "resource_installations.development_session_status",
1108
+ "resource_installations.download_pull",
1003
1109
  "resource_installations.get",
1110
+ "resource_installations.get_by_package_id",
1004
1111
  "resource_installations.link",
1005
1112
  "resource_installations.list",
1006
1113
  "resource_installations.operation_status",
1007
1114
  "resource_installations.plan",
1115
+ "resource_installations.plan_pull",
1008
1116
  "resource_installations.prepare_development_session",
1009
1117
  "resource_installations.publish",
1010
1118
  "resource_installations.resources",
1011
1119
  "resource_installations.revoke_development_session",
1012
- "resource_packages.compile",
1120
+ "resource_packages.candidates",
1013
1121
  "resource_packages.export",
1122
+ "resource_packages.export_plan",
1123
+ "resource_packages.exportability",
1124
+ "resource_packages.import",
1125
+ "resource_packages.import_preview",
1014
1126
  "resource_packages.validate",
1015
1127
  "resource_policies.clear_customer_assignment",
1016
1128
  "resource_policies.get_customer_assignment",