@adea-ai/sdk 1.22.0 → 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 +2 -6
- package/dist/client.js +8 -6
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/operations.d.ts +120 -4584
- package/dist/operations.js +8 -2
- package/dist/testing.d.ts +0 -1
- package/dist/testing.js +0 -1
- package/openapi/control-plane.v3.json +464 -0
- package/package.json +4 -4
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/operations.d.ts.map +0 -1
- package/dist/operations.js.map +0 -1
- package/dist/testing.d.ts.map +0 -1
- package/dist/testing.js.map +0 -1
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,7 +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 {};
|
|
103
|
-
//# sourceMappingURL=client.d.ts.map
|
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;
|
|
@@ -333,4 +336,3 @@ function invalidResponse(requestId, status) {
|
|
|
333
336
|
status,
|
|
334
337
|
});
|
|
335
338
|
}
|
|
336
|
-
//# sourceMappingURL=client.js.map
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED