@adea-ai/sdk 1.22.1 → 1.24.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 -5
- package/dist/client.js +8 -5
- package/dist/operations.d.ts +8 -1
- package/dist/operations.js +8 -1
- package/openapi/control-plane.v3.json +556 -1
- 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, 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;
|
package/dist/operations.d.ts
CHANGED
|
@@ -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';
|
package/dist/operations.js
CHANGED
|
@@ -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',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"openapi": "3.1.0",
|
|
3
|
-
"info": { "title": "Agent HQ Control Plane API", "version": "3.
|
|
3
|
+
"info": { "title": "Agent HQ Control Plane API", "version": "3.2.0" },
|
|
4
4
|
"paths": {
|
|
5
5
|
"/v1/authentication/verify": {
|
|
6
6
|
"post": {
|
|
@@ -18218,6 +18218,561 @@
|
|
|
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
|
+
"allOf": [
|
|
18343
|
+
{
|
|
18344
|
+
"anyOf": [
|
|
18345
|
+
{
|
|
18346
|
+
"properties": {
|
|
18347
|
+
"remoteSessionReference": false,
|
|
18348
|
+
"remoteSessionReferenceUnavailableReason": false
|
|
18349
|
+
},
|
|
18350
|
+
"type": "object"
|
|
18351
|
+
},
|
|
18352
|
+
{
|
|
18353
|
+
"properties": {
|
|
18354
|
+
"remoteSessionReference": { "type": "null" },
|
|
18355
|
+
"remoteSessionReferenceUnavailableReason": {
|
|
18356
|
+
"enum": ["NOT_STARTED", "NOT_CONFIGURED", "UNAVAILABLE"],
|
|
18357
|
+
"type": "string"
|
|
18358
|
+
}
|
|
18359
|
+
},
|
|
18360
|
+
"required": [
|
|
18361
|
+
"remoteSessionReference",
|
|
18362
|
+
"remoteSessionReferenceUnavailableReason"
|
|
18363
|
+
],
|
|
18364
|
+
"type": "object"
|
|
18365
|
+
},
|
|
18366
|
+
{
|
|
18367
|
+
"properties": {
|
|
18368
|
+
"child": {
|
|
18369
|
+
"properties": {
|
|
18370
|
+
"childAttemptId": {
|
|
18371
|
+
"pattern": "^att_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
18372
|
+
"type": "string"
|
|
18373
|
+
}
|
|
18374
|
+
},
|
|
18375
|
+
"required": ["childAttemptId"],
|
|
18376
|
+
"type": "object"
|
|
18377
|
+
},
|
|
18378
|
+
"remoteSessionReference": { "type": "object" },
|
|
18379
|
+
"remoteSessionReferenceUnavailableReason": false
|
|
18380
|
+
},
|
|
18381
|
+
"required": ["remoteSessionReference"],
|
|
18382
|
+
"type": "object"
|
|
18383
|
+
}
|
|
18384
|
+
]
|
|
18385
|
+
}
|
|
18386
|
+
],
|
|
18387
|
+
"properties": {
|
|
18388
|
+
"attemptId": {},
|
|
18389
|
+
"child": {
|
|
18390
|
+
"additionalProperties": false,
|
|
18391
|
+
"properties": {
|
|
18392
|
+
"acceptedAt": {
|
|
18393
|
+
"format": "date-time",
|
|
18394
|
+
"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))$",
|
|
18395
|
+
"type": "string"
|
|
18396
|
+
},
|
|
18397
|
+
"awaitingInput": { "type": "boolean" },
|
|
18398
|
+
"childAttemptId": {},
|
|
18399
|
+
"childExecutionId": {},
|
|
18400
|
+
"delegationId": {},
|
|
18401
|
+
"outcome": {
|
|
18402
|
+
"additionalProperties": false,
|
|
18403
|
+
"properties": {
|
|
18404
|
+
"failureCode": {
|
|
18405
|
+
"maxLength": 256,
|
|
18406
|
+
"minLength": 1,
|
|
18407
|
+
"pattern": "^[A-Za-z0-9._:/-]+$",
|
|
18408
|
+
"type": "string"
|
|
18409
|
+
},
|
|
18410
|
+
"publication": {
|
|
18411
|
+
"additionalProperties": false,
|
|
18412
|
+
"properties": {
|
|
18413
|
+
"resolution": {
|
|
18414
|
+
"enum": [
|
|
18415
|
+
"continue_parent",
|
|
18416
|
+
"manual_intervention",
|
|
18417
|
+
"fail_parent"
|
|
18418
|
+
],
|
|
18419
|
+
"type": "string"
|
|
18420
|
+
},
|
|
18421
|
+
"status": { "enum": ["pending", "published"], "type": "string" }
|
|
18422
|
+
},
|
|
18423
|
+
"required": ["status"],
|
|
18424
|
+
"type": "object"
|
|
18425
|
+
},
|
|
18426
|
+
"resultRef": {},
|
|
18427
|
+
"state": {
|
|
18428
|
+
"enum": ["completed", "failed", "cancelled"],
|
|
18429
|
+
"type": "string"
|
|
18430
|
+
}
|
|
18431
|
+
},
|
|
18432
|
+
"required": ["state", "publication"],
|
|
18433
|
+
"type": "object"
|
|
18434
|
+
},
|
|
18435
|
+
"revision": {
|
|
18436
|
+
"exclusiveMinimum": 0,
|
|
18437
|
+
"maximum": 9007199254740991,
|
|
18438
|
+
"type": "integer"
|
|
18439
|
+
},
|
|
18440
|
+
"role": {
|
|
18441
|
+
"maxLength": 256,
|
|
18442
|
+
"minLength": 1,
|
|
18443
|
+
"pattern": "^[A-Za-z0-9._:/-]+$",
|
|
18444
|
+
"type": "string"
|
|
18445
|
+
},
|
|
18446
|
+
"state": {
|
|
18447
|
+
"enum": [
|
|
18448
|
+
"requested",
|
|
18449
|
+
"dispatched",
|
|
18450
|
+
"running",
|
|
18451
|
+
"awaiting_input",
|
|
18452
|
+
"completed",
|
|
18453
|
+
"failed",
|
|
18454
|
+
"cancelled",
|
|
18455
|
+
"manual_intervention"
|
|
18456
|
+
],
|
|
18457
|
+
"type": "string"
|
|
18458
|
+
},
|
|
18459
|
+
"stopRequested": { "type": "boolean" },
|
|
18460
|
+
"updatedAt": {
|
|
18461
|
+
"format": "date-time",
|
|
18462
|
+
"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))$",
|
|
18463
|
+
"type": "string"
|
|
18464
|
+
}
|
|
18465
|
+
},
|
|
18466
|
+
"required": [
|
|
18467
|
+
"delegationId",
|
|
18468
|
+
"childExecutionId",
|
|
18469
|
+
"role",
|
|
18470
|
+
"state",
|
|
18471
|
+
"awaitingInput",
|
|
18472
|
+
"stopRequested",
|
|
18473
|
+
"acceptedAt",
|
|
18474
|
+
"updatedAt",
|
|
18475
|
+
"revision"
|
|
18476
|
+
],
|
|
18477
|
+
"type": "object"
|
|
18478
|
+
},
|
|
18479
|
+
"dispatchId": { "pattern": "^dispatch_[a-f0-9]{32}$", "type": "string" },
|
|
18480
|
+
"executionId": {},
|
|
18481
|
+
"intentId": {
|
|
18482
|
+
"format": "uuid",
|
|
18483
|
+
"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)$",
|
|
18484
|
+
"type": "string"
|
|
18485
|
+
},
|
|
18486
|
+
"observedTarget": {
|
|
18487
|
+
"additionalProperties": false,
|
|
18488
|
+
"properties": {
|
|
18489
|
+
"generation": {
|
|
18490
|
+
"additionalProperties": false,
|
|
18491
|
+
"properties": {
|
|
18492
|
+
"attemptId": {},
|
|
18493
|
+
"inferenceId": {
|
|
18494
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,255}$",
|
|
18495
|
+
"type": "string"
|
|
18496
|
+
},
|
|
18497
|
+
"inferenceKey": {
|
|
18498
|
+
"maxLength": 8192,
|
|
18499
|
+
"minLength": 1,
|
|
18500
|
+
"type": "string"
|
|
18501
|
+
},
|
|
18502
|
+
"schemaVersion": {
|
|
18503
|
+
"const": "runtime-observed-generation/v1",
|
|
18504
|
+
"type": "string"
|
|
18505
|
+
},
|
|
18506
|
+
"turnKey": { "maxLength": 4096, "minLength": 1, "type": "string" }
|
|
18507
|
+
},
|
|
18508
|
+
"required": [
|
|
18509
|
+
"schemaVersion",
|
|
18510
|
+
"attemptId",
|
|
18511
|
+
"turnKey",
|
|
18512
|
+
"inferenceId",
|
|
18513
|
+
"inferenceKey"
|
|
18514
|
+
],
|
|
18515
|
+
"type": "object"
|
|
18516
|
+
},
|
|
18517
|
+
"sessionId": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
18518
|
+
"taskId": { "maxLength": 256, "minLength": 1, "type": "string" }
|
|
18519
|
+
},
|
|
18520
|
+
"readOnly": true,
|
|
18521
|
+
"required": ["sessionId", "taskId"],
|
|
18522
|
+
"type": "object"
|
|
18523
|
+
},
|
|
18524
|
+
"remoteSessionReference": {
|
|
18525
|
+
"anyOf": [
|
|
18526
|
+
{
|
|
18527
|
+
"additionalProperties": false,
|
|
18528
|
+
"properties": {
|
|
18529
|
+
"attachment": { "const": "unavailable", "type": "string" },
|
|
18530
|
+
"basis": {
|
|
18531
|
+
"const": "retained_native_attribution",
|
|
18532
|
+
"type": "string"
|
|
18533
|
+
},
|
|
18534
|
+
"history": { "const": "adapter_journal_only", "type": "string" },
|
|
18535
|
+
"nativeSessionId": {
|
|
18536
|
+
"pattern": "^ses_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
18537
|
+
"type": "string"
|
|
18538
|
+
},
|
|
18539
|
+
"permission": { "const": "none", "type": "string" },
|
|
18540
|
+
"runtimeConnectionId": {
|
|
18541
|
+
"pattern": "^rtc_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
18542
|
+
"type": "string"
|
|
18543
|
+
},
|
|
18544
|
+
"schemaVersion": {
|
|
18545
|
+
"const": "pi-child-remote-session-reference/v1",
|
|
18546
|
+
"type": "string"
|
|
18547
|
+
},
|
|
18548
|
+
"source": { "const": "control_plane_reported", "type": "string" }
|
|
18549
|
+
},
|
|
18550
|
+
"readOnly": true,
|
|
18551
|
+
"required": [
|
|
18552
|
+
"schemaVersion",
|
|
18553
|
+
"source",
|
|
18554
|
+
"basis",
|
|
18555
|
+
"runtimeConnectionId",
|
|
18556
|
+
"nativeSessionId",
|
|
18557
|
+
"permission",
|
|
18558
|
+
"history",
|
|
18559
|
+
"attachment"
|
|
18560
|
+
],
|
|
18561
|
+
"type": "object"
|
|
18562
|
+
},
|
|
18563
|
+
{ "type": "null" }
|
|
18564
|
+
]
|
|
18565
|
+
},
|
|
18566
|
+
"remoteSessionReferenceUnavailableReason": {
|
|
18567
|
+
"enum": ["NOT_STARTED", "NOT_CONFIGURED", "UNAVAILABLE"],
|
|
18568
|
+
"type": "string"
|
|
18569
|
+
},
|
|
18570
|
+
"requestedTarget": {
|
|
18571
|
+
"additionalProperties": false,
|
|
18572
|
+
"properties": {
|
|
18573
|
+
"generation": {
|
|
18574
|
+
"maximum": 9007199254740991,
|
|
18575
|
+
"minimum": 0,
|
|
18576
|
+
"type": "integer"
|
|
18577
|
+
},
|
|
18578
|
+
"sessionId": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
18579
|
+
"taskId": { "maxLength": 256, "minLength": 1, "type": "string" }
|
|
18580
|
+
},
|
|
18581
|
+
"readOnly": true,
|
|
18582
|
+
"required": ["sessionId", "taskId", "generation"],
|
|
18583
|
+
"type": "object"
|
|
18584
|
+
},
|
|
18585
|
+
"runtimeSessionId": {},
|
|
18586
|
+
"schemaVersion": { "const": "pi-lead-dispatch/v1", "type": "string" },
|
|
18587
|
+
"target": {
|
|
18588
|
+
"anyOf": [
|
|
18589
|
+
{
|
|
18590
|
+
"additionalProperties": false,
|
|
18591
|
+
"properties": {
|
|
18592
|
+
"nativeSessionId": {},
|
|
18593
|
+
"nativeState": {
|
|
18594
|
+
"enum": [
|
|
18595
|
+
"starting",
|
|
18596
|
+
"running",
|
|
18597
|
+
"awaiting_input",
|
|
18598
|
+
"cancelling",
|
|
18599
|
+
"completed",
|
|
18600
|
+
"failed",
|
|
18601
|
+
"cancelled",
|
|
18602
|
+
"timed_out",
|
|
18603
|
+
"unknown"
|
|
18604
|
+
],
|
|
18605
|
+
"type": "string"
|
|
18606
|
+
},
|
|
18607
|
+
"nativeTaskId": {},
|
|
18608
|
+
"observedAt": {
|
|
18609
|
+
"format": "date-time",
|
|
18610
|
+
"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))$",
|
|
18611
|
+
"type": "string"
|
|
18612
|
+
},
|
|
18613
|
+
"observedGeneration": {
|
|
18614
|
+
"additionalProperties": false,
|
|
18615
|
+
"properties": {
|
|
18616
|
+
"attemptId": {},
|
|
18617
|
+
"inferenceId": {
|
|
18618
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,255}$",
|
|
18619
|
+
"type": "string"
|
|
18620
|
+
},
|
|
18621
|
+
"inferenceKey": {
|
|
18622
|
+
"maxLength": 8192,
|
|
18623
|
+
"minLength": 1,
|
|
18624
|
+
"type": "string"
|
|
18625
|
+
},
|
|
18626
|
+
"schemaVersion": {
|
|
18627
|
+
"const": "runtime-observed-generation/v1",
|
|
18628
|
+
"type": "string"
|
|
18629
|
+
},
|
|
18630
|
+
"turnKey": {
|
|
18631
|
+
"maxLength": 4096,
|
|
18632
|
+
"minLength": 1,
|
|
18633
|
+
"type": "string"
|
|
18634
|
+
}
|
|
18635
|
+
},
|
|
18636
|
+
"required": [
|
|
18637
|
+
"schemaVersion",
|
|
18638
|
+
"attemptId",
|
|
18639
|
+
"turnKey",
|
|
18640
|
+
"inferenceId",
|
|
18641
|
+
"inferenceKey"
|
|
18642
|
+
],
|
|
18643
|
+
"type": "object"
|
|
18644
|
+
},
|
|
18645
|
+
"runtimeConnectionId": {},
|
|
18646
|
+
"source": { "const": "control_plane_reported", "type": "string" }
|
|
18647
|
+
},
|
|
18648
|
+
"required": [
|
|
18649
|
+
"source",
|
|
18650
|
+
"runtimeConnectionId",
|
|
18651
|
+
"nativeSessionId",
|
|
18652
|
+
"nativeTaskId",
|
|
18653
|
+
"nativeState",
|
|
18654
|
+
"observedAt"
|
|
18655
|
+
],
|
|
18656
|
+
"type": "object"
|
|
18657
|
+
},
|
|
18658
|
+
{ "type": "null" }
|
|
18659
|
+
]
|
|
18660
|
+
},
|
|
18661
|
+
"unavailableReason": {
|
|
18662
|
+
"enum": ["NOT_STARTED", "NOT_CONFIGURED", "UNAVAILABLE"],
|
|
18663
|
+
"type": "string"
|
|
18664
|
+
}
|
|
18665
|
+
},
|
|
18666
|
+
"required": [
|
|
18667
|
+
"schemaVersion",
|
|
18668
|
+
"dispatchId",
|
|
18669
|
+
"intentId",
|
|
18670
|
+
"executionId",
|
|
18671
|
+
"attemptId",
|
|
18672
|
+
"runtimeSessionId",
|
|
18673
|
+
"child",
|
|
18674
|
+
"target"
|
|
18675
|
+
],
|
|
18676
|
+
"type": "object"
|
|
18677
|
+
},
|
|
18678
|
+
"requestId": {}
|
|
18679
|
+
},
|
|
18680
|
+
"required": ["contractVersion", "requestId", "correlation", "data"],
|
|
18681
|
+
"type": "object"
|
|
18682
|
+
}
|
|
18683
|
+
}
|
|
18684
|
+
},
|
|
18685
|
+
"description": "Successful response"
|
|
18686
|
+
},
|
|
18687
|
+
"default": {
|
|
18688
|
+
"content": {
|
|
18689
|
+
"application/json": {
|
|
18690
|
+
"schema": {
|
|
18691
|
+
"additionalProperties": false,
|
|
18692
|
+
"properties": {
|
|
18693
|
+
"contractVersion": {
|
|
18694
|
+
"additionalProperties": false,
|
|
18695
|
+
"properties": {
|
|
18696
|
+
"major": {
|
|
18697
|
+
"exclusiveMinimum": 0,
|
|
18698
|
+
"maximum": 9007199254740991,
|
|
18699
|
+
"type": "integer"
|
|
18700
|
+
},
|
|
18701
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
18702
|
+
},
|
|
18703
|
+
"required": ["major", "minor"],
|
|
18704
|
+
"type": "object"
|
|
18705
|
+
},
|
|
18706
|
+
"correlation": {
|
|
18707
|
+
"additionalProperties": false,
|
|
18708
|
+
"properties": {
|
|
18709
|
+
"causationCommandId": {},
|
|
18710
|
+
"parentEventId": {},
|
|
18711
|
+
"traceId": {}
|
|
18712
|
+
},
|
|
18713
|
+
"required": ["traceId"],
|
|
18714
|
+
"type": "object"
|
|
18715
|
+
},
|
|
18716
|
+
"error": {
|
|
18717
|
+
"additionalProperties": false,
|
|
18718
|
+
"properties": {
|
|
18719
|
+
"class": {
|
|
18720
|
+
"enum": [
|
|
18721
|
+
"validation",
|
|
18722
|
+
"authentication",
|
|
18723
|
+
"authorization",
|
|
18724
|
+
"conflict",
|
|
18725
|
+
"stale_reference",
|
|
18726
|
+
"capability_mismatch",
|
|
18727
|
+
"runtime_unavailable",
|
|
18728
|
+
"internal"
|
|
18729
|
+
],
|
|
18730
|
+
"type": "string"
|
|
18731
|
+
},
|
|
18732
|
+
"code": {
|
|
18733
|
+
"maxLength": 96,
|
|
18734
|
+
"minLength": 1,
|
|
18735
|
+
"pattern": "^[A-Z][A-Z0-9_]*$",
|
|
18736
|
+
"type": "string"
|
|
18737
|
+
},
|
|
18738
|
+
"details": {
|
|
18739
|
+
"additionalProperties": {},
|
|
18740
|
+
"propertyNames": { "maxLength": 64, "type": "string" },
|
|
18741
|
+
"type": "object"
|
|
18742
|
+
},
|
|
18743
|
+
"message": { "maxLength": 512, "minLength": 1, "type": "string" },
|
|
18744
|
+
"remediation": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
18745
|
+
"retryable": { "type": "boolean" },
|
|
18746
|
+
"source": {
|
|
18747
|
+
"enum": [
|
|
18748
|
+
"client",
|
|
18749
|
+
"auth",
|
|
18750
|
+
"policy",
|
|
18751
|
+
"runtime",
|
|
18752
|
+
"provider",
|
|
18753
|
+
"persistence",
|
|
18754
|
+
"workflow",
|
|
18755
|
+
"system"
|
|
18756
|
+
],
|
|
18757
|
+
"type": "string"
|
|
18758
|
+
}
|
|
18759
|
+
},
|
|
18760
|
+
"required": ["class", "code", "message", "retryable", "source"],
|
|
18761
|
+
"type": "object"
|
|
18762
|
+
},
|
|
18763
|
+
"requestId": {}
|
|
18764
|
+
},
|
|
18765
|
+
"required": ["contractVersion", "requestId", "correlation", "error"],
|
|
18766
|
+
"type": "object"
|
|
18767
|
+
}
|
|
18768
|
+
}
|
|
18769
|
+
},
|
|
18770
|
+
"description": "Normalized error response"
|
|
18771
|
+
}
|
|
18772
|
+
},
|
|
18773
|
+
"security": [{ "serviceBearer": [] }]
|
|
18774
|
+
}
|
|
18775
|
+
},
|
|
18221
18776
|
"/v3/pi-durable/lead-dispatches/children": {
|
|
18222
18777
|
"post": {
|
|
18223
18778
|
"operationId": "pi-durable.lead.children",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adea-ai/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.24.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.
|
|
54
|
-
"@adea-ai/runtime-sdk": "^1.
|
|
53
|
+
"@adea-ai/contracts": "^1.24.0",
|
|
54
|
+
"@adea-ai/runtime-sdk": "^1.19.0",
|
|
55
55
|
"zod": "4.6.6"
|
|
56
56
|
},
|
|
57
57
|
"engines": {
|