@alienplatform/manager-api 1.14.0 → 1.15.0-dev.e74fae6cd01b61e77a285276f264b5480977f41a
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/FUNCTIONS.md +2 -2
- package/README.md +16 -10
- package/esm/funcs/commandsCreateCommand.d.ts.map +1 -1
- package/esm/funcs/commandsCreateCommand.js +2 -1
- package/esm/funcs/commandsCreateCommand.js.map +1 -1
- package/esm/funcs/commandsGetCommandPayload.d.ts.map +1 -1
- package/esm/funcs/commandsGetCommandPayload.js +2 -1
- package/esm/funcs/commandsGetCommandPayload.js.map +1 -1
- package/esm/funcs/commandsGetCommandStatus.d.ts.map +1 -1
- package/esm/funcs/commandsGetCommandStatus.js +2 -1
- package/esm/funcs/commandsGetCommandStatus.js.map +1 -1
- package/esm/funcs/commandsStoreCommandPayload.d.ts.map +1 -1
- package/esm/funcs/commandsStoreCommandPayload.js +2 -1
- package/esm/funcs/commandsStoreCommandPayload.js.map +1 -1
- package/esm/funcs/commandsSubmitResponse.d.ts.map +1 -1
- package/esm/funcs/commandsSubmitResponse.js +2 -1
- package/esm/funcs/commandsSubmitResponse.js.map +1 -1
- package/esm/funcs/commandsUploadComplete.d.ts.map +1 -1
- package/esm/funcs/commandsUploadComplete.js +2 -1
- package/esm/funcs/commandsUploadComplete.js.map +1 -1
- package/esm/funcs/credentialsMintCredentials.d.ts +11 -0
- package/esm/funcs/credentialsMintCredentials.d.ts.map +1 -0
- package/esm/funcs/credentialsMintCredentials.js +73 -0
- package/esm/funcs/credentialsMintCredentials.js.map +1 -0
- package/esm/funcs/credentialsResolveCredentials.d.ts.map +1 -1
- package/esm/funcs/credentialsResolveCredentials.js +2 -1
- package/esm/funcs/credentialsResolveCredentials.js.map +1 -1
- package/esm/funcs/deploymentGroupsCreateDeploymentGroup.d.ts.map +1 -1
- package/esm/funcs/deploymentGroupsCreateDeploymentGroup.js +2 -1
- package/esm/funcs/deploymentGroupsCreateDeploymentGroup.js.map +1 -1
- package/esm/funcs/deploymentGroupsCreateDeploymentGroupToken.d.ts.map +1 -1
- package/esm/funcs/deploymentGroupsCreateDeploymentGroupToken.js +2 -1
- package/esm/funcs/deploymentGroupsCreateDeploymentGroupToken.js.map +1 -1
- package/esm/funcs/deploymentGroupsGetDeploymentGroup.d.ts.map +1 -1
- package/esm/funcs/deploymentGroupsGetDeploymentGroup.js +2 -1
- package/esm/funcs/deploymentGroupsGetDeploymentGroup.js.map +1 -1
- package/esm/funcs/deploymentGroupsListDeploymentGroups.d.ts.map +1 -1
- package/esm/funcs/deploymentGroupsListDeploymentGroups.js +2 -1
- package/esm/funcs/deploymentGroupsListDeploymentGroups.js.map +1 -1
- package/esm/funcs/deploymentsCreateDeployment.d.ts.map +1 -1
- package/esm/funcs/deploymentsCreateDeployment.js +2 -1
- package/esm/funcs/deploymentsCreateDeployment.js.map +1 -1
- package/esm/funcs/deploymentsDeleteDeployment.d.ts.map +1 -1
- package/esm/funcs/deploymentsDeleteDeployment.js +2 -1
- package/esm/funcs/deploymentsDeleteDeployment.js.map +1 -1
- package/esm/funcs/deploymentsGetDeployment.d.ts.map +1 -1
- package/esm/funcs/deploymentsGetDeployment.js +2 -1
- package/esm/funcs/deploymentsGetDeployment.js.map +1 -1
- package/esm/funcs/deploymentsGetDeploymentInfo.d.ts.map +1 -1
- package/esm/funcs/deploymentsGetDeploymentInfo.js +2 -1
- package/esm/funcs/deploymentsGetDeploymentInfo.js.map +1 -1
- package/esm/funcs/deploymentsListDeployments.d.ts.map +1 -1
- package/esm/funcs/deploymentsListDeployments.js +2 -1
- package/esm/funcs/deploymentsListDeployments.js.map +1 -1
- package/esm/funcs/deploymentsRedeploy.d.ts.map +1 -1
- package/esm/funcs/deploymentsRedeploy.js +2 -1
- package/esm/funcs/deploymentsRedeploy.js.map +1 -1
- package/esm/funcs/deploymentsRetryDeployment.d.ts.map +1 -1
- package/esm/funcs/deploymentsRetryDeployment.js +2 -1
- package/esm/funcs/deploymentsRetryDeployment.js.map +1 -1
- package/esm/funcs/healthHealth.d.ts.map +1 -1
- package/esm/funcs/healthHealth.js +2 -1
- package/esm/funcs/healthHealth.js.map +1 -1
- package/esm/funcs/leasesAcquireLeases.d.ts.map +1 -1
- package/esm/funcs/leasesAcquireLeases.js +2 -1
- package/esm/funcs/leasesAcquireLeases.js.map +1 -1
- package/esm/funcs/leasesReleaseLease.d.ts.map +1 -1
- package/esm/funcs/leasesReleaseLease.js +2 -1
- package/esm/funcs/leasesReleaseLease.js.map +1 -1
- package/esm/funcs/releasesCreateRelease.d.ts.map +1 -1
- package/esm/funcs/releasesCreateRelease.js +2 -1
- package/esm/funcs/releasesCreateRelease.js.map +1 -1
- package/esm/funcs/releasesGetLatestRelease.d.ts.map +1 -1
- package/esm/funcs/releasesGetLatestRelease.js +2 -1
- package/esm/funcs/releasesGetLatestRelease.js.map +1 -1
- package/esm/funcs/releasesGetRelease.d.ts.map +1 -1
- package/esm/funcs/releasesGetRelease.js +2 -1
- package/esm/funcs/releasesGetRelease.js.map +1 -1
- package/esm/funcs/releasesListReleases.d.ts.map +1 -1
- package/esm/funcs/releasesListReleases.js +2 -1
- package/esm/funcs/releasesListReleases.js.map +1 -1
- package/esm/funcs/stackImportStackImport.d.ts.map +1 -1
- package/esm/funcs/stackImportStackImport.js +2 -1
- package/esm/funcs/stackImportStackImport.js.map +1 -1
- package/esm/funcs/syncAcquire.d.ts.map +1 -1
- package/esm/funcs/syncAcquire.js +2 -1
- package/esm/funcs/syncAcquire.js.map +1 -1
- package/esm/funcs/syncAgentSync.d.ts.map +1 -1
- package/esm/funcs/syncAgentSync.js +2 -1
- package/esm/funcs/syncAgentSync.js.map +1 -1
- package/esm/funcs/syncInitialize.d.ts.map +1 -1
- package/esm/funcs/syncInitialize.js +2 -1
- package/esm/funcs/syncInitialize.js.map +1 -1
- package/esm/funcs/syncReconcile.d.ts.map +1 -1
- package/esm/funcs/syncReconcile.js +2 -1
- package/esm/funcs/syncReconcile.js.map +1 -1
- package/esm/funcs/syncRelease.d.ts.map +1 -1
- package/esm/funcs/syncRelease.js +2 -1
- package/esm/funcs/syncRelease.js.map +1 -1
- package/esm/funcs/whoamiWhoami.d.ts.map +1 -1
- package/esm/funcs/whoamiWhoami.js +2 -1
- package/esm/funcs/whoamiWhoami.js.map +1 -1
- package/esm/hooks/types.d.ts +1 -0
- package/esm/hooks/types.d.ts.map +1 -1
- package/esm/lib/config.d.ts +3 -11
- package/esm/lib/config.d.ts.map +1 -1
- package/esm/lib/config.js +6 -16
- package/esm/lib/config.js.map +1 -1
- package/esm/lib/encodings.d.ts +1 -0
- package/esm/lib/encodings.d.ts.map +1 -1
- package/esm/lib/encodings.js +27 -6
- package/esm/lib/encodings.js.map +1 -1
- package/esm/lib/env.d.ts.map +1 -1
- package/esm/lib/env.js +3 -3
- package/esm/lib/env.js.map +1 -1
- package/esm/lib/files.d.ts +13 -0
- package/esm/lib/files.d.ts.map +1 -1
- package/esm/lib/files.js +18 -0
- package/esm/lib/files.js.map +1 -1
- package/esm/lib/http.d.ts +1 -1
- package/esm/lib/http.d.ts.map +1 -1
- package/esm/lib/http.js +1 -1
- package/esm/lib/http.js.map +1 -1
- package/esm/lib/matchers.d.ts.map +1 -1
- package/esm/lib/matchers.js +1 -2
- package/esm/lib/matchers.js.map +1 -1
- package/esm/lib/primitives.d.ts +1 -0
- package/esm/lib/primitives.d.ts.map +1 -1
- package/esm/lib/primitives.js +17 -0
- package/esm/lib/primitives.js.map +1 -1
- package/esm/lib/retries.js +7 -0
- package/esm/lib/retries.js.map +1 -1
- package/esm/lib/sdks.d.ts +1 -1
- package/esm/lib/sdks.d.ts.map +1 -1
- package/esm/lib/sdks.js +62 -26
- package/esm/lib/sdks.js.map +1 -1
- package/esm/lib/security.d.ts +6 -5
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/lib/security.js +24 -15
- package/esm/lib/security.js.map +1 -1
- package/esm/lib/url.d.ts.map +1 -1
- package/esm/lib/url.js +4 -2
- package/esm/lib/url.js.map +1 -1
- package/esm/models/agentsyncresponse.d.ts +2 -2
- package/esm/models/awscredentials.d.ts +97 -0
- package/esm/models/awscredentials.d.ts.map +1 -0
- package/esm/models/awscredentials.js +77 -0
- package/esm/models/awscredentials.js.map +1 -0
- package/esm/models/awsserviceoverrides.d.ts +21 -0
- package/esm/models/awsserviceoverrides.d.ts.map +1 -0
- package/esm/models/awsserviceoverrides.js +13 -0
- package/esm/models/awsserviceoverrides.js.map +1 -0
- package/esm/models/awswebidentityconfig.d.ts +28 -0
- package/esm/models/awswebidentityconfig.d.ts.map +1 -0
- package/esm/models/awswebidentityconfig.js +16 -0
- package/esm/models/awswebidentityconfig.js.map +1 -0
- package/esm/models/azurecredentials.d.ts +132 -0
- package/esm/models/azurecredentials.d.ts.map +1 -0
- package/esm/models/azurecredentials.js +97 -0
- package/esm/models/azurecredentials.js.map +1 -0
- package/esm/models/azureserviceoverrides.d.ts +21 -0
- package/esm/models/azureserviceoverrides.d.ts.map +1 -0
- package/esm/models/azureserviceoverrides.js +13 -0
- package/esm/models/azureserviceoverrides.js.map +1 -0
- package/esm/models/clientconfigunion.d.ts +284 -0
- package/esm/models/clientconfigunion.d.ts.map +1 -0
- package/esm/models/clientconfigunion.js +201 -0
- package/esm/models/clientconfigunion.js.map +1 -0
- package/esm/models/commandstatusresponse.d.ts +5 -0
- package/esm/models/commandstatusresponse.d.ts.map +1 -1
- package/esm/models/commandstatusresponse.js +2 -0
- package/esm/models/commandstatusresponse.js.map +1 -1
- package/esm/models/commandtarget.d.ts +29 -0
- package/esm/models/commandtarget.d.ts.map +1 -0
- package/esm/models/commandtarget.js +24 -0
- package/esm/models/commandtarget.js.map +1 -0
- package/esm/models/commandtargettype.d.ts +19 -0
- package/esm/models/commandtargettype.d.ts.map +1 -0
- package/esm/models/commandtargettype.js +17 -0
- package/esm/models/commandtargettype.js.map +1 -0
- package/esm/models/containerheartbeatdata.d.ts +4 -0
- package/esm/models/containerheartbeatdata.d.ts.map +1 -1
- package/esm/models/containerheartbeatdata.js +2 -0
- package/esm/models/containerheartbeatdata.js.map +1 -1
- package/esm/models/createcommandrequest.d.ts +9 -0
- package/esm/models/createcommandrequest.d.ts.map +1 -1
- package/esm/models/createcommandrequest.js +1 -0
- package/esm/models/createcommandrequest.js.map +1 -1
- package/esm/models/daemonheartbeatdata.d.ts +8 -0
- package/esm/models/daemonheartbeatdata.d.ts.map +1 -1
- package/esm/models/daemonheartbeatdata.js +4 -0
- package/esm/models/daemonheartbeatdata.js.map +1 -1
- package/esm/models/envelope.d.ts +7 -0
- package/esm/models/envelope.d.ts.map +1 -1
- package/esm/models/envelope.js +4 -0
- package/esm/models/envelope.js.map +1 -1
- package/esm/models/gcpcredentials.d.ts +138 -0
- package/esm/models/gcpcredentials.d.ts.map +1 -0
- package/esm/models/gcpcredentials.js +107 -0
- package/esm/models/gcpcredentials.js.map +1 -0
- package/esm/models/gcpimpersonationconfig.d.ts +42 -0
- package/esm/models/gcpimpersonationconfig.d.ts.map +1 -0
- package/esm/models/gcpimpersonationconfig.js +18 -0
- package/esm/models/gcpimpersonationconfig.js.map +1 -0
- package/esm/models/gcpserviceoverrides.d.ts +21 -0
- package/esm/models/gcpserviceoverrides.d.ts.map +1 -0
- package/esm/models/gcpserviceoverrides.js +13 -0
- package/esm/models/gcpserviceoverrides.js.map +1 -0
- package/esm/models/index.d.ts +15 -0
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +15 -0
- package/esm/models/index.js.map +1 -1
- package/esm/models/kubernetesclientconfig.d.ts +116 -0
- package/esm/models/kubernetesclientconfig.d.ts.map +1 -0
- package/esm/models/kubernetesclientconfig.js +73 -0
- package/esm/models/kubernetesclientconfig.js.map +1 -0
- package/esm/models/leaserequest.d.ts +6 -0
- package/esm/models/leaserequest.d.ts.map +1 -1
- package/esm/models/leaserequest.js +2 -0
- package/esm/models/leaserequest.js.map +1 -1
- package/esm/models/mintcredentialsrequest.d.ts +49 -0
- package/esm/models/mintcredentialsrequest.d.ts.map +1 -0
- package/esm/models/mintcredentialsrequest.js +15 -0
- package/esm/models/mintcredentialsrequest.js.map +1 -0
- package/esm/models/mintcredentialsresponse.d.ts +37 -0
- package/esm/models/mintcredentialsresponse.d.ts.map +1 -0
- package/esm/models/mintcredentialsresponse.js +16 -0
- package/esm/models/mintcredentialsresponse.js.map +1 -0
- package/esm/models/resolvecredentialsresponse.d.ts +5 -1
- package/esm/models/resolvecredentialsresponse.d.ts.map +1 -1
- package/esm/models/resolvecredentialsresponse.js +2 -1
- package/esm/models/resolvecredentialsresponse.js.map +1 -1
- package/esm/models/resourceref.d.ts +1 -4
- package/esm/models/resourceref.d.ts.map +1 -1
- package/esm/models/resourceref.js.map +1 -1
- package/esm/models/tracecontext.d.ts +25 -0
- package/esm/models/tracecontext.d.ts.map +1 -0
- package/esm/models/tracecontext.js +15 -0
- package/esm/models/tracecontext.js.map +1 -0
- package/esm/sdk/credentials.d.ts +1 -0
- package/esm/sdk/credentials.d.ts.map +1 -1
- package/esm/sdk/credentials.js +4 -0
- package/esm/sdk/credentials.js.map +1 -1
- package/esm/sdk/sdk.d.ts +2 -2
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +3 -3
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/types/async.d.ts.map +1 -1
- package/esm/types/async.js +8 -7
- package/esm/types/async.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +6 -8
- package/src/funcs/commandsCreateCommand.ts +3 -1
- package/src/funcs/commandsGetCommandPayload.ts +3 -2
- package/src/funcs/commandsGetCommandStatus.ts +3 -2
- package/src/funcs/commandsStoreCommandPayload.ts +3 -2
- package/src/funcs/commandsSubmitResponse.ts +3 -2
- package/src/funcs/commandsUploadComplete.ts +3 -2
- package/src/funcs/credentialsMintCredentials.ts +156 -0
- package/src/funcs/credentialsResolveCredentials.ts +3 -1
- package/src/funcs/deploymentGroupsCreateDeploymentGroup.ts +3 -1
- package/src/funcs/deploymentGroupsCreateDeploymentGroupToken.ts +3 -2
- package/src/funcs/deploymentGroupsGetDeploymentGroup.ts +3 -2
- package/src/funcs/deploymentGroupsListDeploymentGroups.ts +3 -1
- package/src/funcs/deploymentsCreateDeployment.ts +3 -1
- package/src/funcs/deploymentsDeleteDeployment.ts +3 -2
- package/src/funcs/deploymentsGetDeployment.ts +3 -2
- package/src/funcs/deploymentsGetDeploymentInfo.ts +3 -2
- package/src/funcs/deploymentsListDeployments.ts +3 -1
- package/src/funcs/deploymentsRedeploy.ts +3 -2
- package/src/funcs/deploymentsRetryDeployment.ts +3 -2
- package/src/funcs/healthHealth.ts +3 -1
- package/src/funcs/leasesAcquireLeases.ts +3 -1
- package/src/funcs/leasesReleaseLease.ts +3 -2
- package/src/funcs/releasesCreateRelease.ts +3 -1
- package/src/funcs/releasesGetLatestRelease.ts +3 -1
- package/src/funcs/releasesGetRelease.ts +3 -2
- package/src/funcs/releasesListReleases.ts +3 -1
- package/src/funcs/stackImportStackImport.ts +3 -1
- package/src/funcs/syncAcquire.ts +3 -1
- package/src/funcs/syncAgentSync.ts +3 -1
- package/src/funcs/syncInitialize.ts +3 -1
- package/src/funcs/syncReconcile.ts +3 -1
- package/src/funcs/syncRelease.ts +3 -1
- package/src/funcs/whoamiWhoami.ts +3 -1
- package/src/hooks/types.ts +1 -0
- package/src/lib/config.ts +8 -23
- package/src/lib/encodings.ts +33 -5
- package/src/lib/env.ts +7 -3
- package/src/lib/files.ts +22 -0
- package/src/lib/http.ts +3 -1
- package/src/lib/matchers.ts +4 -3
- package/src/lib/primitives.ts +16 -0
- package/src/lib/retries.ts +8 -0
- package/src/lib/sdks.ts +66 -30
- package/src/lib/security.ts +25 -9
- package/src/lib/url.ts +16 -14
- package/src/models/agentsyncresponse.ts +2 -2
- package/src/models/awscredentials.ts +231 -0
- package/src/models/awsserviceoverrides.ts +39 -0
- package/src/models/awswebidentityconfig.ts +51 -0
- package/src/models/azurecredentials.ts +295 -0
- package/src/models/azureserviceoverrides.ts +39 -0
- package/src/models/clientconfigunion.ts +602 -0
- package/src/models/commandstatusresponse.ts +6 -0
- package/src/models/commandtarget.ts +61 -0
- package/src/models/commandtargettype.ts +28 -0
- package/src/models/containerheartbeatdata.ts +6 -0
- package/src/models/createcommandrequest.ts +10 -0
- package/src/models/daemonheartbeatdata.ts +12 -0
- package/src/models/envelope.ts +9 -0
- package/src/models/gcpcredentials.ts +335 -0
- package/src/models/gcpimpersonationconfig.ts +67 -0
- package/src/models/gcpserviceoverrides.ts +39 -0
- package/src/models/index.ts +15 -0
- package/src/models/kubernetesclientconfig.ts +220 -0
- package/src/models/leaserequest.ts +11 -0
- package/src/models/mintcredentialsrequest.ts +70 -0
- package/src/models/mintcredentialsresponse.ts +62 -0
- package/src/models/resolvecredentialsresponse.ts +9 -2
- package/src/models/resourceref.ts +1 -4
- package/src/models/tracecontext.ts +44 -0
- package/src/sdk/credentials.ts +12 -0
- package/src/sdk/sdk.ts +5 -5
- package/src/types/async.ts +8 -7
- package/.devcontainer/devcontainer.json +0 -45
- package/esm/lib/dlv.d.ts +0 -14
- package/esm/lib/dlv.d.ts.map +0 -1
- package/esm/lib/dlv.js +0 -46
- package/esm/lib/dlv.js.map +0 -1
- package/esm/lib/is-plain-object.d.ts +0 -2
- package/esm/lib/is-plain-object.d.ts.map +0 -1
- package/esm/lib/is-plain-object.js +0 -38
- package/esm/lib/is-plain-object.js.map +0 -1
- package/examples/package.json +0 -18
- package/src/lib/dlv.ts +0 -53
- package/src/lib/is-plain-object.ts +0 -43
- package/tsconfig.json +0 -40
|
@@ -101,7 +101,9 @@ export type ContainerHeartbeatDataHorizonPlatform = {
|
|
|
101
101
|
cpu?: MetricSample | null | undefined;
|
|
102
102
|
events: Array<ManagedRuntimeEventSnapshot>;
|
|
103
103
|
image?: string | null | undefined;
|
|
104
|
+
latestUpdateTimestamp?: string | null | undefined;
|
|
104
105
|
memory?: MetricSample | null | undefined;
|
|
106
|
+
observedImage?: string | null | undefined;
|
|
105
107
|
replicaUnits: Array<ManagedRuntimeUnitStatus>;
|
|
106
108
|
replicas: WorkloadReplicaStatus;
|
|
107
109
|
schedulingMode: HorizonWorkloadSchedulingMode;
|
|
@@ -217,7 +219,9 @@ export type ContainerHeartbeatDataHorizonPlatform$Outbound = {
|
|
|
217
219
|
cpu?: MetricSample$Outbound | null | undefined;
|
|
218
220
|
events: Array<ManagedRuntimeEventSnapshot$Outbound>;
|
|
219
221
|
image?: string | null | undefined;
|
|
222
|
+
latestUpdateTimestamp?: string | null | undefined;
|
|
220
223
|
memory?: MetricSample$Outbound | null | undefined;
|
|
224
|
+
observedImage?: string | null | undefined;
|
|
221
225
|
replicaUnits: Array<ManagedRuntimeUnitStatus$Outbound>;
|
|
222
226
|
replicas: WorkloadReplicaStatus$Outbound;
|
|
223
227
|
schedulingMode: string;
|
|
@@ -235,7 +239,9 @@ export const ContainerHeartbeatDataHorizonPlatform$outboundSchema: z.ZodType<
|
|
|
235
239
|
cpu: z.nullable(MetricSample$outboundSchema).optional(),
|
|
236
240
|
events: z.array(ManagedRuntimeEventSnapshot$outboundSchema),
|
|
237
241
|
image: z.nullable(z.string()).optional(),
|
|
242
|
+
latestUpdateTimestamp: z.nullable(z.string()).optional(),
|
|
238
243
|
memory: z.nullable(MetricSample$outboundSchema).optional(),
|
|
244
|
+
observedImage: z.nullable(z.string()).optional(),
|
|
239
245
|
replicaUnits: z.array(ManagedRuntimeUnitStatus$outboundSchema),
|
|
240
246
|
replicas: WorkloadReplicaStatus$outboundSchema,
|
|
241
247
|
schedulingMode: HorizonWorkloadSchedulingMode$outboundSchema,
|
|
@@ -33,6 +33,14 @@ export type CreateCommandRequest = {
|
|
|
33
33
|
* Body specification supporting inline and storage modes
|
|
34
34
|
*/
|
|
35
35
|
params: BodySpec;
|
|
36
|
+
/**
|
|
37
|
+
* Optional explicit target resource ID within the deployment's stack.
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* When omitted, the target is resolved server-side (single-target shorthand):
|
|
41
|
+
* exactly one command-capable resource must exist, or resolution fails.
|
|
42
|
+
*/
|
|
43
|
+
targetResourceId?: string | null | undefined;
|
|
36
44
|
};
|
|
37
45
|
|
|
38
46
|
/** @internal */
|
|
@@ -42,6 +50,7 @@ export type CreateCommandRequest$Outbound = {
|
|
|
42
50
|
deploymentId: string;
|
|
43
51
|
idempotencyKey?: string | null | undefined;
|
|
44
52
|
params: BodySpec$Outbound;
|
|
53
|
+
targetResourceId?: string | null | undefined;
|
|
45
54
|
};
|
|
46
55
|
|
|
47
56
|
/** @internal */
|
|
@@ -54,6 +63,7 @@ export const CreateCommandRequest$outboundSchema: z.ZodType<
|
|
|
54
63
|
deploymentId: z.string(),
|
|
55
64
|
idempotencyKey: z.nullable(z.string()).optional(),
|
|
56
65
|
params: BodySpec$outboundSchema,
|
|
66
|
+
targetResourceId: z.nullable(z.string()).optional(),
|
|
57
67
|
});
|
|
58
68
|
|
|
59
69
|
export function createCommandRequestToJSON(
|
|
@@ -97,6 +97,7 @@ export type DaemonHeartbeatDataMachines = {
|
|
|
97
97
|
horizonStatusMessage?: string | null | undefined;
|
|
98
98
|
horizonStatusReason?: string | null | undefined;
|
|
99
99
|
latestUpdateTimestamp: string;
|
|
100
|
+
observedImage?: string | null | undefined;
|
|
100
101
|
status: WorkloadHeartbeatStatus;
|
|
101
102
|
unavailableInstances: number;
|
|
102
103
|
backend: "machines";
|
|
@@ -116,6 +117,7 @@ export type DaemonHeartbeatDataAzure = {
|
|
|
116
117
|
horizonStatusMessage?: string | null | undefined;
|
|
117
118
|
horizonStatusReason?: string | null | undefined;
|
|
118
119
|
latestUpdateTimestamp: string;
|
|
120
|
+
observedImage?: string | null | undefined;
|
|
119
121
|
status: WorkloadHeartbeatStatus;
|
|
120
122
|
unavailableInstances: number;
|
|
121
123
|
backend: "azure";
|
|
@@ -135,6 +137,7 @@ export type DaemonHeartbeatDataGcp = {
|
|
|
135
137
|
horizonStatusMessage?: string | null | undefined;
|
|
136
138
|
horizonStatusReason?: string | null | undefined;
|
|
137
139
|
latestUpdateTimestamp: string;
|
|
140
|
+
observedImage?: string | null | undefined;
|
|
138
141
|
status: WorkloadHeartbeatStatus;
|
|
139
142
|
unavailableInstances: number;
|
|
140
143
|
backend: "gcp";
|
|
@@ -154,6 +157,7 @@ export type DaemonHeartbeatDataAws = {
|
|
|
154
157
|
horizonStatusMessage?: string | null | undefined;
|
|
155
158
|
horizonStatusReason?: string | null | undefined;
|
|
156
159
|
latestUpdateTimestamp: string;
|
|
160
|
+
observedImage?: string | null | undefined;
|
|
157
161
|
status: WorkloadHeartbeatStatus;
|
|
158
162
|
unavailableInstances: number;
|
|
159
163
|
backend: "aws";
|
|
@@ -268,6 +272,7 @@ export type DaemonHeartbeatDataMachines$Outbound = {
|
|
|
268
272
|
horizonStatusMessage?: string | null | undefined;
|
|
269
273
|
horizonStatusReason?: string | null | undefined;
|
|
270
274
|
latestUpdateTimestamp: string;
|
|
275
|
+
observedImage?: string | null | undefined;
|
|
271
276
|
status: WorkloadHeartbeatStatus$Outbound;
|
|
272
277
|
unavailableInstances: number;
|
|
273
278
|
backend: "machines";
|
|
@@ -291,6 +296,7 @@ export const DaemonHeartbeatDataMachines$outboundSchema: z.ZodType<
|
|
|
291
296
|
horizonStatusMessage: z.nullable(z.string()).optional(),
|
|
292
297
|
horizonStatusReason: z.nullable(z.string()).optional(),
|
|
293
298
|
latestUpdateTimestamp: z.string(),
|
|
299
|
+
observedImage: z.nullable(z.string()).optional(),
|
|
294
300
|
status: WorkloadHeartbeatStatus$outboundSchema,
|
|
295
301
|
unavailableInstances: z.int(),
|
|
296
302
|
backend: z.literal("machines"),
|
|
@@ -321,6 +327,7 @@ export type DaemonHeartbeatDataAzure$Outbound = {
|
|
|
321
327
|
horizonStatusMessage?: string | null | undefined;
|
|
322
328
|
horizonStatusReason?: string | null | undefined;
|
|
323
329
|
latestUpdateTimestamp: string;
|
|
330
|
+
observedImage?: string | null | undefined;
|
|
324
331
|
status: WorkloadHeartbeatStatus$Outbound;
|
|
325
332
|
unavailableInstances: number;
|
|
326
333
|
backend: "azure";
|
|
@@ -344,6 +351,7 @@ export const DaemonHeartbeatDataAzure$outboundSchema: z.ZodType<
|
|
|
344
351
|
horizonStatusMessage: z.nullable(z.string()).optional(),
|
|
345
352
|
horizonStatusReason: z.nullable(z.string()).optional(),
|
|
346
353
|
latestUpdateTimestamp: z.string(),
|
|
354
|
+
observedImage: z.nullable(z.string()).optional(),
|
|
347
355
|
status: WorkloadHeartbeatStatus$outboundSchema,
|
|
348
356
|
unavailableInstances: z.int(),
|
|
349
357
|
backend: z.literal("azure"),
|
|
@@ -372,6 +380,7 @@ export type DaemonHeartbeatDataGcp$Outbound = {
|
|
|
372
380
|
horizonStatusMessage?: string | null | undefined;
|
|
373
381
|
horizonStatusReason?: string | null | undefined;
|
|
374
382
|
latestUpdateTimestamp: string;
|
|
383
|
+
observedImage?: string | null | undefined;
|
|
375
384
|
status: WorkloadHeartbeatStatus$Outbound;
|
|
376
385
|
unavailableInstances: number;
|
|
377
386
|
backend: "gcp";
|
|
@@ -395,6 +404,7 @@ export const DaemonHeartbeatDataGcp$outboundSchema: z.ZodType<
|
|
|
395
404
|
horizonStatusMessage: z.nullable(z.string()).optional(),
|
|
396
405
|
horizonStatusReason: z.nullable(z.string()).optional(),
|
|
397
406
|
latestUpdateTimestamp: z.string(),
|
|
407
|
+
observedImage: z.nullable(z.string()).optional(),
|
|
398
408
|
status: WorkloadHeartbeatStatus$outboundSchema,
|
|
399
409
|
unavailableInstances: z.int(),
|
|
400
410
|
backend: z.literal("gcp"),
|
|
@@ -423,6 +433,7 @@ export type DaemonHeartbeatDataAws$Outbound = {
|
|
|
423
433
|
horizonStatusMessage?: string | null | undefined;
|
|
424
434
|
horizonStatusReason?: string | null | undefined;
|
|
425
435
|
latestUpdateTimestamp: string;
|
|
436
|
+
observedImage?: string | null | undefined;
|
|
426
437
|
status: WorkloadHeartbeatStatus$Outbound;
|
|
427
438
|
unavailableInstances: number;
|
|
428
439
|
backend: "aws";
|
|
@@ -446,6 +457,7 @@ export const DaemonHeartbeatDataAws$outboundSchema: z.ZodType<
|
|
|
446
457
|
horizonStatusMessage: z.nullable(z.string()).optional(),
|
|
447
458
|
horizonStatusReason: z.nullable(z.string()).optional(),
|
|
448
459
|
latestUpdateTimestamp: z.string(),
|
|
460
|
+
observedImage: z.nullable(z.string()).optional(),
|
|
449
461
|
status: WorkloadHeartbeatStatus$outboundSchema,
|
|
450
462
|
unavailableInstances: z.int(),
|
|
451
463
|
backend: z.literal("aws"),
|
package/src/models/envelope.ts
CHANGED
|
@@ -6,11 +6,13 @@ import * as z from "zod/v4";
|
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
8
|
import { BodySpec, BodySpec$inboundSchema } from "./bodyspec.js";
|
|
9
|
+
import { CommandTarget, CommandTarget$inboundSchema } from "./commandtarget.js";
|
|
9
10
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
11
|
import {
|
|
11
12
|
ResponseHandling,
|
|
12
13
|
ResponseHandling$inboundSchema,
|
|
13
14
|
} from "./responsehandling.js";
|
|
15
|
+
import { TraceContext, TraceContext$inboundSchema } from "./tracecontext.js";
|
|
14
16
|
|
|
15
17
|
/**
|
|
16
18
|
* Commands envelope sent to deployments
|
|
@@ -48,6 +50,11 @@ export type Envelope = {
|
|
|
48
50
|
* Response handling configuration for deployments
|
|
49
51
|
*/
|
|
50
52
|
responseHandling: ResponseHandling;
|
|
53
|
+
/**
|
|
54
|
+
* Identifies the specific resource a command is addressed to.
|
|
55
|
+
*/
|
|
56
|
+
target: CommandTarget;
|
|
57
|
+
traceContext?: TraceContext | null | undefined;
|
|
51
58
|
};
|
|
52
59
|
|
|
53
60
|
/** @internal */
|
|
@@ -62,6 +69,8 @@ export const Envelope$inboundSchema: z.ZodType<Envelope, unknown> = z.object({
|
|
|
62
69
|
params: BodySpec$inboundSchema,
|
|
63
70
|
protocol: z.string(),
|
|
64
71
|
responseHandling: ResponseHandling$inboundSchema,
|
|
72
|
+
target: CommandTarget$inboundSchema,
|
|
73
|
+
traceContext: z.nullable(TraceContext$inboundSchema).optional(),
|
|
65
74
|
});
|
|
66
75
|
|
|
67
76
|
export function envelopeFromJSON(
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
GcpImpersonationConfig,
|
|
12
|
+
GcpImpersonationConfig$inboundSchema,
|
|
13
|
+
} from "./gcpimpersonationconfig.js";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Use gcloud Application Default Credentials (authorized_user).
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* Exchanges refresh_token for an access_token via Google's OAuth2 endpoint.
|
|
20
|
+
*/
|
|
21
|
+
export type GcpCredentialsAuthorizedUser = {
|
|
22
|
+
/**
|
|
23
|
+
* OAuth2 client ID
|
|
24
|
+
*/
|
|
25
|
+
clientId: string;
|
|
26
|
+
/**
|
|
27
|
+
* OAuth2 client secret
|
|
28
|
+
*/
|
|
29
|
+
clientSecret: string;
|
|
30
|
+
/**
|
|
31
|
+
* OAuth2 refresh token
|
|
32
|
+
*/
|
|
33
|
+
refreshToken: string;
|
|
34
|
+
type: "authorizedUser";
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Use an external account credential configuration.
|
|
39
|
+
*/
|
|
40
|
+
export type GcpCredentialsExternalAccount = {
|
|
41
|
+
/**
|
|
42
|
+
* Workload identity audience.
|
|
43
|
+
*/
|
|
44
|
+
audience: string;
|
|
45
|
+
/**
|
|
46
|
+
* Path to the subject token file.
|
|
47
|
+
*/
|
|
48
|
+
credentialSourceFile: string;
|
|
49
|
+
/**
|
|
50
|
+
* Optional service account impersonation URL.
|
|
51
|
+
*/
|
|
52
|
+
serviceAccountImpersonationUrl?: string | null | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Subject token type for STS token exchange.
|
|
55
|
+
*/
|
|
56
|
+
subjectTokenType: string;
|
|
57
|
+
/**
|
|
58
|
+
* STS token exchange URL.
|
|
59
|
+
*/
|
|
60
|
+
tokenUrl: string;
|
|
61
|
+
type: "externalAccount";
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Use projected service account token (for Kubernetes workload identity)
|
|
66
|
+
*/
|
|
67
|
+
export type GcpCredentialsProjectedServiceAccount = {
|
|
68
|
+
/**
|
|
69
|
+
* Service account email
|
|
70
|
+
*/
|
|
71
|
+
serviceAccountEmail: string;
|
|
72
|
+
/**
|
|
73
|
+
* Path to the projected service account token
|
|
74
|
+
*/
|
|
75
|
+
tokenFile: string;
|
|
76
|
+
type: "projectedServiceAccount";
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Use GCP metadata server for authentication (for instances running on GCP)
|
|
81
|
+
*/
|
|
82
|
+
export type GcpCredentialsServiceMetadata = {
|
|
83
|
+
type: "serviceMetadata";
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Use a full Service Account JSON key (as string). A short-lived JWT will
|
|
88
|
+
*
|
|
89
|
+
* @remarks
|
|
90
|
+
* be created and exchanged for a bearer token automatically.
|
|
91
|
+
*/
|
|
92
|
+
export type GcpCredentialsServiceAccountKey = {
|
|
93
|
+
json: string;
|
|
94
|
+
type: "serviceAccountKey";
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Source configuration used to call IAMCredentials.
|
|
99
|
+
*/
|
|
100
|
+
export type Source = {};
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Use a refreshable service account impersonation source.
|
|
104
|
+
*/
|
|
105
|
+
export type GcpCredentialsImpersonatedServiceAccount = {
|
|
106
|
+
/**
|
|
107
|
+
* Configuration for GCP service account impersonation
|
|
108
|
+
*/
|
|
109
|
+
config: GcpImpersonationConfig;
|
|
110
|
+
/**
|
|
111
|
+
* Source configuration used to call IAMCredentials.
|
|
112
|
+
*/
|
|
113
|
+
source: Source;
|
|
114
|
+
type: "impersonatedServiceAccount";
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Use an already-minted OAuth2 access token.
|
|
119
|
+
*/
|
|
120
|
+
export type GcpCredentialsAccessToken = {
|
|
121
|
+
token: string;
|
|
122
|
+
type: "accessToken";
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Authentication options for talking to GCP APIs.
|
|
127
|
+
*/
|
|
128
|
+
export type GcpCredentials =
|
|
129
|
+
| GcpCredentialsAccessToken
|
|
130
|
+
| GcpCredentialsImpersonatedServiceAccount
|
|
131
|
+
| GcpCredentialsServiceAccountKey
|
|
132
|
+
| GcpCredentialsServiceMetadata
|
|
133
|
+
| GcpCredentialsProjectedServiceAccount
|
|
134
|
+
| GcpCredentialsExternalAccount
|
|
135
|
+
| GcpCredentialsAuthorizedUser;
|
|
136
|
+
|
|
137
|
+
/** @internal */
|
|
138
|
+
export const GcpCredentialsAuthorizedUser$inboundSchema: z.ZodType<
|
|
139
|
+
GcpCredentialsAuthorizedUser,
|
|
140
|
+
unknown
|
|
141
|
+
> = z.object({
|
|
142
|
+
client_id: z.string(),
|
|
143
|
+
client_secret: z.string(),
|
|
144
|
+
refresh_token: z.string(),
|
|
145
|
+
type: z.literal("authorizedUser"),
|
|
146
|
+
}).transform((v) => {
|
|
147
|
+
return remap$(v, {
|
|
148
|
+
"client_id": "clientId",
|
|
149
|
+
"client_secret": "clientSecret",
|
|
150
|
+
"refresh_token": "refreshToken",
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
export function gcpCredentialsAuthorizedUserFromJSON(
|
|
155
|
+
jsonString: string,
|
|
156
|
+
): SafeParseResult<GcpCredentialsAuthorizedUser, SDKValidationError> {
|
|
157
|
+
return safeParse(
|
|
158
|
+
jsonString,
|
|
159
|
+
(x) => GcpCredentialsAuthorizedUser$inboundSchema.parse(JSON.parse(x)),
|
|
160
|
+
`Failed to parse 'GcpCredentialsAuthorizedUser' from JSON`,
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/** @internal */
|
|
165
|
+
export const GcpCredentialsExternalAccount$inboundSchema: z.ZodType<
|
|
166
|
+
GcpCredentialsExternalAccount,
|
|
167
|
+
unknown
|
|
168
|
+
> = z.object({
|
|
169
|
+
audience: z.string(),
|
|
170
|
+
credential_source_file: z.string(),
|
|
171
|
+
service_account_impersonation_url: z.nullable(z.string()).optional(),
|
|
172
|
+
subject_token_type: z.string(),
|
|
173
|
+
token_url: z.string(),
|
|
174
|
+
type: z.literal("externalAccount"),
|
|
175
|
+
}).transform((v) => {
|
|
176
|
+
return remap$(v, {
|
|
177
|
+
"credential_source_file": "credentialSourceFile",
|
|
178
|
+
"service_account_impersonation_url": "serviceAccountImpersonationUrl",
|
|
179
|
+
"subject_token_type": "subjectTokenType",
|
|
180
|
+
"token_url": "tokenUrl",
|
|
181
|
+
});
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
export function gcpCredentialsExternalAccountFromJSON(
|
|
185
|
+
jsonString: string,
|
|
186
|
+
): SafeParseResult<GcpCredentialsExternalAccount, SDKValidationError> {
|
|
187
|
+
return safeParse(
|
|
188
|
+
jsonString,
|
|
189
|
+
(x) => GcpCredentialsExternalAccount$inboundSchema.parse(JSON.parse(x)),
|
|
190
|
+
`Failed to parse 'GcpCredentialsExternalAccount' from JSON`,
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/** @internal */
|
|
195
|
+
export const GcpCredentialsProjectedServiceAccount$inboundSchema: z.ZodType<
|
|
196
|
+
GcpCredentialsProjectedServiceAccount,
|
|
197
|
+
unknown
|
|
198
|
+
> = z.object({
|
|
199
|
+
service_account_email: z.string(),
|
|
200
|
+
token_file: z.string(),
|
|
201
|
+
type: z.literal("projectedServiceAccount"),
|
|
202
|
+
}).transform((v) => {
|
|
203
|
+
return remap$(v, {
|
|
204
|
+
"service_account_email": "serviceAccountEmail",
|
|
205
|
+
"token_file": "tokenFile",
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
export function gcpCredentialsProjectedServiceAccountFromJSON(
|
|
210
|
+
jsonString: string,
|
|
211
|
+
): SafeParseResult<GcpCredentialsProjectedServiceAccount, SDKValidationError> {
|
|
212
|
+
return safeParse(
|
|
213
|
+
jsonString,
|
|
214
|
+
(x) =>
|
|
215
|
+
GcpCredentialsProjectedServiceAccount$inboundSchema.parse(JSON.parse(x)),
|
|
216
|
+
`Failed to parse 'GcpCredentialsProjectedServiceAccount' from JSON`,
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/** @internal */
|
|
221
|
+
export const GcpCredentialsServiceMetadata$inboundSchema: z.ZodType<
|
|
222
|
+
GcpCredentialsServiceMetadata,
|
|
223
|
+
unknown
|
|
224
|
+
> = z.object({
|
|
225
|
+
type: z.literal("serviceMetadata"),
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
export function gcpCredentialsServiceMetadataFromJSON(
|
|
229
|
+
jsonString: string,
|
|
230
|
+
): SafeParseResult<GcpCredentialsServiceMetadata, SDKValidationError> {
|
|
231
|
+
return safeParse(
|
|
232
|
+
jsonString,
|
|
233
|
+
(x) => GcpCredentialsServiceMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
234
|
+
`Failed to parse 'GcpCredentialsServiceMetadata' from JSON`,
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/** @internal */
|
|
239
|
+
export const GcpCredentialsServiceAccountKey$inboundSchema: z.ZodType<
|
|
240
|
+
GcpCredentialsServiceAccountKey,
|
|
241
|
+
unknown
|
|
242
|
+
> = z.object({
|
|
243
|
+
json: z.string(),
|
|
244
|
+
type: z.literal("serviceAccountKey"),
|
|
245
|
+
});
|
|
246
|
+
|
|
247
|
+
export function gcpCredentialsServiceAccountKeyFromJSON(
|
|
248
|
+
jsonString: string,
|
|
249
|
+
): SafeParseResult<GcpCredentialsServiceAccountKey, SDKValidationError> {
|
|
250
|
+
return safeParse(
|
|
251
|
+
jsonString,
|
|
252
|
+
(x) => GcpCredentialsServiceAccountKey$inboundSchema.parse(JSON.parse(x)),
|
|
253
|
+
`Failed to parse 'GcpCredentialsServiceAccountKey' from JSON`,
|
|
254
|
+
);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/** @internal */
|
|
258
|
+
export const Source$inboundSchema: z.ZodType<Source, unknown> = z.object({});
|
|
259
|
+
|
|
260
|
+
export function sourceFromJSON(
|
|
261
|
+
jsonString: string,
|
|
262
|
+
): SafeParseResult<Source, SDKValidationError> {
|
|
263
|
+
return safeParse(
|
|
264
|
+
jsonString,
|
|
265
|
+
(x) => Source$inboundSchema.parse(JSON.parse(x)),
|
|
266
|
+
`Failed to parse 'Source' from JSON`,
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/** @internal */
|
|
271
|
+
export const GcpCredentialsImpersonatedServiceAccount$inboundSchema: z.ZodType<
|
|
272
|
+
GcpCredentialsImpersonatedServiceAccount,
|
|
273
|
+
unknown
|
|
274
|
+
> = z.object({
|
|
275
|
+
config: GcpImpersonationConfig$inboundSchema,
|
|
276
|
+
source: z.lazy(() => Source$inboundSchema),
|
|
277
|
+
type: z.literal("impersonatedServiceAccount"),
|
|
278
|
+
});
|
|
279
|
+
|
|
280
|
+
export function gcpCredentialsImpersonatedServiceAccountFromJSON(
|
|
281
|
+
jsonString: string,
|
|
282
|
+
): SafeParseResult<
|
|
283
|
+
GcpCredentialsImpersonatedServiceAccount,
|
|
284
|
+
SDKValidationError
|
|
285
|
+
> {
|
|
286
|
+
return safeParse(
|
|
287
|
+
jsonString,
|
|
288
|
+
(x) =>
|
|
289
|
+
GcpCredentialsImpersonatedServiceAccount$inboundSchema.parse(
|
|
290
|
+
JSON.parse(x),
|
|
291
|
+
),
|
|
292
|
+
`Failed to parse 'GcpCredentialsImpersonatedServiceAccount' from JSON`,
|
|
293
|
+
);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/** @internal */
|
|
297
|
+
export const GcpCredentialsAccessToken$inboundSchema: z.ZodType<
|
|
298
|
+
GcpCredentialsAccessToken,
|
|
299
|
+
unknown
|
|
300
|
+
> = z.object({
|
|
301
|
+
token: z.string(),
|
|
302
|
+
type: z.literal("accessToken"),
|
|
303
|
+
});
|
|
304
|
+
|
|
305
|
+
export function gcpCredentialsAccessTokenFromJSON(
|
|
306
|
+
jsonString: string,
|
|
307
|
+
): SafeParseResult<GcpCredentialsAccessToken, SDKValidationError> {
|
|
308
|
+
return safeParse(
|
|
309
|
+
jsonString,
|
|
310
|
+
(x) => GcpCredentialsAccessToken$inboundSchema.parse(JSON.parse(x)),
|
|
311
|
+
`Failed to parse 'GcpCredentialsAccessToken' from JSON`,
|
|
312
|
+
);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/** @internal */
|
|
316
|
+
export const GcpCredentials$inboundSchema: z.ZodType<GcpCredentials, unknown> =
|
|
317
|
+
z.union([
|
|
318
|
+
z.lazy(() => GcpCredentialsAccessToken$inboundSchema),
|
|
319
|
+
z.lazy(() => GcpCredentialsImpersonatedServiceAccount$inboundSchema),
|
|
320
|
+
z.lazy(() => GcpCredentialsServiceAccountKey$inboundSchema),
|
|
321
|
+
z.lazy(() => GcpCredentialsServiceMetadata$inboundSchema),
|
|
322
|
+
z.lazy(() => GcpCredentialsProjectedServiceAccount$inboundSchema),
|
|
323
|
+
z.lazy(() => GcpCredentialsExternalAccount$inboundSchema),
|
|
324
|
+
z.lazy(() => GcpCredentialsAuthorizedUser$inboundSchema),
|
|
325
|
+
]);
|
|
326
|
+
|
|
327
|
+
export function gcpCredentialsFromJSON(
|
|
328
|
+
jsonString: string,
|
|
329
|
+
): SafeParseResult<GcpCredentials, SDKValidationError> {
|
|
330
|
+
return safeParse(
|
|
331
|
+
jsonString,
|
|
332
|
+
(x) => GcpCredentials$inboundSchema.parse(JSON.parse(x)),
|
|
333
|
+
`Failed to parse 'GcpCredentials' from JSON`,
|
|
334
|
+
);
|
|
335
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Configuration for GCP service account impersonation
|
|
12
|
+
*/
|
|
13
|
+
export type GcpImpersonationConfig = {
|
|
14
|
+
/**
|
|
15
|
+
* Optional sequence of service accounts in a delegation chain
|
|
16
|
+
*/
|
|
17
|
+
delegates?: Array<string> | null | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Optional desired lifetime duration of the access token (max 3600s)
|
|
20
|
+
*/
|
|
21
|
+
lifetime?: string | null | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* The OAuth 2.0 scopes that define the access token's permissions
|
|
24
|
+
*/
|
|
25
|
+
scopes: Array<string>;
|
|
26
|
+
/**
|
|
27
|
+
* The email of the service account to impersonate
|
|
28
|
+
*/
|
|
29
|
+
serviceAccountEmail: string;
|
|
30
|
+
/**
|
|
31
|
+
* Optional target project ID override. When provided, the impersonated config
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* uses this project ID instead of inheriting the caller's project.
|
|
35
|
+
*/
|
|
36
|
+
targetProjectId?: string | null | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Optional target region override. When provided, the impersonated config
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
* uses this region instead of inheriting the caller's region.
|
|
42
|
+
*/
|
|
43
|
+
targetRegion?: string | null | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const GcpImpersonationConfig$inboundSchema: z.ZodType<
|
|
48
|
+
GcpImpersonationConfig,
|
|
49
|
+
unknown
|
|
50
|
+
> = z.object({
|
|
51
|
+
delegates: z.nullable(z.array(z.string())).optional(),
|
|
52
|
+
lifetime: z.nullable(z.string()).optional(),
|
|
53
|
+
scopes: z.array(z.string()),
|
|
54
|
+
serviceAccountEmail: z.string(),
|
|
55
|
+
targetProjectId: z.nullable(z.string()).optional(),
|
|
56
|
+
targetRegion: z.nullable(z.string()).optional(),
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
export function gcpImpersonationConfigFromJSON(
|
|
60
|
+
jsonString: string,
|
|
61
|
+
): SafeParseResult<GcpImpersonationConfig, SDKValidationError> {
|
|
62
|
+
return safeParse(
|
|
63
|
+
jsonString,
|
|
64
|
+
(x) => GcpImpersonationConfig$inboundSchema.parse(JSON.parse(x)),
|
|
65
|
+
`Failed to parse 'GcpImpersonationConfig' from JSON`,
|
|
66
|
+
);
|
|
67
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Service endpoint overrides for testing GCP services
|
|
12
|
+
*/
|
|
13
|
+
export type GcpServiceOverrides = {
|
|
14
|
+
/**
|
|
15
|
+
* Override endpoints for specific GCP services
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Key is the service name (e.g., "cloudrun", "storage"), value is the base URL
|
|
19
|
+
*/
|
|
20
|
+
endpoints: { [k: string]: string };
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const GcpServiceOverrides$inboundSchema: z.ZodType<
|
|
25
|
+
GcpServiceOverrides,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
endpoints: z.record(z.string(), z.string()),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export function gcpServiceOverridesFromJSON(
|
|
32
|
+
jsonString: string,
|
|
33
|
+
): SafeParseResult<GcpServiceOverrides, SDKValidationError> {
|
|
34
|
+
return safeParse(
|
|
35
|
+
jsonString,
|
|
36
|
+
(x) => GcpServiceOverrides$inboundSchema.parse(JSON.parse(x)),
|
|
37
|
+
`Failed to parse 'GcpServiceOverrides' from JSON`,
|
|
38
|
+
);
|
|
39
|
+
}
|