@adea-ai/sdk 1.22.1 → 1.23.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, PiDurableLeadProgressRequest, PiDurableLeadProgressResponse, PiDurableLeadCancelRequest, PiDurableLeadCancelResponse } from '@adea-ai/runtime-sdk';
1
+ import type { PiDurableLeadPrepareRequest, PiDurableLeadPrepareResponse, PiDurableLeadLookupRequest, PiDurableLeadLookupResponse, PiDurableLeadDispatchRequest, PiDurableLeadDispatchResponse, PiDurableLeadStatusRequest, PiDurableLeadStatusResponse, PiDurableLeadChildrenRequest, PiDurableLeadChildrenResponse, PiDurableLeadChildTargetRequest, PiDurableLeadChildTargetResponse, PiDurableLeadProgressRequest, PiDurableLeadProgressResponse, PiDurableLeadCancelRequest, 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 GraphDefinitionPublishRequest, type GraphDefinitionDeprecationRequest, type GraphDefinitionRevocationRequest, type GraphDefinitionResolutionRequest, type GraphDefinitionResponse, 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 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 } from '@adea-ai/contracts';
4
4
  type FetchImplementation = (input: string | URL | globalThis.Request, init?: RequestInit) => Promise<Response>;
@@ -24,7 +24,6 @@ export declare class ControlPlaneClientError extends Error {
24
24
  readonly requestId: string;
25
25
  readonly retryable: boolean;
26
26
  readonly status: number | undefined;
27
- /** Bounded model readiness reason carried by PI_LEAD_MODEL_NOT_READY; never free text. */
28
27
  readonly reasonCode: ModelReadinessReason | undefined;
29
28
  constructor(input: ControlPlaneClientErrorInput);
30
29
  toJSON(): {
@@ -50,9 +49,7 @@ export declare class ControlPlaneClient {
50
49
  getModelSelectionFunding(input: ModelSelectionFundingRequest): Promise<ModelSelectionFundingResponse>;
51
50
  getPiDurableLeadPublication(input: PiLeadPublicationRequest): Promise<PiLeadPublicationResponse>;
52
51
  getPiDurableChildPublication(input: PiChildPublicationRequest): Promise<PiChildPublicationResponse>;
53
- /** Sends the secret once; the response carries metadata only. */
54
52
  createCredential(input: CredentialCreateRequest): Promise<CredentialResponse>;
55
- /** Sends a new secret revision once; the response carries metadata only. */
56
53
  rotateCredential(input: CredentialRotateRequest): Promise<CredentialResponse>;
57
54
  revokeCredential(input: CredentialRevokeRequest): Promise<CredentialResponse>;
58
55
  getCredential(input: CredentialGetRequest): Promise<CredentialResponse>;
@@ -74,7 +71,6 @@ export declare class ControlPlaneClient {
74
71
  verifyAuthentication(input: ServiceAuthenticationRequest): Promise<ServiceAuthenticationResponse>;
75
72
  resolveProfile(input: ProfileResolutionRequest): Promise<ProfileResolutionResponse>;
76
73
  resolveProjectState(input: ProjectStateResolutionRequest): Promise<ProjectStateResolutionResponse>;
77
- /** Idempotently create the empty revision-zero ProjectState for a project. */
78
74
  initializeProjectState(input: ProjectStateInitializationRequest): Promise<ProjectStateInitializationResponse>;
79
75
  resolveContextPackage(input: ContextPackageResolutionRequest): Promise<ContextPackageResolutionResponse>;
80
76
  listRuntimes(input: RuntimeListRequest): Promise<RuntimeListResponse>;
@@ -97,6 +93,7 @@ export declare class ControlPlaneClient {
97
93
  lookupPiDurableLead(input: PiDurableLeadLookupRequest): Promise<PiDurableLeadLookupResponse>;
98
94
  getPiDurableLeadProgress(input: PiDurableLeadProgressRequest): Promise<PiDurableLeadProgressResponse>;
99
95
  getPiDurableLeadChildren(input: PiDurableLeadChildrenRequest): Promise<PiDurableLeadChildrenResponse>;
96
+ getPiDurableLeadChildTarget(input: PiDurableLeadChildTargetRequest): Promise<PiDurableLeadChildTargetResponse>;
100
97
  cancelPiDurableLead(input: PiDurableLeadCancelRequest): Promise<PiDurableLeadCancelResponse>;
101
98
  }
102
99
  export {};
package/dist/client.js CHANGED
@@ -6,7 +6,6 @@ export class ControlPlaneClientError extends Error {
6
6
  requestId;
7
7
  retryable;
8
8
  status;
9
- /** Bounded model readiness reason carried by PI_LEAD_MODEL_NOT_READY; never free text. */
10
9
  reasonCode;
11
10
  constructor(input) {
12
11
  super(input.message);
@@ -72,11 +71,9 @@ export class ControlPlaneClient {
72
71
  getPiDurableChildPublication(input) {
73
72
  return this.#request(ControlApiOperations.getPiDurableChildPublication, input);
74
73
  }
75
- /** Sends the secret once; the response carries metadata only. */
76
74
  createCredential(input) {
77
75
  return this.#request(ControlApiOperations.createCredential, input);
78
76
  }
79
- /** Sends a new secret revision once; the response carries metadata only. */
80
77
  rotateCredential(input) {
81
78
  return this.#request(ControlApiOperations.rotateCredential, input);
82
79
  }
@@ -140,7 +137,6 @@ export class ControlPlaneClient {
140
137
  resolveProjectState(input) {
141
138
  return this.#request(ControlApiOperations.resolveProjectState, input);
142
139
  }
143
- /** Idempotently create the empty revision-zero ProjectState for a project. */
144
140
  initializeProjectState(input) {
145
141
  return this.#request(ControlApiOperations.initializeProjectState, input);
146
142
  }
@@ -224,6 +220,14 @@ export class ControlPlaneClient {
224
220
  }
225
221
  return response;
226
222
  }
223
+ async getPiDurableLeadChildTarget(input) {
224
+ const request = ControlApiOperations.getPiDurableLeadChildTarget.requestSchema.parse(input);
225
+ const response = await this.#request(ControlApiOperations.getPiDurableLeadChildTarget, request);
226
+ if (response.data.dispatchId !== request.parameters.dispatchId ||
227
+ response.data.child.delegationId !== request.parameters.delegationId)
228
+ throw invalidResponse(request.requestId, 200);
229
+ return response;
230
+ }
227
231
  cancelPiDurableLead(input) {
228
232
  return this.#request(ControlApiOperations.cancelPiDurableLead, input);
229
233
  }
@@ -318,7 +322,6 @@ function assertCompatibleVersion(version, requestId, status) {
318
322
  });
319
323
  }
320
324
  }
321
- /** Only the closed readiness vocabulary crosses; other details stay server-side diagnostics. */
322
325
  function readinessReason(details) {
323
326
  const parsed = ModelReadinessReasonSchema.safeParse(details?.['reasonCode']);
324
327
  return parsed.success && parsed.data !== 'READY' ? parsed.data : undefined;
@@ -1,4 +1,4 @@
1
- import { PiDurableLeadPrepareRequestSchema, PiDurableLeadPrepareResponseSchema, PiDurableLeadLookupRequestSchema, PiDurableLeadLookupResponseSchema, PiDurableLeadDispatchRequestSchema, PiDurableLeadDispatchResponseSchema, PiDurableLeadStatusRequestSchema, PiDurableLeadStatusResponseSchema, PiDurableLeadChildrenRequestSchema, PiDurableLeadChildrenResponseSchema, PiDurableLeadProgressRequestSchema, PiDurableLeadProgressResponseSchema, PiDurableLeadCancelRequestSchema, PiDurableLeadCancelResponseSchema } from '@adea-ai/runtime-sdk';
1
+ import { PiDurableLeadPrepareRequestSchema, PiDurableLeadPrepareResponseSchema, PiDurableLeadLookupRequestSchema, PiDurableLeadLookupResponseSchema, PiDurableLeadDispatchRequestSchema, PiDurableLeadDispatchResponseSchema, PiDurableLeadStatusRequestSchema, PiDurableLeadStatusResponseSchema, PiDurableLeadChildrenRequestSchema, PiDurableLeadChildrenResponseSchema, PiDurableLeadChildTargetRequestSchema, PiDurableLeadChildTargetResponseSchema, PiDurableLeadProgressRequestSchema, PiDurableLeadProgressResponseSchema, PiDurableLeadCancelRequestSchema, 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, RuntimeNodeCredentialRevocationResponseSchema, RuntimeNodeCredentialRevokeRequestSchema, GraphDefinitionPublishRequestSchema, GraphDefinitionDeprecationRequestSchema, GraphDefinitionRevocationRequestSchema, GraphDefinitionResolutionRequestSchema, GraphDefinitionResponseSchema, ExecutionCancellationCommandSchema, ExecutionCancellationCommandResultSchema, InteractionResponseCommandSchema, InteractionResponseCommandResultSchema, ContextPackageResolutionRequestSchema, ContextPackageResolutionResponseSchema, ExecutionAcceptanceRequestSchema, ExecutionAcceptanceResponseSchema, ExecutionRequestValidationRequestSchema, ExecutionRequestValidationResponseSchema, 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 } from '@adea-ai/contracts';
4
4
  export declare const ControlApiOperations: Readonly<{
@@ -383,6 +383,13 @@ export declare const ControlApiOperations: Readonly<{
383
383
  readonly requestSchema: typeof PiDurableLeadChildrenRequestSchema;
384
384
  readonly responseSchema: typeof PiDurableLeadChildrenResponseSchema;
385
385
  };
386
+ readonly getPiDurableLeadChildTarget: {
387
+ readonly operation: 'pi-durable.lead.child-target';
388
+ readonly method: 'POST';
389
+ readonly path: '/v3/pi-durable/lead-dispatches/child-target';
390
+ readonly requestSchema: typeof PiDurableLeadChildTargetRequestSchema;
391
+ readonly responseSchema: typeof PiDurableLeadChildTargetResponseSchema;
392
+ };
386
393
  readonly cancelPiDurableLead: {
387
394
  readonly operation: 'pi-durable.lead.cancel';
388
395
  readonly method: 'POST';
@@ -1,4 +1,4 @@
1
- import { PiDurableLeadPrepareRequestSchema, PiDurableLeadPrepareResponseSchema, PiDurableLeadLookupRequestSchema, PiDurableLeadLookupResponseSchema, PiDurableLeadDispatchRequestSchema, PiDurableLeadDispatchResponseSchema, PiDurableLeadStatusRequestSchema, PiDurableLeadStatusResponseSchema, PiDurableLeadChildrenRequestSchema, PiDurableLeadChildrenResponseSchema, PiDurableLeadProgressRequestSchema, PiDurableLeadProgressResponseSchema, PiDurableLeadCancelRequestSchema, PiDurableLeadCancelResponseSchema, } from '@adea-ai/runtime-sdk';
1
+ import { PiDurableLeadPrepareRequestSchema, PiDurableLeadPrepareResponseSchema, PiDurableLeadLookupRequestSchema, PiDurableLeadLookupResponseSchema, PiDurableLeadDispatchRequestSchema, PiDurableLeadDispatchResponseSchema, PiDurableLeadStatusRequestSchema, PiDurableLeadStatusResponseSchema, PiDurableLeadChildrenRequestSchema, PiDurableLeadChildrenResponseSchema, PiDurableLeadChildTargetRequestSchema, PiDurableLeadChildTargetResponseSchema, PiDurableLeadProgressRequestSchema, PiDurableLeadProgressResponseSchema, PiDurableLeadCancelRequestSchema, 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, RuntimeNodeCredentialRevocationResponseSchema, RuntimeNodeCredentialRevokeRequestSchema, GraphDefinitionPublishRequestSchema, GraphDefinitionDeprecationRequestSchema, GraphDefinitionRevocationRequestSchema, GraphDefinitionResolutionRequestSchema, GraphDefinitionResponseSchema, ExecutionCancellationCommandSchema, ExecutionCancellationCommandResultSchema, InteractionResponseCommandSchema, InteractionResponseCommandResultSchema, ContextPackageResolutionRequestSchema, ContextPackageResolutionResponseSchema, ExecutionAcceptanceRequestSchema, ExecutionAcceptanceResponseSchema, ExecutionRequestValidationRequestSchema, ExecutionRequestValidationResponseSchema, 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, } from '@adea-ai/contracts';
4
4
  export const ControlApiOperations = Object.freeze({
@@ -383,6 +383,13 @@ export const ControlApiOperations = Object.freeze({
383
383
  requestSchema: PiDurableLeadChildrenRequestSchema,
384
384
  responseSchema: PiDurableLeadChildrenResponseSchema,
385
385
  },
386
+ getPiDurableLeadChildTarget: {
387
+ operation: 'pi-durable.lead.child-target',
388
+ method: 'POST',
389
+ path: '/v3/pi-durable/lead-dispatches/child-target',
390
+ requestSchema: PiDurableLeadChildTargetRequestSchema,
391
+ responseSchema: PiDurableLeadChildTargetResponseSchema,
392
+ },
386
393
  cancelPiDurableLead: {
387
394
  operation: 'pi-durable.lead.cancel',
388
395
  method: 'POST',
@@ -18218,6 +18218,470 @@
18218
18218
  "security": [{ "serviceBearer": [] }]
18219
18219
  }
18220
18220
  },
18221
+ "/v3/pi-durable/lead-dispatches/child-target": {
18222
+ "post": {
18223
+ "operationId": "pi-durable.lead.child-target",
18224
+ "requestBody": {
18225
+ "content": {
18226
+ "application/json": {
18227
+ "schema": {
18228
+ "additionalProperties": false,
18229
+ "properties": {
18230
+ "caller": {
18231
+ "additionalProperties": false,
18232
+ "properties": {
18233
+ "servicePrincipalId": {
18234
+ "maxLength": 64,
18235
+ "minLength": 5,
18236
+ "pattern": "^svc_[a-z][a-z0-9-]*$",
18237
+ "type": "string"
18238
+ }
18239
+ },
18240
+ "required": ["servicePrincipalId"],
18241
+ "type": "object"
18242
+ },
18243
+ "contractVersion": {
18244
+ "additionalProperties": false,
18245
+ "properties": {
18246
+ "major": {
18247
+ "exclusiveMinimum": 0,
18248
+ "maximum": 9007199254740991,
18249
+ "type": "integer"
18250
+ },
18251
+ "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
18252
+ },
18253
+ "required": ["major", "minor"],
18254
+ "type": "object"
18255
+ },
18256
+ "correlation": {
18257
+ "additionalProperties": false,
18258
+ "properties": {
18259
+ "causationCommandId": {
18260
+ "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$",
18261
+ "type": "string"
18262
+ },
18263
+ "parentEventId": {
18264
+ "pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$",
18265
+ "type": "string"
18266
+ },
18267
+ "traceId": { "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
18268
+ },
18269
+ "required": ["traceId"],
18270
+ "type": "object"
18271
+ },
18272
+ "operation": { "const": "pi-durable.lead.child-target", "type": "string" },
18273
+ "parameters": {
18274
+ "additionalProperties": false,
18275
+ "properties": {
18276
+ "delegationId": {
18277
+ "pattern": "^dlg_[0-9A-HJKMNP-TV-Z]{26}$",
18278
+ "type": "string"
18279
+ },
18280
+ "dispatchId": { "pattern": "^dispatch_[a-f0-9]{32}$", "type": "string" }
18281
+ },
18282
+ "required": ["dispatchId", "delegationId"],
18283
+ "type": "object"
18284
+ },
18285
+ "projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
18286
+ "requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
18287
+ "requestedAt": {
18288
+ "format": "date-time",
18289
+ "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))$",
18290
+ "type": "string"
18291
+ },
18292
+ "workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
18293
+ },
18294
+ "required": [
18295
+ "caller",
18296
+ "contractVersion",
18297
+ "requestId",
18298
+ "workspaceId",
18299
+ "correlation",
18300
+ "operation",
18301
+ "requestedAt",
18302
+ "parameters"
18303
+ ],
18304
+ "type": "object"
18305
+ }
18306
+ }
18307
+ },
18308
+ "required": true
18309
+ },
18310
+ "responses": {
18311
+ "200": {
18312
+ "content": {
18313
+ "application/json": {
18314
+ "schema": {
18315
+ "additionalProperties": false,
18316
+ "properties": {
18317
+ "contractVersion": {
18318
+ "additionalProperties": false,
18319
+ "properties": {
18320
+ "major": {
18321
+ "exclusiveMinimum": 0,
18322
+ "maximum": 9007199254740991,
18323
+ "type": "integer"
18324
+ },
18325
+ "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
18326
+ },
18327
+ "required": ["major", "minor"],
18328
+ "type": "object"
18329
+ },
18330
+ "correlation": {
18331
+ "additionalProperties": false,
18332
+ "properties": {
18333
+ "causationCommandId": {},
18334
+ "parentEventId": {},
18335
+ "traceId": {}
18336
+ },
18337
+ "required": ["traceId"],
18338
+ "type": "object"
18339
+ },
18340
+ "data": {
18341
+ "additionalProperties": false,
18342
+ "properties": {
18343
+ "attemptId": {},
18344
+ "child": {
18345
+ "additionalProperties": false,
18346
+ "properties": {
18347
+ "acceptedAt": {
18348
+ "format": "date-time",
18349
+ "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))$",
18350
+ "type": "string"
18351
+ },
18352
+ "awaitingInput": { "type": "boolean" },
18353
+ "childAttemptId": {},
18354
+ "childExecutionId": {},
18355
+ "delegationId": {},
18356
+ "outcome": {
18357
+ "additionalProperties": false,
18358
+ "properties": {
18359
+ "failureCode": {
18360
+ "maxLength": 256,
18361
+ "minLength": 1,
18362
+ "pattern": "^[A-Za-z0-9._:/-]+$",
18363
+ "type": "string"
18364
+ },
18365
+ "publication": {
18366
+ "additionalProperties": false,
18367
+ "properties": {
18368
+ "resolution": {
18369
+ "enum": [
18370
+ "continue_parent",
18371
+ "manual_intervention",
18372
+ "fail_parent"
18373
+ ],
18374
+ "type": "string"
18375
+ },
18376
+ "status": { "enum": ["pending", "published"], "type": "string" }
18377
+ },
18378
+ "required": ["status"],
18379
+ "type": "object"
18380
+ },
18381
+ "resultRef": {},
18382
+ "state": {
18383
+ "enum": ["completed", "failed", "cancelled"],
18384
+ "type": "string"
18385
+ }
18386
+ },
18387
+ "required": ["state", "publication"],
18388
+ "type": "object"
18389
+ },
18390
+ "revision": {
18391
+ "exclusiveMinimum": 0,
18392
+ "maximum": 9007199254740991,
18393
+ "type": "integer"
18394
+ },
18395
+ "role": {
18396
+ "maxLength": 256,
18397
+ "minLength": 1,
18398
+ "pattern": "^[A-Za-z0-9._:/-]+$",
18399
+ "type": "string"
18400
+ },
18401
+ "state": {
18402
+ "enum": [
18403
+ "requested",
18404
+ "dispatched",
18405
+ "running",
18406
+ "awaiting_input",
18407
+ "completed",
18408
+ "failed",
18409
+ "cancelled",
18410
+ "manual_intervention"
18411
+ ],
18412
+ "type": "string"
18413
+ },
18414
+ "stopRequested": { "type": "boolean" },
18415
+ "updatedAt": {
18416
+ "format": "date-time",
18417
+ "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))$",
18418
+ "type": "string"
18419
+ }
18420
+ },
18421
+ "required": [
18422
+ "delegationId",
18423
+ "childExecutionId",
18424
+ "role",
18425
+ "state",
18426
+ "awaitingInput",
18427
+ "stopRequested",
18428
+ "acceptedAt",
18429
+ "updatedAt",
18430
+ "revision"
18431
+ ],
18432
+ "type": "object"
18433
+ },
18434
+ "dispatchId": { "pattern": "^dispatch_[a-f0-9]{32}$", "type": "string" },
18435
+ "executionId": {},
18436
+ "intentId": {
18437
+ "format": "uuid",
18438
+ "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)$",
18439
+ "type": "string"
18440
+ },
18441
+ "observedTarget": {
18442
+ "additionalProperties": false,
18443
+ "properties": {
18444
+ "generation": {
18445
+ "additionalProperties": false,
18446
+ "properties": {
18447
+ "attemptId": {},
18448
+ "inferenceId": {
18449
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,255}$",
18450
+ "type": "string"
18451
+ },
18452
+ "inferenceKey": {
18453
+ "maxLength": 8192,
18454
+ "minLength": 1,
18455
+ "type": "string"
18456
+ },
18457
+ "schemaVersion": {
18458
+ "const": "runtime-observed-generation/v1",
18459
+ "type": "string"
18460
+ },
18461
+ "turnKey": { "maxLength": 4096, "minLength": 1, "type": "string" }
18462
+ },
18463
+ "required": [
18464
+ "schemaVersion",
18465
+ "attemptId",
18466
+ "turnKey",
18467
+ "inferenceId",
18468
+ "inferenceKey"
18469
+ ],
18470
+ "type": "object"
18471
+ },
18472
+ "sessionId": { "maxLength": 256, "minLength": 1, "type": "string" },
18473
+ "taskId": { "maxLength": 256, "minLength": 1, "type": "string" }
18474
+ },
18475
+ "readOnly": true,
18476
+ "required": ["sessionId", "taskId"],
18477
+ "type": "object"
18478
+ },
18479
+ "requestedTarget": {
18480
+ "additionalProperties": false,
18481
+ "properties": {
18482
+ "generation": {
18483
+ "maximum": 9007199254740991,
18484
+ "minimum": 0,
18485
+ "type": "integer"
18486
+ },
18487
+ "sessionId": { "maxLength": 256, "minLength": 1, "type": "string" },
18488
+ "taskId": { "maxLength": 256, "minLength": 1, "type": "string" }
18489
+ },
18490
+ "readOnly": true,
18491
+ "required": ["sessionId", "taskId", "generation"],
18492
+ "type": "object"
18493
+ },
18494
+ "runtimeSessionId": {},
18495
+ "schemaVersion": { "const": "pi-lead-dispatch/v1", "type": "string" },
18496
+ "target": {
18497
+ "anyOf": [
18498
+ {
18499
+ "additionalProperties": false,
18500
+ "properties": {
18501
+ "nativeSessionId": {},
18502
+ "nativeState": {
18503
+ "enum": [
18504
+ "starting",
18505
+ "running",
18506
+ "awaiting_input",
18507
+ "cancelling",
18508
+ "completed",
18509
+ "failed",
18510
+ "cancelled",
18511
+ "timed_out",
18512
+ "unknown"
18513
+ ],
18514
+ "type": "string"
18515
+ },
18516
+ "nativeTaskId": {},
18517
+ "observedAt": {
18518
+ "format": "date-time",
18519
+ "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))$",
18520
+ "type": "string"
18521
+ },
18522
+ "observedGeneration": {
18523
+ "additionalProperties": false,
18524
+ "properties": {
18525
+ "attemptId": {},
18526
+ "inferenceId": {
18527
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,255}$",
18528
+ "type": "string"
18529
+ },
18530
+ "inferenceKey": {
18531
+ "maxLength": 8192,
18532
+ "minLength": 1,
18533
+ "type": "string"
18534
+ },
18535
+ "schemaVersion": {
18536
+ "const": "runtime-observed-generation/v1",
18537
+ "type": "string"
18538
+ },
18539
+ "turnKey": {
18540
+ "maxLength": 4096,
18541
+ "minLength": 1,
18542
+ "type": "string"
18543
+ }
18544
+ },
18545
+ "required": [
18546
+ "schemaVersion",
18547
+ "attemptId",
18548
+ "turnKey",
18549
+ "inferenceId",
18550
+ "inferenceKey"
18551
+ ],
18552
+ "type": "object"
18553
+ },
18554
+ "runtimeConnectionId": {},
18555
+ "source": { "const": "control_plane_reported", "type": "string" }
18556
+ },
18557
+ "required": [
18558
+ "source",
18559
+ "runtimeConnectionId",
18560
+ "nativeSessionId",
18561
+ "nativeTaskId",
18562
+ "nativeState",
18563
+ "observedAt"
18564
+ ],
18565
+ "type": "object"
18566
+ },
18567
+ { "type": "null" }
18568
+ ]
18569
+ },
18570
+ "unavailableReason": {
18571
+ "enum": ["NOT_STARTED", "NOT_CONFIGURED", "UNAVAILABLE"],
18572
+ "type": "string"
18573
+ }
18574
+ },
18575
+ "required": [
18576
+ "schemaVersion",
18577
+ "dispatchId",
18578
+ "intentId",
18579
+ "executionId",
18580
+ "attemptId",
18581
+ "runtimeSessionId",
18582
+ "child",
18583
+ "target"
18584
+ ],
18585
+ "type": "object"
18586
+ },
18587
+ "requestId": {}
18588
+ },
18589
+ "required": ["contractVersion", "requestId", "correlation", "data"],
18590
+ "type": "object"
18591
+ }
18592
+ }
18593
+ },
18594
+ "description": "Successful response"
18595
+ },
18596
+ "default": {
18597
+ "content": {
18598
+ "application/json": {
18599
+ "schema": {
18600
+ "additionalProperties": false,
18601
+ "properties": {
18602
+ "contractVersion": {
18603
+ "additionalProperties": false,
18604
+ "properties": {
18605
+ "major": {
18606
+ "exclusiveMinimum": 0,
18607
+ "maximum": 9007199254740991,
18608
+ "type": "integer"
18609
+ },
18610
+ "minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
18611
+ },
18612
+ "required": ["major", "minor"],
18613
+ "type": "object"
18614
+ },
18615
+ "correlation": {
18616
+ "additionalProperties": false,
18617
+ "properties": {
18618
+ "causationCommandId": {},
18619
+ "parentEventId": {},
18620
+ "traceId": {}
18621
+ },
18622
+ "required": ["traceId"],
18623
+ "type": "object"
18624
+ },
18625
+ "error": {
18626
+ "additionalProperties": false,
18627
+ "properties": {
18628
+ "class": {
18629
+ "enum": [
18630
+ "validation",
18631
+ "authentication",
18632
+ "authorization",
18633
+ "conflict",
18634
+ "stale_reference",
18635
+ "capability_mismatch",
18636
+ "runtime_unavailable",
18637
+ "internal"
18638
+ ],
18639
+ "type": "string"
18640
+ },
18641
+ "code": {
18642
+ "maxLength": 96,
18643
+ "minLength": 1,
18644
+ "pattern": "^[A-Z][A-Z0-9_]*$",
18645
+ "type": "string"
18646
+ },
18647
+ "details": {
18648
+ "additionalProperties": {},
18649
+ "propertyNames": { "maxLength": 64, "type": "string" },
18650
+ "type": "object"
18651
+ },
18652
+ "message": { "maxLength": 512, "minLength": 1, "type": "string" },
18653
+ "remediation": { "maxLength": 256, "minLength": 1, "type": "string" },
18654
+ "retryable": { "type": "boolean" },
18655
+ "source": {
18656
+ "enum": [
18657
+ "client",
18658
+ "auth",
18659
+ "policy",
18660
+ "runtime",
18661
+ "provider",
18662
+ "persistence",
18663
+ "workflow",
18664
+ "system"
18665
+ ],
18666
+ "type": "string"
18667
+ }
18668
+ },
18669
+ "required": ["class", "code", "message", "retryable", "source"],
18670
+ "type": "object"
18671
+ },
18672
+ "requestId": {}
18673
+ },
18674
+ "required": ["contractVersion", "requestId", "correlation", "error"],
18675
+ "type": "object"
18676
+ }
18677
+ }
18678
+ },
18679
+ "description": "Normalized error response"
18680
+ }
18681
+ },
18682
+ "security": [{ "serviceBearer": [] }]
18683
+ }
18684
+ },
18221
18685
  "/v3/pi-durable/lead-dispatches/children": {
18222
18686
  "post": {
18223
18687
  "operationId": "pi-durable.lead.children",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adea-ai/sdk",
3
- "version": "1.22.1",
3
+ "version": "1.23.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",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@adea-ai/contracts": "^1.23.1",
54
- "@adea-ai/runtime-sdk": "^1.17.2",
54
+ "@adea-ai/runtime-sdk": "^1.18.0",
55
55
  "zod": "4.6.6"
56
56
  },
57
57
  "engines": {