@adea-ai/sdk 1.27.0 → 2.0.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 +1 -5
- package/dist/client.js +0 -12
- package/dist/operations.d.ts +1 -29
- package/dist/operations.js +1 -29
- package/openapi/control-plane.v3.json +0 -2436
- package/package.json +2 -2
package/dist/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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
|
-
import { type CredentialCreateRequest, type CredentialGetRequest, type CredentialListRequest, type CredentialListResponse, type CredentialResponse, type CredentialRevokeRequest, type CredentialRotateRequest, type
|
|
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';
|
|
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 {
|
|
@@ -54,10 +54,6 @@ export declare class ControlPlaneClient {
|
|
|
54
54
|
revokeCredential(input: CredentialRevokeRequest): Promise<CredentialResponse>;
|
|
55
55
|
getCredential(input: CredentialGetRequest): Promise<CredentialResponse>;
|
|
56
56
|
listCredentials(input: CredentialListRequest): Promise<CredentialListResponse>;
|
|
57
|
-
publishGraph(input: GraphDefinitionPublishRequest): Promise<GraphDefinitionResponse>;
|
|
58
|
-
deprecateGraph(input: GraphDefinitionDeprecationRequest): Promise<GraphDefinitionResponse>;
|
|
59
|
-
revokeGraph(input: GraphDefinitionRevocationRequest): Promise<GraphDefinitionResponse>;
|
|
60
|
-
resolveGraph(input: GraphDefinitionResolutionRequest): Promise<GraphDefinitionResponse>;
|
|
61
57
|
listWorkspaceSkills(input: WorkspaceSkillListRequest): Promise<WorkspaceSkillListResponse>;
|
|
62
58
|
getWorkspaceSkill(input: WorkspaceSkillGetRequest): Promise<WorkspaceSkillGetResponse>;
|
|
63
59
|
publishWorkspaceSkill(input: WorkspaceSkillPublishRequest): Promise<WorkspaceSkillPublishResponse>;
|
package/dist/client.js
CHANGED
|
@@ -86,18 +86,6 @@ export class ControlPlaneClient {
|
|
|
86
86
|
listCredentials(input) {
|
|
87
87
|
return this.#request(ControlApiOperations.listCredentials, input);
|
|
88
88
|
}
|
|
89
|
-
publishGraph(input) {
|
|
90
|
-
return this.#request(ControlApiOperations.publishGraph, input);
|
|
91
|
-
}
|
|
92
|
-
deprecateGraph(input) {
|
|
93
|
-
return this.#request(ControlApiOperations.deprecateGraph, input);
|
|
94
|
-
}
|
|
95
|
-
revokeGraph(input) {
|
|
96
|
-
return this.#request(ControlApiOperations.revokeGraph, input);
|
|
97
|
-
}
|
|
98
|
-
resolveGraph(input) {
|
|
99
|
-
return this.#request(ControlApiOperations.resolveGraph, input);
|
|
100
|
-
}
|
|
101
89
|
listWorkspaceSkills(input) {
|
|
102
90
|
return this.#request(ControlApiOperations.listWorkspaceSkills, input);
|
|
103
91
|
}
|
package/dist/operations.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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
|
-
import { CredentialCreateRequestSchema, CredentialGetRequestSchema, CredentialListRequestSchema, CredentialListResponseSchema, CredentialResponseSchema, CredentialRevokeRequestSchema, CredentialRotateRequestSchema, RuntimeNodeCredentialRevocationResponseSchema, RuntimeNodeCredentialRevokeRequestSchema,
|
|
3
|
+
import { CredentialCreateRequestSchema, CredentialGetRequestSchema, CredentialListRequestSchema, CredentialListResponseSchema, CredentialResponseSchema, CredentialRevokeRequestSchema, CredentialRotateRequestSchema, RuntimeNodeCredentialRevocationResponseSchema, RuntimeNodeCredentialRevokeRequestSchema, 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<{
|
|
5
5
|
readonly getPiDurableLeadPublication: {
|
|
6
6
|
readonly operation: 'pi-durable.lead.publication.current';
|
|
@@ -107,34 +107,6 @@ export declare const ControlApiOperations: Readonly<{
|
|
|
107
107
|
readonly requestSchema: typeof RuntimeNodeCredentialRevokeRequestSchema;
|
|
108
108
|
readonly responseSchema: typeof RuntimeNodeCredentialRevocationResponseSchema;
|
|
109
109
|
};
|
|
110
|
-
readonly publishGraph: {
|
|
111
|
-
readonly operation: 'graph.publish';
|
|
112
|
-
readonly method: 'POST';
|
|
113
|
-
readonly path: '/v1/graphs/publish';
|
|
114
|
-
readonly requestSchema: typeof GraphDefinitionPublishRequestSchema;
|
|
115
|
-
readonly responseSchema: typeof GraphDefinitionResponseSchema;
|
|
116
|
-
};
|
|
117
|
-
readonly deprecateGraph: {
|
|
118
|
-
readonly operation: 'graph.deprecate';
|
|
119
|
-
readonly method: 'POST';
|
|
120
|
-
readonly path: '/v1/graphs/deprecate';
|
|
121
|
-
readonly requestSchema: typeof GraphDefinitionDeprecationRequestSchema;
|
|
122
|
-
readonly responseSchema: typeof GraphDefinitionResponseSchema;
|
|
123
|
-
};
|
|
124
|
-
readonly revokeGraph: {
|
|
125
|
-
readonly operation: 'graph.revoke';
|
|
126
|
-
readonly method: 'POST';
|
|
127
|
-
readonly path: '/v1/graphs/revoke';
|
|
128
|
-
readonly requestSchema: typeof GraphDefinitionRevocationRequestSchema;
|
|
129
|
-
readonly responseSchema: typeof GraphDefinitionResponseSchema;
|
|
130
|
-
};
|
|
131
|
-
readonly resolveGraph: {
|
|
132
|
-
readonly operation: 'graph.resolve';
|
|
133
|
-
readonly method: 'POST';
|
|
134
|
-
readonly path: '/v1/graphs/resolve';
|
|
135
|
-
readonly requestSchema: typeof GraphDefinitionResolutionRequestSchema;
|
|
136
|
-
readonly responseSchema: typeof GraphDefinitionResponseSchema;
|
|
137
|
-
};
|
|
138
110
|
readonly listWorkspaceSkills: {
|
|
139
111
|
readonly operation: 'catalog.skill.list';
|
|
140
112
|
readonly method: 'POST';
|
package/dist/operations.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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
|
-
import { CredentialCreateRequestSchema, CredentialGetRequestSchema, CredentialListRequestSchema, CredentialListResponseSchema, CredentialResponseSchema, CredentialRevokeRequestSchema, CredentialRotateRequestSchema, RuntimeNodeCredentialRevocationResponseSchema, RuntimeNodeCredentialRevokeRequestSchema,
|
|
3
|
+
import { CredentialCreateRequestSchema, CredentialGetRequestSchema, CredentialListRequestSchema, CredentialListResponseSchema, CredentialResponseSchema, CredentialRevokeRequestSchema, CredentialRotateRequestSchema, RuntimeNodeCredentialRevocationResponseSchema, RuntimeNodeCredentialRevokeRequestSchema, 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({
|
|
5
5
|
getPiDurableLeadPublication: {
|
|
6
6
|
operation: 'pi-durable.lead.publication.current',
|
|
@@ -107,34 +107,6 @@ export const ControlApiOperations = Object.freeze({
|
|
|
107
107
|
requestSchema: RuntimeNodeCredentialRevokeRequestSchema,
|
|
108
108
|
responseSchema: RuntimeNodeCredentialRevocationResponseSchema,
|
|
109
109
|
},
|
|
110
|
-
publishGraph: {
|
|
111
|
-
operation: 'graph.publish',
|
|
112
|
-
method: 'POST',
|
|
113
|
-
path: '/v1/graphs/publish',
|
|
114
|
-
requestSchema: GraphDefinitionPublishRequestSchema,
|
|
115
|
-
responseSchema: GraphDefinitionResponseSchema,
|
|
116
|
-
},
|
|
117
|
-
deprecateGraph: {
|
|
118
|
-
operation: 'graph.deprecate',
|
|
119
|
-
method: 'POST',
|
|
120
|
-
path: '/v1/graphs/deprecate',
|
|
121
|
-
requestSchema: GraphDefinitionDeprecationRequestSchema,
|
|
122
|
-
responseSchema: GraphDefinitionResponseSchema,
|
|
123
|
-
},
|
|
124
|
-
revokeGraph: {
|
|
125
|
-
operation: 'graph.revoke',
|
|
126
|
-
method: 'POST',
|
|
127
|
-
path: '/v1/graphs/revoke',
|
|
128
|
-
requestSchema: GraphDefinitionRevocationRequestSchema,
|
|
129
|
-
responseSchema: GraphDefinitionResponseSchema,
|
|
130
|
-
},
|
|
131
|
-
resolveGraph: {
|
|
132
|
-
operation: 'graph.resolve',
|
|
133
|
-
method: 'POST',
|
|
134
|
-
path: '/v1/graphs/resolve',
|
|
135
|
-
requestSchema: GraphDefinitionResolutionRequestSchema,
|
|
136
|
-
responseSchema: GraphDefinitionResponseSchema,
|
|
137
|
-
},
|
|
138
110
|
listWorkspaceSkills: {
|
|
139
111
|
operation: 'catalog.skill.list',
|
|
140
112
|
method: 'POST',
|