@alienplatform/manager-api 3.3.1 → 3.3.2
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/.devcontainer/devcontainer.json +45 -0
- package/FUNCTIONS.md +2 -2
- package/README.md +29 -28
- package/esm/funcs/bindingsResolveBinding.d.ts +12 -0
- package/esm/funcs/bindingsResolveBinding.d.ts.map +1 -0
- package/esm/funcs/bindingsResolveBinding.js +76 -0
- package/esm/funcs/bindingsResolveBinding.js.map +1 -0
- package/esm/funcs/commandsCreateCommand.d.ts.map +1 -1
- package/esm/funcs/commandsCreateCommand.js +1 -2
- package/esm/funcs/commandsCreateCommand.js.map +1 -1
- package/esm/funcs/commandsGetCommandPayload.d.ts.map +1 -1
- package/esm/funcs/commandsGetCommandPayload.js +1 -2
- package/esm/funcs/commandsGetCommandPayload.js.map +1 -1
- package/esm/funcs/commandsGetCommandStatus.d.ts.map +1 -1
- package/esm/funcs/commandsGetCommandStatus.js +1 -2
- package/esm/funcs/commandsGetCommandStatus.js.map +1 -1
- package/esm/funcs/commandsStoreCommandPayload.d.ts.map +1 -1
- package/esm/funcs/commandsStoreCommandPayload.js +1 -2
- package/esm/funcs/commandsStoreCommandPayload.js.map +1 -1
- package/esm/funcs/commandsSubmitResponse.d.ts.map +1 -1
- package/esm/funcs/commandsSubmitResponse.js +1 -2
- package/esm/funcs/commandsSubmitResponse.js.map +1 -1
- package/esm/funcs/commandsUploadComplete.d.ts.map +1 -1
- package/esm/funcs/commandsUploadComplete.js +1 -2
- package/esm/funcs/commandsUploadComplete.js.map +1 -1
- package/esm/funcs/credentialsMintCredentials.d.ts.map +1 -1
- package/esm/funcs/credentialsMintCredentials.js +1 -2
- package/esm/funcs/credentialsMintCredentials.js.map +1 -1
- package/esm/funcs/deploymentGroupsCreateDeploymentGroup.d.ts.map +1 -1
- package/esm/funcs/deploymentGroupsCreateDeploymentGroup.js +1 -2
- package/esm/funcs/deploymentGroupsCreateDeploymentGroup.js.map +1 -1
- package/esm/funcs/deploymentGroupsCreateDeploymentGroupToken.d.ts.map +1 -1
- package/esm/funcs/deploymentGroupsCreateDeploymentGroupToken.js +1 -2
- package/esm/funcs/deploymentGroupsCreateDeploymentGroupToken.js.map +1 -1
- package/esm/funcs/deploymentGroupsGetDeploymentGroup.d.ts.map +1 -1
- package/esm/funcs/deploymentGroupsGetDeploymentGroup.js +1 -2
- package/esm/funcs/deploymentGroupsGetDeploymentGroup.js.map +1 -1
- package/esm/funcs/deploymentGroupsListDeploymentGroups.d.ts.map +1 -1
- package/esm/funcs/deploymentGroupsListDeploymentGroups.js +1 -2
- package/esm/funcs/deploymentGroupsListDeploymentGroups.js.map +1 -1
- package/esm/funcs/deploymentsCreateDeployment.d.ts.map +1 -1
- package/esm/funcs/deploymentsCreateDeployment.js +1 -2
- package/esm/funcs/deploymentsCreateDeployment.js.map +1 -1
- package/esm/funcs/deploymentsDeleteDeployment.d.ts.map +1 -1
- package/esm/funcs/deploymentsDeleteDeployment.js +1 -2
- package/esm/funcs/deploymentsDeleteDeployment.js.map +1 -1
- package/esm/funcs/deploymentsGetDeployment.d.ts.map +1 -1
- package/esm/funcs/deploymentsGetDeployment.js +1 -2
- package/esm/funcs/deploymentsGetDeployment.js.map +1 -1
- package/esm/funcs/deploymentsGetDeploymentInfo.d.ts.map +1 -1
- package/esm/funcs/deploymentsGetDeploymentInfo.js +1 -2
- package/esm/funcs/deploymentsGetDeploymentInfo.js.map +1 -1
- package/esm/funcs/deploymentsListDeployments.d.ts.map +1 -1
- package/esm/funcs/deploymentsListDeployments.js +1 -2
- package/esm/funcs/deploymentsListDeployments.js.map +1 -1
- package/esm/funcs/deploymentsRedeploy.d.ts.map +1 -1
- package/esm/funcs/deploymentsRedeploy.js +1 -2
- package/esm/funcs/deploymentsRedeploy.js.map +1 -1
- package/esm/funcs/deploymentsRetryDeployment.d.ts.map +1 -1
- package/esm/funcs/deploymentsRetryDeployment.js +1 -2
- package/esm/funcs/deploymentsRetryDeployment.js.map +1 -1
- package/esm/funcs/healthHealth.d.ts.map +1 -1
- package/esm/funcs/healthHealth.js +1 -2
- package/esm/funcs/healthHealth.js.map +1 -1
- package/esm/funcs/leasesAcquireLeases.d.ts.map +1 -1
- package/esm/funcs/leasesAcquireLeases.js +1 -2
- package/esm/funcs/leasesAcquireLeases.js.map +1 -1
- package/esm/funcs/leasesReleaseLease.d.ts.map +1 -1
- package/esm/funcs/leasesReleaseLease.js +1 -2
- package/esm/funcs/leasesReleaseLease.js.map +1 -1
- package/esm/funcs/releasesCreateRelease.d.ts.map +1 -1
- package/esm/funcs/releasesCreateRelease.js +1 -2
- package/esm/funcs/releasesCreateRelease.js.map +1 -1
- package/esm/funcs/releasesGetLatestRelease.d.ts.map +1 -1
- package/esm/funcs/releasesGetLatestRelease.js +1 -2
- package/esm/funcs/releasesGetLatestRelease.js.map +1 -1
- package/esm/funcs/releasesGetRelease.d.ts.map +1 -1
- package/esm/funcs/releasesGetRelease.js +1 -2
- package/esm/funcs/releasesGetRelease.js.map +1 -1
- package/esm/funcs/releasesListReleases.d.ts.map +1 -1
- package/esm/funcs/releasesListReleases.js +1 -2
- package/esm/funcs/releasesListReleases.js.map +1 -1
- package/esm/funcs/stackImportStackImport.d.ts.map +1 -1
- package/esm/funcs/stackImportStackImport.js +1 -2
- package/esm/funcs/stackImportStackImport.js.map +1 -1
- package/esm/funcs/syncAcquire.d.ts.map +1 -1
- package/esm/funcs/syncAcquire.js +1 -2
- package/esm/funcs/syncAcquire.js.map +1 -1
- package/esm/funcs/syncAgentSync.d.ts.map +1 -1
- package/esm/funcs/syncAgentSync.js +1 -2
- package/esm/funcs/syncAgentSync.js.map +1 -1
- package/esm/funcs/syncInitialize.d.ts.map +1 -1
- package/esm/funcs/syncInitialize.js +1 -2
- package/esm/funcs/syncInitialize.js.map +1 -1
- package/esm/funcs/syncReconcile.d.ts.map +1 -1
- package/esm/funcs/syncReconcile.js +1 -2
- package/esm/funcs/syncReconcile.js.map +1 -1
- package/esm/funcs/syncRelease.d.ts.map +1 -1
- package/esm/funcs/syncRelease.js +1 -2
- package/esm/funcs/syncRelease.js.map +1 -1
- package/esm/funcs/{credentialsResolveCredentials.d.ts → syncRenew.d.ts} +5 -2
- package/esm/funcs/syncRenew.d.ts.map +1 -0
- package/esm/funcs/{credentialsResolveCredentials.js → syncRenew.js} +12 -9
- package/esm/funcs/syncRenew.js.map +1 -0
- package/esm/funcs/whoamiWhoami.d.ts.map +1 -1
- package/esm/funcs/whoamiWhoami.js +1 -2
- package/esm/funcs/whoamiWhoami.js.map +1 -1
- package/esm/hooks/types.d.ts +0 -1
- package/esm/hooks/types.d.ts.map +1 -1
- package/esm/lib/config.d.ts +11 -3
- package/esm/lib/config.d.ts.map +1 -1
- package/esm/lib/config.js +16 -6
- package/esm/lib/config.js.map +1 -1
- package/esm/lib/dlv.d.ts +14 -0
- package/esm/lib/dlv.d.ts.map +1 -0
- package/esm/lib/dlv.js +46 -0
- package/esm/lib/dlv.js.map +1 -0
- package/esm/lib/encodings.d.ts +0 -1
- package/esm/lib/encodings.d.ts.map +1 -1
- package/esm/lib/encodings.js +6 -27
- 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 +0 -13
- package/esm/lib/files.d.ts.map +1 -1
- package/esm/lib/files.js +0 -18
- 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/is-plain-object.d.ts +2 -0
- package/esm/lib/is-plain-object.d.ts.map +1 -0
- package/esm/lib/is-plain-object.js +38 -0
- package/esm/lib/is-plain-object.js.map +1 -0
- package/esm/lib/matchers.d.ts.map +1 -1
- package/esm/lib/matchers.js +2 -1
- package/esm/lib/matchers.js.map +1 -1
- package/esm/lib/primitives.d.ts +0 -1
- package/esm/lib/primitives.d.ts.map +1 -1
- package/esm/lib/primitives.js +0 -17
- package/esm/lib/primitives.js.map +1 -1
- package/esm/lib/retries.js +0 -7
- 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 +26 -62
- package/esm/lib/sdks.js.map +1 -1
- package/esm/lib/security.d.ts +5 -6
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/lib/security.js +15 -24
- package/esm/lib/security.js.map +1 -1
- package/esm/lib/url.d.ts.map +1 -1
- package/esm/lib/url.js +2 -4
- package/esm/lib/url.js.map +1 -1
- package/esm/models/aiheartbeatdata.d.ts +79 -0
- package/esm/models/aiheartbeatdata.d.ts.map +1 -0
- package/esm/models/aiheartbeatdata.js +56 -0
- package/esm/models/aiheartbeatdata.js.map +1 -0
- package/esm/models/aiheartbeatstatus.d.ts +25 -0
- package/esm/models/aiheartbeatstatus.d.ts.map +1 -0
- package/esm/models/aiheartbeatstatus.js +20 -0
- package/esm/models/aiheartbeatstatus.js.map +1 -0
- package/esm/models/computepoolselection.d.ts +5 -0
- package/esm/models/computepoolselection.d.ts.map +1 -1
- package/esm/models/computepoolselection.js +22 -0
- package/esm/models/computepoolselection.js.map +1 -1
- package/esm/models/errors/alienerror.d.ts +173 -0
- package/esm/models/errors/alienerror.d.ts.map +1 -0
- package/esm/models/errors/alienerror.js +59 -0
- package/esm/models/errors/alienerror.js.map +1 -0
- package/esm/models/errors/index.d.ts +1 -0
- package/esm/models/errors/index.d.ts.map +1 -1
- package/esm/models/errors/index.js +1 -0
- package/esm/models/errors/index.js.map +1 -1
- package/esm/models/exposeprotocol.d.ts +16 -0
- package/esm/models/exposeprotocol.d.ts.map +1 -0
- package/esm/models/exposeprotocol.js +15 -0
- package/esm/models/exposeprotocol.js.map +1 -0
- package/esm/models/failuredomainselection.d.ts +31 -0
- package/esm/models/failuredomainselection.d.ts.map +1 -0
- package/esm/models/failuredomainselection.js +22 -0
- package/esm/models/failuredomainselection.js.map +1 -0
- package/esm/models/index.d.ts +18 -2
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +18 -2
- package/esm/models/index.js.map +1 -1
- package/esm/models/loadbalancerendpoint.d.ts +23 -0
- package/esm/models/loadbalancerendpoint.d.ts.map +1 -0
- package/esm/models/loadbalancerendpoint.js +14 -0
- package/esm/models/loadbalancerendpoint.js.map +1 -0
- package/esm/models/publicendpointoutput.d.ts +35 -0
- package/esm/models/publicendpointoutput.d.ts.map +1 -0
- package/esm/models/publicendpointoutput.js +21 -0
- package/esm/models/publicendpointoutput.js.map +1 -0
- package/esm/models/remoteawsclientconfig.d.ts +28 -0
- package/esm/models/remoteawsclientconfig.d.ts.map +1 -0
- package/esm/models/remoteawsclientconfig.js +16 -0
- package/esm/models/remoteawsclientconfig.js.map +1 -0
- package/esm/models/remoteawscredentials.d.ts +43 -0
- package/esm/models/remoteawscredentials.d.ts.map +1 -0
- package/esm/models/remoteawscredentials.js +27 -0
- package/esm/models/remoteawscredentials.js.map +1 -0
- package/esm/models/remoteazureclientconfig.d.ts +32 -0
- package/esm/models/remoteazureclientconfig.d.ts.map +1 -0
- package/esm/models/remoteazureclientconfig.js +17 -0
- package/esm/models/remoteazureclientconfig.js.map +1 -0
- package/esm/models/remoteazurecredentials.d.ts +28 -0
- package/esm/models/remoteazurecredentials.d.ts.map +1 -0
- package/esm/models/remoteazurecredentials.js +24 -0
- package/esm/models/remoteazurecredentials.js.map +1 -0
- package/esm/models/remoteblobstoragebinding.d.ts +20 -0
- package/esm/models/remoteblobstoragebinding.d.ts.map +1 -0
- package/esm/models/remoteblobstoragebinding.js +14 -0
- package/esm/models/remoteblobstoragebinding.js.map +1 -0
- package/esm/models/remotegcpclientconfig.d.ts +32 -0
- package/esm/models/remotegcpclientconfig.d.ts.map +1 -0
- package/esm/models/remotegcpclientconfig.js +17 -0
- package/esm/models/remotegcpclientconfig.js.map +1 -0
- package/esm/models/remotegcpcredentials.d.ts +31 -0
- package/esm/models/remotegcpcredentials.d.ts.map +1 -0
- package/esm/models/remotegcpcredentials.js +24 -0
- package/esm/models/remotegcpcredentials.js.map +1 -0
- package/esm/models/remotegcsstoragebinding.d.ts +16 -0
- package/esm/models/remotegcsstoragebinding.d.ts.map +1 -0
- package/esm/models/remotegcsstoragebinding.js +13 -0
- package/esm/models/remotegcsstoragebinding.js.map +1 -0
- package/esm/models/remotes3storagebinding.d.ts +16 -0
- package/esm/models/remotes3storagebinding.d.ts.map +1 -0
- package/esm/models/remotes3storagebinding.js +13 -0
- package/esm/models/remotes3storagebinding.js.map +1 -0
- package/esm/models/renewrequest.d.ts +14 -0
- package/esm/models/renewrequest.d.ts.map +1 -0
- package/esm/models/renewrequest.js +13 -0
- package/esm/models/renewrequest.js.map +1 -0
- package/esm/models/resolvebindingrequest.d.ts +23 -0
- package/esm/models/resolvebindingrequest.d.ts.map +1 -0
- package/esm/models/resolvebindingrequest.js +13 -0
- package/esm/models/resolvebindingrequest.js.map +1 -0
- package/esm/models/resolvebindingresponse.d.ts +83 -0
- package/esm/models/resolvebindingresponse.d.ts.map +1 -0
- package/esm/models/resolvebindingresponse.js +51 -0
- package/esm/models/resolvebindingresponse.js.map +1 -0
- package/esm/models/resourceentry.d.ts +4 -0
- package/esm/models/resourceentry.d.ts.map +1 -1
- package/esm/models/resourceentry.js +3 -0
- package/esm/models/resourceentry.js.map +1 -1
- package/esm/models/resourceheartbeatdata.d.ts +15 -2
- package/esm/models/resourceheartbeatdata.d.ts.map +1 -1
- package/esm/models/resourceheartbeatdata.js +10 -0
- package/esm/models/resourceheartbeatdata.js.map +1 -1
- package/esm/sdk/bindings.d.ts +6 -0
- package/esm/sdk/bindings.d.ts.map +1 -0
- package/esm/sdk/bindings.js +12 -0
- package/esm/sdk/bindings.js.map +1 -0
- package/esm/sdk/credentials.d.ts +0 -1
- package/esm/sdk/credentials.d.ts.map +1 -1
- package/esm/sdk/credentials.js +0 -4
- package/esm/sdk/credentials.js.map +1 -1
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +4 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/sync.d.ts +4 -0
- package/esm/sdk/sync.d.ts.map +1 -1
- package/esm/sdk/sync.js +7 -0
- package/esm/sdk/sync.js.map +1 -1
- package/esm/types/async.d.ts.map +1 -1
- package/esm/types/async.js +7 -8
- package/esm/types/async.js.map +1 -1
- package/examples/package.json +18 -0
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/funcs/bindingsResolveBinding.ts +163 -0
- package/src/funcs/commandsCreateCommand.ts +1 -3
- package/src/funcs/commandsGetCommandPayload.ts +2 -3
- package/src/funcs/commandsGetCommandStatus.ts +2 -3
- package/src/funcs/commandsStoreCommandPayload.ts +2 -3
- package/src/funcs/commandsSubmitResponse.ts +2 -3
- package/src/funcs/commandsUploadComplete.ts +2 -3
- package/src/funcs/credentialsMintCredentials.ts +1 -3
- package/src/funcs/deploymentGroupsCreateDeploymentGroup.ts +1 -3
- package/src/funcs/deploymentGroupsCreateDeploymentGroupToken.ts +2 -3
- package/src/funcs/deploymentGroupsGetDeploymentGroup.ts +2 -3
- package/src/funcs/deploymentGroupsListDeploymentGroups.ts +1 -3
- package/src/funcs/deploymentsCreateDeployment.ts +1 -3
- package/src/funcs/deploymentsDeleteDeployment.ts +2 -3
- package/src/funcs/deploymentsGetDeployment.ts +2 -3
- package/src/funcs/deploymentsGetDeploymentInfo.ts +2 -3
- package/src/funcs/deploymentsListDeployments.ts +1 -3
- package/src/funcs/deploymentsRedeploy.ts +2 -3
- package/src/funcs/deploymentsRetryDeployment.ts +2 -3
- package/src/funcs/healthHealth.ts +1 -3
- package/src/funcs/leasesAcquireLeases.ts +1 -3
- package/src/funcs/leasesReleaseLease.ts +2 -3
- package/src/funcs/releasesCreateRelease.ts +1 -3
- package/src/funcs/releasesGetLatestRelease.ts +1 -3
- package/src/funcs/releasesGetRelease.ts +2 -3
- package/src/funcs/releasesListReleases.ts +1 -3
- package/src/funcs/stackImportStackImport.ts +1 -3
- package/src/funcs/syncAcquire.ts +1 -3
- package/src/funcs/syncAgentSync.ts +1 -3
- package/src/funcs/syncInitialize.ts +1 -3
- package/src/funcs/syncReconcile.ts +1 -3
- package/src/funcs/syncRelease.ts +1 -3
- package/src/funcs/{credentialsResolveCredentials.ts → syncRenew.ts} +16 -14
- package/src/funcs/whoamiWhoami.ts +1 -3
- package/src/hooks/types.ts +0 -1
- package/src/lib/config.ts +23 -8
- package/src/lib/dlv.ts +53 -0
- package/src/lib/encodings.ts +5 -33
- package/src/lib/env.ts +3 -7
- package/src/lib/files.ts +0 -22
- package/src/lib/http.ts +1 -3
- package/src/lib/is-plain-object.ts +43 -0
- package/src/lib/matchers.ts +3 -4
- package/src/lib/primitives.ts +0 -16
- package/src/lib/retries.ts +0 -8
- package/src/lib/sdks.ts +30 -66
- package/src/lib/security.ts +10 -26
- package/src/lib/url.ts +14 -16
- package/src/models/aiheartbeatdata.ts +184 -0
- package/src/models/aiheartbeatstatus.ts +58 -0
- package/src/models/computepoolselection.ts +31 -0
- package/src/models/errors/alienerror.ts +213 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/exposeprotocol.ts +22 -0
- package/src/models/failuredomainselection.ts +65 -0
- package/src/models/index.ts +18 -2
- package/src/models/loadbalancerendpoint.ts +44 -0
- package/src/models/publicendpointoutput.ts +67 -0
- package/src/models/remoteawsclientconfig.ts +53 -0
- package/src/models/remoteawscredentials.ts +88 -0
- package/src/models/remoteazureclientconfig.ts +58 -0
- package/src/models/remoteazurecredentials.ts +69 -0
- package/src/models/remoteblobstoragebinding.ts +41 -0
- package/src/models/remotegcpclientconfig.ts +58 -0
- package/src/models/remotegcpcredentials.ts +72 -0
- package/src/models/remotegcsstoragebinding.ts +36 -0
- package/src/models/remotes3storagebinding.ts +36 -0
- package/src/models/renewrequest.ts +29 -0
- package/src/models/resolvebindingrequest.ts +42 -0
- package/src/models/resolvebindingresponse.ts +183 -0
- package/src/models/resourceentry.ts +7 -0
- package/src/models/resourceheartbeatdata.ts +38 -2
- package/src/sdk/bindings.ts +21 -0
- package/src/sdk/credentials.ts +0 -12
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/sync.ts +15 -0
- package/src/types/async.ts +7 -8
- package/tsconfig.json +40 -0
- package/esm/funcs/credentialsResolveCredentials.d.ts.map +0 -1
- package/esm/funcs/credentialsResolveCredentials.js.map +0 -1
- package/esm/models/resolvecredentialsrequest.d.ts +0 -12
- package/esm/models/resolvecredentialsrequest.d.ts.map +0 -1
- package/esm/models/resolvecredentialsrequest.js +0 -12
- package/esm/models/resolvecredentialsrequest.js.map +0 -1
- package/esm/models/resolvecredentialsresponse.d.ts +0 -14
- package/esm/models/resolvecredentialsresponse.d.ts.map +0 -1
- package/esm/models/resolvecredentialsresponse.js +0 -14
- package/esm/models/resolvecredentialsresponse.js.map +0 -1
- package/src/models/resolvecredentialsrequest.ts +0 -30
- package/src/models/resolvecredentialsresponse.ts +0 -37
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
* Failure-domain policy selected for a compute pool.
|
|
12
|
+
*/
|
|
13
|
+
export type FailureDomainSelection = {
|
|
14
|
+
/**
|
|
15
|
+
* Concrete provider domains selected during setup.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Empty delegates deterministic selection to the provider setup implementation.
|
|
19
|
+
*/
|
|
20
|
+
selectedFailureDomains?: Array<string> | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Number of distinct failure domains across which new stateful replicas may be spread.
|
|
23
|
+
*/
|
|
24
|
+
spread: number;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const FailureDomainSelection$inboundSchema: z.ZodType<
|
|
29
|
+
FailureDomainSelection,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
selectedFailureDomains: z.array(z.string()).optional(),
|
|
33
|
+
spread: z.int(),
|
|
34
|
+
});
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type FailureDomainSelection$Outbound = {
|
|
37
|
+
selectedFailureDomains?: Array<string> | undefined;
|
|
38
|
+
spread: number;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const FailureDomainSelection$outboundSchema: z.ZodType<
|
|
43
|
+
FailureDomainSelection$Outbound,
|
|
44
|
+
FailureDomainSelection
|
|
45
|
+
> = z.object({
|
|
46
|
+
selectedFailureDomains: z.array(z.string()).optional(),
|
|
47
|
+
spread: z.int(),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export function failureDomainSelectionToJSON(
|
|
51
|
+
failureDomainSelection: FailureDomainSelection,
|
|
52
|
+
): string {
|
|
53
|
+
return JSON.stringify(
|
|
54
|
+
FailureDomainSelection$outboundSchema.parse(failureDomainSelection),
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
export function failureDomainSelectionFromJSON(
|
|
58
|
+
jsonString: string,
|
|
59
|
+
): SafeParseResult<FailureDomainSelection, SDKValidationError> {
|
|
60
|
+
return safeParse(
|
|
61
|
+
jsonString,
|
|
62
|
+
(x) => FailureDomainSelection$inboundSchema.parse(JSON.parse(x)),
|
|
63
|
+
`Failed to parse 'FailureDomainSelection' from JSON`,
|
|
64
|
+
);
|
|
65
|
+
}
|
package/src/models/index.ts
CHANGED
|
@@ -7,6 +7,8 @@ export * from "./acquirerequest.js";
|
|
|
7
7
|
export * from "./acquireresponse.js";
|
|
8
8
|
export * from "./agentsyncrequest.js";
|
|
9
9
|
export * from "./agentsyncresponse.js";
|
|
10
|
+
export * from "./aiheartbeatdata.js";
|
|
11
|
+
export * from "./aiheartbeatstatus.js";
|
|
10
12
|
export * from "./alienerror.js";
|
|
11
13
|
export * from "./artifactregistryheartbeatdata.js";
|
|
12
14
|
export * from "./artifactregistryheartbeatstatus.js";
|
|
@@ -73,6 +75,8 @@ export * from "./domainsettings.js";
|
|
|
73
75
|
export * from "./envelope.js";
|
|
74
76
|
export * from "./environmentvariable.js";
|
|
75
77
|
export * from "./environmentvariabletype.js";
|
|
78
|
+
export * from "./exposeprotocol.js";
|
|
79
|
+
export * from "./failuredomainselection.js";
|
|
76
80
|
export * from "./gcpcredentials.js";
|
|
77
81
|
export * from "./gcpcustomcertificateconfig.js";
|
|
78
82
|
export * from "./gcpimpersonationconfig.js";
|
|
@@ -123,6 +127,7 @@ export * from "./leaseresponse.js";
|
|
|
123
127
|
export * from "./listdeploymentgroupsresponse.js";
|
|
124
128
|
export * from "./listdeploymentsresponse.js";
|
|
125
129
|
export * from "./listreleasesresponse.js";
|
|
130
|
+
export * from "./loadbalancerendpoint.js";
|
|
126
131
|
export * from "./localoperation.js";
|
|
127
132
|
export * from "./localruntimeeventsnapshot.js";
|
|
128
133
|
export * from "./localruntimeeventsubject.js";
|
|
@@ -155,6 +160,7 @@ export * from "./presignedrequest.js";
|
|
|
155
160
|
export * from "./presignedrequestbackend.js";
|
|
156
161
|
export * from "./providerfleetstatus.js";
|
|
157
162
|
export * from "./providerlifecyclestate.js";
|
|
163
|
+
export * from "./publicendpointoutput.js";
|
|
158
164
|
export * from "./publicendpointtargetsettings.js";
|
|
159
165
|
export * from "./queueheartbeatdata.js";
|
|
160
166
|
export * from "./queueheartbeatstatus.js";
|
|
@@ -164,10 +170,20 @@ export * from "./reconcilerequest.js";
|
|
|
164
170
|
export * from "./reconcileresponse.js";
|
|
165
171
|
export * from "./releaserequest.js";
|
|
166
172
|
export * from "./releaseresponse.js";
|
|
173
|
+
export * from "./remoteawsclientconfig.js";
|
|
174
|
+
export * from "./remoteawscredentials.js";
|
|
175
|
+
export * from "./remoteazureclientconfig.js";
|
|
176
|
+
export * from "./remoteazurecredentials.js";
|
|
177
|
+
export * from "./remoteblobstoragebinding.js";
|
|
178
|
+
export * from "./remotegcpclientconfig.js";
|
|
179
|
+
export * from "./remotegcpcredentials.js";
|
|
180
|
+
export * from "./remotegcsstoragebinding.js";
|
|
181
|
+
export * from "./remotes3storagebinding.js";
|
|
167
182
|
export * from "./remotestackmanagementheartbeatdata.js";
|
|
168
183
|
export * from "./remotestackmanagementheartbeatstatus.js";
|
|
169
|
-
export * from "./
|
|
170
|
-
export * from "./
|
|
184
|
+
export * from "./renewrequest.js";
|
|
185
|
+
export * from "./resolvebindingrequest.js";
|
|
186
|
+
export * from "./resolvebindingresponse.js";
|
|
171
187
|
export * from "./resourceentry.js";
|
|
172
188
|
export * from "./resourceheartbeat.js";
|
|
173
189
|
export * from "./resourceheartbeatdata.js";
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
* Load balancer endpoint information for DNS management.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* This is optional metadata used by the DNS controller to create domain mappings.
|
|
15
|
+
*/
|
|
16
|
+
export type LoadBalancerEndpoint = {
|
|
17
|
+
/**
|
|
18
|
+
* The DNS name of the load balancer endpoint (e.g., ALB DNS, API Gateway domain).
|
|
19
|
+
*/
|
|
20
|
+
dnsName: string;
|
|
21
|
+
/**
|
|
22
|
+
* AWS Route53 hosted zone ID (for ALIAS records). Only set on AWS.
|
|
23
|
+
*/
|
|
24
|
+
hostedZoneId?: string | null | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const LoadBalancerEndpoint$inboundSchema: z.ZodType<
|
|
29
|
+
LoadBalancerEndpoint,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
dnsName: z.string(),
|
|
33
|
+
hostedZoneId: z.nullable(z.string()).optional(),
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export function loadBalancerEndpointFromJSON(
|
|
37
|
+
jsonString: string,
|
|
38
|
+
): SafeParseResult<LoadBalancerEndpoint, SDKValidationError> {
|
|
39
|
+
return safeParse(
|
|
40
|
+
jsonString,
|
|
41
|
+
(x) => LoadBalancerEndpoint$inboundSchema.parse(JSON.parse(x)),
|
|
42
|
+
`Failed to parse 'LoadBalancerEndpoint' from JSON`,
|
|
43
|
+
);
|
|
44
|
+
}
|
|
@@ -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
|
+
import {
|
|
10
|
+
ExposeProtocol,
|
|
11
|
+
ExposeProtocol$inboundSchema,
|
|
12
|
+
} from "./exposeprotocol.js";
|
|
13
|
+
import {
|
|
14
|
+
LoadBalancerEndpoint,
|
|
15
|
+
LoadBalancerEndpoint$inboundSchema,
|
|
16
|
+
} from "./loadbalancerendpoint.js";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Runtime-resolved public endpoint metadata.
|
|
20
|
+
*/
|
|
21
|
+
export type PublicEndpointOutput = {
|
|
22
|
+
/**
|
|
23
|
+
* Hostname for this endpoint.
|
|
24
|
+
*/
|
|
25
|
+
host: string;
|
|
26
|
+
loadBalancerEndpoint?: LoadBalancerEndpoint | null | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Public connection port.
|
|
29
|
+
*/
|
|
30
|
+
port: number;
|
|
31
|
+
/**
|
|
32
|
+
* Protocol for public workload endpoints.
|
|
33
|
+
*/
|
|
34
|
+
protocol: ExposeProtocol;
|
|
35
|
+
/**
|
|
36
|
+
* Base URL for this endpoint.
|
|
37
|
+
*/
|
|
38
|
+
url: string;
|
|
39
|
+
/**
|
|
40
|
+
* Wildcard hostname routed to this endpoint, when configured.
|
|
41
|
+
*/
|
|
42
|
+
wildcardHost?: string | null | undefined;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const PublicEndpointOutput$inboundSchema: z.ZodType<
|
|
47
|
+
PublicEndpointOutput,
|
|
48
|
+
unknown
|
|
49
|
+
> = z.object({
|
|
50
|
+
host: z.string(),
|
|
51
|
+
loadBalancerEndpoint: z.nullable(LoadBalancerEndpoint$inboundSchema)
|
|
52
|
+
.optional(),
|
|
53
|
+
port: z.int(),
|
|
54
|
+
protocol: ExposeProtocol$inboundSchema,
|
|
55
|
+
url: z.string(),
|
|
56
|
+
wildcardHost: z.nullable(z.string()).optional(),
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
export function publicEndpointOutputFromJSON(
|
|
60
|
+
jsonString: string,
|
|
61
|
+
): SafeParseResult<PublicEndpointOutput, SDKValidationError> {
|
|
62
|
+
return safeParse(
|
|
63
|
+
jsonString,
|
|
64
|
+
(x) => PublicEndpointOutput$inboundSchema.parse(JSON.parse(x)),
|
|
65
|
+
`Failed to parse 'PublicEndpointOutput' from JSON`,
|
|
66
|
+
);
|
|
67
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
import {
|
|
10
|
+
RemoteAwsCredentials,
|
|
11
|
+
RemoteAwsCredentials$inboundSchema,
|
|
12
|
+
} from "./remoteawscredentials.js";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Response-safe AWS client configuration. The public contract deliberately
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* has no static, profile, metadata, or web-identity credential variants.
|
|
19
|
+
*/
|
|
20
|
+
export type RemoteAwsClientConfig = {
|
|
21
|
+
/**
|
|
22
|
+
* AWS account containing the bucket.
|
|
23
|
+
*/
|
|
24
|
+
accountId: string;
|
|
25
|
+
/**
|
|
26
|
+
* The only AWS credential form remote binding resolution can return.
|
|
27
|
+
*/
|
|
28
|
+
credentials: RemoteAwsCredentials;
|
|
29
|
+
/**
|
|
30
|
+
* AWS region containing the bucket.
|
|
31
|
+
*/
|
|
32
|
+
region: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const RemoteAwsClientConfig$inboundSchema: z.ZodType<
|
|
37
|
+
RemoteAwsClientConfig,
|
|
38
|
+
unknown
|
|
39
|
+
> = z.object({
|
|
40
|
+
accountId: z.string(),
|
|
41
|
+
credentials: RemoteAwsCredentials$inboundSchema,
|
|
42
|
+
region: z.string(),
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export function remoteAwsClientConfigFromJSON(
|
|
46
|
+
jsonString: string,
|
|
47
|
+
): SafeParseResult<RemoteAwsClientConfig, SDKValidationError> {
|
|
48
|
+
return safeParse(
|
|
49
|
+
jsonString,
|
|
50
|
+
(x) => RemoteAwsClientConfig$inboundSchema.parse(JSON.parse(x)),
|
|
51
|
+
`Failed to parse 'RemoteAwsClientConfig' from JSON`,
|
|
52
|
+
);
|
|
53
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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 { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export const RemoteAwsCredentialsType = {
|
|
12
|
+
SessionCredentials: "sessionCredentials",
|
|
13
|
+
} as const;
|
|
14
|
+
export type RemoteAwsCredentialsType = ClosedEnum<
|
|
15
|
+
typeof RemoteAwsCredentialsType
|
|
16
|
+
>;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Temporary AWS session credentials with an authoritative expiry.
|
|
20
|
+
*/
|
|
21
|
+
export type RemoteAwsCredentialsSessionCredentials = {
|
|
22
|
+
/**
|
|
23
|
+
* AWS access key id.
|
|
24
|
+
*/
|
|
25
|
+
accessKeyId: string;
|
|
26
|
+
/**
|
|
27
|
+
* Provider-reported credential expiry.
|
|
28
|
+
*/
|
|
29
|
+
expiresAt: string;
|
|
30
|
+
/**
|
|
31
|
+
* AWS secret access key.
|
|
32
|
+
*/
|
|
33
|
+
secretAccessKey: string;
|
|
34
|
+
/**
|
|
35
|
+
* AWS session token.
|
|
36
|
+
*/
|
|
37
|
+
sessionToken: string;
|
|
38
|
+
type: RemoteAwsCredentialsType;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* The only AWS credential form remote binding resolution can return.
|
|
43
|
+
*/
|
|
44
|
+
export type RemoteAwsCredentials = RemoteAwsCredentialsSessionCredentials;
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const RemoteAwsCredentialsType$inboundSchema: z.ZodEnum<
|
|
48
|
+
typeof RemoteAwsCredentialsType
|
|
49
|
+
> = z.enum(RemoteAwsCredentialsType);
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const RemoteAwsCredentialsSessionCredentials$inboundSchema: z.ZodType<
|
|
53
|
+
RemoteAwsCredentialsSessionCredentials,
|
|
54
|
+
unknown
|
|
55
|
+
> = z.object({
|
|
56
|
+
accessKeyId: z.string(),
|
|
57
|
+
expiresAt: z.string(),
|
|
58
|
+
secretAccessKey: z.string(),
|
|
59
|
+
sessionToken: z.string(),
|
|
60
|
+
type: RemoteAwsCredentialsType$inboundSchema,
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export function remoteAwsCredentialsSessionCredentialsFromJSON(
|
|
64
|
+
jsonString: string,
|
|
65
|
+
): SafeParseResult<RemoteAwsCredentialsSessionCredentials, SDKValidationError> {
|
|
66
|
+
return safeParse(
|
|
67
|
+
jsonString,
|
|
68
|
+
(x) =>
|
|
69
|
+
RemoteAwsCredentialsSessionCredentials$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'RemoteAwsCredentialsSessionCredentials' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const RemoteAwsCredentials$inboundSchema: z.ZodType<
|
|
76
|
+
RemoteAwsCredentials,
|
|
77
|
+
unknown
|
|
78
|
+
> = z.lazy(() => RemoteAwsCredentialsSessionCredentials$inboundSchema);
|
|
79
|
+
|
|
80
|
+
export function remoteAwsCredentialsFromJSON(
|
|
81
|
+
jsonString: string,
|
|
82
|
+
): SafeParseResult<RemoteAwsCredentials, SDKValidationError> {
|
|
83
|
+
return safeParse(
|
|
84
|
+
jsonString,
|
|
85
|
+
(x) => RemoteAwsCredentials$inboundSchema.parse(JSON.parse(x)),
|
|
86
|
+
`Failed to parse 'RemoteAwsCredentials' from JSON`,
|
|
87
|
+
);
|
|
88
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
import {
|
|
10
|
+
RemoteAzureCredentials,
|
|
11
|
+
RemoteAzureCredentials$inboundSchema,
|
|
12
|
+
} from "./remoteazurecredentials.js";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Response-safe Azure client configuration containing one storage-audience
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* access token for the stack's Remote Bindings identity.
|
|
19
|
+
*/
|
|
20
|
+
export type RemoteAzureClientConfig = {
|
|
21
|
+
/**
|
|
22
|
+
* The only Azure credential form remote binding resolution can return.
|
|
23
|
+
*/
|
|
24
|
+
credentials: RemoteAzureCredentials;
|
|
25
|
+
/**
|
|
26
|
+
* Azure region configured for the deployment.
|
|
27
|
+
*/
|
|
28
|
+
region?: string | null | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Azure subscription containing the storage account.
|
|
31
|
+
*/
|
|
32
|
+
subscriptionId: string;
|
|
33
|
+
/**
|
|
34
|
+
* Azure tenant owning the identity.
|
|
35
|
+
*/
|
|
36
|
+
tenantId: string;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const RemoteAzureClientConfig$inboundSchema: z.ZodType<
|
|
41
|
+
RemoteAzureClientConfig,
|
|
42
|
+
unknown
|
|
43
|
+
> = z.object({
|
|
44
|
+
credentials: RemoteAzureCredentials$inboundSchema,
|
|
45
|
+
region: z.nullable(z.string()).optional(),
|
|
46
|
+
subscriptionId: z.string(),
|
|
47
|
+
tenantId: z.string(),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export function remoteAzureClientConfigFromJSON(
|
|
51
|
+
jsonString: string,
|
|
52
|
+
): SafeParseResult<RemoteAzureClientConfig, SDKValidationError> {
|
|
53
|
+
return safeParse(
|
|
54
|
+
jsonString,
|
|
55
|
+
(x) => RemoteAzureClientConfig$inboundSchema.parse(JSON.parse(x)),
|
|
56
|
+
`Failed to parse 'RemoteAzureClientConfig' from JSON`,
|
|
57
|
+
);
|
|
58
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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 { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export const RemoteAzureCredentialsType = {
|
|
12
|
+
AccessToken: "accessToken",
|
|
13
|
+
} as const;
|
|
14
|
+
export type RemoteAzureCredentialsType = ClosedEnum<
|
|
15
|
+
typeof RemoteAzureCredentialsType
|
|
16
|
+
>;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* OAuth bearer token for `https://storage.azure.com/.default`.
|
|
20
|
+
*/
|
|
21
|
+
export type RemoteAzureCredentialsAccessToken = {
|
|
22
|
+
token: string;
|
|
23
|
+
type: RemoteAzureCredentialsType;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The only Azure credential form remote binding resolution can return.
|
|
28
|
+
*/
|
|
29
|
+
export type RemoteAzureCredentials = RemoteAzureCredentialsAccessToken;
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const RemoteAzureCredentialsType$inboundSchema: z.ZodEnum<
|
|
33
|
+
typeof RemoteAzureCredentialsType
|
|
34
|
+
> = z.enum(RemoteAzureCredentialsType);
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const RemoteAzureCredentialsAccessToken$inboundSchema: z.ZodType<
|
|
38
|
+
RemoteAzureCredentialsAccessToken,
|
|
39
|
+
unknown
|
|
40
|
+
> = z.object({
|
|
41
|
+
token: z.string(),
|
|
42
|
+
type: RemoteAzureCredentialsType$inboundSchema,
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export function remoteAzureCredentialsAccessTokenFromJSON(
|
|
46
|
+
jsonString: string,
|
|
47
|
+
): SafeParseResult<RemoteAzureCredentialsAccessToken, SDKValidationError> {
|
|
48
|
+
return safeParse(
|
|
49
|
+
jsonString,
|
|
50
|
+
(x) => RemoteAzureCredentialsAccessToken$inboundSchema.parse(JSON.parse(x)),
|
|
51
|
+
`Failed to parse 'RemoteAzureCredentialsAccessToken' from JSON`,
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const RemoteAzureCredentials$inboundSchema: z.ZodType<
|
|
57
|
+
RemoteAzureCredentials,
|
|
58
|
+
unknown
|
|
59
|
+
> = z.lazy(() => RemoteAzureCredentialsAccessToken$inboundSchema);
|
|
60
|
+
|
|
61
|
+
export function remoteAzureCredentialsFromJSON(
|
|
62
|
+
jsonString: string,
|
|
63
|
+
): SafeParseResult<RemoteAzureCredentials, SDKValidationError> {
|
|
64
|
+
return safeParse(
|
|
65
|
+
jsonString,
|
|
66
|
+
(x) => RemoteAzureCredentials$inboundSchema.parse(JSON.parse(x)),
|
|
67
|
+
`Failed to parse 'RemoteAzureCredentials' from JSON`,
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
* Concrete Azure Blob Storage topology returned to remote clients.
|
|
12
|
+
*/
|
|
13
|
+
export type RemoteBlobStorageBinding = {
|
|
14
|
+
/**
|
|
15
|
+
* Storage account containing the authorized container.
|
|
16
|
+
*/
|
|
17
|
+
accountName: string;
|
|
18
|
+
/**
|
|
19
|
+
* Blob container authorized by the credential lease.
|
|
20
|
+
*/
|
|
21
|
+
containerName: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const RemoteBlobStorageBinding$inboundSchema: z.ZodType<
|
|
26
|
+
RemoteBlobStorageBinding,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
accountName: z.string(),
|
|
30
|
+
containerName: z.string(),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function remoteBlobStorageBindingFromJSON(
|
|
34
|
+
jsonString: string,
|
|
35
|
+
): SafeParseResult<RemoteBlobStorageBinding, SDKValidationError> {
|
|
36
|
+
return safeParse(
|
|
37
|
+
jsonString,
|
|
38
|
+
(x) => RemoteBlobStorageBinding$inboundSchema.parse(JSON.parse(x)),
|
|
39
|
+
`Failed to parse 'RemoteBlobStorageBinding' from JSON`,
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
import {
|
|
10
|
+
RemoteGcpCredentials,
|
|
11
|
+
RemoteGcpCredentials$inboundSchema,
|
|
12
|
+
} from "./remotegcpcredentials.js";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Response-safe GCP client configuration. Refreshable source credentials and
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* service endpoint overrides cannot be represented by this type.
|
|
19
|
+
*/
|
|
20
|
+
export type RemoteGcpClientConfig = {
|
|
21
|
+
/**
|
|
22
|
+
* The only GCP credential form remote binding resolution can return.
|
|
23
|
+
*/
|
|
24
|
+
credentials: RemoteGcpCredentials;
|
|
25
|
+
/**
|
|
26
|
+
* GCP project containing the bucket.
|
|
27
|
+
*/
|
|
28
|
+
projectId: string;
|
|
29
|
+
/**
|
|
30
|
+
* Numeric GCP project id, when known.
|
|
31
|
+
*/
|
|
32
|
+
projectNumber?: string | null | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* GCP region configured for the deployment.
|
|
35
|
+
*/
|
|
36
|
+
region: string;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const RemoteGcpClientConfig$inboundSchema: z.ZodType<
|
|
41
|
+
RemoteGcpClientConfig,
|
|
42
|
+
unknown
|
|
43
|
+
> = z.object({
|
|
44
|
+
credentials: RemoteGcpCredentials$inboundSchema,
|
|
45
|
+
projectId: z.string(),
|
|
46
|
+
projectNumber: z.nullable(z.string()).optional(),
|
|
47
|
+
region: z.string(),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export function remoteGcpClientConfigFromJSON(
|
|
51
|
+
jsonString: string,
|
|
52
|
+
): SafeParseResult<RemoteGcpClientConfig, SDKValidationError> {
|
|
53
|
+
return safeParse(
|
|
54
|
+
jsonString,
|
|
55
|
+
(x) => RemoteGcpClientConfig$inboundSchema.parse(JSON.parse(x)),
|
|
56
|
+
`Failed to parse 'RemoteGcpClientConfig' from JSON`,
|
|
57
|
+
);
|
|
58
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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 { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export const RemoteGcpCredentialsType = {
|
|
12
|
+
AccessToken: "accessToken",
|
|
13
|
+
} as const;
|
|
14
|
+
export type RemoteGcpCredentialsType = ClosedEnum<
|
|
15
|
+
typeof RemoteGcpCredentialsType
|
|
16
|
+
>;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Short-lived OAuth access token. Its expiry is the response `expiresAt`.
|
|
20
|
+
*/
|
|
21
|
+
export type RemoteGcpCredentialsAccessToken = {
|
|
22
|
+
/**
|
|
23
|
+
* OAuth bearer token.
|
|
24
|
+
*/
|
|
25
|
+
token: string;
|
|
26
|
+
type: RemoteGcpCredentialsType;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The only GCP credential form remote binding resolution can return.
|
|
31
|
+
*/
|
|
32
|
+
export type RemoteGcpCredentials = RemoteGcpCredentialsAccessToken;
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const RemoteGcpCredentialsType$inboundSchema: z.ZodEnum<
|
|
36
|
+
typeof RemoteGcpCredentialsType
|
|
37
|
+
> = z.enum(RemoteGcpCredentialsType);
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const RemoteGcpCredentialsAccessToken$inboundSchema: z.ZodType<
|
|
41
|
+
RemoteGcpCredentialsAccessToken,
|
|
42
|
+
unknown
|
|
43
|
+
> = z.object({
|
|
44
|
+
token: z.string(),
|
|
45
|
+
type: RemoteGcpCredentialsType$inboundSchema,
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export function remoteGcpCredentialsAccessTokenFromJSON(
|
|
49
|
+
jsonString: string,
|
|
50
|
+
): SafeParseResult<RemoteGcpCredentialsAccessToken, SDKValidationError> {
|
|
51
|
+
return safeParse(
|
|
52
|
+
jsonString,
|
|
53
|
+
(x) => RemoteGcpCredentialsAccessToken$inboundSchema.parse(JSON.parse(x)),
|
|
54
|
+
`Failed to parse 'RemoteGcpCredentialsAccessToken' from JSON`,
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const RemoteGcpCredentials$inboundSchema: z.ZodType<
|
|
60
|
+
RemoteGcpCredentials,
|
|
61
|
+
unknown
|
|
62
|
+
> = z.lazy(() => RemoteGcpCredentialsAccessToken$inboundSchema);
|
|
63
|
+
|
|
64
|
+
export function remoteGcpCredentialsFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<RemoteGcpCredentials, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => RemoteGcpCredentials$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'RemoteGcpCredentials' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|