@adea-ai/sdk 3.0.1 → 4.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 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, 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, 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';
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 DecisionResolveRequest, type DecisionResolveResponse, 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 {
@@ -65,6 +65,7 @@ export declare class ControlPlaneClient {
65
65
  deprecateWorkspaceProfile(input: WorkspaceAgentProfileDeprecationRequest): Promise<WorkspaceAgentProfileLifecycleResponse>;
66
66
  revokeWorkspaceProfile(input: WorkspaceAgentProfileRevocationRequest): Promise<WorkspaceAgentProfileLifecycleResponse>;
67
67
  verifyAuthentication(input: ServiceAuthenticationRequest): Promise<ServiceAuthenticationResponse>;
68
+ resolveDecision(input: DecisionResolveRequest): Promise<DecisionResolveResponse>;
68
69
  resolveProfile(input: ProfileResolutionRequest): Promise<ProfileResolutionResponse>;
69
70
  resolveProjectState(input: ProjectStateResolutionRequest): Promise<ProjectStateResolutionResponse>;
70
71
  initializeProjectState(input: ProjectStateInitializationRequest): Promise<ProjectStateInitializationResponse>;
package/dist/client.js CHANGED
@@ -119,6 +119,9 @@ export class ControlPlaneClient {
119
119
  verifyAuthentication(input) {
120
120
  return this.#request(ControlApiOperations.verifyAuthentication, input);
121
121
  }
122
+ resolveDecision(input) {
123
+ return this.#request(ControlApiOperations.resolveDecision, input);
124
+ }
122
125
  resolveProfile(input) {
123
126
  return this.#request(ControlApiOperations.resolveProfile, input);
124
127
  }
@@ -252,6 +255,7 @@ export class ControlPlaneClient {
252
255
  async #request(operation, input) {
253
256
  const request = operation.requestSchema.parse(input);
254
257
  const credential = await resolveCredential(this.#credential);
258
+ const signal = AbortSignal.timeout(this.#timeoutMs);
255
259
  const response = await this.#fetch(new URL(operation.path.slice(1), this.#baseUrl), {
256
260
  method: operation.method,
257
261
  headers: {
@@ -263,9 +267,9 @@ export class ControlPlaneClient {
263
267
  },
264
268
  body: JSON.stringify(request),
265
269
  redirect: 'error',
266
- signal: AbortSignal.timeout(this.#timeoutMs),
270
+ signal,
267
271
  });
268
- const body = await parseResponseBody(response, request.requestId);
272
+ const body = await parseResponseBody(response, request.requestId, signal);
269
273
  if (!response.ok) {
270
274
  const parsedError = ErrorResponseEnvelopeSchema.safeParse(body);
271
275
  if (!parsedError.success) {
@@ -310,11 +314,12 @@ async function resolveCredential(provider) {
310
314
  throw new Error('Control Plane service credential is required');
311
315
  return credential;
312
316
  }
313
- async function parseResponseBody(response, requestId) {
317
+ async function parseResponseBody(response, requestId, signal) {
314
318
  try {
315
319
  return await response.json();
316
320
  }
317
321
  catch {
322
+ signal.throwIfAborted();
318
323
  throw invalidResponse(requestId, response.status);
319
324
  }
320
325
  }
@@ -1,6 +1,6 @@
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';
1
+ import { PiDurableLeadPrepareRequestSchema, PiDurableLeadPrepareResponseSchema, PiDurableLeadLookupRequestSchema, PiDurableLeadLookupResponseSchema, PiDurableLeadDispatchRequestSchema, PiDurableLeadDispatchResponseSchema, PiDurableLeadStatusRequestSchema, PiDurableLeadStatusResponseSchema, PiDurableLeadChildrenRequestSchema, PiDurableLeadChildrenResponseSchema, PiDurableLeadChildTargetRequestSchema, PiDurableLeadChildTargetResponseSchema, PiDurableLeadProgressRequestSchema, PiDurableLeadEventsRequestSchema, PiDurableLeadEventsResponseSchema, PiDurableSessionsRequestSchema, PiDurableSessionsResponseSchema, PiDurableSessionEventsRequestSchema, PiDurableSessionEventsResponseSchema, 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, 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';
3
+ import { CredentialCreateRequestSchema, CredentialGetRequestSchema, CredentialListRequestSchema, CredentialListResponseSchema, CredentialResponseSchema, CredentialRevokeRequestSchema, CredentialRotateRequestSchema, ExecutionCancellationCommandSchema, ExecutionCancellationCommandResultSchema, InteractionResponseCommandSchema, InteractionResponseCommandResultSchema, ContextPackageResolutionRequestSchema, ContextPackageResolutionResponseSchema, ExecutionAcceptanceRequestSchema, ExecutionAcceptanceResponseSchema, ExecutionRequestValidationRequestSchema, ExecutionRequestValidationResponseSchema, DecisionResolveRequestSchema, DecisionResolveResponseSchema, 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';
@@ -193,6 +193,13 @@ export declare const ControlApiOperations: Readonly<{
193
193
  readonly requestSchema: typeof ServiceAuthenticationRequestSchema;
194
194
  readonly responseSchema: typeof ServiceAuthenticationResponseSchema;
195
195
  };
196
+ readonly resolveDecision: {
197
+ readonly operation: 'decision.resolve';
198
+ readonly method: 'POST';
199
+ readonly path: '/v1/decisions/resolve';
200
+ readonly requestSchema: typeof DecisionResolveRequestSchema;
201
+ readonly responseSchema: typeof DecisionResolveResponseSchema;
202
+ };
196
203
  readonly resolveProfile: {
197
204
  readonly operation: 'profile.resolve';
198
205
  readonly method: 'POST';
@@ -348,6 +355,20 @@ export declare const ControlApiOperations: Readonly<{
348
355
  readonly requestSchema: typeof PiDurableLeadEventsRequestSchema;
349
356
  readonly responseSchema: typeof PiDurableLeadEventsResponseSchema;
350
357
  };
358
+ readonly listPiDurableSessions: {
359
+ readonly operation: 'pi-durable.lead.sessions';
360
+ readonly method: 'POST';
361
+ readonly path: '/v3/pi-durable/lead-dispatches/sessions';
362
+ readonly requestSchema: typeof PiDurableSessionsRequestSchema;
363
+ readonly responseSchema: typeof PiDurableSessionsResponseSchema;
364
+ };
365
+ readonly getPiDurableSessionEvents: {
366
+ readonly operation: 'pi-durable.lead.session-events';
367
+ readonly method: 'POST';
368
+ readonly path: '/v3/pi-durable/lead-dispatches/session-events';
369
+ readonly requestSchema: typeof PiDurableSessionEventsRequestSchema;
370
+ readonly responseSchema: typeof PiDurableSessionEventsResponseSchema;
371
+ };
351
372
  readonly getPiDurableLeadChildren: {
352
373
  readonly operation: 'pi-durable.lead.children';
353
374
  readonly method: 'POST';
@@ -1,6 +1,6 @@
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';
1
+ import { PiDurableLeadPrepareRequestSchema, PiDurableLeadPrepareResponseSchema, PiDurableLeadLookupRequestSchema, PiDurableLeadLookupResponseSchema, PiDurableLeadDispatchRequestSchema, PiDurableLeadDispatchResponseSchema, PiDurableLeadStatusRequestSchema, PiDurableLeadStatusResponseSchema, PiDurableLeadChildrenRequestSchema, PiDurableLeadChildrenResponseSchema, PiDurableLeadChildTargetRequestSchema, PiDurableLeadChildTargetResponseSchema, PiDurableLeadProgressRequestSchema, PiDurableLeadEventsRequestSchema, PiDurableLeadEventsResponseSchema, PiDurableSessionsRequestSchema, PiDurableSessionsResponseSchema, PiDurableSessionEventsRequestSchema, PiDurableSessionEventsResponseSchema, 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, 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';
3
+ import { CredentialCreateRequestSchema, CredentialGetRequestSchema, CredentialListRequestSchema, CredentialListResponseSchema, CredentialResponseSchema, CredentialRevokeRequestSchema, CredentialRotateRequestSchema, ExecutionCancellationCommandSchema, ExecutionCancellationCommandResultSchema, InteractionResponseCommandSchema, InteractionResponseCommandResultSchema, ContextPackageResolutionRequestSchema, ContextPackageResolutionResponseSchema, ExecutionAcceptanceRequestSchema, ExecutionAcceptanceResponseSchema, ExecutionRequestValidationRequestSchema, ExecutionRequestValidationResponseSchema, DecisionResolveRequestSchema, DecisionResolveResponseSchema, 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',
@@ -193,6 +193,13 @@ export const ControlApiOperations = Object.freeze({
193
193
  requestSchema: ServiceAuthenticationRequestSchema,
194
194
  responseSchema: ServiceAuthenticationResponseSchema,
195
195
  },
196
+ resolveDecision: {
197
+ operation: 'decision.resolve',
198
+ method: 'POST',
199
+ path: '/v1/decisions/resolve',
200
+ requestSchema: DecisionResolveRequestSchema,
201
+ responseSchema: DecisionResolveResponseSchema,
202
+ },
196
203
  resolveProfile: {
197
204
  operation: 'profile.resolve',
198
205
  method: 'POST',
@@ -348,6 +355,20 @@ export const ControlApiOperations = Object.freeze({
348
355
  requestSchema: PiDurableLeadEventsRequestSchema,
349
356
  responseSchema: PiDurableLeadEventsResponseSchema,
350
357
  },
358
+ listPiDurableSessions: {
359
+ operation: 'pi-durable.lead.sessions',
360
+ method: 'POST',
361
+ path: '/v3/pi-durable/lead-dispatches/sessions',
362
+ requestSchema: PiDurableSessionsRequestSchema,
363
+ responseSchema: PiDurableSessionsResponseSchema,
364
+ },
365
+ getPiDurableSessionEvents: {
366
+ operation: 'pi-durable.lead.session-events',
367
+ method: 'POST',
368
+ path: '/v3/pi-durable/lead-dispatches/session-events',
369
+ requestSchema: PiDurableSessionEventsRequestSchema,
370
+ responseSchema: PiDurableSessionEventsResponseSchema,
371
+ },
351
372
  getPiDurableLeadChildren: {
352
373
  operation: 'pi-durable.lead.children',
353
374
  method: 'POST',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adea-ai/sdk",
3
- "version": "3.0.1",
3
+ "version": "4.0.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",
@@ -37,7 +37,8 @@
37
37
  }
38
38
  },
39
39
  "publishConfig": {
40
- "access": "public"
40
+ "access": "public",
41
+ "provenance": true
41
42
  },
42
43
  "scripts": {
43
44
  "build": "tsc -p tsconfig.json",
@@ -49,8 +50,8 @@
49
50
  "test": "bun test src/*.test.mjs"
50
51
  },
51
52
  "dependencies": {
52
- "@adea-ai/contracts": "^3.0.1",
53
- "@adea-ai/runtime-sdk": "^1.23.0",
53
+ "@adea-ai/contracts": "^4.0.0",
54
+ "@adea-ai/runtime-sdk": "^2.0.0",
54
55
  "zod": "4.6.6"
55
56
  },
56
57
  "engines": {