@alienplatform/platform-api 1.5.1 → 1.7.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/README.md +12 -8
- package/esm/funcs/billingGetEntitlements.d.ts +16 -0
- package/esm/funcs/billingGetEntitlements.d.ts.map +1 -0
- package/esm/funcs/{billingGetPlan.js → billingGetEntitlements.js} +14 -8
- package/esm/funcs/billingGetEntitlements.js.map +1 -0
- package/esm/funcs/deploymentsCreateSetupRegistrationOperation.d.ts +16 -0
- package/esm/funcs/deploymentsCreateSetupRegistrationOperation.d.ts.map +1 -0
- package/esm/funcs/{deploymentsAcceptCloudFormationCallback.js → deploymentsCreateSetupRegistrationOperation.js} +10 -11
- package/esm/funcs/deploymentsCreateSetupRegistrationOperation.js.map +1 -0
- package/esm/funcs/deploymentsDelete.d.ts +3 -2
- package/esm/funcs/deploymentsDelete.d.ts.map +1 -1
- package/esm/funcs/deploymentsDelete.js +10 -8
- package/esm/funcs/deploymentsDelete.js.map +1 -1
- package/esm/funcs/{billingGetPlan.d.ts → deploymentsGetSetupRegistrationOperation.d.ts} +5 -3
- package/esm/funcs/deploymentsGetSetupRegistrationOperation.d.ts.map +1 -0
- package/esm/funcs/deploymentsGetSetupRegistrationOperation.js +89 -0
- package/esm/funcs/deploymentsGetSetupRegistrationOperation.js.map +1 -0
- package/esm/funcs/domainsCreate.d.ts +1 -1
- package/esm/funcs/domainsCreate.js +3 -3
- package/esm/funcs/domainsCreate.js.map +1 -1
- package/esm/funcs/{deploymentsAcceptCloudFormationCallback.d.ts → domainsCreateEndpoint.d.ts} +4 -3
- package/esm/funcs/domainsCreateEndpoint.d.ts.map +1 -0
- package/esm/funcs/domainsCreateEndpoint.js +90 -0
- package/esm/funcs/domainsCreateEndpoint.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/billingfeatureflags.d.ts +14 -0
- package/esm/models/billingfeatureflags.d.ts.map +1 -0
- package/esm/models/billingfeatureflags.js +25 -0
- package/esm/models/billingfeatureflags.js.map +1 -0
- package/esm/models/billinglimits.d.ts +15 -0
- package/esm/models/billinglimits.d.ts.map +1 -0
- package/esm/models/billinglimits.js +19 -0
- package/esm/models/billinglimits.js.map +1 -0
- package/esm/models/billingplanstatus.d.ts +13 -0
- package/esm/models/billingplanstatus.d.ts.map +1 -0
- package/esm/models/billingplanstatus.js +14 -0
- package/esm/models/billingplanstatus.js.map +1 -0
- package/esm/models/createsetupregistrationoperationrequest.d.ts +1633 -0
- package/esm/models/createsetupregistrationoperationrequest.d.ts.map +1 -0
- package/esm/models/createsetupregistrationoperationrequest.js +1015 -0
- package/esm/models/createsetupregistrationoperationrequest.js.map +1 -0
- package/esm/models/deletedeploymentrequest.d.ts +21 -0
- package/esm/models/deletedeploymentrequest.d.ts.map +1 -0
- package/esm/models/deletedeploymentrequest.js +19 -0
- package/esm/models/deletedeploymentrequest.js.map +1 -0
- package/esm/models/deletedeploymentresponse.d.ts +20 -0
- package/esm/models/deletedeploymentresponse.d.ts.map +1 -0
- package/esm/models/deletedeploymentresponse.js +21 -0
- package/esm/models/deletedeploymentresponse.js.map +1 -0
- package/esm/models/deployment.d.ts +53 -64
- package/esm/models/deployment.d.ts.map +1 -1
- package/esm/models/deployment.js +32 -44
- package/esm/models/deployment.js.map +1 -1
- package/esm/models/deploymentconnectioninfo.d.ts +3 -0
- package/esm/models/deploymentconnectioninfo.d.ts.map +1 -1
- package/esm/models/deploymentconnectioninfo.js +3 -0
- package/esm/models/deploymentconnectioninfo.js.map +1 -1
- package/esm/models/deploymentdetailresponse.d.ts +53 -64
- package/esm/models/deploymentdetailresponse.d.ts.map +1 -1
- package/esm/models/deploymentdetailresponse.js +34 -47
- package/esm/models/deploymentdetailresponse.js.map +1 -1
- package/esm/models/deploymentinfo.d.ts +4 -0
- package/esm/models/deploymentinfo.d.ts.map +1 -1
- package/esm/models/deploymentinfo.js +1 -0
- package/esm/models/deploymentinfo.js.map +1 -1
- package/esm/models/deploymentlistitemresponse.d.ts +30 -0
- package/esm/models/deploymentlistitemresponse.d.ts.map +1 -1
- package/esm/models/deploymentlistitemresponse.js +20 -0
- package/esm/models/deploymentlistitemresponse.js.map +1 -1
- package/esm/models/deploymentportaldomainresponse.d.ts +3 -4
- package/esm/models/deploymentportaldomainresponse.d.ts.map +1 -1
- package/esm/models/deploymentportaldomainresponse.js +3 -4
- package/esm/models/deploymentportaldomainresponse.js.map +1 -1
- package/esm/models/deploymentrole.d.ts +1 -0
- package/esm/models/deploymentrole.d.ts.map +1 -1
- package/esm/models/deploymentrole.js +1 -0
- package/esm/models/deploymentrole.js.map +1 -1
- package/esm/models/{managerdomainbinding.d.ts → domainendpoint.d.ts} +19 -12
- package/esm/models/domainendpoint.d.ts.map +1 -0
- package/esm/models/{managerdomainbinding.js → domainendpoint.js} +17 -11
- package/esm/models/domainendpoint.js.map +1 -0
- package/esm/models/domainendpointkind.d.ts +12 -0
- package/esm/models/domainendpointkind.d.ts.map +1 -0
- package/esm/models/domainendpointkind.js +13 -0
- package/esm/models/domainendpointkind.js.map +1 -0
- package/esm/models/domainendpointowner.d.ts +12 -0
- package/esm/models/domainendpointowner.d.ts.map +1 -0
- package/esm/models/domainendpointowner.js +15 -0
- package/esm/models/domainendpointowner.js.map +1 -0
- package/esm/models/domainendpointownertype.d.ts +11 -0
- package/esm/models/domainendpointownertype.d.ts.map +1 -0
- package/esm/models/domainendpointownertype.js +12 -0
- package/esm/models/domainendpointownertype.js.map +1 -0
- package/esm/models/domainendpointstatus.d.ts +15 -0
- package/esm/models/domainendpointstatus.d.ts.map +1 -0
- package/esm/models/domainendpointstatus.js +16 -0
- package/esm/models/domainendpointstatus.js.map +1 -0
- package/esm/models/domainwithusage.d.ts +8 -6
- package/esm/models/domainwithusage.d.ts.map +1 -1
- package/esm/models/domainwithusage.js +9 -6
- package/esm/models/domainwithusage.js.map +1 -1
- package/esm/models/event.d.ts +11 -6
- package/esm/models/event.d.ts.map +1 -1
- package/esm/models/event.js +5 -2
- package/esm/models/event.js.map +1 -1
- package/esm/models/importsource.d.ts +8 -18
- package/esm/models/importsource.d.ts.map +1 -1
- package/esm/models/importsource.js +3 -14
- package/esm/models/importsource.js.map +1 -1
- package/esm/models/importsourcekind.d.ts +2 -0
- package/esm/models/importsourcekind.d.ts.map +1 -1
- package/esm/models/importsourcekind.js +3 -1
- package/esm/models/importsourcekind.js.map +1 -1
- package/esm/models/index.d.ts +18 -5
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +18 -5
- package/esm/models/index.js.map +1 -1
- package/esm/models/kubernetesbaseplatform.d.ts +17 -0
- package/esm/models/kubernetesbaseplatform.d.ts.map +1 -0
- package/esm/models/kubernetesbaseplatform.js +15 -0
- package/esm/models/kubernetesbaseplatform.js.map +1 -0
- package/esm/models/managerdeployment.d.ts +3 -0
- package/esm/models/managerdeployment.d.ts.map +1 -1
- package/esm/models/managerdeployment.js +3 -0
- package/esm/models/managerdeployment.js.map +1 -1
- package/esm/models/managerdomainbindingresponse.d.ts +2 -2
- package/esm/models/managerdomainbindingresponse.d.ts.map +1 -1
- package/esm/models/managerdomainbindingresponse.js +2 -2
- package/esm/models/managerdomainbindingresponse.js.map +1 -1
- package/esm/models/newdeploymentrequest.d.ts +9 -0
- package/esm/models/newdeploymentrequest.d.ts.map +1 -1
- package/esm/models/newdeploymentrequest.js +3 -0
- package/esm/models/newdeploymentrequest.js.map +1 -1
- package/esm/models/operations/createdomain.d.ts +21 -0
- package/esm/models/operations/createdomain.d.ts.map +1 -1
- package/esm/models/operations/createdomain.js +11 -0
- package/esm/models/operations/createdomain.js.map +1 -1
- package/esm/models/operations/createdomainendpoint.d.ts +64 -0
- package/esm/models/operations/createdomainendpoint.d.ts.map +1 -0
- package/esm/models/operations/createdomainendpoint.js +51 -0
- package/esm/models/operations/createdomainendpoint.js.map +1 -0
- package/esm/models/operations/createsetupregistrationoperation.d.ts +18 -0
- package/esm/models/operations/createsetupregistrationoperation.d.ts.map +1 -0
- package/esm/models/operations/createsetupregistrationoperation.js +20 -0
- package/esm/models/operations/createsetupregistrationoperation.js.map +1 -0
- package/esm/models/operations/deletedeployment.d.ts +3 -32
- package/esm/models/operations/deletedeployment.d.ts.map +1 -1
- package/esm/models/operations/deletedeployment.js +8 -19
- package/esm/models/operations/deletedeployment.js.map +1 -1
- package/esm/models/operations/getdeploymentstats.d.ts +3 -0
- package/esm/models/operations/getdeploymentstats.d.ts.map +1 -1
- package/esm/models/operations/getdeploymentstats.js +3 -0
- package/esm/models/operations/getdeploymentstats.js.map +1 -1
- package/esm/models/operations/getsetupregistrationoperation.d.ts +20 -0
- package/esm/models/operations/getsetupregistrationoperation.d.ts.map +1 -0
- package/esm/models/operations/getsetupregistrationoperation.js +13 -0
- package/esm/models/operations/getsetupregistrationoperation.js.map +1 -0
- package/esm/models/operations/getworkspacebillingentitlements.d.ts +15 -0
- package/esm/models/operations/getworkspacebillingentitlements.d.ts.map +1 -0
- package/esm/models/operations/getworkspacebillingentitlements.js +12 -0
- package/esm/models/operations/getworkspacebillingentitlements.js.map +1 -0
- package/esm/models/operations/index.d.ts +4 -2
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +4 -2
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/listdeployments.d.ts +3 -0
- package/esm/models/operations/listdeployments.d.ts.map +1 -1
- package/esm/models/operations/listdeployments.js +3 -0
- package/esm/models/operations/listdeployments.js.map +1 -1
- package/esm/models/package.d.ts +4 -0
- package/esm/models/package.d.ts.map +1 -1
- package/esm/models/package.js +1 -0
- package/esm/models/package.js.map +1 -1
- package/esm/models/persistimporteddeploymentrequest.d.ts +11 -88
- package/esm/models/persistimporteddeploymentrequest.d.ts.map +1 -1
- package/esm/models/persistimporteddeploymentrequest.js +6 -73
- package/esm/models/persistimporteddeploymentrequest.js.map +1 -1
- package/esm/models/setupregistrationaction.d.ts +13 -0
- package/esm/models/setupregistrationaction.d.ts.map +1 -0
- package/esm/models/setupregistrationaction.js +14 -0
- package/esm/models/setupregistrationaction.js.map +1 -0
- package/esm/models/setupregistrationcloudformationtarget.d.ts +22 -0
- package/esm/models/setupregistrationcloudformationtarget.d.ts.map +1 -0
- package/esm/models/setupregistrationcloudformationtarget.js +17 -0
- package/esm/models/setupregistrationcloudformationtarget.js.map +1 -0
- package/esm/models/setupregistrationoperationresponse.d.ts +34 -0
- package/esm/models/setupregistrationoperationresponse.d.ts.map +1 -0
- package/esm/models/setupregistrationoperationresponse.js +32 -0
- package/esm/models/setupregistrationoperationresponse.js.map +1 -0
- package/esm/models/setupregistrationoperationresult.d.ts +15 -0
- package/esm/models/setupregistrationoperationresult.d.ts.map +1 -0
- package/esm/models/setupregistrationoperationresult.js +15 -0
- package/esm/models/setupregistrationoperationresult.js.map +1 -0
- package/esm/models/setupregistrationoperationstatus.d.ts +15 -0
- package/esm/models/setupregistrationoperationstatus.d.ts.map +1 -0
- package/esm/models/setupregistrationoperationstatus.js +16 -0
- package/esm/models/setupregistrationoperationstatus.js.map +1 -0
- package/esm/models/syncacquirerequest.d.ts +25 -0
- package/esm/models/syncacquirerequest.d.ts.map +1 -1
- package/esm/models/syncacquirerequest.js +16 -0
- package/esm/models/syncacquirerequest.js.map +1 -1
- package/esm/models/syncacquireresponse.d.ts +197 -90
- package/esm/models/syncacquireresponse.d.ts.map +1 -1
- package/esm/models/syncacquireresponse.js +76 -52
- package/esm/models/syncacquireresponse.js.map +1 -1
- package/esm/models/synclistrequest.d.ts +3 -0
- package/esm/models/synclistrequest.d.ts.map +1 -1
- package/esm/models/synclistrequest.js +3 -0
- package/esm/models/synclistrequest.js.map +1 -1
- package/esm/models/synclistresponse.d.ts +53 -64
- package/esm/models/synclistresponse.d.ts.map +1 -1
- package/esm/models/synclistresponse.js +33 -44
- package/esm/models/synclistresponse.js.map +1 -1
- package/esm/models/syncreconcilerequest.d.ts +118 -173
- package/esm/models/syncreconcilerequest.d.ts.map +1 -1
- package/esm/models/syncreconcilerequest.js +30 -72
- package/esm/models/syncreconcilerequest.js.map +1 -1
- package/esm/models/syncreconcileresponse.d.ts +197 -90
- package/esm/models/syncreconcileresponse.d.ts.map +1 -1
- package/esm/models/syncreconcileresponse.js +76 -55
- package/esm/models/syncreconcileresponse.js.map +1 -1
- package/esm/models/updateproject.d.ts +0 -5
- package/esm/models/updateproject.d.ts.map +1 -1
- package/esm/models/updateproject.js +0 -1
- package/esm/models/updateproject.js.map +1 -1
- package/esm/models/workspacebillingentitlements.d.ts +19 -0
- package/esm/models/workspacebillingentitlements.d.ts.map +1 -0
- package/esm/models/workspacebillingentitlements.js +22 -0
- package/esm/models/workspacebillingentitlements.js.map +1 -0
- package/esm/sdk/billing.d.ts +3 -2
- package/esm/sdk/billing.d.ts.map +1 -1
- package/esm/sdk/billing.js +4 -4
- package/esm/sdk/billing.js.map +1 -1
- package/esm/sdk/deployments.d.ts +10 -6
- package/esm/sdk/deployments.d.ts.map +1 -1
- package/esm/sdk/deployments.js +17 -10
- package/esm/sdk/deployments.js.map +1 -1
- package/esm/sdk/domains.d.ts +5 -1
- package/esm/sdk/domains.d.ts.map +1 -1
- package/esm/sdk/domains.js +8 -1
- package/esm/sdk/domains.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/funcs/{billingGetPlan.ts → billingGetEntitlements.ts} +24 -13
- package/src/funcs/{deploymentsAcceptCloudFormationCallback.ts → deploymentsCreateSetupRegistrationOperation.ts} +18 -15
- package/src/funcs/deploymentsDelete.ts +13 -11
- package/src/funcs/deploymentsGetSetupRegistrationOperation.ts +184 -0
- package/src/funcs/domainsCreate.ts +3 -3
- package/src/funcs/domainsCreateEndpoint.ts +181 -0
- package/src/lib/config.ts +2 -2
- package/src/models/billingfeatureflags.ts +46 -0
- package/src/models/billinglimits.ts +38 -0
- package/src/models/billingplanstatus.ts +20 -0
- package/src/models/createsetupregistrationoperationrequest.ts +4032 -0
- package/src/models/deletedeploymentrequest.ts +45 -0
- package/src/models/deletedeploymentresponse.ts +47 -0
- package/src/models/deployment.ts +64 -116
- package/src/models/deploymentconnectioninfo.ts +3 -0
- package/src/models/deploymentdetailresponse.ts +70 -138
- package/src/models/deploymentinfo.ts +5 -0
- package/src/models/deploymentlistitemresponse.ts +38 -0
- package/src/models/deploymentportaldomainresponse.ts +7 -8
- package/src/models/deploymentrole.ts +1 -0
- package/src/models/{packagedomain.ts → domainendpoint.ts} +40 -35
- package/src/models/domainendpointkind.ts +19 -0
- package/src/models/domainendpointowner.ts +36 -0
- package/src/models/domainendpointownertype.ts +20 -0
- package/src/models/domainendpointstatus.ts +22 -0
- package/src/models/domainwithusage.ts +22 -20
- package/src/models/event.ts +11 -6
- package/src/models/importsource.ts +9 -25
- package/src/models/importsourcekind.ts +5 -1
- package/src/models/index.ts +18 -5
- package/src/models/kubernetesbaseplatform.ts +24 -0
- package/src/models/managerdeployment.ts +3 -0
- package/src/models/managerdomainbindingresponse.ts +6 -6
- package/src/models/newdeploymentrequest.ts +10 -0
- package/src/models/operations/createdomain.ts +33 -0
- package/src/models/operations/createdomainendpoint.ts +131 -0
- package/src/models/operations/createsetupregistrationoperation.ts +51 -0
- package/src/models/operations/deletedeployment.ts +10 -55
- package/src/models/operations/getdeploymentstats.ts +3 -0
- package/src/models/operations/getsetupregistrationoperation.ts +41 -0
- package/src/models/operations/getworkspacebillingentitlements.ts +36 -0
- package/src/models/operations/index.ts +4 -2
- package/src/models/operations/listdeployments.ts +3 -0
- package/src/models/package.ts +5 -0
- package/src/models/persistimporteddeploymentrequest.ts +12 -177
- package/src/models/setupregistrationaction.ts +24 -0
- package/src/models/setupregistrationcloudformationtarget.ts +47 -0
- package/src/models/setupregistrationoperationresponse.ts +99 -0
- package/src/models/setupregistrationoperationresult.ts +37 -0
- package/src/models/setupregistrationoperationstatus.ts +24 -0
- package/src/models/syncacquirerequest.ts +34 -0
- package/src/models/syncacquireresponse.ts +288 -151
- package/src/models/synclistrequest.ts +3 -0
- package/src/models/synclistresponse.ts +69 -124
- package/src/models/syncreconcilerequest.ts +164 -265
- package/src/models/syncreconcileresponse.ts +289 -155
- package/src/models/updateproject.ts +0 -6
- package/src/models/workspacebillingentitlements.ts +52 -0
- package/src/sdk/billing.ts +7 -6
- package/src/sdk/deployments.ts +35 -20
- package/src/sdk/domains.ts +16 -1
- package/esm/funcs/billingGetPlan.d.ts.map +0 -1
- package/esm/funcs/billingGetPlan.js.map +0 -1
- package/esm/funcs/deploymentsAcceptCloudFormationCallback.d.ts.map +0 -1
- package/esm/funcs/deploymentsAcceptCloudFormationCallback.js.map +0 -1
- package/esm/models/cloudformationcallbackrequest.d.ts +0 -1650
- package/esm/models/cloudformationcallbackrequest.d.ts.map +0 -1
- package/esm/models/cloudformationcallbackrequest.js +0 -1002
- package/esm/models/cloudformationcallbackrequest.js.map +0 -1
- package/esm/models/deploymentportaldomain.d.ts +0 -156
- package/esm/models/deploymentportaldomain.d.ts.map +0 -1
- package/esm/models/deploymentportaldomain.js +0 -58
- package/esm/models/deploymentportaldomain.js.map +0 -1
- package/esm/models/managerdomainbinding.d.ts.map +0 -1
- package/esm/models/managerdomainbinding.js.map +0 -1
- package/esm/models/managerdomainbindingstatus.d.ts +0 -15
- package/esm/models/managerdomainbindingstatus.d.ts.map +0 -1
- package/esm/models/managerdomainbindingstatus.js +0 -16
- package/esm/models/managerdomainbindingstatus.js.map +0 -1
- package/esm/models/operations/acceptcloudformationcallback.d.ts +0 -31
- package/esm/models/operations/acceptcloudformationcallback.d.ts.map +0 -1
- package/esm/models/operations/acceptcloudformationcallback.js +0 -30
- package/esm/models/operations/acceptcloudformationcallback.js.map +0 -1
- package/esm/models/operations/getworkspaceplan.d.ts +0 -27
- package/esm/models/operations/getworkspaceplan.d.ts.map +0 -1
- package/esm/models/operations/getworkspaceplan.js +0 -21
- package/esm/models/operations/getworkspaceplan.js.map +0 -1
- package/esm/models/packagedomain.d.ts +0 -143
- package/esm/models/packagedomain.d.ts.map +0 -1
- package/esm/models/packagedomain.js +0 -52
- package/esm/models/packagedomain.js.map +0 -1
- package/src/models/cloudformationcallbackrequest.ts +0 -3915
- package/src/models/deploymentportaldomain.ts +0 -226
- package/src/models/managerdomainbinding.ts +0 -200
- package/src/models/managerdomainbindingstatus.ts +0 -24
- package/src/models/operations/acceptcloudformationcallback.ts +0 -82
- package/src/models/operations/getworkspaceplan.ts +0 -62
|
@@ -1,226 +0,0 @@
|
|
|
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 {
|
|
10
|
-
DeploymentPortalManagedDnsRecord,
|
|
11
|
-
DeploymentPortalManagedDnsRecord$inboundSchema,
|
|
12
|
-
} from "./deploymentportalmanageddnsrecord.js";
|
|
13
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
14
|
-
|
|
15
|
-
export const DeploymentPortalDomainStatus = {
|
|
16
|
-
WaitingForDomain: "waiting-for-domain",
|
|
17
|
-
PendingVercel: "pending-vercel",
|
|
18
|
-
PendingDns: "pending-dns",
|
|
19
|
-
Active: "active",
|
|
20
|
-
Failed: "failed",
|
|
21
|
-
Deleting: "deleting",
|
|
22
|
-
} as const;
|
|
23
|
-
export type DeploymentPortalDomainStatus = ClosedEnum<
|
|
24
|
-
typeof DeploymentPortalDomainStatus
|
|
25
|
-
>;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Canonical error container that provides a structured way to represent errors
|
|
29
|
-
*
|
|
30
|
-
* @remarks
|
|
31
|
-
* with rich metadata including error codes, human-readable messages, context,
|
|
32
|
-
* and chaining capabilities for error propagation.
|
|
33
|
-
*
|
|
34
|
-
* This struct is designed to be both machine-readable and user-friendly,
|
|
35
|
-
* supporting serialization for API responses and detailed error reporting
|
|
36
|
-
* in distributed systems.
|
|
37
|
-
*/
|
|
38
|
-
export type DeploymentPortalDomainError = {
|
|
39
|
-
/**
|
|
40
|
-
* A unique identifier for the type of error.
|
|
41
|
-
*
|
|
42
|
-
* @remarks
|
|
43
|
-
*
|
|
44
|
-
* This should be a short, machine-readable string that can be used
|
|
45
|
-
* by clients to programmatically handle different error types.
|
|
46
|
-
* Examples: "NOT_FOUND", "VALIDATION_ERROR", "TIMEOUT"
|
|
47
|
-
*/
|
|
48
|
-
code: string;
|
|
49
|
-
/**
|
|
50
|
-
* Additional diagnostic information about the error context.
|
|
51
|
-
*
|
|
52
|
-
* @remarks
|
|
53
|
-
*
|
|
54
|
-
* This optional field can contain structured data providing more details
|
|
55
|
-
* about the error, such as validation errors, request parameters that
|
|
56
|
-
* caused the issue, or other relevant context information.
|
|
57
|
-
*/
|
|
58
|
-
context?: any | null | undefined;
|
|
59
|
-
/**
|
|
60
|
-
* Optional human-facing remediation hint.
|
|
61
|
-
*/
|
|
62
|
-
hint?: string | null | undefined;
|
|
63
|
-
/**
|
|
64
|
-
* HTTP status code for this error.
|
|
65
|
-
*
|
|
66
|
-
* @remarks
|
|
67
|
-
*
|
|
68
|
-
* Used when converting the error to an HTTP response. If None, falls back to
|
|
69
|
-
* the error type's default status code or 500.
|
|
70
|
-
*/
|
|
71
|
-
httpStatusCode?: number | null | undefined;
|
|
72
|
-
/**
|
|
73
|
-
* Indicates if this is an internal error that should not be exposed to users.
|
|
74
|
-
*
|
|
75
|
-
* @remarks
|
|
76
|
-
*
|
|
77
|
-
* When `true`, this error contains sensitive information or implementation
|
|
78
|
-
* details that should not be shown to end-users. Such errors should be
|
|
79
|
-
* logged for debugging but replaced with generic error messages in responses.
|
|
80
|
-
*/
|
|
81
|
-
internal: boolean;
|
|
82
|
-
/**
|
|
83
|
-
* Human-readable error message.
|
|
84
|
-
*
|
|
85
|
-
* @remarks
|
|
86
|
-
*
|
|
87
|
-
* This message should be clear and actionable for developers or end-users,
|
|
88
|
-
* providing context about what went wrong and potentially how to fix it.
|
|
89
|
-
*/
|
|
90
|
-
message: string;
|
|
91
|
-
/**
|
|
92
|
-
* Indicates whether the operation that caused the error should be retried.
|
|
93
|
-
*
|
|
94
|
-
* @remarks
|
|
95
|
-
*
|
|
96
|
-
* When `true`, the error is transient and the operation might succeed
|
|
97
|
-
* if attempted again. When `false`, retrying the same operation is
|
|
98
|
-
* unlikely to succeed without changes.
|
|
99
|
-
*/
|
|
100
|
-
retryable: boolean;
|
|
101
|
-
/**
|
|
102
|
-
* The underlying error that caused this error, creating an error chain.
|
|
103
|
-
*
|
|
104
|
-
* @remarks
|
|
105
|
-
*
|
|
106
|
-
* This allows for proper error propagation and debugging by maintaining
|
|
107
|
-
* the full context of how an error occurred through multiple layers
|
|
108
|
-
* of an application.
|
|
109
|
-
*/
|
|
110
|
-
source?: any | null | undefined;
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
export type DeploymentPortalDomain = {
|
|
114
|
-
/**
|
|
115
|
-
* Unique identifier for the deployment portal domain.
|
|
116
|
-
*/
|
|
117
|
-
id: string;
|
|
118
|
-
/**
|
|
119
|
-
* Unique identifier for the workspace.
|
|
120
|
-
*/
|
|
121
|
-
workspaceId: string;
|
|
122
|
-
/**
|
|
123
|
-
* Unique identifier for the project.
|
|
124
|
-
*/
|
|
125
|
-
projectId: string;
|
|
126
|
-
/**
|
|
127
|
-
* Unique identifier for the domain.
|
|
128
|
-
*/
|
|
129
|
-
domainId: string;
|
|
130
|
-
hostname: string;
|
|
131
|
-
status: DeploymentPortalDomainStatus;
|
|
132
|
-
vercelProjectDomain?: { [k: string]: any | null } | null | undefined;
|
|
133
|
-
vercelVerification?: { [k: string]: any | null } | null | undefined;
|
|
134
|
-
vercelDomainConfig?: { [k: string]: any | null } | null | undefined;
|
|
135
|
-
managedDnsRecords: Array<DeploymentPortalManagedDnsRecord>;
|
|
136
|
-
/**
|
|
137
|
-
* Canonical error container that provides a structured way to represent errors
|
|
138
|
-
*
|
|
139
|
-
* @remarks
|
|
140
|
-
* with rich metadata including error codes, human-readable messages, context,
|
|
141
|
-
* and chaining capabilities for error propagation.
|
|
142
|
-
*
|
|
143
|
-
* This struct is designed to be both machine-readable and user-friendly,
|
|
144
|
-
* supporting serialization for API responses and detailed error reporting
|
|
145
|
-
* in distributed systems.
|
|
146
|
-
*/
|
|
147
|
-
error?: DeploymentPortalDomainError | null | undefined;
|
|
148
|
-
lockedAt?: Date | null | undefined;
|
|
149
|
-
lockedBy?: string | null | undefined;
|
|
150
|
-
retryAttempts: number;
|
|
151
|
-
nextStepAfter?: Date | null | undefined;
|
|
152
|
-
createdAt: Date;
|
|
153
|
-
updatedAt: Date;
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
/** @internal */
|
|
157
|
-
export const DeploymentPortalDomainStatus$inboundSchema: z.ZodEnum<
|
|
158
|
-
typeof DeploymentPortalDomainStatus
|
|
159
|
-
> = z.enum(DeploymentPortalDomainStatus);
|
|
160
|
-
|
|
161
|
-
/** @internal */
|
|
162
|
-
export const DeploymentPortalDomainError$inboundSchema: z.ZodType<
|
|
163
|
-
DeploymentPortalDomainError,
|
|
164
|
-
unknown
|
|
165
|
-
> = z.object({
|
|
166
|
-
code: z.string(),
|
|
167
|
-
context: z.nullable(z.any()).optional(),
|
|
168
|
-
hint: z.nullable(z.string()).optional(),
|
|
169
|
-
httpStatusCode: z.nullable(z.int()).optional(),
|
|
170
|
-
internal: z.boolean(),
|
|
171
|
-
message: z.string(),
|
|
172
|
-
retryable: z.boolean().default(false),
|
|
173
|
-
source: z.nullable(z.any()).optional(),
|
|
174
|
-
});
|
|
175
|
-
|
|
176
|
-
export function deploymentPortalDomainErrorFromJSON(
|
|
177
|
-
jsonString: string,
|
|
178
|
-
): SafeParseResult<DeploymentPortalDomainError, SDKValidationError> {
|
|
179
|
-
return safeParse(
|
|
180
|
-
jsonString,
|
|
181
|
-
(x) => DeploymentPortalDomainError$inboundSchema.parse(JSON.parse(x)),
|
|
182
|
-
`Failed to parse 'DeploymentPortalDomainError' from JSON`,
|
|
183
|
-
);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
/** @internal */
|
|
187
|
-
export const DeploymentPortalDomain$inboundSchema: z.ZodType<
|
|
188
|
-
DeploymentPortalDomain,
|
|
189
|
-
unknown
|
|
190
|
-
> = z.object({
|
|
191
|
-
id: z.string(),
|
|
192
|
-
workspaceId: z.string(),
|
|
193
|
-
projectId: z.string(),
|
|
194
|
-
domainId: z.string(),
|
|
195
|
-
hostname: z.string(),
|
|
196
|
-
status: DeploymentPortalDomainStatus$inboundSchema,
|
|
197
|
-
vercelProjectDomain: z.nullable(z.record(z.string(), z.nullable(z.any())))
|
|
198
|
-
.optional(),
|
|
199
|
-
vercelVerification: z.nullable(z.record(z.string(), z.nullable(z.any())))
|
|
200
|
-
.optional(),
|
|
201
|
-
vercelDomainConfig: z.nullable(z.record(z.string(), z.nullable(z.any())))
|
|
202
|
-
.optional(),
|
|
203
|
-
managedDnsRecords: z.array(DeploymentPortalManagedDnsRecord$inboundSchema),
|
|
204
|
-
error: z.nullable(z.lazy(() => DeploymentPortalDomainError$inboundSchema))
|
|
205
|
-
.optional(),
|
|
206
|
-
lockedAt: z.nullable(
|
|
207
|
-
z.iso.datetime({ offset: true }).transform(v => new Date(v)),
|
|
208
|
-
).optional(),
|
|
209
|
-
lockedBy: z.nullable(z.string()).optional(),
|
|
210
|
-
retryAttempts: z.int(),
|
|
211
|
-
nextStepAfter: z.nullable(
|
|
212
|
-
z.iso.datetime({ offset: true }).transform(v => new Date(v)),
|
|
213
|
-
).optional(),
|
|
214
|
-
createdAt: z.iso.datetime({ offset: true }).transform(v => new Date(v)),
|
|
215
|
-
updatedAt: z.iso.datetime({ offset: true }).transform(v => new Date(v)),
|
|
216
|
-
});
|
|
217
|
-
|
|
218
|
-
export function deploymentPortalDomainFromJSON(
|
|
219
|
-
jsonString: string,
|
|
220
|
-
): SafeParseResult<DeploymentPortalDomain, SDKValidationError> {
|
|
221
|
-
return safeParse(
|
|
222
|
-
jsonString,
|
|
223
|
-
(x) => DeploymentPortalDomain$inboundSchema.parse(JSON.parse(x)),
|
|
224
|
-
`Failed to parse 'DeploymentPortalDomain' from JSON`,
|
|
225
|
-
);
|
|
226
|
-
}
|
|
@@ -1,200 +0,0 @@
|
|
|
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 {
|
|
9
|
-
DeploymentPortalManagedDnsRecord,
|
|
10
|
-
DeploymentPortalManagedDnsRecord$inboundSchema,
|
|
11
|
-
} from "./deploymentportalmanageddnsrecord.js";
|
|
12
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
13
|
-
import {
|
|
14
|
-
ManagerDomainBindingStatus,
|
|
15
|
-
ManagerDomainBindingStatus$inboundSchema,
|
|
16
|
-
} from "./managerdomainbindingstatus.js";
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Canonical error container that provides a structured way to represent errors
|
|
20
|
-
*
|
|
21
|
-
* @remarks
|
|
22
|
-
* with rich metadata including error codes, human-readable messages, context,
|
|
23
|
-
* and chaining capabilities for error propagation.
|
|
24
|
-
*
|
|
25
|
-
* This struct is designed to be both machine-readable and user-friendly,
|
|
26
|
-
* supporting serialization for API responses and detailed error reporting
|
|
27
|
-
* in distributed systems.
|
|
28
|
-
*/
|
|
29
|
-
export type ManagerDomainBindingError = {
|
|
30
|
-
/**
|
|
31
|
-
* A unique identifier for the type of error.
|
|
32
|
-
*
|
|
33
|
-
* @remarks
|
|
34
|
-
*
|
|
35
|
-
* This should be a short, machine-readable string that can be used
|
|
36
|
-
* by clients to programmatically handle different error types.
|
|
37
|
-
* Examples: "NOT_FOUND", "VALIDATION_ERROR", "TIMEOUT"
|
|
38
|
-
*/
|
|
39
|
-
code: string;
|
|
40
|
-
/**
|
|
41
|
-
* Additional diagnostic information about the error context.
|
|
42
|
-
*
|
|
43
|
-
* @remarks
|
|
44
|
-
*
|
|
45
|
-
* This optional field can contain structured data providing more details
|
|
46
|
-
* about the error, such as validation errors, request parameters that
|
|
47
|
-
* caused the issue, or other relevant context information.
|
|
48
|
-
*/
|
|
49
|
-
context?: any | null | undefined;
|
|
50
|
-
/**
|
|
51
|
-
* Optional human-facing remediation hint.
|
|
52
|
-
*/
|
|
53
|
-
hint?: string | null | undefined;
|
|
54
|
-
/**
|
|
55
|
-
* HTTP status code for this error.
|
|
56
|
-
*
|
|
57
|
-
* @remarks
|
|
58
|
-
*
|
|
59
|
-
* Used when converting the error to an HTTP response. If None, falls back to
|
|
60
|
-
* the error type's default status code or 500.
|
|
61
|
-
*/
|
|
62
|
-
httpStatusCode?: number | null | undefined;
|
|
63
|
-
/**
|
|
64
|
-
* Indicates if this is an internal error that should not be exposed to users.
|
|
65
|
-
*
|
|
66
|
-
* @remarks
|
|
67
|
-
*
|
|
68
|
-
* When `true`, this error contains sensitive information or implementation
|
|
69
|
-
* details that should not be shown to end-users. Such errors should be
|
|
70
|
-
* logged for debugging but replaced with generic error messages in responses.
|
|
71
|
-
*/
|
|
72
|
-
internal: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Human-readable error message.
|
|
75
|
-
*
|
|
76
|
-
* @remarks
|
|
77
|
-
*
|
|
78
|
-
* This message should be clear and actionable for developers or end-users,
|
|
79
|
-
* providing context about what went wrong and potentially how to fix it.
|
|
80
|
-
*/
|
|
81
|
-
message: string;
|
|
82
|
-
/**
|
|
83
|
-
* Indicates whether the operation that caused the error should be retried.
|
|
84
|
-
*
|
|
85
|
-
* @remarks
|
|
86
|
-
*
|
|
87
|
-
* When `true`, the error is transient and the operation might succeed
|
|
88
|
-
* if attempted again. When `false`, retrying the same operation is
|
|
89
|
-
* unlikely to succeed without changes.
|
|
90
|
-
*/
|
|
91
|
-
retryable: boolean;
|
|
92
|
-
/**
|
|
93
|
-
* The underlying error that caused this error, creating an error chain.
|
|
94
|
-
*
|
|
95
|
-
* @remarks
|
|
96
|
-
*
|
|
97
|
-
* This allows for proper error propagation and debugging by maintaining
|
|
98
|
-
* the full context of how an error occurred through multiple layers
|
|
99
|
-
* of an application.
|
|
100
|
-
*/
|
|
101
|
-
source?: any | null | undefined;
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
export type ManagerDomainBinding = {
|
|
105
|
-
/**
|
|
106
|
-
* Unique identifier for the manager domain binding.
|
|
107
|
-
*/
|
|
108
|
-
id: string;
|
|
109
|
-
/**
|
|
110
|
-
* Unique identifier for the workspace.
|
|
111
|
-
*/
|
|
112
|
-
workspaceId: string;
|
|
113
|
-
managerId: string;
|
|
114
|
-
/**
|
|
115
|
-
* Unique identifier for the domain.
|
|
116
|
-
*/
|
|
117
|
-
domainId: string;
|
|
118
|
-
hostname: string;
|
|
119
|
-
status: ManagerDomainBindingStatus;
|
|
120
|
-
managedDnsRecords: Array<DeploymentPortalManagedDnsRecord>;
|
|
121
|
-
/**
|
|
122
|
-
* Canonical error container that provides a structured way to represent errors
|
|
123
|
-
*
|
|
124
|
-
* @remarks
|
|
125
|
-
* with rich metadata including error codes, human-readable messages, context,
|
|
126
|
-
* and chaining capabilities for error propagation.
|
|
127
|
-
*
|
|
128
|
-
* This struct is designed to be both machine-readable and user-friendly,
|
|
129
|
-
* supporting serialization for API responses and detailed error reporting
|
|
130
|
-
* in distributed systems.
|
|
131
|
-
*/
|
|
132
|
-
error?: ManagerDomainBindingError | null | undefined;
|
|
133
|
-
lockedAt?: Date | null | undefined;
|
|
134
|
-
lockedBy?: string | null | undefined;
|
|
135
|
-
retryAttempts: number;
|
|
136
|
-
nextStepAfter?: Date | null | undefined;
|
|
137
|
-
createdAt: Date;
|
|
138
|
-
updatedAt: Date;
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
/** @internal */
|
|
142
|
-
export const ManagerDomainBindingError$inboundSchema: z.ZodType<
|
|
143
|
-
ManagerDomainBindingError,
|
|
144
|
-
unknown
|
|
145
|
-
> = z.object({
|
|
146
|
-
code: z.string(),
|
|
147
|
-
context: z.nullable(z.any()).optional(),
|
|
148
|
-
hint: z.nullable(z.string()).optional(),
|
|
149
|
-
httpStatusCode: z.nullable(z.int()).optional(),
|
|
150
|
-
internal: z.boolean(),
|
|
151
|
-
message: z.string(),
|
|
152
|
-
retryable: z.boolean().default(false),
|
|
153
|
-
source: z.nullable(z.any()).optional(),
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
export function managerDomainBindingErrorFromJSON(
|
|
157
|
-
jsonString: string,
|
|
158
|
-
): SafeParseResult<ManagerDomainBindingError, SDKValidationError> {
|
|
159
|
-
return safeParse(
|
|
160
|
-
jsonString,
|
|
161
|
-
(x) => ManagerDomainBindingError$inboundSchema.parse(JSON.parse(x)),
|
|
162
|
-
`Failed to parse 'ManagerDomainBindingError' from JSON`,
|
|
163
|
-
);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/** @internal */
|
|
167
|
-
export const ManagerDomainBinding$inboundSchema: z.ZodType<
|
|
168
|
-
ManagerDomainBinding,
|
|
169
|
-
unknown
|
|
170
|
-
> = z.object({
|
|
171
|
-
id: z.string(),
|
|
172
|
-
workspaceId: z.string(),
|
|
173
|
-
managerId: z.string(),
|
|
174
|
-
domainId: z.string(),
|
|
175
|
-
hostname: z.string(),
|
|
176
|
-
status: ManagerDomainBindingStatus$inboundSchema,
|
|
177
|
-
managedDnsRecords: z.array(DeploymentPortalManagedDnsRecord$inboundSchema),
|
|
178
|
-
error: z.nullable(z.lazy(() => ManagerDomainBindingError$inboundSchema))
|
|
179
|
-
.optional(),
|
|
180
|
-
lockedAt: z.nullable(
|
|
181
|
-
z.iso.datetime({ offset: true }).transform(v => new Date(v)),
|
|
182
|
-
).optional(),
|
|
183
|
-
lockedBy: z.nullable(z.string()).optional(),
|
|
184
|
-
retryAttempts: z.int(),
|
|
185
|
-
nextStepAfter: z.nullable(
|
|
186
|
-
z.iso.datetime({ offset: true }).transform(v => new Date(v)),
|
|
187
|
-
).optional(),
|
|
188
|
-
createdAt: z.iso.datetime({ offset: true }).transform(v => new Date(v)),
|
|
189
|
-
updatedAt: z.iso.datetime({ offset: true }).transform(v => new Date(v)),
|
|
190
|
-
});
|
|
191
|
-
|
|
192
|
-
export function managerDomainBindingFromJSON(
|
|
193
|
-
jsonString: string,
|
|
194
|
-
): SafeParseResult<ManagerDomainBinding, SDKValidationError> {
|
|
195
|
-
return safeParse(
|
|
196
|
-
jsonString,
|
|
197
|
-
(x) => ManagerDomainBinding$inboundSchema.parse(JSON.parse(x)),
|
|
198
|
-
`Failed to parse 'ManagerDomainBinding' from JSON`,
|
|
199
|
-
);
|
|
200
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
-
|
|
8
|
-
export const ManagerDomainBindingStatus = {
|
|
9
|
-
WaitingForDomain: "waiting-for-domain",
|
|
10
|
-
WaitingForDeployment: "waiting-for-deployment",
|
|
11
|
-
PendingEdge: "pending-edge",
|
|
12
|
-
PendingHealth: "pending-health",
|
|
13
|
-
Active: "active",
|
|
14
|
-
Failed: "failed",
|
|
15
|
-
Deleting: "deleting",
|
|
16
|
-
} as const;
|
|
17
|
-
export type ManagerDomainBindingStatus = ClosedEnum<
|
|
18
|
-
typeof ManagerDomainBindingStatus
|
|
19
|
-
>;
|
|
20
|
-
|
|
21
|
-
/** @internal */
|
|
22
|
-
export const ManagerDomainBindingStatus$inboundSchema: z.ZodEnum<
|
|
23
|
-
typeof ManagerDomainBindingStatus
|
|
24
|
-
> = z.enum(ManagerDomainBindingStatus);
|
|
@@ -1,82 +0,0 @@
|
|
|
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 * as models from "../index.js";
|
|
11
|
-
|
|
12
|
-
export type AcceptCloudFormationCallbackRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* Workspace name. Defaults to your last workspace (user auth) or your API key's workspace (token auth). When using an API key, if provided, must match the key's workspace.
|
|
15
|
-
*/
|
|
16
|
-
workspace?: string | undefined;
|
|
17
|
-
cloudFormationCallbackRequest?:
|
|
18
|
-
| models.CloudFormationCallbackRequest
|
|
19
|
-
| undefined;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* CloudFormation callback accepted.
|
|
24
|
-
*/
|
|
25
|
-
export type AcceptCloudFormationCallbackResponse = {
|
|
26
|
-
callbackOperationId: string;
|
|
27
|
-
physicalResourceId: string;
|
|
28
|
-
deploymentId: string | null;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
/** @internal */
|
|
32
|
-
export type AcceptCloudFormationCallbackRequest$Outbound = {
|
|
33
|
-
workspace?: string | undefined;
|
|
34
|
-
CloudFormationCallbackRequest?:
|
|
35
|
-
| models.CloudFormationCallbackRequest$Outbound
|
|
36
|
-
| undefined;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
/** @internal */
|
|
40
|
-
export const AcceptCloudFormationCallbackRequest$outboundSchema: z.ZodType<
|
|
41
|
-
AcceptCloudFormationCallbackRequest$Outbound,
|
|
42
|
-
AcceptCloudFormationCallbackRequest
|
|
43
|
-
> = z.object({
|
|
44
|
-
workspace: z.string().optional(),
|
|
45
|
-
cloudFormationCallbackRequest: models
|
|
46
|
-
.CloudFormationCallbackRequest$outboundSchema.optional(),
|
|
47
|
-
}).transform((v) => {
|
|
48
|
-
return remap$(v, {
|
|
49
|
-
cloudFormationCallbackRequest: "CloudFormationCallbackRequest",
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
export function acceptCloudFormationCallbackRequestToJSON(
|
|
54
|
-
acceptCloudFormationCallbackRequest: AcceptCloudFormationCallbackRequest,
|
|
55
|
-
): string {
|
|
56
|
-
return JSON.stringify(
|
|
57
|
-
AcceptCloudFormationCallbackRequest$outboundSchema.parse(
|
|
58
|
-
acceptCloudFormationCallbackRequest,
|
|
59
|
-
),
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/** @internal */
|
|
64
|
-
export const AcceptCloudFormationCallbackResponse$inboundSchema: z.ZodType<
|
|
65
|
-
AcceptCloudFormationCallbackResponse,
|
|
66
|
-
unknown
|
|
67
|
-
> = z.object({
|
|
68
|
-
callbackOperationId: z.string(),
|
|
69
|
-
physicalResourceId: z.string(),
|
|
70
|
-
deploymentId: z.nullable(z.string()),
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
export function acceptCloudFormationCallbackResponseFromJSON(
|
|
74
|
-
jsonString: string,
|
|
75
|
-
): SafeParseResult<AcceptCloudFormationCallbackResponse, SDKValidationError> {
|
|
76
|
-
return safeParse(
|
|
77
|
-
jsonString,
|
|
78
|
-
(x) =>
|
|
79
|
-
AcceptCloudFormationCallbackResponse$inboundSchema.parse(JSON.parse(x)),
|
|
80
|
-
`Failed to parse 'AcceptCloudFormationCallbackResponse' from JSON`,
|
|
81
|
-
);
|
|
82
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
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 * as models from "../index.js";
|
|
10
|
-
|
|
11
|
-
export type GetWorkspacePlanRequest = {
|
|
12
|
-
/**
|
|
13
|
-
* Workspace name. Defaults to your last workspace (user auth) or your API key's workspace (token auth). When using an API key, if provided, must match the key's workspace.
|
|
14
|
-
*/
|
|
15
|
-
workspace?: string | undefined;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Active plan id.
|
|
20
|
-
*/
|
|
21
|
-
export type GetWorkspacePlanResponse = {
|
|
22
|
-
planId: models.PlanId;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
/** @internal */
|
|
26
|
-
export type GetWorkspacePlanRequest$Outbound = {
|
|
27
|
-
workspace?: string | undefined;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
/** @internal */
|
|
31
|
-
export const GetWorkspacePlanRequest$outboundSchema: z.ZodType<
|
|
32
|
-
GetWorkspacePlanRequest$Outbound,
|
|
33
|
-
GetWorkspacePlanRequest
|
|
34
|
-
> = z.object({
|
|
35
|
-
workspace: z.string().optional(),
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
export function getWorkspacePlanRequestToJSON(
|
|
39
|
-
getWorkspacePlanRequest: GetWorkspacePlanRequest,
|
|
40
|
-
): string {
|
|
41
|
-
return JSON.stringify(
|
|
42
|
-
GetWorkspacePlanRequest$outboundSchema.parse(getWorkspacePlanRequest),
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const GetWorkspacePlanResponse$inboundSchema: z.ZodType<
|
|
48
|
-
GetWorkspacePlanResponse,
|
|
49
|
-
unknown
|
|
50
|
-
> = z.object({
|
|
51
|
-
planId: models.PlanId$inboundSchema,
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
export function getWorkspacePlanResponseFromJSON(
|
|
55
|
-
jsonString: string,
|
|
56
|
-
): SafeParseResult<GetWorkspacePlanResponse, SDKValidationError> {
|
|
57
|
-
return safeParse(
|
|
58
|
-
jsonString,
|
|
59
|
-
(x) => GetWorkspacePlanResponse$inboundSchema.parse(JSON.parse(x)),
|
|
60
|
-
`Failed to parse 'GetWorkspacePlanResponse' from JSON`,
|
|
61
|
-
);
|
|
62
|
-
}
|