@adea-ai/sdk 4.0.2 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { PiDurableLeadPrepareRequest, PiDurableLeadPrepareResponse, PiDurableLeadLookupRequest, PiDurableLeadLookupResponse, PiDurableLeadDispatchRequest, PiDurableLeadDispatchResponse, PiDurableLeadStatusRequest, PiDurableLeadStatusResponse, PiDurableLeadChildrenRequest, PiDurableLeadChildrenResponse, PiDurableLeadChildTargetRequest, PiDurableLeadChildTargetResponse, PiDurableLeadProgressRequest, PiDurableLeadProgressResponse, PiDurableLeadCancelRequest, PiDurableLeadChildCancelRequest, PiDurableLeadChildCancelResponse, PiDurableLeadQuestionAnswerRequest, PiDurableLeadQuestionAnswerResponse, PiDurableLeadApprovalAnswerRequest, PiDurableLeadApprovalAnswerResponse, PiDurableLeadCancelResponse } from '@adea-ai/runtime-sdk';
1
+ import type { PiDurableLeadPrepareRequest, PiDurableLeadPrepareResponse, PiDurableLeadLookupRequest, PiDurableLeadLookupResponse, PiDurableLeadDispatchRequest, PiDurableLeadDispatchResponse, PiDurableLeadStatusRequest, PiDurableLeadStatusResponse, PiDurableLeadChildrenRequest, PiDurableLeadChildrenResponse, PiDurableLeadChildTargetRequest, PiDurableLeadChildTargetResponse, PiDurableLeadProgressRequest, PiDurableLeadProgressResponse, PiDurableLeadCancelRequest, PiDurableLeadChildCancelRequest, PiDurableLeadChildCancelResponse, PiDurableLeadChildMessageRequest, PiDurableLeadChildMessageResponse, PiDurableLeadQuestionAnswerRequest, PiDurableLeadQuestionAnswerResponse, PiDurableLeadApprovalAnswerRequest, PiDurableLeadApprovalAnswerResponse, PiDurableLeadCancelResponse } from '@adea-ai/runtime-sdk';
2
2
  import type { PiLeadPublicationRequest, PiLeadPublicationResponse, PiChildPublicationRequest, PiChildPublicationResponse, ModelSelectionFundingRequest, ModelSelectionFundingResponse, ModelConnectionCreateRequest, ModelConnectionListRequest, ModelConnectionListResponse, ModelConnectionResponse, ModelConnectionRevokeRequest, ModelDefaultsGetRequest, ModelDefaultsResponse, ModelDefaultsSetRequest, ModelSelectionResolveRequest, ModelSelectionResponse } from '@adea-ai/contracts';
3
3
  import { type CredentialCreateRequest, type CredentialGetRequest, type CredentialListRequest, type CredentialListResponse, type CredentialResponse, type CredentialRevokeRequest, type CredentialRotateRequest, type ExecutionCancellationCommand, type ExecutionCancellationCommandResult, type InteractionResponseCommand, type InteractionResponseCommandResult, type ModelReadinessReason, type ContextPackageResolutionRequest, type ContextPackageResolutionResponse, type ErrorClass, type ExecutionAcceptanceRequest, type ExecutionAcceptanceResponse, type ExecutionRequestValidationRequest, type ExecutionRequestValidationResponse, type DecisionResolveRequest, type DecisionResolveResponse, type ProfileResolutionRequest, type ProfileResolutionResponse, type ProjectStateInitializationRequest, type ProjectStateInitializationResponse, type ProjectStateResolutionRequest, type ProjectStateResolutionResponse, type RuntimeListRequest, type RuntimeListResponse, type ServiceAuthenticationRequest, type ServiceAuthenticationResponse, type ExternalSessionGetRequest, type ExternalSessionGetResponse, type ExternalSessionListRequest, type ExternalSessionListResponse, type RuntimeConnectionGetRequest, type RuntimeConnectionGetResponse, type RuntimeConnectionListRequest, type RuntimeConnectionListResponse, type MarketplaceCatalogRequest, type MarketplaceCatalogResponse, type MarketplaceInstallPlanRequest, type MarketplaceInstallPlanResponse, type MarketplaceInstallRequest, type MarketplaceInstallResponse, type MarketplaceInstallationGetRequest, type MarketplaceInstallationGetResponse, type MarketplaceInstallationUninstallRequest, type MarketplaceInstallationUninstallResponse, type WorkspaceSkillListRequest, type WorkspaceSkillListResponse, type WorkspaceSkillGetRequest, type WorkspaceSkillGetResponse, type WorkspaceSkillPublishRequest, type WorkspaceSkillPublishResponse, type WorkspaceSkillDeprecationRequest, type WorkspaceSkillRevocationRequest, type WorkspaceSkillLifecycleResponse, type WorkspaceAgentProfileListRequest, type WorkspaceAgentProfileListResponse, type WorkspaceAgentProfileGetRequest, type WorkspaceAgentProfileGetResponse, type WorkspaceAgentProfilePublishRequest, type WorkspaceAgentProfilePublishResponse, type WorkspaceAgentProfileDeprecationRequest, type WorkspaceAgentProfileRevocationRequest, type WorkspaceAgentProfileLifecycleResponse, type DeviceSyncUploadRequest, type DeviceSyncUploadResponse, type DeviceSyncCommitRequest, type DeviceSyncCommitResponse, type DeviceSyncDownloadRequest, type DeviceSyncDownloadResponse, type DeviceSyncReleaseRequest, type DeviceSyncReleaseResponse, type DeviceSyncAppendRequest, type DeviceSyncAppendResponse, type DeviceSyncLogRequest, type DeviceSyncLogResponse, type DeviceSyncUsageRequest, type DeviceSyncUsageResponse } from '@adea-ai/contracts';
4
4
  type FetchImplementation = (input: string | URL | globalThis.Request, init?: RequestInit) => Promise<Response>;
@@ -102,5 +102,6 @@ export declare class ControlPlaneClient {
102
102
  answerPiDurableLeadQuestion(input: PiDurableLeadQuestionAnswerRequest): Promise<PiDurableLeadQuestionAnswerResponse>;
103
103
  answerPiDurableLeadApproval(input: PiDurableLeadApprovalAnswerRequest): Promise<PiDurableLeadApprovalAnswerResponse>;
104
104
  cancelPiDurableLeadChild(input: PiDurableLeadChildCancelRequest): Promise<PiDurableLeadChildCancelResponse>;
105
+ messagePiDurableLeadChild(input: PiDurableLeadChildMessageRequest): Promise<PiDurableLeadChildMessageResponse>;
105
106
  }
106
107
  export {};
package/dist/client.js CHANGED
@@ -252,6 +252,9 @@ export class ControlPlaneClient {
252
252
  cancelPiDurableLeadChild(input) {
253
253
  return this.#request(ControlApiOperations.cancelPiDurableLeadChild, input);
254
254
  }
255
+ messagePiDurableLeadChild(input) {
256
+ return this.#request(ControlApiOperations.messagePiDurableLeadChild, input);
257
+ }
255
258
  async #request(operation, input) {
256
259
  const request = operation.requestSchema.parse(input);
257
260
  const credential = await resolveCredential(this.#credential);
@@ -1,4 +1,4 @@
1
- import { PiDurableLeadPrepareRequestSchema, PiDurableLeadPrepareResponseSchema, PiDurableLeadLookupRequestSchema, PiDurableLeadLookupResponseSchema, PiDurableLeadDispatchRequestSchema, PiDurableLeadDispatchResponseSchema, PiDurableLeadStatusRequestSchema, PiDurableLeadStatusResponseSchema, PiDurableLeadChildrenRequestSchema, PiDurableLeadChildrenResponseSchema, PiDurableLeadChildTargetRequestSchema, PiDurableLeadChildTargetResponseSchema, PiDurableLeadProgressRequestSchema, PiDurableLeadEventsRequestSchema, PiDurableLeadEventsResponseSchema, PiDurableSessionsRequestSchema, PiDurableSessionsResponseSchema, PiDurableSessionEventsRequestSchema, PiDurableSessionEventsResponseSchema, PiDurableLeadProgressResponseSchema, PiDurableLeadCancelRequestSchema, PiDurableLeadChildCancelRequestSchema, PiDurableLeadQuestionAnswerRequestSchema, PiDurableLeadApprovalAnswerRequestSchema, PiDurableLeadApprovalAnswerResponseSchema, PiDurableLeadQuestionAnswerResponseSchema, PiDurableLeadChildCancelResponseSchema, PiDurableLeadCancelResponseSchema } from '@adea-ai/runtime-sdk';
1
+ import { PiDurableLeadPrepareRequestSchema, PiDurableLeadPrepareResponseSchema, PiDurableLeadLookupRequestSchema, PiDurableLeadLookupResponseSchema, PiDurableLeadDispatchRequestSchema, PiDurableLeadDispatchResponseSchema, PiDurableLeadStatusRequestSchema, PiDurableLeadStatusResponseSchema, PiDurableLeadChildrenRequestSchema, PiDurableLeadChildrenResponseSchema, PiDurableLeadChildTargetRequestSchema, PiDurableLeadChildTargetResponseSchema, PiDurableLeadProgressRequestSchema, PiDurableLeadEventsRequestSchema, PiDurableLeadEventsResponseSchema, PiDurableSessionsRequestSchema, PiDurableSessionsResponseSchema, PiDurableSessionEventsRequestSchema, PiDurableSessionEventsResponseSchema, PiDurableLeadProgressResponseSchema, PiDurableLeadCancelRequestSchema, PiDurableLeadChildCancelRequestSchema, PiDurableLeadQuestionAnswerRequestSchema, PiDurableLeadApprovalAnswerRequestSchema, PiDurableLeadApprovalAnswerResponseSchema, PiDurableLeadQuestionAnswerResponseSchema, PiDurableLeadChildCancelResponseSchema, PiDurableLeadChildMessageRequestSchema, PiDurableLeadChildMessageResponseSchema, PiDurableLeadCancelResponseSchema } from '@adea-ai/runtime-sdk';
2
2
  import { PiLeadPublicationRequestSchema, PiLeadPublicationResponseSchema, PiChildPublicationRequestSchema, PiChildPublicationResponseSchema, ModelSelectionFundingRequestSchema, ModelSelectionFundingResponseSchema, ModelConnectionCreateRequestSchema, ModelConnectionListRequestSchema, ModelConnectionListResponseSchema, ModelConnectionResponseSchema, ModelConnectionRevokeRequestSchema, ModelDefaultsGetRequestSchema, ModelDefaultsResponseSchema, ModelDefaultsSetRequestSchema, ModelSelectionResolveRequestSchema, ModelSelectionResponseSchema } from '@adea-ai/contracts';
3
3
  import { CredentialCreateRequestSchema, CredentialGetRequestSchema, CredentialListRequestSchema, CredentialListResponseSchema, CredentialResponseSchema, CredentialRevokeRequestSchema, CredentialRotateRequestSchema, ExecutionCancellationCommandSchema, ExecutionCancellationCommandResultSchema, InteractionResponseCommandSchema, InteractionResponseCommandResultSchema, ContextPackageResolutionRequestSchema, ContextPackageResolutionResponseSchema, ExecutionAcceptanceRequestSchema, ExecutionAcceptanceResponseSchema, ExecutionRequestValidationRequestSchema, ExecutionRequestValidationResponseSchema, DecisionResolveRequestSchema, DecisionResolveResponseSchema, ProfileResolutionRequestSchema, ProfileResolutionResponseSchema, ProjectStateInitializationRequestSchema, ProjectStateInitializationResponseSchema, ProjectStateResolutionRequestSchema, ProjectStateResolutionResponseSchema, RuntimeListRequestSchema, RuntimeListResponseSchema, ServiceAuthenticationRequestSchema, ServiceAuthenticationResponseSchema, ExternalSessionGetRequestSchema, ExternalSessionGetResponseSchema, ExternalSessionListRequestSchema, ExternalSessionListResponseSchema, RuntimeConnectionGetRequestSchema, RuntimeConnectionGetResponseSchema, RuntimeConnectionListRequestSchema, RuntimeConnectionListResponseSchema, MarketplaceCatalogRequestSchema, MarketplaceCatalogResponseSchema, MarketplaceInstallPlanRequestSchema, MarketplaceInstallPlanResponseSchema, MarketplaceInstallRequestSchema, MarketplaceInstallResponseSchema, MarketplaceInstallationGetRequestSchema, MarketplaceInstallationGetResponseSchema, MarketplaceInstallationUninstallRequestSchema, MarketplaceInstallationUninstallResponseSchema, WorkspaceAgentProfileDeprecationRequestSchema, WorkspaceAgentProfileGetRequestSchema, WorkspaceAgentProfileGetResponseSchema, WorkspaceAgentProfileLifecycleResponseSchema, WorkspaceAgentProfileListRequestSchema, WorkspaceAgentProfileListResponseSchema, WorkspaceAgentProfilePublishRequestSchema, WorkspaceAgentProfilePublishResponseSchema, WorkspaceAgentProfileRevocationRequestSchema, WorkspaceSkillDeprecationRequestSchema, WorkspaceSkillGetRequestSchema, WorkspaceSkillGetResponseSchema, WorkspaceSkillLifecycleResponseSchema, WorkspaceSkillListRequestSchema, WorkspaceSkillListResponseSchema, WorkspaceSkillPublishRequestSchema, WorkspaceSkillPublishResponseSchema, WorkspaceSkillRevocationRequestSchema, DeviceSyncUploadRequestSchema, DeviceSyncUploadResponseSchema, DeviceSyncCommitRequestSchema, DeviceSyncCommitResponseSchema, DeviceSyncDownloadRequestSchema, DeviceSyncDownloadResponseSchema, DeviceSyncReleaseRequestSchema, DeviceSyncReleaseResponseSchema, DeviceSyncAppendRequestSchema, DeviceSyncAppendResponseSchema, DeviceSyncLogRequestSchema, DeviceSyncLogResponseSchema, DeviceSyncUsageRequestSchema, DeviceSyncUsageResponseSchema } from '@adea-ai/contracts';
4
4
  export declare const ControlApiOperations: Readonly<{
@@ -413,6 +413,13 @@ export declare const ControlApiOperations: Readonly<{
413
413
  readonly responseSchema: typeof PiDurableLeadChildCancelResponseSchema;
414
414
  readonly responseStatus: 202;
415
415
  };
416
+ readonly messagePiDurableLeadChild: {
417
+ readonly operation: 'pi-durable.lead.child-message';
418
+ readonly method: 'POST';
419
+ readonly path: '/v3/pi-durable/lead-dispatches/child-message';
420
+ readonly requestSchema: typeof PiDurableLeadChildMessageRequestSchema;
421
+ readonly responseSchema: typeof PiDurableLeadChildMessageResponseSchema;
422
+ };
416
423
  readonly uploadDeviceSyncObject: {
417
424
  readonly operation: 'device-sync.upload';
418
425
  readonly method: 'POST';
@@ -1,4 +1,4 @@
1
- import { PiDurableLeadPrepareRequestSchema, PiDurableLeadPrepareResponseSchema, PiDurableLeadLookupRequestSchema, PiDurableLeadLookupResponseSchema, PiDurableLeadDispatchRequestSchema, PiDurableLeadDispatchResponseSchema, PiDurableLeadStatusRequestSchema, PiDurableLeadStatusResponseSchema, PiDurableLeadChildrenRequestSchema, PiDurableLeadChildrenResponseSchema, PiDurableLeadChildTargetRequestSchema, PiDurableLeadChildTargetResponseSchema, PiDurableLeadProgressRequestSchema, PiDurableLeadEventsRequestSchema, PiDurableLeadEventsResponseSchema, PiDurableSessionsRequestSchema, PiDurableSessionsResponseSchema, PiDurableSessionEventsRequestSchema, PiDurableSessionEventsResponseSchema, PiDurableLeadProgressResponseSchema, PiDurableLeadCancelRequestSchema, PiDurableLeadChildCancelRequestSchema, PiDurableLeadQuestionAnswerRequestSchema, PiDurableLeadApprovalAnswerRequestSchema, PiDurableLeadApprovalAnswerResponseSchema, PiDurableLeadQuestionAnswerResponseSchema, PiDurableLeadChildCancelResponseSchema, PiDurableLeadCancelResponseSchema, } from '@adea-ai/runtime-sdk';
1
+ import { PiDurableLeadPrepareRequestSchema, PiDurableLeadPrepareResponseSchema, PiDurableLeadLookupRequestSchema, PiDurableLeadLookupResponseSchema, PiDurableLeadDispatchRequestSchema, PiDurableLeadDispatchResponseSchema, PiDurableLeadStatusRequestSchema, PiDurableLeadStatusResponseSchema, PiDurableLeadChildrenRequestSchema, PiDurableLeadChildrenResponseSchema, PiDurableLeadChildTargetRequestSchema, PiDurableLeadChildTargetResponseSchema, PiDurableLeadProgressRequestSchema, PiDurableLeadEventsRequestSchema, PiDurableLeadEventsResponseSchema, PiDurableSessionsRequestSchema, PiDurableSessionsResponseSchema, PiDurableSessionEventsRequestSchema, PiDurableSessionEventsResponseSchema, PiDurableLeadProgressResponseSchema, PiDurableLeadCancelRequestSchema, PiDurableLeadChildCancelRequestSchema, PiDurableLeadQuestionAnswerRequestSchema, PiDurableLeadApprovalAnswerRequestSchema, PiDurableLeadApprovalAnswerResponseSchema, PiDurableLeadQuestionAnswerResponseSchema, PiDurableLeadChildCancelResponseSchema, PiDurableLeadChildMessageRequestSchema, PiDurableLeadChildMessageResponseSchema, PiDurableLeadCancelResponseSchema, } from '@adea-ai/runtime-sdk';
2
2
  import { PiLeadPublicationRequestSchema, PiLeadPublicationResponseSchema, PiChildPublicationRequestSchema, PiChildPublicationResponseSchema, ModelSelectionFundingRequestSchema, ModelSelectionFundingResponseSchema, ModelConnectionCreateRequestSchema, ModelConnectionListRequestSchema, ModelConnectionListResponseSchema, ModelConnectionResponseSchema, ModelConnectionRevokeRequestSchema, ModelDefaultsGetRequestSchema, ModelDefaultsResponseSchema, ModelDefaultsSetRequestSchema, ModelSelectionResolveRequestSchema, ModelSelectionResponseSchema, } from '@adea-ai/contracts';
3
3
  import { CredentialCreateRequestSchema, CredentialGetRequestSchema, CredentialListRequestSchema, CredentialListResponseSchema, CredentialResponseSchema, CredentialRevokeRequestSchema, CredentialRotateRequestSchema, ExecutionCancellationCommandSchema, ExecutionCancellationCommandResultSchema, InteractionResponseCommandSchema, InteractionResponseCommandResultSchema, ContextPackageResolutionRequestSchema, ContextPackageResolutionResponseSchema, ExecutionAcceptanceRequestSchema, ExecutionAcceptanceResponseSchema, ExecutionRequestValidationRequestSchema, ExecutionRequestValidationResponseSchema, DecisionResolveRequestSchema, DecisionResolveResponseSchema, ProfileResolutionRequestSchema, ProfileResolutionResponseSchema, ProjectStateInitializationRequestSchema, ProjectStateInitializationResponseSchema, ProjectStateResolutionRequestSchema, ProjectStateResolutionResponseSchema, RuntimeListRequestSchema, RuntimeListResponseSchema, ServiceAuthenticationRequestSchema, ServiceAuthenticationResponseSchema, ExternalSessionGetRequestSchema, ExternalSessionGetResponseSchema, ExternalSessionListRequestSchema, ExternalSessionListResponseSchema, RuntimeConnectionGetRequestSchema, RuntimeConnectionGetResponseSchema, RuntimeConnectionListRequestSchema, RuntimeConnectionListResponseSchema, MarketplaceCatalogRequestSchema, MarketplaceCatalogResponseSchema, MarketplaceInstallPlanRequestSchema, MarketplaceInstallPlanResponseSchema, MarketplaceInstallRequestSchema, MarketplaceInstallResponseSchema, MarketplaceInstallationGetRequestSchema, MarketplaceInstallationGetResponseSchema, MarketplaceInstallationUninstallRequestSchema, MarketplaceInstallationUninstallResponseSchema, WorkspaceAgentProfileDeprecationRequestSchema, WorkspaceAgentProfileGetRequestSchema, WorkspaceAgentProfileGetResponseSchema, WorkspaceAgentProfileLifecycleResponseSchema, WorkspaceAgentProfileListRequestSchema, WorkspaceAgentProfileListResponseSchema, WorkspaceAgentProfilePublishRequestSchema, WorkspaceAgentProfilePublishResponseSchema, WorkspaceAgentProfileRevocationRequestSchema, WorkspaceSkillDeprecationRequestSchema, WorkspaceSkillGetRequestSchema, WorkspaceSkillGetResponseSchema, WorkspaceSkillLifecycleResponseSchema, WorkspaceSkillListRequestSchema, WorkspaceSkillListResponseSchema, WorkspaceSkillPublishRequestSchema, WorkspaceSkillPublishResponseSchema, WorkspaceSkillRevocationRequestSchema, DeviceSyncUploadRequestSchema, DeviceSyncUploadResponseSchema, DeviceSyncCommitRequestSchema, DeviceSyncCommitResponseSchema, DeviceSyncDownloadRequestSchema, DeviceSyncDownloadResponseSchema, DeviceSyncReleaseRequestSchema, DeviceSyncReleaseResponseSchema, DeviceSyncAppendRequestSchema, DeviceSyncAppendResponseSchema, DeviceSyncLogRequestSchema, DeviceSyncLogResponseSchema, DeviceSyncUsageRequestSchema, DeviceSyncUsageResponseSchema, } from '@adea-ai/contracts';
4
4
  export const ControlApiOperations = Object.freeze({
@@ -413,6 +413,13 @@ export const ControlApiOperations = Object.freeze({
413
413
  responseSchema: PiDurableLeadChildCancelResponseSchema,
414
414
  responseStatus: 202,
415
415
  },
416
+ messagePiDurableLeadChild: {
417
+ operation: 'pi-durable.lead.child-message',
418
+ method: 'POST',
419
+ path: '/v3/pi-durable/lead-dispatches/child-message',
420
+ requestSchema: PiDurableLeadChildMessageRequestSchema,
421
+ responseSchema: PiDurableLeadChildMessageResponseSchema,
422
+ },
416
423
  uploadDeviceSyncObject: {
417
424
  operation: 'device-sync.upload',
418
425
  method: 'POST',
@@ -19414,6 +19414,415 @@
19414
19414
  "security": [{ "serviceBearer": [] }]
19415
19415
  }
19416
19416
  },
19417
+ "/v3/pi-durable/lead-dispatches/child-message": {
19418
+ "post": {
19419
+ "operationId": "pi-durable.lead.child-message",
19420
+ "requestBody": {
19421
+ "content": {
19422
+ "application/json": {
19423
+ "schema": {
19424
+ "additionalProperties": false,
19425
+ "properties": {
19426
+ "caller": {
19427
+ "additionalProperties": false,
19428
+ "properties": {
19429
+ "servicePrincipalId": {
19430
+ "maxLength": 64,
19431
+ "minLength": 5,
19432
+ "pattern": "^svc_[a-z][a-z0-9-]*$",
19433
+ "type": "string"
19434
+ }
19435
+ },
19436
+ "required": ["servicePrincipalId"],
19437
+ "type": "object"
19438
+ },
19439
+ "commandId": { "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
19440
+ "contractVersion": {
19441
+ "additionalProperties": false,
19442
+ "properties": {
19443
+ "major": {
19444
+ "exclusiveMinimum": 0,
19445
+ "maximum": 9007199254740991,
19446
+ "type": "integer"
19447
+ },
19448
+ "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
19449
+ },
19450
+ "required": ["major", "minor"],
19451
+ "type": "object"
19452
+ },
19453
+ "correlation": {
19454
+ "additionalProperties": false,
19455
+ "properties": {
19456
+ "causationCommandId": {
19457
+ "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$",
19458
+ "type": "string"
19459
+ },
19460
+ "parentEventId": {
19461
+ "pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$",
19462
+ "type": "string"
19463
+ },
19464
+ "traceId": { "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
19465
+ },
19466
+ "required": ["traceId"],
19467
+ "type": "object"
19468
+ },
19469
+ "idempotencyKey": {
19470
+ "maxLength": 128,
19471
+ "minLength": 16,
19472
+ "pattern": "^[A-Za-z0-9._:-]+$",
19473
+ "type": "string"
19474
+ },
19475
+ "issuedAt": {
19476
+ "format": "date-time",
19477
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
19478
+ "type": "string"
19479
+ },
19480
+ "operation": { "const": "pi-durable.lead.child-message", "type": "string" },
19481
+ "payload": {
19482
+ "additionalProperties": false,
19483
+ "properties": {
19484
+ "delegationId": {
19485
+ "pattern": "^dlg_[0-9A-HJKMNP-TV-Z]{26}$",
19486
+ "type": "string"
19487
+ },
19488
+ "dispatchId": { "pattern": "^dispatch_[a-f0-9]{32}$", "type": "string" },
19489
+ "requestId": {
19490
+ "pattern": "^pi-child-message:[a-f0-9]{32}$",
19491
+ "type": "string"
19492
+ },
19493
+ "text": { "maxLength": 8192, "minLength": 1, "type": "string" }
19494
+ },
19495
+ "required": ["dispatchId", "delegationId", "requestId", "text"],
19496
+ "type": "object"
19497
+ },
19498
+ "payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
19499
+ "projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
19500
+ "requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
19501
+ "workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
19502
+ },
19503
+ "required": [
19504
+ "caller",
19505
+ "contractVersion",
19506
+ "requestId",
19507
+ "workspaceId",
19508
+ "correlation",
19509
+ "commandId",
19510
+ "idempotencyKey",
19511
+ "payloadHash",
19512
+ "operation",
19513
+ "issuedAt",
19514
+ "payload"
19515
+ ],
19516
+ "type": "object"
19517
+ }
19518
+ }
19519
+ },
19520
+ "required": true
19521
+ },
19522
+ "responses": {
19523
+ "200": {
19524
+ "content": {
19525
+ "application/json": {
19526
+ "schema": {
19527
+ "additionalProperties": false,
19528
+ "properties": {
19529
+ "contractVersion": {
19530
+ "additionalProperties": false,
19531
+ "properties": {
19532
+ "major": {
19533
+ "exclusiveMinimum": 0,
19534
+ "maximum": 9007199254740991,
19535
+ "type": "integer"
19536
+ },
19537
+ "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
19538
+ },
19539
+ "required": ["major", "minor"],
19540
+ "type": "object"
19541
+ },
19542
+ "correlation": {
19543
+ "additionalProperties": false,
19544
+ "properties": {
19545
+ "causationCommandId": {},
19546
+ "parentEventId": {},
19547
+ "traceId": {}
19548
+ },
19549
+ "required": ["traceId"],
19550
+ "type": "object"
19551
+ },
19552
+ "data": {
19553
+ "additionalProperties": false,
19554
+ "properties": {
19555
+ "attemptId": {},
19556
+ "child": {
19557
+ "additionalProperties": false,
19558
+ "properties": {
19559
+ "acceptedAt": {
19560
+ "format": "date-time",
19561
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
19562
+ "type": "string"
19563
+ },
19564
+ "awaitingInput": { "type": "boolean" },
19565
+ "childAttemptId": {},
19566
+ "childExecutionId": {},
19567
+ "delegationId": {},
19568
+ "outcome": {
19569
+ "additionalProperties": false,
19570
+ "properties": {
19571
+ "failureCode": {
19572
+ "maxLength": 256,
19573
+ "minLength": 1,
19574
+ "pattern": "^[A-Za-z0-9._:/-]+$",
19575
+ "type": "string"
19576
+ },
19577
+ "publication": {
19578
+ "additionalProperties": false,
19579
+ "properties": {
19580
+ "resolution": {
19581
+ "enum": [
19582
+ "continue_parent",
19583
+ "manual_intervention",
19584
+ "fail_parent"
19585
+ ],
19586
+ "type": "string"
19587
+ },
19588
+ "status": { "enum": ["pending", "published"], "type": "string" }
19589
+ },
19590
+ "required": ["status"],
19591
+ "type": "object"
19592
+ },
19593
+ "resultRef": {},
19594
+ "state": {
19595
+ "enum": ["completed", "failed", "cancelled"],
19596
+ "type": "string"
19597
+ }
19598
+ },
19599
+ "required": ["state", "publication"],
19600
+ "type": "object"
19601
+ },
19602
+ "revision": {
19603
+ "exclusiveMinimum": 0,
19604
+ "maximum": 9007199254740991,
19605
+ "type": "integer"
19606
+ },
19607
+ "role": {
19608
+ "maxLength": 256,
19609
+ "minLength": 1,
19610
+ "pattern": "^[A-Za-z0-9._:/-]+$",
19611
+ "type": "string"
19612
+ },
19613
+ "runtimeSessionId": {},
19614
+ "state": {
19615
+ "enum": [
19616
+ "requested",
19617
+ "dispatched",
19618
+ "running",
19619
+ "awaiting_input",
19620
+ "completed",
19621
+ "failed",
19622
+ "cancelled",
19623
+ "manual_intervention"
19624
+ ],
19625
+ "type": "string"
19626
+ },
19627
+ "stopRequested": { "type": "boolean" },
19628
+ "updatedAt": {
19629
+ "format": "date-time",
19630
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
19631
+ "type": "string"
19632
+ }
19633
+ },
19634
+ "required": [
19635
+ "delegationId",
19636
+ "childExecutionId",
19637
+ "role",
19638
+ "state",
19639
+ "awaitingInput",
19640
+ "stopRequested",
19641
+ "acceptedAt",
19642
+ "updatedAt",
19643
+ "revision"
19644
+ ],
19645
+ "type": "object"
19646
+ },
19647
+ "dispatchId": { "pattern": "^dispatch_[a-f0-9]{32}$", "type": "string" },
19648
+ "executionId": {},
19649
+ "intentId": {
19650
+ "format": "uuid",
19651
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
19652
+ "type": "string"
19653
+ },
19654
+ "observedTarget": {
19655
+ "additionalProperties": false,
19656
+ "properties": {
19657
+ "generation": {
19658
+ "additionalProperties": false,
19659
+ "properties": {
19660
+ "attemptId": {},
19661
+ "inferenceId": {
19662
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,255}$",
19663
+ "type": "string"
19664
+ },
19665
+ "inferenceKey": {
19666
+ "maxLength": 8192,
19667
+ "minLength": 1,
19668
+ "type": "string"
19669
+ },
19670
+ "schemaVersion": {
19671
+ "const": "runtime-observed-generation/v1",
19672
+ "type": "string"
19673
+ },
19674
+ "turnKey": { "maxLength": 4096, "minLength": 1, "type": "string" }
19675
+ },
19676
+ "required": [
19677
+ "schemaVersion",
19678
+ "attemptId",
19679
+ "turnKey",
19680
+ "inferenceId",
19681
+ "inferenceKey"
19682
+ ],
19683
+ "type": "object"
19684
+ },
19685
+ "sessionId": { "maxLength": 256, "minLength": 1, "type": "string" },
19686
+ "taskId": { "maxLength": 256, "minLength": 1, "type": "string" }
19687
+ },
19688
+ "readOnly": true,
19689
+ "required": ["sessionId", "taskId"],
19690
+ "type": "object"
19691
+ },
19692
+ "outcome": { "enum": ["delivered", "already_delivered"], "type": "string" },
19693
+ "requestId": {
19694
+ "pattern": "^pi-child-message:[a-f0-9]{32}$",
19695
+ "type": "string"
19696
+ },
19697
+ "requestedTarget": {
19698
+ "additionalProperties": false,
19699
+ "properties": {
19700
+ "generation": {
19701
+ "maximum": 9007199254740991,
19702
+ "minimum": 0,
19703
+ "type": "integer"
19704
+ },
19705
+ "sessionId": { "maxLength": 256, "minLength": 1, "type": "string" },
19706
+ "taskId": { "maxLength": 256, "minLength": 1, "type": "string" }
19707
+ },
19708
+ "readOnly": true,
19709
+ "required": ["sessionId", "taskId", "generation"],
19710
+ "type": "object"
19711
+ },
19712
+ "runtimeSessionId": {},
19713
+ "schemaVersion": { "const": "pi-lead-dispatch/v1", "type": "string" }
19714
+ },
19715
+ "required": [
19716
+ "schemaVersion",
19717
+ "dispatchId",
19718
+ "intentId",
19719
+ "executionId",
19720
+ "attemptId",
19721
+ "runtimeSessionId",
19722
+ "child",
19723
+ "requestId",
19724
+ "outcome"
19725
+ ],
19726
+ "type": "object"
19727
+ },
19728
+ "requestId": {}
19729
+ },
19730
+ "required": ["contractVersion", "requestId", "correlation", "data"],
19731
+ "type": "object"
19732
+ }
19733
+ }
19734
+ },
19735
+ "description": "Successful response"
19736
+ },
19737
+ "default": {
19738
+ "content": {
19739
+ "application/json": {
19740
+ "schema": {
19741
+ "additionalProperties": false,
19742
+ "properties": {
19743
+ "contractVersion": {
19744
+ "additionalProperties": false,
19745
+ "properties": {
19746
+ "major": {
19747
+ "exclusiveMinimum": 0,
19748
+ "maximum": 9007199254740991,
19749
+ "type": "integer"
19750
+ },
19751
+ "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
19752
+ },
19753
+ "required": ["major", "minor"],
19754
+ "type": "object"
19755
+ },
19756
+ "correlation": {
19757
+ "additionalProperties": false,
19758
+ "properties": {
19759
+ "causationCommandId": {},
19760
+ "parentEventId": {},
19761
+ "traceId": {}
19762
+ },
19763
+ "required": ["traceId"],
19764
+ "type": "object"
19765
+ },
19766
+ "error": {
19767
+ "additionalProperties": false,
19768
+ "properties": {
19769
+ "class": {
19770
+ "enum": [
19771
+ "validation",
19772
+ "authentication",
19773
+ "authorization",
19774
+ "conflict",
19775
+ "stale_reference",
19776
+ "capability_mismatch",
19777
+ "runtime_unavailable",
19778
+ "internal"
19779
+ ],
19780
+ "type": "string"
19781
+ },
19782
+ "code": {
19783
+ "maxLength": 96,
19784
+ "minLength": 1,
19785
+ "pattern": "^[A-Z][A-Z0-9_]*$",
19786
+ "type": "string"
19787
+ },
19788
+ "details": {
19789
+ "additionalProperties": {},
19790
+ "propertyNames": { "maxLength": 64, "type": "string" },
19791
+ "type": "object"
19792
+ },
19793
+ "message": { "maxLength": 512, "minLength": 1, "type": "string" },
19794
+ "remediation": { "maxLength": 256, "minLength": 1, "type": "string" },
19795
+ "retryable": { "type": "boolean" },
19796
+ "source": {
19797
+ "enum": [
19798
+ "client",
19799
+ "auth",
19800
+ "policy",
19801
+ "runtime",
19802
+ "provider",
19803
+ "persistence",
19804
+ "workflow",
19805
+ "system"
19806
+ ],
19807
+ "type": "string"
19808
+ }
19809
+ },
19810
+ "required": ["class", "code", "message", "retryable", "source"],
19811
+ "type": "object"
19812
+ },
19813
+ "requestId": {}
19814
+ },
19815
+ "required": ["contractVersion", "requestId", "correlation", "error"],
19816
+ "type": "object"
19817
+ }
19818
+ }
19819
+ },
19820
+ "description": "Normalized error response"
19821
+ }
19822
+ },
19823
+ "security": [{ "serviceBearer": [] }]
19824
+ }
19825
+ },
19417
19826
  "/v3/pi-durable/lead-dispatches/child-target": {
19418
19827
  "post": {
19419
19828
  "operationId": "pi-durable.lead.child-target",
@@ -23002,6 +23411,12 @@
23002
23411
  "properties": {
23003
23412
  "afterSeq": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" },
23004
23413
  "limit": { "maximum": 256, "minimum": 1, "type": "integer" },
23414
+ "messageId": {
23415
+ "maxLength": 128,
23416
+ "minLength": 1,
23417
+ "pattern": "^[A-Za-z0-9._:-]+$",
23418
+ "type": "string"
23419
+ },
23005
23420
  "runtimeSessionId": {
23006
23421
  "pattern": "^(?:pi-lead:dispatch_[a-f0-9]{32}|ses_[0-9A-HJKMNP-TV-Z]{26})$",
23007
23422
  "type": "string"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adea-ai/sdk",
3
- "version": "4.0.2",
3
+ "version": "4.1.0",
4
4
  "description": "Typed client for the Control Plane API with transport, response mapping, OpenAPI baseline, and testing helpers.",
5
5
  "keywords": [
6
6
  "agents",
@@ -49,8 +49,8 @@
49
49
  "test": "bun test src/*.test.ts"
50
50
  },
51
51
  "dependencies": {
52
- "@adea-ai/contracts": "^5.0.2",
53
- "@adea-ai/runtime-sdk": "^3.0.1",
52
+ "@adea-ai/contracts": "^5.0.3",
53
+ "@adea-ai/runtime-sdk": "^3.1.0",
54
54
  "zod": "4.6.6"
55
55
  },
56
56
  "engines": {