@adea-ai/sdk 2.1.0 → 3.0.1
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 +11 -2
- package/dist/client.js +27 -0
- package/dist/operations.d.ts +72 -9
- package/dist/operations.js +72 -9
- package/openapi/control-plane.v3.json +8846 -5650
- package/package.json +4 -5
package/dist/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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';
|
|
1
|
+
import type { PiDurableLeadPrepareRequest, PiDurableLeadPrepareResponse, PiDurableLeadLookupRequest, PiDurableLeadLookupResponse, PiDurableLeadDispatchRequest, PiDurableLeadDispatchResponse, PiDurableLeadStatusRequest, PiDurableLeadStatusResponse, PiDurableLeadChildrenRequest, PiDurableLeadChildrenResponse, PiDurableLeadChildTargetRequest, PiDurableLeadChildTargetResponse, PiDurableLeadProgressRequest, PiDurableLeadProgressResponse, PiDurableLeadCancelRequest, PiDurableLeadChildCancelRequest, PiDurableLeadChildCancelResponse, PiDurableLeadQuestionAnswerRequest, PiDurableLeadQuestionAnswerResponse, PiDurableLeadApprovalAnswerRequest, PiDurableLeadApprovalAnswerResponse, PiDurableLeadCancelResponse } from '@adea-ai/runtime-sdk';
|
|
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
|
-
import { type CredentialCreateRequest, type CredentialGetRequest, type CredentialListRequest, type CredentialListResponse, type CredentialResponse, type CredentialRevokeRequest, type CredentialRotateRequest, type ExecutionCancellationCommand, type ExecutionCancellationCommandResult, type InteractionResponseCommand, type InteractionResponseCommandResult, type ModelReadinessReason, type ContextPackageResolutionRequest, type ContextPackageResolutionResponse, type ErrorClass, type ExecutionAcceptanceRequest, type ExecutionAcceptanceResponse, type ExecutionRequestValidationRequest, type ExecutionRequestValidationResponse, type 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';
|
|
3
|
+
import { type CredentialCreateRequest, type CredentialGetRequest, type CredentialListRequest, type CredentialListResponse, type CredentialResponse, type CredentialRevokeRequest, type CredentialRotateRequest, type ExecutionCancellationCommand, type ExecutionCancellationCommandResult, type InteractionResponseCommand, type InteractionResponseCommandResult, type ModelReadinessReason, type ContextPackageResolutionRequest, type ContextPackageResolutionResponse, type ErrorClass, type ExecutionAcceptanceRequest, type ExecutionAcceptanceResponse, type ExecutionRequestValidationRequest, type ExecutionRequestValidationResponse, type ProfileResolutionRequest, type ProfileResolutionResponse, type ProjectStateInitializationRequest, type ProjectStateInitializationResponse, type ProjectStateResolutionRequest, type ProjectStateResolutionResponse, type RuntimeListRequest, type RuntimeListResponse, type ServiceAuthenticationRequest, type ServiceAuthenticationResponse, type ExternalSessionGetRequest, type ExternalSessionGetResponse, type ExternalSessionListRequest, type ExternalSessionListResponse, type RuntimeConnectionGetRequest, type RuntimeConnectionGetResponse, type RuntimeConnectionListRequest, type RuntimeConnectionListResponse, type MarketplaceCatalogRequest, type MarketplaceCatalogResponse, type MarketplaceInstallPlanRequest, type MarketplaceInstallPlanResponse, type MarketplaceInstallRequest, type MarketplaceInstallResponse, type MarketplaceInstallationGetRequest, type MarketplaceInstallationGetResponse, type MarketplaceInstallationUninstallRequest, type MarketplaceInstallationUninstallResponse, type WorkspaceSkillListRequest, type WorkspaceSkillListResponse, type WorkspaceSkillGetRequest, type WorkspaceSkillGetResponse, type WorkspaceSkillPublishRequest, type WorkspaceSkillPublishResponse, type WorkspaceSkillDeprecationRequest, type WorkspaceSkillRevocationRequest, type WorkspaceSkillLifecycleResponse, type WorkspaceAgentProfileListRequest, type WorkspaceAgentProfileListResponse, type WorkspaceAgentProfileGetRequest, type WorkspaceAgentProfileGetResponse, type WorkspaceAgentProfilePublishRequest, type WorkspaceAgentProfilePublishResponse, type WorkspaceAgentProfileDeprecationRequest, type WorkspaceAgentProfileRevocationRequest, type WorkspaceAgentProfileLifecycleResponse, type DeviceSyncUploadRequest, type DeviceSyncUploadResponse, type DeviceSyncCommitRequest, type DeviceSyncCommitResponse, type DeviceSyncDownloadRequest, type DeviceSyncDownloadResponse, type DeviceSyncReleaseRequest, type DeviceSyncReleaseResponse, type DeviceSyncAppendRequest, type DeviceSyncAppendResponse, type DeviceSyncLogRequest, type DeviceSyncLogResponse, type DeviceSyncUsageRequest, type DeviceSyncUsageResponse } from '@adea-ai/contracts';
|
|
4
4
|
type FetchImplementation = (input: string | URL | globalThis.Request, init?: RequestInit) => Promise<Response>;
|
|
5
5
|
type CredentialProvider = string | (() => string | Promise<string>);
|
|
6
6
|
export interface ControlPlaneClientOptions {
|
|
@@ -74,6 +74,13 @@ export declare class ControlPlaneClient {
|
|
|
74
74
|
getRuntimeConnection(input: RuntimeConnectionGetRequest): Promise<RuntimeConnectionGetResponse>;
|
|
75
75
|
listExternalSessions(input: ExternalSessionListRequest): Promise<ExternalSessionListResponse>;
|
|
76
76
|
getExternalSession(input: ExternalSessionGetRequest): Promise<ExternalSessionGetResponse>;
|
|
77
|
+
uploadDeviceSyncObject(input: DeviceSyncUploadRequest): Promise<DeviceSyncUploadResponse>;
|
|
78
|
+
commitDeviceSyncObject(input: DeviceSyncCommitRequest): Promise<DeviceSyncCommitResponse>;
|
|
79
|
+
downloadDeviceSyncObjects(input: DeviceSyncDownloadRequest): Promise<DeviceSyncDownloadResponse>;
|
|
80
|
+
releaseDeviceSyncObjects(input: DeviceSyncReleaseRequest): Promise<DeviceSyncReleaseResponse>;
|
|
81
|
+
appendDeviceSyncLog(input: DeviceSyncAppendRequest): Promise<DeviceSyncAppendResponse>;
|
|
82
|
+
readDeviceSyncLog(input: DeviceSyncLogRequest): Promise<DeviceSyncLogResponse>;
|
|
83
|
+
readDeviceSyncUsage(input: DeviceSyncUsageRequest): Promise<DeviceSyncUsageResponse>;
|
|
77
84
|
validateExecutionRequest(input: ExecutionRequestValidationRequest): Promise<ExecutionRequestValidationResponse>;
|
|
78
85
|
acceptExecution(input: ExecutionAcceptanceRequest): Promise<ExecutionAcceptanceResponse>;
|
|
79
86
|
respondToInteraction(input: InteractionResponseCommand): Promise<InteractionResponseCommandResult>;
|
|
@@ -91,6 +98,8 @@ export declare class ControlPlaneClient {
|
|
|
91
98
|
getPiDurableLeadChildren(input: PiDurableLeadChildrenRequest): Promise<PiDurableLeadChildrenResponse>;
|
|
92
99
|
getPiDurableLeadChildTarget(input: PiDurableLeadChildTargetRequest): Promise<PiDurableLeadChildTargetResponse>;
|
|
93
100
|
cancelPiDurableLead(input: PiDurableLeadCancelRequest): Promise<PiDurableLeadCancelResponse>;
|
|
101
|
+
answerPiDurableLeadQuestion(input: PiDurableLeadQuestionAnswerRequest): Promise<PiDurableLeadQuestionAnswerResponse>;
|
|
102
|
+
answerPiDurableLeadApproval(input: PiDurableLeadApprovalAnswerRequest): Promise<PiDurableLeadApprovalAnswerResponse>;
|
|
94
103
|
cancelPiDurableLeadChild(input: PiDurableLeadChildCancelRequest): Promise<PiDurableLeadChildCancelResponse>;
|
|
95
104
|
}
|
|
96
105
|
export {};
|
package/dist/client.js
CHANGED
|
@@ -146,6 +146,27 @@ export class ControlPlaneClient {
|
|
|
146
146
|
getExternalSession(input) {
|
|
147
147
|
return this.#request(ControlApiOperations.getExternalSession, input);
|
|
148
148
|
}
|
|
149
|
+
uploadDeviceSyncObject(input) {
|
|
150
|
+
return this.#request(ControlApiOperations.uploadDeviceSyncObject, input);
|
|
151
|
+
}
|
|
152
|
+
commitDeviceSyncObject(input) {
|
|
153
|
+
return this.#request(ControlApiOperations.commitDeviceSyncObject, input);
|
|
154
|
+
}
|
|
155
|
+
downloadDeviceSyncObjects(input) {
|
|
156
|
+
return this.#request(ControlApiOperations.downloadDeviceSyncObjects, input);
|
|
157
|
+
}
|
|
158
|
+
releaseDeviceSyncObjects(input) {
|
|
159
|
+
return this.#request(ControlApiOperations.releaseDeviceSyncObjects, input);
|
|
160
|
+
}
|
|
161
|
+
appendDeviceSyncLog(input) {
|
|
162
|
+
return this.#request(ControlApiOperations.appendDeviceSyncLog, input);
|
|
163
|
+
}
|
|
164
|
+
readDeviceSyncLog(input) {
|
|
165
|
+
return this.#request(ControlApiOperations.readDeviceSyncLog, input);
|
|
166
|
+
}
|
|
167
|
+
readDeviceSyncUsage(input) {
|
|
168
|
+
return this.#request(ControlApiOperations.readDeviceSyncUsage, input);
|
|
169
|
+
}
|
|
149
170
|
validateExecutionRequest(input) {
|
|
150
171
|
return this.#request(ControlApiOperations.validateExecutionRequest, input);
|
|
151
172
|
}
|
|
@@ -219,6 +240,12 @@ export class ControlPlaneClient {
|
|
|
219
240
|
cancelPiDurableLead(input) {
|
|
220
241
|
return this.#request(ControlApiOperations.cancelPiDurableLead, input);
|
|
221
242
|
}
|
|
243
|
+
answerPiDurableLeadQuestion(input) {
|
|
244
|
+
return this.#request(ControlApiOperations.answerPiDurableLeadQuestion, input);
|
|
245
|
+
}
|
|
246
|
+
answerPiDurableLeadApproval(input) {
|
|
247
|
+
return this.#request(ControlApiOperations.answerPiDurableLeadApproval, input);
|
|
248
|
+
}
|
|
222
249
|
cancelPiDurableLeadChild(input) {
|
|
223
250
|
return this.#request(ControlApiOperations.cancelPiDurableLeadChild, input);
|
|
224
251
|
}
|
package/dist/operations.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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';
|
|
1
|
+
import { PiDurableLeadPrepareRequestSchema, PiDurableLeadPrepareResponseSchema, PiDurableLeadLookupRequestSchema, PiDurableLeadLookupResponseSchema, PiDurableLeadDispatchRequestSchema, PiDurableLeadDispatchResponseSchema, PiDurableLeadStatusRequestSchema, PiDurableLeadStatusResponseSchema, PiDurableLeadChildrenRequestSchema, PiDurableLeadChildrenResponseSchema, PiDurableLeadChildTargetRequestSchema, PiDurableLeadChildTargetResponseSchema, PiDurableLeadProgressRequestSchema, PiDurableLeadEventsRequestSchema, PiDurableLeadEventsResponseSchema, PiDurableLeadProgressResponseSchema, PiDurableLeadCancelRequestSchema, PiDurableLeadChildCancelRequestSchema, PiDurableLeadQuestionAnswerRequestSchema, PiDurableLeadApprovalAnswerRequestSchema, PiDurableLeadApprovalAnswerResponseSchema, PiDurableLeadQuestionAnswerResponseSchema, 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
|
-
import { CredentialCreateRequestSchema, CredentialGetRequestSchema, CredentialListRequestSchema, CredentialListResponseSchema, CredentialResponseSchema, CredentialRevokeRequestSchema, CredentialRotateRequestSchema,
|
|
3
|
+
import { CredentialCreateRequestSchema, CredentialGetRequestSchema, CredentialListRequestSchema, CredentialListResponseSchema, CredentialResponseSchema, CredentialRevokeRequestSchema, CredentialRotateRequestSchema, 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, DeviceSyncUploadRequestSchema, DeviceSyncUploadResponseSchema, DeviceSyncCommitRequestSchema, DeviceSyncCommitResponseSchema, DeviceSyncDownloadRequestSchema, DeviceSyncDownloadResponseSchema, DeviceSyncReleaseRequestSchema, DeviceSyncReleaseResponseSchema, DeviceSyncAppendRequestSchema, DeviceSyncAppendResponseSchema, DeviceSyncLogRequestSchema, DeviceSyncLogResponseSchema, DeviceSyncUsageRequestSchema, DeviceSyncUsageResponseSchema } from '@adea-ai/contracts';
|
|
4
4
|
export declare const ControlApiOperations: Readonly<{
|
|
5
5
|
readonly getPiDurableLeadPublication: {
|
|
6
6
|
readonly operation: 'pi-durable.lead.publication.current';
|
|
@@ -100,13 +100,6 @@ export declare const ControlApiOperations: Readonly<{
|
|
|
100
100
|
readonly requestSchema: typeof CredentialListRequestSchema;
|
|
101
101
|
readonly responseSchema: typeof CredentialListResponseSchema;
|
|
102
102
|
};
|
|
103
|
-
readonly revokeRuntimeNodeCredential: {
|
|
104
|
-
readonly operation: 'runtime-node-credential.revoke';
|
|
105
|
-
readonly method: 'POST';
|
|
106
|
-
readonly path: '/v1/runtime-node-credentials/revoke';
|
|
107
|
-
readonly requestSchema: typeof RuntimeNodeCredentialRevokeRequestSchema;
|
|
108
|
-
readonly responseSchema: typeof RuntimeNodeCredentialRevocationResponseSchema;
|
|
109
|
-
};
|
|
110
103
|
readonly listWorkspaceSkills: {
|
|
111
104
|
readonly operation: 'catalog.skill.list';
|
|
112
105
|
readonly method: 'POST';
|
|
@@ -348,6 +341,13 @@ export declare const ControlApiOperations: Readonly<{
|
|
|
348
341
|
readonly requestSchema: typeof PiDurableLeadProgressRequestSchema;
|
|
349
342
|
readonly responseSchema: typeof PiDurableLeadProgressResponseSchema;
|
|
350
343
|
};
|
|
344
|
+
readonly getPiDurableLeadEvents: {
|
|
345
|
+
readonly operation: 'pi-durable.lead.events';
|
|
346
|
+
readonly method: 'POST';
|
|
347
|
+
readonly path: '/v3/pi-durable/lead-dispatches/events';
|
|
348
|
+
readonly requestSchema: typeof PiDurableLeadEventsRequestSchema;
|
|
349
|
+
readonly responseSchema: typeof PiDurableLeadEventsResponseSchema;
|
|
350
|
+
};
|
|
351
351
|
readonly getPiDurableLeadChildren: {
|
|
352
352
|
readonly operation: 'pi-durable.lead.children';
|
|
353
353
|
readonly method: 'POST';
|
|
@@ -370,6 +370,20 @@ export declare const ControlApiOperations: Readonly<{
|
|
|
370
370
|
readonly responseSchema: typeof PiDurableLeadCancelResponseSchema;
|
|
371
371
|
readonly responseStatus: 202;
|
|
372
372
|
};
|
|
373
|
+
readonly answerPiDurableLeadQuestion: {
|
|
374
|
+
readonly operation: 'pi-durable.lead.question-answer';
|
|
375
|
+
readonly method: 'POST';
|
|
376
|
+
readonly path: '/v3/pi-durable/lead-dispatches/questions/answer';
|
|
377
|
+
readonly requestSchema: typeof PiDurableLeadQuestionAnswerRequestSchema;
|
|
378
|
+
readonly responseSchema: typeof PiDurableLeadQuestionAnswerResponseSchema;
|
|
379
|
+
};
|
|
380
|
+
readonly answerPiDurableLeadApproval: {
|
|
381
|
+
readonly operation: 'pi-durable.lead.approval-answer';
|
|
382
|
+
readonly method: 'POST';
|
|
383
|
+
readonly path: '/v3/pi-durable/lead-dispatches/approvals/answer';
|
|
384
|
+
readonly requestSchema: typeof PiDurableLeadApprovalAnswerRequestSchema;
|
|
385
|
+
readonly responseSchema: typeof PiDurableLeadApprovalAnswerResponseSchema;
|
|
386
|
+
};
|
|
373
387
|
readonly cancelPiDurableLeadChild: {
|
|
374
388
|
readonly operation: 'pi-durable.lead.child-cancel';
|
|
375
389
|
readonly method: 'POST';
|
|
@@ -378,5 +392,54 @@ export declare const ControlApiOperations: Readonly<{
|
|
|
378
392
|
readonly responseSchema: typeof PiDurableLeadChildCancelResponseSchema;
|
|
379
393
|
readonly responseStatus: 202;
|
|
380
394
|
};
|
|
395
|
+
readonly uploadDeviceSyncObject: {
|
|
396
|
+
readonly operation: 'device-sync.upload';
|
|
397
|
+
readonly method: 'POST';
|
|
398
|
+
readonly path: '/v1/device-sync/uploads';
|
|
399
|
+
readonly requestSchema: typeof DeviceSyncUploadRequestSchema;
|
|
400
|
+
readonly responseSchema: typeof DeviceSyncUploadResponseSchema;
|
|
401
|
+
};
|
|
402
|
+
readonly commitDeviceSyncObject: {
|
|
403
|
+
readonly operation: 'device-sync.commit';
|
|
404
|
+
readonly method: 'POST';
|
|
405
|
+
readonly path: '/v1/device-sync/commits';
|
|
406
|
+
readonly requestSchema: typeof DeviceSyncCommitRequestSchema;
|
|
407
|
+
readonly responseSchema: typeof DeviceSyncCommitResponseSchema;
|
|
408
|
+
};
|
|
409
|
+
readonly downloadDeviceSyncObjects: {
|
|
410
|
+
readonly operation: 'device-sync.download';
|
|
411
|
+
readonly method: 'POST';
|
|
412
|
+
readonly path: '/v1/device-sync/downloads';
|
|
413
|
+
readonly requestSchema: typeof DeviceSyncDownloadRequestSchema;
|
|
414
|
+
readonly responseSchema: typeof DeviceSyncDownloadResponseSchema;
|
|
415
|
+
};
|
|
416
|
+
readonly releaseDeviceSyncObjects: {
|
|
417
|
+
readonly operation: 'device-sync.release';
|
|
418
|
+
readonly method: 'POST';
|
|
419
|
+
readonly path: '/v1/device-sync/releases';
|
|
420
|
+
readonly requestSchema: typeof DeviceSyncReleaseRequestSchema;
|
|
421
|
+
readonly responseSchema: typeof DeviceSyncReleaseResponseSchema;
|
|
422
|
+
};
|
|
423
|
+
readonly appendDeviceSyncLog: {
|
|
424
|
+
readonly operation: 'device-sync.append';
|
|
425
|
+
readonly method: 'POST';
|
|
426
|
+
readonly path: '/v1/device-sync/log/append';
|
|
427
|
+
readonly requestSchema: typeof DeviceSyncAppendRequestSchema;
|
|
428
|
+
readonly responseSchema: typeof DeviceSyncAppendResponseSchema;
|
|
429
|
+
};
|
|
430
|
+
readonly readDeviceSyncLog: {
|
|
431
|
+
readonly operation: 'device-sync.log';
|
|
432
|
+
readonly method: 'POST';
|
|
433
|
+
readonly path: '/v1/device-sync/log/read';
|
|
434
|
+
readonly requestSchema: typeof DeviceSyncLogRequestSchema;
|
|
435
|
+
readonly responseSchema: typeof DeviceSyncLogResponseSchema;
|
|
436
|
+
};
|
|
437
|
+
readonly readDeviceSyncUsage: {
|
|
438
|
+
readonly operation: 'device-sync.usage';
|
|
439
|
+
readonly method: 'POST';
|
|
440
|
+
readonly path: '/v1/device-sync/usage';
|
|
441
|
+
readonly requestSchema: typeof DeviceSyncUsageRequestSchema;
|
|
442
|
+
readonly responseSchema: typeof DeviceSyncUsageResponseSchema;
|
|
443
|
+
};
|
|
381
444
|
}>;
|
|
382
445
|
export type ControlApiOperationName = keyof typeof ControlApiOperations;
|
package/dist/operations.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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';
|
|
1
|
+
import { PiDurableLeadPrepareRequestSchema, PiDurableLeadPrepareResponseSchema, PiDurableLeadLookupRequestSchema, PiDurableLeadLookupResponseSchema, PiDurableLeadDispatchRequestSchema, PiDurableLeadDispatchResponseSchema, PiDurableLeadStatusRequestSchema, PiDurableLeadStatusResponseSchema, PiDurableLeadChildrenRequestSchema, PiDurableLeadChildrenResponseSchema, PiDurableLeadChildTargetRequestSchema, PiDurableLeadChildTargetResponseSchema, PiDurableLeadProgressRequestSchema, PiDurableLeadEventsRequestSchema, PiDurableLeadEventsResponseSchema, PiDurableLeadProgressResponseSchema, PiDurableLeadCancelRequestSchema, PiDurableLeadChildCancelRequestSchema, PiDurableLeadQuestionAnswerRequestSchema, PiDurableLeadApprovalAnswerRequestSchema, PiDurableLeadApprovalAnswerResponseSchema, PiDurableLeadQuestionAnswerResponseSchema, 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
|
-
import { CredentialCreateRequestSchema, CredentialGetRequestSchema, CredentialListRequestSchema, CredentialListResponseSchema, CredentialResponseSchema, CredentialRevokeRequestSchema, CredentialRotateRequestSchema,
|
|
3
|
+
import { CredentialCreateRequestSchema, CredentialGetRequestSchema, CredentialListRequestSchema, CredentialListResponseSchema, CredentialResponseSchema, CredentialRevokeRequestSchema, CredentialRotateRequestSchema, 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, DeviceSyncUploadRequestSchema, DeviceSyncUploadResponseSchema, DeviceSyncCommitRequestSchema, DeviceSyncCommitResponseSchema, DeviceSyncDownloadRequestSchema, DeviceSyncDownloadResponseSchema, DeviceSyncReleaseRequestSchema, DeviceSyncReleaseResponseSchema, DeviceSyncAppendRequestSchema, DeviceSyncAppendResponseSchema, DeviceSyncLogRequestSchema, DeviceSyncLogResponseSchema, DeviceSyncUsageRequestSchema, DeviceSyncUsageResponseSchema, } from '@adea-ai/contracts';
|
|
4
4
|
export const ControlApiOperations = Object.freeze({
|
|
5
5
|
getPiDurableLeadPublication: {
|
|
6
6
|
operation: 'pi-durable.lead.publication.current',
|
|
@@ -100,13 +100,6 @@ export const ControlApiOperations = Object.freeze({
|
|
|
100
100
|
requestSchema: CredentialListRequestSchema,
|
|
101
101
|
responseSchema: CredentialListResponseSchema,
|
|
102
102
|
},
|
|
103
|
-
revokeRuntimeNodeCredential: {
|
|
104
|
-
operation: 'runtime-node-credential.revoke',
|
|
105
|
-
method: 'POST',
|
|
106
|
-
path: '/v1/runtime-node-credentials/revoke',
|
|
107
|
-
requestSchema: RuntimeNodeCredentialRevokeRequestSchema,
|
|
108
|
-
responseSchema: RuntimeNodeCredentialRevocationResponseSchema,
|
|
109
|
-
},
|
|
110
103
|
listWorkspaceSkills: {
|
|
111
104
|
operation: 'catalog.skill.list',
|
|
112
105
|
method: 'POST',
|
|
@@ -348,6 +341,13 @@ export const ControlApiOperations = Object.freeze({
|
|
|
348
341
|
requestSchema: PiDurableLeadProgressRequestSchema,
|
|
349
342
|
responseSchema: PiDurableLeadProgressResponseSchema,
|
|
350
343
|
},
|
|
344
|
+
getPiDurableLeadEvents: {
|
|
345
|
+
operation: 'pi-durable.lead.events',
|
|
346
|
+
method: 'POST',
|
|
347
|
+
path: '/v3/pi-durable/lead-dispatches/events',
|
|
348
|
+
requestSchema: PiDurableLeadEventsRequestSchema,
|
|
349
|
+
responseSchema: PiDurableLeadEventsResponseSchema,
|
|
350
|
+
},
|
|
351
351
|
getPiDurableLeadChildren: {
|
|
352
352
|
operation: 'pi-durable.lead.children',
|
|
353
353
|
method: 'POST',
|
|
@@ -370,6 +370,20 @@ export const ControlApiOperations = Object.freeze({
|
|
|
370
370
|
responseSchema: PiDurableLeadCancelResponseSchema,
|
|
371
371
|
responseStatus: 202,
|
|
372
372
|
},
|
|
373
|
+
answerPiDurableLeadQuestion: {
|
|
374
|
+
operation: 'pi-durable.lead.question-answer',
|
|
375
|
+
method: 'POST',
|
|
376
|
+
path: '/v3/pi-durable/lead-dispatches/questions/answer',
|
|
377
|
+
requestSchema: PiDurableLeadQuestionAnswerRequestSchema,
|
|
378
|
+
responseSchema: PiDurableLeadQuestionAnswerResponseSchema,
|
|
379
|
+
},
|
|
380
|
+
answerPiDurableLeadApproval: {
|
|
381
|
+
operation: 'pi-durable.lead.approval-answer',
|
|
382
|
+
method: 'POST',
|
|
383
|
+
path: '/v3/pi-durable/lead-dispatches/approvals/answer',
|
|
384
|
+
requestSchema: PiDurableLeadApprovalAnswerRequestSchema,
|
|
385
|
+
responseSchema: PiDurableLeadApprovalAnswerResponseSchema,
|
|
386
|
+
},
|
|
373
387
|
cancelPiDurableLeadChild: {
|
|
374
388
|
operation: 'pi-durable.lead.child-cancel',
|
|
375
389
|
method: 'POST',
|
|
@@ -378,4 +392,53 @@ export const ControlApiOperations = Object.freeze({
|
|
|
378
392
|
responseSchema: PiDurableLeadChildCancelResponseSchema,
|
|
379
393
|
responseStatus: 202,
|
|
380
394
|
},
|
|
395
|
+
uploadDeviceSyncObject: {
|
|
396
|
+
operation: 'device-sync.upload',
|
|
397
|
+
method: 'POST',
|
|
398
|
+
path: '/v1/device-sync/uploads',
|
|
399
|
+
requestSchema: DeviceSyncUploadRequestSchema,
|
|
400
|
+
responseSchema: DeviceSyncUploadResponseSchema,
|
|
401
|
+
},
|
|
402
|
+
commitDeviceSyncObject: {
|
|
403
|
+
operation: 'device-sync.commit',
|
|
404
|
+
method: 'POST',
|
|
405
|
+
path: '/v1/device-sync/commits',
|
|
406
|
+
requestSchema: DeviceSyncCommitRequestSchema,
|
|
407
|
+
responseSchema: DeviceSyncCommitResponseSchema,
|
|
408
|
+
},
|
|
409
|
+
downloadDeviceSyncObjects: {
|
|
410
|
+
operation: 'device-sync.download',
|
|
411
|
+
method: 'POST',
|
|
412
|
+
path: '/v1/device-sync/downloads',
|
|
413
|
+
requestSchema: DeviceSyncDownloadRequestSchema,
|
|
414
|
+
responseSchema: DeviceSyncDownloadResponseSchema,
|
|
415
|
+
},
|
|
416
|
+
releaseDeviceSyncObjects: {
|
|
417
|
+
operation: 'device-sync.release',
|
|
418
|
+
method: 'POST',
|
|
419
|
+
path: '/v1/device-sync/releases',
|
|
420
|
+
requestSchema: DeviceSyncReleaseRequestSchema,
|
|
421
|
+
responseSchema: DeviceSyncReleaseResponseSchema,
|
|
422
|
+
},
|
|
423
|
+
appendDeviceSyncLog: {
|
|
424
|
+
operation: 'device-sync.append',
|
|
425
|
+
method: 'POST',
|
|
426
|
+
path: '/v1/device-sync/log/append',
|
|
427
|
+
requestSchema: DeviceSyncAppendRequestSchema,
|
|
428
|
+
responseSchema: DeviceSyncAppendResponseSchema,
|
|
429
|
+
},
|
|
430
|
+
readDeviceSyncLog: {
|
|
431
|
+
operation: 'device-sync.log',
|
|
432
|
+
method: 'POST',
|
|
433
|
+
path: '/v1/device-sync/log/read',
|
|
434
|
+
requestSchema: DeviceSyncLogRequestSchema,
|
|
435
|
+
responseSchema: DeviceSyncLogResponseSchema,
|
|
436
|
+
},
|
|
437
|
+
readDeviceSyncUsage: {
|
|
438
|
+
operation: 'device-sync.usage',
|
|
439
|
+
method: 'POST',
|
|
440
|
+
path: '/v1/device-sync/usage',
|
|
441
|
+
requestSchema: DeviceSyncUsageRequestSchema,
|
|
442
|
+
responseSchema: DeviceSyncUsageResponseSchema,
|
|
443
|
+
},
|
|
381
444
|
});
|