@adea-ai/sdk 1.26.0 → 1.27.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 +2 -1
- package/dist/client.js +3 -0
- package/dist/operations.d.ts +9 -1
- package/dist/operations.js +9 -1
- package/openapi/control-plane.v3.json +398 -0
- package/package.json +3 -3
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, 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, 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>;
|
|
@@ -95,5 +95,6 @@ export declare class ControlPlaneClient {
|
|
|
95
95
|
getPiDurableLeadChildren(input: PiDurableLeadChildrenRequest): Promise<PiDurableLeadChildrenResponse>;
|
|
96
96
|
getPiDurableLeadChildTarget(input: PiDurableLeadChildTargetRequest): Promise<PiDurableLeadChildTargetResponse>;
|
|
97
97
|
cancelPiDurableLead(input: PiDurableLeadCancelRequest): Promise<PiDurableLeadCancelResponse>;
|
|
98
|
+
cancelPiDurableLeadChild(input: PiDurableLeadChildCancelRequest): Promise<PiDurableLeadChildCancelResponse>;
|
|
98
99
|
}
|
|
99
100
|
export {};
|
package/dist/client.js
CHANGED
|
@@ -231,6 +231,9 @@ export class ControlPlaneClient {
|
|
|
231
231
|
cancelPiDurableLead(input) {
|
|
232
232
|
return this.#request(ControlApiOperations.cancelPiDurableLead, input);
|
|
233
233
|
}
|
|
234
|
+
cancelPiDurableLeadChild(input) {
|
|
235
|
+
return this.#request(ControlApiOperations.cancelPiDurableLeadChild, input);
|
|
236
|
+
}
|
|
234
237
|
async #request(operation, input) {
|
|
235
238
|
const request = operation.requestSchema.parse(input);
|
|
236
239
|
const credential = await resolveCredential(this.#credential);
|
package/dist/operations.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PiDurableLeadPrepareRequestSchema, PiDurableLeadPrepareResponseSchema, PiDurableLeadLookupRequestSchema, PiDurableLeadLookupResponseSchema, PiDurableLeadDispatchRequestSchema, PiDurableLeadDispatchResponseSchema, PiDurableLeadStatusRequestSchema, PiDurableLeadStatusResponseSchema, PiDurableLeadChildrenRequestSchema, PiDurableLeadChildrenResponseSchema, PiDurableLeadChildTargetRequestSchema, PiDurableLeadChildTargetResponseSchema, 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, PiDurableLeadChildCancelRequestSchema, PiDurableLeadChildCancelResponseSchema, 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<{
|
|
@@ -398,5 +398,13 @@ export declare const ControlApiOperations: Readonly<{
|
|
|
398
398
|
readonly responseSchema: typeof PiDurableLeadCancelResponseSchema;
|
|
399
399
|
readonly responseStatus: 202;
|
|
400
400
|
};
|
|
401
|
+
readonly cancelPiDurableLeadChild: {
|
|
402
|
+
readonly operation: 'pi-durable.lead.child-cancel';
|
|
403
|
+
readonly method: 'POST';
|
|
404
|
+
readonly path: '/v3/pi-durable/lead-dispatches/child-cancel';
|
|
405
|
+
readonly requestSchema: typeof PiDurableLeadChildCancelRequestSchema;
|
|
406
|
+
readonly responseSchema: typeof PiDurableLeadChildCancelResponseSchema;
|
|
407
|
+
readonly responseStatus: 202;
|
|
408
|
+
};
|
|
401
409
|
}>;
|
|
402
410
|
export type ControlApiOperationName = keyof typeof ControlApiOperations;
|
package/dist/operations.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PiDurableLeadPrepareRequestSchema, PiDurableLeadPrepareResponseSchema, PiDurableLeadLookupRequestSchema, PiDurableLeadLookupResponseSchema, PiDurableLeadDispatchRequestSchema, PiDurableLeadDispatchResponseSchema, PiDurableLeadStatusRequestSchema, PiDurableLeadStatusResponseSchema, PiDurableLeadChildrenRequestSchema, PiDurableLeadChildrenResponseSchema, PiDurableLeadChildTargetRequestSchema, PiDurableLeadChildTargetResponseSchema, 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, PiDurableLeadChildCancelRequestSchema, PiDurableLeadChildCancelResponseSchema, 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({
|
|
@@ -398,4 +398,12 @@ export const ControlApiOperations = Object.freeze({
|
|
|
398
398
|
responseSchema: PiDurableLeadCancelResponseSchema,
|
|
399
399
|
responseStatus: 202,
|
|
400
400
|
},
|
|
401
|
+
cancelPiDurableLeadChild: {
|
|
402
|
+
operation: 'pi-durable.lead.child-cancel',
|
|
403
|
+
method: 'POST',
|
|
404
|
+
path: '/v3/pi-durable/lead-dispatches/child-cancel',
|
|
405
|
+
requestSchema: PiDurableLeadChildCancelRequestSchema,
|
|
406
|
+
responseSchema: PiDurableLeadChildCancelResponseSchema,
|
|
407
|
+
responseStatus: 202,
|
|
408
|
+
},
|
|
401
409
|
});
|
|
@@ -18218,6 +18218,404 @@
|
|
|
18218
18218
|
"security": [{ "serviceBearer": [] }]
|
|
18219
18219
|
}
|
|
18220
18220
|
},
|
|
18221
|
+
"/v3/pi-durable/lead-dispatches/child-cancel": {
|
|
18222
|
+
"post": {
|
|
18223
|
+
"operationId": "pi-durable.lead.child-cancel",
|
|
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
|
+
"commandId": { "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
18244
|
+
"contractVersion": {
|
|
18245
|
+
"additionalProperties": false,
|
|
18246
|
+
"properties": {
|
|
18247
|
+
"major": {
|
|
18248
|
+
"exclusiveMinimum": 0,
|
|
18249
|
+
"maximum": 9007199254740991,
|
|
18250
|
+
"type": "integer"
|
|
18251
|
+
},
|
|
18252
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
18253
|
+
},
|
|
18254
|
+
"required": ["major", "minor"],
|
|
18255
|
+
"type": "object"
|
|
18256
|
+
},
|
|
18257
|
+
"correlation": {
|
|
18258
|
+
"additionalProperties": false,
|
|
18259
|
+
"properties": {
|
|
18260
|
+
"causationCommandId": {
|
|
18261
|
+
"pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
18262
|
+
"type": "string"
|
|
18263
|
+
},
|
|
18264
|
+
"parentEventId": {
|
|
18265
|
+
"pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
18266
|
+
"type": "string"
|
|
18267
|
+
},
|
|
18268
|
+
"traceId": { "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
|
|
18269
|
+
},
|
|
18270
|
+
"required": ["traceId"],
|
|
18271
|
+
"type": "object"
|
|
18272
|
+
},
|
|
18273
|
+
"idempotencyKey": {
|
|
18274
|
+
"maxLength": 128,
|
|
18275
|
+
"minLength": 16,
|
|
18276
|
+
"pattern": "^[A-Za-z0-9._:-]+$",
|
|
18277
|
+
"type": "string"
|
|
18278
|
+
},
|
|
18279
|
+
"issuedAt": {
|
|
18280
|
+
"format": "date-time",
|
|
18281
|
+
"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))$",
|
|
18282
|
+
"type": "string"
|
|
18283
|
+
},
|
|
18284
|
+
"operation": { "const": "pi-durable.lead.child-cancel", "type": "string" },
|
|
18285
|
+
"payload": {
|
|
18286
|
+
"additionalProperties": false,
|
|
18287
|
+
"properties": {
|
|
18288
|
+
"delegationId": {
|
|
18289
|
+
"pattern": "^dlg_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
18290
|
+
"type": "string"
|
|
18291
|
+
},
|
|
18292
|
+
"dispatchId": { "pattern": "^dispatch_[a-f0-9]{32}$", "type": "string" }
|
|
18293
|
+
},
|
|
18294
|
+
"required": ["dispatchId", "delegationId"],
|
|
18295
|
+
"type": "object"
|
|
18296
|
+
},
|
|
18297
|
+
"payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
|
|
18298
|
+
"projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
18299
|
+
"requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
18300
|
+
"workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
|
|
18301
|
+
},
|
|
18302
|
+
"required": [
|
|
18303
|
+
"caller",
|
|
18304
|
+
"contractVersion",
|
|
18305
|
+
"requestId",
|
|
18306
|
+
"workspaceId",
|
|
18307
|
+
"correlation",
|
|
18308
|
+
"commandId",
|
|
18309
|
+
"idempotencyKey",
|
|
18310
|
+
"payloadHash",
|
|
18311
|
+
"operation",
|
|
18312
|
+
"issuedAt",
|
|
18313
|
+
"payload"
|
|
18314
|
+
],
|
|
18315
|
+
"type": "object"
|
|
18316
|
+
}
|
|
18317
|
+
}
|
|
18318
|
+
},
|
|
18319
|
+
"required": true
|
|
18320
|
+
},
|
|
18321
|
+
"responses": {
|
|
18322
|
+
"202": {
|
|
18323
|
+
"content": {
|
|
18324
|
+
"application/json": {
|
|
18325
|
+
"schema": {
|
|
18326
|
+
"additionalProperties": false,
|
|
18327
|
+
"properties": {
|
|
18328
|
+
"contractVersion": {
|
|
18329
|
+
"additionalProperties": false,
|
|
18330
|
+
"properties": {
|
|
18331
|
+
"major": {
|
|
18332
|
+
"exclusiveMinimum": 0,
|
|
18333
|
+
"maximum": 9007199254740991,
|
|
18334
|
+
"type": "integer"
|
|
18335
|
+
},
|
|
18336
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
18337
|
+
},
|
|
18338
|
+
"required": ["major", "minor"],
|
|
18339
|
+
"type": "object"
|
|
18340
|
+
},
|
|
18341
|
+
"correlation": {
|
|
18342
|
+
"additionalProperties": false,
|
|
18343
|
+
"properties": {
|
|
18344
|
+
"causationCommandId": {},
|
|
18345
|
+
"parentEventId": {},
|
|
18346
|
+
"traceId": {}
|
|
18347
|
+
},
|
|
18348
|
+
"required": ["traceId"],
|
|
18349
|
+
"type": "object"
|
|
18350
|
+
},
|
|
18351
|
+
"data": {
|
|
18352
|
+
"additionalProperties": false,
|
|
18353
|
+
"properties": {
|
|
18354
|
+
"attemptId": {},
|
|
18355
|
+
"attributed": { "type": "boolean" },
|
|
18356
|
+
"child": {
|
|
18357
|
+
"additionalProperties": false,
|
|
18358
|
+
"properties": {
|
|
18359
|
+
"acceptedAt": {
|
|
18360
|
+
"format": "date-time",
|
|
18361
|
+
"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))$",
|
|
18362
|
+
"type": "string"
|
|
18363
|
+
},
|
|
18364
|
+
"awaitingInput": { "type": "boolean" },
|
|
18365
|
+
"childAttemptId": {},
|
|
18366
|
+
"childExecutionId": {},
|
|
18367
|
+
"delegationId": {},
|
|
18368
|
+
"outcome": {
|
|
18369
|
+
"additionalProperties": false,
|
|
18370
|
+
"properties": {
|
|
18371
|
+
"failureCode": {
|
|
18372
|
+
"maxLength": 256,
|
|
18373
|
+
"minLength": 1,
|
|
18374
|
+
"pattern": "^[A-Za-z0-9._:/-]+$",
|
|
18375
|
+
"type": "string"
|
|
18376
|
+
},
|
|
18377
|
+
"publication": {
|
|
18378
|
+
"additionalProperties": false,
|
|
18379
|
+
"properties": {
|
|
18380
|
+
"resolution": {
|
|
18381
|
+
"enum": [
|
|
18382
|
+
"continue_parent",
|
|
18383
|
+
"manual_intervention",
|
|
18384
|
+
"fail_parent"
|
|
18385
|
+
],
|
|
18386
|
+
"type": "string"
|
|
18387
|
+
},
|
|
18388
|
+
"status": { "enum": ["pending", "published"], "type": "string" }
|
|
18389
|
+
},
|
|
18390
|
+
"required": ["status"],
|
|
18391
|
+
"type": "object"
|
|
18392
|
+
},
|
|
18393
|
+
"resultRef": {},
|
|
18394
|
+
"state": {
|
|
18395
|
+
"enum": ["completed", "failed", "cancelled"],
|
|
18396
|
+
"type": "string"
|
|
18397
|
+
}
|
|
18398
|
+
},
|
|
18399
|
+
"required": ["state", "publication"],
|
|
18400
|
+
"type": "object"
|
|
18401
|
+
},
|
|
18402
|
+
"revision": {
|
|
18403
|
+
"exclusiveMinimum": 0,
|
|
18404
|
+
"maximum": 9007199254740991,
|
|
18405
|
+
"type": "integer"
|
|
18406
|
+
},
|
|
18407
|
+
"role": {
|
|
18408
|
+
"maxLength": 256,
|
|
18409
|
+
"minLength": 1,
|
|
18410
|
+
"pattern": "^[A-Za-z0-9._:/-]+$",
|
|
18411
|
+
"type": "string"
|
|
18412
|
+
},
|
|
18413
|
+
"state": {
|
|
18414
|
+
"enum": [
|
|
18415
|
+
"requested",
|
|
18416
|
+
"dispatched",
|
|
18417
|
+
"running",
|
|
18418
|
+
"awaiting_input",
|
|
18419
|
+
"completed",
|
|
18420
|
+
"failed",
|
|
18421
|
+
"cancelled",
|
|
18422
|
+
"manual_intervention"
|
|
18423
|
+
],
|
|
18424
|
+
"type": "string"
|
|
18425
|
+
},
|
|
18426
|
+
"stopRequested": { "type": "boolean" },
|
|
18427
|
+
"updatedAt": {
|
|
18428
|
+
"format": "date-time",
|
|
18429
|
+
"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))$",
|
|
18430
|
+
"type": "string"
|
|
18431
|
+
}
|
|
18432
|
+
},
|
|
18433
|
+
"required": [
|
|
18434
|
+
"delegationId",
|
|
18435
|
+
"childExecutionId",
|
|
18436
|
+
"role",
|
|
18437
|
+
"state",
|
|
18438
|
+
"awaitingInput",
|
|
18439
|
+
"stopRequested",
|
|
18440
|
+
"acceptedAt",
|
|
18441
|
+
"updatedAt",
|
|
18442
|
+
"revision"
|
|
18443
|
+
],
|
|
18444
|
+
"type": "object"
|
|
18445
|
+
},
|
|
18446
|
+
"dispatchId": { "pattern": "^dispatch_[a-f0-9]{32}$", "type": "string" },
|
|
18447
|
+
"executionId": {},
|
|
18448
|
+
"intentId": {
|
|
18449
|
+
"format": "uuid",
|
|
18450
|
+
"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)$",
|
|
18451
|
+
"type": "string"
|
|
18452
|
+
},
|
|
18453
|
+
"observedTarget": {
|
|
18454
|
+
"additionalProperties": false,
|
|
18455
|
+
"properties": {
|
|
18456
|
+
"generation": {
|
|
18457
|
+
"additionalProperties": false,
|
|
18458
|
+
"properties": {
|
|
18459
|
+
"attemptId": {},
|
|
18460
|
+
"inferenceId": {
|
|
18461
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,255}$",
|
|
18462
|
+
"type": "string"
|
|
18463
|
+
},
|
|
18464
|
+
"inferenceKey": {
|
|
18465
|
+
"maxLength": 8192,
|
|
18466
|
+
"minLength": 1,
|
|
18467
|
+
"type": "string"
|
|
18468
|
+
},
|
|
18469
|
+
"schemaVersion": {
|
|
18470
|
+
"const": "runtime-observed-generation/v1",
|
|
18471
|
+
"type": "string"
|
|
18472
|
+
},
|
|
18473
|
+
"turnKey": { "maxLength": 4096, "minLength": 1, "type": "string" }
|
|
18474
|
+
},
|
|
18475
|
+
"required": [
|
|
18476
|
+
"schemaVersion",
|
|
18477
|
+
"attemptId",
|
|
18478
|
+
"turnKey",
|
|
18479
|
+
"inferenceId",
|
|
18480
|
+
"inferenceKey"
|
|
18481
|
+
],
|
|
18482
|
+
"type": "object"
|
|
18483
|
+
},
|
|
18484
|
+
"sessionId": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
18485
|
+
"taskId": { "maxLength": 256, "minLength": 1, "type": "string" }
|
|
18486
|
+
},
|
|
18487
|
+
"readOnly": true,
|
|
18488
|
+
"required": ["sessionId", "taskId"],
|
|
18489
|
+
"type": "object"
|
|
18490
|
+
},
|
|
18491
|
+
"requestedTarget": {
|
|
18492
|
+
"additionalProperties": false,
|
|
18493
|
+
"properties": {
|
|
18494
|
+
"generation": {
|
|
18495
|
+
"maximum": 9007199254740991,
|
|
18496
|
+
"minimum": 0,
|
|
18497
|
+
"type": "integer"
|
|
18498
|
+
},
|
|
18499
|
+
"sessionId": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
18500
|
+
"taskId": { "maxLength": 256, "minLength": 1, "type": "string" }
|
|
18501
|
+
},
|
|
18502
|
+
"readOnly": true,
|
|
18503
|
+
"required": ["sessionId", "taskId", "generation"],
|
|
18504
|
+
"type": "object"
|
|
18505
|
+
},
|
|
18506
|
+
"runtimeSessionId": {},
|
|
18507
|
+
"schemaVersion": { "const": "pi-lead-dispatch/v1", "type": "string" }
|
|
18508
|
+
},
|
|
18509
|
+
"required": [
|
|
18510
|
+
"schemaVersion",
|
|
18511
|
+
"dispatchId",
|
|
18512
|
+
"intentId",
|
|
18513
|
+
"executionId",
|
|
18514
|
+
"attemptId",
|
|
18515
|
+
"runtimeSessionId",
|
|
18516
|
+
"child",
|
|
18517
|
+
"attributed"
|
|
18518
|
+
],
|
|
18519
|
+
"type": "object"
|
|
18520
|
+
},
|
|
18521
|
+
"requestId": {}
|
|
18522
|
+
},
|
|
18523
|
+
"required": ["contractVersion", "requestId", "correlation", "data"],
|
|
18524
|
+
"type": "object"
|
|
18525
|
+
}
|
|
18526
|
+
}
|
|
18527
|
+
},
|
|
18528
|
+
"description": "Successful response"
|
|
18529
|
+
},
|
|
18530
|
+
"default": {
|
|
18531
|
+
"content": {
|
|
18532
|
+
"application/json": {
|
|
18533
|
+
"schema": {
|
|
18534
|
+
"additionalProperties": false,
|
|
18535
|
+
"properties": {
|
|
18536
|
+
"contractVersion": {
|
|
18537
|
+
"additionalProperties": false,
|
|
18538
|
+
"properties": {
|
|
18539
|
+
"major": {
|
|
18540
|
+
"exclusiveMinimum": 0,
|
|
18541
|
+
"maximum": 9007199254740991,
|
|
18542
|
+
"type": "integer"
|
|
18543
|
+
},
|
|
18544
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
18545
|
+
},
|
|
18546
|
+
"required": ["major", "minor"],
|
|
18547
|
+
"type": "object"
|
|
18548
|
+
},
|
|
18549
|
+
"correlation": {
|
|
18550
|
+
"additionalProperties": false,
|
|
18551
|
+
"properties": {
|
|
18552
|
+
"causationCommandId": {},
|
|
18553
|
+
"parentEventId": {},
|
|
18554
|
+
"traceId": {}
|
|
18555
|
+
},
|
|
18556
|
+
"required": ["traceId"],
|
|
18557
|
+
"type": "object"
|
|
18558
|
+
},
|
|
18559
|
+
"error": {
|
|
18560
|
+
"additionalProperties": false,
|
|
18561
|
+
"properties": {
|
|
18562
|
+
"class": {
|
|
18563
|
+
"enum": [
|
|
18564
|
+
"validation",
|
|
18565
|
+
"authentication",
|
|
18566
|
+
"authorization",
|
|
18567
|
+
"conflict",
|
|
18568
|
+
"stale_reference",
|
|
18569
|
+
"capability_mismatch",
|
|
18570
|
+
"runtime_unavailable",
|
|
18571
|
+
"internal"
|
|
18572
|
+
],
|
|
18573
|
+
"type": "string"
|
|
18574
|
+
},
|
|
18575
|
+
"code": {
|
|
18576
|
+
"maxLength": 96,
|
|
18577
|
+
"minLength": 1,
|
|
18578
|
+
"pattern": "^[A-Z][A-Z0-9_]*$",
|
|
18579
|
+
"type": "string"
|
|
18580
|
+
},
|
|
18581
|
+
"details": {
|
|
18582
|
+
"additionalProperties": {},
|
|
18583
|
+
"propertyNames": { "maxLength": 64, "type": "string" },
|
|
18584
|
+
"type": "object"
|
|
18585
|
+
},
|
|
18586
|
+
"message": { "maxLength": 512, "minLength": 1, "type": "string" },
|
|
18587
|
+
"remediation": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
18588
|
+
"retryable": { "type": "boolean" },
|
|
18589
|
+
"source": {
|
|
18590
|
+
"enum": [
|
|
18591
|
+
"client",
|
|
18592
|
+
"auth",
|
|
18593
|
+
"policy",
|
|
18594
|
+
"runtime",
|
|
18595
|
+
"provider",
|
|
18596
|
+
"persistence",
|
|
18597
|
+
"workflow",
|
|
18598
|
+
"system"
|
|
18599
|
+
],
|
|
18600
|
+
"type": "string"
|
|
18601
|
+
}
|
|
18602
|
+
},
|
|
18603
|
+
"required": ["class", "code", "message", "retryable", "source"],
|
|
18604
|
+
"type": "object"
|
|
18605
|
+
},
|
|
18606
|
+
"requestId": {}
|
|
18607
|
+
},
|
|
18608
|
+
"required": ["contractVersion", "requestId", "correlation", "error"],
|
|
18609
|
+
"type": "object"
|
|
18610
|
+
}
|
|
18611
|
+
}
|
|
18612
|
+
},
|
|
18613
|
+
"description": "Normalized error response"
|
|
18614
|
+
}
|
|
18615
|
+
},
|
|
18616
|
+
"security": [{ "serviceBearer": [] }]
|
|
18617
|
+
}
|
|
18618
|
+
},
|
|
18221
18619
|
"/v3/pi-durable/lead-dispatches/child-target": {
|
|
18222
18620
|
"post": {
|
|
18223
18621
|
"operationId": "pi-durable.lead.child-target",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adea-ai/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.27.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",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"test": "bun test src/*.test.mjs"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@adea-ai/contracts": "^1.26.
|
|
54
|
-
"@adea-ai/runtime-sdk": "^1.
|
|
53
|
+
"@adea-ai/contracts": "^1.26.1",
|
|
54
|
+
"@adea-ai/runtime-sdk": "^1.22.0",
|
|
55
55
|
"zod": "4.6.6"
|
|
56
56
|
},
|
|
57
57
|
"engines": {
|