diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 46556192..e0719b44 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,10 +3,10 @@ id: 79567c4a-05f9-4d65-864d-dfe107aa4e9d management: docChecksum: ace6dfd27d581cc69b1dc2be570456e2 docVersion: 0.0.1 - speakeasyVersion: 1.660.0 - generationVersion: 2.760.2 - releaseVersion: 1.17.7 - configChecksum: e3f84717f051410adb0d58e16cb75719 + speakeasyVersion: 1.666.0 + generationVersion: 2.768.0 + releaseVersion: 1.18.0 + configChecksum: ad4199f2e32c53aa2f7912af486d4de2 repoURL: https://github.com/vercel/sdk.git installationURL: https://github.com/vercel/sdk published: true @@ -16,7 +16,7 @@ features: additionalDependencies: 0.1.0 additionalProperties: 0.1.2 constsAndDefaults: 0.1.12 - core: 3.26.9 + core: 3.26.13 defaultEnabledRetries: 0.1.0 deprecations: 2.81.1 devContainers: 2.90.1 @@ -35,9 +35,9 @@ features: nullables: 0.1.1 responseFormat: 0.2.3 retries: 2.83.0 - sdkHooks: 0.3.0 + sdkHooks: 0.4.0 tests: 0.17.3 - unions: 2.86.0 + unions: 2.86.3 uploadStreams: 0.1.0 generatedFiles: - .devcontainer/README.md @@ -151,7 +151,6 @@ generatedFiles: - docs/models/authtoken.md - docs/models/authtokenscopes1origin.md - docs/models/authtokenscopesorigin.md - - docs/models/authtokenscopestype.md - docs/models/authuser.md - docs/models/authuserbuildentitlements.md - docs/models/authuserconfiguration.md @@ -190,7 +189,6 @@ generatedFiles: - docs/models/blockhistory2.md - docs/models/blockhistory3.md - docs/models/blockhistory4.md - - docs/models/blockhistoryaction.md - docs/models/blockhistoryroute.md - docs/models/blockreason.md - docs/models/blocktype.md @@ -270,10 +268,7 @@ generatedFiles: - docs/models/canceldeploymentgitrepo3.md - docs/models/canceldeploymentgitrepodeploymentsownertype.md - docs/models/canceldeploymentgitrepodeploymentsresponseownertype.md - - docs/models/canceldeploymentgitrepodeploymentsresponsetype.md - - docs/models/canceldeploymentgitrepodeploymentstype.md - docs/models/canceldeploymentgitrepoownertype.md - - docs/models/canceldeploymentgitrepotype.md - docs/models/canceldeploymentgitsource.md - docs/models/canceldeploymentgitsource1.md - docs/models/canceldeploymentgitsource2.md @@ -305,7 +300,6 @@ generatedFiles: - docs/models/canceldeploymenthas2.md - docs/models/canceldeploymenthasdeploymentstype.md - docs/models/canceldeploymenthasdeploymentsvalue.md - - docs/models/canceldeploymenthastype.md - docs/models/canceldeploymenthasvalue.md - docs/models/canceldeploymentimages.md - docs/models/canceldeploymentintegrations.md @@ -320,7 +314,6 @@ generatedFiles: - docs/models/canceldeploymentmissing2.md - docs/models/canceldeploymentmissingdeploymentstype.md - docs/models/canceldeploymentmissingdeploymentsvalue.md - - docs/models/canceldeploymentmissingtype.md - docs/models/canceldeploymentmissingvalue.md - docs/models/canceldeploymentnodeversion.md - docs/models/canceldeploymentoidctokenclaims.md @@ -429,7 +422,6 @@ generatedFiles: - docs/models/contenthint7.md - docs/models/contenthint8.md - docs/models/contenthint9.md - - docs/models/contenthinttype.md - docs/models/country.md - docs/models/createaccessgroupentitlements.md - docs/models/createaccessgroupprojectaccessgroupsrole.md @@ -484,9 +476,7 @@ generatedFiles: - docs/models/createdeploymentdeploymentsstatus.md - docs/models/createdeploymentdeploymentstype.md - docs/models/createdeploymentframework.md - - docs/models/createdeploymentgitrepodeploymentstype.md - docs/models/createdeploymentgitrepoownertype.md - - docs/models/createdeploymentgitrepotype.md - docs/models/createdeploymentgitsource.md - docs/models/createdeploymentgitsource1.md - docs/models/createdeploymentgitsource10.md @@ -531,7 +521,6 @@ generatedFiles: - docs/models/createdeploymenthas2.md - docs/models/createdeploymenthasdeploymentstype.md - docs/models/createdeploymenthasdeploymentsvalue.md - - docs/models/createdeploymenthastype.md - docs/models/createdeploymenthasvalue.md - docs/models/createdeploymentmicrofrontends.md - docs/models/createdeploymentmicrofrontends1.md @@ -577,20 +566,13 @@ generatedFiles: - docs/models/createdraindeliverydrainsencoding.md - docs/models/createdraindeliverydrainsendpoint.md - docs/models/createdraindeliverydrainsresponse200applicationjsonencoding.md - - docs/models/createdraindeliverydrainsresponse200applicationjsonresponsebody2type.md - - docs/models/createdraindeliverydrainsresponse200applicationjsonresponsebodytype.md - - docs/models/createdraindeliverydrainsresponse200applicationjsontype.md - docs/models/createdraindeliverydrainsresponse200encoding.md - - docs/models/createdraindeliverydrainsresponse200type.md - docs/models/createdraindeliverydrainsresponseencoding.md - - docs/models/createdraindeliverydrainsresponsetype.md - docs/models/createdraindeliverydrainssecret.md - - docs/models/createdraindeliverydrainstype.md - docs/models/createdraindeliveryencoding.md - docs/models/createdraindeliveryendpoint.md - docs/models/createdraindeliverysecret.md - docs/models/createdraindeliverytarget.md - - docs/models/createdraindeliverytype.md - docs/models/createdrainfilter1.md - docs/models/createdrainfilter2.md - docs/models/createdrainfilterdeployment.md @@ -603,21 +585,14 @@ generatedFiles: - docs/models/createdrainfilterdrainsresponse2.md - docs/models/createdrainfilterdrainsresponsedeployment.md - docs/models/createdrainfilterdrainsresponseproject.md - - docs/models/createdrainfilterdrainsresponsetype.md - docs/models/createdrainfilterdrainssources.md - - docs/models/createdrainfilterdrainstype.md - docs/models/createdrainfilterenvironments.md - docs/models/createdrainfilterlog.md - docs/models/createdrainfilterproject.md - docs/models/createdrainfiltersources.md - - docs/models/createdrainfiltertype.md - docs/models/createdrainfilterv21.md - docs/models/createdrainfilterv22.md - - docs/models/createdrainfilterv2drainsresponseversion.md - - docs/models/createdrainfilterv2drainsversion.md - docs/models/createdrainfilterv2filter.md - - docs/models/createdrainfilterv2version.md - - docs/models/createdrainprojectaccessaccess.md - docs/models/createdrainprojects.md - docs/models/createdrainrequest.md - docs/models/createdrainrequestbody.md @@ -649,14 +624,9 @@ generatedFiles: - docs/models/createdrainsource2.md - docs/models/createdrainsourcedrains1.md - docs/models/createdrainsourcedrains2.md - - docs/models/createdrainsourcedrainskind.md - - docs/models/createdrainsourcedrainsresponse200kind.md - - docs/models/createdrainsourcedrainsresponsekind.md - - docs/models/createdrainsourcekind.md - docs/models/createdtarget.md - docs/models/createdtype.md - docs/models/createedgeconfigpurpose.md - - docs/models/createedgeconfigpurposetype.md - docs/models/createedgeconfigrequest.md - docs/models/createedgeconfigrequestbody.md - docs/models/createedgeconfigresponsebody.md @@ -666,7 +636,6 @@ generatedFiles: - docs/models/createedgeconfigtokenresponsebody.md - docs/models/createedgeconfigtransfer.md - docs/models/createeventevent.md - - docs/models/createeventeventtype.md - docs/models/createeventrequest.md - docs/models/createeventrequestbody.md - docs/models/createintegrationstoredirectactions.md @@ -907,8 +876,6 @@ generatedFiles: - docs/models/createlogdrainsource.md - docs/models/createlogdrainsource1.md - docs/models/createlogdrainsource2.md - - docs/models/createlogdrainsourcekind.md - - docs/models/createlogdrainsourcelogdrainskind.md - docs/models/createlogdrainsources.md - docs/models/createortransferdomaincreator.md - docs/models/createortransferdomaindomain.md @@ -933,10 +900,6 @@ generatedFiles: - docs/models/createprojectblockhistory2.md - docs/models/createprojectblockhistory3.md - docs/models/createprojectblockhistory4.md - - docs/models/createprojectblockhistoryaction.md - - docs/models/createprojectblockhistoryprojectsaction.md - - docs/models/createprojectblockhistoryprojectsresponse200action.md - - docs/models/createprojectblockhistoryprojectsresponseaction.md - docs/models/createprojectblockhistoryprojectsroute.md - docs/models/createprojectblockhistoryroute.md - docs/models/createprojectbotfilter.md @@ -962,21 +925,6 @@ generatedFiles: - docs/models/createprojectcontenthint7.md - docs/models/createprojectcontenthint8.md - docs/models/createprojectcontenthint9.md - - docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv10type.md - - docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv11type.md - - docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv12type.md - - docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv13type.md - - docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv14type.md - - docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv15type.md - - docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv8type.md - - docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv9type.md - - docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenvtype.md - - docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodytype.md - - docs/models/createprojectcontenthintprojectsresponse200applicationjsontype.md - - docs/models/createprojectcontenthintprojectsresponse200type.md - - docs/models/createprojectcontenthintprojectsresponsetype.md - - docs/models/createprojectcontenthintprojectstype.md - - docs/models/createprojectcontenthinttype.md - docs/models/createprojectcreatedeployments.md - docs/models/createprojectcreator.md - docs/models/createprojectcrons.md @@ -1025,36 +973,6 @@ generatedFiles: - docs/models/createprojectenvcontenthintprojects7.md - docs/models/createprojectenvcontenthintprojects8.md - docs/models/createprojectenvcontenthintprojects9.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated110type.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated111type.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated112type.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated113type.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated114type.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated115type.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated19type.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated1type.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated210type.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated211type.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated212type.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated213type.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated214type.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated215type.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated22type.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated23type.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated24type.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated25type.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated26type.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated27type.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated28type.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated29type.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated2type.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreatedtype.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodytype.md - - docs/models/createprojectenvcontenthintprojectsresponse201applicationjsontype.md - - docs/models/createprojectenvcontenthintprojectsresponse201type.md - - docs/models/createprojectenvcontenthintprojectsresponsetype.md - - docs/models/createprojectenvcontenthintprojectstype.md - - docs/models/createprojectenvcontenthinttype.md - docs/models/createprojectenvcreated.md - docs/models/createprojectenvcreatedcontenthint.md - docs/models/createprojectenvcreatedinternalcontenthint.md @@ -1092,17 +1010,11 @@ generatedFiles: - docs/models/createprojecthasprojectskey.md - docs/models/createprojecthasprojectsresponse1.md - docs/models/createprojecthasprojectsresponse2.md - - docs/models/createprojecthasprojectsresponse200applicationjsonresponsebodytype.md - docs/models/createprojecthasprojectsresponse200applicationjsonresponsebodyvalue.md - - docs/models/createprojecthasprojectsresponse200applicationjsontype.md - docs/models/createprojecthasprojectsresponse200applicationjsonvalue.md - - docs/models/createprojecthasprojectsresponse200type.md - docs/models/createprojecthasprojectsresponse200value.md - - docs/models/createprojecthasprojectsresponsetype.md - docs/models/createprojecthasprojectsresponsevalue.md - - docs/models/createprojecthasprojectstype.md - docs/models/createprojecthasprojectsvalue.md - - docs/models/createprojecthastype.md - docs/models/createprojecthasvalue.md - docs/models/createprojecthistory.md - docs/models/createprojectinternalcontenthint.md @@ -1125,13 +1037,8 @@ generatedFiles: - docs/models/createprojectlinkdeployhooks.md - docs/models/createprojectlinkprojectsdeployhooks.md - docs/models/createprojectlinkprojectsresponse200applicationjsondeployhooks.md - - docs/models/createprojectlinkprojectsresponse200applicationjsontype.md - docs/models/createprojectlinkprojectsresponse200deployhooks.md - - docs/models/createprojectlinkprojectsresponse200type.md - docs/models/createprojectlinkprojectsresponsedeployhooks.md - - docs/models/createprojectlinkprojectsresponsetype.md - - docs/models/createprojectlinkprojectstype.md - - docs/models/createprojectlinktype.md - docs/models/createprojectmanagedrules.md - docs/models/createprojectmicrofrontends.md - docs/models/createprojectmicrofrontends1.md @@ -1182,8 +1089,6 @@ generatedFiles: - docs/models/createprojectprotectionbypass.md - docs/models/createprojectprotectionbypass1.md - docs/models/createprojectprotectionbypass2.md - - docs/models/createprojectprotectionbypassprojectsscope.md - - docs/models/createprojectprotectionbypassscope.md - docs/models/createprojectreadystate.md - docs/models/createprojectreadysubstate.md - docs/models/createprojectrequest.md @@ -1353,7 +1258,6 @@ generatedFiles: - docs/models/deliveryformat.md - docs/models/deliverysecret.md - docs/models/deliverytarget.md - - docs/models/deliverytype.md - docs/models/deployhook.md - docs/models/deployhooks.md - docs/models/deployment.md @@ -1395,7 +1299,6 @@ generatedFiles: - docs/models/domains2.md - docs/models/domains3.md - docs/models/domainserror.md - - docs/models/domainspurchasetype.md - docs/models/domainsstatus.md - docs/models/domaintooshort.md - docs/models/domaintooshortcode.md @@ -1443,21 +1346,6 @@ generatedFiles: - docs/models/editprojectenvcontenthint7.md - docs/models/editprojectenvcontenthint8.md - docs/models/editprojectenvcontenthint9.md - - docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody110type.md - - docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody111type.md - - docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody112type.md - - docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody113type.md - - docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody114type.md - - docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody115type.md - - docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody18type.md - - docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody19type.md - - docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody1type.md - - docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebodytype.md - - docs/models/editprojectenvcontenthintprojectsresponse200applicationjsontype.md - - docs/models/editprojectenvcontenthintprojectsresponse200type.md - - docs/models/editprojectenvcontenthintprojectsresponsetype.md - - docs/models/editprojectenvcontenthintprojectstype.md - - docs/models/editprojectenvcontenthinttype.md - docs/models/editprojectenvrequest.md - docs/models/editprojectenvrequestbody.md - docs/models/editprojectenvresponsebody.md @@ -1510,7 +1398,6 @@ generatedFiles: - docs/models/event1.md - docs/models/event2.md - docs/models/events.md - - docs/models/eventtype.md - docs/models/evs.md - docs/models/example.md - docs/models/exchangessotokengranttype.md @@ -1592,48 +1479,6 @@ generatedFiles: - docs/models/filterprojectenvscontenthintprojectsresponse14.md - docs/models/filterprojectenvscontenthintprojectsresponse15.md - docs/models/filterprojectenvscontenthintprojectsresponse2.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody110type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody111type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody112type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody113type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody114type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody115type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody18type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody19type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody1type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs10type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs11type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs12type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs13type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs14type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs15type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs3type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs4type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs5type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs6type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs7type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs8type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs9type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envstype.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs10type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs11type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs12type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs13type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs14type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs15type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs3type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs4type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs5type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs6type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs7type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs8type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs9type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envstype.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3type.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebodytype.md - - docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsontype.md - - docs/models/filterprojectenvscontenthintprojectsresponse200type.md - docs/models/filterprojectenvscontenthintprojectsresponse3.md - docs/models/filterprojectenvscontenthintprojectsresponse4.md - docs/models/filterprojectenvscontenthintprojectsresponse5.md @@ -1641,9 +1486,6 @@ generatedFiles: - docs/models/filterprojectenvscontenthintprojectsresponse7.md - docs/models/filterprojectenvscontenthintprojectsresponse8.md - docs/models/filterprojectenvscontenthintprojectsresponse9.md - - docs/models/filterprojectenvscontenthintprojectsresponsetype.md - - docs/models/filterprojectenvscontenthintprojectstype.md - - docs/models/filterprojectenvscontenthinttype.md - docs/models/filterprojectenvsrequest.md - docs/models/filterprojectenvsresponsebody.md - docs/models/filterprojectenvsresponsebody1.md @@ -1669,12 +1511,10 @@ generatedFiles: - docs/models/filterprojectenvstargetprojectsresponse1.md - docs/models/filterprojectenvstargetprojectsresponse2.md - docs/models/filtersources.md - - docs/models/filtertype.md - docs/models/filterv2.md - docs/models/filterv21.md - docs/models/filterv22.md - docs/models/filterv2filter.md - - docs/models/filterv2version.md - docs/models/five.md - docs/models/flagjsonvalue.md - docs/models/flags.md @@ -1685,7 +1525,6 @@ generatedFiles: - docs/models/fluidcpuduration.md - docs/models/fluidduration.md - docs/models/forbidden.md - - docs/models/forbiddencode.md - docs/models/forcenew.md - docs/models/format.md - docs/models/formats.md @@ -1723,10 +1562,6 @@ generatedFiles: - docs/models/getaliasprotectionbypass.md - docs/models/getaliasprotectionbypass1.md - docs/models/getaliasprotectionbypass2.md - - docs/models/getaliasprotectionbypassaliasesresponse200scope.md - - docs/models/getaliasprotectionbypassaliasesresponsescope.md - - docs/models/getaliasprotectionbypassaliasesscope.md - - docs/models/getaliasprotectionbypassscope.md - docs/models/getaliasrequest.md - docs/models/getaliasresponsebody.md - docs/models/getallcheckschecksresponse200applicationjsonsource.md @@ -1759,22 +1594,14 @@ generatedFiles: - docs/models/getalllogdrainsdeliverylogdrainscompression.md - docs/models/getalllogdrainsdeliverylogdrainsencoding.md - docs/models/getalllogdrainsdeliverylogdrainsendpoint.md - - docs/models/getalllogdrainsdeliverylogdrainsresponse200applicationjsonresponsebody1drainstype.md - - docs/models/getalllogdrainsdeliverylogdrainsresponse200applicationjsonresponsebody1type.md - - docs/models/getalllogdrainsdeliverylogdrainsresponse200applicationjsonresponsebodytype.md - - docs/models/getalllogdrainsdeliverylogdrainsresponse200applicationjsontype.md - docs/models/getalllogdrainsdeliverylogdrainsresponse200encoding.md - docs/models/getalllogdrainsdeliverylogdrainsresponse200secret.md - - docs/models/getalllogdrainsdeliverylogdrainsresponse200type.md - docs/models/getalllogdrainsdeliverylogdrainsresponseencoding.md - docs/models/getalllogdrainsdeliverylogdrainsresponsesecret.md - - docs/models/getalllogdrainsdeliverylogdrainsresponsetype.md - docs/models/getalllogdrainsdeliverylogdrainssecret.md - docs/models/getalllogdrainsdeliverylogdrainstarget.md - - docs/models/getalllogdrainsdeliverylogdrainstype.md - docs/models/getalllogdrainsdeliverysecret.md - docs/models/getalllogdrainsdeliverytarget.md - - docs/models/getalllogdrainsdeliverytype.md - docs/models/getalllogdrainsdrains1.md - docs/models/getalllogdrainsdrains2.md - docs/models/getalllogdrainsdrainsanalytics.md @@ -1815,27 +1642,17 @@ generatedFiles: - docs/models/getalllogdrainsfilterlogdrainsenvironments.md - docs/models/getalllogdrainsfilterlogdrainslog.md - docs/models/getalllogdrainsfilterlogdrainsproject.md - - docs/models/getalllogdrainsfilterlogdrainsresponse200type.md - - docs/models/getalllogdrainsfilterlogdrainsresponsetype.md - docs/models/getalllogdrainsfilterlogdrainssources.md - - docs/models/getalllogdrainsfilterlogdrainstype.md - docs/models/getalllogdrainsfilterproject.md - docs/models/getalllogdrainsfiltersources.md - - docs/models/getalllogdrainsfiltertype.md - docs/models/getalllogdrainsfilterv21.md - docs/models/getalllogdrainsfilterv22.md - docs/models/getalllogdrainsfilterv2filter.md - docs/models/getalllogdrainsfilterv2logdrains1.md - docs/models/getalllogdrainsfilterv2logdrains2.md - docs/models/getalllogdrainsfilterv2logdrainsfilter.md - - docs/models/getalllogdrainsfilterv2logdrainsresponse200version.md - - docs/models/getalllogdrainsfilterv2logdrainsresponseversion.md - - docs/models/getalllogdrainsfilterv2logdrainsversion.md - - docs/models/getalllogdrainsfilterv2version.md - docs/models/getalllogdrainsprojectaccess1.md - docs/models/getalllogdrainsprojectaccess2.md - - docs/models/getalllogdrainsprojectaccessaccess.md - - docs/models/getalllogdrainsprojectaccesslogdrainsaccess.md - docs/models/getalllogdrainsrequest.md - docs/models/getalllogdrainsresponsebody.md - docs/models/getalllogdrainsresponsebody1.md @@ -1851,12 +1668,8 @@ generatedFiles: - docs/models/getalllogdrainssecretlogdrainsresponsekind.md - docs/models/getalllogdrainssource1.md - docs/models/getalllogdrainssource2.md - - docs/models/getalllogdrainssourcekind.md - docs/models/getalllogdrainssourcelogdrains1.md - docs/models/getalllogdrainssourcelogdrains2.md - - docs/models/getalllogdrainssourcelogdrainskind.md - - docs/models/getalllogdrainssourcelogdrainsresponse200kind.md - - docs/models/getalllogdrainssourcelogdrainsresponsekind.md - docs/models/getauthtokenrequest.md - docs/models/getauthtokenresponsebody.md - docs/models/getauthuserresponsebody.md @@ -2129,7 +1942,6 @@ generatedFiles: - docs/models/getconfigurationsresponsebodyintegrationstype.md - docs/models/getconfigurationsresponsebodysource.md - docs/models/getconfigurationsresponsebodytype.md - - docs/models/getconfigurationtransferrequestkind.md - docs/models/getcontactinfoschemadomainsregistrarresponsebody.md - docs/models/getcontactinfoschemarequest.md - docs/models/getcontactinfoschemaresponsebody.md @@ -2179,10 +1991,7 @@ generatedFiles: - docs/models/getdeploymentgitrepo3.md - docs/models/getdeploymentgitrepodeploymentsownertype.md - docs/models/getdeploymentgitrepodeploymentsresponseownertype.md - - docs/models/getdeploymentgitrepodeploymentsresponsetype.md - - docs/models/getdeploymentgitrepodeploymentstype.md - docs/models/getdeploymentgitrepoownertype.md - - docs/models/getdeploymentgitrepotype.md - docs/models/getdeploymentgitsource1.md - docs/models/getdeploymentgitsource10.md - docs/models/getdeploymentgitsource11.md @@ -2255,7 +2064,6 @@ generatedFiles: - docs/models/getdeploymenthas2.md - docs/models/getdeploymenthasdeploymentstype.md - docs/models/getdeploymenthasdeploymentsvalue.md - - docs/models/getdeploymenthastype.md - docs/models/getdeploymenthasvalue.md - docs/models/getdeploymentkey2.md - docs/models/getdeploymentkeyeq.md @@ -2264,7 +2072,6 @@ generatedFiles: - docs/models/getdeploymentmicrofrontendsmfeconfiguploadstate.md - docs/models/getdeploymentmissing1.md - docs/models/getdeploymentmissing2.md - - docs/models/getdeploymentmissingdeploymentstype.md - docs/models/getdeploymentmissingdeploymentsvalue.md - docs/models/getdeploymentmissingtype.md - docs/models/getdeploymentmissingvalue.md @@ -2386,24 +2193,16 @@ generatedFiles: - docs/models/getdraindeliverydrainscompression.md - docs/models/getdraindeliverydrainsencoding.md - docs/models/getdraindeliverydrainsendpoint.md - - docs/models/getdraindeliverydrainsresponse200applicationjsonresponsebody24type.md - - docs/models/getdraindeliverydrainsresponse200applicationjsonresponsebody2type.md - - docs/models/getdraindeliverydrainsresponse200applicationjsonresponsebodytype.md - - docs/models/getdraindeliverydrainsresponse200applicationjsontype.md - docs/models/getdraindeliverydrainsresponse200encoding.md - docs/models/getdraindeliverydrainsresponse200secret.md - - docs/models/getdraindeliverydrainsresponse200type.md - docs/models/getdraindeliverydrainsresponseencoding.md - docs/models/getdraindeliverydrainsresponsesecret.md - - docs/models/getdraindeliverydrainsresponsetype.md - docs/models/getdraindeliverydrainssecret.md - docs/models/getdraindeliverydrainstarget.md - - docs/models/getdraindeliverydrainstype.md - docs/models/getdraindeliveryencoding.md - docs/models/getdraindeliveryendpoint.md - docs/models/getdraindeliverysecret.md - docs/models/getdraindeliverytarget.md - - docs/models/getdraindeliverytype.md - docs/models/getdrainfilter1.md - docs/models/getdrainfilter2.md - docs/models/getdrainfilterdeployment.md @@ -2413,29 +2212,19 @@ generatedFiles: - docs/models/getdrainfilterdrainsenvironments.md - docs/models/getdrainfilterdrainslog.md - docs/models/getdrainfilterdrainsproject.md - - docs/models/getdrainfilterdrainsresponse200type.md - - docs/models/getdrainfilterdrainsresponsetype.md - docs/models/getdrainfilterdrainssources.md - - docs/models/getdrainfilterdrainstype.md - docs/models/getdrainfilterenvironments.md - docs/models/getdrainfilterlog.md - docs/models/getdrainfilterproject.md - docs/models/getdrainfiltersources.md - - docs/models/getdrainfiltertype.md - docs/models/getdrainfilterv21.md - docs/models/getdrainfilterv22.md - docs/models/getdrainfilterv2drains1.md - docs/models/getdrainfilterv2drains2.md - docs/models/getdrainfilterv2drainsfilter.md - - docs/models/getdrainfilterv2drainsresponse200version.md - - docs/models/getdrainfilterv2drainsresponseversion.md - - docs/models/getdrainfilterv2drainsversion.md - docs/models/getdrainfilterv2filter.md - - docs/models/getdrainfilterv2version.md - docs/models/getdrainprojectaccess1.md - docs/models/getdrainprojectaccess2.md - - docs/models/getdrainprojectaccessaccess.md - - docs/models/getdrainprojectaccessdrainsaccess.md - docs/models/getdrainrequest.md - docs/models/getdrainresponsebody.md - docs/models/getdrainresponsebody1.md @@ -2478,24 +2267,16 @@ generatedFiles: - docs/models/getdrainsdeliverydrainscompression.md - docs/models/getdrainsdeliverydrainsencoding.md - docs/models/getdrainsdeliverydrainsendpoint.md - - docs/models/getdrainsdeliverydrainsresponse200applicationjsonresponsebodydrains2type.md - - docs/models/getdrainsdeliverydrainsresponse200applicationjsonresponsebodydrainstype.md - - docs/models/getdrainsdeliverydrainsresponse200applicationjsonresponsebodytype.md - - docs/models/getdrainsdeliverydrainsresponse200applicationjsontype.md - docs/models/getdrainsdeliverydrainsresponse200encoding.md - docs/models/getdrainsdeliverydrainsresponse200secret.md - - docs/models/getdrainsdeliverydrainsresponse200type.md - docs/models/getdrainsdeliverydrainsresponseencoding.md - docs/models/getdrainsdeliverydrainsresponsesecret.md - - docs/models/getdrainsdeliverydrainsresponsetype.md - docs/models/getdrainsdeliverydrainssecret.md - docs/models/getdrainsdeliverydrainstarget.md - - docs/models/getdrainsdeliverydrainstype.md - docs/models/getdrainsdeliveryencoding.md - docs/models/getdrainsdeliveryendpoint.md - docs/models/getdrainsdeliverysecret.md - docs/models/getdrainsdeliverytarget.md - - docs/models/getdrainsdeliverytype.md - docs/models/getdrainsdrainsanalytics.md - docs/models/getdrainsdrainsdelivery.md - docs/models/getdrainsdrainsdisabledreason.md @@ -2526,37 +2307,23 @@ generatedFiles: - docs/models/getdrainsfilterdrainsenvironments.md - docs/models/getdrainsfilterdrainslog.md - docs/models/getdrainsfilterdrainsproject.md - - docs/models/getdrainsfilterdrainsresponse200type.md - - docs/models/getdrainsfilterdrainsresponsetype.md - docs/models/getdrainsfilterdrainssources.md - - docs/models/getdrainsfilterdrainstype.md - docs/models/getdrainsfilterenvironments.md - docs/models/getdrainsfilterlog.md - docs/models/getdrainsfilterproject.md - docs/models/getdrainsfiltersources.md - - docs/models/getdrainsfiltertype.md - docs/models/getdrainsfilterv21.md - docs/models/getdrainsfilterv22.md - docs/models/getdrainsfilterv2drains1.md - docs/models/getdrainsfilterv2drains2.md - docs/models/getdrainsfilterv2drainsfilter.md - - docs/models/getdrainsfilterv2drainsresponse200version.md - - docs/models/getdrainsfilterv2drainsresponseversion.md - - docs/models/getdrainsfilterv2drainsversion.md - docs/models/getdrainsfilterv2filter.md - - docs/models/getdrainsfilterv2version.md - docs/models/getdrainsource1.md - docs/models/getdrainsource2.md - docs/models/getdrainsourcedrains1.md - docs/models/getdrainsourcedrains2.md - - docs/models/getdrainsourcedrainskind.md - - docs/models/getdrainsourcedrainsresponse200kind.md - - docs/models/getdrainsourcedrainsresponsekind.md - - docs/models/getdrainsourcekind.md - docs/models/getdrainsprojectaccess1.md - docs/models/getdrainsprojectaccess2.md - - docs/models/getdrainsprojectaccessaccess.md - - docs/models/getdrainsprojectaccessdrainsaccess.md - docs/models/getdrainsrequest.md - docs/models/getdrainsresponsebody.md - docs/models/getdrainssecret2.md @@ -2571,10 +2338,6 @@ generatedFiles: - docs/models/getdrainssource2.md - docs/models/getdrainssourcedrains1.md - docs/models/getdrainssourcedrains2.md - - docs/models/getdrainssourcedrainskind.md - - docs/models/getdrainssourcedrainsresponse200kind.md - - docs/models/getdrainssourcedrainsresponsekind.md - - docs/models/getdrainssourcekind.md - docs/models/getedgeconfigbackuprequest.md - docs/models/getedgeconfigbackupresponsebody.md - docs/models/getedgeconfigbackupresponsebody1.md @@ -2591,8 +2354,6 @@ generatedFiles: - docs/models/getedgeconfigpurpose.md - docs/models/getedgeconfigpurpose1.md - docs/models/getedgeconfigpurpose2.md - - docs/models/getedgeconfigpurposeedgeconfigtype.md - - docs/models/getedgeconfigpurposetype.md - docs/models/getedgeconfigrequest.md - docs/models/getedgeconfigresponsebody.md - docs/models/getedgeconfigschema.md @@ -2682,37 +2443,23 @@ generatedFiles: - docs/models/getorder11.md - docs/models/getorder12.md - docs/models/getorder13.md - - docs/models/getorder1code.md - docs/models/getorder1details.md - docs/models/getorder1domainsregistrar1.md - docs/models/getorder1domainsregistrar2.md - docs/models/getorder1domainsregistrar3.md - - docs/models/getorder1domainsregistrarcode.md - docs/models/getorder1domainsregistrardetails.md - docs/models/getorder1domainsregistrarresponse1.md - docs/models/getorder1domainsregistrarresponse2.md - docs/models/getorder1domainsregistrarresponse2001.md - docs/models/getorder1domainsregistrarresponse2002.md - docs/models/getorder1domainsregistrarresponse2003.md - - docs/models/getorder1domainsregistrarresponse200applicationjsoncode.md - - docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodycode.md - - docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains1code.md - - docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains1error3code.md - - docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains1errorcode.md - - docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains2code.md - - docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains3code.md - - docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomainscode.md - - docs/models/getorder1domainsregistrarresponse200code.md - docs/models/getorder1domainsregistrarresponse200details.md - docs/models/getorder1domainsregistrarresponse3.md - - docs/models/getorder1domainsregistrarresponsecode.md - docs/models/getorder1domainsregistrarresponsedetails.md - docs/models/getorderdomains.md - docs/models/getorderdomainsdomainsregistrarerror.md - - docs/models/getorderdomainsdomainsregistrarpurchasetype.md - docs/models/getorderdomainsdomainsregistrarstatus.md - docs/models/getorderdomainserror.md - - docs/models/getorderdomainspurchasetype.md - docs/models/getorderdomainsregistrarresponsebody.md - docs/models/getorderdomainsstatus.md - docs/models/getordererror1.md @@ -2773,48 +2520,6 @@ generatedFiles: - docs/models/getprojectenvcontenthintprojectsresponse14.md - docs/models/getprojectenvcontenthintprojectsresponse15.md - docs/models/getprojectenvcontenthintprojectsresponse2.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody110type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody111type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody112type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody113type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody114type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody115type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody18type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody19type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody1type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody210type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody211type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody212type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody213type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody214type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody215type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody22type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody23type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody24type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody25type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody26type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody27type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody28type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody29type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody2type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody310type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody311type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody312type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody313type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody314type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody315type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody32type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody33type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody34type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody35type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody36type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody37type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody38type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody39type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody3type.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebodytype.md - - docs/models/getprojectenvcontenthintprojectsresponse200applicationjsontype.md - - docs/models/getprojectenvcontenthintprojectsresponse200type.md - docs/models/getprojectenvcontenthintprojectsresponse3.md - docs/models/getprojectenvcontenthintprojectsresponse4.md - docs/models/getprojectenvcontenthintprojectsresponse5.md @@ -2822,9 +2527,6 @@ generatedFiles: - docs/models/getprojectenvcontenthintprojectsresponse7.md - docs/models/getprojectenvcontenthintprojectsresponse8.md - docs/models/getprojectenvcontenthintprojectsresponse9.md - - docs/models/getprojectenvcontenthintprojectsresponsetype.md - - docs/models/getprojectenvcontenthintprojectstype.md - - docs/models/getprojectenvcontenthinttype.md - docs/models/getprojectenvrequest.md - docs/models/getprojectenvresponsebody.md - docs/models/getprojectenvresponsebody1.md @@ -2868,10 +2570,6 @@ generatedFiles: - docs/models/getprojectsblockhistory2.md - docs/models/getprojectsblockhistory3.md - docs/models/getprojectsblockhistory4.md - - docs/models/getprojectsblockhistoryaction.md - - docs/models/getprojectsblockhistoryprojectsaction.md - - docs/models/getprojectsblockhistoryprojectsresponse200action.md - - docs/models/getprojectsblockhistoryprojectsresponseaction.md - docs/models/getprojectsblockhistoryprojectsroute.md - docs/models/getprojectsblockhistoryroute.md - docs/models/getprojectsbotfilter.md @@ -2897,21 +2595,6 @@ generatedFiles: - docs/models/getprojectscontenthint7.md - docs/models/getprojectscontenthint8.md - docs/models/getprojectscontenthint9.md - - docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv10type.md - - docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv11type.md - - docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv12type.md - - docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv13type.md - - docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv14type.md - - docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv15type.md - - docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv9type.md - - docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenvtype.md - - docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectstype.md - - docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodytype.md - - docs/models/getprojectscontenthintprojectsresponse200applicationjsontype.md - - docs/models/getprojectscontenthintprojectsresponse200type.md - - docs/models/getprojectscontenthintprojectsresponsetype.md - - docs/models/getprojectscontenthintprojectstype.md - - docs/models/getprojectscontenthinttype.md - docs/models/getprojectscreatedeployments.md - docs/models/getprojectscreator.md - docs/models/getprojectscrons.md @@ -2939,18 +2622,12 @@ generatedFiles: - docs/models/getprojectshasprojectskey.md - docs/models/getprojectshasprojectsresponse1.md - docs/models/getprojectshasprojectsresponse2.md - - docs/models/getprojectshasprojectsresponse200applicationjsonresponsebodytype.md - docs/models/getprojectshasprojectsresponse200applicationjsonresponsebodyvalue.md - - docs/models/getprojectshasprojectsresponse200applicationjsontype.md - docs/models/getprojectshasprojectsresponse200applicationjsonvalue.md - - docs/models/getprojectshasprojectsresponse200type.md - docs/models/getprojectshasprojectsresponse200value.md - docs/models/getprojectshasprojectsresponsekey.md - - docs/models/getprojectshasprojectsresponsetype.md - docs/models/getprojectshasprojectsresponsevalue.md - - docs/models/getprojectshasprojectstype.md - docs/models/getprojectshasprojectsvalue.md - - docs/models/getprojectshastype.md - docs/models/getprojectshasvalue.md - docs/models/getprojectshistory.md - docs/models/getprojectsinternalcontenthint.md @@ -2975,13 +2652,8 @@ generatedFiles: - docs/models/getprojectslinkdeployhooks.md - docs/models/getprojectslinkprojectsdeployhooks.md - docs/models/getprojectslinkprojectsresponse200applicationjsondeployhooks.md - - docs/models/getprojectslinkprojectsresponse200applicationjsontype.md - docs/models/getprojectslinkprojectsresponse200deployhooks.md - - docs/models/getprojectslinkprojectsresponse200type.md - docs/models/getprojectslinkprojectsresponsedeployhooks.md - - docs/models/getprojectslinkprojectsresponsetype.md - - docs/models/getprojectslinkprojectstype.md - - docs/models/getprojectslinktype.md - docs/models/getprojectsmanagedrules.md - docs/models/getprojectsmicrofrontends.md - docs/models/getprojectsmicrofrontends1.md @@ -3027,8 +2699,6 @@ generatedFiles: - docs/models/getprojectsprotectionbypass.md - docs/models/getprojectsprotectionbypass1.md - docs/models/getprojectsprotectionbypass2.md - - docs/models/getprojectsprotectionbypassprojectsscope.md - - docs/models/getprojectsprotectionbypassscope.md - docs/models/getprojectsreadystate.md - docs/models/getprojectsreadysubstate.md - docs/models/getprojectsrequest.md @@ -3080,9 +2750,6 @@ generatedFiles: - docs/models/getrollingreleasebillingstatusresponsebody1.md - docs/models/getrollingreleasebillingstatusresponsebody2.md - docs/models/getrollingreleasebillingstatusresponsebody3.md - - docs/models/getrollingreleasebillingstatusresponsebodyreason.md - - docs/models/getrollingreleasebillingstatusresponsebodyrollingreleasereason.md - - docs/models/getrollingreleasebillingstatusresponsebodyrollingreleaseresponsereason.md - docs/models/getrollingreleaseconfigrequest.md - docs/models/getrollingreleaseconfigresponsebody.md - docs/models/getrollingreleaseconfigrollingrelease.md @@ -3173,7 +2840,6 @@ generatedFiles: - docs/models/gitrepo3.md - docs/models/gitrepoownertype.md - docs/models/gitrepository.md - - docs/models/gitrepotype.md - docs/models/gitsource.md - docs/models/gitsource1.md - docs/models/gitsource10.md @@ -3202,7 +2868,6 @@ generatedFiles: - docs/models/has1.md - docs/models/has2.md - docs/models/haskey.md - - docs/models/hastype.md - docs/models/hasvalue.md - docs/models/headv1installationsintegrationconfigurationidresourcesresourceidexperimentationedgeconfigpurpose.md - docs/models/headv1installationsintegrationconfigurationidresourcesresourceidexperimentationedgeconfigrequest.md @@ -3279,7 +2944,6 @@ generatedFiles: - docs/models/key.md - docs/models/key2.md - docs/models/keyeq.md - - docs/models/kind.md - docs/models/lambdas.md - docs/models/lastaliasrequest.md - docs/models/lastrollbacktarget.md @@ -3297,7 +2961,6 @@ generatedFiles: - docs/models/link5.md - docs/models/linkdeployhooks.md - docs/models/links.md - - docs/models/linktype.md - docs/models/listaccessgroupmemberspagination.md - docs/models/listaccessgroupmembersrequest.md - docs/models/listaccessgroupmembersresponsebody.md @@ -3327,10 +2990,6 @@ generatedFiles: - docs/models/listaliasesprotectionbypass3.md - docs/models/listaliasesprotectionbypass4.md - docs/models/listaliasesprotectionbypassaccess.md - - docs/models/listaliasesprotectionbypassaliasesresponse200scope.md - - docs/models/listaliasesprotectionbypassaliasesresponsescope.md - - docs/models/listaliasesprotectionbypassaliasesscope.md - - docs/models/listaliasesprotectionbypassscope.md - docs/models/listaliasesrequest.md - docs/models/listaliasesresponsebody.md - docs/models/listauthtokensresponsebody.md @@ -3340,10 +2999,6 @@ generatedFiles: - docs/models/listdeploymentaliasesprotectionbypass3.md - docs/models/listdeploymentaliasesprotectionbypass4.md - docs/models/listdeploymentaliasesprotectionbypassaccess.md - - docs/models/listdeploymentaliasesprotectionbypassaliasesresponse200scope.md - - docs/models/listdeploymentaliasesprotectionbypassaliasesresponsescope.md - - docs/models/listdeploymentaliasesprotectionbypassaliasesscope.md - - docs/models/listdeploymentaliasesprotectionbypassscope.md - docs/models/listdeploymentaliasesrequest.md - docs/models/listdeploymentaliasesresponsebody.md - docs/models/listdeploymentfilesrequest.md @@ -3384,7 +3039,6 @@ generatedFiles: - docs/models/missing.md - docs/models/missing1.md - docs/models/missing2.md - - docs/models/missingtype.md - docs/models/missingvalue.md - docs/models/mitigate.md - docs/models/monitoring.md @@ -3459,7 +3113,6 @@ generatedFiles: - docs/models/one2.md - docs/models/one3.md - docs/models/one4.md - - docs/models/onecode.md - docs/models/onedescription.md - docs/models/onedetails.md - docs/models/onehundred.md @@ -3725,7 +3378,6 @@ generatedFiles: - docs/models/projectaccess.md - docs/models/projectaccess1.md - docs/models/projectaccess2.md - - docs/models/projectaccessaccess.md - docs/models/projectanalytics.md - docs/models/projectconnectionscopes.md - docs/models/projectfilter.md @@ -3774,7 +3426,6 @@ generatedFiles: - docs/models/protectionbypass3.md - docs/models/protectionbypass4.md - docs/models/protectionbypassaccess.md - - docs/models/protectionbypassscope.md - docs/models/protectionmode.md - docs/models/protocol.md - docs/models/protocols.md @@ -3787,7 +3438,6 @@ generatedFiles: - docs/models/purpose.md - docs/models/purpose1.md - docs/models/purpose2.md - - docs/models/purposetype.md - docs/models/putfirewallconfigaction.md - docs/models/putfirewallconfigaibots.md - docs/models/putfirewallconfigalgo.md @@ -3950,48 +3600,6 @@ generatedFiles: - docs/models/removeprojectenvcontenthintprojectsresponse14.md - docs/models/removeprojectenvcontenthintprojectsresponse15.md - docs/models/removeprojectenvcontenthintprojectsresponse2.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody110type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody111type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody112type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody113type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody114type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody115type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody18type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody19type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody1type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody210type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody211type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody212type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody213type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody214type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody215type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody22type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody23type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody24type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody25type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody26type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody27type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody28type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody29type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody2type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody310type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody311type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody312type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody313type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody314type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody315type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody32type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody33type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody34type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody35type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody36type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody37type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody38type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody39type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody3type.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebodytype.md - - docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsontype.md - - docs/models/removeprojectenvcontenthintprojectsresponse200type.md - docs/models/removeprojectenvcontenthintprojectsresponse3.md - docs/models/removeprojectenvcontenthintprojectsresponse4.md - docs/models/removeprojectenvcontenthintprojectsresponse5.md @@ -3999,9 +3607,6 @@ generatedFiles: - docs/models/removeprojectenvcontenthintprojectsresponse7.md - docs/models/removeprojectenvcontenthintprojectsresponse8.md - docs/models/removeprojectenvcontenthintprojectsresponse9.md - - docs/models/removeprojectenvcontenthintprojectsresponsetype.md - - docs/models/removeprojectenvcontenthintprojectstype.md - - docs/models/removeprojectenvcontenthinttype.md - docs/models/removeprojectenvrequest.md - docs/models/removeprojectenvresponsebody.md - docs/models/removeprojectenvresponsebody1.md @@ -4169,7 +3774,6 @@ generatedFiles: - docs/models/responsebodyproxy.md - docs/models/responsebodyreadystate.md - docs/models/responsebodyreadysubstate.md - - docs/models/responsebodyreason.md - docs/models/responsebodyrecords.md - docs/models/responsebodyremotepatterns.md - docs/models/responsebodyresult.md @@ -4244,7 +3848,6 @@ generatedFiles: - docs/models/scopes1.md - docs/models/scopes2.md - docs/models/scopesorigin.md - - docs/models/scopestype.md - docs/models/sd.md - docs/models/secondaryemails.md - docs/models/secret.md @@ -4292,7 +3895,6 @@ generatedFiles: - docs/models/source1.md - docs/models/source2.md - docs/models/sourceimages.md - - docs/models/sourcekind.md - docs/models/sources.md - docs/models/speedinsights.md - docs/models/sqli.md @@ -4409,7 +4011,6 @@ generatedFiles: - docs/models/transferrequest1.md - docs/models/transferrequest2.md - docs/models/transferrequestbillingplan.md - - docs/models/transferrequestkind.md - docs/models/transferrequestrequester.md - docs/models/transferrequestscope.md - docs/models/transferrequesttype.md @@ -4537,25 +4138,17 @@ generatedFiles: - docs/models/updatedraindeliverydrainsresponse1.md - docs/models/updatedraindeliverydrainsresponse2.md - docs/models/updatedraindeliverydrainsresponse200applicationjsonencoding.md - - docs/models/updatedraindeliverydrainsresponse200applicationjsonresponsebody24type.md - - docs/models/updatedraindeliverydrainsresponse200applicationjsonresponsebody2type.md - docs/models/updatedraindeliverydrainsresponse200applicationjsonresponsebodyencoding.md - - docs/models/updatedraindeliverydrainsresponse200applicationjsonresponsebodytype.md - - docs/models/updatedraindeliverydrainsresponse200applicationjsontype.md - docs/models/updatedraindeliverydrainsresponse200encoding.md - docs/models/updatedraindeliverydrainsresponse200secret.md - - docs/models/updatedraindeliverydrainsresponse200type.md - docs/models/updatedraindeliverydrainsresponseencoding.md - docs/models/updatedraindeliverydrainsresponsesecret.md - - docs/models/updatedraindeliverydrainsresponsetype.md - docs/models/updatedraindeliverydrainssecret.md - docs/models/updatedraindeliverydrainstarget.md - - docs/models/updatedraindeliverydrainstype.md - docs/models/updatedraindeliveryencoding.md - docs/models/updatedraindeliveryendpoint.md - docs/models/updatedraindeliverysecret.md - docs/models/updatedraindeliverytarget.md - - docs/models/updatedraindeliverytype.md - docs/models/updatedrainendpoint1.md - docs/models/updatedrainenv.md - docs/models/updatedrainfilter.md @@ -4571,32 +4164,22 @@ generatedFiles: - docs/models/updatedrainfilterdrainsresponse1.md - docs/models/updatedrainfilterdrainsresponse2.md - docs/models/updatedrainfilterdrainsresponse2002.md - - docs/models/updatedrainfilterdrainsresponse200type.md - docs/models/updatedrainfilterdrainsresponseenvironments.md - docs/models/updatedrainfilterdrainsresponsesources.md - - docs/models/updatedrainfilterdrainsresponsetype.md - docs/models/updatedrainfilterdrainssources.md - - docs/models/updatedrainfilterdrainstype.md - docs/models/updatedrainfilterenvironments.md - docs/models/updatedrainfilterfilter.md - docs/models/updatedrainfilterlog.md - docs/models/updatedrainfilterproject.md - docs/models/updatedrainfiltersources.md - - docs/models/updatedrainfiltertype.md - docs/models/updatedrainfilterv21.md - docs/models/updatedrainfilterv22.md - docs/models/updatedrainfilterv2drains1.md - docs/models/updatedrainfilterv2drains2.md - docs/models/updatedrainfilterv2drainsfilter.md - - docs/models/updatedrainfilterv2drainsresponse200version.md - - docs/models/updatedrainfilterv2drainsresponseversion.md - - docs/models/updatedrainfilterv2drainsversion.md - docs/models/updatedrainfilterv2filter.md - - docs/models/updatedrainfilterv2version.md - docs/models/updatedrainprojectaccess1.md - docs/models/updatedrainprojectaccess2.md - - docs/models/updatedrainprojectaccessaccess.md - - docs/models/updatedrainprojectaccessdrainsaccess.md - docs/models/updatedrainprojects.md - docs/models/updatedrainrequest.md - docs/models/updatedrainrequestbody.md @@ -4645,20 +4228,14 @@ generatedFiles: - docs/models/updatedrainsource2.md - docs/models/updatedrainsourcedrains1.md - docs/models/updatedrainsourcedrains2.md - - docs/models/updatedrainsourcedrainskind.md - docs/models/updatedrainsourcedrainsresponse1.md - docs/models/updatedrainsourcedrainsresponse2.md - - docs/models/updatedrainsourcedrainsresponse200kind.md - - docs/models/updatedrainsourcedrainsresponsekind.md - - docs/models/updatedrainsourcekind.md - docs/models/updatedrainstatus.md - docs/models/updatedraintransforms.md - docs/models/updateduser.md - docs/models/updateedgeconfigpurpose.md - docs/models/updateedgeconfigpurpose1.md - docs/models/updateedgeconfigpurpose2.md - - docs/models/updateedgeconfigpurposeedgeconfigtype.md - - docs/models/updateedgeconfigpurposetype.md - docs/models/updateedgeconfigrequest.md - docs/models/updateedgeconfigrequestbody.md - docs/models/updateedgeconfigresponsebody.md @@ -4745,10 +4322,6 @@ generatedFiles: - docs/models/updateprojectblockhistory2.md - docs/models/updateprojectblockhistory3.md - docs/models/updateprojectblockhistory4.md - - docs/models/updateprojectblockhistoryaction.md - - docs/models/updateprojectblockhistoryprojectsaction.md - - docs/models/updateprojectblockhistoryprojectsresponse200action.md - - docs/models/updateprojectblockhistoryprojectsresponseaction.md - docs/models/updateprojectblockhistoryprojectsroute.md - docs/models/updateprojectblockhistoryroute.md - docs/models/updateprojectbotfilter.md @@ -4774,21 +4347,6 @@ generatedFiles: - docs/models/updateprojectcontenthint7.md - docs/models/updateprojectcontenthint8.md - docs/models/updateprojectcontenthint9.md - - docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv10type.md - - docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv11type.md - - docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv12type.md - - docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv13type.md - - docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv14type.md - - docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv15type.md - - docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv8type.md - - docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv9type.md - - docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenvtype.md - - docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodytype.md - - docs/models/updateprojectcontenthintprojectsresponse200applicationjsontype.md - - docs/models/updateprojectcontenthintprojectsresponse200type.md - - docs/models/updateprojectcontenthintprojectsresponsetype.md - - docs/models/updateprojectcontenthintprojectstype.md - - docs/models/updateprojectcontenthinttype.md - docs/models/updateprojectcreatedeployments.md - docs/models/updateprojectcreator.md - docs/models/updateprojectcrons.md @@ -4801,29 +4359,12 @@ generatedFiles: - docs/models/updateprojectdatacachealiaserror.md - docs/models/updateprojectdatacacheaws.md - docs/models/updateprojectdatacacheblockhistory.md - - docs/models/updateprojectdatacacheblockhistoryaction.md - - docs/models/updateprojectdatacacheblockhistoryprojectsaction.md - - docs/models/updateprojectdatacacheblockhistoryprojectsresponseaction.md - docs/models/updateprojectdatacachebranchmatcher.md - docs/models/updateprojectdatacachebuildmachinetype.md - docs/models/updateprojectdatacachebuilds.md - docs/models/updateprojectdatacachechecksconclusion.md - docs/models/updateprojectdatacachechecksstate.md - docs/models/updateprojectdatacacheconnectconfigurations.md - - docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv10type.md - - docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv11type.md - - docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv12type.md - - docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv13type.md - - docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv14type.md - - docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv15type.md - - docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv9type.md - - docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenvtype.md - - docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodytype.md - - docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsontype.md - - docs/models/updateprojectdatacachecontenthintprojectsresponse200type.md - - docs/models/updateprojectdatacachecontenthintprojectsresponsetype.md - - docs/models/updateprojectdatacachecontenthintprojectstype.md - - docs/models/updateprojectdatacachecontenthinttype.md - docs/models/updateprojectdatacachecreator.md - docs/models/updateprojectdatacachedatacache.md - docs/models/updateprojectdatacachedeploymenttype.md @@ -4840,15 +4381,10 @@ generatedFiles: - docs/models/updateprojectdatacachehasprojects1.md - docs/models/updateprojectdatacachehasprojects2.md - docs/models/updateprojectdatacachehasprojectskey.md - - docs/models/updateprojectdatacachehasprojectsresponse200applicationjsontype.md - docs/models/updateprojectdatacachehasprojectsresponse200applicationjsonvalue.md - - docs/models/updateprojectdatacachehasprojectsresponse200type.md - docs/models/updateprojectdatacachehasprojectsresponse200value.md - - docs/models/updateprojectdatacachehasprojectsresponsetype.md - docs/models/updateprojectdatacachehasprojectsresponsevalue.md - - docs/models/updateprojectdatacachehasprojectstype.md - docs/models/updateprojectdatacachehasprojectsvalue.md - - docs/models/updateprojectdatacachehastype.md - docs/models/updateprojectdatacachehasvalue.md - docs/models/updateprojectdatacachehistory.md - docs/models/updateprojectdatacacheinternalroutesmitigate.md @@ -4856,11 +4392,7 @@ generatedFiles: - docs/models/updateprojectdatacacheissuermode.md - docs/models/updateprojectdatacachelinkdeployhooks.md - docs/models/updateprojectdatacachelinkprojectsdeployhooks.md - - docs/models/updateprojectdatacachelinkprojectsresponse200type.md - docs/models/updateprojectdatacachelinkprojectsresponsedeployhooks.md - - docs/models/updateprojectdatacachelinkprojectsresponsetype.md - - docs/models/updateprojectdatacachelinkprojectstype.md - - docs/models/updateprojectdatacachelinktype.md - docs/models/updateprojectdatacachemanagedrules.md - docs/models/updateprojectdatacachemicrofrontends.md - docs/models/updateprojectdatacachemicrofrontends1.md @@ -4900,7 +4432,6 @@ generatedFiles: - docs/models/updateprojectdatacacheprojectsresponsebranchmatcher.md - docs/models/updateprojectdatacacheprojectsresponsetype.md - docs/models/updateprojectdatacacheprojectstype.md - - docs/models/updateprojectdatacacheprotectionbypassscope.md - docs/models/updateprojectdatacachereadystate.md - docs/models/updateprojectdatacachereadysubstate.md - docs/models/updateprojectdatacacherequest.md @@ -4955,18 +4486,12 @@ generatedFiles: - docs/models/updateprojecthasprojectskey.md - docs/models/updateprojecthasprojectsresponse1.md - docs/models/updateprojecthasprojectsresponse2.md - - docs/models/updateprojecthasprojectsresponse200applicationjsonresponsebodytype.md - docs/models/updateprojecthasprojectsresponse200applicationjsonresponsebodyvalue.md - - docs/models/updateprojecthasprojectsresponse200applicationjsontype.md - docs/models/updateprojecthasprojectsresponse200applicationjsonvalue.md - - docs/models/updateprojecthasprojectsresponse200type.md - docs/models/updateprojecthasprojectsresponse200value.md - docs/models/updateprojecthasprojectsresponsekey.md - - docs/models/updateprojecthasprojectsresponsetype.md - docs/models/updateprojecthasprojectsresponsevalue.md - - docs/models/updateprojecthasprojectstype.md - docs/models/updateprojecthasprojectsvalue.md - - docs/models/updateprojecthastype.md - docs/models/updateprojecthasvalue.md - docs/models/updateprojecthistory.md - docs/models/updateprojectinternalcontenthint.md @@ -4991,13 +4516,8 @@ generatedFiles: - docs/models/updateprojectlinkdeployhooks.md - docs/models/updateprojectlinkprojectsdeployhooks.md - docs/models/updateprojectlinkprojectsresponse200applicationjsondeployhooks.md - - docs/models/updateprojectlinkprojectsresponse200applicationjsontype.md - docs/models/updateprojectlinkprojectsresponse200deployhooks.md - - docs/models/updateprojectlinkprojectsresponse200type.md - docs/models/updateprojectlinkprojectsresponsedeployhooks.md - - docs/models/updateprojectlinkprojectsresponsetype.md - - docs/models/updateprojectlinkprojectstype.md - - docs/models/updateprojectlinktype.md - docs/models/updateprojectmanagedrules.md - docs/models/updateprojectmicrofrontends.md - docs/models/updateprojectmicrofrontends1.md @@ -5059,16 +4579,12 @@ generatedFiles: - docs/models/updateprojectprotectionbypass.md - docs/models/updateprojectprotectionbypass1.md - docs/models/updateprojectprotectionbypass2.md - - docs/models/updateprojectprotectionbypassprojectsscope.md - docs/models/updateprojectprotectionbypassprotectionbypass.md - docs/models/updateprojectprotectionbypassprotectionbypass1.md - docs/models/updateprojectprotectionbypassprotectionbypass2.md - - docs/models/updateprojectprotectionbypassprotectionbypassprojectsscope.md - - docs/models/updateprojectprotectionbypassprotectionbypassscope.md - docs/models/updateprojectprotectionbypassrequest.md - docs/models/updateprojectprotectionbypassrequestbody.md - docs/models/updateprojectprotectionbypassresponsebody.md - - docs/models/updateprojectprotectionbypassscope.md - docs/models/updateprojectreadystate.md - docs/models/updateprojectreadysubstate.md - docs/models/updateprojectrequest.md @@ -5187,7 +4703,6 @@ generatedFiles: - docs/models/user.md - docs/models/useragent.md - docs/models/userevent.md - - docs/models/usereventcredentialstype.md - docs/models/usereventenvid2.md - docs/models/usereventmicrofrontends1.md - docs/models/usereventmicrofrontends2.md @@ -10724,15 +10239,3 @@ generatedTests: getProjectClientCerts: "2025-10-27T19:04:15Z" deleteProjectClientCert: "2025-11-05T00:09:03Z" inviteUserToTeam: "2025-11-05T00:09:03Z" -releaseNotes: | - ## Typescript SDK Changes Detected: - * `vercel.integrations.getConfigurationProducts()`: `response.products.[].metadataSchema.properties.{}` **Changed** **Breaking** :warning: - * `vercel.integrations.createIntegrationStoreDirect()`: `response.store.product` **Changed** **Breaking** :warning: - * `vercel.user.listUserEvents()`: `response.events.[].payload` **Changed** **Breaking** :warning: - * `vercel.deployments.getDeployment()`: `response.[1].routes.[].[1].transforms.[].env` **Added** - * `vercel.deployments.createDeployment()`: `response.routes.[].[1].transforms.[].env` **Added** - * `vercel.deployments.cancelDeployment()`: `response.routes.[].[1].transforms.[].env` **Added** - * `vercel.marketplace.importResource()`: `error.status[429]` **Added** - * `vercel.teams.getTeam()`: `response.saml` **Changed** - * `vercel.teams.patchTeam()`: `response.saml` **Changed** - * `vercel.teams.getTeams()`: `response.teams.[]` **Changed** diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index f07e162a..a711058e 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -28,7 +28,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: false typescript: - version: 1.17.7 + version: 1.18.0 acceptHeaderEnum: true additionalDependencies: dependencies: {} @@ -40,7 +40,7 @@ typescript: author: Speakeasy baseErrorName: VercelError clientServerStatusCodesAsErrors: true - constFieldsAlwaysOptional: true + constFieldsAlwaysOptional: false defaultErrorName: SDKError enableCustomCodeRegions: false enableMCPServer: true @@ -51,6 +51,7 @@ typescript: flatteningOrder: body-first formStringArrayEncodeMode: encoded-string forwardCompatibleEnumsByDefault: false + forwardCompatibleUnionsByDefault: "false" generateExamples: true imports: option: openapi @@ -68,8 +69,10 @@ typescript: methodArguments: require-security-and-request modelPropertyCasing: camel moduleFormat: esm + multipartArrayFormat: legacy outputModelSuffix: output packageName: '@vercel/sdk' + preApplyUnionDiscriminators: true responseFormat: flat sseFlatResponse: false templateVersion: v2 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index c5f32e50..efbf371a 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.660.0 +speakeasyVersion: 1.666.0 sources: vercel-OAS: sourceNamespace: vercel-oas @@ -6,7 +6,7 @@ sources: sourceBlobDigest: sha256:364289e48191ca9da10842111d3c5b19bb1d93b22bd9cc66f3f9a7b40c93690f tags: - latest - - speakeasy-sdk-regen-1763856533 + - speakeasy-sdk-regen-1764288490 - 0.0.1 targets: vercel: @@ -15,7 +15,7 @@ targets: sourceRevisionDigest: sha256:e9f3cb7c37631c97fcf54e9474f3ece5760f83662f18e70f06c2319fdf4b0791 sourceBlobDigest: sha256:364289e48191ca9da10842111d3c5b19bb1d93b22bd9cc66f3f9a7b40c93690f codeSamplesNamespace: vercel-oas-typescript-code-samples - codeSamplesRevisionDigest: sha256:5a8e0593ef707f60d09216ff8a6d3cb82790fb8021e8bc86cbca2f070304719e + codeSamplesRevisionDigest: sha256:fb36c2f7211fd189184bedeac2b1bfe8248f507db8a1d9a36cc30cc1bdf64990 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index e6567027..92de32fe 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -808,4 +808,14 @@ Based on: ### Generated - [typescript v1.17.7] . ### Releases -- [NPM v1.17.7] https://www.npmjs.com/package/@vercel/sdk/v/1.17.7 - . \ No newline at end of file +- [NPM v1.17.7] https://www.npmjs.com/package/@vercel/sdk/v/1.17.7 - . + +## 2025-12-02 00:07:40 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.666.0 (2.768.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v1.18.0] . +### Releases +- [NPM v1.18.0] https://www.npmjs.com/package/@vercel/sdk/v/1.18.0 - . \ No newline at end of file diff --git a/docs/models/authtokenscopestype.md b/docs/models/authtokenscopestype.md deleted file mode 100644 index ef307aa8..00000000 --- a/docs/models/authtokenscopestype.md +++ /dev/null @@ -1,15 +0,0 @@ -# AuthTokenScopesType - -## Example Usage - -```typescript -import { AuthTokenScopesType } from "@vercel/sdk/models/authtoken.js"; - -let value: AuthTokenScopesType = "team"; -``` - -## Values - -```typescript -"team" -``` \ No newline at end of file diff --git a/docs/models/blockhistory1.md b/docs/models/blockhistory1.md index 2c0b3ce3..f450d08b 100644 --- a/docs/models/blockhistory1.md +++ b/docs/models/blockhistory1.md @@ -15,13 +15,13 @@ let value: BlockHistory1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `action` | [models.BlockHistoryAction](../models/blockhistoryaction.md) | :heavy_check_mark: | N/A | -| `reason` | *string* | :heavy_check_mark: | N/A | -| `statusCode` | *number* | :heavy_check_mark: | N/A | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `caseId` | *string* | :heavy_minus_sign: | N/A | -| `actor` | *string* | :heavy_minus_sign: | N/A | -| `comment` | *string* | :heavy_minus_sign: | N/A | -| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `action` | *"blocked"* | :heavy_check_mark: | N/A | +| `reason` | *string* | :heavy_check_mark: | N/A | +| `statusCode` | *number* | :heavy_check_mark: | N/A | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `caseId` | *string* | :heavy_minus_sign: | N/A | +| `actor` | *string* | :heavy_minus_sign: | N/A | +| `comment` | *string* | :heavy_minus_sign: | N/A | +| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/blockhistory2.md b/docs/models/blockhistory2.md index c115cedb..773f7752 100644 --- a/docs/models/blockhistory2.md +++ b/docs/models/blockhistory2.md @@ -13,11 +13,11 @@ let value: BlockHistory2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `action` | [models.UpdateProjectDataCacheBlockHistoryAction](../models/updateprojectdatacacheblockhistoryaction.md) | :heavy_check_mark: | N/A | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `caseId` | *string* | :heavy_minus_sign: | N/A | -| `actor` | *string* | :heavy_minus_sign: | N/A | -| `comment` | *string* | :heavy_minus_sign: | N/A | -| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `action` | *"unblocked"* | :heavy_check_mark: | N/A | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `caseId` | *string* | :heavy_minus_sign: | N/A | +| `actor` | *string* | :heavy_minus_sign: | N/A | +| `comment` | *string* | :heavy_minus_sign: | N/A | +| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/blockhistory3.md b/docs/models/blockhistory3.md index 4b565e2c..195f6009 100644 --- a/docs/models/blockhistory3.md +++ b/docs/models/blockhistory3.md @@ -18,13 +18,13 @@ let value: BlockHistory3 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `action` | [models.UpdateProjectDataCacheBlockHistoryProjectsAction](../models/updateprojectdatacacheblockhistoryprojectsaction.md) | :heavy_check_mark: | N/A | -| `route` | *models.Route* | :heavy_check_mark: | N/A | -| `reason` | *string* | :heavy_check_mark: | N/A | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `caseId` | *string* | :heavy_minus_sign: | N/A | -| `actor` | *string* | :heavy_minus_sign: | N/A | -| `comment` | *string* | :heavy_minus_sign: | N/A | -| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `action` | *"route-blocked"* | :heavy_check_mark: | N/A | +| `route` | *models.Route* | :heavy_check_mark: | N/A | +| `reason` | *string* | :heavy_check_mark: | N/A | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `caseId` | *string* | :heavy_minus_sign: | N/A | +| `actor` | *string* | :heavy_minus_sign: | N/A | +| `comment` | *string* | :heavy_minus_sign: | N/A | +| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/blockhistory4.md b/docs/models/blockhistory4.md index b5f03179..aad8b33d 100644 --- a/docs/models/blockhistory4.md +++ b/docs/models/blockhistory4.md @@ -19,13 +19,13 @@ let value: BlockHistory4 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -| `action` | [models.UpdateProjectDataCacheBlockHistoryProjectsResponseAction](../models/updateprojectdatacacheblockhistoryprojectsresponseaction.md) | :heavy_check_mark: | N/A | -| `route` | *models.BlockHistoryRoute* | :heavy_check_mark: | N/A | -| `statusCode` | *number* | :heavy_minus_sign: | N/A | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `caseId` | *string* | :heavy_minus_sign: | N/A | -| `actor` | *string* | :heavy_minus_sign: | N/A | -| `comment` | *string* | :heavy_minus_sign: | N/A | -| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `action` | *"route-unblocked"* | :heavy_check_mark: | N/A | +| `route` | *models.BlockHistoryRoute* | :heavy_check_mark: | N/A | +| `statusCode` | *number* | :heavy_minus_sign: | N/A | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `caseId` | *string* | :heavy_minus_sign: | N/A | +| `actor` | *string* | :heavy_minus_sign: | N/A | +| `comment` | *string* | :heavy_minus_sign: | N/A | +| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/blockhistoryaction.md b/docs/models/blockhistoryaction.md deleted file mode 100644 index 6251b18c..00000000 --- a/docs/models/blockhistoryaction.md +++ /dev/null @@ -1,15 +0,0 @@ -# BlockHistoryAction - -## Example Usage - -```typescript -import { BlockHistoryAction } from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: BlockHistoryAction = "blocked"; -``` - -## Values - -```typescript -"blocked" -``` \ No newline at end of file diff --git a/docs/models/canceldeploymentgitrepo1.md b/docs/models/canceldeploymentgitrepo1.md index 14388cd7..12be09ad 100644 --- a/docs/models/canceldeploymentgitrepo1.md +++ b/docs/models/canceldeploymentgitrepo1.md @@ -24,7 +24,7 @@ let value: CancelDeploymentGitRepo1 = { | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | | `namespace` | *string* | :heavy_check_mark: | N/A | | `projectId` | *number* | :heavy_check_mark: | N/A | -| `type` | [models.CancelDeploymentGitRepoType](../models/canceldeploymentgitrepotype.md) | :heavy_check_mark: | N/A | +| `type` | *"gitlab"* | :heavy_check_mark: | N/A | | `url` | *string* | :heavy_check_mark: | N/A | | `path` | *string* | :heavy_check_mark: | N/A | | `defaultBranch` | *string* | :heavy_check_mark: | N/A | diff --git a/docs/models/canceldeploymentgitrepo2.md b/docs/models/canceldeploymentgitrepo2.md index 5aa32a62..c44f5658 100644 --- a/docs/models/canceldeploymentgitrepo2.md +++ b/docs/models/canceldeploymentgitrepo2.md @@ -26,7 +26,7 @@ let value: CancelDeploymentGitRepo2 = { | `org` | *string* | :heavy_check_mark: | N/A | | `repo` | *string* | :heavy_check_mark: | N/A | | `repoId` | *number* | :heavy_check_mark: | N/A | -| `type` | [models.CancelDeploymentGitRepoDeploymentsType](../models/canceldeploymentgitrepodeploymentstype.md) | :heavy_check_mark: | N/A | +| `type` | *"github"* | :heavy_check_mark: | N/A | | `repoOwnerId` | *number* | :heavy_check_mark: | N/A | | `path` | *string* | :heavy_check_mark: | N/A | | `defaultBranch` | *string* | :heavy_check_mark: | N/A | diff --git a/docs/models/canceldeploymentgitrepo3.md b/docs/models/canceldeploymentgitrepo3.md index 83b2c373..2de33ed1 100644 --- a/docs/models/canceldeploymentgitrepo3.md +++ b/docs/models/canceldeploymentgitrepo3.md @@ -26,7 +26,7 @@ let value: CancelDeploymentGitRepo3 = { | `owner` | *string* | :heavy_check_mark: | N/A | | `repoUuid` | *string* | :heavy_check_mark: | N/A | | `slug` | *string* | :heavy_check_mark: | N/A | -| `type` | [models.CancelDeploymentGitRepoDeploymentsResponseType](../models/canceldeploymentgitrepodeploymentsresponsetype.md) | :heavy_check_mark: | N/A | +| `type` | *"bitbucket"* | :heavy_check_mark: | N/A | | `workspaceUuid` | *string* | :heavy_check_mark: | N/A | | `path` | *string* | :heavy_check_mark: | N/A | | `defaultBranch` | *string* | :heavy_check_mark: | N/A | diff --git a/docs/models/canceldeploymentgitrepodeploymentsresponsetype.md b/docs/models/canceldeploymentgitrepodeploymentsresponsetype.md deleted file mode 100644 index eeb93bc4..00000000 --- a/docs/models/canceldeploymentgitrepodeploymentsresponsetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CancelDeploymentGitRepoDeploymentsResponseType - -## Example Usage - -```typescript -import { CancelDeploymentGitRepoDeploymentsResponseType } from "@vercel/sdk/models/canceldeploymentop.js"; - -let value: CancelDeploymentGitRepoDeploymentsResponseType = "bitbucket"; -``` - -## Values - -```typescript -"bitbucket" -``` \ No newline at end of file diff --git a/docs/models/canceldeploymentgitrepodeploymentstype.md b/docs/models/canceldeploymentgitrepodeploymentstype.md deleted file mode 100644 index 3d959468..00000000 --- a/docs/models/canceldeploymentgitrepodeploymentstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CancelDeploymentGitRepoDeploymentsType - -## Example Usage - -```typescript -import { CancelDeploymentGitRepoDeploymentsType } from "@vercel/sdk/models/canceldeploymentop.js"; - -let value: CancelDeploymentGitRepoDeploymentsType = "github"; -``` - -## Values - -```typescript -"github" -``` \ No newline at end of file diff --git a/docs/models/canceldeploymentgitrepotype.md b/docs/models/canceldeploymentgitrepotype.md deleted file mode 100644 index 06050400..00000000 --- a/docs/models/canceldeploymentgitrepotype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CancelDeploymentGitRepoType - -## Example Usage - -```typescript -import { CancelDeploymentGitRepoType } from "@vercel/sdk/models/canceldeploymentop.js"; - -let value: CancelDeploymentGitRepoType = "gitlab"; -``` - -## Values - -```typescript -"gitlab" -``` \ No newline at end of file diff --git a/docs/models/canceldeploymenthas1.md b/docs/models/canceldeploymenthas1.md index bd3ecb8f..061fc110 100644 --- a/docs/models/canceldeploymenthas1.md +++ b/docs/models/canceldeploymenthas1.md @@ -13,7 +13,7 @@ let value: CancelDeploymentHas1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `type` | [models.CancelDeploymentHasType](../models/canceldeploymenthastype.md) | :heavy_check_mark: | N/A | -| `value` | *models.CancelDeploymentHasValue* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | +| `type` | *"host"* | :heavy_check_mark: | N/A | +| `value` | *models.CancelDeploymentHasValue* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/canceldeploymenthastype.md b/docs/models/canceldeploymenthastype.md deleted file mode 100644 index 7ccb7717..00000000 --- a/docs/models/canceldeploymenthastype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CancelDeploymentHasType - -## Example Usage - -```typescript -import { CancelDeploymentHasType } from "@vercel/sdk/models/canceldeploymentop.js"; - -let value: CancelDeploymentHasType = "host"; -``` - -## Values - -```typescript -"host" -``` \ No newline at end of file diff --git a/docs/models/canceldeploymentmissing1.md b/docs/models/canceldeploymentmissing1.md index f24fc488..7ddd6d0c 100644 --- a/docs/models/canceldeploymentmissing1.md +++ b/docs/models/canceldeploymentmissing1.md @@ -13,7 +13,7 @@ let value: CancelDeploymentMissing1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `type` | [models.CancelDeploymentMissingType](../models/canceldeploymentmissingtype.md) | :heavy_check_mark: | N/A | -| `value` | *models.CancelDeploymentMissingValue* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | +| `type` | *"host"* | :heavy_check_mark: | N/A | +| `value` | *models.CancelDeploymentMissingValue* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/canceldeploymentmissingtype.md b/docs/models/canceldeploymentmissingtype.md deleted file mode 100644 index 4f5b810f..00000000 --- a/docs/models/canceldeploymentmissingtype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CancelDeploymentMissingType - -## Example Usage - -```typescript -import { CancelDeploymentMissingType } from "@vercel/sdk/models/canceldeploymentop.js"; - -let value: CancelDeploymentMissingType = "host"; -``` - -## Values - -```typescript -"host" -``` \ No newline at end of file diff --git a/docs/models/canceldeploymentrouteshas.md b/docs/models/canceldeploymentrouteshas.md index 4b55f4f4..3cdf32ec 100644 --- a/docs/models/canceldeploymentrouteshas.md +++ b/docs/models/canceldeploymentrouteshas.md @@ -21,3 +21,21 @@ const value: models.CancelDeploymentHas2 = { }; ``` +### `models.CancelDeploymentHas2` + +```typescript +const value: models.CancelDeploymentHas2 = { + type: "query", + key: "", +}; +``` + +### `models.CancelDeploymentHas2` + +```typescript +const value: models.CancelDeploymentHas2 = { + type: "query", + key: "", +}; +``` + diff --git a/docs/models/contenthint1.md b/docs/models/contenthint1.md index af2e6a3b..0932ee8f 100644 --- a/docs/models/contenthint1.md +++ b/docs/models/contenthint1.md @@ -13,7 +13,7 @@ let value: ContentHint1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | -| `type` | [models.ContentHintType](../models/contenthinttype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"redis-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/contenthint10.md b/docs/models/contenthint10.md index 9249c36d..bb408328 100644 --- a/docs/models/contenthint10.md +++ b/docs/models/contenthint10.md @@ -13,7 +13,7 @@ let value: ContentHint10 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type](../models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv10type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-host"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/contenthint11.md b/docs/models/contenthint11.md index 69e94085..9d74fb75 100644 --- a/docs/models/contenthint11.md +++ b/docs/models/contenthint11.md @@ -13,7 +13,7 @@ let value: ContentHint11 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type](../models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv11type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-password"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/contenthint12.md b/docs/models/contenthint12.md index 3537c63a..1ee16260 100644 --- a/docs/models/contenthint12.md +++ b/docs/models/contenthint12.md @@ -13,7 +13,7 @@ let value: ContentHint12 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type](../models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv12type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-database"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/contenthint13.md b/docs/models/contenthint13.md index 29eeb1a8..0d374444 100644 --- a/docs/models/contenthint13.md +++ b/docs/models/contenthint13.md @@ -13,7 +13,7 @@ let value: ContentHint13 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type](../models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv13type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-url-no-ssl"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/contenthint14.md b/docs/models/contenthint14.md index 1c180e41..941a801c 100644 --- a/docs/models/contenthint14.md +++ b/docs/models/contenthint14.md @@ -16,10 +16,10 @@ let value: ContentHint14 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type](../models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv14type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationProductId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"integration-store-secret"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationProductId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/contenthint15.md b/docs/models/contenthint15.md index c99eb520..a7c88a3a 100644 --- a/docs/models/contenthint15.md +++ b/docs/models/contenthint15.md @@ -13,7 +13,7 @@ let value: ContentHint15 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type](../models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv15type.md) | :heavy_check_mark: | N/A | -| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------- | --------------------------- | --------------------------- | --------------------------- | +| `type` | *"flags-connection-string"* | :heavy_check_mark: | N/A | +| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/contenthint2.md b/docs/models/contenthint2.md index 858f6cc0..f79bd2d3 100644 --- a/docs/models/contenthint2.md +++ b/docs/models/contenthint2.md @@ -13,7 +13,7 @@ let value: ContentHint2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectDataCacheContentHintType](../models/updateprojectdatacachecontenthinttype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `type` | *"redis-rest-api-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/contenthint3.md b/docs/models/contenthint3.md index d5b08b02..5ab6f8b8 100644 --- a/docs/models/contenthint3.md +++ b/docs/models/contenthint3.md @@ -13,7 +13,7 @@ let value: ContentHint3 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.UpdateProjectDataCacheContentHintProjectsType](../models/updateprojectdatacachecontenthintprojectstype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `type` | *"redis-rest-api-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/contenthint4.md b/docs/models/contenthint4.md index fd053c74..4a75725a 100644 --- a/docs/models/contenthint4.md +++ b/docs/models/contenthint4.md @@ -13,7 +13,7 @@ let value: ContentHint4 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectDataCacheContentHintProjectsResponseType](../models/updateprojectdatacachecontenthintprojectsresponsetype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | +| `type` | *"redis-rest-api-read-only-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/contenthint5.md b/docs/models/contenthint5.md index 427bc0ba..b8fc3e7e 100644 --- a/docs/models/contenthint5.md +++ b/docs/models/contenthint5.md @@ -13,7 +13,7 @@ let value: ContentHint5 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectDataCacheContentHintProjectsResponse200Type](../models/updateprojectdatacachecontenthintprojectsresponse200type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `type` | *"blob-read-write-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/contenthint6.md b/docs/models/contenthint6.md index ce5a801f..2810abce 100644 --- a/docs/models/contenthint6.md +++ b/docs/models/contenthint6.md @@ -13,7 +13,7 @@ let value: ContentHint6 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONType](../models/updateprojectdatacachecontenthintprojectsresponse200applicationjsontype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/contenthint7.md b/docs/models/contenthint7.md index 971ec196..36acb839 100644 --- a/docs/models/contenthint7.md +++ b/docs/models/contenthint7.md @@ -13,7 +13,7 @@ let value: ContentHint7 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyType](../models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodytype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"postgres-url-non-pooling"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/contenthint8.md b/docs/models/contenthint8.md index 635f6a1e..2faa2c9c 100644 --- a/docs/models/contenthint8.md +++ b/docs/models/contenthint8.md @@ -13,7 +13,7 @@ let value: ContentHint8 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType](../models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenvtype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-prisma-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/contenthint9.md b/docs/models/contenthint9.md index 21ee77a6..74304b74 100644 --- a/docs/models/contenthint9.md +++ b/docs/models/contenthint9.md @@ -13,7 +13,7 @@ let value: ContentHint9 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type](../models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv9type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-user"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/contenthinttype.md b/docs/models/contenthinttype.md deleted file mode 100644 index d1548d4f..00000000 --- a/docs/models/contenthinttype.md +++ /dev/null @@ -1,15 +0,0 @@ -# ContentHintType - -## Example Usage - -```typescript -import { ContentHintType } from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: ContentHintType = "redis-url"; -``` - -## Values - -```typescript -"redis-url" -``` \ No newline at end of file diff --git a/docs/models/createdeploymentgitrepodeploymentstype.md b/docs/models/createdeploymentgitrepodeploymentstype.md deleted file mode 100644 index 0fc5f2cf..00000000 --- a/docs/models/createdeploymentgitrepodeploymentstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateDeploymentGitRepoDeploymentsType - -## Example Usage - -```typescript -import { CreateDeploymentGitRepoDeploymentsType } from "@vercel/sdk/models/createdeploymentop.js"; - -let value: CreateDeploymentGitRepoDeploymentsType = "bitbucket"; -``` - -## Values - -```typescript -"bitbucket" -``` \ No newline at end of file diff --git a/docs/models/createdeploymentgitrepotype.md b/docs/models/createdeploymentgitrepotype.md deleted file mode 100644 index 1c7790bd..00000000 --- a/docs/models/createdeploymentgitrepotype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateDeploymentGitRepoType - -## Example Usage - -```typescript -import { CreateDeploymentGitRepoType } from "@vercel/sdk/models/createdeploymentop.js"; - -let value: CreateDeploymentGitRepoType = "github"; -``` - -## Values - -```typescript -"github" -``` \ No newline at end of file diff --git a/docs/models/createdeploymenthas1.md b/docs/models/createdeploymenthas1.md index b4c1823f..33c7b47b 100644 --- a/docs/models/createdeploymenthas1.md +++ b/docs/models/createdeploymenthas1.md @@ -13,7 +13,7 @@ let value: CreateDeploymentHas1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `type` | [models.CreateDeploymentHasType](../models/createdeploymenthastype.md) | :heavy_check_mark: | N/A | -| `value` | *models.CreateDeploymentHasValue* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | +| `type` | *"host"* | :heavy_check_mark: | N/A | +| `value` | *models.CreateDeploymentHasValue* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createdeploymenthastype.md b/docs/models/createdeploymenthastype.md deleted file mode 100644 index d9bd1b0f..00000000 --- a/docs/models/createdeploymenthastype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateDeploymentHasType - -## Example Usage - -```typescript -import { CreateDeploymentHasType } from "@vercel/sdk/models/createdeploymentop.js"; - -let value: CreateDeploymentHasType = "host"; -``` - -## Values - -```typescript -"host" -``` \ No newline at end of file diff --git a/docs/models/createdraindelivery1.md b/docs/models/createdraindelivery1.md index cac75579..6a6277b8 100644 --- a/docs/models/createdraindelivery1.md +++ b/docs/models/createdraindelivery1.md @@ -19,7 +19,7 @@ let value: CreateDrainDelivery1 = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `type` | [models.DeliveryType](../models/deliverytype.md) | :heavy_check_mark: | N/A | +| `type` | *"http"* | :heavy_check_mark: | N/A | | `endpoint` | *string* | :heavy_check_mark: | N/A | | `encoding` | [models.CreateDrainDeliveryDrainsEncoding](../models/createdraindeliverydrainsencoding.md) | :heavy_check_mark: | N/A | | `compression` | [models.CreateDrainDeliveryDrainsCompression](../models/createdraindeliverydrainscompression.md) | :heavy_minus_sign: | N/A | diff --git a/docs/models/createdraindelivery2.md b/docs/models/createdraindelivery2.md index 603ecc3d..a38c3d7c 100644 --- a/docs/models/createdraindelivery2.md +++ b/docs/models/createdraindelivery2.md @@ -19,7 +19,7 @@ let value: CreateDrainDelivery2 = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateDrainDeliveryType](../models/createdraindeliverytype.md) | :heavy_check_mark: | N/A | +| `type` | *"otlphttp"* | :heavy_check_mark: | N/A | | `endpoint` | [models.CreateDrainDeliveryDrainsEndpoint](../models/createdraindeliverydrainsendpoint.md) | :heavy_check_mark: | N/A | | `encoding` | [models.CreateDrainDeliveryDrainsResponseEncoding](../models/createdraindeliverydrainsresponseencoding.md) | :heavy_check_mark: | N/A | | `headers` | Record | :heavy_check_mark: | N/A | diff --git a/docs/models/createdraindelivery3.md b/docs/models/createdraindelivery3.md index 76a183b3..f013014e 100644 --- a/docs/models/createdraindelivery3.md +++ b/docs/models/createdraindelivery3.md @@ -14,8 +14,8 @@ let value: CreateDrainDelivery3 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType](../models/createdraindeliverydrainsresponse200applicationjsonresponsebodytype.md) | :heavy_check_mark: | N/A | -| `endpoint` | *string* | :heavy_check_mark: | N/A | -| `table` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"clickhouse"* | :heavy_check_mark: | N/A | +| `endpoint` | *string* | :heavy_check_mark: | N/A | +| `table` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createdraindelivery4.md b/docs/models/createdraindelivery4.md index 0ca4d42e..8e1a4817 100644 --- a/docs/models/createdraindelivery4.md +++ b/docs/models/createdraindelivery4.md @@ -13,7 +13,7 @@ let value: CreateDrainDelivery4 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type](../models/createdraindeliverydrainsresponse200applicationjsonresponsebody2type.md) | :heavy_check_mark: | N/A | -| `target` | [models.CreateDrainDeliveryTarget](../models/createdraindeliverytarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `type` | *"internal"* | :heavy_check_mark: | N/A | +| `target` | [models.CreateDrainDeliveryTarget](../models/createdraindeliverytarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createdraindeliverydrains1.md b/docs/models/createdraindeliverydrains1.md index cf27dd58..dc120787 100644 --- a/docs/models/createdraindeliverydrains1.md +++ b/docs/models/createdraindeliverydrains1.md @@ -17,7 +17,7 @@ let value: CreateDrainDeliveryDrains1 = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateDrainDeliveryDrainsResponse200Type](../models/createdraindeliverydrainsresponse200type.md) | :heavy_check_mark: | N/A | +| `type` | *"http"* | :heavy_check_mark: | N/A | | `endpoint` | *string* | :heavy_check_mark: | N/A | | `encoding` | [models.CreateDrainDeliveryDrainsResponse200Encoding](../models/createdraindeliverydrainsresponse200encoding.md) | :heavy_check_mark: | N/A | | `compression` | [models.CreateDrainDeliveryCompression](../models/createdraindeliverycompression.md) | :heavy_minus_sign: | N/A | diff --git a/docs/models/createdraindeliverydrains2.md b/docs/models/createdraindeliverydrains2.md index ce5d5fb9..5f1bf801 100644 --- a/docs/models/createdraindeliverydrains2.md +++ b/docs/models/createdraindeliverydrains2.md @@ -22,7 +22,7 @@ let value: CreateDrainDeliveryDrains2 = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateDrainDeliveryDrainsResponse200ApplicationJSONType](../models/createdraindeliverydrainsresponse200applicationjsontype.md) | :heavy_check_mark: | N/A | +| `type` | *"otlphttp"* | :heavy_check_mark: | N/A | | `endpoint` | [models.CreateDrainDeliveryEndpoint](../models/createdraindeliveryendpoint.md) | :heavy_check_mark: | N/A | | `encoding` | [models.CreateDrainDeliveryDrainsResponse200ApplicationJSONEncoding](../models/createdraindeliverydrainsresponse200applicationjsonencoding.md) | :heavy_check_mark: | N/A | | `headers` | Record | :heavy_check_mark: | N/A | diff --git a/docs/models/createdraindeliverydrainsresponse200applicationjsonresponsebody2type.md b/docs/models/createdraindeliverydrainsresponse200applicationjsonresponsebody2type.md deleted file mode 100644 index 257368aa..00000000 --- a/docs/models/createdraindeliverydrainsresponse200applicationjsonresponsebody2type.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type - -## Example Usage - -```typescript -import { CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type } from "@vercel/sdk/models/createdrainop.js"; - -let value: - CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type = - "internal"; -``` - -## Values - -```typescript -"internal" -``` \ No newline at end of file diff --git a/docs/models/createdraindeliverydrainsresponse200applicationjsonresponsebodytype.md b/docs/models/createdraindeliverydrainsresponse200applicationjsonresponsebodytype.md deleted file mode 100644 index d19e1dc3..00000000 --- a/docs/models/createdraindeliverydrainsresponse200applicationjsonresponsebodytype.md +++ /dev/null @@ -1,16 +0,0 @@ -# CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType - -## Example Usage - -```typescript -import { CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType } from "@vercel/sdk/models/createdrainop.js"; - -let value: CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType = - "clickhouse"; -``` - -## Values - -```typescript -"clickhouse" -``` \ No newline at end of file diff --git a/docs/models/createdraindeliverydrainsresponse200applicationjsontype.md b/docs/models/createdraindeliverydrainsresponse200applicationjsontype.md deleted file mode 100644 index 179ac1d6..00000000 --- a/docs/models/createdraindeliverydrainsresponse200applicationjsontype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateDrainDeliveryDrainsResponse200ApplicationJSONType - -## Example Usage - -```typescript -import { CreateDrainDeliveryDrainsResponse200ApplicationJSONType } from "@vercel/sdk/models/createdrainop.js"; - -let value: CreateDrainDeliveryDrainsResponse200ApplicationJSONType = "otlphttp"; -``` - -## Values - -```typescript -"otlphttp" -``` \ No newline at end of file diff --git a/docs/models/createdraindeliverydrainsresponse200type.md b/docs/models/createdraindeliverydrainsresponse200type.md deleted file mode 100644 index f56d5777..00000000 --- a/docs/models/createdraindeliverydrainsresponse200type.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateDrainDeliveryDrainsResponse200Type - -## Example Usage - -```typescript -import { CreateDrainDeliveryDrainsResponse200Type } from "@vercel/sdk/models/createdrainop.js"; - -let value: CreateDrainDeliveryDrainsResponse200Type = "http"; -``` - -## Values - -```typescript -"http" -``` \ No newline at end of file diff --git a/docs/models/createdraindeliverydrainsresponsetype.md b/docs/models/createdraindeliverydrainsresponsetype.md deleted file mode 100644 index a180d9c9..00000000 --- a/docs/models/createdraindeliverydrainsresponsetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateDrainDeliveryDrainsResponseType - -## Example Usage - -```typescript -import { CreateDrainDeliveryDrainsResponseType } from "@vercel/sdk/models/createdrainop.js"; - -let value: CreateDrainDeliveryDrainsResponseType = "internal"; -``` - -## Values - -```typescript -"internal" -``` \ No newline at end of file diff --git a/docs/models/createdraindeliverydrainstype.md b/docs/models/createdraindeliverydrainstype.md deleted file mode 100644 index 362073a5..00000000 --- a/docs/models/createdraindeliverydrainstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateDrainDeliveryDrainsType - -## Example Usage - -```typescript -import { CreateDrainDeliveryDrainsType } from "@vercel/sdk/models/createdrainop.js"; - -let value: CreateDrainDeliveryDrainsType = "clickhouse"; -``` - -## Values - -```typescript -"clickhouse" -``` \ No newline at end of file diff --git a/docs/models/createdraindeliverytype.md b/docs/models/createdraindeliverytype.md deleted file mode 100644 index 77ab3365..00000000 --- a/docs/models/createdraindeliverytype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateDrainDeliveryType - -## Example Usage - -```typescript -import { CreateDrainDeliveryType } from "@vercel/sdk/models/createdrainop.js"; - -let value: CreateDrainDeliveryType = "otlphttp"; -``` - -## Values - -```typescript -"otlphttp" -``` \ No newline at end of file diff --git a/docs/models/createdrainfilter1.md b/docs/models/createdrainfilter1.md index f51b4620..f3b61332 100644 --- a/docs/models/createdrainfilter1.md +++ b/docs/models/createdrainfilter1.md @@ -14,7 +14,7 @@ let value: CreateDrainFilter1 = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `type` | [models.FilterType](../models/filtertype.md) | :heavy_check_mark: | N/A | +| `type` | *"basic"* | :heavy_check_mark: | N/A | | `project` | [models.CreateDrainFilterDrainsProject](../models/createdrainfilterdrainsproject.md) | :heavy_minus_sign: | N/A | | `log` | [models.CreateDrainFilterDrainsLog](../models/createdrainfilterdrainslog.md) | :heavy_minus_sign: | N/A | | `deployment` | [models.CreateDrainFilterDrainsDeployment](../models/createdrainfilterdrainsdeployment.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createdrainfilterdrains1.md b/docs/models/createdrainfilterdrains1.md index 60dce02c..fb9ccdd1 100644 --- a/docs/models/createdrainfilterdrains1.md +++ b/docs/models/createdrainfilterdrains1.md @@ -14,7 +14,7 @@ let value: CreateDrainFilterDrains1 = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateDrainFilterDrainsType](../models/createdrainfilterdrainstype.md) | :heavy_check_mark: | N/A | +| `type` | *"basic"* | :heavy_check_mark: | N/A | | `project` | [models.CreateDrainFilterDrainsResponseProject](../models/createdrainfilterdrainsresponseproject.md) | :heavy_minus_sign: | N/A | | `log` | [models.CreateDrainFilterLog](../models/createdrainfilterlog.md) | :heavy_minus_sign: | N/A | | `deployment` | [models.CreateDrainFilterDrainsResponseDeployment](../models/createdrainfilterdrainsresponsedeployment.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createdrainfilterdrains2.md b/docs/models/createdrainfilterdrains2.md index 2b9605b6..d6326a1c 100644 --- a/docs/models/createdrainfilterdrains2.md +++ b/docs/models/createdrainfilterdrains2.md @@ -13,7 +13,7 @@ let value: CreateDrainFilterDrains2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `type` | [models.CreateDrainFilterType](../models/createdrainfiltertype.md) | :heavy_check_mark: | N/A | -| `text` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"odata"* | :heavy_check_mark: | N/A | +| `text` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createdrainfilterdrainsresponse2.md b/docs/models/createdrainfilterdrainsresponse2.md index ebdd1fa2..f777d219 100644 --- a/docs/models/createdrainfilterdrainsresponse2.md +++ b/docs/models/createdrainfilterdrainsresponse2.md @@ -13,7 +13,7 @@ let value: CreateDrainFilterDrainsResponse2 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `type` | [models.CreateDrainFilterDrainsResponseType](../models/createdrainfilterdrainsresponsetype.md) | :heavy_check_mark: | N/A | -| `text` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"odata"* | :heavy_check_mark: | N/A | +| `text` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createdrainfilterdrainsresponsetype.md b/docs/models/createdrainfilterdrainsresponsetype.md deleted file mode 100644 index 0d51099b..00000000 --- a/docs/models/createdrainfilterdrainsresponsetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateDrainFilterDrainsResponseType - -## Example Usage - -```typescript -import { CreateDrainFilterDrainsResponseType } from "@vercel/sdk/models/createdrainop.js"; - -let value: CreateDrainFilterDrainsResponseType = "odata"; -``` - -## Values - -```typescript -"odata" -``` \ No newline at end of file diff --git a/docs/models/createdrainfilterdrainstype.md b/docs/models/createdrainfilterdrainstype.md deleted file mode 100644 index 564cb81d..00000000 --- a/docs/models/createdrainfilterdrainstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateDrainFilterDrainsType - -## Example Usage - -```typescript -import { CreateDrainFilterDrainsType } from "@vercel/sdk/models/createdrainop.js"; - -let value: CreateDrainFilterDrainsType = "basic"; -``` - -## Values - -```typescript -"basic" -``` \ No newline at end of file diff --git a/docs/models/createdrainfiltertype.md b/docs/models/createdrainfiltertype.md deleted file mode 100644 index d8f1d753..00000000 --- a/docs/models/createdrainfiltertype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateDrainFilterType - -## Example Usage - -```typescript -import { CreateDrainFilterType } from "@vercel/sdk/models/createdrainop.js"; - -let value: CreateDrainFilterType = "odata"; -``` - -## Values - -```typescript -"odata" -``` \ No newline at end of file diff --git a/docs/models/createdrainfilterv21.md b/docs/models/createdrainfilterv21.md index 38a8b5b1..6207c40a 100644 --- a/docs/models/createdrainfilterv21.md +++ b/docs/models/createdrainfilterv21.md @@ -12,6 +12,6 @@ let value: CreateDrainFilterV21 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `version` | [models.CreateDrainFilterV2Version](../models/createdrainfilterv2version.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `version` | *"v1"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createdrainfilterv22.md b/docs/models/createdrainfilterv22.md index ed434cf9..58df8766 100644 --- a/docs/models/createdrainfilterv22.md +++ b/docs/models/createdrainfilterv22.md @@ -16,7 +16,7 @@ let value: CreateDrainFilterV22 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `version` | [models.CreateDrainFilterV2DrainsVersion](../models/createdrainfilterv2drainsversion.md) | :heavy_check_mark: | N/A | -| `filter` | *models.CreateDrainFilterV2Filter* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | +| `version` | *"v2"* | :heavy_check_mark: | N/A | +| `filter` | *models.CreateDrainFilterV2Filter* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createdrainfilterv2drainsresponseversion.md b/docs/models/createdrainfilterv2drainsresponseversion.md deleted file mode 100644 index 0430de5f..00000000 --- a/docs/models/createdrainfilterv2drainsresponseversion.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateDrainFilterV2DrainsResponseVersion - -## Example Usage - -```typescript -import { CreateDrainFilterV2DrainsResponseVersion } from "@vercel/sdk/models/createdrainop.js"; - -let value: CreateDrainFilterV2DrainsResponseVersion = "v1"; -``` - -## Values - -```typescript -"v1" -``` \ No newline at end of file diff --git a/docs/models/createdrainfilterv2drainsversion.md b/docs/models/createdrainfilterv2drainsversion.md deleted file mode 100644 index 447188cd..00000000 --- a/docs/models/createdrainfilterv2drainsversion.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateDrainFilterV2DrainsVersion - -## Example Usage - -```typescript -import { CreateDrainFilterV2DrainsVersion } from "@vercel/sdk/models/createdrainop.js"; - -let value: CreateDrainFilterV2DrainsVersion = "v2"; -``` - -## Values - -```typescript -"v2" -``` \ No newline at end of file diff --git a/docs/models/createdrainfilterv2version.md b/docs/models/createdrainfilterv2version.md deleted file mode 100644 index 31ce6c27..00000000 --- a/docs/models/createdrainfilterv2version.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateDrainFilterV2Version - -## Example Usage - -```typescript -import { CreateDrainFilterV2Version } from "@vercel/sdk/models/createdrainop.js"; - -let value: CreateDrainFilterV2Version = "v1"; -``` - -## Values - -```typescript -"v1" -``` \ No newline at end of file diff --git a/docs/models/createdrainprojectaccessaccess.md b/docs/models/createdrainprojectaccessaccess.md deleted file mode 100644 index 712335b3..00000000 --- a/docs/models/createdrainprojectaccessaccess.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateDrainProjectAccessAccess - -## Example Usage - -```typescript -import { CreateDrainProjectAccessAccess } from "@vercel/sdk/models/createdrainop.js"; - -let value: CreateDrainProjectAccessAccess = "all"; -``` - -## Values - -```typescript -"all" -``` \ No newline at end of file diff --git a/docs/models/createdrainsource1.md b/docs/models/createdrainsource1.md index 443c3c54..4b4242ea 100644 --- a/docs/models/createdrainsource1.md +++ b/docs/models/createdrainsource1.md @@ -12,6 +12,6 @@ let value: CreateDrainSource1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `kind` | [models.CreateDrainSourceDrainsResponseKind](../models/createdrainsourcedrainsresponsekind.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `kind` | *"self-served"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createdrainsource2.md b/docs/models/createdrainsource2.md index 492b37e4..f2abd361 100644 --- a/docs/models/createdrainsource2.md +++ b/docs/models/createdrainsource2.md @@ -14,10 +14,10 @@ let value: CreateDrainSource2 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `kind` | [models.CreateDrainSourceDrainsResponse200Kind](../models/createdrainsourcedrainsresponse200kind.md) | :heavy_check_mark: | N/A | -| `resourceId` | *string* | :heavy_minus_sign: | N/A | -| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `kind` | *"integration"* | :heavy_check_mark: | N/A | +| `resourceId` | *string* | :heavy_minus_sign: | N/A | +| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createdrainsourcedrains1.md b/docs/models/createdrainsourcedrains1.md index 79115c7c..a55398cb 100644 --- a/docs/models/createdrainsourcedrains1.md +++ b/docs/models/createdrainsourcedrains1.md @@ -12,6 +12,6 @@ let value: CreateDrainSourceDrains1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `kind` | [models.CreateDrainSourceKind](../models/createdrainsourcekind.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `kind` | *"self-served"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createdrainsourcedrains2.md b/docs/models/createdrainsourcedrains2.md index fac0fbb1..785c9ff7 100644 --- a/docs/models/createdrainsourcedrains2.md +++ b/docs/models/createdrainsourcedrains2.md @@ -14,10 +14,10 @@ let value: CreateDrainSourceDrains2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `kind` | [models.CreateDrainSourceDrainsKind](../models/createdrainsourcedrainskind.md) | :heavy_check_mark: | N/A | -| `resourceId` | *string* | :heavy_minus_sign: | N/A | -| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `kind` | *"integration"* | :heavy_check_mark: | N/A | +| `resourceId` | *string* | :heavy_minus_sign: | N/A | +| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createdrainsourcedrainskind.md b/docs/models/createdrainsourcedrainskind.md deleted file mode 100644 index 94a07363..00000000 --- a/docs/models/createdrainsourcedrainskind.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateDrainSourceDrainsKind - -## Example Usage - -```typescript -import { CreateDrainSourceDrainsKind } from "@vercel/sdk/models/createdrainop.js"; - -let value: CreateDrainSourceDrainsKind = "integration"; -``` - -## Values - -```typescript -"integration" -``` \ No newline at end of file diff --git a/docs/models/createdrainsourcedrainsresponse200kind.md b/docs/models/createdrainsourcedrainsresponse200kind.md deleted file mode 100644 index e672f866..00000000 --- a/docs/models/createdrainsourcedrainsresponse200kind.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateDrainSourceDrainsResponse200Kind - -## Example Usage - -```typescript -import { CreateDrainSourceDrainsResponse200Kind } from "@vercel/sdk/models/createdrainop.js"; - -let value: CreateDrainSourceDrainsResponse200Kind = "integration"; -``` - -## Values - -```typescript -"integration" -``` \ No newline at end of file diff --git a/docs/models/createdrainsourcedrainsresponsekind.md b/docs/models/createdrainsourcedrainsresponsekind.md deleted file mode 100644 index 59211ad0..00000000 --- a/docs/models/createdrainsourcedrainsresponsekind.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateDrainSourceDrainsResponseKind - -## Example Usage - -```typescript -import { CreateDrainSourceDrainsResponseKind } from "@vercel/sdk/models/createdrainop.js"; - -let value: CreateDrainSourceDrainsResponseKind = "self-served"; -``` - -## Values - -```typescript -"self-served" -``` \ No newline at end of file diff --git a/docs/models/createdrainsourcekind.md b/docs/models/createdrainsourcekind.md deleted file mode 100644 index 8f9b56b9..00000000 --- a/docs/models/createdrainsourcekind.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateDrainSourceKind - -## Example Usage - -```typescript -import { CreateDrainSourceKind } from "@vercel/sdk/models/createdrainop.js"; - -let value: CreateDrainSourceKind = "self-served"; -``` - -## Values - -```typescript -"self-served" -``` \ No newline at end of file diff --git a/docs/models/createedgeconfigpurposetype.md b/docs/models/createedgeconfigpurposetype.md deleted file mode 100644 index 37bb6d37..00000000 --- a/docs/models/createedgeconfigpurposetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateEdgeConfigPurposeType - -## Example Usage - -```typescript -import { CreateEdgeConfigPurposeType } from "@vercel/sdk/models/createedgeconfigop.js"; - -let value: CreateEdgeConfigPurposeType = "experimentation"; -``` - -## Values - -```typescript -"experimentation" -``` \ No newline at end of file diff --git a/docs/models/createeventeventtype.md b/docs/models/createeventeventtype.md deleted file mode 100644 index 5df84ce9..00000000 --- a/docs/models/createeventeventtype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateEventEventType - -## Example Usage - -```typescript -import { CreateEventEventType } from "@vercel/sdk/models/createeventop.js"; - -let value: CreateEventEventType = "resource.updated"; -``` - -## Values - -```typescript -"resource.updated" -``` \ No newline at end of file diff --git a/docs/models/createlogdrainsource1.md b/docs/models/createlogdrainsource1.md index 851f3a35..9090accd 100644 --- a/docs/models/createlogdrainsource1.md +++ b/docs/models/createlogdrainsource1.md @@ -12,6 +12,6 @@ let value: CreateLogDrainSource1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `kind` | [models.CreateLogDrainSourceKind](../models/createlogdrainsourcekind.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `kind` | *"self-served"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createlogdrainsource2.md b/docs/models/createlogdrainsource2.md index bc2539c9..49fb0097 100644 --- a/docs/models/createlogdrainsource2.md +++ b/docs/models/createlogdrainsource2.md @@ -14,10 +14,10 @@ let value: CreateLogDrainSource2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `kind` | [models.CreateLogDrainSourceLogDrainsKind](../models/createlogdrainsourcelogdrainskind.md) | :heavy_check_mark: | N/A | -| `resourceId` | *string* | :heavy_minus_sign: | N/A | -| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `kind` | *"integration"* | :heavy_check_mark: | N/A | +| `resourceId` | *string* | :heavy_minus_sign: | N/A | +| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createlogdrainsourcekind.md b/docs/models/createlogdrainsourcekind.md deleted file mode 100644 index f15b4070..00000000 --- a/docs/models/createlogdrainsourcekind.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateLogDrainSourceKind - -## Example Usage - -```typescript -import { CreateLogDrainSourceKind } from "@vercel/sdk/models/createlogdrainop.js"; - -let value: CreateLogDrainSourceKind = "self-served"; -``` - -## Values - -```typescript -"self-served" -``` \ No newline at end of file diff --git a/docs/models/createlogdrainsourcelogdrainskind.md b/docs/models/createlogdrainsourcelogdrainskind.md deleted file mode 100644 index 534d3527..00000000 --- a/docs/models/createlogdrainsourcelogdrainskind.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateLogDrainSourceLogDrainsKind - -## Example Usage - -```typescript -import { CreateLogDrainSourceLogDrainsKind } from "@vercel/sdk/models/createlogdrainop.js"; - -let value: CreateLogDrainSourceLogDrainsKind = "integration"; -``` - -## Values - -```typescript -"integration" -``` \ No newline at end of file diff --git a/docs/models/createprojectblockhistory1.md b/docs/models/createprojectblockhistory1.md index ebc4e5a1..e587f0fe 100644 --- a/docs/models/createprojectblockhistory1.md +++ b/docs/models/createprojectblockhistory1.md @@ -15,13 +15,13 @@ let value: CreateProjectBlockHistory1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `action` | [models.CreateProjectBlockHistoryAction](../models/createprojectblockhistoryaction.md) | :heavy_check_mark: | N/A | -| `reason` | *string* | :heavy_check_mark: | N/A | -| `statusCode` | *number* | :heavy_check_mark: | N/A | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `caseId` | *string* | :heavy_minus_sign: | N/A | -| `actor` | *string* | :heavy_minus_sign: | N/A | -| `comment` | *string* | :heavy_minus_sign: | N/A | -| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `action` | *"blocked"* | :heavy_check_mark: | N/A | +| `reason` | *string* | :heavy_check_mark: | N/A | +| `statusCode` | *number* | :heavy_check_mark: | N/A | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `caseId` | *string* | :heavy_minus_sign: | N/A | +| `actor` | *string* | :heavy_minus_sign: | N/A | +| `comment` | *string* | :heavy_minus_sign: | N/A | +| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectblockhistory2.md b/docs/models/createprojectblockhistory2.md index f17a48cc..8e9a169c 100644 --- a/docs/models/createprojectblockhistory2.md +++ b/docs/models/createprojectblockhistory2.md @@ -13,11 +13,11 @@ let value: CreateProjectBlockHistory2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `action` | [models.CreateProjectBlockHistoryProjectsAction](../models/createprojectblockhistoryprojectsaction.md) | :heavy_check_mark: | N/A | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `caseId` | *string* | :heavy_minus_sign: | N/A | -| `actor` | *string* | :heavy_minus_sign: | N/A | -| `comment` | *string* | :heavy_minus_sign: | N/A | -| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `action` | *"unblocked"* | :heavy_check_mark: | N/A | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `caseId` | *string* | :heavy_minus_sign: | N/A | +| `actor` | *string* | :heavy_minus_sign: | N/A | +| `comment` | *string* | :heavy_minus_sign: | N/A | +| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectblockhistory3.md b/docs/models/createprojectblockhistory3.md index 0de25870..7f7c6a0e 100644 --- a/docs/models/createprojectblockhistory3.md +++ b/docs/models/createprojectblockhistory3.md @@ -20,13 +20,13 @@ let value: CreateProjectBlockHistory3 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `action` | [models.CreateProjectBlockHistoryProjectsResponseAction](../models/createprojectblockhistoryprojectsresponseaction.md) | :heavy_check_mark: | N/A | -| `route` | *models.CreateProjectBlockHistoryRoute* | :heavy_check_mark: | N/A | -| `reason` | *string* | :heavy_check_mark: | N/A | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `caseId` | *string* | :heavy_minus_sign: | N/A | -| `actor` | *string* | :heavy_minus_sign: | N/A | -| `comment` | *string* | :heavy_minus_sign: | N/A | -| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | +| `action` | *"route-blocked"* | :heavy_check_mark: | N/A | +| `route` | *models.CreateProjectBlockHistoryRoute* | :heavy_check_mark: | N/A | +| `reason` | *string* | :heavy_check_mark: | N/A | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `caseId` | *string* | :heavy_minus_sign: | N/A | +| `actor` | *string* | :heavy_minus_sign: | N/A | +| `comment` | *string* | :heavy_minus_sign: | N/A | +| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectblockhistory4.md b/docs/models/createprojectblockhistory4.md index 1ad267fa..91b6fa6a 100644 --- a/docs/models/createprojectblockhistory4.md +++ b/docs/models/createprojectblockhistory4.md @@ -26,13 +26,13 @@ let value: CreateProjectBlockHistory4 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `action` | [models.CreateProjectBlockHistoryProjectsResponse200Action](../models/createprojectblockhistoryprojectsresponse200action.md) | :heavy_check_mark: | N/A | -| `route` | *models.CreateProjectBlockHistoryProjectsRoute* | :heavy_check_mark: | N/A | -| `statusCode` | *number* | :heavy_minus_sign: | N/A | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `caseId` | *string* | :heavy_minus_sign: | N/A | -| `actor` | *string* | :heavy_minus_sign: | N/A | -| `comment` | *string* | :heavy_minus_sign: | N/A | -| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | +| `action` | *"route-unblocked"* | :heavy_check_mark: | N/A | +| `route` | *models.CreateProjectBlockHistoryProjectsRoute* | :heavy_check_mark: | N/A | +| `statusCode` | *number* | :heavy_minus_sign: | N/A | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `caseId` | *string* | :heavy_minus_sign: | N/A | +| `actor` | *string* | :heavy_minus_sign: | N/A | +| `comment` | *string* | :heavy_minus_sign: | N/A | +| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectblockhistoryaction.md b/docs/models/createprojectblockhistoryaction.md deleted file mode 100644 index fd4f2c3e..00000000 --- a/docs/models/createprojectblockhistoryaction.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateProjectBlockHistoryAction - -## Example Usage - -```typescript -import { CreateProjectBlockHistoryAction } from "@vercel/sdk/models/createprojectop.js"; - -let value: CreateProjectBlockHistoryAction = "blocked"; -``` - -## Values - -```typescript -"blocked" -``` \ No newline at end of file diff --git a/docs/models/createprojectblockhistoryprojectsaction.md b/docs/models/createprojectblockhistoryprojectsaction.md deleted file mode 100644 index be338c4d..00000000 --- a/docs/models/createprojectblockhistoryprojectsaction.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateProjectBlockHistoryProjectsAction - -## Example Usage - -```typescript -import { CreateProjectBlockHistoryProjectsAction } from "@vercel/sdk/models/createprojectop.js"; - -let value: CreateProjectBlockHistoryProjectsAction = "unblocked"; -``` - -## Values - -```typescript -"unblocked" -``` \ No newline at end of file diff --git a/docs/models/createprojectblockhistoryprojectsresponse200action.md b/docs/models/createprojectblockhistoryprojectsresponse200action.md deleted file mode 100644 index 74e1060f..00000000 --- a/docs/models/createprojectblockhistoryprojectsresponse200action.md +++ /dev/null @@ -1,16 +0,0 @@ -# CreateProjectBlockHistoryProjectsResponse200Action - -## Example Usage - -```typescript -import { CreateProjectBlockHistoryProjectsResponse200Action } from "@vercel/sdk/models/createprojectop.js"; - -let value: CreateProjectBlockHistoryProjectsResponse200Action = - "route-unblocked"; -``` - -## Values - -```typescript -"route-unblocked" -``` \ No newline at end of file diff --git a/docs/models/createprojectblockhistoryprojectsresponseaction.md b/docs/models/createprojectblockhistoryprojectsresponseaction.md deleted file mode 100644 index 30c51228..00000000 --- a/docs/models/createprojectblockhistoryprojectsresponseaction.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateProjectBlockHistoryProjectsResponseAction - -## Example Usage - -```typescript -import { CreateProjectBlockHistoryProjectsResponseAction } from "@vercel/sdk/models/createprojectop.js"; - -let value: CreateProjectBlockHistoryProjectsResponseAction = "route-blocked"; -``` - -## Values - -```typescript -"route-blocked" -``` \ No newline at end of file diff --git a/docs/models/createprojectcontenthint1.md b/docs/models/createprojectcontenthint1.md index 4414775a..f8524c51 100644 --- a/docs/models/createprojectcontenthint1.md +++ b/docs/models/createprojectcontenthint1.md @@ -13,7 +13,7 @@ let value: CreateProjectContentHint1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectContentHintType](../models/createprojectcontenthinttype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"redis-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectcontenthint10.md b/docs/models/createprojectcontenthint10.md index 6501657d..a8f605d2 100644 --- a/docs/models/createprojectcontenthint10.md +++ b/docs/models/createprojectcontenthint10.md @@ -13,7 +13,7 @@ let value: CreateProjectContentHint10 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type](../models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv10type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-host"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectcontenthint11.md b/docs/models/createprojectcontenthint11.md index 13faf452..bb2fbd23 100644 --- a/docs/models/createprojectcontenthint11.md +++ b/docs/models/createprojectcontenthint11.md @@ -13,7 +13,7 @@ let value: CreateProjectContentHint11 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type](../models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv11type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-password"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectcontenthint12.md b/docs/models/createprojectcontenthint12.md index 4e8104f1..cfb08079 100644 --- a/docs/models/createprojectcontenthint12.md +++ b/docs/models/createprojectcontenthint12.md @@ -13,7 +13,7 @@ let value: CreateProjectContentHint12 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type](../models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv12type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-database"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectcontenthint13.md b/docs/models/createprojectcontenthint13.md index c33cb152..78fd56b9 100644 --- a/docs/models/createprojectcontenthint13.md +++ b/docs/models/createprojectcontenthint13.md @@ -13,7 +13,7 @@ let value: CreateProjectContentHint13 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type](../models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv13type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-url-no-ssl"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectcontenthint14.md b/docs/models/createprojectcontenthint14.md index 3abf3299..1bac5eed 100644 --- a/docs/models/createprojectcontenthint14.md +++ b/docs/models/createprojectcontenthint14.md @@ -16,10 +16,10 @@ let value: CreateProjectContentHint14 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type](../models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv14type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationProductId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"integration-store-secret"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationProductId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectcontenthint15.md b/docs/models/createprojectcontenthint15.md index b0d4359d..d1d95aa8 100644 --- a/docs/models/createprojectcontenthint15.md +++ b/docs/models/createprojectcontenthint15.md @@ -13,7 +13,7 @@ let value: CreateProjectContentHint15 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type](../models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv15type.md) | :heavy_check_mark: | N/A | -| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------- | --------------------------- | --------------------------- | --------------------------- | +| `type` | *"flags-connection-string"* | :heavy_check_mark: | N/A | +| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectcontenthint2.md b/docs/models/createprojectcontenthint2.md index 7ab55a34..29122da6 100644 --- a/docs/models/createprojectcontenthint2.md +++ b/docs/models/createprojectcontenthint2.md @@ -13,7 +13,7 @@ let value: CreateProjectContentHint2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `type` | [models.CreateProjectContentHintProjectsType](../models/createprojectcontenthintprojectstype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `type` | *"redis-rest-api-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectcontenthint3.md b/docs/models/createprojectcontenthint3.md index d021cbac..8c8de4a1 100644 --- a/docs/models/createprojectcontenthint3.md +++ b/docs/models/createprojectcontenthint3.md @@ -13,7 +13,7 @@ let value: CreateProjectContentHint3 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectContentHintProjectsResponseType](../models/createprojectcontenthintprojectsresponsetype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `type` | *"redis-rest-api-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectcontenthint4.md b/docs/models/createprojectcontenthint4.md index 74a65973..37cb1617 100644 --- a/docs/models/createprojectcontenthint4.md +++ b/docs/models/createprojectcontenthint4.md @@ -13,7 +13,7 @@ let value: CreateProjectContentHint4 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectContentHintProjectsResponse200Type](../models/createprojectcontenthintprojectsresponse200type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | +| `type` | *"redis-rest-api-read-only-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectcontenthint5.md b/docs/models/createprojectcontenthint5.md index 0f28263b..47dd31ac 100644 --- a/docs/models/createprojectcontenthint5.md +++ b/docs/models/createprojectcontenthint5.md @@ -13,7 +13,7 @@ let value: CreateProjectContentHint5 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectContentHintProjectsResponse200ApplicationJSONType](../models/createprojectcontenthintprojectsresponse200applicationjsontype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `type` | *"blob-read-write-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectcontenthint6.md b/docs/models/createprojectcontenthint6.md index 74916382..578065e3 100644 --- a/docs/models/createprojectcontenthint6.md +++ b/docs/models/createprojectcontenthint6.md @@ -13,7 +13,7 @@ let value: CreateProjectContentHint6 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType](../models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodytype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectcontenthint7.md b/docs/models/createprojectcontenthint7.md index 391d1351..7a81ada4 100644 --- a/docs/models/createprojectcontenthint7.md +++ b/docs/models/createprojectcontenthint7.md @@ -13,7 +13,7 @@ let value: CreateProjectContentHint7 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType](../models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenvtype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"postgres-url-non-pooling"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectcontenthint8.md b/docs/models/createprojectcontenthint8.md index 62e78a3a..3f5a4f5b 100644 --- a/docs/models/createprojectcontenthint8.md +++ b/docs/models/createprojectcontenthint8.md @@ -13,7 +13,7 @@ let value: CreateProjectContentHint8 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type](../models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv8type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-prisma-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectcontenthint9.md b/docs/models/createprojectcontenthint9.md index d4c6d3fb..38933ee5 100644 --- a/docs/models/createprojectcontenthint9.md +++ b/docs/models/createprojectcontenthint9.md @@ -13,7 +13,7 @@ let value: CreateProjectContentHint9 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type](../models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv9type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-user"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv10type.md b/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv10type.md deleted file mode 100644 index f7220d6b..00000000 --- a/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv10type.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type - -## Example Usage - -```typescript -import { CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type } from "@vercel/sdk/models/createprojectop.js"; - -let value: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type = - "postgres-host"; -``` - -## Values - -```typescript -"postgres-host" -``` \ No newline at end of file diff --git a/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv11type.md b/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv11type.md deleted file mode 100644 index 208b7168..00000000 --- a/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv11type.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type - -## Example Usage - -```typescript -import { CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type } from "@vercel/sdk/models/createprojectop.js"; - -let value: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type = - "postgres-password"; -``` - -## Values - -```typescript -"postgres-password" -``` \ No newline at end of file diff --git a/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv12type.md b/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv12type.md deleted file mode 100644 index 0af73bcd..00000000 --- a/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv12type.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type - -## Example Usage - -```typescript -import { CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type } from "@vercel/sdk/models/createprojectop.js"; - -let value: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type = - "postgres-database"; -``` - -## Values - -```typescript -"postgres-database" -``` \ No newline at end of file diff --git a/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv13type.md b/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv13type.md deleted file mode 100644 index 88666cd9..00000000 --- a/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv13type.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type - -## Example Usage - -```typescript -import { CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type } from "@vercel/sdk/models/createprojectop.js"; - -let value: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type = - "postgres-url-no-ssl"; -``` - -## Values - -```typescript -"postgres-url-no-ssl" -``` \ No newline at end of file diff --git a/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv14type.md b/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv14type.md deleted file mode 100644 index 70a0227c..00000000 --- a/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv14type.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type - -## Example Usage - -```typescript -import { CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type } from "@vercel/sdk/models/createprojectop.js"; - -let value: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type = - "integration-store-secret"; -``` - -## Values - -```typescript -"integration-store-secret" -``` \ No newline at end of file diff --git a/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv15type.md b/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv15type.md deleted file mode 100644 index 2d17e93e..00000000 --- a/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv15type.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type - -## Example Usage - -```typescript -import { CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type } from "@vercel/sdk/models/createprojectop.js"; - -let value: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type = - "flags-connection-string"; -``` - -## Values - -```typescript -"flags-connection-string" -``` \ No newline at end of file diff --git a/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv8type.md b/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv8type.md deleted file mode 100644 index 11e5abc1..00000000 --- a/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv8type.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type - -## Example Usage - -```typescript -import { CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type } from "@vercel/sdk/models/createprojectop.js"; - -let value: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type = - "postgres-prisma-url"; -``` - -## Values - -```typescript -"postgres-prisma-url" -``` \ No newline at end of file diff --git a/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv9type.md b/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv9type.md deleted file mode 100644 index 0327fdef..00000000 --- a/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv9type.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type - -## Example Usage - -```typescript -import { CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type } from "@vercel/sdk/models/createprojectop.js"; - -let value: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type = - "postgres-user"; -``` - -## Values - -```typescript -"postgres-user" -``` \ No newline at end of file diff --git a/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenvtype.md b/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenvtype.md deleted file mode 100644 index a580b71e..00000000 --- a/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodyenvtype.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType - -## Example Usage - -```typescript -import { CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType } from "@vercel/sdk/models/createprojectop.js"; - -let value: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType = - "postgres-url-non-pooling"; -``` - -## Values - -```typescript -"postgres-url-non-pooling" -``` \ No newline at end of file diff --git a/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodytype.md b/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodytype.md deleted file mode 100644 index 5e32dbbe..00000000 --- a/docs/models/createprojectcontenthintprojectsresponse200applicationjsonresponsebodytype.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType - -## Example Usage - -```typescript -import { CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType } from "@vercel/sdk/models/createprojectop.js"; - -let value: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType = - "postgres-url"; -``` - -## Values - -```typescript -"postgres-url" -``` \ No newline at end of file diff --git a/docs/models/createprojectcontenthintprojectsresponse200applicationjsontype.md b/docs/models/createprojectcontenthintprojectsresponse200applicationjsontype.md deleted file mode 100644 index d15423b5..00000000 --- a/docs/models/createprojectcontenthintprojectsresponse200applicationjsontype.md +++ /dev/null @@ -1,16 +0,0 @@ -# CreateProjectContentHintProjectsResponse200ApplicationJSONType - -## Example Usage - -```typescript -import { CreateProjectContentHintProjectsResponse200ApplicationJSONType } from "@vercel/sdk/models/createprojectop.js"; - -let value: CreateProjectContentHintProjectsResponse200ApplicationJSONType = - "blob-read-write-token"; -``` - -## Values - -```typescript -"blob-read-write-token" -``` \ No newline at end of file diff --git a/docs/models/createprojectcontenthintprojectsresponse200type.md b/docs/models/createprojectcontenthintprojectsresponse200type.md deleted file mode 100644 index 71ed7085..00000000 --- a/docs/models/createprojectcontenthintprojectsresponse200type.md +++ /dev/null @@ -1,16 +0,0 @@ -# CreateProjectContentHintProjectsResponse200Type - -## Example Usage - -```typescript -import { CreateProjectContentHintProjectsResponse200Type } from "@vercel/sdk/models/createprojectop.js"; - -let value: CreateProjectContentHintProjectsResponse200Type = - "redis-rest-api-read-only-token"; -``` - -## Values - -```typescript -"redis-rest-api-read-only-token" -``` \ No newline at end of file diff --git a/docs/models/createprojectcontenthintprojectsresponsetype.md b/docs/models/createprojectcontenthintprojectsresponsetype.md deleted file mode 100644 index 1f1514b2..00000000 --- a/docs/models/createprojectcontenthintprojectsresponsetype.md +++ /dev/null @@ -1,16 +0,0 @@ -# CreateProjectContentHintProjectsResponseType - -## Example Usage - -```typescript -import { CreateProjectContentHintProjectsResponseType } from "@vercel/sdk/models/createprojectop.js"; - -let value: CreateProjectContentHintProjectsResponseType = - "redis-rest-api-token"; -``` - -## Values - -```typescript -"redis-rest-api-token" -``` \ No newline at end of file diff --git a/docs/models/createprojectcontenthintprojectstype.md b/docs/models/createprojectcontenthintprojectstype.md deleted file mode 100644 index 55828d22..00000000 --- a/docs/models/createprojectcontenthintprojectstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateProjectContentHintProjectsType - -## Example Usage - -```typescript -import { CreateProjectContentHintProjectsType } from "@vercel/sdk/models/createprojectop.js"; - -let value: CreateProjectContentHintProjectsType = "redis-rest-api-url"; -``` - -## Values - -```typescript -"redis-rest-api-url" -``` \ No newline at end of file diff --git a/docs/models/createprojectcontenthinttype.md b/docs/models/createprojectcontenthinttype.md deleted file mode 100644 index 258fa897..00000000 --- a/docs/models/createprojectcontenthinttype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateProjectContentHintType - -## Example Usage - -```typescript -import { CreateProjectContentHintType } from "@vercel/sdk/models/createprojectop.js"; - -let value: CreateProjectContentHintType = "redis-url"; -``` - -## Values - -```typescript -"redis-url" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthint1.md b/docs/models/createprojectenvcontenthint1.md index 60449867..c6152f72 100644 --- a/docs/models/createprojectenvcontenthint1.md +++ b/docs/models/createprojectenvcontenthint1.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHint1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectEnvContentHintType](../models/createprojectenvcontenthinttype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"redis-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthint10.md b/docs/models/createprojectenvcontenthint10.md index 0334974f..1b24c599 100644 --- a/docs/models/createprojectenvcontenthint10.md +++ b/docs/models/createprojectenvcontenthint10.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHint10 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated110Type](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated110type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-host"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthint11.md b/docs/models/createprojectenvcontenthint11.md index 727f6dea..92ca395e 100644 --- a/docs/models/createprojectenvcontenthint11.md +++ b/docs/models/createprojectenvcontenthint11.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHint11 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated111Type](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated111type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-password"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthint12.md b/docs/models/createprojectenvcontenthint12.md index 63bcd56f..8504fe91 100644 --- a/docs/models/createprojectenvcontenthint12.md +++ b/docs/models/createprojectenvcontenthint12.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHint12 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated112Type](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated112type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-database"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthint13.md b/docs/models/createprojectenvcontenthint13.md index 8d315ef0..a5f43804 100644 --- a/docs/models/createprojectenvcontenthint13.md +++ b/docs/models/createprojectenvcontenthint13.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHint13 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated113Type](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated113type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-url-no-ssl"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthint14.md b/docs/models/createprojectenvcontenthint14.md index e9e1da97..1d797a9d 100644 --- a/docs/models/createprojectenvcontenthint14.md +++ b/docs/models/createprojectenvcontenthint14.md @@ -16,10 +16,10 @@ let value: CreateProjectEnvContentHint14 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated114Type](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated114type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationProductId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"integration-store-secret"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationProductId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthint15.md b/docs/models/createprojectenvcontenthint15.md index 359c0d37..961dcdb0 100644 --- a/docs/models/createprojectenvcontenthint15.md +++ b/docs/models/createprojectenvcontenthint15.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHint15 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated115Type](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated115type.md) | :heavy_check_mark: | N/A | -| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------- | --------------------------- | --------------------------- | --------------------------- | +| `type` | *"flags-connection-string"* | :heavy_check_mark: | N/A | +| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthint2.md b/docs/models/createprojectenvcontenthint2.md index 6aa8c97b..689f84cb 100644 --- a/docs/models/createprojectenvcontenthint2.md +++ b/docs/models/createprojectenvcontenthint2.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHint2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `type` | [models.CreateProjectEnvContentHintProjectsType](../models/createprojectenvcontenthintprojectstype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `type` | *"redis-rest-api-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthint3.md b/docs/models/createprojectenvcontenthint3.md index fe76d908..dd8ffd95 100644 --- a/docs/models/createprojectenvcontenthint3.md +++ b/docs/models/createprojectenvcontenthint3.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHint3 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectEnvContentHintProjectsResponseType](../models/createprojectenvcontenthintprojectsresponsetype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `type` | *"redis-rest-api-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthint4.md b/docs/models/createprojectenvcontenthint4.md index 90fa2cfa..265404d5 100644 --- a/docs/models/createprojectenvcontenthint4.md +++ b/docs/models/createprojectenvcontenthint4.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHint4 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201Type](../models/createprojectenvcontenthintprojectsresponse201type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | +| `type` | *"redis-rest-api-read-only-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthint5.md b/docs/models/createprojectenvcontenthint5.md index a4058fe8..ceb15518 100644 --- a/docs/models/createprojectenvcontenthint5.md +++ b/docs/models/createprojectenvcontenthint5.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHint5 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONType](../models/createprojectenvcontenthintprojectsresponse201applicationjsontype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `type` | *"blob-read-write-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthint6.md b/docs/models/createprojectenvcontenthint6.md index 928ea9fc..ebfdb255 100644 --- a/docs/models/createprojectenvcontenthint6.md +++ b/docs/models/createprojectenvcontenthint6.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHint6 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyType](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodytype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthint7.md b/docs/models/createprojectenvcontenthint7.md index ea30695e..90936038 100644 --- a/docs/models/createprojectenvcontenthint7.md +++ b/docs/models/createprojectenvcontenthint7.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHint7 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreatedType](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreatedtype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"postgres-url-non-pooling"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthint8.md b/docs/models/createprojectenvcontenthint8.md index 2c987d47..e391b6bb 100644 --- a/docs/models/createprojectenvcontenthint8.md +++ b/docs/models/createprojectenvcontenthint8.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHint8 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated1Type](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated1type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-prisma-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthint9.md b/docs/models/createprojectenvcontenthint9.md index 44940823..219271c8 100644 --- a/docs/models/createprojectenvcontenthint9.md +++ b/docs/models/createprojectenvcontenthint9.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHint9 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated19Type](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated19type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-user"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojects1.md b/docs/models/createprojectenvcontenthintprojects1.md index f100cb8e..3dd8398a 100644 --- a/docs/models/createprojectenvcontenthintprojects1.md +++ b/docs/models/createprojectenvcontenthintprojects1.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHintProjects1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated2Type](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated2type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"redis-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojects10.md b/docs/models/createprojectenvcontenthintprojects10.md index 4ab93268..fe8c1939 100644 --- a/docs/models/createprojectenvcontenthintprojects10.md +++ b/docs/models/createprojectenvcontenthintprojects10.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHintProjects10 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated210Type](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated210type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-host"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojects11.md b/docs/models/createprojectenvcontenthintprojects11.md index 5ae61dd6..ce7491da 100644 --- a/docs/models/createprojectenvcontenthintprojects11.md +++ b/docs/models/createprojectenvcontenthintprojects11.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHintProjects11 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated211Type](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated211type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-password"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojects12.md b/docs/models/createprojectenvcontenthintprojects12.md index 3e79ea50..f36282fb 100644 --- a/docs/models/createprojectenvcontenthintprojects12.md +++ b/docs/models/createprojectenvcontenthintprojects12.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHintProjects12 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated212Type](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated212type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-database"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojects13.md b/docs/models/createprojectenvcontenthintprojects13.md index c79820bc..62c1af92 100644 --- a/docs/models/createprojectenvcontenthintprojects13.md +++ b/docs/models/createprojectenvcontenthintprojects13.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHintProjects13 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated213Type](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated213type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-url-no-ssl"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojects14.md b/docs/models/createprojectenvcontenthintprojects14.md index b2ca9ac7..c82daa52 100644 --- a/docs/models/createprojectenvcontenthintprojects14.md +++ b/docs/models/createprojectenvcontenthintprojects14.md @@ -16,10 +16,10 @@ let value: CreateProjectEnvContentHintProjects14 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated214Type](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated214type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationProductId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"integration-store-secret"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationProductId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojects15.md b/docs/models/createprojectenvcontenthintprojects15.md index 2572dce1..f6c69c8e 100644 --- a/docs/models/createprojectenvcontenthintprojects15.md +++ b/docs/models/createprojectenvcontenthintprojects15.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHintProjects15 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated215Type](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated215type.md) | :heavy_check_mark: | N/A | -| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------- | --------------------------- | --------------------------- | --------------------------- | +| `type` | *"flags-connection-string"* | :heavy_check_mark: | N/A | +| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojects2.md b/docs/models/createprojectenvcontenthintprojects2.md index d132d286..6a8ecadf 100644 --- a/docs/models/createprojectenvcontenthintprojects2.md +++ b/docs/models/createprojectenvcontenthintprojects2.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHintProjects2 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated22Type](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated22type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `type` | *"redis-rest-api-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojects3.md b/docs/models/createprojectenvcontenthintprojects3.md index 8af611a6..c964480d 100644 --- a/docs/models/createprojectenvcontenthintprojects3.md +++ b/docs/models/createprojectenvcontenthintprojects3.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHintProjects3 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated23Type](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated23type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `type` | *"redis-rest-api-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojects4.md b/docs/models/createprojectenvcontenthintprojects4.md index 08798cfb..35f18783 100644 --- a/docs/models/createprojectenvcontenthintprojects4.md +++ b/docs/models/createprojectenvcontenthintprojects4.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHintProjects4 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated24Type](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated24type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | +| `type` | *"redis-rest-api-read-only-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojects5.md b/docs/models/createprojectenvcontenthintprojects5.md index 43b9e298..d417677c 100644 --- a/docs/models/createprojectenvcontenthintprojects5.md +++ b/docs/models/createprojectenvcontenthintprojects5.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHintProjects5 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated25Type](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated25type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `type` | *"blob-read-write-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojects6.md b/docs/models/createprojectenvcontenthintprojects6.md index 0ff65cdc..0a981243 100644 --- a/docs/models/createprojectenvcontenthintprojects6.md +++ b/docs/models/createprojectenvcontenthintprojects6.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHintProjects6 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated26Type](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated26type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojects7.md b/docs/models/createprojectenvcontenthintprojects7.md index 2aaf0bad..e2c4f060 100644 --- a/docs/models/createprojectenvcontenthintprojects7.md +++ b/docs/models/createprojectenvcontenthintprojects7.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHintProjects7 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated27Type](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated27type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"postgres-url-non-pooling"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojects8.md b/docs/models/createprojectenvcontenthintprojects8.md index 838c90ac..4222473e 100644 --- a/docs/models/createprojectenvcontenthintprojects8.md +++ b/docs/models/createprojectenvcontenthintprojects8.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHintProjects8 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated28Type](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated28type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-prisma-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojects9.md b/docs/models/createprojectenvcontenthintprojects9.md index 07ea17e7..2d35ed54 100644 --- a/docs/models/createprojectenvcontenthintprojects9.md +++ b/docs/models/createprojectenvcontenthintprojects9.md @@ -13,7 +13,7 @@ let value: CreateProjectEnvContentHintProjects9 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated29Type](../models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated29type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-user"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated110type.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated110type.md deleted file mode 100644 index cfac8d6f..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated110type.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated110Type - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated110Type, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated110Type = - "postgres-host"; -``` - -## Values - -```typescript -"postgres-host" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated111type.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated111type.md deleted file mode 100644 index b767748e..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated111type.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated111Type - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated111Type, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated111Type = - "postgres-password"; -``` - -## Values - -```typescript -"postgres-password" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated112type.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated112type.md deleted file mode 100644 index ecf571ea..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated112type.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated112Type - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated112Type, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated112Type = - "postgres-database"; -``` - -## Values - -```typescript -"postgres-database" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated113type.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated113type.md deleted file mode 100644 index 6652acd9..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated113type.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated113Type - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated113Type, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated113Type = - "postgres-url-no-ssl"; -``` - -## Values - -```typescript -"postgres-url-no-ssl" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated114type.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated114type.md deleted file mode 100644 index 7f324463..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated114type.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated114Type - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated114Type, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated114Type = - "integration-store-secret"; -``` - -## Values - -```typescript -"integration-store-secret" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated115type.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated115type.md deleted file mode 100644 index fdb04c3c..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated115type.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated115Type - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated115Type, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated115Type = - "flags-connection-string"; -``` - -## Values - -```typescript -"flags-connection-string" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated19type.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated19type.md deleted file mode 100644 index a052a385..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated19type.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated19Type - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated19Type, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated19Type = - "postgres-user"; -``` - -## Values - -```typescript -"postgres-user" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated1type.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated1type.md deleted file mode 100644 index 3be64be0..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated1type.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated1Type - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated1Type, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated1Type = - "postgres-prisma-url"; -``` - -## Values - -```typescript -"postgres-prisma-url" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated210type.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated210type.md deleted file mode 100644 index ab363a14..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated210type.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated210Type - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated210Type, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated210Type = - "postgres-host"; -``` - -## Values - -```typescript -"postgres-host" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated211type.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated211type.md deleted file mode 100644 index 3876d581..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated211type.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated211Type - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated211Type, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated211Type = - "postgres-password"; -``` - -## Values - -```typescript -"postgres-password" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated212type.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated212type.md deleted file mode 100644 index 8ff69fb2..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated212type.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated212Type - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated212Type, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated212Type = - "postgres-database"; -``` - -## Values - -```typescript -"postgres-database" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated213type.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated213type.md deleted file mode 100644 index 9bd722af..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated213type.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated213Type - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated213Type, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated213Type = - "postgres-url-no-ssl"; -``` - -## Values - -```typescript -"postgres-url-no-ssl" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated214type.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated214type.md deleted file mode 100644 index d6489c4a..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated214type.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated214Type - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated214Type, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated214Type = - "integration-store-secret"; -``` - -## Values - -```typescript -"integration-store-secret" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated215type.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated215type.md deleted file mode 100644 index 5f8216b1..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated215type.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated215Type - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated215Type, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated215Type = - "flags-connection-string"; -``` - -## Values - -```typescript -"flags-connection-string" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated22type.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated22type.md deleted file mode 100644 index 37c881c6..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated22type.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated22Type - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated22Type, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated22Type = - "redis-rest-api-url"; -``` - -## Values - -```typescript -"redis-rest-api-url" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated23type.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated23type.md deleted file mode 100644 index 10643b74..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated23type.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated23Type - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated23Type, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated23Type = - "redis-rest-api-token"; -``` - -## Values - -```typescript -"redis-rest-api-token" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated24type.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated24type.md deleted file mode 100644 index 5dfca5a1..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated24type.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated24Type - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated24Type, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated24Type = - "redis-rest-api-read-only-token"; -``` - -## Values - -```typescript -"redis-rest-api-read-only-token" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated25type.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated25type.md deleted file mode 100644 index 1d36067d..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated25type.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated25Type - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated25Type, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated25Type = - "blob-read-write-token"; -``` - -## Values - -```typescript -"blob-read-write-token" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated26type.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated26type.md deleted file mode 100644 index 2a5e6b79..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated26type.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated26Type - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated26Type, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated26Type = - "postgres-url"; -``` - -## Values - -```typescript -"postgres-url" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated27type.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated27type.md deleted file mode 100644 index 294b40bf..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated27type.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated27Type - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated27Type, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated27Type = - "postgres-url-non-pooling"; -``` - -## Values - -```typescript -"postgres-url-non-pooling" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated28type.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated28type.md deleted file mode 100644 index c89fd6e0..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated28type.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated28Type - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated28Type, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated28Type = - "postgres-prisma-url"; -``` - -## Values - -```typescript -"postgres-prisma-url" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated29type.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated29type.md deleted file mode 100644 index ae7256ab..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated29type.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated29Type - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated29Type, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated29Type = - "postgres-user"; -``` - -## Values - -```typescript -"postgres-user" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated2type.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated2type.md deleted file mode 100644 index a2a6f859..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreated2type.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated2Type - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated2Type, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated2Type = - "redis-url"; -``` - -## Values - -```typescript -"redis-url" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreatedtype.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreatedtype.md deleted file mode 100644 index bec5eebb..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodycreatedtype.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreatedType - -## Example Usage - -```typescript -import { - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreatedType, -} from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreatedType = - "postgres-url-non-pooling"; -``` - -## Values - -```typescript -"postgres-url-non-pooling" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodytype.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodytype.md deleted file mode 100644 index 5d3fd4f1..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsonresponsebodytype.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyType - -## Example Usage - -```typescript -import { CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyType } from "@vercel/sdk/models/createprojectenvop.js"; - -let value: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyType = - "postgres-url"; -``` - -## Values - -```typescript -"postgres-url" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsontype.md b/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsontype.md deleted file mode 100644 index 65683099..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201applicationjsontype.md +++ /dev/null @@ -1,16 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201ApplicationJSONType - -## Example Usage - -```typescript -import { CreateProjectEnvContentHintProjectsResponse201ApplicationJSONType } from "@vercel/sdk/models/createprojectenvop.js"; - -let value: CreateProjectEnvContentHintProjectsResponse201ApplicationJSONType = - "blob-read-write-token"; -``` - -## Values - -```typescript -"blob-read-write-token" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponse201type.md b/docs/models/createprojectenvcontenthintprojectsresponse201type.md deleted file mode 100644 index 211b290b..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponse201type.md +++ /dev/null @@ -1,16 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponse201Type - -## Example Usage - -```typescript -import { CreateProjectEnvContentHintProjectsResponse201Type } from "@vercel/sdk/models/createprojectenvop.js"; - -let value: CreateProjectEnvContentHintProjectsResponse201Type = - "redis-rest-api-read-only-token"; -``` - -## Values - -```typescript -"redis-rest-api-read-only-token" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectsresponsetype.md b/docs/models/createprojectenvcontenthintprojectsresponsetype.md deleted file mode 100644 index 5b887842..00000000 --- a/docs/models/createprojectenvcontenthintprojectsresponsetype.md +++ /dev/null @@ -1,16 +0,0 @@ -# CreateProjectEnvContentHintProjectsResponseType - -## Example Usage - -```typescript -import { CreateProjectEnvContentHintProjectsResponseType } from "@vercel/sdk/models/createprojectenvop.js"; - -let value: CreateProjectEnvContentHintProjectsResponseType = - "redis-rest-api-token"; -``` - -## Values - -```typescript -"redis-rest-api-token" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthintprojectstype.md b/docs/models/createprojectenvcontenthintprojectstype.md deleted file mode 100644 index 2172baf8..00000000 --- a/docs/models/createprojectenvcontenthintprojectstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateProjectEnvContentHintProjectsType - -## Example Usage - -```typescript -import { CreateProjectEnvContentHintProjectsType } from "@vercel/sdk/models/createprojectenvop.js"; - -let value: CreateProjectEnvContentHintProjectsType = "redis-rest-api-url"; -``` - -## Values - -```typescript -"redis-rest-api-url" -``` \ No newline at end of file diff --git a/docs/models/createprojectenvcontenthinttype.md b/docs/models/createprojectenvcontenthinttype.md deleted file mode 100644 index 4aebced7..00000000 --- a/docs/models/createprojectenvcontenthinttype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateProjectEnvContentHintType - -## Example Usage - -```typescript -import { CreateProjectEnvContentHintType } from "@vercel/sdk/models/createprojectenvop.js"; - -let value: CreateProjectEnvContentHintType = "redis-url"; -``` - -## Values - -```typescript -"redis-url" -``` \ No newline at end of file diff --git a/docs/models/createprojecthas1.md b/docs/models/createprojecthas1.md index ca044a1c..88ab0ac0 100644 --- a/docs/models/createprojecthas1.md +++ b/docs/models/createprojecthas1.md @@ -18,6 +18,6 @@ let value: CreateProjectHas1 = { | Field | Type | Required | Description | | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `type` | [models.CreateProjectHasType](../models/createprojecthastype.md) | :heavy_check_mark: | N/A | +| `type` | *"header"* | :heavy_check_mark: | N/A | | `key` | [models.HasKey](../models/haskey.md) | :heavy_check_mark: | N/A | | `value` | [models.CreateProjectHasValue](../models/createprojecthasvalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojecthas2.md b/docs/models/createprojecthas2.md index f4c1ca01..a41b5580 100644 --- a/docs/models/createprojecthas2.md +++ b/docs/models/createprojecthas2.md @@ -17,5 +17,5 @@ let value: CreateProjectHas2 = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectHasProjectsType](../models/createprojecthasprojectstype.md) | :heavy_check_mark: | N/A | +| `type` | *"host"* | :heavy_check_mark: | N/A | | `value` | [models.CreateProjectHasProjectsValue](../models/createprojecthasprojectsvalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojecthasprojects1.md b/docs/models/createprojecthasprojects1.md index 817dfdf0..abf4bf76 100644 --- a/docs/models/createprojecthasprojects1.md +++ b/docs/models/createprojecthasprojects1.md @@ -18,6 +18,6 @@ let value: CreateProjectHasProjects1 = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectHasProjectsResponseType](../models/createprojecthasprojectsresponsetype.md) | :heavy_check_mark: | N/A | +| `type` | *"header"* | :heavy_check_mark: | N/A | | `key` | [models.CreateProjectHasProjectsKey](../models/createprojecthasprojectskey.md) | :heavy_check_mark: | N/A | | `value` | [models.CreateProjectHasProjectsResponseValue](../models/createprojecthasprojectsresponsevalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojecthasprojects2.md b/docs/models/createprojecthasprojects2.md index 465325c5..d3dd92ae 100644 --- a/docs/models/createprojecthasprojects2.md +++ b/docs/models/createprojecthasprojects2.md @@ -17,5 +17,5 @@ let value: CreateProjectHasProjects2 = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectHasProjectsResponse200Type](../models/createprojecthasprojectsresponse200type.md) | :heavy_check_mark: | N/A | +| `type` | *"host"* | :heavy_check_mark: | N/A | | `value` | [models.CreateProjectHasProjectsResponse200Value](../models/createprojecthasprojectsresponse200value.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojecthasprojectsresponse1.md b/docs/models/createprojecthasprojectsresponse1.md index cc671de1..e409183b 100644 --- a/docs/models/createprojecthasprojectsresponse1.md +++ b/docs/models/createprojecthasprojectsresponse1.md @@ -18,6 +18,6 @@ let value: CreateProjectHasProjectsResponse1 = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectHasProjectsResponse200ApplicationJSONType](../models/createprojecthasprojectsresponse200applicationjsontype.md) | :heavy_check_mark: | N/A | +| `type` | *"header"* | :heavy_check_mark: | N/A | | `key` | [models.CreateProjectHasKey](../models/createprojecthaskey.md) | :heavy_check_mark: | N/A | | `value` | [models.CreateProjectHasProjectsResponse200ApplicationJSONValue](../models/createprojecthasprojectsresponse200applicationjsonvalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojecthasprojectsresponse2.md b/docs/models/createprojecthasprojectsresponse2.md index beb292bd..2404b9e5 100644 --- a/docs/models/createprojecthasprojectsresponse2.md +++ b/docs/models/createprojecthasprojectsresponse2.md @@ -17,5 +17,5 @@ let value: CreateProjectHasProjectsResponse2 = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyType](../models/createprojecthasprojectsresponse200applicationjsonresponsebodytype.md) | :heavy_check_mark: | N/A | +| `type` | *"host"* | :heavy_check_mark: | N/A | | `value` | [models.CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyValue](../models/createprojecthasprojectsresponse200applicationjsonresponsebodyvalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojecthasprojectsresponse200applicationjsonresponsebodytype.md b/docs/models/createprojecthasprojectsresponse200applicationjsonresponsebodytype.md deleted file mode 100644 index ee9722a2..00000000 --- a/docs/models/createprojecthasprojectsresponse200applicationjsonresponsebodytype.md +++ /dev/null @@ -1,16 +0,0 @@ -# CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyType - -## Example Usage - -```typescript -import { CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyType } from "@vercel/sdk/models/createprojectop.js"; - -let value: CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyType = - "host"; -``` - -## Values - -```typescript -"host" -``` \ No newline at end of file diff --git a/docs/models/createprojecthasprojectsresponse200applicationjsontype.md b/docs/models/createprojecthasprojectsresponse200applicationjsontype.md deleted file mode 100644 index 05b5907c..00000000 --- a/docs/models/createprojecthasprojectsresponse200applicationjsontype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateProjectHasProjectsResponse200ApplicationJSONType - -## Example Usage - -```typescript -import { CreateProjectHasProjectsResponse200ApplicationJSONType } from "@vercel/sdk/models/createprojectop.js"; - -let value: CreateProjectHasProjectsResponse200ApplicationJSONType = "header"; -``` - -## Values - -```typescript -"header" -``` \ No newline at end of file diff --git a/docs/models/createprojecthasprojectsresponse200type.md b/docs/models/createprojecthasprojectsresponse200type.md deleted file mode 100644 index 007b55f4..00000000 --- a/docs/models/createprojecthasprojectsresponse200type.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateProjectHasProjectsResponse200Type - -## Example Usage - -```typescript -import { CreateProjectHasProjectsResponse200Type } from "@vercel/sdk/models/createprojectop.js"; - -let value: CreateProjectHasProjectsResponse200Type = "host"; -``` - -## Values - -```typescript -"host" -``` \ No newline at end of file diff --git a/docs/models/createprojecthasprojectsresponsetype.md b/docs/models/createprojecthasprojectsresponsetype.md deleted file mode 100644 index 275cb170..00000000 --- a/docs/models/createprojecthasprojectsresponsetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateProjectHasProjectsResponseType - -## Example Usage - -```typescript -import { CreateProjectHasProjectsResponseType } from "@vercel/sdk/models/createprojectop.js"; - -let value: CreateProjectHasProjectsResponseType = "header"; -``` - -## Values - -```typescript -"header" -``` \ No newline at end of file diff --git a/docs/models/createprojecthasprojectstype.md b/docs/models/createprojecthasprojectstype.md deleted file mode 100644 index f3ec4eec..00000000 --- a/docs/models/createprojecthasprojectstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateProjectHasProjectsType - -## Example Usage - -```typescript -import { CreateProjectHasProjectsType } from "@vercel/sdk/models/createprojectop.js"; - -let value: CreateProjectHasProjectsType = "host"; -``` - -## Values - -```typescript -"host" -``` \ No newline at end of file diff --git a/docs/models/createprojecthastype.md b/docs/models/createprojecthastype.md deleted file mode 100644 index fbc2e353..00000000 --- a/docs/models/createprojecthastype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateProjectHasType - -## Example Usage - -```typescript -import { CreateProjectHasType } from "@vercel/sdk/models/createprojectop.js"; - -let value: CreateProjectHasType = "header"; -``` - -## Values - -```typescript -"header" -``` \ No newline at end of file diff --git a/docs/models/createprojectlink1.md b/docs/models/createprojectlink1.md index 711f65db..b50d6f5c 100644 --- a/docs/models/createprojectlink1.md +++ b/docs/models/createprojectlink1.md @@ -22,7 +22,7 @@ let value: CreateProjectLink1 = { | `repoOwnerId` | *number* | :heavy_minus_sign: | A new field, should be included in all new project links, is being added just in time when a deployment is created. This is needed for Protected Git scopes. | | `repo` | *string* | :heavy_minus_sign: | N/A | | `repoId` | *number* | :heavy_minus_sign: | N/A | -| `type` | [models.CreateProjectLinkType](../models/createprojectlinktype.md) | :heavy_check_mark: | N/A | +| `type` | *"github"* | :heavy_check_mark: | N/A | | `createdAt` | *number* | :heavy_minus_sign: | N/A | | `deployHooks` | [models.CreateProjectLinkDeployHooks](../models/createprojectlinkdeployhooks.md)[] | :heavy_check_mark: | N/A | | `gitCredentialId` | *string* | :heavy_check_mark: | N/A | diff --git a/docs/models/createprojectlink2.md b/docs/models/createprojectlink2.md index e5ff49bf..c6e682f1 100644 --- a/docs/models/createprojectlink2.md +++ b/docs/models/createprojectlink2.md @@ -25,7 +25,7 @@ let value: CreateProjectLink2 = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.CreateProjectLinkProjectsType](../models/createprojectlinkprojectstype.md) | :heavy_check_mark: | N/A | +| `type` | *"github-limited"* | :heavy_check_mark: | N/A | | `repo` | *string* | :heavy_minus_sign: | N/A | | `repoId` | *number* | :heavy_minus_sign: | N/A | | `createdAt` | *number* | :heavy_minus_sign: | N/A | diff --git a/docs/models/createprojectlink3.md b/docs/models/createprojectlink3.md index ee3a6e4c..75a5fb9c 100644 --- a/docs/models/createprojectlink3.md +++ b/docs/models/createprojectlink3.md @@ -30,7 +30,7 @@ let value: CreateProjectLink3 = { | `repoOwnerId` | *number* | :heavy_minus_sign: | A new field, should be included in all new project links, is being added just in time when a deployment is created. This is needed for Protected Git scopes. | | `repo` | *string* | :heavy_minus_sign: | N/A | | `repoId` | *number* | :heavy_minus_sign: | N/A | -| `type` | [models.CreateProjectLinkProjectsResponseType](../models/createprojectlinkprojectsresponsetype.md) | :heavy_check_mark: | N/A | +| `type` | *"github-custom-host"* | :heavy_check_mark: | N/A | | `host` | *string* | :heavy_check_mark: | N/A | | `createdAt` | *number* | :heavy_minus_sign: | N/A | | `deployHooks` | [models.CreateProjectLinkProjectsResponseDeployHooks](../models/createprojectlinkprojectsresponsedeployhooks.md)[] | :heavy_check_mark: | N/A | diff --git a/docs/models/createprojectlink4.md b/docs/models/createprojectlink4.md index 275cff5b..55fa446d 100644 --- a/docs/models/createprojectlink4.md +++ b/docs/models/createprojectlink4.md @@ -35,7 +35,7 @@ let value: CreateProjectLink4 = { | `projectNamespace` | *string* | :heavy_check_mark: | N/A | | `projectOwnerId` | *number* | :heavy_minus_sign: | A new field, should be included in all new project links, is being added just in time when a deployment is created. This is needed for Protected Git scopes. This is the id of the top level group that a namespace belongs to. Gitlab supports group nesting (up to 20 levels). | | `projectUrl` | *string* | :heavy_check_mark: | N/A | -| `type` | [models.CreateProjectLinkProjectsResponse200Type](../models/createprojectlinkprojectsresponse200type.md) | :heavy_check_mark: | N/A | +| `type` | *"gitlab"* | :heavy_check_mark: | N/A | | `createdAt` | *number* | :heavy_minus_sign: | N/A | | `deployHooks` | [models.CreateProjectLinkProjectsResponse200DeployHooks](../models/createprojectlinkprojectsresponse200deployhooks.md)[] | :heavy_check_mark: | N/A | | `gitCredentialId` | *string* | :heavy_check_mark: | N/A | diff --git a/docs/models/createprojectlink5.md b/docs/models/createprojectlink5.md index 2080d79e..148ba293 100644 --- a/docs/models/createprojectlink5.md +++ b/docs/models/createprojectlink5.md @@ -32,7 +32,7 @@ let value: CreateProjectLink5 = { | `name` | *string* | :heavy_check_mark: | N/A | | `slug` | *string* | :heavy_check_mark: | N/A | | `owner` | *string* | :heavy_check_mark: | N/A | -| `type` | [models.CreateProjectLinkProjectsResponse200ApplicationJSONType](../models/createprojectlinkprojectsresponse200applicationjsontype.md) | :heavy_check_mark: | N/A | +| `type` | *"bitbucket"* | :heavy_check_mark: | N/A | | `uuid` | *string* | :heavy_check_mark: | N/A | | `workspaceUuid` | *string* | :heavy_check_mark: | N/A | | `createdAt` | *number* | :heavy_minus_sign: | N/A | diff --git a/docs/models/createprojectlinkprojectsresponse200applicationjsontype.md b/docs/models/createprojectlinkprojectsresponse200applicationjsontype.md deleted file mode 100644 index 25e611aa..00000000 --- a/docs/models/createprojectlinkprojectsresponse200applicationjsontype.md +++ /dev/null @@ -1,16 +0,0 @@ -# CreateProjectLinkProjectsResponse200ApplicationJSONType - -## Example Usage - -```typescript -import { CreateProjectLinkProjectsResponse200ApplicationJSONType } from "@vercel/sdk/models/createprojectop.js"; - -let value: CreateProjectLinkProjectsResponse200ApplicationJSONType = - "bitbucket"; -``` - -## Values - -```typescript -"bitbucket" -``` \ No newline at end of file diff --git a/docs/models/createprojectlinkprojectsresponse200type.md b/docs/models/createprojectlinkprojectsresponse200type.md deleted file mode 100644 index 8ef6f4f4..00000000 --- a/docs/models/createprojectlinkprojectsresponse200type.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateProjectLinkProjectsResponse200Type - -## Example Usage - -```typescript -import { CreateProjectLinkProjectsResponse200Type } from "@vercel/sdk/models/createprojectop.js"; - -let value: CreateProjectLinkProjectsResponse200Type = "gitlab"; -``` - -## Values - -```typescript -"gitlab" -``` \ No newline at end of file diff --git a/docs/models/createprojectlinkprojectsresponsetype.md b/docs/models/createprojectlinkprojectsresponsetype.md deleted file mode 100644 index c102d72e..00000000 --- a/docs/models/createprojectlinkprojectsresponsetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateProjectLinkProjectsResponseType - -## Example Usage - -```typescript -import { CreateProjectLinkProjectsResponseType } from "@vercel/sdk/models/createprojectop.js"; - -let value: CreateProjectLinkProjectsResponseType = "github-custom-host"; -``` - -## Values - -```typescript -"github-custom-host" -``` \ No newline at end of file diff --git a/docs/models/createprojectlinkprojectstype.md b/docs/models/createprojectlinkprojectstype.md deleted file mode 100644 index 55e6aff2..00000000 --- a/docs/models/createprojectlinkprojectstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateProjectLinkProjectsType - -## Example Usage - -```typescript -import { CreateProjectLinkProjectsType } from "@vercel/sdk/models/createprojectop.js"; - -let value: CreateProjectLinkProjectsType = "github-limited"; -``` - -## Values - -```typescript -"github-limited" -``` \ No newline at end of file diff --git a/docs/models/createprojectlinktype.md b/docs/models/createprojectlinktype.md deleted file mode 100644 index b6f53aa5..00000000 --- a/docs/models/createprojectlinktype.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateProjectLinkType - -## Example Usage - -```typescript -import { CreateProjectLinkType } from "@vercel/sdk/models/createprojectop.js"; - -let value: CreateProjectLinkType = "github"; -``` - -## Values - -```typescript -"github" -``` \ No newline at end of file diff --git a/docs/models/createprojectprotectionbypass1.md b/docs/models/createprojectprotectionbypass1.md index 491d83ee..fa65850f 100644 --- a/docs/models/createprojectprotectionbypass1.md +++ b/docs/models/createprojectprotectionbypass1.md @@ -16,10 +16,10 @@ let value: CreateProjectProtectionBypass1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `createdBy` | *string* | :heavy_check_mark: | N/A | -| `scope` | [models.CreateProjectProtectionBypassScope](../models/createprojectprotectionbypassscope.md) | :heavy_check_mark: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `configurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `createdBy` | *string* | :heavy_check_mark: | N/A | +| `scope` | *"integration-automation-bypass"* | :heavy_check_mark: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `configurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectprotectionbypass2.md b/docs/models/createprojectprotectionbypass2.md index cee2ad1c..f413f4f5 100644 --- a/docs/models/createprojectprotectionbypass2.md +++ b/docs/models/createprojectprotectionbypass2.md @@ -14,8 +14,8 @@ let value: CreateProjectProtectionBypass2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `createdBy` | *string* | :heavy_check_mark: | N/A | -| `scope` | [models.CreateProjectProtectionBypassProjectsScope](../models/createprojectprotectionbypassprojectsscope.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `createdBy` | *string* | :heavy_check_mark: | N/A | +| `scope` | *"automation-bypass"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectprotectionbypassprojectsscope.md b/docs/models/createprojectprotectionbypassprojectsscope.md deleted file mode 100644 index aedc0e26..00000000 --- a/docs/models/createprojectprotectionbypassprojectsscope.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateProjectProtectionBypassProjectsScope - -## Example Usage - -```typescript -import { CreateProjectProtectionBypassProjectsScope } from "@vercel/sdk/models/createprojectop.js"; - -let value: CreateProjectProtectionBypassProjectsScope = "automation-bypass"; -``` - -## Values - -```typescript -"automation-bypass" -``` \ No newline at end of file diff --git a/docs/models/createprojectprotectionbypassscope.md b/docs/models/createprojectprotectionbypassscope.md deleted file mode 100644 index 43ab353b..00000000 --- a/docs/models/createprojectprotectionbypassscope.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateProjectProtectionBypassScope - -## Example Usage - -```typescript -import { CreateProjectProtectionBypassScope } from "@vercel/sdk/models/createprojectop.js"; - -let value: CreateProjectProtectionBypassScope = "integration-automation-bypass"; -``` - -## Values - -```typescript -"integration-automation-bypass" -``` \ No newline at end of file diff --git a/docs/models/credentials.md b/docs/models/credentials.md index 1201a1fa..00e3ad00 100644 --- a/docs/models/credentials.md +++ b/docs/models/credentials.md @@ -12,6 +12,51 @@ const value: models.Credentials1 = { }; ``` +### `models.Credentials1` + +```typescript +const value: models.Credentials1 = { + type: "apple", + id: "", +}; +``` + +### `models.Credentials1` + +```typescript +const value: models.Credentials1 = { + type: "apple", + id: "", +}; +``` + +### `models.Credentials1` + +```typescript +const value: models.Credentials1 = { + type: "apple", + id: "", +}; +``` + +### `models.Credentials1` + +```typescript +const value: models.Credentials1 = { + type: "apple", + id: "", +}; +``` + +### `models.Credentials1` + +```typescript +const value: models.Credentials1 = { + type: "apple", + id: "", +}; +``` + ### `models.Credentials2` ```typescript diff --git a/docs/models/credentials2.md b/docs/models/credentials2.md index c069577e..814c39c5 100644 --- a/docs/models/credentials2.md +++ b/docs/models/credentials2.md @@ -14,8 +14,8 @@ let value: Credentials2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `type` | [models.UserEventCredentialsType](../models/usereventcredentialstype.md) | :heavy_check_mark: | N/A | -| `host` | *string* | :heavy_check_mark: | N/A | -| `id` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"github-oauth-custom-host"* | :heavy_check_mark: | N/A | +| `host` | *string* | :heavy_check_mark: | N/A | +| `id` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/delivery3.md b/docs/models/delivery3.md index c8912e6a..5c66f266 100644 --- a/docs/models/delivery3.md +++ b/docs/models/delivery3.md @@ -14,8 +14,8 @@ let value: Delivery3 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `type` | [models.CreateDrainDeliveryDrainsType](../models/createdraindeliverydrainstype.md) | :heavy_check_mark: | N/A | -| `endpoint` | *string* | :heavy_check_mark: | N/A | -| `table` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"clickhouse"* | :heavy_check_mark: | N/A | +| `endpoint` | *string* | :heavy_check_mark: | N/A | +| `table` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/delivery4.md b/docs/models/delivery4.md index 2e47e9fd..f8e7f8e4 100644 --- a/docs/models/delivery4.md +++ b/docs/models/delivery4.md @@ -13,7 +13,7 @@ let value: Delivery4 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `type` | [models.CreateDrainDeliveryDrainsResponseType](../models/createdraindeliverydrainsresponsetype.md) | :heavy_check_mark: | N/A | -| `target` | [models.DeliveryTarget](../models/deliverytarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | +| `type` | *"internal"* | :heavy_check_mark: | N/A | +| `target` | [models.DeliveryTarget](../models/deliverytarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/deliverytype.md b/docs/models/deliverytype.md deleted file mode 100644 index 8be57dfb..00000000 --- a/docs/models/deliverytype.md +++ /dev/null @@ -1,15 +0,0 @@ -# DeliveryType - -## Example Usage - -```typescript -import { DeliveryType } from "@vercel/sdk/models/createdrainop.js"; - -let value: DeliveryType = "http"; -``` - -## Values - -```typescript -"http" -``` \ No newline at end of file diff --git a/docs/models/domains1.md b/docs/models/domains1.md index d7137d87..2fe29ec4 100644 --- a/docs/models/domains1.md +++ b/docs/models/domains1.md @@ -17,12 +17,12 @@ let value: Domains1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `purchaseType` | [models.GetOrderDomainsDomainsRegistrarPurchaseType](../models/getorderdomainsdomainsregistrarpurchasetype.md) | :heavy_check_mark: | N/A | -| `autoRenew` | *boolean* | :heavy_check_mark: | N/A | -| `years` | *number* | :heavy_check_mark: | The number of years the domain is being purchased for. | -| `domainName` | *string* | :heavy_check_mark: | N/A | -| `status` | [models.DomainsStatus](../models/domainsstatus.md) | :heavy_check_mark: | N/A | -| `price` | *number* | :heavy_check_mark: | The price for the domain. | -| `error` | *models.DomainsError* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `purchaseType` | *"purchase"* | :heavy_check_mark: | N/A | +| `autoRenew` | *boolean* | :heavy_check_mark: | N/A | +| `years` | *number* | :heavy_check_mark: | The number of years the domain is being purchased for. | +| `domainName` | *string* | :heavy_check_mark: | N/A | +| `status` | [models.DomainsStatus](../models/domainsstatus.md) | :heavy_check_mark: | N/A | +| `price` | *number* | :heavy_check_mark: | The price for the domain. | +| `error` | *models.DomainsError* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/domains2.md b/docs/models/domains2.md index badc91d0..976aee55 100644 --- a/docs/models/domains2.md +++ b/docs/models/domains2.md @@ -18,7 +18,7 @@ let value: Domains2 = { | Field | Type | Required | Description | | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `purchaseType` | [models.DomainsPurchaseType](../models/domainspurchasetype.md) | :heavy_check_mark: | N/A | +| `purchaseType` | *"renewal"* | :heavy_check_mark: | N/A | | `years` | *number* | :heavy_check_mark: | The number of years the domain is being renewed for. | | `domainName` | *string* | :heavy_check_mark: | N/A | | `status` | [models.GetOrderDomainsStatus](../models/getorderdomainsstatus.md) | :heavy_check_mark: | N/A | diff --git a/docs/models/domains3.md b/docs/models/domains3.md index b5594697..a4966a85 100644 --- a/docs/models/domains3.md +++ b/docs/models/domains3.md @@ -19,7 +19,7 @@ let value: Domains3 = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `purchaseType` | [models.GetOrderDomainsPurchaseType](../models/getorderdomainspurchasetype.md) | :heavy_check_mark: | N/A | +| `purchaseType` | *"transfer"* | :heavy_check_mark: | N/A | | `autoRenew` | *boolean* | :heavy_check_mark: | N/A | | `years` | *number* | :heavy_check_mark: | The number of years the domain is being transferred for. | | `domainName` | *string* | :heavy_check_mark: | N/A | diff --git a/docs/models/domainspurchasetype.md b/docs/models/domainspurchasetype.md deleted file mode 100644 index d93bfe8c..00000000 --- a/docs/models/domainspurchasetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# DomainsPurchaseType - -## Example Usage - -```typescript -import { DomainsPurchaseType } from "@vercel/sdk/models/getorderop.js"; - -let value: DomainsPurchaseType = "renewal"; -``` - -## Values - -```typescript -"renewal" -``` \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthint1.md b/docs/models/editprojectenvcontenthint1.md index d2d8a705..fa8f8406 100644 --- a/docs/models/editprojectenvcontenthint1.md +++ b/docs/models/editprojectenvcontenthint1.md @@ -13,7 +13,7 @@ let value: EditProjectEnvContentHint1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `type` | [models.EditProjectEnvContentHintType](../models/editprojectenvcontenthinttype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"redis-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthint10.md b/docs/models/editprojectenvcontenthint10.md index 33a4aba8..d7582aff 100644 --- a/docs/models/editprojectenvcontenthint10.md +++ b/docs/models/editprojectenvcontenthint10.md @@ -13,7 +13,7 @@ let value: EditProjectEnvContentHint10 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type](../models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody110type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-host"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthint11.md b/docs/models/editprojectenvcontenthint11.md index 702318b7..c45ddb25 100644 --- a/docs/models/editprojectenvcontenthint11.md +++ b/docs/models/editprojectenvcontenthint11.md @@ -13,7 +13,7 @@ let value: EditProjectEnvContentHint11 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type](../models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody111type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-password"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthint12.md b/docs/models/editprojectenvcontenthint12.md index 3dd7d6d2..6f5c2894 100644 --- a/docs/models/editprojectenvcontenthint12.md +++ b/docs/models/editprojectenvcontenthint12.md @@ -13,7 +13,7 @@ let value: EditProjectEnvContentHint12 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type](../models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody112type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-database"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthint13.md b/docs/models/editprojectenvcontenthint13.md index ede94377..df24a7f5 100644 --- a/docs/models/editprojectenvcontenthint13.md +++ b/docs/models/editprojectenvcontenthint13.md @@ -13,7 +13,7 @@ let value: EditProjectEnvContentHint13 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type](../models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody113type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-url-no-ssl"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthint14.md b/docs/models/editprojectenvcontenthint14.md index 618fe2ad..dcc108bb 100644 --- a/docs/models/editprojectenvcontenthint14.md +++ b/docs/models/editprojectenvcontenthint14.md @@ -16,10 +16,10 @@ let value: EditProjectEnvContentHint14 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type](../models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody114type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationProductId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"integration-store-secret"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationProductId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthint15.md b/docs/models/editprojectenvcontenthint15.md index c9538452..808a0a36 100644 --- a/docs/models/editprojectenvcontenthint15.md +++ b/docs/models/editprojectenvcontenthint15.md @@ -13,7 +13,7 @@ let value: EditProjectEnvContentHint15 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type](../models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody115type.md) | :heavy_check_mark: | N/A | -| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------- | --------------------------- | --------------------------- | --------------------------- | +| `type` | *"flags-connection-string"* | :heavy_check_mark: | N/A | +| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthint2.md b/docs/models/editprojectenvcontenthint2.md index ab7cdf3f..50d0702f 100644 --- a/docs/models/editprojectenvcontenthint2.md +++ b/docs/models/editprojectenvcontenthint2.md @@ -13,7 +13,7 @@ let value: EditProjectEnvContentHint2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `type` | [models.EditProjectEnvContentHintProjectsType](../models/editprojectenvcontenthintprojectstype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `type` | *"redis-rest-api-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthint3.md b/docs/models/editprojectenvcontenthint3.md index 5a53364f..6dbfa472 100644 --- a/docs/models/editprojectenvcontenthint3.md +++ b/docs/models/editprojectenvcontenthint3.md @@ -13,7 +13,7 @@ let value: EditProjectEnvContentHint3 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.EditProjectEnvContentHintProjectsResponseType](../models/editprojectenvcontenthintprojectsresponsetype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `type` | *"redis-rest-api-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthint4.md b/docs/models/editprojectenvcontenthint4.md index 1b4543b1..3ad1db2d 100644 --- a/docs/models/editprojectenvcontenthint4.md +++ b/docs/models/editprojectenvcontenthint4.md @@ -13,7 +13,7 @@ let value: EditProjectEnvContentHint4 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.EditProjectEnvContentHintProjectsResponse200Type](../models/editprojectenvcontenthintprojectsresponse200type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | +| `type` | *"redis-rest-api-read-only-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthint5.md b/docs/models/editprojectenvcontenthint5.md index 0da17992..ba87532f 100644 --- a/docs/models/editprojectenvcontenthint5.md +++ b/docs/models/editprojectenvcontenthint5.md @@ -13,7 +13,7 @@ let value: EditProjectEnvContentHint5 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.EditProjectEnvContentHintProjectsResponse200ApplicationJSONType](../models/editprojectenvcontenthintprojectsresponse200applicationjsontype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `type` | *"blob-read-write-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthint6.md b/docs/models/editprojectenvcontenthint6.md index 0181bcd4..8ca3f5a2 100644 --- a/docs/models/editprojectenvcontenthint6.md +++ b/docs/models/editprojectenvcontenthint6.md @@ -13,7 +13,7 @@ let value: EditProjectEnvContentHint6 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType](../models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebodytype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthint7.md b/docs/models/editprojectenvcontenthint7.md index 5e40d0c3..445a8342 100644 --- a/docs/models/editprojectenvcontenthint7.md +++ b/docs/models/editprojectenvcontenthint7.md @@ -13,7 +13,7 @@ let value: EditProjectEnvContentHint7 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type](../models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody1type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"postgres-url-non-pooling"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthint8.md b/docs/models/editprojectenvcontenthint8.md index 26259392..d7bd0423 100644 --- a/docs/models/editprojectenvcontenthint8.md +++ b/docs/models/editprojectenvcontenthint8.md @@ -13,7 +13,7 @@ let value: EditProjectEnvContentHint8 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type](../models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody18type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-prisma-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthint9.md b/docs/models/editprojectenvcontenthint9.md index deb0426e..86e742f7 100644 --- a/docs/models/editprojectenvcontenthint9.md +++ b/docs/models/editprojectenvcontenthint9.md @@ -13,7 +13,7 @@ let value: EditProjectEnvContentHint9 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type](../models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody19type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-user"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody110type.md b/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody110type.md deleted file mode 100644 index 05a690b1..00000000 --- a/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody110type.md +++ /dev/null @@ -1,17 +0,0 @@ -# EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type - -## Example Usage - -```typescript -import { EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type } from "@vercel/sdk/models/editprojectenvop.js"; - -let value: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type = - "postgres-host"; -``` - -## Values - -```typescript -"postgres-host" -``` \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody111type.md b/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody111type.md deleted file mode 100644 index 2563e2e4..00000000 --- a/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody111type.md +++ /dev/null @@ -1,17 +0,0 @@ -# EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type - -## Example Usage - -```typescript -import { EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type } from "@vercel/sdk/models/editprojectenvop.js"; - -let value: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type = - "postgres-password"; -``` - -## Values - -```typescript -"postgres-password" -``` \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody112type.md b/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody112type.md deleted file mode 100644 index c0483d49..00000000 --- a/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody112type.md +++ /dev/null @@ -1,17 +0,0 @@ -# EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type - -## Example Usage - -```typescript -import { EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type } from "@vercel/sdk/models/editprojectenvop.js"; - -let value: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type = - "postgres-database"; -``` - -## Values - -```typescript -"postgres-database" -``` \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody113type.md b/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody113type.md deleted file mode 100644 index 6d54d112..00000000 --- a/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody113type.md +++ /dev/null @@ -1,17 +0,0 @@ -# EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type - -## Example Usage - -```typescript -import { EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type } from "@vercel/sdk/models/editprojectenvop.js"; - -let value: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type = - "postgres-url-no-ssl"; -``` - -## Values - -```typescript -"postgres-url-no-ssl" -``` \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody114type.md b/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody114type.md deleted file mode 100644 index c2815399..00000000 --- a/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody114type.md +++ /dev/null @@ -1,17 +0,0 @@ -# EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type - -## Example Usage - -```typescript -import { EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type } from "@vercel/sdk/models/editprojectenvop.js"; - -let value: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type = - "integration-store-secret"; -``` - -## Values - -```typescript -"integration-store-secret" -``` \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody115type.md b/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody115type.md deleted file mode 100644 index 3f0b492c..00000000 --- a/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody115type.md +++ /dev/null @@ -1,17 +0,0 @@ -# EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type - -## Example Usage - -```typescript -import { EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type } from "@vercel/sdk/models/editprojectenvop.js"; - -let value: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type = - "flags-connection-string"; -``` - -## Values - -```typescript -"flags-connection-string" -``` \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody18type.md b/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody18type.md deleted file mode 100644 index 72604a5c..00000000 --- a/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody18type.md +++ /dev/null @@ -1,17 +0,0 @@ -# EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type - -## Example Usage - -```typescript -import { EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type } from "@vercel/sdk/models/editprojectenvop.js"; - -let value: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type = - "postgres-prisma-url"; -``` - -## Values - -```typescript -"postgres-prisma-url" -``` \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody19type.md b/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody19type.md deleted file mode 100644 index a2d0aec5..00000000 --- a/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody19type.md +++ /dev/null @@ -1,17 +0,0 @@ -# EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type - -## Example Usage - -```typescript -import { EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type } from "@vercel/sdk/models/editprojectenvop.js"; - -let value: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type = - "postgres-user"; -``` - -## Values - -```typescript -"postgres-user" -``` \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody1type.md b/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody1type.md deleted file mode 100644 index 4f91ebc6..00000000 --- a/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebody1type.md +++ /dev/null @@ -1,17 +0,0 @@ -# EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type - -## Example Usage - -```typescript -import { EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type } from "@vercel/sdk/models/editprojectenvop.js"; - -let value: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type = - "postgres-url-non-pooling"; -``` - -## Values - -```typescript -"postgres-url-non-pooling" -``` \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebodytype.md b/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebodytype.md deleted file mode 100644 index 79bbe564..00000000 --- a/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsonresponsebodytype.md +++ /dev/null @@ -1,17 +0,0 @@ -# EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType - -## Example Usage - -```typescript -import { EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType } from "@vercel/sdk/models/editprojectenvop.js"; - -let value: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType = - "postgres-url"; -``` - -## Values - -```typescript -"postgres-url" -``` \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsontype.md b/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsontype.md deleted file mode 100644 index 70cb5a17..00000000 --- a/docs/models/editprojectenvcontenthintprojectsresponse200applicationjsontype.md +++ /dev/null @@ -1,16 +0,0 @@ -# EditProjectEnvContentHintProjectsResponse200ApplicationJSONType - -## Example Usage - -```typescript -import { EditProjectEnvContentHintProjectsResponse200ApplicationJSONType } from "@vercel/sdk/models/editprojectenvop.js"; - -let value: EditProjectEnvContentHintProjectsResponse200ApplicationJSONType = - "blob-read-write-token"; -``` - -## Values - -```typescript -"blob-read-write-token" -``` \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthintprojectsresponse200type.md b/docs/models/editprojectenvcontenthintprojectsresponse200type.md deleted file mode 100644 index 633673f7..00000000 --- a/docs/models/editprojectenvcontenthintprojectsresponse200type.md +++ /dev/null @@ -1,16 +0,0 @@ -# EditProjectEnvContentHintProjectsResponse200Type - -## Example Usage - -```typescript -import { EditProjectEnvContentHintProjectsResponse200Type } from "@vercel/sdk/models/editprojectenvop.js"; - -let value: EditProjectEnvContentHintProjectsResponse200Type = - "redis-rest-api-read-only-token"; -``` - -## Values - -```typescript -"redis-rest-api-read-only-token" -``` \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthintprojectsresponsetype.md b/docs/models/editprojectenvcontenthintprojectsresponsetype.md deleted file mode 100644 index 680d46a6..00000000 --- a/docs/models/editprojectenvcontenthintprojectsresponsetype.md +++ /dev/null @@ -1,16 +0,0 @@ -# EditProjectEnvContentHintProjectsResponseType - -## Example Usage - -```typescript -import { EditProjectEnvContentHintProjectsResponseType } from "@vercel/sdk/models/editprojectenvop.js"; - -let value: EditProjectEnvContentHintProjectsResponseType = - "redis-rest-api-token"; -``` - -## Values - -```typescript -"redis-rest-api-token" -``` \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthintprojectstype.md b/docs/models/editprojectenvcontenthintprojectstype.md deleted file mode 100644 index b59db844..00000000 --- a/docs/models/editprojectenvcontenthintprojectstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# EditProjectEnvContentHintProjectsType - -## Example Usage - -```typescript -import { EditProjectEnvContentHintProjectsType } from "@vercel/sdk/models/editprojectenvop.js"; - -let value: EditProjectEnvContentHintProjectsType = "redis-rest-api-url"; -``` - -## Values - -```typescript -"redis-rest-api-url" -``` \ No newline at end of file diff --git a/docs/models/editprojectenvcontenthinttype.md b/docs/models/editprojectenvcontenthinttype.md deleted file mode 100644 index faa6313b..00000000 --- a/docs/models/editprojectenvcontenthinttype.md +++ /dev/null @@ -1,15 +0,0 @@ -# EditProjectEnvContentHintType - -## Example Usage - -```typescript -import { EditProjectEnvContentHintType } from "@vercel/sdk/models/editprojectenvop.js"; - -let value: EditProjectEnvContentHintType = "redis-url"; -``` - -## Values - -```typescript -"redis-url" -``` \ No newline at end of file diff --git a/docs/models/event1.md b/docs/models/event1.md index c5f13a4c..024bccdf 100644 --- a/docs/models/event1.md +++ b/docs/models/event1.md @@ -12,7 +12,7 @@ let value: Event1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `type` | [models.EventType](../models/eventtype.md) | :heavy_check_mark: | N/A | -| `billingPlanId` | *string* | :heavy_minus_sign: | The installation-level billing plan ID | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | +| `type` | *"installation.updated"* | :heavy_check_mark: | N/A | +| `billingPlanId` | *string* | :heavy_minus_sign: | The installation-level billing plan ID | \ No newline at end of file diff --git a/docs/models/event2.md b/docs/models/event2.md index 66f9db2b..2643c72b 100644 --- a/docs/models/event2.md +++ b/docs/models/event2.md @@ -13,8 +13,8 @@ let value: Event2 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `type` | [models.CreateEventEventType](../models/createeventeventtype.md) | :heavy_check_mark: | N/A | -| `productId` | *string* | :heavy_minus_sign: | Partner-provided product slug or id | -| `resourceId` | *string* | :heavy_check_mark: | Partner provided resource ID | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `type` | *"resource.updated"* | :heavy_check_mark: | N/A | +| `productId` | *string* | :heavy_minus_sign: | Partner-provided product slug or id | +| `resourceId` | *string* | :heavy_check_mark: | Partner provided resource ID | \ No newline at end of file diff --git a/docs/models/eventtype.md b/docs/models/eventtype.md deleted file mode 100644 index e9f4fe76..00000000 --- a/docs/models/eventtype.md +++ /dev/null @@ -1,15 +0,0 @@ -# EventType - -## Example Usage - -```typescript -import { EventType } from "@vercel/sdk/models/createeventop.js"; - -let value: EventType = "installation.updated"; -``` - -## Values - -```typescript -"installation.updated" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthint1.md b/docs/models/filterprojectenvscontenthint1.md index 5ad46be1..8339b809 100644 --- a/docs/models/filterprojectenvscontenthint1.md +++ b/docs/models/filterprojectenvscontenthint1.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHint1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `type` | [models.FilterProjectEnvsContentHintType](../models/filterprojectenvscontenthinttype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"redis-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthint10.md b/docs/models/filterprojectenvscontenthint10.md index b0c2586b..d8c03e2c 100644 --- a/docs/models/filterprojectenvscontenthint10.md +++ b/docs/models/filterprojectenvscontenthint10.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHint10 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody110Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody110type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-host"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthint11.md b/docs/models/filterprojectenvscontenthint11.md index 42d4beef..4ea7871d 100644 --- a/docs/models/filterprojectenvscontenthint11.md +++ b/docs/models/filterprojectenvscontenthint11.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHint11 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody111Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody111type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-password"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthint12.md b/docs/models/filterprojectenvscontenthint12.md index 79e9f8df..05539853 100644 --- a/docs/models/filterprojectenvscontenthint12.md +++ b/docs/models/filterprojectenvscontenthint12.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHint12 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody112Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody112type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-database"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthint13.md b/docs/models/filterprojectenvscontenthint13.md index b2242ff9..c090d50a 100644 --- a/docs/models/filterprojectenvscontenthint13.md +++ b/docs/models/filterprojectenvscontenthint13.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHint13 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody113Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody113type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-url-no-ssl"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthint14.md b/docs/models/filterprojectenvscontenthint14.md index ab6335fb..f6e84627 100644 --- a/docs/models/filterprojectenvscontenthint14.md +++ b/docs/models/filterprojectenvscontenthint14.md @@ -16,10 +16,10 @@ let value: FilterProjectEnvsContentHint14 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody114Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody114type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationProductId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"integration-store-secret"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationProductId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthint15.md b/docs/models/filterprojectenvscontenthint15.md index f4c9584f..b2879233 100644 --- a/docs/models/filterprojectenvscontenthint15.md +++ b/docs/models/filterprojectenvscontenthint15.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHint15 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody115Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody115type.md) | :heavy_check_mark: | N/A | -| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------- | --------------------------- | --------------------------- | --------------------------- | +| `type` | *"flags-connection-string"* | :heavy_check_mark: | N/A | +| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthint2.md b/docs/models/filterprojectenvscontenthint2.md index 9a5a5488..13d1bfef 100644 --- a/docs/models/filterprojectenvscontenthint2.md +++ b/docs/models/filterprojectenvscontenthint2.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHint2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `type` | [models.FilterProjectEnvsContentHintProjectsType](../models/filterprojectenvscontenthintprojectstype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `type` | *"redis-rest-api-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthint3.md b/docs/models/filterprojectenvscontenthint3.md index 053c4cc7..7cfcff8a 100644 --- a/docs/models/filterprojectenvscontenthint3.md +++ b/docs/models/filterprojectenvscontenthint3.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHint3 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponseType](../models/filterprojectenvscontenthintprojectsresponsetype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `type` | *"redis-rest-api-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthint4.md b/docs/models/filterprojectenvscontenthint4.md index 0c6f2d47..2d1e40dc 100644 --- a/docs/models/filterprojectenvscontenthint4.md +++ b/docs/models/filterprojectenvscontenthint4.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHint4 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200Type](../models/filterprojectenvscontenthintprojectsresponse200type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | +| `type` | *"redis-rest-api-read-only-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthint5.md b/docs/models/filterprojectenvscontenthint5.md index abfe809e..bc1a2b3f 100644 --- a/docs/models/filterprojectenvscontenthint5.md +++ b/docs/models/filterprojectenvscontenthint5.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHint5 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONType](../models/filterprojectenvscontenthintprojectsresponse200applicationjsontype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `type` | *"blob-read-write-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthint6.md b/docs/models/filterprojectenvscontenthint6.md index c45ae505..41b27010 100644 --- a/docs/models/filterprojectenvscontenthint6.md +++ b/docs/models/filterprojectenvscontenthint6.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHint6 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBodyType](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebodytype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthint7.md b/docs/models/filterprojectenvscontenthint7.md index 491e8b77..7e1daaa3 100644 --- a/docs/models/filterprojectenvscontenthint7.md +++ b/docs/models/filterprojectenvscontenthint7.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHint7 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody1Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody1type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"postgres-url-non-pooling"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthint8.md b/docs/models/filterprojectenvscontenthint8.md index 29999a3b..d526fff3 100644 --- a/docs/models/filterprojectenvscontenthint8.md +++ b/docs/models/filterprojectenvscontenthint8.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHint8 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody18Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody18type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-prisma-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthint9.md b/docs/models/filterprojectenvscontenthint9.md index e427853f..64c85ca8 100644 --- a/docs/models/filterprojectenvscontenthint9.md +++ b/docs/models/filterprojectenvscontenthint9.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHint9 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody19Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody19type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-user"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojects1.md b/docs/models/filterprojectenvscontenthintprojects1.md index abc49cbb..5261d2d2 100644 --- a/docs/models/filterprojectenvscontenthintprojects1.md +++ b/docs/models/filterprojectenvscontenthintprojects1.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjects1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"redis-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojects10.md b/docs/models/filterprojectenvscontenthintprojects10.md index deca831a..f1c56f25 100644 --- a/docs/models/filterprojectenvscontenthintprojects10.md +++ b/docs/models/filterprojectenvscontenthintprojects10.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjects10 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs10Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs10type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-host"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojects11.md b/docs/models/filterprojectenvscontenthintprojects11.md index b842f264..7928b8cb 100644 --- a/docs/models/filterprojectenvscontenthintprojects11.md +++ b/docs/models/filterprojectenvscontenthintprojects11.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjects11 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs11Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs11type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-password"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojects12.md b/docs/models/filterprojectenvscontenthintprojects12.md index 00107cc7..275f393a 100644 --- a/docs/models/filterprojectenvscontenthintprojects12.md +++ b/docs/models/filterprojectenvscontenthintprojects12.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjects12 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs12Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs12type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-database"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojects13.md b/docs/models/filterprojectenvscontenthintprojects13.md index 150ba8cc..14532f19 100644 --- a/docs/models/filterprojectenvscontenthintprojects13.md +++ b/docs/models/filterprojectenvscontenthintprojects13.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjects13 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs13Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs13type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-url-no-ssl"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojects14.md b/docs/models/filterprojectenvscontenthintprojects14.md index 9c5ab762..242bf073 100644 --- a/docs/models/filterprojectenvscontenthintprojects14.md +++ b/docs/models/filterprojectenvscontenthintprojects14.md @@ -16,10 +16,10 @@ let value: FilterProjectEnvsContentHintProjects14 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs14Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs14type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationProductId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"integration-store-secret"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationProductId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojects15.md b/docs/models/filterprojectenvscontenthintprojects15.md index 0cbc6540..f7c79c45 100644 --- a/docs/models/filterprojectenvscontenthintprojects15.md +++ b/docs/models/filterprojectenvscontenthintprojects15.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjects15 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs15Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs15type.md) | :heavy_check_mark: | N/A | -| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------- | --------------------------- | --------------------------- | --------------------------- | +| `type` | *"flags-connection-string"* | :heavy_check_mark: | N/A | +| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojects2.md b/docs/models/filterprojectenvscontenthintprojects2.md index cd51ac70..52721cd8 100644 --- a/docs/models/filterprojectenvscontenthintprojects2.md +++ b/docs/models/filterprojectenvscontenthintprojects2.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjects2 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2EnvsType](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envstype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `type` | *"redis-rest-api-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojects3.md b/docs/models/filterprojectenvscontenthintprojects3.md index f22addc8..aabeb812 100644 --- a/docs/models/filterprojectenvscontenthintprojects3.md +++ b/docs/models/filterprojectenvscontenthintprojects3.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjects3 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs3Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs3type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `type` | *"redis-rest-api-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojects4.md b/docs/models/filterprojectenvscontenthintprojects4.md index 3d01520d..0e5e6111 100644 --- a/docs/models/filterprojectenvscontenthintprojects4.md +++ b/docs/models/filterprojectenvscontenthintprojects4.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjects4 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs4Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs4type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | +| `type` | *"redis-rest-api-read-only-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojects5.md b/docs/models/filterprojectenvscontenthintprojects5.md index 915476fd..3acbec33 100644 --- a/docs/models/filterprojectenvscontenthintprojects5.md +++ b/docs/models/filterprojectenvscontenthintprojects5.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjects5 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs5Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs5type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `type` | *"blob-read-write-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojects6.md b/docs/models/filterprojectenvscontenthintprojects6.md index 5d215b06..394c239c 100644 --- a/docs/models/filterprojectenvscontenthintprojects6.md +++ b/docs/models/filterprojectenvscontenthintprojects6.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjects6 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs6Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs6type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojects7.md b/docs/models/filterprojectenvscontenthintprojects7.md index a7792ee1..efadb99e 100644 --- a/docs/models/filterprojectenvscontenthintprojects7.md +++ b/docs/models/filterprojectenvscontenthintprojects7.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjects7 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs7Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs7type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"postgres-url-non-pooling"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojects8.md b/docs/models/filterprojectenvscontenthintprojects8.md index ef794f46..6b1e389d 100644 --- a/docs/models/filterprojectenvscontenthintprojects8.md +++ b/docs/models/filterprojectenvscontenthintprojects8.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjects8 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs8Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs8type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-prisma-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojects9.md b/docs/models/filterprojectenvscontenthintprojects9.md index f90ead7e..6542113a 100644 --- a/docs/models/filterprojectenvscontenthintprojects9.md +++ b/docs/models/filterprojectenvscontenthintprojects9.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjects9 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs9Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs9type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-user"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse1.md b/docs/models/filterprojectenvscontenthintprojectsresponse1.md index d4054568..3babfffd 100644 --- a/docs/models/filterprojectenvscontenthintprojectsresponse1.md +++ b/docs/models/filterprojectenvscontenthintprojectsresponse1.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjectsResponse1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"redis-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse10.md b/docs/models/filterprojectenvscontenthintprojectsresponse10.md index 297616c6..17df18c0 100644 --- a/docs/models/filterprojectenvscontenthintprojectsresponse10.md +++ b/docs/models/filterprojectenvscontenthintprojectsresponse10.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjectsResponse10 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs10Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs10type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-host"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse11.md b/docs/models/filterprojectenvscontenthintprojectsresponse11.md index e1e323f3..ae9ecd83 100644 --- a/docs/models/filterprojectenvscontenthintprojectsresponse11.md +++ b/docs/models/filterprojectenvscontenthintprojectsresponse11.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjectsResponse11 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs11Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs11type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-password"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse12.md b/docs/models/filterprojectenvscontenthintprojectsresponse12.md index 9e175927..e44391e7 100644 --- a/docs/models/filterprojectenvscontenthintprojectsresponse12.md +++ b/docs/models/filterprojectenvscontenthintprojectsresponse12.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjectsResponse12 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs12Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs12type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-database"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse13.md b/docs/models/filterprojectenvscontenthintprojectsresponse13.md index d63de8e0..e8c408f1 100644 --- a/docs/models/filterprojectenvscontenthintprojectsresponse13.md +++ b/docs/models/filterprojectenvscontenthintprojectsresponse13.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjectsResponse13 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs13Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs13type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-url-no-ssl"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse14.md b/docs/models/filterprojectenvscontenthintprojectsresponse14.md index c645f296..70ccca99 100644 --- a/docs/models/filterprojectenvscontenthintprojectsresponse14.md +++ b/docs/models/filterprojectenvscontenthintprojectsresponse14.md @@ -16,10 +16,10 @@ let value: FilterProjectEnvsContentHintProjectsResponse14 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs14Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs14type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationProductId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"integration-store-secret"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationProductId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse15.md b/docs/models/filterprojectenvscontenthintprojectsresponse15.md index 22788c80..21917822 100644 --- a/docs/models/filterprojectenvscontenthintprojectsresponse15.md +++ b/docs/models/filterprojectenvscontenthintprojectsresponse15.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjectsResponse15 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs15Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs15type.md) | :heavy_check_mark: | N/A | -| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------- | --------------------------- | --------------------------- | --------------------------- | +| `type` | *"flags-connection-string"* | :heavy_check_mark: | N/A | +| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse2.md b/docs/models/filterprojectenvscontenthintprojectsresponse2.md index fb13792a..0eb0e9ab 100644 --- a/docs/models/filterprojectenvscontenthintprojectsresponse2.md +++ b/docs/models/filterprojectenvscontenthintprojectsresponse2.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjectsResponse2 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3EnvsType](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envstype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `type` | *"redis-rest-api-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody110type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody110type.md deleted file mode 100644 index 8f91c0eb..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody110type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody110Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody110Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody110Type = - "postgres-host"; -``` - -## Values - -```typescript -"postgres-host" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody111type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody111type.md deleted file mode 100644 index 071348e2..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody111type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody111Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody111Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody111Type = - "postgres-password"; -``` - -## Values - -```typescript -"postgres-password" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody112type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody112type.md deleted file mode 100644 index 8d2ac94c..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody112type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody112Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody112Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody112Type = - "postgres-database"; -``` - -## Values - -```typescript -"postgres-database" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody113type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody113type.md deleted file mode 100644 index f2e52f8b..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody113type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody113Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody113Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody113Type = - "postgres-url-no-ssl"; -``` - -## Values - -```typescript -"postgres-url-no-ssl" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody114type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody114type.md deleted file mode 100644 index 4ef2bb6c..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody114type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody114Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody114Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody114Type = - "integration-store-secret"; -``` - -## Values - -```typescript -"integration-store-secret" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody115type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody115type.md deleted file mode 100644 index 0bba49fe..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody115type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody115Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody115Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody115Type = - "flags-connection-string"; -``` - -## Values - -```typescript -"flags-connection-string" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody18type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody18type.md deleted file mode 100644 index 773dfdf7..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody18type.md +++ /dev/null @@ -1,17 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody18Type - -## Example Usage - -```typescript -import { FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody18Type } from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody18Type = - "postgres-prisma-url"; -``` - -## Values - -```typescript -"postgres-prisma-url" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody19type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody19type.md deleted file mode 100644 index f9f0e414..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody19type.md +++ /dev/null @@ -1,17 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody19Type - -## Example Usage - -```typescript -import { FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody19Type } from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody19Type = - "postgres-user"; -``` - -## Values - -```typescript -"postgres-user" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody1type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody1type.md deleted file mode 100644 index db0de1d1..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody1type.md +++ /dev/null @@ -1,17 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody1Type - -## Example Usage - -```typescript -import { FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody1Type } from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody1Type = - "postgres-url-non-pooling"; -``` - -## Values - -```typescript -"postgres-url-non-pooling" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs10type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs10type.md deleted file mode 100644 index ad718aa0..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs10type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs10Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs10Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs10Type = - "postgres-host"; -``` - -## Values - -```typescript -"postgres-host" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs11type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs11type.md deleted file mode 100644 index a0a282ec..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs11type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs11Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs11Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs11Type = - "postgres-password"; -``` - -## Values - -```typescript -"postgres-password" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs12type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs12type.md deleted file mode 100644 index 557c9227..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs12type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs12Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs12Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs12Type = - "postgres-database"; -``` - -## Values - -```typescript -"postgres-database" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs13type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs13type.md deleted file mode 100644 index fcae0d55..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs13type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs13Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs13Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs13Type = - "postgres-url-no-ssl"; -``` - -## Values - -```typescript -"postgres-url-no-ssl" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs14type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs14type.md deleted file mode 100644 index 3df5e277..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs14type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs14Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs14Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs14Type = - "integration-store-secret"; -``` - -## Values - -```typescript -"integration-store-secret" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs15type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs15type.md deleted file mode 100644 index 4a854532..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs15type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs15Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs15Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs15Type = - "flags-connection-string"; -``` - -## Values - -```typescript -"flags-connection-string" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs3type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs3type.md deleted file mode 100644 index ba67eea8..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs3type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs3Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs3Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs3Type = - "redis-rest-api-token"; -``` - -## Values - -```typescript -"redis-rest-api-token" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs4type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs4type.md deleted file mode 100644 index e83094be..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs4type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs4Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs4Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs4Type = - "redis-rest-api-read-only-token"; -``` - -## Values - -```typescript -"redis-rest-api-read-only-token" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs5type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs5type.md deleted file mode 100644 index 05490970..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs5type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs5Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs5Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs5Type = - "blob-read-write-token"; -``` - -## Values - -```typescript -"blob-read-write-token" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs6type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs6type.md deleted file mode 100644 index 1bca8bcb..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs6type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs6Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs6Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs6Type = - "postgres-url"; -``` - -## Values - -```typescript -"postgres-url" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs7type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs7type.md deleted file mode 100644 index 4e00f9d5..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs7type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs7Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs7Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs7Type = - "postgres-url-non-pooling"; -``` - -## Values - -```typescript -"postgres-url-non-pooling" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs8type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs8type.md deleted file mode 100644 index 3b2cd81a..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs8type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs8Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs8Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs8Type = - "postgres-prisma-url"; -``` - -## Values - -```typescript -"postgres-prisma-url" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs9type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs9type.md deleted file mode 100644 index 77f8e1d3..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envs9type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs9Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs9Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs9Type = - "postgres-user"; -``` - -## Values - -```typescript -"postgres-user" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envstype.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envstype.md deleted file mode 100644 index c53cfe07..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2envstype.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2EnvsType - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2EnvsType, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2EnvsType = - "redis-rest-api-url"; -``` - -## Values - -```typescript -"redis-rest-api-url" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2type.md deleted file mode 100644 index 58ba04d3..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody2type.md +++ /dev/null @@ -1,17 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Type - -## Example Usage - -```typescript -import { FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Type } from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Type = - "redis-url"; -``` - -## Values - -```typescript -"redis-url" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs10type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs10type.md deleted file mode 100644 index 7ccd602a..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs10type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs10Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs10Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs10Type = - "postgres-host"; -``` - -## Values - -```typescript -"postgres-host" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs11type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs11type.md deleted file mode 100644 index 5af2ada3..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs11type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs11Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs11Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs11Type = - "postgres-password"; -``` - -## Values - -```typescript -"postgres-password" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs12type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs12type.md deleted file mode 100644 index 1b60a31e..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs12type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs12Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs12Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs12Type = - "postgres-database"; -``` - -## Values - -```typescript -"postgres-database" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs13type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs13type.md deleted file mode 100644 index 3eafc5da..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs13type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs13Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs13Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs13Type = - "postgres-url-no-ssl"; -``` - -## Values - -```typescript -"postgres-url-no-ssl" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs14type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs14type.md deleted file mode 100644 index 9dbef3bd..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs14type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs14Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs14Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs14Type = - "integration-store-secret"; -``` - -## Values - -```typescript -"integration-store-secret" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs15type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs15type.md deleted file mode 100644 index 3880fb3d..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs15type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs15Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs15Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs15Type = - "flags-connection-string"; -``` - -## Values - -```typescript -"flags-connection-string" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs3type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs3type.md deleted file mode 100644 index d3bb2ef0..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs3type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs3Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs3Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs3Type = - "redis-rest-api-token"; -``` - -## Values - -```typescript -"redis-rest-api-token" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs4type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs4type.md deleted file mode 100644 index 5493d2d7..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs4type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs4Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs4Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs4Type = - "redis-rest-api-read-only-token"; -``` - -## Values - -```typescript -"redis-rest-api-read-only-token" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs5type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs5type.md deleted file mode 100644 index 0a73f5cd..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs5type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs5Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs5Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs5Type = - "blob-read-write-token"; -``` - -## Values - -```typescript -"blob-read-write-token" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs6type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs6type.md deleted file mode 100644 index 5b4f0b4d..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs6type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs6Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs6Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs6Type = - "postgres-url"; -``` - -## Values - -```typescript -"postgres-url" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs7type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs7type.md deleted file mode 100644 index e8fb72a3..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs7type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs7Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs7Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs7Type = - "postgres-url-non-pooling"; -``` - -## Values - -```typescript -"postgres-url-non-pooling" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs8type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs8type.md deleted file mode 100644 index b2eb552b..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs8type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs8Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs8Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs8Type = - "postgres-prisma-url"; -``` - -## Values - -```typescript -"postgres-prisma-url" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs9type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs9type.md deleted file mode 100644 index 72d5d967..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs9type.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs9Type - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs9Type, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs9Type = - "postgres-user"; -``` - -## Values - -```typescript -"postgres-user" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envstype.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envstype.md deleted file mode 100644 index b368048c..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envstype.md +++ /dev/null @@ -1,19 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3EnvsType - -## Example Usage - -```typescript -import { - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3EnvsType, -} from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3EnvsType = - "redis-rest-api-url"; -``` - -## Values - -```typescript -"redis-rest-api-url" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3type.md deleted file mode 100644 index f352da65..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3type.md +++ /dev/null @@ -1,17 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Type - -## Example Usage - -```typescript -import { FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Type } from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Type = - "redis-url"; -``` - -## Values - -```typescript -"redis-url" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebodytype.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebodytype.md deleted file mode 100644 index 2a0a57a9..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebodytype.md +++ /dev/null @@ -1,17 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBodyType - -## Example Usage - -```typescript -import { FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBodyType } from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBodyType = - "postgres-url"; -``` - -## Values - -```typescript -"postgres-url" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsontype.md b/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsontype.md deleted file mode 100644 index 64193e59..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200applicationjsontype.md +++ /dev/null @@ -1,16 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONType - -## Example Usage - -```typescript -import { FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONType } from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONType = - "blob-read-write-token"; -``` - -## Values - -```typescript -"blob-read-write-token" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse200type.md b/docs/models/filterprojectenvscontenthintprojectsresponse200type.md deleted file mode 100644 index 5feb433e..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponse200type.md +++ /dev/null @@ -1,16 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponse200Type - -## Example Usage - -```typescript -import { FilterProjectEnvsContentHintProjectsResponse200Type } from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: FilterProjectEnvsContentHintProjectsResponse200Type = - "redis-rest-api-read-only-token"; -``` - -## Values - -```typescript -"redis-rest-api-read-only-token" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse3.md b/docs/models/filterprojectenvscontenthintprojectsresponse3.md index edd27fc0..6414294c 100644 --- a/docs/models/filterprojectenvscontenthintprojectsresponse3.md +++ b/docs/models/filterprojectenvscontenthintprojectsresponse3.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjectsResponse3 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs3Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs3type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `type` | *"redis-rest-api-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse4.md b/docs/models/filterprojectenvscontenthintprojectsresponse4.md index 44eab0ad..3eab443f 100644 --- a/docs/models/filterprojectenvscontenthintprojectsresponse4.md +++ b/docs/models/filterprojectenvscontenthintprojectsresponse4.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjectsResponse4 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs4Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs4type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | +| `type` | *"redis-rest-api-read-only-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse5.md b/docs/models/filterprojectenvscontenthintprojectsresponse5.md index 7168e2d1..1cb439db 100644 --- a/docs/models/filterprojectenvscontenthintprojectsresponse5.md +++ b/docs/models/filterprojectenvscontenthintprojectsresponse5.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjectsResponse5 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs5Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs5type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `type` | *"blob-read-write-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse6.md b/docs/models/filterprojectenvscontenthintprojectsresponse6.md index b429078a..68cec634 100644 --- a/docs/models/filterprojectenvscontenthintprojectsresponse6.md +++ b/docs/models/filterprojectenvscontenthintprojectsresponse6.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjectsResponse6 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs6Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs6type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse7.md b/docs/models/filterprojectenvscontenthintprojectsresponse7.md index 2370b34f..d0ee48c3 100644 --- a/docs/models/filterprojectenvscontenthintprojectsresponse7.md +++ b/docs/models/filterprojectenvscontenthintprojectsresponse7.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjectsResponse7 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs7Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs7type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"postgres-url-non-pooling"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse8.md b/docs/models/filterprojectenvscontenthintprojectsresponse8.md index 7fe18a9a..f537458c 100644 --- a/docs/models/filterprojectenvscontenthintprojectsresponse8.md +++ b/docs/models/filterprojectenvscontenthintprojectsresponse8.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjectsResponse8 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs8Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs8type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-prisma-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponse9.md b/docs/models/filterprojectenvscontenthintprojectsresponse9.md index 1fb34ed6..cfe59ccf 100644 --- a/docs/models/filterprojectenvscontenthintprojectsresponse9.md +++ b/docs/models/filterprojectenvscontenthintprojectsresponse9.md @@ -13,7 +13,7 @@ let value: FilterProjectEnvsContentHintProjectsResponse9 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs9Type](../models/filterprojectenvscontenthintprojectsresponse200applicationjsonresponsebody3envs9type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-user"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectsresponsetype.md b/docs/models/filterprojectenvscontenthintprojectsresponsetype.md deleted file mode 100644 index b7f4f9a0..00000000 --- a/docs/models/filterprojectenvscontenthintprojectsresponsetype.md +++ /dev/null @@ -1,16 +0,0 @@ -# FilterProjectEnvsContentHintProjectsResponseType - -## Example Usage - -```typescript -import { FilterProjectEnvsContentHintProjectsResponseType } from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: FilterProjectEnvsContentHintProjectsResponseType = - "redis-rest-api-token"; -``` - -## Values - -```typescript -"redis-rest-api-token" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthintprojectstype.md b/docs/models/filterprojectenvscontenthintprojectstype.md deleted file mode 100644 index c2cb9bff..00000000 --- a/docs/models/filterprojectenvscontenthintprojectstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# FilterProjectEnvsContentHintProjectsType - -## Example Usage - -```typescript -import { FilterProjectEnvsContentHintProjectsType } from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: FilterProjectEnvsContentHintProjectsType = "redis-rest-api-url"; -``` - -## Values - -```typescript -"redis-rest-api-url" -``` \ No newline at end of file diff --git a/docs/models/filterprojectenvscontenthinttype.md b/docs/models/filterprojectenvscontenthinttype.md deleted file mode 100644 index 615a8356..00000000 --- a/docs/models/filterprojectenvscontenthinttype.md +++ /dev/null @@ -1,15 +0,0 @@ -# FilterProjectEnvsContentHintType - -## Example Usage - -```typescript -import { FilterProjectEnvsContentHintType } from "@vercel/sdk/models/filterprojectenvsop.js"; - -let value: FilterProjectEnvsContentHintType = "redis-url"; -``` - -## Values - -```typescript -"redis-url" -``` \ No newline at end of file diff --git a/docs/models/filtertype.md b/docs/models/filtertype.md deleted file mode 100644 index 199e2a07..00000000 --- a/docs/models/filtertype.md +++ /dev/null @@ -1,15 +0,0 @@ -# FilterType - -## Example Usage - -```typescript -import { FilterType } from "@vercel/sdk/models/createdrainop.js"; - -let value: FilterType = "basic"; -``` - -## Values - -```typescript -"basic" -``` \ No newline at end of file diff --git a/docs/models/filterv21.md b/docs/models/filterv21.md index 980c3ef0..cbec5460 100644 --- a/docs/models/filterv21.md +++ b/docs/models/filterv21.md @@ -12,6 +12,6 @@ let value: FilterV21 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `version` | [models.CreateDrainFilterV2DrainsResponseVersion](../models/createdrainfilterv2drainsresponseversion.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `version` | *"v1"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterv22.md b/docs/models/filterv22.md index 17d80928..0d8792ba 100644 --- a/docs/models/filterv22.md +++ b/docs/models/filterv22.md @@ -16,7 +16,7 @@ let value: FilterV22 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | -| `version` | [models.FilterV2Version](../models/filterv2version.md) | :heavy_check_mark: | N/A | -| `filter` | *models.FilterV2Filter* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `version` | *"v2"* | :heavy_check_mark: | N/A | +| `filter` | *models.FilterV2Filter* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/filterv2version.md b/docs/models/filterv2version.md deleted file mode 100644 index a7e04a17..00000000 --- a/docs/models/filterv2version.md +++ /dev/null @@ -1,15 +0,0 @@ -# FilterV2Version - -## Example Usage - -```typescript -import { FilterV2Version } from "@vercel/sdk/models/createdrainop.js"; - -let value: FilterV2Version = "v2"; -``` - -## Values - -```typescript -"v2" -``` \ No newline at end of file diff --git a/docs/models/forbidden.md b/docs/models/forbidden.md index 59b9f968..279afa93 100644 --- a/docs/models/forbidden.md +++ b/docs/models/forbidden.md @@ -10,8 +10,8 @@ import { Forbidden } from "@vercel/sdk/models/forbidden.js"; ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -| `status` | *number* | :heavy_check_mark: | N/A | -| `code` | [models.ForbiddenCode](../models/forbiddencode.md) | :heavy_check_mark: | N/A | -| `message` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `status` | *number* | :heavy_check_mark: | N/A | +| `code` | *"forbidden"* | :heavy_check_mark: | N/A | +| `message` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/forbiddencode.md b/docs/models/forbiddencode.md deleted file mode 100644 index 74b72695..00000000 --- a/docs/models/forbiddencode.md +++ /dev/null @@ -1,15 +0,0 @@ -# ForbiddenCode - -## Example Usage - -```typescript -import { ForbiddenCode } from "@vercel/sdk/models/forbidden.js"; - -let value: ForbiddenCode = "forbidden"; -``` - -## Values - -```typescript -"forbidden" -``` \ No newline at end of file diff --git a/docs/models/getaliasprotectionbypass1.md b/docs/models/getaliasprotectionbypass1.md index a5924d4f..2b9ee643 100644 --- a/docs/models/getaliasprotectionbypass1.md +++ b/docs/models/getaliasprotectionbypass1.md @@ -16,9 +16,9 @@ let value: GetAliasProtectionBypass1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `createdBy` | *string* | :heavy_check_mark: | N/A | -| `scope` | [models.GetAliasProtectionBypassScope](../models/getaliasprotectionbypassscope.md) | :heavy_check_mark: | N/A | -| `expires` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `createdBy` | *string* | :heavy_check_mark: | N/A | +| `scope` | *"shareable-link"* | :heavy_check_mark: | N/A | +| `expires` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getaliasprotectionbypass2.md b/docs/models/getaliasprotectionbypass2.md index 68887105..b2b8b6cc 100644 --- a/docs/models/getaliasprotectionbypass2.md +++ b/docs/models/getaliasprotectionbypass2.md @@ -18,10 +18,10 @@ let value: GetAliasProtectionBypass2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `lastUpdatedAt` | *number* | :heavy_check_mark: | N/A | -| `lastUpdatedBy` | *string* | :heavy_check_mark: | N/A | -| `access` | [models.ProtectionBypassAccess](../models/protectionbypassaccess.md) | :heavy_check_mark: | N/A | -| `scope` | [models.GetAliasProtectionBypassAliasesScope](../models/getaliasprotectionbypassaliasesscope.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `lastUpdatedAt` | *number* | :heavy_check_mark: | N/A | +| `lastUpdatedBy` | *string* | :heavy_check_mark: | N/A | +| `access` | [models.ProtectionBypassAccess](../models/protectionbypassaccess.md) | :heavy_check_mark: | N/A | +| `scope` | *"user"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getaliasprotectionbypassaliasesresponse200scope.md b/docs/models/getaliasprotectionbypassaliasesresponse200scope.md deleted file mode 100644 index 6eab358c..00000000 --- a/docs/models/getaliasprotectionbypassaliasesresponse200scope.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetAliasProtectionBypassAliasesResponse200Scope - -## Example Usage - -```typescript -import { GetAliasProtectionBypassAliasesResponse200Scope } from "@vercel/sdk/models/getaliasop.js"; - -let value: GetAliasProtectionBypassAliasesResponse200Scope = "email_invite"; -``` - -## Values - -```typescript -"email_invite" -``` \ No newline at end of file diff --git a/docs/models/getaliasprotectionbypassaliasesresponsescope.md b/docs/models/getaliasprotectionbypassaliasesresponsescope.md deleted file mode 100644 index 5c499f35..00000000 --- a/docs/models/getaliasprotectionbypassaliasesresponsescope.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetAliasProtectionBypassAliasesResponseScope - -## Example Usage - -```typescript -import { GetAliasProtectionBypassAliasesResponseScope } from "@vercel/sdk/models/getaliasop.js"; - -let value: GetAliasProtectionBypassAliasesResponseScope = - "alias-protection-override"; -``` - -## Values - -```typescript -"alias-protection-override" -``` \ No newline at end of file diff --git a/docs/models/getaliasprotectionbypassaliasesscope.md b/docs/models/getaliasprotectionbypassaliasesscope.md deleted file mode 100644 index 0c146538..00000000 --- a/docs/models/getaliasprotectionbypassaliasesscope.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetAliasProtectionBypassAliasesScope - -## Example Usage - -```typescript -import { GetAliasProtectionBypassAliasesScope } from "@vercel/sdk/models/getaliasop.js"; - -let value: GetAliasProtectionBypassAliasesScope = "user"; -``` - -## Values - -```typescript -"user" -``` \ No newline at end of file diff --git a/docs/models/getaliasprotectionbypassscope.md b/docs/models/getaliasprotectionbypassscope.md deleted file mode 100644 index d5f419d4..00000000 --- a/docs/models/getaliasprotectionbypassscope.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetAliasProtectionBypassScope - -## Example Usage - -```typescript -import { GetAliasProtectionBypassScope } from "@vercel/sdk/models/getaliasop.js"; - -let value: GetAliasProtectionBypassScope = "shareable-link"; -``` - -## Values - -```typescript -"shareable-link" -``` \ No newline at end of file diff --git a/docs/models/getalllogdrainsdelivery1.md b/docs/models/getalllogdrainsdelivery1.md index b4550d31..8a47260f 100644 --- a/docs/models/getalllogdrainsdelivery1.md +++ b/docs/models/getalllogdrainsdelivery1.md @@ -15,11 +15,11 @@ let value: GetAllLogDrainsDelivery1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetAllLogDrainsDeliveryLogDrainsResponse200Type](../models/getalllogdrainsdeliverylogdrainsresponse200type.md) | :heavy_check_mark: | N/A | -| `endpoint` | *string* | :heavy_check_mark: | N/A | -| `encoding` | [models.GetAllLogDrainsDeliveryLogDrainsEncoding](../models/getalllogdrainsdeliverylogdrainsencoding.md) | :heavy_check_mark: | N/A | -| `compression` | [models.GetAllLogDrainsDeliveryLogDrainsCompression](../models/getalllogdrainsdeliverylogdrainscompression.md) | :heavy_minus_sign: | N/A | -| `headers` | Record | :heavy_check_mark: | N/A | -| `secret` | *models.GetAllLogDrainsDeliverySecret* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `type` | *"http"* | :heavy_check_mark: | N/A | +| `endpoint` | *string* | :heavy_check_mark: | N/A | +| `encoding` | [models.GetAllLogDrainsDeliveryLogDrainsEncoding](../models/getalllogdrainsdeliverylogdrainsencoding.md) | :heavy_check_mark: | N/A | +| `compression` | [models.GetAllLogDrainsDeliveryLogDrainsCompression](../models/getalllogdrainsdeliverylogdrainscompression.md) | :heavy_minus_sign: | N/A | +| `headers` | Record | :heavy_check_mark: | N/A | +| `secret` | *models.GetAllLogDrainsDeliverySecret* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getalllogdrainsdelivery2.md b/docs/models/getalllogdrainsdelivery2.md index 17a26369..335a05c7 100644 --- a/docs/models/getalllogdrainsdelivery2.md +++ b/docs/models/getalllogdrainsdelivery2.md @@ -17,10 +17,10 @@ let value: GetAllLogDrainsDelivery2 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType](../models/getalllogdrainsdeliverylogdrainsresponse200applicationjsontype.md) | :heavy_check_mark: | N/A | -| `endpoint` | [models.GetAllLogDrainsDeliveryLogDrainsEndpoint](../models/getalllogdrainsdeliverylogdrainsendpoint.md) | :heavy_check_mark: | N/A | -| `encoding` | [models.GetAllLogDrainsDeliveryLogDrainsResponseEncoding](../models/getalllogdrainsdeliverylogdrainsresponseencoding.md) | :heavy_check_mark: | N/A | -| `headers` | Record | :heavy_check_mark: | N/A | -| `secret` | *models.GetAllLogDrainsDeliveryLogDrainsSecret* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `type` | *"otlphttp"* | :heavy_check_mark: | N/A | +| `endpoint` | [models.GetAllLogDrainsDeliveryLogDrainsEndpoint](../models/getalllogdrainsdeliverylogdrainsendpoint.md) | :heavy_check_mark: | N/A | +| `encoding` | [models.GetAllLogDrainsDeliveryLogDrainsResponseEncoding](../models/getalllogdrainsdeliverylogdrainsresponseencoding.md) | :heavy_check_mark: | N/A | +| `headers` | Record | :heavy_check_mark: | N/A | +| `secret` | *models.GetAllLogDrainsDeliveryLogDrainsSecret* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getalllogdrainsdelivery3.md b/docs/models/getalllogdrainsdelivery3.md index b8d3e97d..5c024cab 100644 --- a/docs/models/getalllogdrainsdelivery3.md +++ b/docs/models/getalllogdrainsdelivery3.md @@ -14,8 +14,8 @@ let value: GetAllLogDrainsDelivery3 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType](../models/getalllogdrainsdeliverylogdrainsresponse200applicationjsonresponsebodytype.md) | :heavy_check_mark: | N/A | -| `endpoint` | *string* | :heavy_check_mark: | N/A | -| `table` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"clickhouse"* | :heavy_check_mark: | N/A | +| `endpoint` | *string* | :heavy_check_mark: | N/A | +| `table` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getalllogdrainsdelivery4.md b/docs/models/getalllogdrainsdelivery4.md index 49252fd8..202fe95e 100644 --- a/docs/models/getalllogdrainsdelivery4.md +++ b/docs/models/getalllogdrainsdelivery4.md @@ -13,7 +13,7 @@ let value: GetAllLogDrainsDelivery4 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type](../models/getalllogdrainsdeliverylogdrainsresponse200applicationjsonresponsebody1type.md) | :heavy_check_mark: | N/A | -| `target` | [models.GetAllLogDrainsDeliveryTarget](../models/getalllogdrainsdeliverytarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `type` | *"internal"* | :heavy_check_mark: | N/A | +| `target` | [models.GetAllLogDrainsDeliveryTarget](../models/getalllogdrainsdeliverytarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getalllogdrainsdeliverylogdrains1.md b/docs/models/getalllogdrainsdeliverylogdrains1.md index 9746d279..01229625 100644 --- a/docs/models/getalllogdrainsdeliverylogdrains1.md +++ b/docs/models/getalllogdrainsdeliverylogdrains1.md @@ -19,11 +19,11 @@ let value: GetAllLogDrainsDeliveryLogDrains1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType](../models/getalllogdrainsdeliverylogdrainsresponse200applicationjsonresponsebody1drainstype.md) | :heavy_check_mark: | N/A | -| `endpoint` | *string* | :heavy_check_mark: | N/A | -| `encoding` | [models.GetAllLogDrainsDeliveryLogDrainsResponse200Encoding](../models/getalllogdrainsdeliverylogdrainsresponse200encoding.md) | :heavy_check_mark: | N/A | -| `compression` | [models.GetAllLogDrainsDeliveryCompression](../models/getalllogdrainsdeliverycompression.md) | :heavy_minus_sign: | N/A | -| `headers` | Record | :heavy_check_mark: | N/A | -| `secret` | *models.GetAllLogDrainsDeliveryLogDrainsResponseSecret* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `type` | *"http"* | :heavy_check_mark: | N/A | +| `endpoint` | *string* | :heavy_check_mark: | N/A | +| `encoding` | [models.GetAllLogDrainsDeliveryLogDrainsResponse200Encoding](../models/getalllogdrainsdeliverylogdrainsresponse200encoding.md) | :heavy_check_mark: | N/A | +| `compression` | [models.GetAllLogDrainsDeliveryCompression](../models/getalllogdrainsdeliverycompression.md) | :heavy_minus_sign: | N/A | +| `headers` | Record | :heavy_check_mark: | N/A | +| `secret` | *models.GetAllLogDrainsDeliveryLogDrainsResponseSecret* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getalllogdrainsdeliverylogdrains2.md b/docs/models/getalllogdrainsdeliverylogdrains2.md index 40eabc85..44a79bef 100644 --- a/docs/models/getalllogdrainsdeliverylogdrains2.md +++ b/docs/models/getalllogdrainsdeliverylogdrains2.md @@ -21,7 +21,7 @@ let value: GetAllLogDrainsDeliveryLogDrains2 = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `type` | [models.GetAllLogDrainsDeliveryType](../models/getalllogdrainsdeliverytype.md) | :heavy_check_mark: | N/A | +| `type` | *"otlphttp"* | :heavy_check_mark: | N/A | | `endpoint` | [models.GetAllLogDrainsDeliveryEndpoint](../models/getalllogdrainsdeliveryendpoint.md) | :heavy_check_mark: | N/A | | `encoding` | [models.GetAllLogDrainsDeliveryEncoding](../models/getalllogdrainsdeliveryencoding.md) | :heavy_check_mark: | N/A | | `headers` | Record | :heavy_check_mark: | N/A | diff --git a/docs/models/getalllogdrainsdeliverylogdrains3.md b/docs/models/getalllogdrainsdeliverylogdrains3.md index 56b35328..676b9def 100644 --- a/docs/models/getalllogdrainsdeliverylogdrains3.md +++ b/docs/models/getalllogdrainsdeliverylogdrains3.md @@ -14,8 +14,8 @@ let value: GetAllLogDrainsDeliveryLogDrains3 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `type` | [models.GetAllLogDrainsDeliveryLogDrainsType](../models/getalllogdrainsdeliverylogdrainstype.md) | :heavy_check_mark: | N/A | -| `endpoint` | *string* | :heavy_check_mark: | N/A | -| `table` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"clickhouse"* | :heavy_check_mark: | N/A | +| `endpoint` | *string* | :heavy_check_mark: | N/A | +| `table` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getalllogdrainsdeliverylogdrains4.md b/docs/models/getalllogdrainsdeliverylogdrains4.md index 241b7405..2216011a 100644 --- a/docs/models/getalllogdrainsdeliverylogdrains4.md +++ b/docs/models/getalllogdrainsdeliverylogdrains4.md @@ -13,7 +13,7 @@ let value: GetAllLogDrainsDeliveryLogDrains4 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetAllLogDrainsDeliveryLogDrainsResponseType](../models/getalllogdrainsdeliverylogdrainsresponsetype.md) | :heavy_check_mark: | N/A | -| `target` | [models.GetAllLogDrainsDeliveryLogDrainsTarget](../models/getalllogdrainsdeliverylogdrainstarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `type` | *"internal"* | :heavy_check_mark: | N/A | +| `target` | [models.GetAllLogDrainsDeliveryLogDrainsTarget](../models/getalllogdrainsdeliverylogdrainstarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getalllogdrainsdeliverylogdrainsresponse200applicationjsonresponsebody1drainstype.md b/docs/models/getalllogdrainsdeliverylogdrainsresponse200applicationjsonresponsebody1drainstype.md deleted file mode 100644 index 8b56917b..00000000 --- a/docs/models/getalllogdrainsdeliverylogdrainsresponse200applicationjsonresponsebody1drainstype.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType - -## Example Usage - -```typescript -import { - GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType, -} from "@vercel/sdk/models/getalllogdrainsop.js"; - -let value: - GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType = - "http"; -``` - -## Values - -```typescript -"http" -``` \ No newline at end of file diff --git a/docs/models/getalllogdrainsdeliverylogdrainsresponse200applicationjsonresponsebody1type.md b/docs/models/getalllogdrainsdeliverylogdrainsresponse200applicationjsonresponsebody1type.md deleted file mode 100644 index b91138db..00000000 --- a/docs/models/getalllogdrainsdeliverylogdrainsresponse200applicationjsonresponsebody1type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type - -## Example Usage - -```typescript -import { GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type } from "@vercel/sdk/models/getalllogdrainsop.js"; - -let value: - GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type = - "internal"; -``` - -## Values - -```typescript -"internal" -``` \ No newline at end of file diff --git a/docs/models/getalllogdrainsdeliverylogdrainsresponse200applicationjsonresponsebodytype.md b/docs/models/getalllogdrainsdeliverylogdrainsresponse200applicationjsonresponsebodytype.md deleted file mode 100644 index ea49a4e2..00000000 --- a/docs/models/getalllogdrainsdeliverylogdrainsresponse200applicationjsonresponsebodytype.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType - -## Example Usage - -```typescript -import { GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType } from "@vercel/sdk/models/getalllogdrainsop.js"; - -let value: - GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType = - "clickhouse"; -``` - -## Values - -```typescript -"clickhouse" -``` \ No newline at end of file diff --git a/docs/models/getalllogdrainsdeliverylogdrainsresponse200applicationjsontype.md b/docs/models/getalllogdrainsdeliverylogdrainsresponse200applicationjsontype.md deleted file mode 100644 index 2283c1b2..00000000 --- a/docs/models/getalllogdrainsdeliverylogdrainsresponse200applicationjsontype.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType - -## Example Usage - -```typescript -import { GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType } from "@vercel/sdk/models/getalllogdrainsop.js"; - -let value: GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType = - "otlphttp"; -``` - -## Values - -```typescript -"otlphttp" -``` \ No newline at end of file diff --git a/docs/models/getalllogdrainsdeliverylogdrainsresponse200type.md b/docs/models/getalllogdrainsdeliverylogdrainsresponse200type.md deleted file mode 100644 index b50d065b..00000000 --- a/docs/models/getalllogdrainsdeliverylogdrainsresponse200type.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetAllLogDrainsDeliveryLogDrainsResponse200Type - -## Example Usage - -```typescript -import { GetAllLogDrainsDeliveryLogDrainsResponse200Type } from "@vercel/sdk/models/getalllogdrainsop.js"; - -let value: GetAllLogDrainsDeliveryLogDrainsResponse200Type = "http"; -``` - -## Values - -```typescript -"http" -``` \ No newline at end of file diff --git a/docs/models/getalllogdrainsdeliverylogdrainsresponsetype.md b/docs/models/getalllogdrainsdeliverylogdrainsresponsetype.md deleted file mode 100644 index 45ed05fa..00000000 --- a/docs/models/getalllogdrainsdeliverylogdrainsresponsetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetAllLogDrainsDeliveryLogDrainsResponseType - -## Example Usage - -```typescript -import { GetAllLogDrainsDeliveryLogDrainsResponseType } from "@vercel/sdk/models/getalllogdrainsop.js"; - -let value: GetAllLogDrainsDeliveryLogDrainsResponseType = "internal"; -``` - -## Values - -```typescript -"internal" -``` \ No newline at end of file diff --git a/docs/models/getalllogdrainsdeliverylogdrainstype.md b/docs/models/getalllogdrainsdeliverylogdrainstype.md deleted file mode 100644 index 73c67059..00000000 --- a/docs/models/getalllogdrainsdeliverylogdrainstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetAllLogDrainsDeliveryLogDrainsType - -## Example Usage - -```typescript -import { GetAllLogDrainsDeliveryLogDrainsType } from "@vercel/sdk/models/getalllogdrainsop.js"; - -let value: GetAllLogDrainsDeliveryLogDrainsType = "clickhouse"; -``` - -## Values - -```typescript -"clickhouse" -``` \ No newline at end of file diff --git a/docs/models/getalllogdrainsdeliverytype.md b/docs/models/getalllogdrainsdeliverytype.md deleted file mode 100644 index 2d43cf5c..00000000 --- a/docs/models/getalllogdrainsdeliverytype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetAllLogDrainsDeliveryType - -## Example Usage - -```typescript -import { GetAllLogDrainsDeliveryType } from "@vercel/sdk/models/getalllogdrainsop.js"; - -let value: GetAllLogDrainsDeliveryType = "otlphttp"; -``` - -## Values - -```typescript -"otlphttp" -``` \ No newline at end of file diff --git a/docs/models/getalllogdrainsfilter1.md b/docs/models/getalllogdrainsfilter1.md index c8c990ab..6c9218f7 100644 --- a/docs/models/getalllogdrainsfilter1.md +++ b/docs/models/getalllogdrainsfilter1.md @@ -14,7 +14,7 @@ let value: GetAllLogDrainsFilter1 = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetAllLogDrainsFilterLogDrainsType](../models/getalllogdrainsfilterlogdrainstype.md) | :heavy_check_mark: | N/A | +| `type` | *"basic"* | :heavy_check_mark: | N/A | | `project` | [models.GetAllLogDrainsFilterProject](../models/getalllogdrainsfilterproject.md) | :heavy_minus_sign: | N/A | | `log` | [models.GetAllLogDrainsFilterLog](../models/getalllogdrainsfilterlog.md) | :heavy_minus_sign: | N/A | | `deployment` | [models.GetAllLogDrainsFilterLogDrainsDeployment](../models/getalllogdrainsfilterlogdrainsdeployment.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getalllogdrainsfilter2.md b/docs/models/getalllogdrainsfilter2.md index 357d36d4..81329b5f 100644 --- a/docs/models/getalllogdrainsfilter2.md +++ b/docs/models/getalllogdrainsfilter2.md @@ -13,7 +13,7 @@ let value: GetAllLogDrainsFilter2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `type` | [models.GetAllLogDrainsFilterLogDrainsResponseType](../models/getalllogdrainsfilterlogdrainsresponsetype.md) | :heavy_check_mark: | N/A | -| `text` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"odata"* | :heavy_check_mark: | N/A | +| `text` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getalllogdrainsfilterlogdrains1.md b/docs/models/getalllogdrainsfilterlogdrains1.md index 6d5fc9b6..de65d88c 100644 --- a/docs/models/getalllogdrainsfilterlogdrains1.md +++ b/docs/models/getalllogdrainsfilterlogdrains1.md @@ -12,9 +12,9 @@ let value: GetAllLogDrainsFilterLogDrains1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.GetAllLogDrainsFilterLogDrainsResponse200Type](../models/getalllogdrainsfilterlogdrainsresponse200type.md) | :heavy_check_mark: | N/A | -| `project` | [models.GetAllLogDrainsFilterLogDrainsProject](../models/getalllogdrainsfilterlogdrainsproject.md) | :heavy_minus_sign: | N/A | -| `log` | [models.GetAllLogDrainsFilterLogDrainsLog](../models/getalllogdrainsfilterlogdrainslog.md) | :heavy_minus_sign: | N/A | -| `deployment` | [models.GetAllLogDrainsFilterDeployment](../models/getalllogdrainsfilterdeployment.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `type` | *"basic"* | :heavy_check_mark: | N/A | +| `project` | [models.GetAllLogDrainsFilterLogDrainsProject](../models/getalllogdrainsfilterlogdrainsproject.md) | :heavy_minus_sign: | N/A | +| `log` | [models.GetAllLogDrainsFilterLogDrainsLog](../models/getalllogdrainsfilterlogdrainslog.md) | :heavy_minus_sign: | N/A | +| `deployment` | [models.GetAllLogDrainsFilterDeployment](../models/getalllogdrainsfilterdeployment.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getalllogdrainsfilterlogdrains2.md b/docs/models/getalllogdrainsfilterlogdrains2.md index 7828bcf9..b43e061e 100644 --- a/docs/models/getalllogdrainsfilterlogdrains2.md +++ b/docs/models/getalllogdrainsfilterlogdrains2.md @@ -13,7 +13,7 @@ let value: GetAllLogDrainsFilterLogDrains2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `type` | [models.GetAllLogDrainsFilterType](../models/getalllogdrainsfiltertype.md) | :heavy_check_mark: | N/A | -| `text` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"odata"* | :heavy_check_mark: | N/A | +| `text` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getalllogdrainsfilterlogdrainsresponse200type.md b/docs/models/getalllogdrainsfilterlogdrainsresponse200type.md deleted file mode 100644 index 4cebc52b..00000000 --- a/docs/models/getalllogdrainsfilterlogdrainsresponse200type.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetAllLogDrainsFilterLogDrainsResponse200Type - -## Example Usage - -```typescript -import { GetAllLogDrainsFilterLogDrainsResponse200Type } from "@vercel/sdk/models/getalllogdrainsop.js"; - -let value: GetAllLogDrainsFilterLogDrainsResponse200Type = "basic"; -``` - -## Values - -```typescript -"basic" -``` \ No newline at end of file diff --git a/docs/models/getalllogdrainsfilterlogdrainsresponsetype.md b/docs/models/getalllogdrainsfilterlogdrainsresponsetype.md deleted file mode 100644 index f9b84fcd..00000000 --- a/docs/models/getalllogdrainsfilterlogdrainsresponsetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetAllLogDrainsFilterLogDrainsResponseType - -## Example Usage - -```typescript -import { GetAllLogDrainsFilterLogDrainsResponseType } from "@vercel/sdk/models/getalllogdrainsop.js"; - -let value: GetAllLogDrainsFilterLogDrainsResponseType = "odata"; -``` - -## Values - -```typescript -"odata" -``` \ No newline at end of file diff --git a/docs/models/getalllogdrainsfilterlogdrainstype.md b/docs/models/getalllogdrainsfilterlogdrainstype.md deleted file mode 100644 index 23a40d10..00000000 --- a/docs/models/getalllogdrainsfilterlogdrainstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetAllLogDrainsFilterLogDrainsType - -## Example Usage - -```typescript -import { GetAllLogDrainsFilterLogDrainsType } from "@vercel/sdk/models/getalllogdrainsop.js"; - -let value: GetAllLogDrainsFilterLogDrainsType = "basic"; -``` - -## Values - -```typescript -"basic" -``` \ No newline at end of file diff --git a/docs/models/getalllogdrainsfiltertype.md b/docs/models/getalllogdrainsfiltertype.md deleted file mode 100644 index 0c36d4c6..00000000 --- a/docs/models/getalllogdrainsfiltertype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetAllLogDrainsFilterType - -## Example Usage - -```typescript -import { GetAllLogDrainsFilterType } from "@vercel/sdk/models/getalllogdrainsop.js"; - -let value: GetAllLogDrainsFilterType = "odata"; -``` - -## Values - -```typescript -"odata" -``` \ No newline at end of file diff --git a/docs/models/getalllogdrainsfilterv21.md b/docs/models/getalllogdrainsfilterv21.md index ac64b55b..9dd45a31 100644 --- a/docs/models/getalllogdrainsfilterv21.md +++ b/docs/models/getalllogdrainsfilterv21.md @@ -12,6 +12,6 @@ let value: GetAllLogDrainsFilterV21 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `version` | [models.GetAllLogDrainsFilterV2Version](../models/getalllogdrainsfilterv2version.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `version` | *"v1"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getalllogdrainsfilterv22.md b/docs/models/getalllogdrainsfilterv22.md index 88d0e67f..99d0aabc 100644 --- a/docs/models/getalllogdrainsfilterv22.md +++ b/docs/models/getalllogdrainsfilterv22.md @@ -15,7 +15,7 @@ let value: GetAllLogDrainsFilterV22 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `version` | [models.GetAllLogDrainsFilterV2LogDrainsVersion](../models/getalllogdrainsfilterv2logdrainsversion.md) | :heavy_check_mark: | N/A | -| `filter` | *models.GetAllLogDrainsFilterV2LogDrainsFilter* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | +| `version` | *"v2"* | :heavy_check_mark: | N/A | +| `filter` | *models.GetAllLogDrainsFilterV2LogDrainsFilter* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getalllogdrainsfilterv2logdrains1.md b/docs/models/getalllogdrainsfilterv2logdrains1.md index c2451bcc..6443b1b8 100644 --- a/docs/models/getalllogdrainsfilterv2logdrains1.md +++ b/docs/models/getalllogdrainsfilterv2logdrains1.md @@ -12,6 +12,6 @@ let value: GetAllLogDrainsFilterV2LogDrains1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `version` | [models.GetAllLogDrainsFilterV2LogDrainsResponseVersion](../models/getalllogdrainsfilterv2logdrainsresponseversion.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `version` | *"v1"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getalllogdrainsfilterv2logdrains2.md b/docs/models/getalllogdrainsfilterv2logdrains2.md index 7d60bd66..64aee0a7 100644 --- a/docs/models/getalllogdrainsfilterv2logdrains2.md +++ b/docs/models/getalllogdrainsfilterv2logdrains2.md @@ -15,7 +15,7 @@ let value: GetAllLogDrainsFilterV2LogDrains2 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `version` | [models.GetAllLogDrainsFilterV2LogDrainsResponse200Version](../models/getalllogdrainsfilterv2logdrainsresponse200version.md) | :heavy_check_mark: | N/A | -| `filter` | *models.GetAllLogDrainsFilterV2Filter* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | +| `version` | *"v2"* | :heavy_check_mark: | N/A | +| `filter` | *models.GetAllLogDrainsFilterV2Filter* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getalllogdrainsfilterv2logdrainsresponse200version.md b/docs/models/getalllogdrainsfilterv2logdrainsresponse200version.md deleted file mode 100644 index 8926baa4..00000000 --- a/docs/models/getalllogdrainsfilterv2logdrainsresponse200version.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetAllLogDrainsFilterV2LogDrainsResponse200Version - -## Example Usage - -```typescript -import { GetAllLogDrainsFilterV2LogDrainsResponse200Version } from "@vercel/sdk/models/getalllogdrainsop.js"; - -let value: GetAllLogDrainsFilterV2LogDrainsResponse200Version = "v2"; -``` - -## Values - -```typescript -"v2" -``` \ No newline at end of file diff --git a/docs/models/getalllogdrainsfilterv2logdrainsresponseversion.md b/docs/models/getalllogdrainsfilterv2logdrainsresponseversion.md deleted file mode 100644 index ab37ae4a..00000000 --- a/docs/models/getalllogdrainsfilterv2logdrainsresponseversion.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetAllLogDrainsFilterV2LogDrainsResponseVersion - -## Example Usage - -```typescript -import { GetAllLogDrainsFilterV2LogDrainsResponseVersion } from "@vercel/sdk/models/getalllogdrainsop.js"; - -let value: GetAllLogDrainsFilterV2LogDrainsResponseVersion = "v1"; -``` - -## Values - -```typescript -"v1" -``` \ No newline at end of file diff --git a/docs/models/getalllogdrainsfilterv2logdrainsversion.md b/docs/models/getalllogdrainsfilterv2logdrainsversion.md deleted file mode 100644 index 7785a685..00000000 --- a/docs/models/getalllogdrainsfilterv2logdrainsversion.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetAllLogDrainsFilterV2LogDrainsVersion - -## Example Usage - -```typescript -import { GetAllLogDrainsFilterV2LogDrainsVersion } from "@vercel/sdk/models/getalllogdrainsop.js"; - -let value: GetAllLogDrainsFilterV2LogDrainsVersion = "v2"; -``` - -## Values - -```typescript -"v2" -``` \ No newline at end of file diff --git a/docs/models/getalllogdrainsfilterv2version.md b/docs/models/getalllogdrainsfilterv2version.md deleted file mode 100644 index 01a6ed2a..00000000 --- a/docs/models/getalllogdrainsfilterv2version.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetAllLogDrainsFilterV2Version - -## Example Usage - -```typescript -import { GetAllLogDrainsFilterV2Version } from "@vercel/sdk/models/getalllogdrainsop.js"; - -let value: GetAllLogDrainsFilterV2Version = "v1"; -``` - -## Values - -```typescript -"v1" -``` \ No newline at end of file diff --git a/docs/models/getalllogdrainsprojectaccess1.md b/docs/models/getalllogdrainsprojectaccess1.md index 8247ea01..7b0a0a3b 100644 --- a/docs/models/getalllogdrainsprojectaccess1.md +++ b/docs/models/getalllogdrainsprojectaccess1.md @@ -12,6 +12,6 @@ let value: GetAllLogDrainsProjectAccess1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `access` | [models.GetAllLogDrainsProjectAccessAccess](../models/getalllogdrainsprojectaccessaccess.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `access` | *"all"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getalllogdrainsprojectaccess2.md b/docs/models/getalllogdrainsprojectaccess2.md index 637648d9..a3f89386 100644 --- a/docs/models/getalllogdrainsprojectaccess2.md +++ b/docs/models/getalllogdrainsprojectaccess2.md @@ -15,7 +15,7 @@ let value: GetAllLogDrainsProjectAccess2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `access` | [models.GetAllLogDrainsProjectAccessLogDrainsAccess](../models/getalllogdrainsprojectaccesslogdrainsaccess.md) | :heavy_check_mark: | N/A | -| `projectIds` | *string*[] | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `access` | *"some"* | :heavy_check_mark: | N/A | +| `projectIds` | *string*[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getalllogdrainsprojectaccessaccess.md b/docs/models/getalllogdrainsprojectaccessaccess.md deleted file mode 100644 index 5606012f..00000000 --- a/docs/models/getalllogdrainsprojectaccessaccess.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetAllLogDrainsProjectAccessAccess - -## Example Usage - -```typescript -import { GetAllLogDrainsProjectAccessAccess } from "@vercel/sdk/models/getalllogdrainsop.js"; - -let value: GetAllLogDrainsProjectAccessAccess = "all"; -``` - -## Values - -```typescript -"all" -``` \ No newline at end of file diff --git a/docs/models/getalllogdrainsprojectaccesslogdrainsaccess.md b/docs/models/getalllogdrainsprojectaccesslogdrainsaccess.md deleted file mode 100644 index e91eaced..00000000 --- a/docs/models/getalllogdrainsprojectaccesslogdrainsaccess.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetAllLogDrainsProjectAccessLogDrainsAccess - -## Example Usage - -```typescript -import { GetAllLogDrainsProjectAccessLogDrainsAccess } from "@vercel/sdk/models/getalllogdrainsop.js"; - -let value: GetAllLogDrainsProjectAccessLogDrainsAccess = "some"; -``` - -## Values - -```typescript -"some" -``` \ No newline at end of file diff --git a/docs/models/getalllogdrainssource1.md b/docs/models/getalllogdrainssource1.md index 8cd66782..bb7fcb60 100644 --- a/docs/models/getalllogdrainssource1.md +++ b/docs/models/getalllogdrainssource1.md @@ -12,6 +12,6 @@ let value: GetAllLogDrainsSource1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `kind` | [models.GetAllLogDrainsSourceKind](../models/getalllogdrainssourcekind.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `kind` | *"self-served"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getalllogdrainssource2.md b/docs/models/getalllogdrainssource2.md index 6bbc54f5..0898df47 100644 --- a/docs/models/getalllogdrainssource2.md +++ b/docs/models/getalllogdrainssource2.md @@ -14,10 +14,10 @@ let value: GetAllLogDrainsSource2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `kind` | [models.GetAllLogDrainsSourceLogDrainsKind](../models/getalllogdrainssourcelogdrainskind.md) | :heavy_check_mark: | N/A | -| `resourceId` | *string* | :heavy_minus_sign: | N/A | -| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `kind` | *"integration"* | :heavy_check_mark: | N/A | +| `resourceId` | *string* | :heavy_minus_sign: | N/A | +| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getalllogdrainssourcekind.md b/docs/models/getalllogdrainssourcekind.md deleted file mode 100644 index 0c24b43a..00000000 --- a/docs/models/getalllogdrainssourcekind.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetAllLogDrainsSourceKind - -## Example Usage - -```typescript -import { GetAllLogDrainsSourceKind } from "@vercel/sdk/models/getalllogdrainsop.js"; - -let value: GetAllLogDrainsSourceKind = "self-served"; -``` - -## Values - -```typescript -"self-served" -``` \ No newline at end of file diff --git a/docs/models/getalllogdrainssourcelogdrains1.md b/docs/models/getalllogdrainssourcelogdrains1.md index ed16e4b2..57946110 100644 --- a/docs/models/getalllogdrainssourcelogdrains1.md +++ b/docs/models/getalllogdrainssourcelogdrains1.md @@ -12,6 +12,6 @@ let value: GetAllLogDrainsSourceLogDrains1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `kind` | [models.GetAllLogDrainsSourceLogDrainsResponseKind](../models/getalllogdrainssourcelogdrainsresponsekind.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `kind` | *"self-served"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getalllogdrainssourcelogdrains2.md b/docs/models/getalllogdrainssourcelogdrains2.md index a432990d..8cfbebb3 100644 --- a/docs/models/getalllogdrainssourcelogdrains2.md +++ b/docs/models/getalllogdrainssourcelogdrains2.md @@ -14,10 +14,10 @@ let value: GetAllLogDrainsSourceLogDrains2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `kind` | [models.GetAllLogDrainsSourceLogDrainsResponse200Kind](../models/getalllogdrainssourcelogdrainsresponse200kind.md) | :heavy_check_mark: | N/A | -| `resourceId` | *string* | :heavy_minus_sign: | N/A | -| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `kind` | *"integration"* | :heavy_check_mark: | N/A | +| `resourceId` | *string* | :heavy_minus_sign: | N/A | +| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getalllogdrainssourcelogdrainskind.md b/docs/models/getalllogdrainssourcelogdrainskind.md deleted file mode 100644 index 9efb7b40..00000000 --- a/docs/models/getalllogdrainssourcelogdrainskind.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetAllLogDrainsSourceLogDrainsKind - -## Example Usage - -```typescript -import { GetAllLogDrainsSourceLogDrainsKind } from "@vercel/sdk/models/getalllogdrainsop.js"; - -let value: GetAllLogDrainsSourceLogDrainsKind = "integration"; -``` - -## Values - -```typescript -"integration" -``` \ No newline at end of file diff --git a/docs/models/getalllogdrainssourcelogdrainsresponse200kind.md b/docs/models/getalllogdrainssourcelogdrainsresponse200kind.md deleted file mode 100644 index 399e702e..00000000 --- a/docs/models/getalllogdrainssourcelogdrainsresponse200kind.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetAllLogDrainsSourceLogDrainsResponse200Kind - -## Example Usage - -```typescript -import { GetAllLogDrainsSourceLogDrainsResponse200Kind } from "@vercel/sdk/models/getalllogdrainsop.js"; - -let value: GetAllLogDrainsSourceLogDrainsResponse200Kind = "integration"; -``` - -## Values - -```typescript -"integration" -``` \ No newline at end of file diff --git a/docs/models/getalllogdrainssourcelogdrainsresponsekind.md b/docs/models/getalllogdrainssourcelogdrainsresponsekind.md deleted file mode 100644 index cc3dae5e..00000000 --- a/docs/models/getalllogdrainssourcelogdrainsresponsekind.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetAllLogDrainsSourceLogDrainsResponseKind - -## Example Usage - -```typescript -import { GetAllLogDrainsSourceLogDrainsResponseKind } from "@vercel/sdk/models/getalllogdrainsop.js"; - -let value: GetAllLogDrainsSourceLogDrainsResponseKind = "self-served"; -``` - -## Values - -```typescript -"self-served" -``` \ No newline at end of file diff --git a/docs/models/getconfigurationtransferrequestkind.md b/docs/models/getconfigurationtransferrequestkind.md deleted file mode 100644 index 927d7d8d..00000000 --- a/docs/models/getconfigurationtransferrequestkind.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetConfigurationTransferRequestKind - -## Example Usage - -```typescript -import { GetConfigurationTransferRequestKind } from "@vercel/sdk/models/getconfigurationop.js"; - -let value: GetConfigurationTransferRequestKind = "transfer-from-marketplace"; -``` - -## Values - -```typescript -"transfer-from-marketplace" -``` \ No newline at end of file diff --git a/docs/models/getdeploymentgitrepo1.md b/docs/models/getdeploymentgitrepo1.md index 99e6b190..16bd458d 100644 --- a/docs/models/getdeploymentgitrepo1.md +++ b/docs/models/getdeploymentgitrepo1.md @@ -20,14 +20,14 @@ let value: GetDeploymentGitRepo1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `namespace` | *string* | :heavy_check_mark: | N/A | -| `projectId` | *number* | :heavy_check_mark: | N/A | -| `type` | [models.GetDeploymentGitRepoDeploymentsResponseType](../models/getdeploymentgitrepodeploymentsresponsetype.md) | :heavy_check_mark: | N/A | -| `url` | *string* | :heavy_check_mark: | N/A | -| `path` | *string* | :heavy_check_mark: | N/A | -| `defaultBranch` | *string* | :heavy_check_mark: | N/A | -| `name` | *string* | :heavy_check_mark: | N/A | -| `private` | *boolean* | :heavy_check_mark: | N/A | -| `ownerType` | [models.GetDeploymentGitRepoDeploymentsOwnerType](../models/getdeploymentgitrepodeploymentsownertype.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `namespace` | *string* | :heavy_check_mark: | N/A | +| `projectId` | *number* | :heavy_check_mark: | N/A | +| `type` | *"gitlab"* | :heavy_check_mark: | N/A | +| `url` | *string* | :heavy_check_mark: | N/A | +| `path` | *string* | :heavy_check_mark: | N/A | +| `defaultBranch` | *string* | :heavy_check_mark: | N/A | +| `name` | *string* | :heavy_check_mark: | N/A | +| `private` | *boolean* | :heavy_check_mark: | N/A | +| `ownerType` | [models.GetDeploymentGitRepoDeploymentsOwnerType](../models/getdeploymentgitrepodeploymentsownertype.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdeploymentgitrepo2.md b/docs/models/getdeploymentgitrepo2.md index 84ee4074..626df300 100644 --- a/docs/models/getdeploymentgitrepo2.md +++ b/docs/models/getdeploymentgitrepo2.md @@ -26,7 +26,7 @@ let value: GetDeploymentGitRepo2 = { | `org` | *string* | :heavy_check_mark: | N/A | | `repo` | *string* | :heavy_check_mark: | N/A | | `repoId` | *number* | :heavy_check_mark: | N/A | -| `type` | [models.GetDeploymentGitRepoType](../models/getdeploymentgitrepotype.md) | :heavy_check_mark: | N/A | +| `type` | *"github"* | :heavy_check_mark: | N/A | | `repoOwnerId` | *number* | :heavy_check_mark: | N/A | | `path` | *string* | :heavy_check_mark: | N/A | | `defaultBranch` | *string* | :heavy_check_mark: | N/A | diff --git a/docs/models/getdeploymentgitrepo3.md b/docs/models/getdeploymentgitrepo3.md index cb86eec2..b5c02f00 100644 --- a/docs/models/getdeploymentgitrepo3.md +++ b/docs/models/getdeploymentgitrepo3.md @@ -21,15 +21,15 @@ let value: GetDeploymentGitRepo3 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `owner` | *string* | :heavy_check_mark: | N/A | -| `repoUuid` | *string* | :heavy_check_mark: | N/A | -| `slug` | *string* | :heavy_check_mark: | N/A | -| `type` | [models.GetDeploymentGitRepoDeploymentsType](../models/getdeploymentgitrepodeploymentstype.md) | :heavy_check_mark: | N/A | -| `workspaceUuid` | *string* | :heavy_check_mark: | N/A | -| `path` | *string* | :heavy_check_mark: | N/A | -| `defaultBranch` | *string* | :heavy_check_mark: | N/A | -| `name` | *string* | :heavy_check_mark: | N/A | -| `private` | *boolean* | :heavy_check_mark: | N/A | -| `ownerType` | [models.GetDeploymentGitRepoOwnerType](../models/getdeploymentgitrepoownertype.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `owner` | *string* | :heavy_check_mark: | N/A | +| `repoUuid` | *string* | :heavy_check_mark: | N/A | +| `slug` | *string* | :heavy_check_mark: | N/A | +| `type` | *"bitbucket"* | :heavy_check_mark: | N/A | +| `workspaceUuid` | *string* | :heavy_check_mark: | N/A | +| `path` | *string* | :heavy_check_mark: | N/A | +| `defaultBranch` | *string* | :heavy_check_mark: | N/A | +| `name` | *string* | :heavy_check_mark: | N/A | +| `private` | *boolean* | :heavy_check_mark: | N/A | +| `ownerType` | [models.GetDeploymentGitRepoOwnerType](../models/getdeploymentgitrepoownertype.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdeploymentgitrepodeploymentsresponsetype.md b/docs/models/getdeploymentgitrepodeploymentsresponsetype.md deleted file mode 100644 index 4d8f0cf9..00000000 --- a/docs/models/getdeploymentgitrepodeploymentsresponsetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDeploymentGitRepoDeploymentsResponseType - -## Example Usage - -```typescript -import { GetDeploymentGitRepoDeploymentsResponseType } from "@vercel/sdk/models/getdeploymentop.js"; - -let value: GetDeploymentGitRepoDeploymentsResponseType = "gitlab"; -``` - -## Values - -```typescript -"gitlab" -``` \ No newline at end of file diff --git a/docs/models/getdeploymentgitrepodeploymentstype.md b/docs/models/getdeploymentgitrepodeploymentstype.md deleted file mode 100644 index 80101a00..00000000 --- a/docs/models/getdeploymentgitrepodeploymentstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDeploymentGitRepoDeploymentsType - -## Example Usage - -```typescript -import { GetDeploymentGitRepoDeploymentsType } from "@vercel/sdk/models/getdeploymentop.js"; - -let value: GetDeploymentGitRepoDeploymentsType = "bitbucket"; -``` - -## Values - -```typescript -"bitbucket" -``` \ No newline at end of file diff --git a/docs/models/getdeploymentgitrepotype.md b/docs/models/getdeploymentgitrepotype.md deleted file mode 100644 index d1ccd6ac..00000000 --- a/docs/models/getdeploymentgitrepotype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDeploymentGitRepoType - -## Example Usage - -```typescript -import { GetDeploymentGitRepoType } from "@vercel/sdk/models/getdeploymentop.js"; - -let value: GetDeploymentGitRepoType = "github"; -``` - -## Values - -```typescript -"github" -``` \ No newline at end of file diff --git a/docs/models/getdeploymenthas1.md b/docs/models/getdeploymenthas1.md index bb2da641..ac96be5e 100644 --- a/docs/models/getdeploymenthas1.md +++ b/docs/models/getdeploymenthas1.md @@ -13,7 +13,7 @@ let value: GetDeploymentHas1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `type` | [models.GetDeploymentHasType](../models/getdeploymenthastype.md) | :heavy_check_mark: | N/A | -| `value` | *models.GetDeploymentHasValue* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `type` | *"host"* | :heavy_check_mark: | N/A | +| `value` | *models.GetDeploymentHasValue* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdeploymenthastype.md b/docs/models/getdeploymenthastype.md deleted file mode 100644 index 8329c279..00000000 --- a/docs/models/getdeploymenthastype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDeploymentHasType - -## Example Usage - -```typescript -import { GetDeploymentHasType } from "@vercel/sdk/models/getdeploymentop.js"; - -let value: GetDeploymentHasType = "host"; -``` - -## Values - -```typescript -"host" -``` \ No newline at end of file diff --git a/docs/models/getdeploymentmissing1.md b/docs/models/getdeploymentmissing1.md index 813d7ab2..86ac0707 100644 --- a/docs/models/getdeploymentmissing1.md +++ b/docs/models/getdeploymentmissing1.md @@ -13,7 +13,7 @@ let value: GetDeploymentMissing1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `type` | [models.GetDeploymentMissingDeploymentsType](../models/getdeploymentmissingdeploymentstype.md) | :heavy_check_mark: | N/A | -| `value` | *models.GetDeploymentMissingDeploymentsValue* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `type` | *"host"* | :heavy_check_mark: | N/A | +| `value` | *models.GetDeploymentMissingDeploymentsValue* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdeploymentmissingdeploymentstype.md b/docs/models/getdeploymentmissingdeploymentstype.md deleted file mode 100644 index b3058fe2..00000000 --- a/docs/models/getdeploymentmissingdeploymentstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDeploymentMissingDeploymentsType - -## Example Usage - -```typescript -import { GetDeploymentMissingDeploymentsType } from "@vercel/sdk/models/getdeploymentop.js"; - -let value: GetDeploymentMissingDeploymentsType = "host"; -``` - -## Values - -```typescript -"host" -``` \ No newline at end of file diff --git a/docs/models/getdeploymentrouteshas.md b/docs/models/getdeploymentrouteshas.md index 0c55299f..62eba66d 100644 --- a/docs/models/getdeploymentrouteshas.md +++ b/docs/models/getdeploymentrouteshas.md @@ -21,3 +21,21 @@ const value: models.GetDeploymentHas2 = { }; ``` +### `models.GetDeploymentHas2` + +```typescript +const value: models.GetDeploymentHas2 = { + type: "cookie", + key: "", +}; +``` + +### `models.GetDeploymentHas2` + +```typescript +const value: models.GetDeploymentHas2 = { + type: "cookie", + key: "", +}; +``` + diff --git a/docs/models/getdeploymentroutesmissing.md b/docs/models/getdeploymentroutesmissing.md index a77fd43a..63157bcf 100644 --- a/docs/models/getdeploymentroutesmissing.md +++ b/docs/models/getdeploymentroutesmissing.md @@ -21,3 +21,21 @@ const value: models.GetDeploymentMissing2 = { }; ``` +### `models.GetDeploymentMissing2` + +```typescript +const value: models.GetDeploymentMissing2 = { + type: "header", + key: "", +}; +``` + +### `models.GetDeploymentMissing2` + +```typescript +const value: models.GetDeploymentMissing2 = { + type: "header", + key: "", +}; +``` + diff --git a/docs/models/getdraindelivery1.md b/docs/models/getdraindelivery1.md index c93681ad..2bc7cb0e 100644 --- a/docs/models/getdraindelivery1.md +++ b/docs/models/getdraindelivery1.md @@ -20,7 +20,7 @@ let value: GetDrainDelivery1 = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `type` | [models.GetDrainDeliveryType](../models/getdraindeliverytype.md) | :heavy_check_mark: | N/A | +| `type` | *"http"* | :heavy_check_mark: | N/A | | `endpoint` | *string* | :heavy_check_mark: | N/A | | `encoding` | [models.GetDrainDeliveryEncoding](../models/getdraindeliveryencoding.md) | :heavy_check_mark: | N/A | | `compression` | [models.GetDrainDeliveryCompression](../models/getdraindeliverycompression.md) | :heavy_minus_sign: | N/A | diff --git a/docs/models/getdraindelivery2.md b/docs/models/getdraindelivery2.md index f705f1f0..27b717ea 100644 --- a/docs/models/getdraindelivery2.md +++ b/docs/models/getdraindelivery2.md @@ -22,7 +22,7 @@ let value: GetDrainDelivery2 = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `type` | [models.GetDrainDeliveryDrainsType](../models/getdraindeliverydrainstype.md) | :heavy_check_mark: | N/A | +| `type` | *"otlphttp"* | :heavy_check_mark: | N/A | | `endpoint` | [models.GetDrainDeliveryEndpoint](../models/getdraindeliveryendpoint.md) | :heavy_check_mark: | N/A | | `encoding` | [models.GetDrainDeliveryDrainsEncoding](../models/getdraindeliverydrainsencoding.md) | :heavy_check_mark: | N/A | | `headers` | Record | :heavy_check_mark: | N/A | diff --git a/docs/models/getdraindelivery3.md b/docs/models/getdraindelivery3.md index db09b0d3..2582940f 100644 --- a/docs/models/getdraindelivery3.md +++ b/docs/models/getdraindelivery3.md @@ -14,8 +14,8 @@ let value: GetDrainDelivery3 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `type` | [models.GetDrainDeliveryDrainsResponseType](../models/getdraindeliverydrainsresponsetype.md) | :heavy_check_mark: | N/A | -| `endpoint` | *string* | :heavy_check_mark: | N/A | -| `table` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"clickhouse"* | :heavy_check_mark: | N/A | +| `endpoint` | *string* | :heavy_check_mark: | N/A | +| `table` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdraindelivery4.md b/docs/models/getdraindelivery4.md index 41f47a0e..02d38e49 100644 --- a/docs/models/getdraindelivery4.md +++ b/docs/models/getdraindelivery4.md @@ -13,7 +13,7 @@ let value: GetDrainDelivery4 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `type` | [models.GetDrainDeliveryDrainsResponse200Type](../models/getdraindeliverydrainsresponse200type.md) | :heavy_check_mark: | N/A | -| `target` | [models.GetDrainDeliveryTarget](../models/getdraindeliverytarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `type` | *"internal"* | :heavy_check_mark: | N/A | +| `target` | [models.GetDrainDeliveryTarget](../models/getdraindeliverytarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdraindeliverydrains1.md b/docs/models/getdraindeliverydrains1.md index c9a43811..f0e59061 100644 --- a/docs/models/getdraindeliverydrains1.md +++ b/docs/models/getdraindeliverydrains1.md @@ -18,11 +18,11 @@ let value: GetDrainDeliveryDrains1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetDrainDeliveryDrainsResponse200ApplicationJSONType](../models/getdraindeliverydrainsresponse200applicationjsontype.md) | :heavy_check_mark: | N/A | -| `endpoint` | *string* | :heavy_check_mark: | N/A | -| `encoding` | [models.GetDrainDeliveryDrainsResponseEncoding](../models/getdraindeliverydrainsresponseencoding.md) | :heavy_check_mark: | N/A | -| `compression` | [models.GetDrainDeliveryDrainsCompression](../models/getdraindeliverydrainscompression.md) | :heavy_minus_sign: | N/A | -| `headers` | Record | :heavy_check_mark: | N/A | -| `secret` | *models.GetDrainDeliveryDrainsResponseSecret* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `type` | *"http"* | :heavy_check_mark: | N/A | +| `endpoint` | *string* | :heavy_check_mark: | N/A | +| `encoding` | [models.GetDrainDeliveryDrainsResponseEncoding](../models/getdraindeliverydrainsresponseencoding.md) | :heavy_check_mark: | N/A | +| `compression` | [models.GetDrainDeliveryDrainsCompression](../models/getdraindeliverydrainscompression.md) | :heavy_minus_sign: | N/A | +| `headers` | Record | :heavy_check_mark: | N/A | +| `secret` | *models.GetDrainDeliveryDrainsResponseSecret* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getdraindeliverydrains2.md b/docs/models/getdraindeliverydrains2.md index 91e3f049..089b2482 100644 --- a/docs/models/getdraindeliverydrains2.md +++ b/docs/models/getdraindeliverydrains2.md @@ -19,10 +19,10 @@ let value: GetDrainDeliveryDrains2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType](../models/getdraindeliverydrainsresponse200applicationjsonresponsebodytype.md) | :heavy_check_mark: | N/A | -| `endpoint` | [models.GetDrainDeliveryDrainsEndpoint](../models/getdraindeliverydrainsendpoint.md) | :heavy_check_mark: | N/A | -| `encoding` | [models.GetDrainDeliveryDrainsResponse200Encoding](../models/getdraindeliverydrainsresponse200encoding.md) | :heavy_check_mark: | N/A | -| `headers` | Record | :heavy_check_mark: | N/A | -| `secret` | *models.GetDrainDeliveryDrainsResponse200Secret* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `type` | *"otlphttp"* | :heavy_check_mark: | N/A | +| `endpoint` | [models.GetDrainDeliveryDrainsEndpoint](../models/getdraindeliverydrainsendpoint.md) | :heavy_check_mark: | N/A | +| `encoding` | [models.GetDrainDeliveryDrainsResponse200Encoding](../models/getdraindeliverydrainsresponse200encoding.md) | :heavy_check_mark: | N/A | +| `headers` | Record | :heavy_check_mark: | N/A | +| `secret` | *models.GetDrainDeliveryDrainsResponse200Secret* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getdraindeliverydrains3.md b/docs/models/getdraindeliverydrains3.md index 9845079d..cee082d5 100644 --- a/docs/models/getdraindeliverydrains3.md +++ b/docs/models/getdraindeliverydrains3.md @@ -14,8 +14,8 @@ let value: GetDrainDeliveryDrains3 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type](../models/getdraindeliverydrainsresponse200applicationjsonresponsebody2type.md) | :heavy_check_mark: | N/A | -| `endpoint` | *string* | :heavy_check_mark: | N/A | -| `table` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"clickhouse"* | :heavy_check_mark: | N/A | +| `endpoint` | *string* | :heavy_check_mark: | N/A | +| `table` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdraindeliverydrains4.md b/docs/models/getdraindeliverydrains4.md index 97775af4..b8df3c62 100644 --- a/docs/models/getdraindeliverydrains4.md +++ b/docs/models/getdraindeliverydrains4.md @@ -13,7 +13,7 @@ let value: GetDrainDeliveryDrains4 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type](../models/getdraindeliverydrainsresponse200applicationjsonresponsebody24type.md) | :heavy_check_mark: | N/A | -| `target` | [models.GetDrainDeliveryDrainsTarget](../models/getdraindeliverydrainstarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `type` | *"internal"* | :heavy_check_mark: | N/A | +| `target` | [models.GetDrainDeliveryDrainsTarget](../models/getdraindeliverydrainstarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdraindeliverydrainsresponse200applicationjsonresponsebody24type.md b/docs/models/getdraindeliverydrainsresponse200applicationjsonresponsebody24type.md deleted file mode 100644 index a2755af3..00000000 --- a/docs/models/getdraindeliverydrainsresponse200applicationjsonresponsebody24type.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type - -## Example Usage - -```typescript -import { GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type } from "@vercel/sdk/models/getdrainop.js"; - -let value: GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type = - "internal"; -``` - -## Values - -```typescript -"internal" -``` \ No newline at end of file diff --git a/docs/models/getdraindeliverydrainsresponse200applicationjsonresponsebody2type.md b/docs/models/getdraindeliverydrainsresponse200applicationjsonresponsebody2type.md deleted file mode 100644 index bcae20a2..00000000 --- a/docs/models/getdraindeliverydrainsresponse200applicationjsonresponsebody2type.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type - -## Example Usage - -```typescript -import { GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type } from "@vercel/sdk/models/getdrainop.js"; - -let value: GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type = - "clickhouse"; -``` - -## Values - -```typescript -"clickhouse" -``` \ No newline at end of file diff --git a/docs/models/getdraindeliverydrainsresponse200applicationjsonresponsebodytype.md b/docs/models/getdraindeliverydrainsresponse200applicationjsonresponsebodytype.md deleted file mode 100644 index 85467b1c..00000000 --- a/docs/models/getdraindeliverydrainsresponse200applicationjsonresponsebodytype.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType - -## Example Usage - -```typescript -import { GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType } from "@vercel/sdk/models/getdrainop.js"; - -let value: GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType = - "otlphttp"; -``` - -## Values - -```typescript -"otlphttp" -``` \ No newline at end of file diff --git a/docs/models/getdraindeliverydrainsresponse200applicationjsontype.md b/docs/models/getdraindeliverydrainsresponse200applicationjsontype.md deleted file mode 100644 index 2b2cc0c2..00000000 --- a/docs/models/getdraindeliverydrainsresponse200applicationjsontype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainDeliveryDrainsResponse200ApplicationJSONType - -## Example Usage - -```typescript -import { GetDrainDeliveryDrainsResponse200ApplicationJSONType } from "@vercel/sdk/models/getdrainop.js"; - -let value: GetDrainDeliveryDrainsResponse200ApplicationJSONType = "http"; -``` - -## Values - -```typescript -"http" -``` \ No newline at end of file diff --git a/docs/models/getdraindeliverydrainsresponse200type.md b/docs/models/getdraindeliverydrainsresponse200type.md deleted file mode 100644 index 78b8149b..00000000 --- a/docs/models/getdraindeliverydrainsresponse200type.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainDeliveryDrainsResponse200Type - -## Example Usage - -```typescript -import { GetDrainDeliveryDrainsResponse200Type } from "@vercel/sdk/models/getdrainop.js"; - -let value: GetDrainDeliveryDrainsResponse200Type = "internal"; -``` - -## Values - -```typescript -"internal" -``` \ No newline at end of file diff --git a/docs/models/getdraindeliverydrainsresponsetype.md b/docs/models/getdraindeliverydrainsresponsetype.md deleted file mode 100644 index 01cc9700..00000000 --- a/docs/models/getdraindeliverydrainsresponsetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainDeliveryDrainsResponseType - -## Example Usage - -```typescript -import { GetDrainDeliveryDrainsResponseType } from "@vercel/sdk/models/getdrainop.js"; - -let value: GetDrainDeliveryDrainsResponseType = "clickhouse"; -``` - -## Values - -```typescript -"clickhouse" -``` \ No newline at end of file diff --git a/docs/models/getdraindeliverydrainstype.md b/docs/models/getdraindeliverydrainstype.md deleted file mode 100644 index da8139a6..00000000 --- a/docs/models/getdraindeliverydrainstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainDeliveryDrainsType - -## Example Usage - -```typescript -import { GetDrainDeliveryDrainsType } from "@vercel/sdk/models/getdrainop.js"; - -let value: GetDrainDeliveryDrainsType = "otlphttp"; -``` - -## Values - -```typescript -"otlphttp" -``` \ No newline at end of file diff --git a/docs/models/getdraindeliverytype.md b/docs/models/getdraindeliverytype.md deleted file mode 100644 index df60c616..00000000 --- a/docs/models/getdraindeliverytype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainDeliveryType - -## Example Usage - -```typescript -import { GetDrainDeliveryType } from "@vercel/sdk/models/getdrainop.js"; - -let value: GetDrainDeliveryType = "http"; -``` - -## Values - -```typescript -"http" -``` \ No newline at end of file diff --git a/docs/models/getdrainfilter1.md b/docs/models/getdrainfilter1.md index c03a81e6..ff7024fc 100644 --- a/docs/models/getdrainfilter1.md +++ b/docs/models/getdrainfilter1.md @@ -14,7 +14,7 @@ let value: GetDrainFilter1 = { | Field | Type | Required | Description | | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `type` | [models.GetDrainFilterType](../models/getdrainfiltertype.md) | :heavy_check_mark: | N/A | +| `type` | *"basic"* | :heavy_check_mark: | N/A | | `project` | [models.GetDrainFilterProject](../models/getdrainfilterproject.md) | :heavy_minus_sign: | N/A | | `log` | [models.GetDrainFilterLog](../models/getdrainfilterlog.md) | :heavy_minus_sign: | N/A | | `deployment` | [models.GetDrainFilterDeployment](../models/getdrainfilterdeployment.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainfilter2.md b/docs/models/getdrainfilter2.md index 3370c6d5..7b4f8496 100644 --- a/docs/models/getdrainfilter2.md +++ b/docs/models/getdrainfilter2.md @@ -13,7 +13,7 @@ let value: GetDrainFilter2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `type` | [models.GetDrainFilterDrainsType](../models/getdrainfilterdrainstype.md) | :heavy_check_mark: | N/A | -| `text` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"odata"* | :heavy_check_mark: | N/A | +| `text` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainfilterdrains1.md b/docs/models/getdrainfilterdrains1.md index c8ced2d5..64af9a08 100644 --- a/docs/models/getdrainfilterdrains1.md +++ b/docs/models/getdrainfilterdrains1.md @@ -12,9 +12,9 @@ let value: GetDrainFilterDrains1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `type` | [models.GetDrainFilterDrainsResponseType](../models/getdrainfilterdrainsresponsetype.md) | :heavy_check_mark: | N/A | -| `project` | [models.GetDrainFilterDrainsProject](../models/getdrainfilterdrainsproject.md) | :heavy_minus_sign: | N/A | -| `log` | [models.GetDrainFilterDrainsLog](../models/getdrainfilterdrainslog.md) | :heavy_minus_sign: | N/A | -| `deployment` | [models.GetDrainFilterDrainsDeployment](../models/getdrainfilterdrainsdeployment.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `type` | *"basic"* | :heavy_check_mark: | N/A | +| `project` | [models.GetDrainFilterDrainsProject](../models/getdrainfilterdrainsproject.md) | :heavy_minus_sign: | N/A | +| `log` | [models.GetDrainFilterDrainsLog](../models/getdrainfilterdrainslog.md) | :heavy_minus_sign: | N/A | +| `deployment` | [models.GetDrainFilterDrainsDeployment](../models/getdrainfilterdrainsdeployment.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainfilterdrains2.md b/docs/models/getdrainfilterdrains2.md index b4d5c126..83de19ca 100644 --- a/docs/models/getdrainfilterdrains2.md +++ b/docs/models/getdrainfilterdrains2.md @@ -13,7 +13,7 @@ let value: GetDrainFilterDrains2 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `type` | [models.GetDrainFilterDrainsResponse200Type](../models/getdrainfilterdrainsresponse200type.md) | :heavy_check_mark: | N/A | -| `text` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"odata"* | :heavy_check_mark: | N/A | +| `text` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainfilterdrainsresponse200type.md b/docs/models/getdrainfilterdrainsresponse200type.md deleted file mode 100644 index b62923ee..00000000 --- a/docs/models/getdrainfilterdrainsresponse200type.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainFilterDrainsResponse200Type - -## Example Usage - -```typescript -import { GetDrainFilterDrainsResponse200Type } from "@vercel/sdk/models/getdrainop.js"; - -let value: GetDrainFilterDrainsResponse200Type = "odata"; -``` - -## Values - -```typescript -"odata" -``` \ No newline at end of file diff --git a/docs/models/getdrainfilterdrainsresponsetype.md b/docs/models/getdrainfilterdrainsresponsetype.md deleted file mode 100644 index 76356b2e..00000000 --- a/docs/models/getdrainfilterdrainsresponsetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainFilterDrainsResponseType - -## Example Usage - -```typescript -import { GetDrainFilterDrainsResponseType } from "@vercel/sdk/models/getdrainop.js"; - -let value: GetDrainFilterDrainsResponseType = "basic"; -``` - -## Values - -```typescript -"basic" -``` \ No newline at end of file diff --git a/docs/models/getdrainfilterdrainstype.md b/docs/models/getdrainfilterdrainstype.md deleted file mode 100644 index 74245262..00000000 --- a/docs/models/getdrainfilterdrainstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainFilterDrainsType - -## Example Usage - -```typescript -import { GetDrainFilterDrainsType } from "@vercel/sdk/models/getdrainop.js"; - -let value: GetDrainFilterDrainsType = "odata"; -``` - -## Values - -```typescript -"odata" -``` \ No newline at end of file diff --git a/docs/models/getdrainfiltertype.md b/docs/models/getdrainfiltertype.md deleted file mode 100644 index 9fdac8fe..00000000 --- a/docs/models/getdrainfiltertype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainFilterType - -## Example Usage - -```typescript -import { GetDrainFilterType } from "@vercel/sdk/models/getdrainop.js"; - -let value: GetDrainFilterType = "basic"; -``` - -## Values - -```typescript -"basic" -``` \ No newline at end of file diff --git a/docs/models/getdrainfilterv21.md b/docs/models/getdrainfilterv21.md index be19832a..45de0fca 100644 --- a/docs/models/getdrainfilterv21.md +++ b/docs/models/getdrainfilterv21.md @@ -12,6 +12,6 @@ let value: GetDrainFilterV21 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `version` | [models.GetDrainFilterV2Version](../models/getdrainfilterv2version.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `version` | *"v1"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainfilterv22.md b/docs/models/getdrainfilterv22.md index 4c0f84e6..9566eafa 100644 --- a/docs/models/getdrainfilterv22.md +++ b/docs/models/getdrainfilterv22.md @@ -16,7 +16,7 @@ let value: GetDrainFilterV22 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `version` | [models.GetDrainFilterV2DrainsVersion](../models/getdrainfilterv2drainsversion.md) | :heavy_check_mark: | N/A | -| `filter` | *models.GetDrainFilterV2Filter* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `version` | *"v2"* | :heavy_check_mark: | N/A | +| `filter` | *models.GetDrainFilterV2Filter* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainfilterv2drains1.md b/docs/models/getdrainfilterv2drains1.md index f71dd65a..390c9ddd 100644 --- a/docs/models/getdrainfilterv2drains1.md +++ b/docs/models/getdrainfilterv2drains1.md @@ -12,6 +12,6 @@ let value: GetDrainFilterV2Drains1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `version` | [models.GetDrainFilterV2DrainsResponseVersion](../models/getdrainfilterv2drainsresponseversion.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `version` | *"v1"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainfilterv2drains2.md b/docs/models/getdrainfilterv2drains2.md index 51f3efa5..b0524ad7 100644 --- a/docs/models/getdrainfilterv2drains2.md +++ b/docs/models/getdrainfilterv2drains2.md @@ -16,7 +16,7 @@ let value: GetDrainFilterV2Drains2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `version` | [models.GetDrainFilterV2DrainsResponse200Version](../models/getdrainfilterv2drainsresponse200version.md) | :heavy_check_mark: | N/A | -| `filter` | *models.GetDrainFilterV2DrainsFilter* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | +| `version` | *"v2"* | :heavy_check_mark: | N/A | +| `filter` | *models.GetDrainFilterV2DrainsFilter* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainfilterv2drainsresponse200version.md b/docs/models/getdrainfilterv2drainsresponse200version.md deleted file mode 100644 index d7cb9868..00000000 --- a/docs/models/getdrainfilterv2drainsresponse200version.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainFilterV2DrainsResponse200Version - -## Example Usage - -```typescript -import { GetDrainFilterV2DrainsResponse200Version } from "@vercel/sdk/models/getdrainop.js"; - -let value: GetDrainFilterV2DrainsResponse200Version = "v2"; -``` - -## Values - -```typescript -"v2" -``` \ No newline at end of file diff --git a/docs/models/getdrainfilterv2drainsresponseversion.md b/docs/models/getdrainfilterv2drainsresponseversion.md deleted file mode 100644 index 42910ac0..00000000 --- a/docs/models/getdrainfilterv2drainsresponseversion.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainFilterV2DrainsResponseVersion - -## Example Usage - -```typescript -import { GetDrainFilterV2DrainsResponseVersion } from "@vercel/sdk/models/getdrainop.js"; - -let value: GetDrainFilterV2DrainsResponseVersion = "v1"; -``` - -## Values - -```typescript -"v1" -``` \ No newline at end of file diff --git a/docs/models/getdrainfilterv2drainsversion.md b/docs/models/getdrainfilterv2drainsversion.md deleted file mode 100644 index ffb3034b..00000000 --- a/docs/models/getdrainfilterv2drainsversion.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainFilterV2DrainsVersion - -## Example Usage - -```typescript -import { GetDrainFilterV2DrainsVersion } from "@vercel/sdk/models/getdrainop.js"; - -let value: GetDrainFilterV2DrainsVersion = "v2"; -``` - -## Values - -```typescript -"v2" -``` \ No newline at end of file diff --git a/docs/models/getdrainfilterv2version.md b/docs/models/getdrainfilterv2version.md deleted file mode 100644 index 588c8e42..00000000 --- a/docs/models/getdrainfilterv2version.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainFilterV2Version - -## Example Usage - -```typescript -import { GetDrainFilterV2Version } from "@vercel/sdk/models/getdrainop.js"; - -let value: GetDrainFilterV2Version = "v1"; -``` - -## Values - -```typescript -"v1" -``` \ No newline at end of file diff --git a/docs/models/getdrainprojectaccess1.md b/docs/models/getdrainprojectaccess1.md index 5b961892..ce9ee042 100644 --- a/docs/models/getdrainprojectaccess1.md +++ b/docs/models/getdrainprojectaccess1.md @@ -12,6 +12,6 @@ let value: GetDrainProjectAccess1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `access` | [models.GetDrainProjectAccessAccess](../models/getdrainprojectaccessaccess.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `access` | *"all"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainprojectaccess2.md b/docs/models/getdrainprojectaccess2.md index ba384ac8..62173a0d 100644 --- a/docs/models/getdrainprojectaccess2.md +++ b/docs/models/getdrainprojectaccess2.md @@ -17,7 +17,7 @@ let value: GetDrainProjectAccess2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `access` | [models.GetDrainProjectAccessDrainsAccess](../models/getdrainprojectaccessdrainsaccess.md) | :heavy_check_mark: | N/A | -| `projectIds` | *string*[] | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `access` | *"some"* | :heavy_check_mark: | N/A | +| `projectIds` | *string*[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainprojectaccessaccess.md b/docs/models/getdrainprojectaccessaccess.md deleted file mode 100644 index f157398f..00000000 --- a/docs/models/getdrainprojectaccessaccess.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainProjectAccessAccess - -## Example Usage - -```typescript -import { GetDrainProjectAccessAccess } from "@vercel/sdk/models/getdrainop.js"; - -let value: GetDrainProjectAccessAccess = "all"; -``` - -## Values - -```typescript -"all" -``` \ No newline at end of file diff --git a/docs/models/getdrainprojectaccessdrainsaccess.md b/docs/models/getdrainprojectaccessdrainsaccess.md deleted file mode 100644 index f57af089..00000000 --- a/docs/models/getdrainprojectaccessdrainsaccess.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainProjectAccessDrainsAccess - -## Example Usage - -```typescript -import { GetDrainProjectAccessDrainsAccess } from "@vercel/sdk/models/getdrainop.js"; - -let value: GetDrainProjectAccessDrainsAccess = "some"; -``` - -## Values - -```typescript -"some" -``` \ No newline at end of file diff --git a/docs/models/getdrainsdelivery1.md b/docs/models/getdrainsdelivery1.md index eec57789..c12cddc6 100644 --- a/docs/models/getdrainsdelivery1.md +++ b/docs/models/getdrainsdelivery1.md @@ -19,7 +19,7 @@ let value: GetDrainsDelivery1 = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `type` | [models.GetDrainsDeliveryType](../models/getdrainsdeliverytype.md) | :heavy_check_mark: | N/A | +| `type` | *"http"* | :heavy_check_mark: | N/A | | `endpoint` | *string* | :heavy_check_mark: | N/A | | `encoding` | [models.GetDrainsDeliveryEncoding](../models/getdrainsdeliveryencoding.md) | :heavy_check_mark: | N/A | | `compression` | [models.GetDrainsDeliveryCompression](../models/getdrainsdeliverycompression.md) | :heavy_minus_sign: | N/A | diff --git a/docs/models/getdrainsdelivery2.md b/docs/models/getdrainsdelivery2.md index feaf2841..a6e9611d 100644 --- a/docs/models/getdrainsdelivery2.md +++ b/docs/models/getdrainsdelivery2.md @@ -23,7 +23,7 @@ let value: GetDrainsDelivery2 = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `type` | [models.GetDrainsDeliveryDrainsType](../models/getdrainsdeliverydrainstype.md) | :heavy_check_mark: | N/A | +| `type` | *"otlphttp"* | :heavy_check_mark: | N/A | | `endpoint` | [models.GetDrainsDeliveryEndpoint](../models/getdrainsdeliveryendpoint.md) | :heavy_check_mark: | N/A | | `encoding` | [models.GetDrainsDeliveryDrainsEncoding](../models/getdrainsdeliverydrainsencoding.md) | :heavy_check_mark: | N/A | | `headers` | Record | :heavy_check_mark: | N/A | diff --git a/docs/models/getdrainsdelivery3.md b/docs/models/getdrainsdelivery3.md index 3cfa10b8..6faf1936 100644 --- a/docs/models/getdrainsdelivery3.md +++ b/docs/models/getdrainsdelivery3.md @@ -14,8 +14,8 @@ let value: GetDrainsDelivery3 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `type` | [models.GetDrainsDeliveryDrainsResponseType](../models/getdrainsdeliverydrainsresponsetype.md) | :heavy_check_mark: | N/A | -| `endpoint` | *string* | :heavy_check_mark: | N/A | -| `table` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"clickhouse"* | :heavy_check_mark: | N/A | +| `endpoint` | *string* | :heavy_check_mark: | N/A | +| `table` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainsdelivery4.md b/docs/models/getdrainsdelivery4.md index bc3a2677..2c7c5567 100644 --- a/docs/models/getdrainsdelivery4.md +++ b/docs/models/getdrainsdelivery4.md @@ -13,7 +13,7 @@ let value: GetDrainsDelivery4 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `type` | [models.GetDrainsDeliveryDrainsResponse200Type](../models/getdrainsdeliverydrainsresponse200type.md) | :heavy_check_mark: | N/A | -| `target` | [models.GetDrainsDeliveryTarget](../models/getdrainsdeliverytarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `type` | *"internal"* | :heavy_check_mark: | N/A | +| `target` | [models.GetDrainsDeliveryTarget](../models/getdrainsdeliverytarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainsdeliverydrains1.md b/docs/models/getdrainsdeliverydrains1.md index b99a17df..8d545a91 100644 --- a/docs/models/getdrainsdeliverydrains1.md +++ b/docs/models/getdrainsdeliverydrains1.md @@ -15,11 +15,11 @@ let value: GetDrainsDeliveryDrains1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetDrainsDeliveryDrainsResponse200ApplicationJSONType](../models/getdrainsdeliverydrainsresponse200applicationjsontype.md) | :heavy_check_mark: | N/A | -| `endpoint` | *string* | :heavy_check_mark: | N/A | -| `encoding` | [models.GetDrainsDeliveryDrainsResponseEncoding](../models/getdrainsdeliverydrainsresponseencoding.md) | :heavy_check_mark: | N/A | -| `compression` | [models.GetDrainsDeliveryDrainsCompression](../models/getdrainsdeliverydrainscompression.md) | :heavy_minus_sign: | N/A | -| `headers` | Record | :heavy_check_mark: | N/A | -| `secret` | *models.GetDrainsDeliveryDrainsResponseSecret* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `type` | *"http"* | :heavy_check_mark: | N/A | +| `endpoint` | *string* | :heavy_check_mark: | N/A | +| `encoding` | [models.GetDrainsDeliveryDrainsResponseEncoding](../models/getdrainsdeliverydrainsresponseencoding.md) | :heavy_check_mark: | N/A | +| `compression` | [models.GetDrainsDeliveryDrainsCompression](../models/getdrainsdeliverydrainscompression.md) | :heavy_minus_sign: | N/A | +| `headers` | Record | :heavy_check_mark: | N/A | +| `secret` | *models.GetDrainsDeliveryDrainsResponseSecret* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainsdeliverydrains2.md b/docs/models/getdrainsdeliverydrains2.md index 1c668d94..e30ea388 100644 --- a/docs/models/getdrainsdeliverydrains2.md +++ b/docs/models/getdrainsdeliverydrains2.md @@ -17,10 +17,10 @@ let value: GetDrainsDeliveryDrains2 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyType](../models/getdrainsdeliverydrainsresponse200applicationjsonresponsebodytype.md) | :heavy_check_mark: | N/A | -| `endpoint` | [models.GetDrainsDeliveryDrainsEndpoint](../models/getdrainsdeliverydrainsendpoint.md) | :heavy_check_mark: | N/A | -| `encoding` | [models.GetDrainsDeliveryDrainsResponse200Encoding](../models/getdrainsdeliverydrainsresponse200encoding.md) | :heavy_check_mark: | N/A | -| `headers` | Record | :heavy_check_mark: | N/A | -| `secret` | *models.GetDrainsDeliveryDrainsResponse200Secret* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `type` | *"otlphttp"* | :heavy_check_mark: | N/A | +| `endpoint` | [models.GetDrainsDeliveryDrainsEndpoint](../models/getdrainsdeliverydrainsendpoint.md) | :heavy_check_mark: | N/A | +| `encoding` | [models.GetDrainsDeliveryDrainsResponse200Encoding](../models/getdrainsdeliverydrainsresponse200encoding.md) | :heavy_check_mark: | N/A | +| `headers` | Record | :heavy_check_mark: | N/A | +| `secret` | *models.GetDrainsDeliveryDrainsResponse200Secret* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainsdeliverydrains3.md b/docs/models/getdrainsdeliverydrains3.md index f235d68e..5d5e6f3a 100644 --- a/docs/models/getdrainsdeliverydrains3.md +++ b/docs/models/getdrainsdeliverydrains3.md @@ -14,8 +14,8 @@ let value: GetDrainsDeliveryDrains3 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrainsType](../models/getdrainsdeliverydrainsresponse200applicationjsonresponsebodydrainstype.md) | :heavy_check_mark: | N/A | -| `endpoint` | *string* | :heavy_check_mark: | N/A | -| `table` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"clickhouse"* | :heavy_check_mark: | N/A | +| `endpoint` | *string* | :heavy_check_mark: | N/A | +| `table` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainsdeliverydrains4.md b/docs/models/getdrainsdeliverydrains4.md index abd3a1a2..4d3e921b 100644 --- a/docs/models/getdrainsdeliverydrains4.md +++ b/docs/models/getdrainsdeliverydrains4.md @@ -13,7 +13,7 @@ let value: GetDrainsDeliveryDrains4 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrains2Type](../models/getdrainsdeliverydrainsresponse200applicationjsonresponsebodydrains2type.md) | :heavy_check_mark: | N/A | -| `target` | [models.GetDrainsDeliveryDrainsTarget](../models/getdrainsdeliverydrainstarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `type` | *"internal"* | :heavy_check_mark: | N/A | +| `target` | [models.GetDrainsDeliveryDrainsTarget](../models/getdrainsdeliverydrainstarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainsdeliverydrainsresponse200applicationjsonresponsebodydrains2type.md b/docs/models/getdrainsdeliverydrainsresponse200applicationjsonresponsebodydrains2type.md deleted file mode 100644 index bf262f96..00000000 --- a/docs/models/getdrainsdeliverydrainsresponse200applicationjsonresponsebodydrains2type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrains2Type - -## Example Usage - -```typescript -import { GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrains2Type } from "@vercel/sdk/models/getdrainsop.js"; - -let value: - GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrains2Type = - "internal"; -``` - -## Values - -```typescript -"internal" -``` \ No newline at end of file diff --git a/docs/models/getdrainsdeliverydrainsresponse200applicationjsonresponsebodydrainstype.md b/docs/models/getdrainsdeliverydrainsresponse200applicationjsonresponsebodydrainstype.md deleted file mode 100644 index 53a3b69b..00000000 --- a/docs/models/getdrainsdeliverydrainsresponse200applicationjsonresponsebodydrainstype.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrainsType - -## Example Usage - -```typescript -import { GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrainsType } from "@vercel/sdk/models/getdrainsop.js"; - -let value: - GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrainsType = - "clickhouse"; -``` - -## Values - -```typescript -"clickhouse" -``` \ No newline at end of file diff --git a/docs/models/getdrainsdeliverydrainsresponse200applicationjsonresponsebodytype.md b/docs/models/getdrainsdeliverydrainsresponse200applicationjsonresponsebodytype.md deleted file mode 100644 index 13693dde..00000000 --- a/docs/models/getdrainsdeliverydrainsresponse200applicationjsonresponsebodytype.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyType - -## Example Usage - -```typescript -import { GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyType } from "@vercel/sdk/models/getdrainsop.js"; - -let value: GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyType = - "otlphttp"; -``` - -## Values - -```typescript -"otlphttp" -``` \ No newline at end of file diff --git a/docs/models/getdrainsdeliverydrainsresponse200applicationjsontype.md b/docs/models/getdrainsdeliverydrainsresponse200applicationjsontype.md deleted file mode 100644 index 2d503fa1..00000000 --- a/docs/models/getdrainsdeliverydrainsresponse200applicationjsontype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainsDeliveryDrainsResponse200ApplicationJSONType - -## Example Usage - -```typescript -import { GetDrainsDeliveryDrainsResponse200ApplicationJSONType } from "@vercel/sdk/models/getdrainsop.js"; - -let value: GetDrainsDeliveryDrainsResponse200ApplicationJSONType = "http"; -``` - -## Values - -```typescript -"http" -``` \ No newline at end of file diff --git a/docs/models/getdrainsdeliverydrainsresponse200type.md b/docs/models/getdrainsdeliverydrainsresponse200type.md deleted file mode 100644 index 24e46d29..00000000 --- a/docs/models/getdrainsdeliverydrainsresponse200type.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainsDeliveryDrainsResponse200Type - -## Example Usage - -```typescript -import { GetDrainsDeliveryDrainsResponse200Type } from "@vercel/sdk/models/getdrainsop.js"; - -let value: GetDrainsDeliveryDrainsResponse200Type = "internal"; -``` - -## Values - -```typescript -"internal" -``` \ No newline at end of file diff --git a/docs/models/getdrainsdeliverydrainsresponsetype.md b/docs/models/getdrainsdeliverydrainsresponsetype.md deleted file mode 100644 index 7ecc9221..00000000 --- a/docs/models/getdrainsdeliverydrainsresponsetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainsDeliveryDrainsResponseType - -## Example Usage - -```typescript -import { GetDrainsDeliveryDrainsResponseType } from "@vercel/sdk/models/getdrainsop.js"; - -let value: GetDrainsDeliveryDrainsResponseType = "clickhouse"; -``` - -## Values - -```typescript -"clickhouse" -``` \ No newline at end of file diff --git a/docs/models/getdrainsdeliverydrainstype.md b/docs/models/getdrainsdeliverydrainstype.md deleted file mode 100644 index 7d088f23..00000000 --- a/docs/models/getdrainsdeliverydrainstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainsDeliveryDrainsType - -## Example Usage - -```typescript -import { GetDrainsDeliveryDrainsType } from "@vercel/sdk/models/getdrainsop.js"; - -let value: GetDrainsDeliveryDrainsType = "otlphttp"; -``` - -## Values - -```typescript -"otlphttp" -``` \ No newline at end of file diff --git a/docs/models/getdrainsdeliverytype.md b/docs/models/getdrainsdeliverytype.md deleted file mode 100644 index 72661224..00000000 --- a/docs/models/getdrainsdeliverytype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainsDeliveryType - -## Example Usage - -```typescript -import { GetDrainsDeliveryType } from "@vercel/sdk/models/getdrainsop.js"; - -let value: GetDrainsDeliveryType = "http"; -``` - -## Values - -```typescript -"http" -``` \ No newline at end of file diff --git a/docs/models/getdrainsfilter1.md b/docs/models/getdrainsfilter1.md index decc5f4e..5eef5bad 100644 --- a/docs/models/getdrainsfilter1.md +++ b/docs/models/getdrainsfilter1.md @@ -14,7 +14,7 @@ let value: GetDrainsFilter1 = { | Field | Type | Required | Description | | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `type` | [models.GetDrainsFilterType](../models/getdrainsfiltertype.md) | :heavy_check_mark: | N/A | +| `type` | *"basic"* | :heavy_check_mark: | N/A | | `project` | [models.GetDrainsFilterProject](../models/getdrainsfilterproject.md) | :heavy_minus_sign: | N/A | | `log` | [models.GetDrainsFilterLog](../models/getdrainsfilterlog.md) | :heavy_minus_sign: | N/A | | `deployment` | [models.GetDrainsFilterDeployment](../models/getdrainsfilterdeployment.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainsfilter2.md b/docs/models/getdrainsfilter2.md index 86d13d80..a1d9cefd 100644 --- a/docs/models/getdrainsfilter2.md +++ b/docs/models/getdrainsfilter2.md @@ -13,7 +13,7 @@ let value: GetDrainsFilter2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `type` | [models.GetDrainsFilterDrainsType](../models/getdrainsfilterdrainstype.md) | :heavy_check_mark: | N/A | -| `text` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"odata"* | :heavy_check_mark: | N/A | +| `text` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainsfilterdrains1.md b/docs/models/getdrainsfilterdrains1.md index 960ff417..9582fada 100644 --- a/docs/models/getdrainsfilterdrains1.md +++ b/docs/models/getdrainsfilterdrains1.md @@ -12,9 +12,9 @@ let value: GetDrainsFilterDrains1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `type` | [models.GetDrainsFilterDrainsResponseType](../models/getdrainsfilterdrainsresponsetype.md) | :heavy_check_mark: | N/A | -| `project` | [models.GetDrainsFilterDrainsProject](../models/getdrainsfilterdrainsproject.md) | :heavy_minus_sign: | N/A | -| `log` | [models.GetDrainsFilterDrainsLog](../models/getdrainsfilterdrainslog.md) | :heavy_minus_sign: | N/A | -| `deployment` | [models.GetDrainsFilterDrainsDeployment](../models/getdrainsfilterdrainsdeployment.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `type` | *"basic"* | :heavy_check_mark: | N/A | +| `project` | [models.GetDrainsFilterDrainsProject](../models/getdrainsfilterdrainsproject.md) | :heavy_minus_sign: | N/A | +| `log` | [models.GetDrainsFilterDrainsLog](../models/getdrainsfilterdrainslog.md) | :heavy_minus_sign: | N/A | +| `deployment` | [models.GetDrainsFilterDrainsDeployment](../models/getdrainsfilterdrainsdeployment.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainsfilterdrains2.md b/docs/models/getdrainsfilterdrains2.md index 977009ef..ac1de81a 100644 --- a/docs/models/getdrainsfilterdrains2.md +++ b/docs/models/getdrainsfilterdrains2.md @@ -13,7 +13,7 @@ let value: GetDrainsFilterDrains2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `type` | [models.GetDrainsFilterDrainsResponse200Type](../models/getdrainsfilterdrainsresponse200type.md) | :heavy_check_mark: | N/A | -| `text` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"odata"* | :heavy_check_mark: | N/A | +| `text` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainsfilterdrainsresponse200type.md b/docs/models/getdrainsfilterdrainsresponse200type.md deleted file mode 100644 index 1b8ddc6d..00000000 --- a/docs/models/getdrainsfilterdrainsresponse200type.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainsFilterDrainsResponse200Type - -## Example Usage - -```typescript -import { GetDrainsFilterDrainsResponse200Type } from "@vercel/sdk/models/getdrainsop.js"; - -let value: GetDrainsFilterDrainsResponse200Type = "odata"; -``` - -## Values - -```typescript -"odata" -``` \ No newline at end of file diff --git a/docs/models/getdrainsfilterdrainsresponsetype.md b/docs/models/getdrainsfilterdrainsresponsetype.md deleted file mode 100644 index d21006a0..00000000 --- a/docs/models/getdrainsfilterdrainsresponsetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainsFilterDrainsResponseType - -## Example Usage - -```typescript -import { GetDrainsFilterDrainsResponseType } from "@vercel/sdk/models/getdrainsop.js"; - -let value: GetDrainsFilterDrainsResponseType = "basic"; -``` - -## Values - -```typescript -"basic" -``` \ No newline at end of file diff --git a/docs/models/getdrainsfilterdrainstype.md b/docs/models/getdrainsfilterdrainstype.md deleted file mode 100644 index 4443eb36..00000000 --- a/docs/models/getdrainsfilterdrainstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainsFilterDrainsType - -## Example Usage - -```typescript -import { GetDrainsFilterDrainsType } from "@vercel/sdk/models/getdrainsop.js"; - -let value: GetDrainsFilterDrainsType = "odata"; -``` - -## Values - -```typescript -"odata" -``` \ No newline at end of file diff --git a/docs/models/getdrainsfiltertype.md b/docs/models/getdrainsfiltertype.md deleted file mode 100644 index 1d60a55d..00000000 --- a/docs/models/getdrainsfiltertype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainsFilterType - -## Example Usage - -```typescript -import { GetDrainsFilterType } from "@vercel/sdk/models/getdrainsop.js"; - -let value: GetDrainsFilterType = "basic"; -``` - -## Values - -```typescript -"basic" -``` \ No newline at end of file diff --git a/docs/models/getdrainsfilterv21.md b/docs/models/getdrainsfilterv21.md index f67cbe0d..7e38d441 100644 --- a/docs/models/getdrainsfilterv21.md +++ b/docs/models/getdrainsfilterv21.md @@ -12,6 +12,6 @@ let value: GetDrainsFilterV21 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `version` | [models.GetDrainsFilterV2Version](../models/getdrainsfilterv2version.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `version` | *"v1"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainsfilterv22.md b/docs/models/getdrainsfilterv22.md index 4bc061ba..d5b01e4f 100644 --- a/docs/models/getdrainsfilterv22.md +++ b/docs/models/getdrainsfilterv22.md @@ -15,7 +15,7 @@ let value: GetDrainsFilterV22 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `version` | [models.GetDrainsFilterV2DrainsVersion](../models/getdrainsfilterv2drainsversion.md) | :heavy_check_mark: | N/A | -| `filter` | *models.GetDrainsFilterV2Filter* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | +| `version` | *"v2"* | :heavy_check_mark: | N/A | +| `filter` | *models.GetDrainsFilterV2Filter* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainsfilterv2drains1.md b/docs/models/getdrainsfilterv2drains1.md index b9259e99..d5d13c94 100644 --- a/docs/models/getdrainsfilterv2drains1.md +++ b/docs/models/getdrainsfilterv2drains1.md @@ -12,6 +12,6 @@ let value: GetDrainsFilterV2Drains1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `version` | [models.GetDrainsFilterV2DrainsResponseVersion](../models/getdrainsfilterv2drainsresponseversion.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `version` | *"v1"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainsfilterv2drains2.md b/docs/models/getdrainsfilterv2drains2.md index dcd060fe..06badf09 100644 --- a/docs/models/getdrainsfilterv2drains2.md +++ b/docs/models/getdrainsfilterv2drains2.md @@ -16,7 +16,7 @@ let value: GetDrainsFilterV2Drains2 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `version` | [models.GetDrainsFilterV2DrainsResponse200Version](../models/getdrainsfilterv2drainsresponse200version.md) | :heavy_check_mark: | N/A | -| `filter` | *models.GetDrainsFilterV2DrainsFilter* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | +| `version` | *"v2"* | :heavy_check_mark: | N/A | +| `filter` | *models.GetDrainsFilterV2DrainsFilter* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainsfilterv2drainsresponse200version.md b/docs/models/getdrainsfilterv2drainsresponse200version.md deleted file mode 100644 index 90201d3e..00000000 --- a/docs/models/getdrainsfilterv2drainsresponse200version.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainsFilterV2DrainsResponse200Version - -## Example Usage - -```typescript -import { GetDrainsFilterV2DrainsResponse200Version } from "@vercel/sdk/models/getdrainsop.js"; - -let value: GetDrainsFilterV2DrainsResponse200Version = "v2"; -``` - -## Values - -```typescript -"v2" -``` \ No newline at end of file diff --git a/docs/models/getdrainsfilterv2drainsresponseversion.md b/docs/models/getdrainsfilterv2drainsresponseversion.md deleted file mode 100644 index f935afb5..00000000 --- a/docs/models/getdrainsfilterv2drainsresponseversion.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainsFilterV2DrainsResponseVersion - -## Example Usage - -```typescript -import { GetDrainsFilterV2DrainsResponseVersion } from "@vercel/sdk/models/getdrainsop.js"; - -let value: GetDrainsFilterV2DrainsResponseVersion = "v1"; -``` - -## Values - -```typescript -"v1" -``` \ No newline at end of file diff --git a/docs/models/getdrainsfilterv2drainsversion.md b/docs/models/getdrainsfilterv2drainsversion.md deleted file mode 100644 index 46de4ca5..00000000 --- a/docs/models/getdrainsfilterv2drainsversion.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainsFilterV2DrainsVersion - -## Example Usage - -```typescript -import { GetDrainsFilterV2DrainsVersion } from "@vercel/sdk/models/getdrainsop.js"; - -let value: GetDrainsFilterV2DrainsVersion = "v2"; -``` - -## Values - -```typescript -"v2" -``` \ No newline at end of file diff --git a/docs/models/getdrainsfilterv2version.md b/docs/models/getdrainsfilterv2version.md deleted file mode 100644 index b0498fac..00000000 --- a/docs/models/getdrainsfilterv2version.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainsFilterV2Version - -## Example Usage - -```typescript -import { GetDrainsFilterV2Version } from "@vercel/sdk/models/getdrainsop.js"; - -let value: GetDrainsFilterV2Version = "v1"; -``` - -## Values - -```typescript -"v1" -``` \ No newline at end of file diff --git a/docs/models/getdrainsource1.md b/docs/models/getdrainsource1.md index 999862e2..ba5ad782 100644 --- a/docs/models/getdrainsource1.md +++ b/docs/models/getdrainsource1.md @@ -12,6 +12,6 @@ let value: GetDrainSource1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `kind` | [models.GetDrainSourceKind](../models/getdrainsourcekind.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `kind` | *"self-served"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainsource2.md b/docs/models/getdrainsource2.md index 4ba60577..85d764d0 100644 --- a/docs/models/getdrainsource2.md +++ b/docs/models/getdrainsource2.md @@ -14,10 +14,10 @@ let value: GetDrainSource2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `kind` | [models.GetDrainSourceDrainsKind](../models/getdrainsourcedrainskind.md) | :heavy_check_mark: | N/A | -| `resourceId` | *string* | :heavy_minus_sign: | N/A | -| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `kind` | *"integration"* | :heavy_check_mark: | N/A | +| `resourceId` | *string* | :heavy_minus_sign: | N/A | +| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainsourcedrains1.md b/docs/models/getdrainsourcedrains1.md index cd176428..d0ddec6e 100644 --- a/docs/models/getdrainsourcedrains1.md +++ b/docs/models/getdrainsourcedrains1.md @@ -12,6 +12,6 @@ let value: GetDrainSourceDrains1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `kind` | [models.GetDrainSourceDrainsResponseKind](../models/getdrainsourcedrainsresponsekind.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `kind` | *"self-served"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainsourcedrains2.md b/docs/models/getdrainsourcedrains2.md index 6aa6cd31..b14af7be 100644 --- a/docs/models/getdrainsourcedrains2.md +++ b/docs/models/getdrainsourcedrains2.md @@ -14,10 +14,10 @@ let value: GetDrainSourceDrains2 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `kind` | [models.GetDrainSourceDrainsResponse200Kind](../models/getdrainsourcedrainsresponse200kind.md) | :heavy_check_mark: | N/A | -| `resourceId` | *string* | :heavy_minus_sign: | N/A | -| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `kind` | *"integration"* | :heavy_check_mark: | N/A | +| `resourceId` | *string* | :heavy_minus_sign: | N/A | +| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainsourcedrainskind.md b/docs/models/getdrainsourcedrainskind.md deleted file mode 100644 index 8c4d1d7c..00000000 --- a/docs/models/getdrainsourcedrainskind.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainSourceDrainsKind - -## Example Usage - -```typescript -import { GetDrainSourceDrainsKind } from "@vercel/sdk/models/getdrainop.js"; - -let value: GetDrainSourceDrainsKind = "integration"; -``` - -## Values - -```typescript -"integration" -``` \ No newline at end of file diff --git a/docs/models/getdrainsourcedrainsresponse200kind.md b/docs/models/getdrainsourcedrainsresponse200kind.md deleted file mode 100644 index 57eb40b7..00000000 --- a/docs/models/getdrainsourcedrainsresponse200kind.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainSourceDrainsResponse200Kind - -## Example Usage - -```typescript -import { GetDrainSourceDrainsResponse200Kind } from "@vercel/sdk/models/getdrainop.js"; - -let value: GetDrainSourceDrainsResponse200Kind = "integration"; -``` - -## Values - -```typescript -"integration" -``` \ No newline at end of file diff --git a/docs/models/getdrainsourcedrainsresponsekind.md b/docs/models/getdrainsourcedrainsresponsekind.md deleted file mode 100644 index b4ef1807..00000000 --- a/docs/models/getdrainsourcedrainsresponsekind.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainSourceDrainsResponseKind - -## Example Usage - -```typescript -import { GetDrainSourceDrainsResponseKind } from "@vercel/sdk/models/getdrainop.js"; - -let value: GetDrainSourceDrainsResponseKind = "self-served"; -``` - -## Values - -```typescript -"self-served" -``` \ No newline at end of file diff --git a/docs/models/getdrainsourcekind.md b/docs/models/getdrainsourcekind.md deleted file mode 100644 index 7e317b83..00000000 --- a/docs/models/getdrainsourcekind.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainSourceKind - -## Example Usage - -```typescript -import { GetDrainSourceKind } from "@vercel/sdk/models/getdrainop.js"; - -let value: GetDrainSourceKind = "self-served"; -``` - -## Values - -```typescript -"self-served" -``` \ No newline at end of file diff --git a/docs/models/getdrainsprojectaccess1.md b/docs/models/getdrainsprojectaccess1.md index 6205fc55..f4a52574 100644 --- a/docs/models/getdrainsprojectaccess1.md +++ b/docs/models/getdrainsprojectaccess1.md @@ -12,6 +12,6 @@ let value: GetDrainsProjectAccess1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `access` | [models.GetDrainsProjectAccessAccess](../models/getdrainsprojectaccessaccess.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `access` | *"all"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainsprojectaccess2.md b/docs/models/getdrainsprojectaccess2.md index 4f3f0557..d5d0d730 100644 --- a/docs/models/getdrainsprojectaccess2.md +++ b/docs/models/getdrainsprojectaccess2.md @@ -15,7 +15,7 @@ let value: GetDrainsProjectAccess2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `access` | [models.GetDrainsProjectAccessDrainsAccess](../models/getdrainsprojectaccessdrainsaccess.md) | :heavy_check_mark: | N/A | -| `projectIds` | *string*[] | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `access` | *"some"* | :heavy_check_mark: | N/A | +| `projectIds` | *string*[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainsprojectaccessaccess.md b/docs/models/getdrainsprojectaccessaccess.md deleted file mode 100644 index 5d5e94f7..00000000 --- a/docs/models/getdrainsprojectaccessaccess.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainsProjectAccessAccess - -## Example Usage - -```typescript -import { GetDrainsProjectAccessAccess } from "@vercel/sdk/models/getdrainsop.js"; - -let value: GetDrainsProjectAccessAccess = "all"; -``` - -## Values - -```typescript -"all" -``` \ No newline at end of file diff --git a/docs/models/getdrainsprojectaccessdrainsaccess.md b/docs/models/getdrainsprojectaccessdrainsaccess.md deleted file mode 100644 index 3c0203a5..00000000 --- a/docs/models/getdrainsprojectaccessdrainsaccess.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainsProjectAccessDrainsAccess - -## Example Usage - -```typescript -import { GetDrainsProjectAccessDrainsAccess } from "@vercel/sdk/models/getdrainsop.js"; - -let value: GetDrainsProjectAccessDrainsAccess = "some"; -``` - -## Values - -```typescript -"some" -``` \ No newline at end of file diff --git a/docs/models/getdrainssource1.md b/docs/models/getdrainssource1.md index cd4088e4..8b25bcd0 100644 --- a/docs/models/getdrainssource1.md +++ b/docs/models/getdrainssource1.md @@ -12,6 +12,6 @@ let value: GetDrainsSource1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `kind` | [models.GetDrainsSourceKind](../models/getdrainssourcekind.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `kind` | *"self-served"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainssource2.md b/docs/models/getdrainssource2.md index 3ea6e17d..49b54734 100644 --- a/docs/models/getdrainssource2.md +++ b/docs/models/getdrainssource2.md @@ -14,10 +14,10 @@ let value: GetDrainsSource2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `kind` | [models.GetDrainsSourceDrainsKind](../models/getdrainssourcedrainskind.md) | :heavy_check_mark: | N/A | -| `resourceId` | *string* | :heavy_minus_sign: | N/A | -| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `kind` | *"integration"* | :heavy_check_mark: | N/A | +| `resourceId` | *string* | :heavy_minus_sign: | N/A | +| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainssourcedrains1.md b/docs/models/getdrainssourcedrains1.md index 59af0c77..f194c3ed 100644 --- a/docs/models/getdrainssourcedrains1.md +++ b/docs/models/getdrainssourcedrains1.md @@ -12,6 +12,6 @@ let value: GetDrainsSourceDrains1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `kind` | [models.GetDrainsSourceDrainsResponseKind](../models/getdrainssourcedrainsresponsekind.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `kind` | *"self-served"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainssourcedrains2.md b/docs/models/getdrainssourcedrains2.md index d60377eb..258b768f 100644 --- a/docs/models/getdrainssourcedrains2.md +++ b/docs/models/getdrainssourcedrains2.md @@ -14,10 +14,10 @@ let value: GetDrainsSourceDrains2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `kind` | [models.GetDrainsSourceDrainsResponse200Kind](../models/getdrainssourcedrainsresponse200kind.md) | :heavy_check_mark: | N/A | -| `resourceId` | *string* | :heavy_minus_sign: | N/A | -| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `kind` | *"integration"* | :heavy_check_mark: | N/A | +| `resourceId` | *string* | :heavy_minus_sign: | N/A | +| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdrainssourcedrainskind.md b/docs/models/getdrainssourcedrainskind.md deleted file mode 100644 index 1cceb263..00000000 --- a/docs/models/getdrainssourcedrainskind.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainsSourceDrainsKind - -## Example Usage - -```typescript -import { GetDrainsSourceDrainsKind } from "@vercel/sdk/models/getdrainsop.js"; - -let value: GetDrainsSourceDrainsKind = "integration"; -``` - -## Values - -```typescript -"integration" -``` \ No newline at end of file diff --git a/docs/models/getdrainssourcedrainsresponse200kind.md b/docs/models/getdrainssourcedrainsresponse200kind.md deleted file mode 100644 index 4031860e..00000000 --- a/docs/models/getdrainssourcedrainsresponse200kind.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainsSourceDrainsResponse200Kind - -## Example Usage - -```typescript -import { GetDrainsSourceDrainsResponse200Kind } from "@vercel/sdk/models/getdrainsop.js"; - -let value: GetDrainsSourceDrainsResponse200Kind = "integration"; -``` - -## Values - -```typescript -"integration" -``` \ No newline at end of file diff --git a/docs/models/getdrainssourcedrainsresponsekind.md b/docs/models/getdrainssourcedrainsresponsekind.md deleted file mode 100644 index 183e35ec..00000000 --- a/docs/models/getdrainssourcedrainsresponsekind.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainsSourceDrainsResponseKind - -## Example Usage - -```typescript -import { GetDrainsSourceDrainsResponseKind } from "@vercel/sdk/models/getdrainsop.js"; - -let value: GetDrainsSourceDrainsResponseKind = "self-served"; -``` - -## Values - -```typescript -"self-served" -``` \ No newline at end of file diff --git a/docs/models/getdrainssourcekind.md b/docs/models/getdrainssourcekind.md deleted file mode 100644 index 2b44fd9d..00000000 --- a/docs/models/getdrainssourcekind.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDrainsSourceKind - -## Example Usage - -```typescript -import { GetDrainsSourceKind } from "@vercel/sdk/models/getdrainsop.js"; - -let value: GetDrainsSourceKind = "self-served"; -``` - -## Values - -```typescript -"self-served" -``` \ No newline at end of file diff --git a/docs/models/getedgeconfigpurpose1.md b/docs/models/getedgeconfigpurpose1.md index 7ba45e0e..575c4363 100644 --- a/docs/models/getedgeconfigpurpose1.md +++ b/docs/models/getedgeconfigpurpose1.md @@ -13,7 +13,7 @@ let value: GetEdgeConfigPurpose1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `type` | [models.GetEdgeConfigPurposeType](../models/getedgeconfigpurposetype.md) | :heavy_check_mark: | N/A | -| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"flags"* | :heavy_check_mark: | N/A | +| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getedgeconfigpurpose2.md b/docs/models/getedgeconfigpurpose2.md index 469ce280..5c24595b 100644 --- a/docs/models/getedgeconfigpurpose2.md +++ b/docs/models/getedgeconfigpurpose2.md @@ -13,7 +13,7 @@ let value: GetEdgeConfigPurpose2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `type` | [models.GetEdgeConfigPurposeEdgeConfigType](../models/getedgeconfigpurposeedgeconfigtype.md) | :heavy_check_mark: | N/A | -| `resourceId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------- | ------------------- | ------------------- | ------------------- | +| `type` | *"experimentation"* | :heavy_check_mark: | N/A | +| `resourceId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getedgeconfigpurposeedgeconfigtype.md b/docs/models/getedgeconfigpurposeedgeconfigtype.md deleted file mode 100644 index 21dd7238..00000000 --- a/docs/models/getedgeconfigpurposeedgeconfigtype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetEdgeConfigPurposeEdgeConfigType - -## Example Usage - -```typescript -import { GetEdgeConfigPurposeEdgeConfigType } from "@vercel/sdk/models/getedgeconfigop.js"; - -let value: GetEdgeConfigPurposeEdgeConfigType = "experimentation"; -``` - -## Values - -```typescript -"experimentation" -``` \ No newline at end of file diff --git a/docs/models/getedgeconfigpurposetype.md b/docs/models/getedgeconfigpurposetype.md deleted file mode 100644 index 59b31be4..00000000 --- a/docs/models/getedgeconfigpurposetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetEdgeConfigPurposeType - -## Example Usage - -```typescript -import { GetEdgeConfigPurposeType } from "@vercel/sdk/models/getedgeconfigop.js"; - -let value: GetEdgeConfigPurposeType = "flags"; -``` - -## Values - -```typescript -"flags" -``` \ No newline at end of file diff --git a/docs/models/getintegrationlogdrainssource1.md b/docs/models/getintegrationlogdrainssource1.md index 75f9d4c0..436293e4 100644 --- a/docs/models/getintegrationlogdrainssource1.md +++ b/docs/models/getintegrationlogdrainssource1.md @@ -12,6 +12,6 @@ let value: GetIntegrationLogDrainsSource1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | -| `kind` | [models.Kind](../models/kind.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `kind` | *"self-served"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getintegrationlogdrainssource2.md b/docs/models/getintegrationlogdrainssource2.md index 2ffc2b23..4c248926 100644 --- a/docs/models/getintegrationlogdrainssource2.md +++ b/docs/models/getintegrationlogdrainssource2.md @@ -14,10 +14,10 @@ let value: GetIntegrationLogDrainsSource2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -| `kind` | [models.SourceKind](../models/sourcekind.md) | :heavy_check_mark: | N/A | -| `resourceId` | *string* | :heavy_minus_sign: | N/A | -| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `kind` | *"integration"* | :heavy_check_mark: | N/A | +| `resourceId` | *string* | :heavy_minus_sign: | N/A | +| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getorder11.md b/docs/models/getorder11.md index f380aa7f..8845f954 100644 --- a/docs/models/getorder11.md +++ b/docs/models/getorder11.md @@ -12,6 +12,6 @@ let value: GetOrder11 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | -| `code` | [models.OneCode](../models/onecode.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `code` | *"payment-failed"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getorder12.md b/docs/models/getorder12.md index f845b883..aa490194 100644 --- a/docs/models/getorder12.md +++ b/docs/models/getorder12.md @@ -22,5 +22,5 @@ let value: GetOrder12 = { | Field | Type | Required | Description | | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `code` | [models.GetOrder1Code](../models/getorder1code.md) | :heavy_check_mark: | N/A | +| `code` | *"tld-outage"* | :heavy_check_mark: | N/A | | `details` | [models.GetOrder1Details](../models/getorder1details.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getorder13.md b/docs/models/getorder13.md index ccc81ad4..80f7986c 100644 --- a/docs/models/getorder13.md +++ b/docs/models/getorder13.md @@ -15,7 +15,7 @@ let value: GetOrder13 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `code` | [models.GetOrder1DomainsRegistrarCode](../models/getorder1domainsregistrarcode.md) | :heavy_check_mark: | N/A | -| `details` | [models.OneDetails](../models/onedetails.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| `code` | *"price-mismatch"* | :heavy_check_mark: | N/A | +| `details` | [models.OneDetails](../models/onedetails.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getorder1code.md b/docs/models/getorder1code.md deleted file mode 100644 index 6e1d7c23..00000000 --- a/docs/models/getorder1code.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetOrder1Code - -## Example Usage - -```typescript -import { GetOrder1Code } from "@vercel/sdk/models/getorderop.js"; - -let value: GetOrder1Code = "tld-outage"; -``` - -## Values - -```typescript -"tld-outage" -``` \ No newline at end of file diff --git a/docs/models/getorder1domainsregistrar1.md b/docs/models/getorder1domainsregistrar1.md index 7311f8ec..4856a73a 100644 --- a/docs/models/getorder1domainsregistrar1.md +++ b/docs/models/getorder1domainsregistrar1.md @@ -15,7 +15,7 @@ let value: GetOrder1DomainsRegistrar1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `code` | [models.GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyCode](../models/getorder1domainsregistrarresponse200applicationjsonresponsebodycode.md) | :heavy_check_mark: | N/A | -| `details` | [models.GetOrder1DomainsRegistrarResponse200Details](../models/getorder1domainsregistrarresponse200details.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `code` | *"unsupported-language-code"* | :heavy_check_mark: | N/A | +| `details` | [models.GetOrder1DomainsRegistrarResponse200Details](../models/getorder1domainsregistrarresponse200details.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getorder1domainsregistrar2.md b/docs/models/getorder1domainsregistrar2.md index 4ca1c1dc..1b029f60 100644 --- a/docs/models/getorder1domainsregistrar2.md +++ b/docs/models/getorder1domainsregistrar2.md @@ -12,6 +12,6 @@ let value: GetOrder1DomainsRegistrar2 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `code` | [models.GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomainsCode](../models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomainscode.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `code` | *"client-transfer-prohibited"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getorder1domainsregistrar3.md b/docs/models/getorder1domainsregistrar3.md index 90671387..85c31a00 100644 --- a/docs/models/getorder1domainsregistrar3.md +++ b/docs/models/getorder1domainsregistrar3.md @@ -12,6 +12,6 @@ let value: GetOrder1DomainsRegistrar3 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `code` | [models.GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains3Code](../models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains3code.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `code` | *"claims-notice-required"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getorder1domainsregistrarcode.md b/docs/models/getorder1domainsregistrarcode.md deleted file mode 100644 index 4b5a410e..00000000 --- a/docs/models/getorder1domainsregistrarcode.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetOrder1DomainsRegistrarCode - -## Example Usage - -```typescript -import { GetOrder1DomainsRegistrarCode } from "@vercel/sdk/models/getorderop.js"; - -let value: GetOrder1DomainsRegistrarCode = "price-mismatch"; -``` - -## Values - -```typescript -"price-mismatch" -``` \ No newline at end of file diff --git a/docs/models/getorder1domainsregistrarresponse1.md b/docs/models/getorder1domainsregistrarresponse1.md index 10b18548..9534da0d 100644 --- a/docs/models/getorder1domainsregistrarresponse1.md +++ b/docs/models/getorder1domainsregistrarresponse1.md @@ -15,7 +15,7 @@ let value: GetOrder1DomainsRegistrarResponse1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `code` | [models.GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Code](../models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains1code.md) | :heavy_check_mark: | N/A | -| `details` | [models.GetOrder1DomainsRegistrarDetails](../models/getorder1domainsregistrardetails.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `code` | *"unsupported-language-code"* | :heavy_check_mark: | N/A | +| `details` | [models.GetOrder1DomainsRegistrarDetails](../models/getorder1domainsregistrardetails.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getorder1domainsregistrarresponse2.md b/docs/models/getorder1domainsregistrarresponse2.md index 4a36cd2f..10d0184b 100644 --- a/docs/models/getorder1domainsregistrarresponse2.md +++ b/docs/models/getorder1domainsregistrarresponse2.md @@ -12,6 +12,6 @@ let value: GetOrder1DomainsRegistrarResponse2 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `code` | [models.GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1ErrorCode](../models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains1errorcode.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `code` | *"client-transfer-prohibited"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getorder1domainsregistrarresponse2001.md b/docs/models/getorder1domainsregistrarresponse2001.md index 5cba49da..8eff5d74 100644 --- a/docs/models/getorder1domainsregistrarresponse2001.md +++ b/docs/models/getorder1domainsregistrarresponse2001.md @@ -15,7 +15,7 @@ let value: GetOrder1DomainsRegistrarResponse2001 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `code` | [models.GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains2Code](../models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains2code.md) | :heavy_check_mark: | N/A | -| `details` | [models.GetOrder1DomainsRegistrarResponseDetails](../models/getorder1domainsregistrarresponsedetails.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `code` | *"unsupported-language-code"* | :heavy_check_mark: | N/A | +| `details` | [models.GetOrder1DomainsRegistrarResponseDetails](../models/getorder1domainsregistrarresponsedetails.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getorder1domainsregistrarresponse2002.md b/docs/models/getorder1domainsregistrarresponse2002.md index bb91b7d8..6f99bb75 100644 --- a/docs/models/getorder1domainsregistrarresponse2002.md +++ b/docs/models/getorder1domainsregistrarresponse2002.md @@ -12,6 +12,6 @@ let value: GetOrder1DomainsRegistrarResponse2002 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `code` | [models.GetOrder1DomainsRegistrarResponse200Code](../models/getorder1domainsregistrarresponse200code.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `code` | *"client-transfer-prohibited"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getorder1domainsregistrarresponse2003.md b/docs/models/getorder1domainsregistrarresponse2003.md index 56166847..b7a72a35 100644 --- a/docs/models/getorder1domainsregistrarresponse2003.md +++ b/docs/models/getorder1domainsregistrarresponse2003.md @@ -12,6 +12,6 @@ let value: GetOrder1DomainsRegistrarResponse2003 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `code` | [models.GetOrder1DomainsRegistrarResponse200ApplicationJSONCode](../models/getorder1domainsregistrarresponse200applicationjsoncode.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `code` | *"claims-notice-required"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getorder1domainsregistrarresponse200applicationjsoncode.md b/docs/models/getorder1domainsregistrarresponse200applicationjsoncode.md deleted file mode 100644 index 8b887605..00000000 --- a/docs/models/getorder1domainsregistrarresponse200applicationjsoncode.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetOrder1DomainsRegistrarResponse200ApplicationJSONCode - -## Example Usage - -```typescript -import { GetOrder1DomainsRegistrarResponse200ApplicationJSONCode } from "@vercel/sdk/models/getorderop.js"; - -let value: GetOrder1DomainsRegistrarResponse200ApplicationJSONCode = - "claims-notice-required"; -``` - -## Values - -```typescript -"claims-notice-required" -``` \ No newline at end of file diff --git a/docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodycode.md b/docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodycode.md deleted file mode 100644 index e14b184b..00000000 --- a/docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodycode.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyCode - -## Example Usage - -```typescript -import { GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyCode } from "@vercel/sdk/models/getorderop.js"; - -let value: GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyCode = - "unsupported-language-code"; -``` - -## Values - -```typescript -"unsupported-language-code" -``` \ No newline at end of file diff --git a/docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains1code.md b/docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains1code.md deleted file mode 100644 index 8a634194..00000000 --- a/docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains1code.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Code - -## Example Usage - -```typescript -import { GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Code } from "@vercel/sdk/models/getorderop.js"; - -let value: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Code = - "unsupported-language-code"; -``` - -## Values - -```typescript -"unsupported-language-code" -``` \ No newline at end of file diff --git a/docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains1error3code.md b/docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains1error3code.md deleted file mode 100644 index f74d2b08..00000000 --- a/docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains1error3code.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Error3Code - -## Example Usage - -```typescript -import { - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Error3Code, -} from "@vercel/sdk/models/getorderop.js"; - -let value: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Error3Code = - "claims-notice-required"; -``` - -## Values - -```typescript -"claims-notice-required" -``` \ No newline at end of file diff --git a/docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains1errorcode.md b/docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains1errorcode.md deleted file mode 100644 index a56930a4..00000000 --- a/docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains1errorcode.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1ErrorCode - -## Example Usage - -```typescript -import { GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1ErrorCode } from "@vercel/sdk/models/getorderop.js"; - -let value: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1ErrorCode = - "client-transfer-prohibited"; -``` - -## Values - -```typescript -"client-transfer-prohibited" -``` \ No newline at end of file diff --git a/docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains2code.md b/docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains2code.md deleted file mode 100644 index 824c37b2..00000000 --- a/docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains2code.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains2Code - -## Example Usage - -```typescript -import { GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains2Code } from "@vercel/sdk/models/getorderop.js"; - -let value: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains2Code = - "unsupported-language-code"; -``` - -## Values - -```typescript -"unsupported-language-code" -``` \ No newline at end of file diff --git a/docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains3code.md b/docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains3code.md deleted file mode 100644 index ad187d1c..00000000 --- a/docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains3code.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains3Code - -## Example Usage - -```typescript -import { GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains3Code } from "@vercel/sdk/models/getorderop.js"; - -let value: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains3Code = - "claims-notice-required"; -``` - -## Values - -```typescript -"claims-notice-required" -``` \ No newline at end of file diff --git a/docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomainscode.md b/docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomainscode.md deleted file mode 100644 index e3539673..00000000 --- a/docs/models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomainscode.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomainsCode - -## Example Usage - -```typescript -import { GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomainsCode } from "@vercel/sdk/models/getorderop.js"; - -let value: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomainsCode = - "client-transfer-prohibited"; -``` - -## Values - -```typescript -"client-transfer-prohibited" -``` \ No newline at end of file diff --git a/docs/models/getorder1domainsregistrarresponse200code.md b/docs/models/getorder1domainsregistrarresponse200code.md deleted file mode 100644 index fdb6aff8..00000000 --- a/docs/models/getorder1domainsregistrarresponse200code.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetOrder1DomainsRegistrarResponse200Code - -## Example Usage - -```typescript -import { GetOrder1DomainsRegistrarResponse200Code } from "@vercel/sdk/models/getorderop.js"; - -let value: GetOrder1DomainsRegistrarResponse200Code = - "client-transfer-prohibited"; -``` - -## Values - -```typescript -"client-transfer-prohibited" -``` \ No newline at end of file diff --git a/docs/models/getorder1domainsregistrarresponse3.md b/docs/models/getorder1domainsregistrarresponse3.md index f8d93e60..78cf916d 100644 --- a/docs/models/getorder1domainsregistrarresponse3.md +++ b/docs/models/getorder1domainsregistrarresponse3.md @@ -12,6 +12,6 @@ let value: GetOrder1DomainsRegistrarResponse3 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `code` | [models.GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Error3Code](../models/getorder1domainsregistrarresponse200applicationjsonresponsebodydomains1error3code.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `code` | *"claims-notice-required"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getorder1domainsregistrarresponsecode.md b/docs/models/getorder1domainsregistrarresponsecode.md deleted file mode 100644 index 3b56dba3..00000000 --- a/docs/models/getorder1domainsregistrarresponsecode.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetOrder1DomainsRegistrarResponseCode - -## Example Usage - -```typescript -import { GetOrder1DomainsRegistrarResponseCode } from "@vercel/sdk/models/getorderop.js"; - -let value: GetOrder1DomainsRegistrarResponseCode = "unexpected-error"; -``` - -## Values - -```typescript -"unexpected-error" -``` \ No newline at end of file diff --git a/docs/models/getorderdomainsdomainsregistrarpurchasetype.md b/docs/models/getorderdomainsdomainsregistrarpurchasetype.md deleted file mode 100644 index 64432441..00000000 --- a/docs/models/getorderdomainsdomainsregistrarpurchasetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetOrderDomainsDomainsRegistrarPurchaseType - -## Example Usage - -```typescript -import { GetOrderDomainsDomainsRegistrarPurchaseType } from "@vercel/sdk/models/getorderop.js"; - -let value: GetOrderDomainsDomainsRegistrarPurchaseType = "purchase"; -``` - -## Values - -```typescript -"purchase" -``` \ No newline at end of file diff --git a/docs/models/getorderdomainspurchasetype.md b/docs/models/getorderdomainspurchasetype.md deleted file mode 100644 index b66279a4..00000000 --- a/docs/models/getorderdomainspurchasetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetOrderDomainsPurchaseType - -## Example Usage - -```typescript -import { GetOrderDomainsPurchaseType } from "@vercel/sdk/models/getorderop.js"; - -let value: GetOrderDomainsPurchaseType = "transfer"; -``` - -## Values - -```typescript -"transfer" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthint1.md b/docs/models/getprojectenvcontenthint1.md index e93dd90a..45387b91 100644 --- a/docs/models/getprojectenvcontenthint1.md +++ b/docs/models/getprojectenvcontenthint1.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHint1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintType](../models/getprojectenvcontenthinttype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"redis-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthint10.md b/docs/models/getprojectenvcontenthint10.md index 711d6a3b..ef3e386d 100644 --- a/docs/models/getprojectenvcontenthint10.md +++ b/docs/models/getprojectenvcontenthint10.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHint10 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody110type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-host"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthint11.md b/docs/models/getprojectenvcontenthint11.md index 23fcdbd0..deb2b796 100644 --- a/docs/models/getprojectenvcontenthint11.md +++ b/docs/models/getprojectenvcontenthint11.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHint11 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody111type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-password"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthint12.md b/docs/models/getprojectenvcontenthint12.md index 495fc5f6..c0085d31 100644 --- a/docs/models/getprojectenvcontenthint12.md +++ b/docs/models/getprojectenvcontenthint12.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHint12 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody112type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-database"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthint13.md b/docs/models/getprojectenvcontenthint13.md index a28a1624..452625c5 100644 --- a/docs/models/getprojectenvcontenthint13.md +++ b/docs/models/getprojectenvcontenthint13.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHint13 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody113type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-url-no-ssl"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthint14.md b/docs/models/getprojectenvcontenthint14.md index 26e9947b..175824ec 100644 --- a/docs/models/getprojectenvcontenthint14.md +++ b/docs/models/getprojectenvcontenthint14.md @@ -16,10 +16,10 @@ let value: GetProjectEnvContentHint14 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody114type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationProductId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"integration-store-secret"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationProductId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthint15.md b/docs/models/getprojectenvcontenthint15.md index 03ff6049..d2650b4b 100644 --- a/docs/models/getprojectenvcontenthint15.md +++ b/docs/models/getprojectenvcontenthint15.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHint15 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody115type.md) | :heavy_check_mark: | N/A | -| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------- | --------------------------- | --------------------------- | --------------------------- | +| `type` | *"flags-connection-string"* | :heavy_check_mark: | N/A | +| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthint2.md b/docs/models/getprojectenvcontenthint2.md index eb0253e4..39cf9d47 100644 --- a/docs/models/getprojectenvcontenthint2.md +++ b/docs/models/getprojectenvcontenthint2.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHint2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `type` | [models.GetProjectEnvContentHintProjectsType](../models/getprojectenvcontenthintprojectstype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `type` | *"redis-rest-api-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthint3.md b/docs/models/getprojectenvcontenthint3.md index bbba3ca2..17fcf77f 100644 --- a/docs/models/getprojectenvcontenthint3.md +++ b/docs/models/getprojectenvcontenthint3.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHint3 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponseType](../models/getprojectenvcontenthintprojectsresponsetype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `type` | *"redis-rest-api-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthint4.md b/docs/models/getprojectenvcontenthint4.md index 25aeb8b0..6248c6e3 100644 --- a/docs/models/getprojectenvcontenthint4.md +++ b/docs/models/getprojectenvcontenthint4.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHint4 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200Type](../models/getprojectenvcontenthintprojectsresponse200type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | +| `type` | *"redis-rest-api-read-only-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthint5.md b/docs/models/getprojectenvcontenthint5.md index 0fa35589..0e6094cc 100644 --- a/docs/models/getprojectenvcontenthint5.md +++ b/docs/models/getprojectenvcontenthint5.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHint5 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONType](../models/getprojectenvcontenthintprojectsresponse200applicationjsontype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `type` | *"blob-read-write-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthint6.md b/docs/models/getprojectenvcontenthint6.md index bbc0d80c..75277336 100644 --- a/docs/models/getprojectenvcontenthint6.md +++ b/docs/models/getprojectenvcontenthint6.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHint6 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebodytype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthint7.md b/docs/models/getprojectenvcontenthint7.md index f5eb3864..6fc46356 100644 --- a/docs/models/getprojectenvcontenthint7.md +++ b/docs/models/getprojectenvcontenthint7.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHint7 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody1type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"postgres-url-non-pooling"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthint8.md b/docs/models/getprojectenvcontenthint8.md index 2cf7bc87..5a94f269 100644 --- a/docs/models/getprojectenvcontenthint8.md +++ b/docs/models/getprojectenvcontenthint8.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHint8 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody18type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-prisma-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthint9.md b/docs/models/getprojectenvcontenthint9.md index 17e5fffa..aebf9f26 100644 --- a/docs/models/getprojectenvcontenthint9.md +++ b/docs/models/getprojectenvcontenthint9.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHint9 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody19type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-user"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojects1.md b/docs/models/getprojectenvcontenthintprojects1.md index c229db80..a3708a2a 100644 --- a/docs/models/getprojectenvcontenthintprojects1.md +++ b/docs/models/getprojectenvcontenthintprojects1.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjects1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody2type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"redis-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojects10.md b/docs/models/getprojectenvcontenthintprojects10.md index ea81edff..706a4e60 100644 --- a/docs/models/getprojectenvcontenthintprojects10.md +++ b/docs/models/getprojectenvcontenthintprojects10.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjects10 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody210type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-host"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojects11.md b/docs/models/getprojectenvcontenthintprojects11.md index 445d599b..293a18b5 100644 --- a/docs/models/getprojectenvcontenthintprojects11.md +++ b/docs/models/getprojectenvcontenthintprojects11.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjects11 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody211type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-password"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojects12.md b/docs/models/getprojectenvcontenthintprojects12.md index a1bec2dc..bfdddb81 100644 --- a/docs/models/getprojectenvcontenthintprojects12.md +++ b/docs/models/getprojectenvcontenthintprojects12.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjects12 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody212type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-database"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojects13.md b/docs/models/getprojectenvcontenthintprojects13.md index 1236e2d2..a6b2f59b 100644 --- a/docs/models/getprojectenvcontenthintprojects13.md +++ b/docs/models/getprojectenvcontenthintprojects13.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjects13 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody213type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-url-no-ssl"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojects14.md b/docs/models/getprojectenvcontenthintprojects14.md index aa83f812..36d3c4c4 100644 --- a/docs/models/getprojectenvcontenthintprojects14.md +++ b/docs/models/getprojectenvcontenthintprojects14.md @@ -16,10 +16,10 @@ let value: GetProjectEnvContentHintProjects14 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody214type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationProductId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"integration-store-secret"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationProductId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojects15.md b/docs/models/getprojectenvcontenthintprojects15.md index 0bfbe097..6f4eb735 100644 --- a/docs/models/getprojectenvcontenthintprojects15.md +++ b/docs/models/getprojectenvcontenthintprojects15.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjects15 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody215type.md) | :heavy_check_mark: | N/A | -| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------- | --------------------------- | --------------------------- | --------------------------- | +| `type` | *"flags-connection-string"* | :heavy_check_mark: | N/A | +| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojects2.md b/docs/models/getprojectenvcontenthintprojects2.md index ebb9bb21..11f8999a 100644 --- a/docs/models/getprojectenvcontenthintprojects2.md +++ b/docs/models/getprojectenvcontenthintprojects2.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjects2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody22type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `type` | *"redis-rest-api-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojects3.md b/docs/models/getprojectenvcontenthintprojects3.md index e10197a6..0671ad63 100644 --- a/docs/models/getprojectenvcontenthintprojects3.md +++ b/docs/models/getprojectenvcontenthintprojects3.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjects3 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody23type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `type` | *"redis-rest-api-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojects4.md b/docs/models/getprojectenvcontenthintprojects4.md index 292ddd80..7ff937a5 100644 --- a/docs/models/getprojectenvcontenthintprojects4.md +++ b/docs/models/getprojectenvcontenthintprojects4.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjects4 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody24type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | +| `type` | *"redis-rest-api-read-only-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojects5.md b/docs/models/getprojectenvcontenthintprojects5.md index a6d75c55..8f561483 100644 --- a/docs/models/getprojectenvcontenthintprojects5.md +++ b/docs/models/getprojectenvcontenthintprojects5.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjects5 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody25type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `type` | *"blob-read-write-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojects6.md b/docs/models/getprojectenvcontenthintprojects6.md index d986540d..91f053c6 100644 --- a/docs/models/getprojectenvcontenthintprojects6.md +++ b/docs/models/getprojectenvcontenthintprojects6.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjects6 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody26type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojects7.md b/docs/models/getprojectenvcontenthintprojects7.md index b619a22f..811680a8 100644 --- a/docs/models/getprojectenvcontenthintprojects7.md +++ b/docs/models/getprojectenvcontenthintprojects7.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjects7 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody27type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"postgres-url-non-pooling"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojects8.md b/docs/models/getprojectenvcontenthintprojects8.md index 7147efda..0e3af63a 100644 --- a/docs/models/getprojectenvcontenthintprojects8.md +++ b/docs/models/getprojectenvcontenthintprojects8.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjects8 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody28type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-prisma-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojects9.md b/docs/models/getprojectenvcontenthintprojects9.md index 39ca33ee..9da002b0 100644 --- a/docs/models/getprojectenvcontenthintprojects9.md +++ b/docs/models/getprojectenvcontenthintprojects9.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjects9 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody29type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-user"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse1.md b/docs/models/getprojectenvcontenthintprojectsresponse1.md index 4be9f8a5..5e33862c 100644 --- a/docs/models/getprojectenvcontenthintprojectsresponse1.md +++ b/docs/models/getprojectenvcontenthintprojectsresponse1.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjectsResponse1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody3type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"redis-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse10.md b/docs/models/getprojectenvcontenthintprojectsresponse10.md index b07a1c7d..f09da661 100644 --- a/docs/models/getprojectenvcontenthintprojectsresponse10.md +++ b/docs/models/getprojectenvcontenthintprojectsresponse10.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjectsResponse10 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody310type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-host"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse11.md b/docs/models/getprojectenvcontenthintprojectsresponse11.md index f77d37c7..078248cd 100644 --- a/docs/models/getprojectenvcontenthintprojectsresponse11.md +++ b/docs/models/getprojectenvcontenthintprojectsresponse11.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjectsResponse11 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody311type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-password"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse12.md b/docs/models/getprojectenvcontenthintprojectsresponse12.md index f77444f7..7b23bcde 100644 --- a/docs/models/getprojectenvcontenthintprojectsresponse12.md +++ b/docs/models/getprojectenvcontenthintprojectsresponse12.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjectsResponse12 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody312type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-database"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse13.md b/docs/models/getprojectenvcontenthintprojectsresponse13.md index 0f397b13..3b1f9ff0 100644 --- a/docs/models/getprojectenvcontenthintprojectsresponse13.md +++ b/docs/models/getprojectenvcontenthintprojectsresponse13.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjectsResponse13 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody313type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-url-no-ssl"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse14.md b/docs/models/getprojectenvcontenthintprojectsresponse14.md index 579c4976..f582baf2 100644 --- a/docs/models/getprojectenvcontenthintprojectsresponse14.md +++ b/docs/models/getprojectenvcontenthintprojectsresponse14.md @@ -16,10 +16,10 @@ let value: GetProjectEnvContentHintProjectsResponse14 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody314type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationProductId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"integration-store-secret"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationProductId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse15.md b/docs/models/getprojectenvcontenthintprojectsresponse15.md index a89c700c..bd4f2bb0 100644 --- a/docs/models/getprojectenvcontenthintprojectsresponse15.md +++ b/docs/models/getprojectenvcontenthintprojectsresponse15.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjectsResponse15 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody315type.md) | :heavy_check_mark: | N/A | -| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------- | --------------------------- | --------------------------- | --------------------------- | +| `type` | *"flags-connection-string"* | :heavy_check_mark: | N/A | +| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse2.md b/docs/models/getprojectenvcontenthintprojectsresponse2.md index a219803d..ddd6b295 100644 --- a/docs/models/getprojectenvcontenthintprojectsresponse2.md +++ b/docs/models/getprojectenvcontenthintprojectsresponse2.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjectsResponse2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody32type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `type` | *"redis-rest-api-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody110type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody110type.md deleted file mode 100644 index 6a95cade..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody110type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type = - "postgres-host"; -``` - -## Values - -```typescript -"postgres-host" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody111type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody111type.md deleted file mode 100644 index ee0fd08a..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody111type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type = - "postgres-password"; -``` - -## Values - -```typescript -"postgres-password" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody112type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody112type.md deleted file mode 100644 index f5e85f18..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody112type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type = - "postgres-database"; -``` - -## Values - -```typescript -"postgres-database" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody113type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody113type.md deleted file mode 100644 index bb1e50ba..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody113type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type = - "postgres-url-no-ssl"; -``` - -## Values - -```typescript -"postgres-url-no-ssl" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody114type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody114type.md deleted file mode 100644 index f2876273..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody114type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type = - "integration-store-secret"; -``` - -## Values - -```typescript -"integration-store-secret" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody115type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody115type.md deleted file mode 100644 index c7cdce4a..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody115type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type = - "flags-connection-string"; -``` - -## Values - -```typescript -"flags-connection-string" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody18type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody18type.md deleted file mode 100644 index f090f3c4..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody18type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type = - "postgres-prisma-url"; -``` - -## Values - -```typescript -"postgres-prisma-url" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody19type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody19type.md deleted file mode 100644 index 8276b809..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody19type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type = - "postgres-user"; -``` - -## Values - -```typescript -"postgres-user" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody1type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody1type.md deleted file mode 100644 index c6792f01..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody1type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type = - "postgres-url-non-pooling"; -``` - -## Values - -```typescript -"postgres-url-non-pooling" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody210type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody210type.md deleted file mode 100644 index d4ae5e85..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody210type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type = - "postgres-host"; -``` - -## Values - -```typescript -"postgres-host" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody211type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody211type.md deleted file mode 100644 index 09a6b5e8..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody211type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type = - "postgres-password"; -``` - -## Values - -```typescript -"postgres-password" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody212type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody212type.md deleted file mode 100644 index a20b2046..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody212type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type = - "postgres-database"; -``` - -## Values - -```typescript -"postgres-database" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody213type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody213type.md deleted file mode 100644 index bc8e93fd..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody213type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type = - "postgres-url-no-ssl"; -``` - -## Values - -```typescript -"postgres-url-no-ssl" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody214type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody214type.md deleted file mode 100644 index fc81a247..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody214type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type = - "integration-store-secret"; -``` - -## Values - -```typescript -"integration-store-secret" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody215type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody215type.md deleted file mode 100644 index a921bd24..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody215type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type = - "flags-connection-string"; -``` - -## Values - -```typescript -"flags-connection-string" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody22type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody22type.md deleted file mode 100644 index b269f0a8..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody22type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type = - "redis-rest-api-url"; -``` - -## Values - -```typescript -"redis-rest-api-url" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody23type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody23type.md deleted file mode 100644 index 871a8610..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody23type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type = - "redis-rest-api-token"; -``` - -## Values - -```typescript -"redis-rest-api-token" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody24type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody24type.md deleted file mode 100644 index 3a050368..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody24type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type = - "redis-rest-api-read-only-token"; -``` - -## Values - -```typescript -"redis-rest-api-read-only-token" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody25type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody25type.md deleted file mode 100644 index 9985a6e5..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody25type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type = - "blob-read-write-token"; -``` - -## Values - -```typescript -"blob-read-write-token" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody26type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody26type.md deleted file mode 100644 index dba8086b..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody26type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type = - "postgres-url"; -``` - -## Values - -```typescript -"postgres-url" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody27type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody27type.md deleted file mode 100644 index aa302328..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody27type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type = - "postgres-url-non-pooling"; -``` - -## Values - -```typescript -"postgres-url-non-pooling" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody28type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody28type.md deleted file mode 100644 index 80354ad9..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody28type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type = - "postgres-prisma-url"; -``` - -## Values - -```typescript -"postgres-prisma-url" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody29type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody29type.md deleted file mode 100644 index e494dd04..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody29type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type = - "postgres-user"; -``` - -## Values - -```typescript -"postgres-user" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody2type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody2type.md deleted file mode 100644 index 8a96348e..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody2type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type = - "redis-url"; -``` - -## Values - -```typescript -"redis-url" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody310type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody310type.md deleted file mode 100644 index 30e992fd..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody310type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type = - "postgres-host"; -``` - -## Values - -```typescript -"postgres-host" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody311type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody311type.md deleted file mode 100644 index 2700c883..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody311type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type = - "postgres-password"; -``` - -## Values - -```typescript -"postgres-password" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody312type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody312type.md deleted file mode 100644 index fa714a02..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody312type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type = - "postgres-database"; -``` - -## Values - -```typescript -"postgres-database" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody313type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody313type.md deleted file mode 100644 index 179e52d3..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody313type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type = - "postgres-url-no-ssl"; -``` - -## Values - -```typescript -"postgres-url-no-ssl" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody314type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody314type.md deleted file mode 100644 index ec7f733b..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody314type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type = - "integration-store-secret"; -``` - -## Values - -```typescript -"integration-store-secret" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody315type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody315type.md deleted file mode 100644 index 103cfd4c..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody315type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type = - "flags-connection-string"; -``` - -## Values - -```typescript -"flags-connection-string" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody32type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody32type.md deleted file mode 100644 index 622cda57..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody32type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type = - "redis-rest-api-url"; -``` - -## Values - -```typescript -"redis-rest-api-url" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody33type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody33type.md deleted file mode 100644 index f1f0aa4d..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody33type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type = - "redis-rest-api-token"; -``` - -## Values - -```typescript -"redis-rest-api-token" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody34type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody34type.md deleted file mode 100644 index 5769f06a..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody34type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type = - "redis-rest-api-read-only-token"; -``` - -## Values - -```typescript -"redis-rest-api-read-only-token" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody35type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody35type.md deleted file mode 100644 index 5004eb29..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody35type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type = - "blob-read-write-token"; -``` - -## Values - -```typescript -"blob-read-write-token" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody36type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody36type.md deleted file mode 100644 index 7c8db098..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody36type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type = - "postgres-url"; -``` - -## Values - -```typescript -"postgres-url" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody37type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody37type.md deleted file mode 100644 index c7b63dd7..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody37type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type = - "postgres-url-non-pooling"; -``` - -## Values - -```typescript -"postgres-url-non-pooling" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody38type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody38type.md deleted file mode 100644 index c4b43344..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody38type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type = - "postgres-prisma-url"; -``` - -## Values - -```typescript -"postgres-prisma-url" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody39type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody39type.md deleted file mode 100644 index aa0a842b..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody39type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type = - "postgres-user"; -``` - -## Values - -```typescript -"postgres-user" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody3type.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody3type.md deleted file mode 100644 index 63bda8e6..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody3type.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type = - "redis-url"; -``` - -## Values - -```typescript -"redis-url" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebodytype.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebodytype.md deleted file mode 100644 index 4576be02..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebodytype.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType = - "postgres-url"; -``` - -## Values - -```typescript -"postgres-url" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsontype.md b/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsontype.md deleted file mode 100644 index 1a38ed30..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200applicationjsontype.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200ApplicationJSONType - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200ApplicationJSONType } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: GetProjectEnvContentHintProjectsResponse200ApplicationJSONType = - "blob-read-write-token"; -``` - -## Values - -```typescript -"blob-read-write-token" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse200type.md b/docs/models/getprojectenvcontenthintprojectsresponse200type.md deleted file mode 100644 index 44f16d2e..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponse200type.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetProjectEnvContentHintProjectsResponse200Type - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponse200Type } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: GetProjectEnvContentHintProjectsResponse200Type = - "redis-rest-api-read-only-token"; -``` - -## Values - -```typescript -"redis-rest-api-read-only-token" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse3.md b/docs/models/getprojectenvcontenthintprojectsresponse3.md index 38a70216..52455b81 100644 --- a/docs/models/getprojectenvcontenthintprojectsresponse3.md +++ b/docs/models/getprojectenvcontenthintprojectsresponse3.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjectsResponse3 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody33type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `type` | *"redis-rest-api-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse4.md b/docs/models/getprojectenvcontenthintprojectsresponse4.md index b9ec7b2f..a1c60a1d 100644 --- a/docs/models/getprojectenvcontenthintprojectsresponse4.md +++ b/docs/models/getprojectenvcontenthintprojectsresponse4.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjectsResponse4 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody34type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | +| `type` | *"redis-rest-api-read-only-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse5.md b/docs/models/getprojectenvcontenthintprojectsresponse5.md index 3f033831..8127443c 100644 --- a/docs/models/getprojectenvcontenthintprojectsresponse5.md +++ b/docs/models/getprojectenvcontenthintprojectsresponse5.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjectsResponse5 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody35type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `type` | *"blob-read-write-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse6.md b/docs/models/getprojectenvcontenthintprojectsresponse6.md index 1ddef11f..2a6f1d4a 100644 --- a/docs/models/getprojectenvcontenthintprojectsresponse6.md +++ b/docs/models/getprojectenvcontenthintprojectsresponse6.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjectsResponse6 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody36type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse7.md b/docs/models/getprojectenvcontenthintprojectsresponse7.md index 7188cc82..4460a5a5 100644 --- a/docs/models/getprojectenvcontenthintprojectsresponse7.md +++ b/docs/models/getprojectenvcontenthintprojectsresponse7.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjectsResponse7 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody37type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"postgres-url-non-pooling"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse8.md b/docs/models/getprojectenvcontenthintprojectsresponse8.md index 71bf5feb..386ff27d 100644 --- a/docs/models/getprojectenvcontenthintprojectsresponse8.md +++ b/docs/models/getprojectenvcontenthintprojectsresponse8.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjectsResponse8 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody38type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-prisma-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponse9.md b/docs/models/getprojectenvcontenthintprojectsresponse9.md index 7927662e..9fcac363 100644 --- a/docs/models/getprojectenvcontenthintprojectsresponse9.md +++ b/docs/models/getprojectenvcontenthintprojectsresponse9.md @@ -13,7 +13,7 @@ let value: GetProjectEnvContentHintProjectsResponse9 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type](../models/getprojectenvcontenthintprojectsresponse200applicationjsonresponsebody39type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-user"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectsresponsetype.md b/docs/models/getprojectenvcontenthintprojectsresponsetype.md deleted file mode 100644 index 467e82b7..00000000 --- a/docs/models/getprojectenvcontenthintprojectsresponsetype.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetProjectEnvContentHintProjectsResponseType - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsResponseType } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: GetProjectEnvContentHintProjectsResponseType = - "redis-rest-api-token"; -``` - -## Values - -```typescript -"redis-rest-api-token" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthintprojectstype.md b/docs/models/getprojectenvcontenthintprojectstype.md deleted file mode 100644 index d83d9525..00000000 --- a/docs/models/getprojectenvcontenthintprojectstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetProjectEnvContentHintProjectsType - -## Example Usage - -```typescript -import { GetProjectEnvContentHintProjectsType } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: GetProjectEnvContentHintProjectsType = "redis-rest-api-url"; -``` - -## Values - -```typescript -"redis-rest-api-url" -``` \ No newline at end of file diff --git a/docs/models/getprojectenvcontenthinttype.md b/docs/models/getprojectenvcontenthinttype.md deleted file mode 100644 index 8289295d..00000000 --- a/docs/models/getprojectenvcontenthinttype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetProjectEnvContentHintType - -## Example Usage - -```typescript -import { GetProjectEnvContentHintType } from "@vercel/sdk/models/getprojectenvop.js"; - -let value: GetProjectEnvContentHintType = "redis-url"; -``` - -## Values - -```typescript -"redis-url" -``` \ No newline at end of file diff --git a/docs/models/getprojectsblockhistory1.md b/docs/models/getprojectsblockhistory1.md index 4924aa18..e40f5ee5 100644 --- a/docs/models/getprojectsblockhistory1.md +++ b/docs/models/getprojectsblockhistory1.md @@ -15,13 +15,13 @@ let value: GetProjectsBlockHistory1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `action` | [models.GetProjectsBlockHistoryAction](../models/getprojectsblockhistoryaction.md) | :heavy_check_mark: | N/A | -| `reason` | *string* | :heavy_check_mark: | N/A | -| `statusCode` | *number* | :heavy_check_mark: | N/A | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `caseId` | *string* | :heavy_minus_sign: | N/A | -| `actor` | *string* | :heavy_minus_sign: | N/A | -| `comment` | *string* | :heavy_minus_sign: | N/A | -| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `action` | *"blocked"* | :heavy_check_mark: | N/A | +| `reason` | *string* | :heavy_check_mark: | N/A | +| `statusCode` | *number* | :heavy_check_mark: | N/A | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `caseId` | *string* | :heavy_minus_sign: | N/A | +| `actor` | *string* | :heavy_minus_sign: | N/A | +| `comment` | *string* | :heavy_minus_sign: | N/A | +| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectsblockhistory2.md b/docs/models/getprojectsblockhistory2.md index a0365148..1ba55988 100644 --- a/docs/models/getprojectsblockhistory2.md +++ b/docs/models/getprojectsblockhistory2.md @@ -13,11 +13,11 @@ let value: GetProjectsBlockHistory2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `action` | [models.GetProjectsBlockHistoryProjectsAction](../models/getprojectsblockhistoryprojectsaction.md) | :heavy_check_mark: | N/A | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `caseId` | *string* | :heavy_minus_sign: | N/A | -| `actor` | *string* | :heavy_minus_sign: | N/A | -| `comment` | *string* | :heavy_minus_sign: | N/A | -| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `action` | *"unblocked"* | :heavy_check_mark: | N/A | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `caseId` | *string* | :heavy_minus_sign: | N/A | +| `actor` | *string* | :heavy_minus_sign: | N/A | +| `comment` | *string* | :heavy_minus_sign: | N/A | +| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectsblockhistory3.md b/docs/models/getprojectsblockhistory3.md index fb3d5c01..8e1ba0f7 100644 --- a/docs/models/getprojectsblockhistory3.md +++ b/docs/models/getprojectsblockhistory3.md @@ -18,13 +18,13 @@ let value: GetProjectsBlockHistory3 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `action` | [models.GetProjectsBlockHistoryProjectsResponseAction](../models/getprojectsblockhistoryprojectsresponseaction.md) | :heavy_check_mark: | N/A | -| `route` | *models.GetProjectsBlockHistoryRoute* | :heavy_check_mark: | N/A | -| `reason` | *string* | :heavy_check_mark: | N/A | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `caseId` | *string* | :heavy_minus_sign: | N/A | -| `actor` | *string* | :heavy_minus_sign: | N/A | -| `comment` | *string* | :heavy_minus_sign: | N/A | -| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | +| `action` | *"route-blocked"* | :heavy_check_mark: | N/A | +| `route` | *models.GetProjectsBlockHistoryRoute* | :heavy_check_mark: | N/A | +| `reason` | *string* | :heavy_check_mark: | N/A | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `caseId` | *string* | :heavy_minus_sign: | N/A | +| `actor` | *string* | :heavy_minus_sign: | N/A | +| `comment` | *string* | :heavy_minus_sign: | N/A | +| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectsblockhistory4.md b/docs/models/getprojectsblockhistory4.md index 80e6b419..7f853213 100644 --- a/docs/models/getprojectsblockhistory4.md +++ b/docs/models/getprojectsblockhistory4.md @@ -17,13 +17,13 @@ let value: GetProjectsBlockHistory4 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `action` | [models.GetProjectsBlockHistoryProjectsResponse200Action](../models/getprojectsblockhistoryprojectsresponse200action.md) | :heavy_check_mark: | N/A | -| `route` | *models.GetProjectsBlockHistoryProjectsRoute* | :heavy_check_mark: | N/A | -| `statusCode` | *number* | :heavy_minus_sign: | N/A | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `caseId` | *string* | :heavy_minus_sign: | N/A | -| `actor` | *string* | :heavy_minus_sign: | N/A | -| `comment` | *string* | :heavy_minus_sign: | N/A | -| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `action` | *"route-unblocked"* | :heavy_check_mark: | N/A | +| `route` | *models.GetProjectsBlockHistoryProjectsRoute* | :heavy_check_mark: | N/A | +| `statusCode` | *number* | :heavy_minus_sign: | N/A | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `caseId` | *string* | :heavy_minus_sign: | N/A | +| `actor` | *string* | :heavy_minus_sign: | N/A | +| `comment` | *string* | :heavy_minus_sign: | N/A | +| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectsblockhistoryaction.md b/docs/models/getprojectsblockhistoryaction.md deleted file mode 100644 index e6415311..00000000 --- a/docs/models/getprojectsblockhistoryaction.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetProjectsBlockHistoryAction - -## Example Usage - -```typescript -import { GetProjectsBlockHistoryAction } from "@vercel/sdk/models/getprojectsop.js"; - -let value: GetProjectsBlockHistoryAction = "blocked"; -``` - -## Values - -```typescript -"blocked" -``` \ No newline at end of file diff --git a/docs/models/getprojectsblockhistoryprojectsaction.md b/docs/models/getprojectsblockhistoryprojectsaction.md deleted file mode 100644 index 047c99a1..00000000 --- a/docs/models/getprojectsblockhistoryprojectsaction.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetProjectsBlockHistoryProjectsAction - -## Example Usage - -```typescript -import { GetProjectsBlockHistoryProjectsAction } from "@vercel/sdk/models/getprojectsop.js"; - -let value: GetProjectsBlockHistoryProjectsAction = "unblocked"; -``` - -## Values - -```typescript -"unblocked" -``` \ No newline at end of file diff --git a/docs/models/getprojectsblockhistoryprojectsresponse200action.md b/docs/models/getprojectsblockhistoryprojectsresponse200action.md deleted file mode 100644 index 8ecf5919..00000000 --- a/docs/models/getprojectsblockhistoryprojectsresponse200action.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetProjectsBlockHistoryProjectsResponse200Action - -## Example Usage - -```typescript -import { GetProjectsBlockHistoryProjectsResponse200Action } from "@vercel/sdk/models/getprojectsop.js"; - -let value: GetProjectsBlockHistoryProjectsResponse200Action = "route-unblocked"; -``` - -## Values - -```typescript -"route-unblocked" -``` \ No newline at end of file diff --git a/docs/models/getprojectsblockhistoryprojectsresponseaction.md b/docs/models/getprojectsblockhistoryprojectsresponseaction.md deleted file mode 100644 index 64dd7379..00000000 --- a/docs/models/getprojectsblockhistoryprojectsresponseaction.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetProjectsBlockHistoryProjectsResponseAction - -## Example Usage - -```typescript -import { GetProjectsBlockHistoryProjectsResponseAction } from "@vercel/sdk/models/getprojectsop.js"; - -let value: GetProjectsBlockHistoryProjectsResponseAction = "route-blocked"; -``` - -## Values - -```typescript -"route-blocked" -``` \ No newline at end of file diff --git a/docs/models/getprojectscontenthint1.md b/docs/models/getprojectscontenthint1.md index acd72254..76d5e8ec 100644 --- a/docs/models/getprojectscontenthint1.md +++ b/docs/models/getprojectscontenthint1.md @@ -13,7 +13,7 @@ let value: GetProjectsContentHint1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `type` | [models.GetProjectsContentHintType](../models/getprojectscontenthinttype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"redis-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectscontenthint10.md b/docs/models/getprojectscontenthint10.md index df73ca81..e345b3ae 100644 --- a/docs/models/getprojectscontenthint10.md +++ b/docs/models/getprojectscontenthint10.md @@ -13,7 +13,7 @@ let value: GetProjectsContentHint10 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv10Type](../models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv10type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-host"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectscontenthint11.md b/docs/models/getprojectscontenthint11.md index 57695467..fde5a38b 100644 --- a/docs/models/getprojectscontenthint11.md +++ b/docs/models/getprojectscontenthint11.md @@ -13,7 +13,7 @@ let value: GetProjectsContentHint11 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv11Type](../models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv11type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-password"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectscontenthint12.md b/docs/models/getprojectscontenthint12.md index 8b1d63c6..2b24d358 100644 --- a/docs/models/getprojectscontenthint12.md +++ b/docs/models/getprojectscontenthint12.md @@ -13,7 +13,7 @@ let value: GetProjectsContentHint12 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv12Type](../models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv12type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-database"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectscontenthint13.md b/docs/models/getprojectscontenthint13.md index a856a4e7..763d7311 100644 --- a/docs/models/getprojectscontenthint13.md +++ b/docs/models/getprojectscontenthint13.md @@ -13,7 +13,7 @@ let value: GetProjectsContentHint13 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv13Type](../models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv13type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-url-no-ssl"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectscontenthint14.md b/docs/models/getprojectscontenthint14.md index de58faac..80b0a070 100644 --- a/docs/models/getprojectscontenthint14.md +++ b/docs/models/getprojectscontenthint14.md @@ -16,10 +16,10 @@ let value: GetProjectsContentHint14 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv14Type](../models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv14type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationProductId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"integration-store-secret"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationProductId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectscontenthint15.md b/docs/models/getprojectscontenthint15.md index b923ac75..90a65646 100644 --- a/docs/models/getprojectscontenthint15.md +++ b/docs/models/getprojectscontenthint15.md @@ -13,7 +13,7 @@ let value: GetProjectsContentHint15 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv15Type](../models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv15type.md) | :heavy_check_mark: | N/A | -| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------- | --------------------------- | --------------------------- | --------------------------- | +| `type` | *"flags-connection-string"* | :heavy_check_mark: | N/A | +| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectscontenthint2.md b/docs/models/getprojectscontenthint2.md index e95c232b..5e942186 100644 --- a/docs/models/getprojectscontenthint2.md +++ b/docs/models/getprojectscontenthint2.md @@ -13,7 +13,7 @@ let value: GetProjectsContentHint2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectsContentHintProjectsType](../models/getprojectscontenthintprojectstype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `type` | *"redis-rest-api-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectscontenthint3.md b/docs/models/getprojectscontenthint3.md index 1b0f9dbb..ad379cb7 100644 --- a/docs/models/getprojectscontenthint3.md +++ b/docs/models/getprojectscontenthint3.md @@ -13,7 +13,7 @@ let value: GetProjectsContentHint3 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `type` | [models.GetProjectsContentHintProjectsResponseType](../models/getprojectscontenthintprojectsresponsetype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `type` | *"redis-rest-api-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectscontenthint4.md b/docs/models/getprojectscontenthint4.md index 62611970..3795c1d2 100644 --- a/docs/models/getprojectscontenthint4.md +++ b/docs/models/getprojectscontenthint4.md @@ -13,7 +13,7 @@ let value: GetProjectsContentHint4 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.GetProjectsContentHintProjectsResponse200Type](../models/getprojectscontenthintprojectsresponse200type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | +| `type` | *"redis-rest-api-read-only-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectscontenthint5.md b/docs/models/getprojectscontenthint5.md index 23ef5c4a..09beba9f 100644 --- a/docs/models/getprojectscontenthint5.md +++ b/docs/models/getprojectscontenthint5.md @@ -13,7 +13,7 @@ let value: GetProjectsContentHint5 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.GetProjectsContentHintProjectsResponse200ApplicationJSONType](../models/getprojectscontenthintprojectsresponse200applicationjsontype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `type` | *"blob-read-write-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectscontenthint6.md b/docs/models/getprojectscontenthint6.md index f853b46f..480ab942 100644 --- a/docs/models/getprojectscontenthint6.md +++ b/docs/models/getprojectscontenthint6.md @@ -13,7 +13,7 @@ let value: GetProjectsContentHint6 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyType](../models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodytype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectscontenthint7.md b/docs/models/getprojectscontenthint7.md index 401aae7b..97b7d822 100644 --- a/docs/models/getprojectscontenthint7.md +++ b/docs/models/getprojectscontenthint7.md @@ -13,7 +13,7 @@ let value: GetProjectsContentHint7 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsType](../models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectstype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"postgres-url-non-pooling"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectscontenthint8.md b/docs/models/getprojectscontenthint8.md index 152b59c0..2dc34c7c 100644 --- a/docs/models/getprojectscontenthint8.md +++ b/docs/models/getprojectscontenthint8.md @@ -13,7 +13,7 @@ let value: GetProjectsContentHint8 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnvType](../models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenvtype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-prisma-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectscontenthint9.md b/docs/models/getprojectscontenthint9.md index 832bf05f..6e1c8d02 100644 --- a/docs/models/getprojectscontenthint9.md +++ b/docs/models/getprojectscontenthint9.md @@ -13,7 +13,7 @@ let value: GetProjectsContentHint9 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv9Type](../models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv9type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-user"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv10type.md b/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv10type.md deleted file mode 100644 index 3b9d5616..00000000 --- a/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv10type.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv10Type - -## Example Usage - -```typescript -import { - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv10Type, -} from "@vercel/sdk/models/getprojectsop.js"; - -let value: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv10Type = - "postgres-host"; -``` - -## Values - -```typescript -"postgres-host" -``` \ No newline at end of file diff --git a/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv11type.md b/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv11type.md deleted file mode 100644 index 3e482d54..00000000 --- a/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv11type.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv11Type - -## Example Usage - -```typescript -import { - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv11Type, -} from "@vercel/sdk/models/getprojectsop.js"; - -let value: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv11Type = - "postgres-password"; -``` - -## Values - -```typescript -"postgres-password" -``` \ No newline at end of file diff --git a/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv12type.md b/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv12type.md deleted file mode 100644 index e5696274..00000000 --- a/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv12type.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv12Type - -## Example Usage - -```typescript -import { - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv12Type, -} from "@vercel/sdk/models/getprojectsop.js"; - -let value: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv12Type = - "postgres-database"; -``` - -## Values - -```typescript -"postgres-database" -``` \ No newline at end of file diff --git a/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv13type.md b/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv13type.md deleted file mode 100644 index 8409bad2..00000000 --- a/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv13type.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv13Type - -## Example Usage - -```typescript -import { - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv13Type, -} from "@vercel/sdk/models/getprojectsop.js"; - -let value: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv13Type = - "postgres-url-no-ssl"; -``` - -## Values - -```typescript -"postgres-url-no-ssl" -``` \ No newline at end of file diff --git a/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv14type.md b/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv14type.md deleted file mode 100644 index 811e6f26..00000000 --- a/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv14type.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv14Type - -## Example Usage - -```typescript -import { - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv14Type, -} from "@vercel/sdk/models/getprojectsop.js"; - -let value: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv14Type = - "integration-store-secret"; -``` - -## Values - -```typescript -"integration-store-secret" -``` \ No newline at end of file diff --git a/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv15type.md b/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv15type.md deleted file mode 100644 index 3c5465de..00000000 --- a/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv15type.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv15Type - -## Example Usage - -```typescript -import { - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv15Type, -} from "@vercel/sdk/models/getprojectsop.js"; - -let value: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv15Type = - "flags-connection-string"; -``` - -## Values - -```typescript -"flags-connection-string" -``` \ No newline at end of file diff --git a/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv9type.md b/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv9type.md deleted file mode 100644 index b569d56a..00000000 --- a/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenv9type.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv9Type - -## Example Usage - -```typescript -import { - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv9Type, -} from "@vercel/sdk/models/getprojectsop.js"; - -let value: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv9Type = - "postgres-user"; -``` - -## Values - -```typescript -"postgres-user" -``` \ No newline at end of file diff --git a/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenvtype.md b/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenvtype.md deleted file mode 100644 index 1a5391de..00000000 --- a/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectsenvtype.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnvType - -## Example Usage - -```typescript -import { - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnvType, -} from "@vercel/sdk/models/getprojectsop.js"; - -let value: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnvType = - "postgres-prisma-url"; -``` - -## Values - -```typescript -"postgres-prisma-url" -``` \ No newline at end of file diff --git a/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectstype.md b/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectstype.md deleted file mode 100644 index 1dac4315..00000000 --- a/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodyprojectstype.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsType - -## Example Usage - -```typescript -import { GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsType } from "@vercel/sdk/models/getprojectsop.js"; - -let value: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsType = - "postgres-url-non-pooling"; -``` - -## Values - -```typescript -"postgres-url-non-pooling" -``` \ No newline at end of file diff --git a/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodytype.md b/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodytype.md deleted file mode 100644 index d210d8d9..00000000 --- a/docs/models/getprojectscontenthintprojectsresponse200applicationjsonresponsebodytype.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyType - -## Example Usage - -```typescript -import { GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyType } from "@vercel/sdk/models/getprojectsop.js"; - -let value: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyType = - "postgres-url"; -``` - -## Values - -```typescript -"postgres-url" -``` \ No newline at end of file diff --git a/docs/models/getprojectscontenthintprojectsresponse200applicationjsontype.md b/docs/models/getprojectscontenthintprojectsresponse200applicationjsontype.md deleted file mode 100644 index 2eb51bf3..00000000 --- a/docs/models/getprojectscontenthintprojectsresponse200applicationjsontype.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetProjectsContentHintProjectsResponse200ApplicationJSONType - -## Example Usage - -```typescript -import { GetProjectsContentHintProjectsResponse200ApplicationJSONType } from "@vercel/sdk/models/getprojectsop.js"; - -let value: GetProjectsContentHintProjectsResponse200ApplicationJSONType = - "blob-read-write-token"; -``` - -## Values - -```typescript -"blob-read-write-token" -``` \ No newline at end of file diff --git a/docs/models/getprojectscontenthintprojectsresponse200type.md b/docs/models/getprojectscontenthintprojectsresponse200type.md deleted file mode 100644 index 6d22baed..00000000 --- a/docs/models/getprojectscontenthintprojectsresponse200type.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetProjectsContentHintProjectsResponse200Type - -## Example Usage - -```typescript -import { GetProjectsContentHintProjectsResponse200Type } from "@vercel/sdk/models/getprojectsop.js"; - -let value: GetProjectsContentHintProjectsResponse200Type = - "redis-rest-api-read-only-token"; -``` - -## Values - -```typescript -"redis-rest-api-read-only-token" -``` \ No newline at end of file diff --git a/docs/models/getprojectscontenthintprojectsresponsetype.md b/docs/models/getprojectscontenthintprojectsresponsetype.md deleted file mode 100644 index 0a7fae28..00000000 --- a/docs/models/getprojectscontenthintprojectsresponsetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetProjectsContentHintProjectsResponseType - -## Example Usage - -```typescript -import { GetProjectsContentHintProjectsResponseType } from "@vercel/sdk/models/getprojectsop.js"; - -let value: GetProjectsContentHintProjectsResponseType = "redis-rest-api-token"; -``` - -## Values - -```typescript -"redis-rest-api-token" -``` \ No newline at end of file diff --git a/docs/models/getprojectscontenthintprojectstype.md b/docs/models/getprojectscontenthintprojectstype.md deleted file mode 100644 index 0ce38357..00000000 --- a/docs/models/getprojectscontenthintprojectstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetProjectsContentHintProjectsType - -## Example Usage - -```typescript -import { GetProjectsContentHintProjectsType } from "@vercel/sdk/models/getprojectsop.js"; - -let value: GetProjectsContentHintProjectsType = "redis-rest-api-url"; -``` - -## Values - -```typescript -"redis-rest-api-url" -``` \ No newline at end of file diff --git a/docs/models/getprojectscontenthinttype.md b/docs/models/getprojectscontenthinttype.md deleted file mode 100644 index 57111284..00000000 --- a/docs/models/getprojectscontenthinttype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetProjectsContentHintType - -## Example Usage - -```typescript -import { GetProjectsContentHintType } from "@vercel/sdk/models/getprojectsop.js"; - -let value: GetProjectsContentHintType = "redis-url"; -``` - -## Values - -```typescript -"redis-url" -``` \ No newline at end of file diff --git a/docs/models/getprojectshas1.md b/docs/models/getprojectshas1.md index 43c1a4fe..f9a9dfa2 100644 --- a/docs/models/getprojectshas1.md +++ b/docs/models/getprojectshas1.md @@ -18,6 +18,6 @@ let value: GetProjectsHas1 = { | Field | Type | Required | Description | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `type` | [models.GetProjectsHasType](../models/getprojectshastype.md) | :heavy_check_mark: | N/A | +| `type` | *"header"* | :heavy_check_mark: | N/A | | `key` | [models.GetProjectsHasKey](../models/getprojectshaskey.md) | :heavy_check_mark: | N/A | | `value` | [models.GetProjectsHasValue](../models/getprojectshasvalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectshas2.md b/docs/models/getprojectshas2.md index 834ecc0a..503a5fab 100644 --- a/docs/models/getprojectshas2.md +++ b/docs/models/getprojectshas2.md @@ -17,5 +17,5 @@ let value: GetProjectsHas2 = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `type` | [models.GetProjectsHasProjectsType](../models/getprojectshasprojectstype.md) | :heavy_check_mark: | N/A | +| `type` | *"host"* | :heavy_check_mark: | N/A | | `value` | [models.GetProjectsHasProjectsValue](../models/getprojectshasprojectsvalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectshasprojects1.md b/docs/models/getprojectshasprojects1.md index 241a52db..1dfd368a 100644 --- a/docs/models/getprojectshasprojects1.md +++ b/docs/models/getprojectshasprojects1.md @@ -18,6 +18,6 @@ let value: GetProjectsHasProjects1 = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectsHasProjectsResponseType](../models/getprojectshasprojectsresponsetype.md) | :heavy_check_mark: | N/A | +| `type` | *"header"* | :heavy_check_mark: | N/A | | `key` | [models.GetProjectsHasProjectsKey](../models/getprojectshasprojectskey.md) | :heavy_check_mark: | N/A | | `value` | [models.GetProjectsHasProjectsResponseValue](../models/getprojectshasprojectsresponsevalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectshasprojects2.md b/docs/models/getprojectshasprojects2.md index aa114a1f..639d0fca 100644 --- a/docs/models/getprojectshasprojects2.md +++ b/docs/models/getprojectshasprojects2.md @@ -17,5 +17,5 @@ let value: GetProjectsHasProjects2 = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectsHasProjectsResponse200Type](../models/getprojectshasprojectsresponse200type.md) | :heavy_check_mark: | N/A | +| `type` | *"host"* | :heavy_check_mark: | N/A | | `value` | [models.GetProjectsHasProjectsResponse200Value](../models/getprojectshasprojectsresponse200value.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectshasprojectsresponse1.md b/docs/models/getprojectshasprojectsresponse1.md index cf258475..8191b61a 100644 --- a/docs/models/getprojectshasprojectsresponse1.md +++ b/docs/models/getprojectshasprojectsresponse1.md @@ -18,6 +18,6 @@ let value: GetProjectsHasProjectsResponse1 = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectsHasProjectsResponse200ApplicationJSONType](../models/getprojectshasprojectsresponse200applicationjsontype.md) | :heavy_check_mark: | N/A | +| `type` | *"header"* | :heavy_check_mark: | N/A | | `key` | [models.GetProjectsHasProjectsResponseKey](../models/getprojectshasprojectsresponsekey.md) | :heavy_check_mark: | N/A | | `value` | [models.GetProjectsHasProjectsResponse200ApplicationJSONValue](../models/getprojectshasprojectsresponse200applicationjsonvalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectshasprojectsresponse2.md b/docs/models/getprojectshasprojectsresponse2.md index 0d4d32a0..0231aea8 100644 --- a/docs/models/getprojectshasprojectsresponse2.md +++ b/docs/models/getprojectshasprojectsresponse2.md @@ -17,5 +17,5 @@ let value: GetProjectsHasProjectsResponse2 = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.GetProjectsHasProjectsResponse200ApplicationJSONResponseBodyType](../models/getprojectshasprojectsresponse200applicationjsonresponsebodytype.md) | :heavy_check_mark: | N/A | +| `type` | *"host"* | :heavy_check_mark: | N/A | | `value` | [models.GetProjectsHasProjectsResponse200ApplicationJSONResponseBodyValue](../models/getprojectshasprojectsresponse200applicationjsonresponsebodyvalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectshasprojectsresponse200applicationjsonresponsebodytype.md b/docs/models/getprojectshasprojectsresponse200applicationjsonresponsebodytype.md deleted file mode 100644 index e1085293..00000000 --- a/docs/models/getprojectshasprojectsresponse200applicationjsonresponsebodytype.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetProjectsHasProjectsResponse200ApplicationJSONResponseBodyType - -## Example Usage - -```typescript -import { GetProjectsHasProjectsResponse200ApplicationJSONResponseBodyType } from "@vercel/sdk/models/getprojectsop.js"; - -let value: GetProjectsHasProjectsResponse200ApplicationJSONResponseBodyType = - "host"; -``` - -## Values - -```typescript -"host" -``` \ No newline at end of file diff --git a/docs/models/getprojectshasprojectsresponse200applicationjsontype.md b/docs/models/getprojectshasprojectsresponse200applicationjsontype.md deleted file mode 100644 index aaac65e7..00000000 --- a/docs/models/getprojectshasprojectsresponse200applicationjsontype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetProjectsHasProjectsResponse200ApplicationJSONType - -## Example Usage - -```typescript -import { GetProjectsHasProjectsResponse200ApplicationJSONType } from "@vercel/sdk/models/getprojectsop.js"; - -let value: GetProjectsHasProjectsResponse200ApplicationJSONType = "header"; -``` - -## Values - -```typescript -"header" -``` \ No newline at end of file diff --git a/docs/models/getprojectshasprojectsresponse200type.md b/docs/models/getprojectshasprojectsresponse200type.md deleted file mode 100644 index e93e548f..00000000 --- a/docs/models/getprojectshasprojectsresponse200type.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetProjectsHasProjectsResponse200Type - -## Example Usage - -```typescript -import { GetProjectsHasProjectsResponse200Type } from "@vercel/sdk/models/getprojectsop.js"; - -let value: GetProjectsHasProjectsResponse200Type = "host"; -``` - -## Values - -```typescript -"host" -``` \ No newline at end of file diff --git a/docs/models/getprojectshasprojectsresponsetype.md b/docs/models/getprojectshasprojectsresponsetype.md deleted file mode 100644 index edf2b03c..00000000 --- a/docs/models/getprojectshasprojectsresponsetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetProjectsHasProjectsResponseType - -## Example Usage - -```typescript -import { GetProjectsHasProjectsResponseType } from "@vercel/sdk/models/getprojectsop.js"; - -let value: GetProjectsHasProjectsResponseType = "header"; -``` - -## Values - -```typescript -"header" -``` \ No newline at end of file diff --git a/docs/models/getprojectshasprojectstype.md b/docs/models/getprojectshasprojectstype.md deleted file mode 100644 index d2182bf1..00000000 --- a/docs/models/getprojectshasprojectstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetProjectsHasProjectsType - -## Example Usage - -```typescript -import { GetProjectsHasProjectsType } from "@vercel/sdk/models/getprojectsop.js"; - -let value: GetProjectsHasProjectsType = "host"; -``` - -## Values - -```typescript -"host" -``` \ No newline at end of file diff --git a/docs/models/getprojectshastype.md b/docs/models/getprojectshastype.md deleted file mode 100644 index 2bc5d1e5..00000000 --- a/docs/models/getprojectshastype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetProjectsHasType - -## Example Usage - -```typescript -import { GetProjectsHasType } from "@vercel/sdk/models/getprojectsop.js"; - -let value: GetProjectsHasType = "header"; -``` - -## Values - -```typescript -"header" -``` \ No newline at end of file diff --git a/docs/models/getprojectslink1.md b/docs/models/getprojectslink1.md index 5d5480bb..2ef2b9ce 100644 --- a/docs/models/getprojectslink1.md +++ b/docs/models/getprojectslink1.md @@ -22,7 +22,7 @@ let value: GetProjectsLink1 = { | `repoOwnerId` | *number* | :heavy_minus_sign: | A new field, should be included in all new project links, is being added just in time when a deployment is created. This is needed for Protected Git scopes. | | `repo` | *string* | :heavy_minus_sign: | N/A | | `repoId` | *number* | :heavy_minus_sign: | N/A | -| `type` | [models.GetProjectsLinkType](../models/getprojectslinktype.md) | :heavy_check_mark: | N/A | +| `type` | *"github"* | :heavy_check_mark: | N/A | | `createdAt` | *number* | :heavy_minus_sign: | N/A | | `deployHooks` | [models.GetProjectsLinkDeployHooks](../models/getprojectslinkdeployhooks.md)[] | :heavy_check_mark: | N/A | | `gitCredentialId` | *string* | :heavy_check_mark: | N/A | diff --git a/docs/models/getprojectslink2.md b/docs/models/getprojectslink2.md index b3c8d5f2..67a055d4 100644 --- a/docs/models/getprojectslink2.md +++ b/docs/models/getprojectslink2.md @@ -18,7 +18,7 @@ let value: GetProjectsLink2 = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.GetProjectsLinkProjectsType](../models/getprojectslinkprojectstype.md) | :heavy_check_mark: | N/A | +| `type` | *"github-limited"* | :heavy_check_mark: | N/A | | `repo` | *string* | :heavy_minus_sign: | N/A | | `repoId` | *number* | :heavy_minus_sign: | N/A | | `createdAt` | *number* | :heavy_minus_sign: | N/A | diff --git a/docs/models/getprojectslink3.md b/docs/models/getprojectslink3.md index b87c955d..795f234e 100644 --- a/docs/models/getprojectslink3.md +++ b/docs/models/getprojectslink3.md @@ -30,7 +30,7 @@ let value: GetProjectsLink3 = { | `repoOwnerId` | *number* | :heavy_minus_sign: | A new field, should be included in all new project links, is being added just in time when a deployment is created. This is needed for Protected Git scopes. | | `repo` | *string* | :heavy_minus_sign: | N/A | | `repoId` | *number* | :heavy_minus_sign: | N/A | -| `type` | [models.GetProjectsLinkProjectsResponseType](../models/getprojectslinkprojectsresponsetype.md) | :heavy_check_mark: | N/A | +| `type` | *"github-custom-host"* | :heavy_check_mark: | N/A | | `host` | *string* | :heavy_check_mark: | N/A | | `createdAt` | *number* | :heavy_minus_sign: | N/A | | `deployHooks` | [models.GetProjectsLinkProjectsResponseDeployHooks](../models/getprojectslinkprojectsresponsedeployhooks.md)[] | :heavy_check_mark: | N/A | diff --git a/docs/models/getprojectslink4.md b/docs/models/getprojectslink4.md index b18e19b3..a3078f3b 100644 --- a/docs/models/getprojectslink4.md +++ b/docs/models/getprojectslink4.md @@ -35,7 +35,7 @@ let value: GetProjectsLink4 = { | `projectNamespace` | *string* | :heavy_check_mark: | N/A | | `projectOwnerId` | *number* | :heavy_minus_sign: | A new field, should be included in all new project links, is being added just in time when a deployment is created. This is needed for Protected Git scopes. This is the id of the top level group that a namespace belongs to. Gitlab supports group nesting (up to 20 levels). | | `projectUrl` | *string* | :heavy_check_mark: | N/A | -| `type` | [models.GetProjectsLinkProjectsResponse200Type](../models/getprojectslinkprojectsresponse200type.md) | :heavy_check_mark: | N/A | +| `type` | *"gitlab"* | :heavy_check_mark: | N/A | | `createdAt` | *number* | :heavy_minus_sign: | N/A | | `deployHooks` | [models.GetProjectsLinkProjectsResponse200DeployHooks](../models/getprojectslinkprojectsresponse200deployhooks.md)[] | :heavy_check_mark: | N/A | | `gitCredentialId` | *string* | :heavy_check_mark: | N/A | diff --git a/docs/models/getprojectslink5.md b/docs/models/getprojectslink5.md index 8e63e82e..f32fd3ac 100644 --- a/docs/models/getprojectslink5.md +++ b/docs/models/getprojectslink5.md @@ -32,7 +32,7 @@ let value: GetProjectsLink5 = { | `name` | *string* | :heavy_check_mark: | N/A | | `slug` | *string* | :heavy_check_mark: | N/A | | `owner` | *string* | :heavy_check_mark: | N/A | -| `type` | [models.GetProjectsLinkProjectsResponse200ApplicationJSONType](../models/getprojectslinkprojectsresponse200applicationjsontype.md) | :heavy_check_mark: | N/A | +| `type` | *"bitbucket"* | :heavy_check_mark: | N/A | | `uuid` | *string* | :heavy_check_mark: | N/A | | `workspaceUuid` | *string* | :heavy_check_mark: | N/A | | `createdAt` | *number* | :heavy_minus_sign: | N/A | diff --git a/docs/models/getprojectslinkprojectsresponse200applicationjsontype.md b/docs/models/getprojectslinkprojectsresponse200applicationjsontype.md deleted file mode 100644 index 9fde3f56..00000000 --- a/docs/models/getprojectslinkprojectsresponse200applicationjsontype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetProjectsLinkProjectsResponse200ApplicationJSONType - -## Example Usage - -```typescript -import { GetProjectsLinkProjectsResponse200ApplicationJSONType } from "@vercel/sdk/models/getprojectsop.js"; - -let value: GetProjectsLinkProjectsResponse200ApplicationJSONType = "bitbucket"; -``` - -## Values - -```typescript -"bitbucket" -``` \ No newline at end of file diff --git a/docs/models/getprojectslinkprojectsresponse200type.md b/docs/models/getprojectslinkprojectsresponse200type.md deleted file mode 100644 index 42464dfd..00000000 --- a/docs/models/getprojectslinkprojectsresponse200type.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetProjectsLinkProjectsResponse200Type - -## Example Usage - -```typescript -import { GetProjectsLinkProjectsResponse200Type } from "@vercel/sdk/models/getprojectsop.js"; - -let value: GetProjectsLinkProjectsResponse200Type = "gitlab"; -``` - -## Values - -```typescript -"gitlab" -``` \ No newline at end of file diff --git a/docs/models/getprojectslinkprojectsresponsetype.md b/docs/models/getprojectslinkprojectsresponsetype.md deleted file mode 100644 index 4ec9f7fb..00000000 --- a/docs/models/getprojectslinkprojectsresponsetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetProjectsLinkProjectsResponseType - -## Example Usage - -```typescript -import { GetProjectsLinkProjectsResponseType } from "@vercel/sdk/models/getprojectsop.js"; - -let value: GetProjectsLinkProjectsResponseType = "github-custom-host"; -``` - -## Values - -```typescript -"github-custom-host" -``` \ No newline at end of file diff --git a/docs/models/getprojectslinkprojectstype.md b/docs/models/getprojectslinkprojectstype.md deleted file mode 100644 index 6c33e936..00000000 --- a/docs/models/getprojectslinkprojectstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetProjectsLinkProjectsType - -## Example Usage - -```typescript -import { GetProjectsLinkProjectsType } from "@vercel/sdk/models/getprojectsop.js"; - -let value: GetProjectsLinkProjectsType = "github-limited"; -``` - -## Values - -```typescript -"github-limited" -``` \ No newline at end of file diff --git a/docs/models/getprojectslinktype.md b/docs/models/getprojectslinktype.md deleted file mode 100644 index a52c5cf6..00000000 --- a/docs/models/getprojectslinktype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetProjectsLinkType - -## Example Usage - -```typescript -import { GetProjectsLinkType } from "@vercel/sdk/models/getprojectsop.js"; - -let value: GetProjectsLinkType = "github"; -``` - -## Values - -```typescript -"github" -``` \ No newline at end of file diff --git a/docs/models/getprojectsprotectionbypass1.md b/docs/models/getprojectsprotectionbypass1.md index 091b8ae4..c73ee1f8 100644 --- a/docs/models/getprojectsprotectionbypass1.md +++ b/docs/models/getprojectsprotectionbypass1.md @@ -16,10 +16,10 @@ let value: GetProjectsProtectionBypass1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `createdBy` | *string* | :heavy_check_mark: | N/A | -| `scope` | [models.GetProjectsProtectionBypassScope](../models/getprojectsprotectionbypassscope.md) | :heavy_check_mark: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `configurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `createdBy` | *string* | :heavy_check_mark: | N/A | +| `scope` | *"integration-automation-bypass"* | :heavy_check_mark: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `configurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectsprotectionbypass2.md b/docs/models/getprojectsprotectionbypass2.md index 606dbb26..d09328ff 100644 --- a/docs/models/getprojectsprotectionbypass2.md +++ b/docs/models/getprojectsprotectionbypass2.md @@ -14,8 +14,8 @@ let value: GetProjectsProtectionBypass2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `createdBy` | *string* | :heavy_check_mark: | N/A | -| `scope` | [models.GetProjectsProtectionBypassProjectsScope](../models/getprojectsprotectionbypassprojectsscope.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `createdBy` | *string* | :heavy_check_mark: | N/A | +| `scope` | *"automation-bypass"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectsprotectionbypassprojectsscope.md b/docs/models/getprojectsprotectionbypassprojectsscope.md deleted file mode 100644 index c0c46b6b..00000000 --- a/docs/models/getprojectsprotectionbypassprojectsscope.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetProjectsProtectionBypassProjectsScope - -## Example Usage - -```typescript -import { GetProjectsProtectionBypassProjectsScope } from "@vercel/sdk/models/getprojectsop.js"; - -let value: GetProjectsProtectionBypassProjectsScope = "automation-bypass"; -``` - -## Values - -```typescript -"automation-bypass" -``` \ No newline at end of file diff --git a/docs/models/getprojectsprotectionbypassscope.md b/docs/models/getprojectsprotectionbypassscope.md deleted file mode 100644 index f62e23a7..00000000 --- a/docs/models/getprojectsprotectionbypassscope.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetProjectsProtectionBypassScope - -## Example Usage - -```typescript -import { GetProjectsProtectionBypassScope } from "@vercel/sdk/models/getprojectsop.js"; - -let value: GetProjectsProtectionBypassScope = "integration-automation-bypass"; -``` - -## Values - -```typescript -"integration-automation-bypass" -``` \ No newline at end of file diff --git a/docs/models/getrollingreleasebillingstatusresponsebody1.md b/docs/models/getrollingreleasebillingstatusresponsebody1.md index e253c223..694ee9f1 100644 --- a/docs/models/getrollingreleasebillingstatusresponsebody1.md +++ b/docs/models/getrollingreleasebillingstatusresponsebody1.md @@ -14,8 +14,8 @@ let value: GetRollingReleaseBillingStatusResponseBody1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `availableSlots` | *number* | :heavy_check_mark: | N/A | -| `reason` | [models.ResponseBodyReason](../models/responsebodyreason.md) | :heavy_check_mark: | N/A | -| `message` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `availableSlots` | *number* | :heavy_check_mark: | N/A | +| `reason` | *"plan_not_supported"* | :heavy_check_mark: | N/A | +| `message` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getrollingreleasebillingstatusresponsebody2.md b/docs/models/getrollingreleasebillingstatusresponsebody2.md index a2d85744..114897c8 100644 --- a/docs/models/getrollingreleasebillingstatusresponsebody2.md +++ b/docs/models/getrollingreleasebillingstatusresponsebody2.md @@ -14,8 +14,8 @@ let value: GetRollingReleaseBillingStatusResponseBody2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `availableSlots` | [models.AvailableSlots](../models/availableslots.md) | :heavy_check_mark: | N/A | -| `reason` | [models.GetRollingReleaseBillingStatusResponseBodyReason](../models/getrollingreleasebillingstatusresponsebodyreason.md) | :heavy_check_mark: | N/A | -| `message` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | +| `availableSlots` | [models.AvailableSlots](../models/availableslots.md) | :heavy_check_mark: | N/A | +| `reason` | *"unlimited_slots"* | :heavy_check_mark: | N/A | +| `message` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getrollingreleasebillingstatusresponsebody3.md b/docs/models/getrollingreleasebillingstatusresponsebody3.md index cf0d82ef..7d1121f5 100644 --- a/docs/models/getrollingreleasebillingstatusresponsebody3.md +++ b/docs/models/getrollingreleasebillingstatusresponsebody3.md @@ -18,9 +18,9 @@ let value: GetRollingReleaseBillingStatusResponseBody3 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| `availableSlots` | *number* | :heavy_check_mark: | N/A | -| `reason` | [models.GetRollingReleaseBillingStatusResponseBodyRollingReleaseReason](../models/getrollingreleasebillingstatusresponsebodyrollingreleasereason.md) | :heavy_check_mark: | N/A | -| `message` | *string* | :heavy_check_mark: | N/A | -| `enabledProjects` | *string*[] | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `availableSlots` | *number* | :heavy_check_mark: | N/A | +| `reason` | *"no_available_slots"* | :heavy_check_mark: | N/A | +| `message` | *string* | :heavy_check_mark: | N/A | +| `enabledProjects` | *string*[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getrollingreleasebillingstatusresponsebodyreason.md b/docs/models/getrollingreleasebillingstatusresponsebodyreason.md deleted file mode 100644 index 108b1cea..00000000 --- a/docs/models/getrollingreleasebillingstatusresponsebodyreason.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetRollingReleaseBillingStatusResponseBodyReason - -## Example Usage - -```typescript -import { GetRollingReleaseBillingStatusResponseBodyReason } from "@vercel/sdk/models/getrollingreleasebillingstatusop.js"; - -let value: GetRollingReleaseBillingStatusResponseBodyReason = "unlimited_slots"; -``` - -## Values - -```typescript -"unlimited_slots" -``` \ No newline at end of file diff --git a/docs/models/getrollingreleasebillingstatusresponsebodyrollingreleasereason.md b/docs/models/getrollingreleasebillingstatusresponsebodyrollingreleasereason.md deleted file mode 100644 index 5861bc40..00000000 --- a/docs/models/getrollingreleasebillingstatusresponsebodyrollingreleasereason.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetRollingReleaseBillingStatusResponseBodyRollingReleaseReason - -## Example Usage - -```typescript -import { GetRollingReleaseBillingStatusResponseBodyRollingReleaseReason } from "@vercel/sdk/models/getrollingreleasebillingstatusop.js"; - -let value: GetRollingReleaseBillingStatusResponseBodyRollingReleaseReason = - "no_available_slots"; -``` - -## Values - -```typescript -"no_available_slots" -``` \ No newline at end of file diff --git a/docs/models/getrollingreleasebillingstatusresponsebodyrollingreleaseresponsereason.md b/docs/models/getrollingreleasebillingstatusresponsebodyrollingreleaseresponsereason.md deleted file mode 100644 index 0c361701..00000000 --- a/docs/models/getrollingreleasebillingstatusresponsebodyrollingreleaseresponsereason.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetRollingReleaseBillingStatusResponseBodyRollingReleaseResponseReason - -## Example Usage - -```typescript -import { GetRollingReleaseBillingStatusResponseBodyRollingReleaseResponseReason } from "@vercel/sdk/models/getrollingreleasebillingstatusop.js"; - -let value: - GetRollingReleaseBillingStatusResponseBodyRollingReleaseResponseReason = - "available_slots"; -``` - -## Values - -```typescript -"available_slots" -``` \ No newline at end of file diff --git a/docs/models/gitrepo1.md b/docs/models/gitrepo1.md index 0e82bc77..c3abaf0a 100644 --- a/docs/models/gitrepo1.md +++ b/docs/models/gitrepo1.md @@ -20,14 +20,14 @@ let value: GitRepo1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| `namespace` | *string* | :heavy_check_mark: | N/A | -| `projectId` | *number* | :heavy_check_mark: | N/A | -| `type` | [models.GitRepoType](../models/gitrepotype.md) | :heavy_check_mark: | N/A | -| `url` | *string* | :heavy_check_mark: | N/A | -| `path` | *string* | :heavy_check_mark: | N/A | -| `defaultBranch` | *string* | :heavy_check_mark: | N/A | -| `name` | *string* | :heavy_check_mark: | N/A | -| `private` | *boolean* | :heavy_check_mark: | N/A | -| `ownerType` | [models.OwnerType](../models/ownertype.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `namespace` | *string* | :heavy_check_mark: | N/A | +| `projectId` | *number* | :heavy_check_mark: | N/A | +| `type` | *"gitlab"* | :heavy_check_mark: | N/A | +| `url` | *string* | :heavy_check_mark: | N/A | +| `path` | *string* | :heavy_check_mark: | N/A | +| `defaultBranch` | *string* | :heavy_check_mark: | N/A | +| `name` | *string* | :heavy_check_mark: | N/A | +| `private` | *boolean* | :heavy_check_mark: | N/A | +| `ownerType` | [models.OwnerType](../models/ownertype.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/gitrepo2.md b/docs/models/gitrepo2.md index 50808b03..e268f93d 100644 --- a/docs/models/gitrepo2.md +++ b/docs/models/gitrepo2.md @@ -21,15 +21,15 @@ let value: GitRepo2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `org` | *string* | :heavy_check_mark: | N/A | -| `repo` | *string* | :heavy_check_mark: | N/A | -| `repoId` | *number* | :heavy_check_mark: | N/A | -| `type` | [models.CreateDeploymentGitRepoType](../models/createdeploymentgitrepotype.md) | :heavy_check_mark: | N/A | -| `repoOwnerId` | *number* | :heavy_check_mark: | N/A | -| `path` | *string* | :heavy_check_mark: | N/A | -| `defaultBranch` | *string* | :heavy_check_mark: | N/A | -| `name` | *string* | :heavy_check_mark: | N/A | -| `private` | *boolean* | :heavy_check_mark: | N/A | -| `ownerType` | [models.GitRepoOwnerType](../models/gitrepoownertype.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `org` | *string* | :heavy_check_mark: | N/A | +| `repo` | *string* | :heavy_check_mark: | N/A | +| `repoId` | *number* | :heavy_check_mark: | N/A | +| `type` | *"github"* | :heavy_check_mark: | N/A | +| `repoOwnerId` | *number* | :heavy_check_mark: | N/A | +| `path` | *string* | :heavy_check_mark: | N/A | +| `defaultBranch` | *string* | :heavy_check_mark: | N/A | +| `name` | *string* | :heavy_check_mark: | N/A | +| `private` | *boolean* | :heavy_check_mark: | N/A | +| `ownerType` | [models.GitRepoOwnerType](../models/gitrepoownertype.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/gitrepo3.md b/docs/models/gitrepo3.md index 3e77255d..3743667a 100644 --- a/docs/models/gitrepo3.md +++ b/docs/models/gitrepo3.md @@ -21,15 +21,15 @@ let value: GitRepo3 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `owner` | *string* | :heavy_check_mark: | N/A | -| `repoUuid` | *string* | :heavy_check_mark: | N/A | -| `slug` | *string* | :heavy_check_mark: | N/A | -| `type` | [models.CreateDeploymentGitRepoDeploymentsType](../models/createdeploymentgitrepodeploymentstype.md) | :heavy_check_mark: | N/A | -| `workspaceUuid` | *string* | :heavy_check_mark: | N/A | -| `path` | *string* | :heavy_check_mark: | N/A | -| `defaultBranch` | *string* | :heavy_check_mark: | N/A | -| `name` | *string* | :heavy_check_mark: | N/A | -| `private` | *boolean* | :heavy_check_mark: | N/A | -| `ownerType` | [models.CreateDeploymentGitRepoOwnerType](../models/createdeploymentgitrepoownertype.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `owner` | *string* | :heavy_check_mark: | N/A | +| `repoUuid` | *string* | :heavy_check_mark: | N/A | +| `slug` | *string* | :heavy_check_mark: | N/A | +| `type` | *"bitbucket"* | :heavy_check_mark: | N/A | +| `workspaceUuid` | *string* | :heavy_check_mark: | N/A | +| `path` | *string* | :heavy_check_mark: | N/A | +| `defaultBranch` | *string* | :heavy_check_mark: | N/A | +| `name` | *string* | :heavy_check_mark: | N/A | +| `private` | *boolean* | :heavy_check_mark: | N/A | +| `ownerType` | [models.CreateDeploymentGitRepoOwnerType](../models/createdeploymentgitrepoownertype.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/gitrepotype.md b/docs/models/gitrepotype.md deleted file mode 100644 index 75cae543..00000000 --- a/docs/models/gitrepotype.md +++ /dev/null @@ -1,15 +0,0 @@ -# GitRepoType - -## Example Usage - -```typescript -import { GitRepoType } from "@vercel/sdk/models/createdeploymentop.js"; - -let value: GitRepoType = "gitlab"; -``` - -## Values - -```typescript -"gitlab" -``` \ No newline at end of file diff --git a/docs/models/has1.md b/docs/models/has1.md index fa1cf325..a2994e23 100644 --- a/docs/models/has1.md +++ b/docs/models/has1.md @@ -18,6 +18,6 @@ let value: Has1 = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `type` | [models.HasType](../models/hastype.md) | :heavy_check_mark: | N/A | +| `type` | *"header"* | :heavy_check_mark: | N/A | | `key` | [models.Key](../models/key.md) | :heavy_check_mark: | N/A | | `value` | [models.UpdateProjectDataCacheHasValue](../models/updateprojectdatacachehasvalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/has2.md b/docs/models/has2.md index 42d11fb1..279e45e9 100644 --- a/docs/models/has2.md +++ b/docs/models/has2.md @@ -15,7 +15,7 @@ let value: Has2 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectDataCacheHasType](../models/updateprojectdatacachehastype.md) | :heavy_check_mark: | N/A | -| `value` | [models.HasValue](../models/hasvalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `type` | *"host"* | :heavy_check_mark: | N/A | +| `value` | [models.HasValue](../models/hasvalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/hastype.md b/docs/models/hastype.md deleted file mode 100644 index 35ccb0a7..00000000 --- a/docs/models/hastype.md +++ /dev/null @@ -1,15 +0,0 @@ -# HasType - -## Example Usage - -```typescript -import { HasType } from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: HasType = "header"; -``` - -## Values - -```typescript -"header" -``` \ No newline at end of file diff --git a/docs/models/kind.md b/docs/models/kind.md deleted file mode 100644 index ba830eaf..00000000 --- a/docs/models/kind.md +++ /dev/null @@ -1,15 +0,0 @@ -# Kind - -## Example Usage - -```typescript -import { Kind } from "@vercel/sdk/models/getintegrationlogdrainsop.js"; - -let value: Kind = "self-served"; -``` - -## Values - -```typescript -"self-served" -``` \ No newline at end of file diff --git a/docs/models/link1.md b/docs/models/link1.md index 4cc05fa1..3c4f4762 100644 --- a/docs/models/link1.md +++ b/docs/models/link1.md @@ -29,7 +29,7 @@ let value: Link1 = { | `repoOwnerId` | *number* | :heavy_minus_sign: | A new field, should be included in all new project links, is being added just in time when a deployment is created. This is needed for Protected Git scopes. | | `repo` | *string* | :heavy_minus_sign: | N/A | | `repoId` | *number* | :heavy_minus_sign: | N/A | -| `type` | [models.LinkType](../models/linktype.md) | :heavy_check_mark: | N/A | +| `type` | *"github"* | :heavy_check_mark: | N/A | | `createdAt` | *number* | :heavy_minus_sign: | N/A | | `deployHooks` | [models.DeployHooks](../models/deployhooks.md)[] | :heavy_check_mark: | N/A | | `gitCredentialId` | *string* | :heavy_check_mark: | N/A | diff --git a/docs/models/link2.md b/docs/models/link2.md index 3687d9c2..20fd4706 100644 --- a/docs/models/link2.md +++ b/docs/models/link2.md @@ -18,7 +18,7 @@ let value: Link2 = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.UpdateProjectDataCacheLinkType](../models/updateprojectdatacachelinktype.md) | :heavy_check_mark: | N/A | +| `type` | *"github-limited"* | :heavy_check_mark: | N/A | | `createdAt` | *number* | :heavy_minus_sign: | N/A | | `updatedAt` | *number* | :heavy_minus_sign: | N/A | | `org` | *string* | :heavy_check_mark: | N/A | diff --git a/docs/models/link3.md b/docs/models/link3.md index 74388f67..f25892d2 100644 --- a/docs/models/link3.md +++ b/docs/models/link3.md @@ -23,7 +23,7 @@ let value: Link3 = { | `repoOwnerId` | *number* | :heavy_minus_sign: | A new field, should be included in all new project links, is being added just in time when a deployment is created. This is needed for Protected Git scopes. | | `repo` | *string* | :heavy_minus_sign: | N/A | | `repoId` | *number* | :heavy_minus_sign: | N/A | -| `type` | [models.UpdateProjectDataCacheLinkProjectsType](../models/updateprojectdatacachelinkprojectstype.md) | :heavy_check_mark: | N/A | +| `type` | *"github-custom-host"* | :heavy_check_mark: | N/A | | `host` | *string* | :heavy_check_mark: | N/A | | `createdAt` | *number* | :heavy_minus_sign: | N/A | | `deployHooks` | [models.UpdateProjectDataCacheLinkDeployHooks](../models/updateprojectdatacachelinkdeployhooks.md)[] | :heavy_check_mark: | N/A | diff --git a/docs/models/link4.md b/docs/models/link4.md index 163d758f..aaeb91fe 100644 --- a/docs/models/link4.md +++ b/docs/models/link4.md @@ -28,7 +28,7 @@ let value: Link4 = { | `projectNamespace` | *string* | :heavy_check_mark: | N/A | | `projectOwnerId` | *number* | :heavy_minus_sign: | A new field, should be included in all new project links, is being added just in time when a deployment is created. This is needed for Protected Git scopes. This is the id of the top level group that a namespace belongs to. Gitlab supports group nesting (up to 20 levels). | | `projectUrl` | *string* | :heavy_check_mark: | N/A | -| `type` | [models.UpdateProjectDataCacheLinkProjectsResponseType](../models/updateprojectdatacachelinkprojectsresponsetype.md) | :heavy_check_mark: | N/A | +| `type` | *"gitlab"* | :heavy_check_mark: | N/A | | `createdAt` | *number* | :heavy_minus_sign: | N/A | | `deployHooks` | [models.UpdateProjectDataCacheLinkProjectsDeployHooks](../models/updateprojectdatacachelinkprojectsdeployhooks.md)[] | :heavy_check_mark: | N/A | | `gitCredentialId` | *string* | :heavy_check_mark: | N/A | diff --git a/docs/models/link5.md b/docs/models/link5.md index 44248492..59124b37 100644 --- a/docs/models/link5.md +++ b/docs/models/link5.md @@ -32,7 +32,7 @@ let value: Link5 = { | `name` | *string* | :heavy_check_mark: | N/A | | `slug` | *string* | :heavy_check_mark: | N/A | | `owner` | *string* | :heavy_check_mark: | N/A | -| `type` | [models.UpdateProjectDataCacheLinkProjectsResponse200Type](../models/updateprojectdatacachelinkprojectsresponse200type.md) | :heavy_check_mark: | N/A | +| `type` | *"bitbucket"* | :heavy_check_mark: | N/A | | `uuid` | *string* | :heavy_check_mark: | N/A | | `workspaceUuid` | *string* | :heavy_check_mark: | N/A | | `createdAt` | *number* | :heavy_minus_sign: | N/A | diff --git a/docs/models/linktype.md b/docs/models/linktype.md deleted file mode 100644 index 1606216d..00000000 --- a/docs/models/linktype.md +++ /dev/null @@ -1,15 +0,0 @@ -# LinkType - -## Example Usage - -```typescript -import { LinkType } from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: LinkType = "github"; -``` - -## Values - -```typescript -"github" -``` \ No newline at end of file diff --git a/docs/models/listaliasesprotectionbypass1.md b/docs/models/listaliasesprotectionbypass1.md index 9670a25b..d7bc65b6 100644 --- a/docs/models/listaliasesprotectionbypass1.md +++ b/docs/models/listaliasesprotectionbypass1.md @@ -16,9 +16,9 @@ let value: ListAliasesProtectionBypass1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `createdBy` | *string* | :heavy_check_mark: | N/A | -| `scope` | [models.ListAliasesProtectionBypassScope](../models/listaliasesprotectionbypassscope.md) | :heavy_check_mark: | N/A | -| `expires` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `createdBy` | *string* | :heavy_check_mark: | N/A | +| `scope` | *"shareable-link"* | :heavy_check_mark: | N/A | +| `expires` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/listaliasesprotectionbypass2.md b/docs/models/listaliasesprotectionbypass2.md index e77bb473..c94faee4 100644 --- a/docs/models/listaliasesprotectionbypass2.md +++ b/docs/models/listaliasesprotectionbypass2.md @@ -18,10 +18,10 @@ let value: ListAliasesProtectionBypass2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `lastUpdatedAt` | *number* | :heavy_check_mark: | N/A | -| `lastUpdatedBy` | *string* | :heavy_check_mark: | N/A | -| `access` | [models.ListAliasesProtectionBypassAccess](../models/listaliasesprotectionbypassaccess.md) | :heavy_check_mark: | N/A | -| `scope` | [models.ListAliasesProtectionBypassAliasesScope](../models/listaliasesprotectionbypassaliasesscope.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `lastUpdatedAt` | *number* | :heavy_check_mark: | N/A | +| `lastUpdatedBy` | *string* | :heavy_check_mark: | N/A | +| `access` | [models.ListAliasesProtectionBypassAccess](../models/listaliasesprotectionbypassaccess.md) | :heavy_check_mark: | N/A | +| `scope` | *"user"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/listaliasesprotectionbypass3.md b/docs/models/listaliasesprotectionbypass3.md index ca3b60c0..4febfb49 100644 --- a/docs/models/listaliasesprotectionbypass3.md +++ b/docs/models/listaliasesprotectionbypass3.md @@ -16,8 +16,8 @@ let value: ListAliasesProtectionBypass3 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `createdBy` | *string* | :heavy_check_mark: | N/A | -| `scope` | [models.ListAliasesProtectionBypassAliasesResponseScope](../models/listaliasesprotectionbypassaliasesresponsescope.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `createdBy` | *string* | :heavy_check_mark: | N/A | +| `scope` | *"alias-protection-override"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/listaliasesprotectionbypass4.md b/docs/models/listaliasesprotectionbypass4.md index 9d93ae1e..e9a909ff 100644 --- a/docs/models/listaliasesprotectionbypass4.md +++ b/docs/models/listaliasesprotectionbypass4.md @@ -17,9 +17,9 @@ let value: ListAliasesProtectionBypass4 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `lastUpdatedAt` | *number* | :heavy_check_mark: | N/A | -| `lastUpdatedBy` | *string* | :heavy_check_mark: | N/A | -| `scope` | [models.ListAliasesProtectionBypassAliasesResponse200Scope](../models/listaliasesprotectionbypassaliasesresponse200scope.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `lastUpdatedAt` | *number* | :heavy_check_mark: | N/A | +| `lastUpdatedBy` | *string* | :heavy_check_mark: | N/A | +| `scope` | *"email_invite"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/listaliasesprotectionbypassaliasesresponse200scope.md b/docs/models/listaliasesprotectionbypassaliasesresponse200scope.md deleted file mode 100644 index 5a500e90..00000000 --- a/docs/models/listaliasesprotectionbypassaliasesresponse200scope.md +++ /dev/null @@ -1,15 +0,0 @@ -# ListAliasesProtectionBypassAliasesResponse200Scope - -## Example Usage - -```typescript -import { ListAliasesProtectionBypassAliasesResponse200Scope } from "@vercel/sdk/models/listaliasesop.js"; - -let value: ListAliasesProtectionBypassAliasesResponse200Scope = "email_invite"; -``` - -## Values - -```typescript -"email_invite" -``` \ No newline at end of file diff --git a/docs/models/listaliasesprotectionbypassaliasesresponsescope.md b/docs/models/listaliasesprotectionbypassaliasesresponsescope.md deleted file mode 100644 index 8fabcb29..00000000 --- a/docs/models/listaliasesprotectionbypassaliasesresponsescope.md +++ /dev/null @@ -1,16 +0,0 @@ -# ListAliasesProtectionBypassAliasesResponseScope - -## Example Usage - -```typescript -import { ListAliasesProtectionBypassAliasesResponseScope } from "@vercel/sdk/models/listaliasesop.js"; - -let value: ListAliasesProtectionBypassAliasesResponseScope = - "alias-protection-override"; -``` - -## Values - -```typescript -"alias-protection-override" -``` \ No newline at end of file diff --git a/docs/models/listaliasesprotectionbypassaliasesscope.md b/docs/models/listaliasesprotectionbypassaliasesscope.md deleted file mode 100644 index 13211c6d..00000000 --- a/docs/models/listaliasesprotectionbypassaliasesscope.md +++ /dev/null @@ -1,15 +0,0 @@ -# ListAliasesProtectionBypassAliasesScope - -## Example Usage - -```typescript -import { ListAliasesProtectionBypassAliasesScope } from "@vercel/sdk/models/listaliasesop.js"; - -let value: ListAliasesProtectionBypassAliasesScope = "user"; -``` - -## Values - -```typescript -"user" -``` \ No newline at end of file diff --git a/docs/models/listaliasesprotectionbypassscope.md b/docs/models/listaliasesprotectionbypassscope.md deleted file mode 100644 index 62ff8965..00000000 --- a/docs/models/listaliasesprotectionbypassscope.md +++ /dev/null @@ -1,15 +0,0 @@ -# ListAliasesProtectionBypassScope - -## Example Usage - -```typescript -import { ListAliasesProtectionBypassScope } from "@vercel/sdk/models/listaliasesop.js"; - -let value: ListAliasesProtectionBypassScope = "shareable-link"; -``` - -## Values - -```typescript -"shareable-link" -``` \ No newline at end of file diff --git a/docs/models/listdeploymentaliasesprotectionbypass1.md b/docs/models/listdeploymentaliasesprotectionbypass1.md index 59a2a842..da551e41 100644 --- a/docs/models/listdeploymentaliasesprotectionbypass1.md +++ b/docs/models/listdeploymentaliasesprotectionbypass1.md @@ -16,9 +16,9 @@ let value: ListDeploymentAliasesProtectionBypass1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `createdBy` | *string* | :heavy_check_mark: | N/A | -| `scope` | [models.ListDeploymentAliasesProtectionBypassScope](../models/listdeploymentaliasesprotectionbypassscope.md) | :heavy_check_mark: | N/A | -| `expires` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `createdBy` | *string* | :heavy_check_mark: | N/A | +| `scope` | *"shareable-link"* | :heavy_check_mark: | N/A | +| `expires` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/listdeploymentaliasesprotectionbypass2.md b/docs/models/listdeploymentaliasesprotectionbypass2.md index 15bb4e1e..2f936570 100644 --- a/docs/models/listdeploymentaliasesprotectionbypass2.md +++ b/docs/models/listdeploymentaliasesprotectionbypass2.md @@ -18,10 +18,10 @@ let value: ListDeploymentAliasesProtectionBypass2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `lastUpdatedAt` | *number* | :heavy_check_mark: | N/A | -| `lastUpdatedBy` | *string* | :heavy_check_mark: | N/A | -| `access` | [models.ListDeploymentAliasesProtectionBypassAccess](../models/listdeploymentaliasesprotectionbypassaccess.md) | :heavy_check_mark: | N/A | -| `scope` | [models.ListDeploymentAliasesProtectionBypassAliasesScope](../models/listdeploymentaliasesprotectionbypassaliasesscope.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `lastUpdatedAt` | *number* | :heavy_check_mark: | N/A | +| `lastUpdatedBy` | *string* | :heavy_check_mark: | N/A | +| `access` | [models.ListDeploymentAliasesProtectionBypassAccess](../models/listdeploymentaliasesprotectionbypassaccess.md) | :heavy_check_mark: | N/A | +| `scope` | *"user"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/listdeploymentaliasesprotectionbypass3.md b/docs/models/listdeploymentaliasesprotectionbypass3.md index 06d06116..784e1928 100644 --- a/docs/models/listdeploymentaliasesprotectionbypass3.md +++ b/docs/models/listdeploymentaliasesprotectionbypass3.md @@ -16,8 +16,8 @@ let value: ListDeploymentAliasesProtectionBypass3 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `createdBy` | *string* | :heavy_check_mark: | N/A | -| `scope` | [models.ListDeploymentAliasesProtectionBypassAliasesResponseScope](../models/listdeploymentaliasesprotectionbypassaliasesresponsescope.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `createdBy` | *string* | :heavy_check_mark: | N/A | +| `scope` | *"alias-protection-override"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/listdeploymentaliasesprotectionbypass4.md b/docs/models/listdeploymentaliasesprotectionbypass4.md index 7a9eee61..e1464574 100644 --- a/docs/models/listdeploymentaliasesprotectionbypass4.md +++ b/docs/models/listdeploymentaliasesprotectionbypass4.md @@ -17,9 +17,9 @@ let value: ListDeploymentAliasesProtectionBypass4 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `lastUpdatedAt` | *number* | :heavy_check_mark: | N/A | -| `lastUpdatedBy` | *string* | :heavy_check_mark: | N/A | -| `scope` | [models.ListDeploymentAliasesProtectionBypassAliasesResponse200Scope](../models/listdeploymentaliasesprotectionbypassaliasesresponse200scope.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `lastUpdatedAt` | *number* | :heavy_check_mark: | N/A | +| `lastUpdatedBy` | *string* | :heavy_check_mark: | N/A | +| `scope` | *"email_invite"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/listdeploymentaliasesprotectionbypassaliasesresponse200scope.md b/docs/models/listdeploymentaliasesprotectionbypassaliasesresponse200scope.md deleted file mode 100644 index 98c1b60b..00000000 --- a/docs/models/listdeploymentaliasesprotectionbypassaliasesresponse200scope.md +++ /dev/null @@ -1,16 +0,0 @@ -# ListDeploymentAliasesProtectionBypassAliasesResponse200Scope - -## Example Usage - -```typescript -import { ListDeploymentAliasesProtectionBypassAliasesResponse200Scope } from "@vercel/sdk/models/listdeploymentaliasesop.js"; - -let value: ListDeploymentAliasesProtectionBypassAliasesResponse200Scope = - "email_invite"; -``` - -## Values - -```typescript -"email_invite" -``` \ No newline at end of file diff --git a/docs/models/listdeploymentaliasesprotectionbypassaliasesresponsescope.md b/docs/models/listdeploymentaliasesprotectionbypassaliasesresponsescope.md deleted file mode 100644 index b24d5d85..00000000 --- a/docs/models/listdeploymentaliasesprotectionbypassaliasesresponsescope.md +++ /dev/null @@ -1,16 +0,0 @@ -# ListDeploymentAliasesProtectionBypassAliasesResponseScope - -## Example Usage - -```typescript -import { ListDeploymentAliasesProtectionBypassAliasesResponseScope } from "@vercel/sdk/models/listdeploymentaliasesop.js"; - -let value: ListDeploymentAliasesProtectionBypassAliasesResponseScope = - "alias-protection-override"; -``` - -## Values - -```typescript -"alias-protection-override" -``` \ No newline at end of file diff --git a/docs/models/listdeploymentaliasesprotectionbypassaliasesscope.md b/docs/models/listdeploymentaliasesprotectionbypassaliasesscope.md deleted file mode 100644 index 53be5301..00000000 --- a/docs/models/listdeploymentaliasesprotectionbypassaliasesscope.md +++ /dev/null @@ -1,15 +0,0 @@ -# ListDeploymentAliasesProtectionBypassAliasesScope - -## Example Usage - -```typescript -import { ListDeploymentAliasesProtectionBypassAliasesScope } from "@vercel/sdk/models/listdeploymentaliasesop.js"; - -let value: ListDeploymentAliasesProtectionBypassAliasesScope = "user"; -``` - -## Values - -```typescript -"user" -``` \ No newline at end of file diff --git a/docs/models/listdeploymentaliasesprotectionbypassscope.md b/docs/models/listdeploymentaliasesprotectionbypassscope.md deleted file mode 100644 index 5941b516..00000000 --- a/docs/models/listdeploymentaliasesprotectionbypassscope.md +++ /dev/null @@ -1,15 +0,0 @@ -# ListDeploymentAliasesProtectionBypassScope - -## Example Usage - -```typescript -import { ListDeploymentAliasesProtectionBypassScope } from "@vercel/sdk/models/listdeploymentaliasesop.js"; - -let value: ListDeploymentAliasesProtectionBypassScope = "shareable-link"; -``` - -## Values - -```typescript -"shareable-link" -``` \ No newline at end of file diff --git a/docs/models/missing.md b/docs/models/missing.md index a37f2a0f..de2f0828 100644 --- a/docs/models/missing.md +++ b/docs/models/missing.md @@ -21,3 +21,21 @@ const value: models.Missing2 = { }; ``` +### `models.Missing2` + +```typescript +const value: models.Missing2 = { + type: "header", + key: "", +}; +``` + +### `models.Missing2` + +```typescript +const value: models.Missing2 = { + type: "header", + key: "", +}; +``` + diff --git a/docs/models/missing1.md b/docs/models/missing1.md index b35e1415..7f260450 100644 --- a/docs/models/missing1.md +++ b/docs/models/missing1.md @@ -13,7 +13,7 @@ let value: Missing1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| `type` | [models.MissingType](../models/missingtype.md) | :heavy_check_mark: | N/A | -| `value` | *models.MissingValue* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"host"* | :heavy_check_mark: | N/A | +| `value` | *models.MissingValue* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/missingtype.md b/docs/models/missingtype.md deleted file mode 100644 index 9de5460e..00000000 --- a/docs/models/missingtype.md +++ /dev/null @@ -1,15 +0,0 @@ -# MissingType - -## Example Usage - -```typescript -import { MissingType } from "@vercel/sdk/models/createdeploymentop.js"; - -let value: MissingType = "host"; -``` - -## Values - -```typescript -"host" -``` \ No newline at end of file diff --git a/docs/models/one4.md b/docs/models/one4.md index 3a7c9872..6e10eb89 100644 --- a/docs/models/one4.md +++ b/docs/models/one4.md @@ -12,6 +12,6 @@ let value: One4 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `code` | [models.GetOrder1DomainsRegistrarResponseCode](../models/getorder1domainsregistrarresponsecode.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------- | -------------------- | -------------------- | -------------------- | +| `code` | *"unexpected-error"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/onecode.md b/docs/models/onecode.md deleted file mode 100644 index 8ab8afcb..00000000 --- a/docs/models/onecode.md +++ /dev/null @@ -1,15 +0,0 @@ -# OneCode - -## Example Usage - -```typescript -import { OneCode } from "@vercel/sdk/models/getorderop.js"; - -let value: OneCode = "payment-failed"; -``` - -## Values - -```typescript -"payment-failed" -``` \ No newline at end of file diff --git a/docs/models/projectaccess1.md b/docs/models/projectaccess1.md index 4d830ab0..53c5d868 100644 --- a/docs/models/projectaccess1.md +++ b/docs/models/projectaccess1.md @@ -12,6 +12,6 @@ let value: ProjectAccess1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `access` | [models.CreateDrainProjectAccessAccess](../models/createdrainprojectaccessaccess.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `access` | *"all"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/projectaccess2.md b/docs/models/projectaccess2.md index ef959470..0c910c2d 100644 --- a/docs/models/projectaccess2.md +++ b/docs/models/projectaccess2.md @@ -15,7 +15,7 @@ let value: ProjectAccess2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `access` | [models.ProjectAccessAccess](../models/projectaccessaccess.md) | :heavy_check_mark: | N/A | -| `projectIds` | *string*[] | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `access` | *"some"* | :heavy_check_mark: | N/A | +| `projectIds` | *string*[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/projectaccessaccess.md b/docs/models/projectaccessaccess.md deleted file mode 100644 index 9fa894ff..00000000 --- a/docs/models/projectaccessaccess.md +++ /dev/null @@ -1,15 +0,0 @@ -# ProjectAccessAccess - -## Example Usage - -```typescript -import { ProjectAccessAccess } from "@vercel/sdk/models/createdrainop.js"; - -let value: ProjectAccessAccess = "some"; -``` - -## Values - -```typescript -"some" -``` \ No newline at end of file diff --git a/docs/models/protectionbypass1.md b/docs/models/protectionbypass1.md index 05d532ed..fdecec64 100644 --- a/docs/models/protectionbypass1.md +++ b/docs/models/protectionbypass1.md @@ -16,10 +16,10 @@ let value: ProtectionBypass1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `createdBy` | *string* | :heavy_check_mark: | N/A | -| `scope` | [models.UpdateProjectDataCacheProtectionBypassScope](../models/updateprojectdatacacheprotectionbypassscope.md) | :heavy_check_mark: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `configurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `createdBy` | *string* | :heavy_check_mark: | N/A | +| `scope` | *"integration-automation-bypass"* | :heavy_check_mark: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `configurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/protectionbypass2.md b/docs/models/protectionbypass2.md index 9ddf3ac6..52b9e870 100644 --- a/docs/models/protectionbypass2.md +++ b/docs/models/protectionbypass2.md @@ -14,8 +14,8 @@ let value: ProtectionBypass2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `createdBy` | *string* | :heavy_check_mark: | N/A | -| `scope` | [models.ProtectionBypassScope](../models/protectionbypassscope.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `createdBy` | *string* | :heavy_check_mark: | N/A | +| `scope` | *"automation-bypass"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/protectionbypass3.md b/docs/models/protectionbypass3.md index faca2606..4124ac0a 100644 --- a/docs/models/protectionbypass3.md +++ b/docs/models/protectionbypass3.md @@ -16,8 +16,8 @@ let value: ProtectionBypass3 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `createdBy` | *string* | :heavy_check_mark: | N/A | -| `scope` | [models.GetAliasProtectionBypassAliasesResponseScope](../models/getaliasprotectionbypassaliasesresponsescope.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `createdBy` | *string* | :heavy_check_mark: | N/A | +| `scope` | *"alias-protection-override"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/protectionbypass4.md b/docs/models/protectionbypass4.md index 7df18060..07b1a744 100644 --- a/docs/models/protectionbypass4.md +++ b/docs/models/protectionbypass4.md @@ -17,9 +17,9 @@ let value: ProtectionBypass4 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `lastUpdatedAt` | *number* | :heavy_check_mark: | N/A | -| `lastUpdatedBy` | *string* | :heavy_check_mark: | N/A | -| `scope` | [models.GetAliasProtectionBypassAliasesResponse200Scope](../models/getaliasprotectionbypassaliasesresponse200scope.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `lastUpdatedAt` | *number* | :heavy_check_mark: | N/A | +| `lastUpdatedBy` | *string* | :heavy_check_mark: | N/A | +| `scope` | *"email_invite"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/protectionbypassscope.md b/docs/models/protectionbypassscope.md deleted file mode 100644 index b325c46e..00000000 --- a/docs/models/protectionbypassscope.md +++ /dev/null @@ -1,15 +0,0 @@ -# ProtectionBypassScope - -## Example Usage - -```typescript -import { ProtectionBypassScope } from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: ProtectionBypassScope = "automation-bypass"; -``` - -## Values - -```typescript -"automation-bypass" -``` \ No newline at end of file diff --git a/docs/models/purpose1.md b/docs/models/purpose1.md index 15647014..92877756 100644 --- a/docs/models/purpose1.md +++ b/docs/models/purpose1.md @@ -13,7 +13,7 @@ let value: Purpose1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| `type` | [models.PurposeType](../models/purposetype.md) | :heavy_check_mark: | N/A | -| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"flags"* | :heavy_check_mark: | N/A | +| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/purpose2.md b/docs/models/purpose2.md index 59b21bf1..fc01c933 100644 --- a/docs/models/purpose2.md +++ b/docs/models/purpose2.md @@ -13,7 +13,7 @@ let value: Purpose2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `type` | [models.CreateEdgeConfigPurposeType](../models/createedgeconfigpurposetype.md) | :heavy_check_mark: | N/A | -| `resourceId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------- | ------------------- | ------------------- | ------------------- | +| `type` | *"experimentation"* | :heavy_check_mark: | N/A | +| `resourceId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/purposetype.md b/docs/models/purposetype.md deleted file mode 100644 index a05ebebb..00000000 --- a/docs/models/purposetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# PurposeType - -## Example Usage - -```typescript -import { PurposeType } from "@vercel/sdk/models/createedgeconfigop.js"; - -let value: PurposeType = "flags"; -``` - -## Values - -```typescript -"flags" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthint1.md b/docs/models/removeprojectenvcontenthint1.md index 990e7402..f61fabf6 100644 --- a/docs/models/removeprojectenvcontenthint1.md +++ b/docs/models/removeprojectenvcontenthint1.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHint1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintType](../models/removeprojectenvcontenthinttype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"redis-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthint10.md b/docs/models/removeprojectenvcontenthint10.md index 6cf299a6..5f132e3c 100644 --- a/docs/models/removeprojectenvcontenthint10.md +++ b/docs/models/removeprojectenvcontenthint10.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHint10 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody110type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-host"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthint11.md b/docs/models/removeprojectenvcontenthint11.md index af725bc8..875f42bc 100644 --- a/docs/models/removeprojectenvcontenthint11.md +++ b/docs/models/removeprojectenvcontenthint11.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHint11 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody111type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-password"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthint12.md b/docs/models/removeprojectenvcontenthint12.md index b035a9ee..e10f5ed7 100644 --- a/docs/models/removeprojectenvcontenthint12.md +++ b/docs/models/removeprojectenvcontenthint12.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHint12 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody112type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-database"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthint13.md b/docs/models/removeprojectenvcontenthint13.md index 8f230292..ca75ee5b 100644 --- a/docs/models/removeprojectenvcontenthint13.md +++ b/docs/models/removeprojectenvcontenthint13.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHint13 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody113type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-url-no-ssl"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthint14.md b/docs/models/removeprojectenvcontenthint14.md index 15ba42c6..a8724c6c 100644 --- a/docs/models/removeprojectenvcontenthint14.md +++ b/docs/models/removeprojectenvcontenthint14.md @@ -16,10 +16,10 @@ let value: RemoveProjectEnvContentHint14 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody114type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationProductId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"integration-store-secret"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationProductId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthint15.md b/docs/models/removeprojectenvcontenthint15.md index 6ce4cab4..6975f32f 100644 --- a/docs/models/removeprojectenvcontenthint15.md +++ b/docs/models/removeprojectenvcontenthint15.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHint15 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody115type.md) | :heavy_check_mark: | N/A | -| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------- | --------------------------- | --------------------------- | --------------------------- | +| `type` | *"flags-connection-string"* | :heavy_check_mark: | N/A | +| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthint2.md b/docs/models/removeprojectenvcontenthint2.md index a9acf7ee..d837dabd 100644 --- a/docs/models/removeprojectenvcontenthint2.md +++ b/docs/models/removeprojectenvcontenthint2.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHint2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `type` | [models.RemoveProjectEnvContentHintProjectsType](../models/removeprojectenvcontenthintprojectstype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `type` | *"redis-rest-api-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthint3.md b/docs/models/removeprojectenvcontenthint3.md index c5135d24..1c54aa12 100644 --- a/docs/models/removeprojectenvcontenthint3.md +++ b/docs/models/removeprojectenvcontenthint3.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHint3 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponseType](../models/removeprojectenvcontenthintprojectsresponsetype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `type` | *"redis-rest-api-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthint4.md b/docs/models/removeprojectenvcontenthint4.md index 89792c65..a716a2b3 100644 --- a/docs/models/removeprojectenvcontenthint4.md +++ b/docs/models/removeprojectenvcontenthint4.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHint4 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200Type](../models/removeprojectenvcontenthintprojectsresponse200type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | +| `type` | *"redis-rest-api-read-only-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthint5.md b/docs/models/removeprojectenvcontenthint5.md index 0e6b363a..7f2c3566 100644 --- a/docs/models/removeprojectenvcontenthint5.md +++ b/docs/models/removeprojectenvcontenthint5.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHint5 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONType](../models/removeprojectenvcontenthintprojectsresponse200applicationjsontype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `type` | *"blob-read-write-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthint6.md b/docs/models/removeprojectenvcontenthint6.md index be431e4c..29f23714 100644 --- a/docs/models/removeprojectenvcontenthint6.md +++ b/docs/models/removeprojectenvcontenthint6.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHint6 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebodytype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthint7.md b/docs/models/removeprojectenvcontenthint7.md index 722736a1..003df83a 100644 --- a/docs/models/removeprojectenvcontenthint7.md +++ b/docs/models/removeprojectenvcontenthint7.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHint7 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody1type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"postgres-url-non-pooling"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthint8.md b/docs/models/removeprojectenvcontenthint8.md index 102c7974..0f1e906f 100644 --- a/docs/models/removeprojectenvcontenthint8.md +++ b/docs/models/removeprojectenvcontenthint8.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHint8 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody18type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-prisma-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthint9.md b/docs/models/removeprojectenvcontenthint9.md index ff2be237..037bfa41 100644 --- a/docs/models/removeprojectenvcontenthint9.md +++ b/docs/models/removeprojectenvcontenthint9.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHint9 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody19type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-user"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojects1.md b/docs/models/removeprojectenvcontenthintprojects1.md index 06a849ac..96ad67fe 100644 --- a/docs/models/removeprojectenvcontenthintprojects1.md +++ b/docs/models/removeprojectenvcontenthintprojects1.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjects1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody2type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"redis-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojects10.md b/docs/models/removeprojectenvcontenthintprojects10.md index fe53a781..52fe3996 100644 --- a/docs/models/removeprojectenvcontenthintprojects10.md +++ b/docs/models/removeprojectenvcontenthintprojects10.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjects10 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody210type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-host"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojects11.md b/docs/models/removeprojectenvcontenthintprojects11.md index fcb261e0..64df914c 100644 --- a/docs/models/removeprojectenvcontenthintprojects11.md +++ b/docs/models/removeprojectenvcontenthintprojects11.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjects11 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody211type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-password"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojects12.md b/docs/models/removeprojectenvcontenthintprojects12.md index 37bebfe9..a6255bc4 100644 --- a/docs/models/removeprojectenvcontenthintprojects12.md +++ b/docs/models/removeprojectenvcontenthintprojects12.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjects12 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody212type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-database"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojects13.md b/docs/models/removeprojectenvcontenthintprojects13.md index 44ff4e11..77a31a42 100644 --- a/docs/models/removeprojectenvcontenthintprojects13.md +++ b/docs/models/removeprojectenvcontenthintprojects13.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjects13 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody213type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-url-no-ssl"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojects14.md b/docs/models/removeprojectenvcontenthintprojects14.md index 39843702..722756fc 100644 --- a/docs/models/removeprojectenvcontenthintprojects14.md +++ b/docs/models/removeprojectenvcontenthintprojects14.md @@ -16,10 +16,10 @@ let value: RemoveProjectEnvContentHintProjects14 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody214type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationProductId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"integration-store-secret"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationProductId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojects15.md b/docs/models/removeprojectenvcontenthintprojects15.md index 258ada08..6ca485dd 100644 --- a/docs/models/removeprojectenvcontenthintprojects15.md +++ b/docs/models/removeprojectenvcontenthintprojects15.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjects15 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody215type.md) | :heavy_check_mark: | N/A | -| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------- | --------------------------- | --------------------------- | --------------------------- | +| `type` | *"flags-connection-string"* | :heavy_check_mark: | N/A | +| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojects2.md b/docs/models/removeprojectenvcontenthintprojects2.md index a84c6fd2..3c3166f0 100644 --- a/docs/models/removeprojectenvcontenthintprojects2.md +++ b/docs/models/removeprojectenvcontenthintprojects2.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjects2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody22type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `type` | *"redis-rest-api-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojects3.md b/docs/models/removeprojectenvcontenthintprojects3.md index 6c22307e..8915c443 100644 --- a/docs/models/removeprojectenvcontenthintprojects3.md +++ b/docs/models/removeprojectenvcontenthintprojects3.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjects3 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody23type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `type` | *"redis-rest-api-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojects4.md b/docs/models/removeprojectenvcontenthintprojects4.md index 00d155a5..2650aeff 100644 --- a/docs/models/removeprojectenvcontenthintprojects4.md +++ b/docs/models/removeprojectenvcontenthintprojects4.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjects4 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody24type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | +| `type` | *"redis-rest-api-read-only-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojects5.md b/docs/models/removeprojectenvcontenthintprojects5.md index eda525ef..b54e0834 100644 --- a/docs/models/removeprojectenvcontenthintprojects5.md +++ b/docs/models/removeprojectenvcontenthintprojects5.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjects5 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody25type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `type` | *"blob-read-write-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojects6.md b/docs/models/removeprojectenvcontenthintprojects6.md index 01d82cc8..daa6067f 100644 --- a/docs/models/removeprojectenvcontenthintprojects6.md +++ b/docs/models/removeprojectenvcontenthintprojects6.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjects6 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody26type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojects7.md b/docs/models/removeprojectenvcontenthintprojects7.md index 363f41c6..7d068440 100644 --- a/docs/models/removeprojectenvcontenthintprojects7.md +++ b/docs/models/removeprojectenvcontenthintprojects7.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjects7 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody27type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"postgres-url-non-pooling"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojects8.md b/docs/models/removeprojectenvcontenthintprojects8.md index a20b9a34..dd41b4d1 100644 --- a/docs/models/removeprojectenvcontenthintprojects8.md +++ b/docs/models/removeprojectenvcontenthintprojects8.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjects8 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody28type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-prisma-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojects9.md b/docs/models/removeprojectenvcontenthintprojects9.md index 3918effa..cf1f9f77 100644 --- a/docs/models/removeprojectenvcontenthintprojects9.md +++ b/docs/models/removeprojectenvcontenthintprojects9.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjects9 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody29type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-user"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse1.md b/docs/models/removeprojectenvcontenthintprojectsresponse1.md index 2d1d4bb8..01170409 100644 --- a/docs/models/removeprojectenvcontenthintprojectsresponse1.md +++ b/docs/models/removeprojectenvcontenthintprojectsresponse1.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjectsResponse1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody3type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"redis-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse10.md b/docs/models/removeprojectenvcontenthintprojectsresponse10.md index 0411ff22..bdcd8bd7 100644 --- a/docs/models/removeprojectenvcontenthintprojectsresponse10.md +++ b/docs/models/removeprojectenvcontenthintprojectsresponse10.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjectsResponse10 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody310type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-host"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse11.md b/docs/models/removeprojectenvcontenthintprojectsresponse11.md index 8f5e7173..aa9ace76 100644 --- a/docs/models/removeprojectenvcontenthintprojectsresponse11.md +++ b/docs/models/removeprojectenvcontenthintprojectsresponse11.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjectsResponse11 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody311type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-password"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse12.md b/docs/models/removeprojectenvcontenthintprojectsresponse12.md index c7becbf9..86a1392e 100644 --- a/docs/models/removeprojectenvcontenthintprojectsresponse12.md +++ b/docs/models/removeprojectenvcontenthintprojectsresponse12.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjectsResponse12 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody312type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-database"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse13.md b/docs/models/removeprojectenvcontenthintprojectsresponse13.md index a7cc30c4..76ce6f11 100644 --- a/docs/models/removeprojectenvcontenthintprojectsresponse13.md +++ b/docs/models/removeprojectenvcontenthintprojectsresponse13.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjectsResponse13 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody313type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-url-no-ssl"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse14.md b/docs/models/removeprojectenvcontenthintprojectsresponse14.md index 62e55c1d..8f72e4a1 100644 --- a/docs/models/removeprojectenvcontenthintprojectsresponse14.md +++ b/docs/models/removeprojectenvcontenthintprojectsresponse14.md @@ -16,10 +16,10 @@ let value: RemoveProjectEnvContentHintProjectsResponse14 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody314type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationProductId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"integration-store-secret"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationProductId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse15.md b/docs/models/removeprojectenvcontenthintprojectsresponse15.md index 076ae218..f19118c8 100644 --- a/docs/models/removeprojectenvcontenthintprojectsresponse15.md +++ b/docs/models/removeprojectenvcontenthintprojectsresponse15.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjectsResponse15 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody315type.md) | :heavy_check_mark: | N/A | -| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------- | --------------------------- | --------------------------- | --------------------------- | +| `type` | *"flags-connection-string"* | :heavy_check_mark: | N/A | +| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse2.md b/docs/models/removeprojectenvcontenthintprojectsresponse2.md index 6c033d02..814dea61 100644 --- a/docs/models/removeprojectenvcontenthintprojectsresponse2.md +++ b/docs/models/removeprojectenvcontenthintprojectsresponse2.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjectsResponse2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody32type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `type` | *"redis-rest-api-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody110type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody110type.md deleted file mode 100644 index 273fcd96..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody110type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type = - "postgres-host"; -``` - -## Values - -```typescript -"postgres-host" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody111type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody111type.md deleted file mode 100644 index 6560f8bd..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody111type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type = - "postgres-password"; -``` - -## Values - -```typescript -"postgres-password" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody112type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody112type.md deleted file mode 100644 index 6a03c343..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody112type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type = - "postgres-database"; -``` - -## Values - -```typescript -"postgres-database" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody113type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody113type.md deleted file mode 100644 index d1616a61..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody113type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type = - "postgres-url-no-ssl"; -``` - -## Values - -```typescript -"postgres-url-no-ssl" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody114type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody114type.md deleted file mode 100644 index 69cfe287..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody114type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type = - "integration-store-secret"; -``` - -## Values - -```typescript -"integration-store-secret" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody115type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody115type.md deleted file mode 100644 index bcb205eb..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody115type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type = - "flags-connection-string"; -``` - -## Values - -```typescript -"flags-connection-string" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody18type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody18type.md deleted file mode 100644 index 745e0c60..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody18type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type = - "postgres-prisma-url"; -``` - -## Values - -```typescript -"postgres-prisma-url" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody19type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody19type.md deleted file mode 100644 index 31fb955f..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody19type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type = - "postgres-user"; -``` - -## Values - -```typescript -"postgres-user" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody1type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody1type.md deleted file mode 100644 index 9d755c87..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody1type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type = - "postgres-url-non-pooling"; -``` - -## Values - -```typescript -"postgres-url-non-pooling" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody210type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody210type.md deleted file mode 100644 index 437a492b..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody210type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type = - "postgres-host"; -``` - -## Values - -```typescript -"postgres-host" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody211type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody211type.md deleted file mode 100644 index 33361a52..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody211type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type = - "postgres-password"; -``` - -## Values - -```typescript -"postgres-password" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody212type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody212type.md deleted file mode 100644 index f67f0833..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody212type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type = - "postgres-database"; -``` - -## Values - -```typescript -"postgres-database" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody213type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody213type.md deleted file mode 100644 index b04921d4..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody213type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type = - "postgres-url-no-ssl"; -``` - -## Values - -```typescript -"postgres-url-no-ssl" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody214type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody214type.md deleted file mode 100644 index e2030b1f..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody214type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type = - "integration-store-secret"; -``` - -## Values - -```typescript -"integration-store-secret" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody215type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody215type.md deleted file mode 100644 index b62873d0..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody215type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type = - "flags-connection-string"; -``` - -## Values - -```typescript -"flags-connection-string" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody22type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody22type.md deleted file mode 100644 index 5c308ecb..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody22type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type = - "redis-rest-api-url"; -``` - -## Values - -```typescript -"redis-rest-api-url" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody23type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody23type.md deleted file mode 100644 index 0bdca715..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody23type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type = - "redis-rest-api-token"; -``` - -## Values - -```typescript -"redis-rest-api-token" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody24type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody24type.md deleted file mode 100644 index 5e11c054..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody24type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type = - "redis-rest-api-read-only-token"; -``` - -## Values - -```typescript -"redis-rest-api-read-only-token" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody25type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody25type.md deleted file mode 100644 index 627593d3..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody25type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type = - "blob-read-write-token"; -``` - -## Values - -```typescript -"blob-read-write-token" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody26type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody26type.md deleted file mode 100644 index 9a954e97..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody26type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type = - "postgres-url"; -``` - -## Values - -```typescript -"postgres-url" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody27type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody27type.md deleted file mode 100644 index 0fdf82c8..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody27type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type = - "postgres-url-non-pooling"; -``` - -## Values - -```typescript -"postgres-url-non-pooling" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody28type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody28type.md deleted file mode 100644 index 3eb49d81..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody28type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type = - "postgres-prisma-url"; -``` - -## Values - -```typescript -"postgres-prisma-url" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody29type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody29type.md deleted file mode 100644 index 3b8d1fa4..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody29type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type = - "postgres-user"; -``` - -## Values - -```typescript -"postgres-user" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody2type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody2type.md deleted file mode 100644 index 4e7d2d40..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody2type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type = - "redis-url"; -``` - -## Values - -```typescript -"redis-url" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody310type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody310type.md deleted file mode 100644 index c1bbd716..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody310type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type = - "postgres-host"; -``` - -## Values - -```typescript -"postgres-host" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody311type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody311type.md deleted file mode 100644 index 2e02a52d..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody311type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type = - "postgres-password"; -``` - -## Values - -```typescript -"postgres-password" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody312type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody312type.md deleted file mode 100644 index f48b414d..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody312type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type = - "postgres-database"; -``` - -## Values - -```typescript -"postgres-database" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody313type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody313type.md deleted file mode 100644 index 4e4f932d..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody313type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type = - "postgres-url-no-ssl"; -``` - -## Values - -```typescript -"postgres-url-no-ssl" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody314type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody314type.md deleted file mode 100644 index e8e38768..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody314type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type = - "integration-store-secret"; -``` - -## Values - -```typescript -"integration-store-secret" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody315type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody315type.md deleted file mode 100644 index a33d87d9..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody315type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type = - "flags-connection-string"; -``` - -## Values - -```typescript -"flags-connection-string" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody32type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody32type.md deleted file mode 100644 index d4e18eaa..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody32type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type = - "redis-rest-api-url"; -``` - -## Values - -```typescript -"redis-rest-api-url" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody33type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody33type.md deleted file mode 100644 index b6a71009..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody33type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type = - "redis-rest-api-token"; -``` - -## Values - -```typescript -"redis-rest-api-token" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody34type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody34type.md deleted file mode 100644 index 7cfa806a..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody34type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type = - "redis-rest-api-read-only-token"; -``` - -## Values - -```typescript -"redis-rest-api-read-only-token" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody35type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody35type.md deleted file mode 100644 index 0eb14811..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody35type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type = - "blob-read-write-token"; -``` - -## Values - -```typescript -"blob-read-write-token" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody36type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody36type.md deleted file mode 100644 index 93308061..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody36type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type = - "postgres-url"; -``` - -## Values - -```typescript -"postgres-url" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody37type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody37type.md deleted file mode 100644 index d060dc92..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody37type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type = - "postgres-url-non-pooling"; -``` - -## Values - -```typescript -"postgres-url-non-pooling" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody38type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody38type.md deleted file mode 100644 index cb93b53e..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody38type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type = - "postgres-prisma-url"; -``` - -## Values - -```typescript -"postgres-prisma-url" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody39type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody39type.md deleted file mode 100644 index 0892d46e..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody39type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type = - "postgres-user"; -``` - -## Values - -```typescript -"postgres-user" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody3type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody3type.md deleted file mode 100644 index e6158bad..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody3type.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type = - "redis-url"; -``` - -## Values - -```typescript -"redis-url" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebodytype.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebodytype.md deleted file mode 100644 index 191f86c3..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebodytype.md +++ /dev/null @@ -1,17 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType = - "postgres-url"; -``` - -## Values - -```typescript -"postgres-url" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsontype.md b/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsontype.md deleted file mode 100644 index 66979174..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200applicationjsontype.md +++ /dev/null @@ -1,16 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONType - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONType } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONType = - "blob-read-write-token"; -``` - -## Values - -```typescript -"blob-read-write-token" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse200type.md b/docs/models/removeprojectenvcontenthintprojectsresponse200type.md deleted file mode 100644 index 775f6b66..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponse200type.md +++ /dev/null @@ -1,16 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponse200Type - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponse200Type } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: RemoveProjectEnvContentHintProjectsResponse200Type = - "redis-rest-api-read-only-token"; -``` - -## Values - -```typescript -"redis-rest-api-read-only-token" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse3.md b/docs/models/removeprojectenvcontenthintprojectsresponse3.md index 012ff09c..7339abf0 100644 --- a/docs/models/removeprojectenvcontenthintprojectsresponse3.md +++ b/docs/models/removeprojectenvcontenthintprojectsresponse3.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjectsResponse3 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody33type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `type` | *"redis-rest-api-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse4.md b/docs/models/removeprojectenvcontenthintprojectsresponse4.md index 7c0d458c..6f427907 100644 --- a/docs/models/removeprojectenvcontenthintprojectsresponse4.md +++ b/docs/models/removeprojectenvcontenthintprojectsresponse4.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjectsResponse4 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody34type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | +| `type` | *"redis-rest-api-read-only-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse5.md b/docs/models/removeprojectenvcontenthintprojectsresponse5.md index 664cd8e7..d15a9e72 100644 --- a/docs/models/removeprojectenvcontenthintprojectsresponse5.md +++ b/docs/models/removeprojectenvcontenthintprojectsresponse5.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjectsResponse5 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody35type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `type` | *"blob-read-write-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse6.md b/docs/models/removeprojectenvcontenthintprojectsresponse6.md index 37ae84b8..bb30f70a 100644 --- a/docs/models/removeprojectenvcontenthintprojectsresponse6.md +++ b/docs/models/removeprojectenvcontenthintprojectsresponse6.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjectsResponse6 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody36type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse7.md b/docs/models/removeprojectenvcontenthintprojectsresponse7.md index 000f416d..08107a53 100644 --- a/docs/models/removeprojectenvcontenthintprojectsresponse7.md +++ b/docs/models/removeprojectenvcontenthintprojectsresponse7.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjectsResponse7 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody37type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"postgres-url-non-pooling"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse8.md b/docs/models/removeprojectenvcontenthintprojectsresponse8.md index 284157ff..0133b4f9 100644 --- a/docs/models/removeprojectenvcontenthintprojectsresponse8.md +++ b/docs/models/removeprojectenvcontenthintprojectsresponse8.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjectsResponse8 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody38type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-prisma-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponse9.md b/docs/models/removeprojectenvcontenthintprojectsresponse9.md index 68751ced..8247aa26 100644 --- a/docs/models/removeprojectenvcontenthintprojectsresponse9.md +++ b/docs/models/removeprojectenvcontenthintprojectsresponse9.md @@ -13,7 +13,7 @@ let value: RemoveProjectEnvContentHintProjectsResponse9 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type](../models/removeprojectenvcontenthintprojectsresponse200applicationjsonresponsebody39type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-user"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectsresponsetype.md b/docs/models/removeprojectenvcontenthintprojectsresponsetype.md deleted file mode 100644 index 93d0ceb6..00000000 --- a/docs/models/removeprojectenvcontenthintprojectsresponsetype.md +++ /dev/null @@ -1,16 +0,0 @@ -# RemoveProjectEnvContentHintProjectsResponseType - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsResponseType } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: RemoveProjectEnvContentHintProjectsResponseType = - "redis-rest-api-token"; -``` - -## Values - -```typescript -"redis-rest-api-token" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthintprojectstype.md b/docs/models/removeprojectenvcontenthintprojectstype.md deleted file mode 100644 index c31b65f1..00000000 --- a/docs/models/removeprojectenvcontenthintprojectstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# RemoveProjectEnvContentHintProjectsType - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintProjectsType } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: RemoveProjectEnvContentHintProjectsType = "redis-rest-api-url"; -``` - -## Values - -```typescript -"redis-rest-api-url" -``` \ No newline at end of file diff --git a/docs/models/removeprojectenvcontenthinttype.md b/docs/models/removeprojectenvcontenthinttype.md deleted file mode 100644 index ba226343..00000000 --- a/docs/models/removeprojectenvcontenthinttype.md +++ /dev/null @@ -1,15 +0,0 @@ -# RemoveProjectEnvContentHintType - -## Example Usage - -```typescript -import { RemoveProjectEnvContentHintType } from "@vercel/sdk/models/removeprojectenvop.js"; - -let value: RemoveProjectEnvContentHintType = "redis-url"; -``` - -## Values - -```typescript -"redis-url" -``` \ No newline at end of file diff --git a/docs/models/responsebody4.md b/docs/models/responsebody4.md index 36951f37..dd77514a 100644 --- a/docs/models/responsebody4.md +++ b/docs/models/responsebody4.md @@ -14,8 +14,8 @@ let value: ResponseBody4 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `availableSlots` | *number* | :heavy_check_mark: | N/A | -| `reason` | [models.GetRollingReleaseBillingStatusResponseBodyRollingReleaseResponseReason](../models/getrollingreleasebillingstatusresponsebodyrollingreleaseresponsereason.md) | :heavy_check_mark: | N/A | -| `message` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------- | ------------------- | ------------------- | ------------------- | +| `availableSlots` | *number* | :heavy_check_mark: | N/A | +| `reason` | *"available_slots"* | :heavy_check_mark: | N/A | +| `message` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/responsebodyreason.md b/docs/models/responsebodyreason.md deleted file mode 100644 index 7179a73f..00000000 --- a/docs/models/responsebodyreason.md +++ /dev/null @@ -1,15 +0,0 @@ -# ResponseBodyReason - -## Example Usage - -```typescript -import { ResponseBodyReason } from "@vercel/sdk/models/getrollingreleasebillingstatusop.js"; - -let value: ResponseBodyReason = "plan_not_supported"; -``` - -## Values - -```typescript -"plan_not_supported" -``` \ No newline at end of file diff --git a/docs/models/routeshas.md b/docs/models/routeshas.md index 224a2cc5..e35f1210 100644 --- a/docs/models/routeshas.md +++ b/docs/models/routeshas.md @@ -21,3 +21,21 @@ const value: models.CreateDeploymentHas2 = { }; ``` +### `models.CreateDeploymentHas2` + +```typescript +const value: models.CreateDeploymentHas2 = { + type: "query", + key: "", +}; +``` + +### `models.CreateDeploymentHas2` + +```typescript +const value: models.CreateDeploymentHas2 = { + type: "query", + key: "", +}; +``` + diff --git a/docs/models/routesmissing.md b/docs/models/routesmissing.md index d6cdda65..4901f81c 100644 --- a/docs/models/routesmissing.md +++ b/docs/models/routesmissing.md @@ -21,3 +21,21 @@ const value: models.CancelDeploymentMissing2 = { }; ``` +### `models.CancelDeploymentMissing2` + +```typescript +const value: models.CancelDeploymentMissing2 = { + type: "header", + key: "", +}; +``` + +### `models.CancelDeploymentMissing2` + +```typescript +const value: models.CancelDeploymentMissing2 = { + type: "header", + key: "", +}; +``` + diff --git a/docs/models/scopes1.md b/docs/models/scopes1.md index 418d91dc..e4ea04a6 100644 --- a/docs/models/scopes1.md +++ b/docs/models/scopes1.md @@ -17,7 +17,7 @@ let value: Scopes1 = { | Field | Type | Required | Description | | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | -| `type` | [models.ScopesType](../models/scopestype.md) | :heavy_check_mark: | N/A | +| `type` | *"user"* | :heavy_check_mark: | N/A | | `sudo` | [models.Sudo](../models/sudo.md) | :heavy_minus_sign: | N/A | | `origin` | [models.ScopesOrigin](../models/scopesorigin.md) | :heavy_minus_sign: | N/A | | `createdAt` | *number* | :heavy_check_mark: | N/A | diff --git a/docs/models/scopes2.md b/docs/models/scopes2.md index 78507fc1..73d94a8d 100644 --- a/docs/models/scopes2.md +++ b/docs/models/scopes2.md @@ -18,7 +18,7 @@ let value: Scopes2 = { | Field | Type | Required | Description | | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `type` | [models.AuthTokenScopesType](../models/authtokenscopestype.md) | :heavy_check_mark: | N/A | +| `type` | *"team"* | :heavy_check_mark: | N/A | | `teamId` | *string* | :heavy_check_mark: | N/A | | `origin` | [models.AuthTokenScopesOrigin](../models/authtokenscopesorigin.md) | :heavy_minus_sign: | N/A | | `createdAt` | *number* | :heavy_check_mark: | N/A | diff --git a/docs/models/scopestype.md b/docs/models/scopestype.md deleted file mode 100644 index 7cd6f64f..00000000 --- a/docs/models/scopestype.md +++ /dev/null @@ -1,15 +0,0 @@ -# ScopesType - -## Example Usage - -```typescript -import { ScopesType } from "@vercel/sdk/models/authtoken.js"; - -let value: ScopesType = "user"; -``` - -## Values - -```typescript -"user" -``` \ No newline at end of file diff --git a/docs/models/sourcekind.md b/docs/models/sourcekind.md deleted file mode 100644 index a7b369fc..00000000 --- a/docs/models/sourcekind.md +++ /dev/null @@ -1,15 +0,0 @@ -# SourceKind - -## Example Usage - -```typescript -import { SourceKind } from "@vercel/sdk/models/getintegrationlogdrainsop.js"; - -let value: SourceKind = "integration"; -``` - -## Values - -```typescript -"integration" -``` \ No newline at end of file diff --git a/docs/models/transferrequest1.md b/docs/models/transferrequest1.md index 0adc598c..11b58e3a 100644 --- a/docs/models/transferrequest1.md +++ b/docs/models/transferrequest1.md @@ -21,7 +21,7 @@ let value: TransferRequest1 = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `kind` | [models.TransferRequestKind](../models/transferrequestkind.md) | :heavy_check_mark: | N/A | +| `kind` | *"transfer-to-marketplace"* | :heavy_check_mark: | N/A | | `metadata` | Record | :heavy_minus_sign: | N/A | | `billingPlan` | [models.TransferRequestBillingPlan](../models/transferrequestbillingplan.md) | :heavy_minus_sign: | N/A | | `requestId` | *string* | :heavy_check_mark: | N/A | diff --git a/docs/models/transferrequest2.md b/docs/models/transferrequest2.md index 25676dbb..b4e9b9f0 100644 --- a/docs/models/transferrequest2.md +++ b/docs/models/transferrequest2.md @@ -19,16 +19,16 @@ let value: TransferRequest2 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `kind` | [models.GetConfigurationTransferRequestKind](../models/getconfigurationtransferrequestkind.md) | :heavy_check_mark: | N/A | -| `requestId` | *string* | :heavy_check_mark: | N/A | -| `transferId` | *string* | :heavy_check_mark: | N/A | -| `requester` | [models.TransferRequestRequester](../models/transferrequestrequester.md) | :heavy_check_mark: | N/A | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `expiresAt` | *number* | :heavy_check_mark: | N/A | -| `discardedAt` | *number* | :heavy_minus_sign: | N/A | -| `discardedBy` | *string* | :heavy_minus_sign: | N/A | -| `approvedAt` | *number* | :heavy_minus_sign: | N/A | -| `approvedBy` | *string* | :heavy_minus_sign: | N/A | -| `authorizationId` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `kind` | *"transfer-from-marketplace"* | :heavy_check_mark: | N/A | +| `requestId` | *string* | :heavy_check_mark: | N/A | +| `transferId` | *string* | :heavy_check_mark: | N/A | +| `requester` | [models.TransferRequestRequester](../models/transferrequestrequester.md) | :heavy_check_mark: | N/A | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `expiresAt` | *number* | :heavy_check_mark: | N/A | +| `discardedAt` | *number* | :heavy_minus_sign: | N/A | +| `discardedBy` | *string* | :heavy_minus_sign: | N/A | +| `approvedAt` | *number* | :heavy_minus_sign: | N/A | +| `approvedBy` | *string* | :heavy_minus_sign: | N/A | +| `authorizationId` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/transferrequestkind.md b/docs/models/transferrequestkind.md deleted file mode 100644 index 3a587cd9..00000000 --- a/docs/models/transferrequestkind.md +++ /dev/null @@ -1,15 +0,0 @@ -# TransferRequestKind - -## Example Usage - -```typescript -import { TransferRequestKind } from "@vercel/sdk/models/getconfigurationop.js"; - -let value: TransferRequestKind = "transfer-to-marketplace"; -``` - -## Values - -```typescript -"transfer-to-marketplace" -``` \ No newline at end of file diff --git a/docs/models/updatedraindelivery3.md b/docs/models/updatedraindelivery3.md index 467f21d5..23e7f843 100644 --- a/docs/models/updatedraindelivery3.md +++ b/docs/models/updatedraindelivery3.md @@ -14,8 +14,8 @@ let value: UpdateDrainDelivery3 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateDrainDeliveryDrainsResponseType](../models/updatedraindeliverydrainsresponsetype.md) | :heavy_check_mark: | N/A | -| `endpoint` | *string* | :heavy_check_mark: | N/A | -| `table` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"clickhouse"* | :heavy_check_mark: | N/A | +| `endpoint` | *string* | :heavy_check_mark: | N/A | +| `table` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatedraindelivery4.md b/docs/models/updatedraindelivery4.md index 3c21ee43..8954ed9b 100644 --- a/docs/models/updatedraindelivery4.md +++ b/docs/models/updatedraindelivery4.md @@ -13,7 +13,7 @@ let value: UpdateDrainDelivery4 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateDrainDeliveryDrainsResponse200Type](../models/updatedraindeliverydrainsresponse200type.md) | :heavy_check_mark: | N/A | -| `target` | [models.UpdateDrainDeliveryTarget](../models/updatedraindeliverytarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `type` | *"internal"* | :heavy_check_mark: | N/A | +| `target` | [models.UpdateDrainDeliveryTarget](../models/updatedraindeliverytarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatedraindeliverydrains1.md b/docs/models/updatedraindeliverydrains1.md index adb6b367..7532c696 100644 --- a/docs/models/updatedraindeliverydrains1.md +++ b/docs/models/updatedraindeliverydrains1.md @@ -21,7 +21,7 @@ let value: UpdateDrainDeliveryDrains1 = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateDrainDeliveryType](../models/updatedraindeliverytype.md) | :heavy_check_mark: | N/A | +| `type` | *"http"* | :heavy_check_mark: | N/A | | `endpoint` | *string* | :heavy_check_mark: | N/A | | `encoding` | [models.UpdateDrainDeliveryDrainsResponseEncoding](../models/updatedraindeliverydrainsresponseencoding.md) | :heavy_check_mark: | N/A | | `compression` | [models.UpdateDrainDeliveryCompression](../models/updatedraindeliverycompression.md) | :heavy_minus_sign: | N/A | diff --git a/docs/models/updatedraindeliverydrains2.md b/docs/models/updatedraindeliverydrains2.md index a37d8dd8..2dfe0a76 100644 --- a/docs/models/updatedraindeliverydrains2.md +++ b/docs/models/updatedraindeliverydrains2.md @@ -23,7 +23,7 @@ let value: UpdateDrainDeliveryDrains2 = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateDrainDeliveryDrainsType](../models/updatedraindeliverydrainstype.md) | :heavy_check_mark: | N/A | +| `type` | *"otlphttp"* | :heavy_check_mark: | N/A | | `endpoint` | [models.UpdateDrainDeliveryEndpoint](../models/updatedraindeliveryendpoint.md) | :heavy_check_mark: | N/A | | `encoding` | [models.UpdateDrainDeliveryDrainsResponse200Encoding](../models/updatedraindeliverydrainsresponse200encoding.md) | :heavy_check_mark: | N/A | | `headers` | Record | :heavy_check_mark: | N/A | diff --git a/docs/models/updatedraindeliverydrains3.md b/docs/models/updatedraindeliverydrains3.md index f65582d4..7c00ee01 100644 --- a/docs/models/updatedraindeliverydrains3.md +++ b/docs/models/updatedraindeliverydrains3.md @@ -14,8 +14,8 @@ let value: UpdateDrainDeliveryDrains3 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type](../models/updatedraindeliverydrainsresponse200applicationjsonresponsebody2type.md) | :heavy_check_mark: | N/A | -| `endpoint` | *string* | :heavy_check_mark: | N/A | -| `table` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"clickhouse"* | :heavy_check_mark: | N/A | +| `endpoint` | *string* | :heavy_check_mark: | N/A | +| `table` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatedraindeliverydrains4.md b/docs/models/updatedraindeliverydrains4.md index bcff63a9..90b2c453 100644 --- a/docs/models/updatedraindeliverydrains4.md +++ b/docs/models/updatedraindeliverydrains4.md @@ -13,7 +13,7 @@ let value: UpdateDrainDeliveryDrains4 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type](../models/updatedraindeliverydrainsresponse200applicationjsonresponsebody24type.md) | :heavy_check_mark: | N/A | -| `target` | [models.UpdateDrainDeliveryDrainsTarget](../models/updatedraindeliverydrainstarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `type` | *"internal"* | :heavy_check_mark: | N/A | +| `target` | [models.UpdateDrainDeliveryDrainsTarget](../models/updatedraindeliverydrainstarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatedraindeliverydrainsresponse1.md b/docs/models/updatedraindeliverydrainsresponse1.md index a556626c..4e3c1a5b 100644 --- a/docs/models/updatedraindeliverydrainsresponse1.md +++ b/docs/models/updatedraindeliverydrainsresponse1.md @@ -19,7 +19,7 @@ let value: UpdateDrainDeliveryDrainsResponse1 = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateDrainDeliveryDrainsResponse200ApplicationJSONType](../models/updatedraindeliverydrainsresponse200applicationjsontype.md) | :heavy_check_mark: | N/A | +| `type` | *"http"* | :heavy_check_mark: | N/A | | `endpoint` | *string* | :heavy_check_mark: | N/A | | `encoding` | [models.UpdateDrainDeliveryDrainsResponse200ApplicationJSONEncoding](../models/updatedraindeliverydrainsresponse200applicationjsonencoding.md) | :heavy_check_mark: | N/A | | `compression` | [models.UpdateDrainDeliveryDrainsCompression](../models/updatedraindeliverydrainscompression.md) | :heavy_minus_sign: | N/A | diff --git a/docs/models/updatedraindeliverydrainsresponse2.md b/docs/models/updatedraindeliverydrainsresponse2.md index b906ceec..12f91308 100644 --- a/docs/models/updatedraindeliverydrainsresponse2.md +++ b/docs/models/updatedraindeliverydrainsresponse2.md @@ -21,7 +21,7 @@ let value: UpdateDrainDeliveryDrainsResponse2 = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType](../models/updatedraindeliverydrainsresponse200applicationjsonresponsebodytype.md) | :heavy_check_mark: | N/A | +| `type` | *"otlphttp"* | :heavy_check_mark: | N/A | | `endpoint` | [models.UpdateDrainDeliveryDrainsEndpoint](../models/updatedraindeliverydrainsendpoint.md) | :heavy_check_mark: | N/A | | `encoding` | [models.UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyEncoding](../models/updatedraindeliverydrainsresponse200applicationjsonresponsebodyencoding.md) | :heavy_check_mark: | N/A | | `headers` | Record | :heavy_check_mark: | N/A | diff --git a/docs/models/updatedraindeliverydrainsresponse200applicationjsonresponsebody24type.md b/docs/models/updatedraindeliverydrainsresponse200applicationjsonresponsebody24type.md deleted file mode 100644 index 4c52691e..00000000 --- a/docs/models/updatedraindeliverydrainsresponse200applicationjsonresponsebody24type.md +++ /dev/null @@ -1,17 +0,0 @@ -# UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type - -## Example Usage - -```typescript -import { UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type } from "@vercel/sdk/models/updatedrainop.js"; - -let value: - UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type = - "internal"; -``` - -## Values - -```typescript -"internal" -``` \ No newline at end of file diff --git a/docs/models/updatedraindeliverydrainsresponse200applicationjsonresponsebody2type.md b/docs/models/updatedraindeliverydrainsresponse200applicationjsonresponsebody2type.md deleted file mode 100644 index bb581223..00000000 --- a/docs/models/updatedraindeliverydrainsresponse200applicationjsonresponsebody2type.md +++ /dev/null @@ -1,17 +0,0 @@ -# UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type - -## Example Usage - -```typescript -import { UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type } from "@vercel/sdk/models/updatedrainop.js"; - -let value: - UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type = - "clickhouse"; -``` - -## Values - -```typescript -"clickhouse" -``` \ No newline at end of file diff --git a/docs/models/updatedraindeliverydrainsresponse200applicationjsonresponsebodytype.md b/docs/models/updatedraindeliverydrainsresponse200applicationjsonresponsebodytype.md deleted file mode 100644 index 2c938ed9..00000000 --- a/docs/models/updatedraindeliverydrainsresponse200applicationjsonresponsebodytype.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType - -## Example Usage - -```typescript -import { UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType } from "@vercel/sdk/models/updatedrainop.js"; - -let value: UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType = - "otlphttp"; -``` - -## Values - -```typescript -"otlphttp" -``` \ No newline at end of file diff --git a/docs/models/updatedraindeliverydrainsresponse200applicationjsontype.md b/docs/models/updatedraindeliverydrainsresponse200applicationjsontype.md deleted file mode 100644 index 292cc712..00000000 --- a/docs/models/updatedraindeliverydrainsresponse200applicationjsontype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateDrainDeliveryDrainsResponse200ApplicationJSONType - -## Example Usage - -```typescript -import { UpdateDrainDeliveryDrainsResponse200ApplicationJSONType } from "@vercel/sdk/models/updatedrainop.js"; - -let value: UpdateDrainDeliveryDrainsResponse200ApplicationJSONType = "http"; -``` - -## Values - -```typescript -"http" -``` \ No newline at end of file diff --git a/docs/models/updatedraindeliverydrainsresponse200type.md b/docs/models/updatedraindeliverydrainsresponse200type.md deleted file mode 100644 index 9ac169a8..00000000 --- a/docs/models/updatedraindeliverydrainsresponse200type.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateDrainDeliveryDrainsResponse200Type - -## Example Usage - -```typescript -import { UpdateDrainDeliveryDrainsResponse200Type } from "@vercel/sdk/models/updatedrainop.js"; - -let value: UpdateDrainDeliveryDrainsResponse200Type = "internal"; -``` - -## Values - -```typescript -"internal" -``` \ No newline at end of file diff --git a/docs/models/updatedraindeliverydrainsresponsetype.md b/docs/models/updatedraindeliverydrainsresponsetype.md deleted file mode 100644 index c081fa88..00000000 --- a/docs/models/updatedraindeliverydrainsresponsetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateDrainDeliveryDrainsResponseType - -## Example Usage - -```typescript -import { UpdateDrainDeliveryDrainsResponseType } from "@vercel/sdk/models/updatedrainop.js"; - -let value: UpdateDrainDeliveryDrainsResponseType = "clickhouse"; -``` - -## Values - -```typescript -"clickhouse" -``` \ No newline at end of file diff --git a/docs/models/updatedraindeliverydrainstype.md b/docs/models/updatedraindeliverydrainstype.md deleted file mode 100644 index 0dcd8aea..00000000 --- a/docs/models/updatedraindeliverydrainstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateDrainDeliveryDrainsType - -## Example Usage - -```typescript -import { UpdateDrainDeliveryDrainsType } from "@vercel/sdk/models/updatedrainop.js"; - -let value: UpdateDrainDeliveryDrainsType = "otlphttp"; -``` - -## Values - -```typescript -"otlphttp" -``` \ No newline at end of file diff --git a/docs/models/updatedraindeliverytype.md b/docs/models/updatedraindeliverytype.md deleted file mode 100644 index ad08cae4..00000000 --- a/docs/models/updatedraindeliverytype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateDrainDeliveryType - -## Example Usage - -```typescript -import { UpdateDrainDeliveryType } from "@vercel/sdk/models/updatedrainop.js"; - -let value: UpdateDrainDeliveryType = "http"; -``` - -## Values - -```typescript -"http" -``` \ No newline at end of file diff --git a/docs/models/updatedrainfilterdrains1.md b/docs/models/updatedrainfilterdrains1.md index bfbddc02..e2e18b18 100644 --- a/docs/models/updatedrainfilterdrains1.md +++ b/docs/models/updatedrainfilterdrains1.md @@ -14,7 +14,7 @@ let value: UpdateDrainFilterDrains1 = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `type` | [models.UpdateDrainFilterType](../models/updatedrainfiltertype.md) | :heavy_check_mark: | N/A | +| `type` | *"basic"* | :heavy_check_mark: | N/A | | `project` | [models.UpdateDrainFilterProject](../models/updatedrainfilterproject.md) | :heavy_minus_sign: | N/A | | `log` | [models.UpdateDrainFilterLog](../models/updatedrainfilterlog.md) | :heavy_minus_sign: | N/A | | `deployment` | [models.UpdateDrainFilterDeployment](../models/updatedrainfilterdeployment.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/updatedrainfilterdrainsresponse1.md b/docs/models/updatedrainfilterdrainsresponse1.md index d2443da1..aa99692d 100644 --- a/docs/models/updatedrainfilterdrainsresponse1.md +++ b/docs/models/updatedrainfilterdrainsresponse1.md @@ -12,9 +12,9 @@ let value: UpdateDrainFilterDrainsResponse1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateDrainFilterDrainsResponseType](../models/updatedrainfilterdrainsresponsetype.md) | :heavy_check_mark: | N/A | -| `project` | [models.UpdateDrainFilterDrainsProject](../models/updatedrainfilterdrainsproject.md) | :heavy_minus_sign: | N/A | -| `log` | [models.UpdateDrainFilterDrainsLog](../models/updatedrainfilterdrainslog.md) | :heavy_minus_sign: | N/A | -| `deployment` | [models.UpdateDrainFilterDrainsDeployment](../models/updatedrainfilterdrainsdeployment.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `type` | *"basic"* | :heavy_check_mark: | N/A | +| `project` | [models.UpdateDrainFilterDrainsProject](../models/updatedrainfilterdrainsproject.md) | :heavy_minus_sign: | N/A | +| `log` | [models.UpdateDrainFilterDrainsLog](../models/updatedrainfilterdrainslog.md) | :heavy_minus_sign: | N/A | +| `deployment` | [models.UpdateDrainFilterDrainsDeployment](../models/updatedrainfilterdrainsdeployment.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/updatedrainfilterdrainsresponse2.md b/docs/models/updatedrainfilterdrainsresponse2.md index 300e9ebc..d57f5e7f 100644 --- a/docs/models/updatedrainfilterdrainsresponse2.md +++ b/docs/models/updatedrainfilterdrainsresponse2.md @@ -13,7 +13,7 @@ let value: UpdateDrainFilterDrainsResponse2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `type` | [models.UpdateDrainFilterDrainsType](../models/updatedrainfilterdrainstype.md) | :heavy_check_mark: | N/A | -| `text` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"odata"* | :heavy_check_mark: | N/A | +| `text` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatedrainfilterdrainsresponse2002.md b/docs/models/updatedrainfilterdrainsresponse2002.md index 07eee5d4..ece107b6 100644 --- a/docs/models/updatedrainfilterdrainsresponse2002.md +++ b/docs/models/updatedrainfilterdrainsresponse2002.md @@ -13,7 +13,7 @@ let value: UpdateDrainFilterDrainsResponse2002 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateDrainFilterDrainsResponse200Type](../models/updatedrainfilterdrainsresponse200type.md) | :heavy_check_mark: | N/A | -| `text` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"odata"* | :heavy_check_mark: | N/A | +| `text` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatedrainfilterdrainsresponse200type.md b/docs/models/updatedrainfilterdrainsresponse200type.md deleted file mode 100644 index da5dcc67..00000000 --- a/docs/models/updatedrainfilterdrainsresponse200type.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateDrainFilterDrainsResponse200Type - -## Example Usage - -```typescript -import { UpdateDrainFilterDrainsResponse200Type } from "@vercel/sdk/models/updatedrainop.js"; - -let value: UpdateDrainFilterDrainsResponse200Type = "odata"; -``` - -## Values - -```typescript -"odata" -``` \ No newline at end of file diff --git a/docs/models/updatedrainfilterdrainsresponsetype.md b/docs/models/updatedrainfilterdrainsresponsetype.md deleted file mode 100644 index aa612a77..00000000 --- a/docs/models/updatedrainfilterdrainsresponsetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateDrainFilterDrainsResponseType - -## Example Usage - -```typescript -import { UpdateDrainFilterDrainsResponseType } from "@vercel/sdk/models/updatedrainop.js"; - -let value: UpdateDrainFilterDrainsResponseType = "basic"; -``` - -## Values - -```typescript -"basic" -``` \ No newline at end of file diff --git a/docs/models/updatedrainfilterdrainstype.md b/docs/models/updatedrainfilterdrainstype.md deleted file mode 100644 index e478aeb9..00000000 --- a/docs/models/updatedrainfilterdrainstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateDrainFilterDrainsType - -## Example Usage - -```typescript -import { UpdateDrainFilterDrainsType } from "@vercel/sdk/models/updatedrainop.js"; - -let value: UpdateDrainFilterDrainsType = "odata"; -``` - -## Values - -```typescript -"odata" -``` \ No newline at end of file diff --git a/docs/models/updatedrainfiltertype.md b/docs/models/updatedrainfiltertype.md deleted file mode 100644 index c1751a50..00000000 --- a/docs/models/updatedrainfiltertype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateDrainFilterType - -## Example Usage - -```typescript -import { UpdateDrainFilterType } from "@vercel/sdk/models/updatedrainop.js"; - -let value: UpdateDrainFilterType = "basic"; -``` - -## Values - -```typescript -"basic" -``` \ No newline at end of file diff --git a/docs/models/updatedrainfilterv21.md b/docs/models/updatedrainfilterv21.md index bc050262..b43dbe02 100644 --- a/docs/models/updatedrainfilterv21.md +++ b/docs/models/updatedrainfilterv21.md @@ -12,6 +12,6 @@ let value: UpdateDrainFilterV21 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `version` | [models.UpdateDrainFilterV2Version](../models/updatedrainfilterv2version.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `version` | *"v1"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatedrainfilterv22.md b/docs/models/updatedrainfilterv22.md index 365c2d6f..92683c37 100644 --- a/docs/models/updatedrainfilterv22.md +++ b/docs/models/updatedrainfilterv22.md @@ -16,7 +16,7 @@ let value: UpdateDrainFilterV22 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `version` | [models.UpdateDrainFilterV2DrainsVersion](../models/updatedrainfilterv2drainsversion.md) | :heavy_check_mark: | N/A | -| `filter` | *models.UpdateDrainFilterV2Filter* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | +| `version` | *"v2"* | :heavy_check_mark: | N/A | +| `filter` | *models.UpdateDrainFilterV2Filter* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatedrainfilterv2drains1.md b/docs/models/updatedrainfilterv2drains1.md index f11381b6..1269cedc 100644 --- a/docs/models/updatedrainfilterv2drains1.md +++ b/docs/models/updatedrainfilterv2drains1.md @@ -12,6 +12,6 @@ let value: UpdateDrainFilterV2Drains1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `version` | [models.UpdateDrainFilterV2DrainsResponseVersion](../models/updatedrainfilterv2drainsresponseversion.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `version` | *"v1"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatedrainfilterv2drains2.md b/docs/models/updatedrainfilterv2drains2.md index a271fc25..3f9aa4f1 100644 --- a/docs/models/updatedrainfilterv2drains2.md +++ b/docs/models/updatedrainfilterv2drains2.md @@ -15,7 +15,7 @@ let value: UpdateDrainFilterV2Drains2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `version` | [models.UpdateDrainFilterV2DrainsResponse200Version](../models/updatedrainfilterv2drainsresponse200version.md) | :heavy_check_mark: | N/A | -| `filter` | *models.UpdateDrainFilterV2DrainsFilter* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `version` | *"v2"* | :heavy_check_mark: | N/A | +| `filter` | *models.UpdateDrainFilterV2DrainsFilter* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatedrainfilterv2drainsresponse200version.md b/docs/models/updatedrainfilterv2drainsresponse200version.md deleted file mode 100644 index ad5e9eea..00000000 --- a/docs/models/updatedrainfilterv2drainsresponse200version.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateDrainFilterV2DrainsResponse200Version - -## Example Usage - -```typescript -import { UpdateDrainFilterV2DrainsResponse200Version } from "@vercel/sdk/models/updatedrainop.js"; - -let value: UpdateDrainFilterV2DrainsResponse200Version = "v2"; -``` - -## Values - -```typescript -"v2" -``` \ No newline at end of file diff --git a/docs/models/updatedrainfilterv2drainsresponseversion.md b/docs/models/updatedrainfilterv2drainsresponseversion.md deleted file mode 100644 index ae1ba27c..00000000 --- a/docs/models/updatedrainfilterv2drainsresponseversion.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateDrainFilterV2DrainsResponseVersion - -## Example Usage - -```typescript -import { UpdateDrainFilterV2DrainsResponseVersion } from "@vercel/sdk/models/updatedrainop.js"; - -let value: UpdateDrainFilterV2DrainsResponseVersion = "v1"; -``` - -## Values - -```typescript -"v1" -``` \ No newline at end of file diff --git a/docs/models/updatedrainfilterv2drainsversion.md b/docs/models/updatedrainfilterv2drainsversion.md deleted file mode 100644 index 0ff1f1fc..00000000 --- a/docs/models/updatedrainfilterv2drainsversion.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateDrainFilterV2DrainsVersion - -## Example Usage - -```typescript -import { UpdateDrainFilterV2DrainsVersion } from "@vercel/sdk/models/updatedrainop.js"; - -let value: UpdateDrainFilterV2DrainsVersion = "v2"; -``` - -## Values - -```typescript -"v2" -``` \ No newline at end of file diff --git a/docs/models/updatedrainfilterv2version.md b/docs/models/updatedrainfilterv2version.md deleted file mode 100644 index c9060c39..00000000 --- a/docs/models/updatedrainfilterv2version.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateDrainFilterV2Version - -## Example Usage - -```typescript -import { UpdateDrainFilterV2Version } from "@vercel/sdk/models/updatedrainop.js"; - -let value: UpdateDrainFilterV2Version = "v1"; -``` - -## Values - -```typescript -"v1" -``` \ No newline at end of file diff --git a/docs/models/updatedrainprojectaccess1.md b/docs/models/updatedrainprojectaccess1.md index 21d883d6..26ce9e42 100644 --- a/docs/models/updatedrainprojectaccess1.md +++ b/docs/models/updatedrainprojectaccess1.md @@ -12,6 +12,6 @@ let value: UpdateDrainProjectAccess1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `access` | [models.UpdateDrainProjectAccessAccess](../models/updatedrainprojectaccessaccess.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `access` | *"all"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatedrainprojectaccess2.md b/docs/models/updatedrainprojectaccess2.md index 5f2f70ae..6b01b3e1 100644 --- a/docs/models/updatedrainprojectaccess2.md +++ b/docs/models/updatedrainprojectaccess2.md @@ -15,7 +15,7 @@ let value: UpdateDrainProjectAccess2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `access` | [models.UpdateDrainProjectAccessDrainsAccess](../models/updatedrainprojectaccessdrainsaccess.md) | :heavy_check_mark: | N/A | -| `projectIds` | *string*[] | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `access` | *"some"* | :heavy_check_mark: | N/A | +| `projectIds` | *string*[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatedrainprojectaccessaccess.md b/docs/models/updatedrainprojectaccessaccess.md deleted file mode 100644 index 84231ec4..00000000 --- a/docs/models/updatedrainprojectaccessaccess.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateDrainProjectAccessAccess - -## Example Usage - -```typescript -import { UpdateDrainProjectAccessAccess } from "@vercel/sdk/models/updatedrainop.js"; - -let value: UpdateDrainProjectAccessAccess = "all"; -``` - -## Values - -```typescript -"all" -``` \ No newline at end of file diff --git a/docs/models/updatedrainprojectaccessdrainsaccess.md b/docs/models/updatedrainprojectaccessdrainsaccess.md deleted file mode 100644 index 13afb428..00000000 --- a/docs/models/updatedrainprojectaccessdrainsaccess.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateDrainProjectAccessDrainsAccess - -## Example Usage - -```typescript -import { UpdateDrainProjectAccessDrainsAccess } from "@vercel/sdk/models/updatedrainop.js"; - -let value: UpdateDrainProjectAccessDrainsAccess = "some"; -``` - -## Values - -```typescript -"some" -``` \ No newline at end of file diff --git a/docs/models/updatedrainsourcedrains1.md b/docs/models/updatedrainsourcedrains1.md index 7a32bd3e..7c81fdb9 100644 --- a/docs/models/updatedrainsourcedrains1.md +++ b/docs/models/updatedrainsourcedrains1.md @@ -12,6 +12,6 @@ let value: UpdateDrainSourceDrains1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `kind` | [models.UpdateDrainSourceKind](../models/updatedrainsourcekind.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `kind` | *"self-served"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatedrainsourcedrains2.md b/docs/models/updatedrainsourcedrains2.md index 3f28d2f3..ccdc0df4 100644 --- a/docs/models/updatedrainsourcedrains2.md +++ b/docs/models/updatedrainsourcedrains2.md @@ -14,10 +14,10 @@ let value: UpdateDrainSourceDrains2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `kind` | [models.UpdateDrainSourceDrainsKind](../models/updatedrainsourcedrainskind.md) | :heavy_check_mark: | N/A | -| `resourceId` | *string* | :heavy_minus_sign: | N/A | -| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `kind` | *"integration"* | :heavy_check_mark: | N/A | +| `resourceId` | *string* | :heavy_minus_sign: | N/A | +| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatedrainsourcedrainskind.md b/docs/models/updatedrainsourcedrainskind.md deleted file mode 100644 index bd6307dc..00000000 --- a/docs/models/updatedrainsourcedrainskind.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateDrainSourceDrainsKind - -## Example Usage - -```typescript -import { UpdateDrainSourceDrainsKind } from "@vercel/sdk/models/updatedrainop.js"; - -let value: UpdateDrainSourceDrainsKind = "integration"; -``` - -## Values - -```typescript -"integration" -``` \ No newline at end of file diff --git a/docs/models/updatedrainsourcedrainsresponse1.md b/docs/models/updatedrainsourcedrainsresponse1.md index 12b7db2d..ee125a32 100644 --- a/docs/models/updatedrainsourcedrainsresponse1.md +++ b/docs/models/updatedrainsourcedrainsresponse1.md @@ -12,6 +12,6 @@ let value: UpdateDrainSourceDrainsResponse1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `kind` | [models.UpdateDrainSourceDrainsResponseKind](../models/updatedrainsourcedrainsresponsekind.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `kind` | *"self-served"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatedrainsourcedrainsresponse2.md b/docs/models/updatedrainsourcedrainsresponse2.md index ec1ff55c..14474ee4 100644 --- a/docs/models/updatedrainsourcedrainsresponse2.md +++ b/docs/models/updatedrainsourcedrainsresponse2.md @@ -14,10 +14,10 @@ let value: UpdateDrainSourceDrainsResponse2 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `kind` | [models.UpdateDrainSourceDrainsResponse200Kind](../models/updatedrainsourcedrainsresponse200kind.md) | :heavy_check_mark: | N/A | -| `resourceId` | *string* | :heavy_minus_sign: | N/A | -| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `kind` | *"integration"* | :heavy_check_mark: | N/A | +| `resourceId` | *string* | :heavy_minus_sign: | N/A | +| `externalResourceId` | *string* | :heavy_minus_sign: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatedrainsourcedrainsresponse200kind.md b/docs/models/updatedrainsourcedrainsresponse200kind.md deleted file mode 100644 index be1c65cb..00000000 --- a/docs/models/updatedrainsourcedrainsresponse200kind.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateDrainSourceDrainsResponse200Kind - -## Example Usage - -```typescript -import { UpdateDrainSourceDrainsResponse200Kind } from "@vercel/sdk/models/updatedrainop.js"; - -let value: UpdateDrainSourceDrainsResponse200Kind = "integration"; -``` - -## Values - -```typescript -"integration" -``` \ No newline at end of file diff --git a/docs/models/updatedrainsourcedrainsresponsekind.md b/docs/models/updatedrainsourcedrainsresponsekind.md deleted file mode 100644 index 76dae588..00000000 --- a/docs/models/updatedrainsourcedrainsresponsekind.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateDrainSourceDrainsResponseKind - -## Example Usage - -```typescript -import { UpdateDrainSourceDrainsResponseKind } from "@vercel/sdk/models/updatedrainop.js"; - -let value: UpdateDrainSourceDrainsResponseKind = "self-served"; -``` - -## Values - -```typescript -"self-served" -``` \ No newline at end of file diff --git a/docs/models/updatedrainsourcekind.md b/docs/models/updatedrainsourcekind.md deleted file mode 100644 index b1935678..00000000 --- a/docs/models/updatedrainsourcekind.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateDrainSourceKind - -## Example Usage - -```typescript -import { UpdateDrainSourceKind } from "@vercel/sdk/models/updatedrainop.js"; - -let value: UpdateDrainSourceKind = "self-served"; -``` - -## Values - -```typescript -"self-served" -``` \ No newline at end of file diff --git a/docs/models/updateedgeconfigpurpose1.md b/docs/models/updateedgeconfigpurpose1.md index f81bee8d..82ce30a0 100644 --- a/docs/models/updateedgeconfigpurpose1.md +++ b/docs/models/updateedgeconfigpurpose1.md @@ -13,7 +13,7 @@ let value: UpdateEdgeConfigPurpose1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `type` | [models.UpdateEdgeConfigPurposeType](../models/updateedgeconfigpurposetype.md) | :heavy_check_mark: | N/A | -| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"flags"* | :heavy_check_mark: | N/A | +| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateedgeconfigpurpose2.md b/docs/models/updateedgeconfigpurpose2.md index 2ea0527d..f8ce789e 100644 --- a/docs/models/updateedgeconfigpurpose2.md +++ b/docs/models/updateedgeconfigpurpose2.md @@ -13,7 +13,7 @@ let value: UpdateEdgeConfigPurpose2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateEdgeConfigPurposeEdgeConfigType](../models/updateedgeconfigpurposeedgeconfigtype.md) | :heavy_check_mark: | N/A | -| `resourceId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------- | ------------------- | ------------------- | ------------------- | +| `type` | *"experimentation"* | :heavy_check_mark: | N/A | +| `resourceId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateedgeconfigpurposeedgeconfigtype.md b/docs/models/updateedgeconfigpurposeedgeconfigtype.md deleted file mode 100644 index 11cd0a1c..00000000 --- a/docs/models/updateedgeconfigpurposeedgeconfigtype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateEdgeConfigPurposeEdgeConfigType - -## Example Usage - -```typescript -import { UpdateEdgeConfigPurposeEdgeConfigType } from "@vercel/sdk/models/updateedgeconfigop.js"; - -let value: UpdateEdgeConfigPurposeEdgeConfigType = "experimentation"; -``` - -## Values - -```typescript -"experimentation" -``` \ No newline at end of file diff --git a/docs/models/updateedgeconfigpurposetype.md b/docs/models/updateedgeconfigpurposetype.md deleted file mode 100644 index dec07d75..00000000 --- a/docs/models/updateedgeconfigpurposetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateEdgeConfigPurposeType - -## Example Usage - -```typescript -import { UpdateEdgeConfigPurposeType } from "@vercel/sdk/models/updateedgeconfigop.js"; - -let value: UpdateEdgeConfigPurposeType = "flags"; -``` - -## Values - -```typescript -"flags" -``` \ No newline at end of file diff --git a/docs/models/updateprojectblockhistory1.md b/docs/models/updateprojectblockhistory1.md index cdde8c84..c92442e7 100644 --- a/docs/models/updateprojectblockhistory1.md +++ b/docs/models/updateprojectblockhistory1.md @@ -15,13 +15,13 @@ let value: UpdateProjectBlockHistory1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `action` | [models.UpdateProjectBlockHistoryAction](../models/updateprojectblockhistoryaction.md) | :heavy_check_mark: | N/A | -| `reason` | *string* | :heavy_check_mark: | N/A | -| `statusCode` | *number* | :heavy_check_mark: | N/A | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `caseId` | *string* | :heavy_minus_sign: | N/A | -| `actor` | *string* | :heavy_minus_sign: | N/A | -| `comment` | *string* | :heavy_minus_sign: | N/A | -| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `action` | *"blocked"* | :heavy_check_mark: | N/A | +| `reason` | *string* | :heavy_check_mark: | N/A | +| `statusCode` | *number* | :heavy_check_mark: | N/A | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `caseId` | *string* | :heavy_minus_sign: | N/A | +| `actor` | *string* | :heavy_minus_sign: | N/A | +| `comment` | *string* | :heavy_minus_sign: | N/A | +| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectblockhistory2.md b/docs/models/updateprojectblockhistory2.md index 5b783318..63ff22b7 100644 --- a/docs/models/updateprojectblockhistory2.md +++ b/docs/models/updateprojectblockhistory2.md @@ -13,11 +13,11 @@ let value: UpdateProjectBlockHistory2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `action` | [models.UpdateProjectBlockHistoryProjectsAction](../models/updateprojectblockhistoryprojectsaction.md) | :heavy_check_mark: | N/A | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `caseId` | *string* | :heavy_minus_sign: | N/A | -| `actor` | *string* | :heavy_minus_sign: | N/A | -| `comment` | *string* | :heavy_minus_sign: | N/A | -| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `action` | *"unblocked"* | :heavy_check_mark: | N/A | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `caseId` | *string* | :heavy_minus_sign: | N/A | +| `actor` | *string* | :heavy_minus_sign: | N/A | +| `comment` | *string* | :heavy_minus_sign: | N/A | +| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectblockhistory3.md b/docs/models/updateprojectblockhistory3.md index 6d742e4f..1f018fc8 100644 --- a/docs/models/updateprojectblockhistory3.md +++ b/docs/models/updateprojectblockhistory3.md @@ -18,13 +18,13 @@ let value: UpdateProjectBlockHistory3 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `action` | [models.UpdateProjectBlockHistoryProjectsResponseAction](../models/updateprojectblockhistoryprojectsresponseaction.md) | :heavy_check_mark: | N/A | -| `route` | *models.UpdateProjectBlockHistoryRoute* | :heavy_check_mark: | N/A | -| `reason` | *string* | :heavy_check_mark: | N/A | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `caseId` | *string* | :heavy_minus_sign: | N/A | -| `actor` | *string* | :heavy_minus_sign: | N/A | -| `comment` | *string* | :heavy_minus_sign: | N/A | -| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | +| `action` | *"route-blocked"* | :heavy_check_mark: | N/A | +| `route` | *models.UpdateProjectBlockHistoryRoute* | :heavy_check_mark: | N/A | +| `reason` | *string* | :heavy_check_mark: | N/A | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `caseId` | *string* | :heavy_minus_sign: | N/A | +| `actor` | *string* | :heavy_minus_sign: | N/A | +| `comment` | *string* | :heavy_minus_sign: | N/A | +| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectblockhistory4.md b/docs/models/updateprojectblockhistory4.md index 6d511aad..3748cfab 100644 --- a/docs/models/updateprojectblockhistory4.md +++ b/docs/models/updateprojectblockhistory4.md @@ -27,13 +27,13 @@ let value: UpdateProjectBlockHistory4 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `action` | [models.UpdateProjectBlockHistoryProjectsResponse200Action](../models/updateprojectblockhistoryprojectsresponse200action.md) | :heavy_check_mark: | N/A | -| `route` | *models.UpdateProjectBlockHistoryProjectsRoute* | :heavy_check_mark: | N/A | -| `statusCode` | *number* | :heavy_minus_sign: | N/A | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `caseId` | *string* | :heavy_minus_sign: | N/A | -| `actor` | *string* | :heavy_minus_sign: | N/A | -| `comment` | *string* | :heavy_minus_sign: | N/A | -| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | +| `action` | *"route-unblocked"* | :heavy_check_mark: | N/A | +| `route` | *models.UpdateProjectBlockHistoryProjectsRoute* | :heavy_check_mark: | N/A | +| `statusCode` | *number* | :heavy_minus_sign: | N/A | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `caseId` | *string* | :heavy_minus_sign: | N/A | +| `actor` | *string* | :heavy_minus_sign: | N/A | +| `comment` | *string* | :heavy_minus_sign: | N/A | +| `isCascading` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectblockhistoryaction.md b/docs/models/updateprojectblockhistoryaction.md deleted file mode 100644 index 7b31b07d..00000000 --- a/docs/models/updateprojectblockhistoryaction.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectBlockHistoryAction - -## Example Usage - -```typescript -import { UpdateProjectBlockHistoryAction } from "@vercel/sdk/models/updateprojectop.js"; - -let value: UpdateProjectBlockHistoryAction = "blocked"; -``` - -## Values - -```typescript -"blocked" -``` \ No newline at end of file diff --git a/docs/models/updateprojectblockhistoryprojectsaction.md b/docs/models/updateprojectblockhistoryprojectsaction.md deleted file mode 100644 index fe59ae19..00000000 --- a/docs/models/updateprojectblockhistoryprojectsaction.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectBlockHistoryProjectsAction - -## Example Usage - -```typescript -import { UpdateProjectBlockHistoryProjectsAction } from "@vercel/sdk/models/updateprojectop.js"; - -let value: UpdateProjectBlockHistoryProjectsAction = "unblocked"; -``` - -## Values - -```typescript -"unblocked" -``` \ No newline at end of file diff --git a/docs/models/updateprojectblockhistoryprojectsresponse200action.md b/docs/models/updateprojectblockhistoryprojectsresponse200action.md deleted file mode 100644 index dd03471f..00000000 --- a/docs/models/updateprojectblockhistoryprojectsresponse200action.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateProjectBlockHistoryProjectsResponse200Action - -## Example Usage - -```typescript -import { UpdateProjectBlockHistoryProjectsResponse200Action } from "@vercel/sdk/models/updateprojectop.js"; - -let value: UpdateProjectBlockHistoryProjectsResponse200Action = - "route-unblocked"; -``` - -## Values - -```typescript -"route-unblocked" -``` \ No newline at end of file diff --git a/docs/models/updateprojectblockhistoryprojectsresponseaction.md b/docs/models/updateprojectblockhistoryprojectsresponseaction.md deleted file mode 100644 index 92aa1bdd..00000000 --- a/docs/models/updateprojectblockhistoryprojectsresponseaction.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectBlockHistoryProjectsResponseAction - -## Example Usage - -```typescript -import { UpdateProjectBlockHistoryProjectsResponseAction } from "@vercel/sdk/models/updateprojectop.js"; - -let value: UpdateProjectBlockHistoryProjectsResponseAction = "route-blocked"; -``` - -## Values - -```typescript -"route-blocked" -``` \ No newline at end of file diff --git a/docs/models/updateprojectcontenthint1.md b/docs/models/updateprojectcontenthint1.md index 670aadb7..29d00459 100644 --- a/docs/models/updateprojectcontenthint1.md +++ b/docs/models/updateprojectcontenthint1.md @@ -13,7 +13,7 @@ let value: UpdateProjectContentHint1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectContentHintType](../models/updateprojectcontenthinttype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"redis-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectcontenthint10.md b/docs/models/updateprojectcontenthint10.md index a3985cc2..6e9a998e 100644 --- a/docs/models/updateprojectcontenthint10.md +++ b/docs/models/updateprojectcontenthint10.md @@ -13,7 +13,7 @@ let value: UpdateProjectContentHint10 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type](../models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv10type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-host"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectcontenthint11.md b/docs/models/updateprojectcontenthint11.md index 89c3039d..63c371e0 100644 --- a/docs/models/updateprojectcontenthint11.md +++ b/docs/models/updateprojectcontenthint11.md @@ -13,7 +13,7 @@ let value: UpdateProjectContentHint11 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type](../models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv11type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-password"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectcontenthint12.md b/docs/models/updateprojectcontenthint12.md index bcde9fc6..d2a5fcfe 100644 --- a/docs/models/updateprojectcontenthint12.md +++ b/docs/models/updateprojectcontenthint12.md @@ -13,7 +13,7 @@ let value: UpdateProjectContentHint12 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type](../models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv12type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `type` | *"postgres-database"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectcontenthint13.md b/docs/models/updateprojectcontenthint13.md index 3d807d2d..91265bc6 100644 --- a/docs/models/updateprojectcontenthint13.md +++ b/docs/models/updateprojectcontenthint13.md @@ -13,7 +13,7 @@ let value: UpdateProjectContentHint13 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type](../models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv13type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-url-no-ssl"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectcontenthint14.md b/docs/models/updateprojectcontenthint14.md index 3717c95a..ec0fc794 100644 --- a/docs/models/updateprojectcontenthint14.md +++ b/docs/models/updateprojectcontenthint14.md @@ -16,10 +16,10 @@ let value: UpdateProjectContentHint14 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type](../models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv14type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `integrationProductId` | *string* | :heavy_check_mark: | N/A | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"integration-store-secret"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `integrationProductId` | *string* | :heavy_check_mark: | N/A | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectcontenthint15.md b/docs/models/updateprojectcontenthint15.md index 125375c7..29cdb092 100644 --- a/docs/models/updateprojectcontenthint15.md +++ b/docs/models/updateprojectcontenthint15.md @@ -13,7 +13,7 @@ let value: UpdateProjectContentHint15 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type](../models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv15type.md) | :heavy_check_mark: | N/A | -| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------- | --------------------------- | --------------------------- | --------------------------- | +| `type` | *"flags-connection-string"* | :heavy_check_mark: | N/A | +| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectcontenthint2.md b/docs/models/updateprojectcontenthint2.md index f3596e86..49addd26 100644 --- a/docs/models/updateprojectcontenthint2.md +++ b/docs/models/updateprojectcontenthint2.md @@ -13,7 +13,7 @@ let value: UpdateProjectContentHint2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `type` | [models.UpdateProjectContentHintProjectsType](../models/updateprojectcontenthintprojectstype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `type` | *"redis-rest-api-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectcontenthint3.md b/docs/models/updateprojectcontenthint3.md index 487ecaa0..648ba271 100644 --- a/docs/models/updateprojectcontenthint3.md +++ b/docs/models/updateprojectcontenthint3.md @@ -13,7 +13,7 @@ let value: UpdateProjectContentHint3 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectContentHintProjectsResponseType](../models/updateprojectcontenthintprojectsresponsetype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `type` | *"redis-rest-api-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectcontenthint4.md b/docs/models/updateprojectcontenthint4.md index 412a2960..a2a1334e 100644 --- a/docs/models/updateprojectcontenthint4.md +++ b/docs/models/updateprojectcontenthint4.md @@ -13,7 +13,7 @@ let value: UpdateProjectContentHint4 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectContentHintProjectsResponse200Type](../models/updateprojectcontenthintprojectsresponse200type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | +| `type` | *"redis-rest-api-read-only-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectcontenthint5.md b/docs/models/updateprojectcontenthint5.md index 4aeeb239..2e14e2e5 100644 --- a/docs/models/updateprojectcontenthint5.md +++ b/docs/models/updateprojectcontenthint5.md @@ -13,7 +13,7 @@ let value: UpdateProjectContentHint5 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectContentHintProjectsResponse200ApplicationJSONType](../models/updateprojectcontenthintprojectsresponse200applicationjsontype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `type` | *"blob-read-write-token"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectcontenthint6.md b/docs/models/updateprojectcontenthint6.md index 43c2e229..8d8459a1 100644 --- a/docs/models/updateprojectcontenthint6.md +++ b/docs/models/updateprojectcontenthint6.md @@ -13,7 +13,7 @@ let value: UpdateProjectContentHint6 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType](../models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodytype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectcontenthint7.md b/docs/models/updateprojectcontenthint7.md index e299a030..c0d47ce1 100644 --- a/docs/models/updateprojectcontenthint7.md +++ b/docs/models/updateprojectcontenthint7.md @@ -13,7 +13,7 @@ let value: UpdateProjectContentHint7 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType](../models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenvtype.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `type` | *"postgres-url-non-pooling"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectcontenthint8.md b/docs/models/updateprojectcontenthint8.md index dd062cd0..511d8500 100644 --- a/docs/models/updateprojectcontenthint8.md +++ b/docs/models/updateprojectcontenthint8.md @@ -13,7 +13,7 @@ let value: UpdateProjectContentHint8 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type](../models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv8type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `type` | *"postgres-prisma-url"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectcontenthint9.md b/docs/models/updateprojectcontenthint9.md index 9bce9e71..3aee9a75 100644 --- a/docs/models/updateprojectcontenthint9.md +++ b/docs/models/updateprojectcontenthint9.md @@ -13,7 +13,7 @@ let value: UpdateProjectContentHint9 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type](../models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv9type.md) | :heavy_check_mark: | N/A | -| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `type` | *"postgres-user"* | :heavy_check_mark: | N/A | +| `storeId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv10type.md b/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv10type.md deleted file mode 100644 index e1bcd8e0..00000000 --- a/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv10type.md +++ /dev/null @@ -1,17 +0,0 @@ -# UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type - -## Example Usage - -```typescript -import { UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type } from "@vercel/sdk/models/updateprojectop.js"; - -let value: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type = - "postgres-host"; -``` - -## Values - -```typescript -"postgres-host" -``` \ No newline at end of file diff --git a/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv11type.md b/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv11type.md deleted file mode 100644 index 7c317360..00000000 --- a/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv11type.md +++ /dev/null @@ -1,17 +0,0 @@ -# UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type - -## Example Usage - -```typescript -import { UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type } from "@vercel/sdk/models/updateprojectop.js"; - -let value: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type = - "postgres-password"; -``` - -## Values - -```typescript -"postgres-password" -``` \ No newline at end of file diff --git a/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv12type.md b/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv12type.md deleted file mode 100644 index 812dcac5..00000000 --- a/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv12type.md +++ /dev/null @@ -1,17 +0,0 @@ -# UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type - -## Example Usage - -```typescript -import { UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type } from "@vercel/sdk/models/updateprojectop.js"; - -let value: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type = - "postgres-database"; -``` - -## Values - -```typescript -"postgres-database" -``` \ No newline at end of file diff --git a/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv13type.md b/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv13type.md deleted file mode 100644 index d8596d6a..00000000 --- a/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv13type.md +++ /dev/null @@ -1,17 +0,0 @@ -# UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type - -## Example Usage - -```typescript -import { UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type } from "@vercel/sdk/models/updateprojectop.js"; - -let value: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type = - "postgres-url-no-ssl"; -``` - -## Values - -```typescript -"postgres-url-no-ssl" -``` \ No newline at end of file diff --git a/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv14type.md b/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv14type.md deleted file mode 100644 index e647d073..00000000 --- a/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv14type.md +++ /dev/null @@ -1,17 +0,0 @@ -# UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type - -## Example Usage - -```typescript -import { UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type } from "@vercel/sdk/models/updateprojectop.js"; - -let value: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type = - "integration-store-secret"; -``` - -## Values - -```typescript -"integration-store-secret" -``` \ No newline at end of file diff --git a/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv15type.md b/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv15type.md deleted file mode 100644 index 14f34ffa..00000000 --- a/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv15type.md +++ /dev/null @@ -1,17 +0,0 @@ -# UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type - -## Example Usage - -```typescript -import { UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type } from "@vercel/sdk/models/updateprojectop.js"; - -let value: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type = - "flags-connection-string"; -``` - -## Values - -```typescript -"flags-connection-string" -``` \ No newline at end of file diff --git a/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv8type.md b/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv8type.md deleted file mode 100644 index ee5b7a8d..00000000 --- a/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv8type.md +++ /dev/null @@ -1,17 +0,0 @@ -# UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type - -## Example Usage - -```typescript -import { UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type } from "@vercel/sdk/models/updateprojectop.js"; - -let value: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type = - "postgres-prisma-url"; -``` - -## Values - -```typescript -"postgres-prisma-url" -``` \ No newline at end of file diff --git a/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv9type.md b/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv9type.md deleted file mode 100644 index 80829087..00000000 --- a/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenv9type.md +++ /dev/null @@ -1,17 +0,0 @@ -# UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type - -## Example Usage - -```typescript -import { UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type } from "@vercel/sdk/models/updateprojectop.js"; - -let value: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type = - "postgres-user"; -``` - -## Values - -```typescript -"postgres-user" -``` \ No newline at end of file diff --git a/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenvtype.md b/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenvtype.md deleted file mode 100644 index 735e7981..00000000 --- a/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodyenvtype.md +++ /dev/null @@ -1,17 +0,0 @@ -# UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType - -## Example Usage - -```typescript -import { UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType } from "@vercel/sdk/models/updateprojectop.js"; - -let value: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType = - "postgres-url-non-pooling"; -``` - -## Values - -```typescript -"postgres-url-non-pooling" -``` \ No newline at end of file diff --git a/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodytype.md b/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodytype.md deleted file mode 100644 index f26df27a..00000000 --- a/docs/models/updateprojectcontenthintprojectsresponse200applicationjsonresponsebodytype.md +++ /dev/null @@ -1,17 +0,0 @@ -# UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType - -## Example Usage - -```typescript -import { UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType } from "@vercel/sdk/models/updateprojectop.js"; - -let value: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType = - "postgres-url"; -``` - -## Values - -```typescript -"postgres-url" -``` \ No newline at end of file diff --git a/docs/models/updateprojectcontenthintprojectsresponse200applicationjsontype.md b/docs/models/updateprojectcontenthintprojectsresponse200applicationjsontype.md deleted file mode 100644 index 19b7f862..00000000 --- a/docs/models/updateprojectcontenthintprojectsresponse200applicationjsontype.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateProjectContentHintProjectsResponse200ApplicationJSONType - -## Example Usage - -```typescript -import { UpdateProjectContentHintProjectsResponse200ApplicationJSONType } from "@vercel/sdk/models/updateprojectop.js"; - -let value: UpdateProjectContentHintProjectsResponse200ApplicationJSONType = - "blob-read-write-token"; -``` - -## Values - -```typescript -"blob-read-write-token" -``` \ No newline at end of file diff --git a/docs/models/updateprojectcontenthintprojectsresponse200type.md b/docs/models/updateprojectcontenthintprojectsresponse200type.md deleted file mode 100644 index 32c31761..00000000 --- a/docs/models/updateprojectcontenthintprojectsresponse200type.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateProjectContentHintProjectsResponse200Type - -## Example Usage - -```typescript -import { UpdateProjectContentHintProjectsResponse200Type } from "@vercel/sdk/models/updateprojectop.js"; - -let value: UpdateProjectContentHintProjectsResponse200Type = - "redis-rest-api-read-only-token"; -``` - -## Values - -```typescript -"redis-rest-api-read-only-token" -``` \ No newline at end of file diff --git a/docs/models/updateprojectcontenthintprojectsresponsetype.md b/docs/models/updateprojectcontenthintprojectsresponsetype.md deleted file mode 100644 index 08f997eb..00000000 --- a/docs/models/updateprojectcontenthintprojectsresponsetype.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateProjectContentHintProjectsResponseType - -## Example Usage - -```typescript -import { UpdateProjectContentHintProjectsResponseType } from "@vercel/sdk/models/updateprojectop.js"; - -let value: UpdateProjectContentHintProjectsResponseType = - "redis-rest-api-token"; -``` - -## Values - -```typescript -"redis-rest-api-token" -``` \ No newline at end of file diff --git a/docs/models/updateprojectcontenthintprojectstype.md b/docs/models/updateprojectcontenthintprojectstype.md deleted file mode 100644 index b2a2cbc7..00000000 --- a/docs/models/updateprojectcontenthintprojectstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectContentHintProjectsType - -## Example Usage - -```typescript -import { UpdateProjectContentHintProjectsType } from "@vercel/sdk/models/updateprojectop.js"; - -let value: UpdateProjectContentHintProjectsType = "redis-rest-api-url"; -``` - -## Values - -```typescript -"redis-rest-api-url" -``` \ No newline at end of file diff --git a/docs/models/updateprojectcontenthinttype.md b/docs/models/updateprojectcontenthinttype.md deleted file mode 100644 index 0033045a..00000000 --- a/docs/models/updateprojectcontenthinttype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectContentHintType - -## Example Usage - -```typescript -import { UpdateProjectContentHintType } from "@vercel/sdk/models/updateprojectop.js"; - -let value: UpdateProjectContentHintType = "redis-url"; -``` - -## Values - -```typescript -"redis-url" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacacheblockhistoryaction.md b/docs/models/updateprojectdatacacheblockhistoryaction.md deleted file mode 100644 index 6de002d4..00000000 --- a/docs/models/updateprojectdatacacheblockhistoryaction.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectDataCacheBlockHistoryAction - -## Example Usage - -```typescript -import { UpdateProjectDataCacheBlockHistoryAction } from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: UpdateProjectDataCacheBlockHistoryAction = "unblocked"; -``` - -## Values - -```typescript -"unblocked" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacacheblockhistoryprojectsaction.md b/docs/models/updateprojectdatacacheblockhistoryprojectsaction.md deleted file mode 100644 index 5c928c14..00000000 --- a/docs/models/updateprojectdatacacheblockhistoryprojectsaction.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectDataCacheBlockHistoryProjectsAction - -## Example Usage - -```typescript -import { UpdateProjectDataCacheBlockHistoryProjectsAction } from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: UpdateProjectDataCacheBlockHistoryProjectsAction = "route-blocked"; -``` - -## Values - -```typescript -"route-blocked" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacacheblockhistoryprojectsresponseaction.md b/docs/models/updateprojectdatacacheblockhistoryprojectsresponseaction.md deleted file mode 100644 index 9f5a4e65..00000000 --- a/docs/models/updateprojectdatacacheblockhistoryprojectsresponseaction.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateProjectDataCacheBlockHistoryProjectsResponseAction - -## Example Usage - -```typescript -import { UpdateProjectDataCacheBlockHistoryProjectsResponseAction } from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: UpdateProjectDataCacheBlockHistoryProjectsResponseAction = - "route-unblocked"; -``` - -## Values - -```typescript -"route-unblocked" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv10type.md b/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv10type.md deleted file mode 100644 index b9c4dd0d..00000000 --- a/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv10type.md +++ /dev/null @@ -1,19 +0,0 @@ -# UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type - -## Example Usage - -```typescript -import { - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type, -} from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type = - "postgres-host"; -``` - -## Values - -```typescript -"postgres-host" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv11type.md b/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv11type.md deleted file mode 100644 index 4cdd479e..00000000 --- a/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv11type.md +++ /dev/null @@ -1,19 +0,0 @@ -# UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type - -## Example Usage - -```typescript -import { - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type, -} from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type = - "postgres-password"; -``` - -## Values - -```typescript -"postgres-password" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv12type.md b/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv12type.md deleted file mode 100644 index cbfb1fc9..00000000 --- a/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv12type.md +++ /dev/null @@ -1,19 +0,0 @@ -# UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type - -## Example Usage - -```typescript -import { - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type, -} from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type = - "postgres-database"; -``` - -## Values - -```typescript -"postgres-database" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv13type.md b/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv13type.md deleted file mode 100644 index c580d806..00000000 --- a/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv13type.md +++ /dev/null @@ -1,19 +0,0 @@ -# UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type - -## Example Usage - -```typescript -import { - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type, -} from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type = - "postgres-url-no-ssl"; -``` - -## Values - -```typescript -"postgres-url-no-ssl" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv14type.md b/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv14type.md deleted file mode 100644 index c912ed1a..00000000 --- a/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv14type.md +++ /dev/null @@ -1,19 +0,0 @@ -# UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type - -## Example Usage - -```typescript -import { - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type, -} from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type = - "integration-store-secret"; -``` - -## Values - -```typescript -"integration-store-secret" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv15type.md b/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv15type.md deleted file mode 100644 index 4eb52cd5..00000000 --- a/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv15type.md +++ /dev/null @@ -1,19 +0,0 @@ -# UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type - -## Example Usage - -```typescript -import { - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type, -} from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type = - "flags-connection-string"; -``` - -## Values - -```typescript -"flags-connection-string" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv9type.md b/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv9type.md deleted file mode 100644 index cee11d65..00000000 --- a/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenv9type.md +++ /dev/null @@ -1,19 +0,0 @@ -# UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type - -## Example Usage - -```typescript -import { - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type, -} from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type = - "postgres-user"; -``` - -## Values - -```typescript -"postgres-user" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenvtype.md b/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenvtype.md deleted file mode 100644 index 5d6231a8..00000000 --- a/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodyenvtype.md +++ /dev/null @@ -1,19 +0,0 @@ -# UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType - -## Example Usage - -```typescript -import { - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType, -} from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType = - "postgres-prisma-url"; -``` - -## Values - -```typescript -"postgres-prisma-url" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodytype.md b/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodytype.md deleted file mode 100644 index fa3486e9..00000000 --- a/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsonresponsebodytype.md +++ /dev/null @@ -1,19 +0,0 @@ -# UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyType - -## Example Usage - -```typescript -import { - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyType, -} from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyType = - "postgres-url-non-pooling"; -``` - -## Values - -```typescript -"postgres-url-non-pooling" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsontype.md b/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsontype.md deleted file mode 100644 index 0cafc304..00000000 --- a/docs/models/updateprojectdatacachecontenthintprojectsresponse200applicationjsontype.md +++ /dev/null @@ -1,17 +0,0 @@ -# UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONType - -## Example Usage - -```typescript -import { UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONType } from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONType = - "postgres-url"; -``` - -## Values - -```typescript -"postgres-url" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacachecontenthintprojectsresponse200type.md b/docs/models/updateprojectdatacachecontenthintprojectsresponse200type.md deleted file mode 100644 index 7cfaea3c..00000000 --- a/docs/models/updateprojectdatacachecontenthintprojectsresponse200type.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateProjectDataCacheContentHintProjectsResponse200Type - -## Example Usage - -```typescript -import { UpdateProjectDataCacheContentHintProjectsResponse200Type } from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: UpdateProjectDataCacheContentHintProjectsResponse200Type = - "blob-read-write-token"; -``` - -## Values - -```typescript -"blob-read-write-token" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacachecontenthintprojectsresponsetype.md b/docs/models/updateprojectdatacachecontenthintprojectsresponsetype.md deleted file mode 100644 index 4cc9fe85..00000000 --- a/docs/models/updateprojectdatacachecontenthintprojectsresponsetype.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateProjectDataCacheContentHintProjectsResponseType - -## Example Usage - -```typescript -import { UpdateProjectDataCacheContentHintProjectsResponseType } from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: UpdateProjectDataCacheContentHintProjectsResponseType = - "redis-rest-api-read-only-token"; -``` - -## Values - -```typescript -"redis-rest-api-read-only-token" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacachecontenthintprojectstype.md b/docs/models/updateprojectdatacachecontenthintprojectstype.md deleted file mode 100644 index 4b8d0c02..00000000 --- a/docs/models/updateprojectdatacachecontenthintprojectstype.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateProjectDataCacheContentHintProjectsType - -## Example Usage - -```typescript -import { UpdateProjectDataCacheContentHintProjectsType } from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: UpdateProjectDataCacheContentHintProjectsType = - "redis-rest-api-token"; -``` - -## Values - -```typescript -"redis-rest-api-token" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacachecontenthinttype.md b/docs/models/updateprojectdatacachecontenthinttype.md deleted file mode 100644 index 8a2941b1..00000000 --- a/docs/models/updateprojectdatacachecontenthinttype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectDataCacheContentHintType - -## Example Usage - -```typescript -import { UpdateProjectDataCacheContentHintType } from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: UpdateProjectDataCacheContentHintType = "redis-rest-api-url"; -``` - -## Values - -```typescript -"redis-rest-api-url" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacachehas1.md b/docs/models/updateprojectdatacachehas1.md index b1557be2..774e1f32 100644 --- a/docs/models/updateprojectdatacachehas1.md +++ b/docs/models/updateprojectdatacachehas1.md @@ -18,6 +18,6 @@ let value: UpdateProjectDataCacheHas1 = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectDataCacheHasProjectsType](../models/updateprojectdatacachehasprojectstype.md) | :heavy_check_mark: | N/A | +| `type` | *"header"* | :heavy_check_mark: | N/A | | `key` | [models.UpdateProjectDataCacheHasProjectsKey](../models/updateprojectdatacachehasprojectskey.md) | :heavy_check_mark: | N/A | | `value` | [models.UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue](../models/updateprojectdatacachehasprojectsresponse200applicationjsonvalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectdatacachehas2.md b/docs/models/updateprojectdatacachehas2.md index 150b0239..009b969e 100644 --- a/docs/models/updateprojectdatacachehas2.md +++ b/docs/models/updateprojectdatacachehas2.md @@ -15,7 +15,7 @@ let value: UpdateProjectDataCacheHas2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.UpdateProjectDataCacheHasProjectsResponseType](../models/updateprojectdatacachehasprojectsresponsetype.md) | :heavy_check_mark: | N/A | -| `value` | [models.UpdateProjectDataCacheHasProjectsValue](../models/updateprojectdatacachehasprojectsvalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `type` | *"host"* | :heavy_check_mark: | N/A | +| `value` | [models.UpdateProjectDataCacheHasProjectsValue](../models/updateprojectdatacachehasprojectsvalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectdatacachehasprojects1.md b/docs/models/updateprojectdatacachehasprojects1.md index 7bcaeba7..3d4e986b 100644 --- a/docs/models/updateprojectdatacachehasprojects1.md +++ b/docs/models/updateprojectdatacachehasprojects1.md @@ -16,8 +16,8 @@ let value: UpdateProjectDataCacheHasProjects1 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.UpdateProjectDataCacheHasProjectsResponse200Type](../models/updateprojectdatacachehasprojectsresponse200type.md) | :heavy_check_mark: | N/A | -| `key` | [models.UpdateProjectDataCacheHasKey](../models/updateprojectdatacachehaskey.md) | :heavy_check_mark: | N/A | -| `value` | [models.UpdateProjectDataCacheHasProjectsResponseValue](../models/updateprojectdatacachehasprojectsresponsevalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `type` | *"header"* | :heavy_check_mark: | N/A | +| `key` | [models.UpdateProjectDataCacheHasKey](../models/updateprojectdatacachehaskey.md) | :heavy_check_mark: | N/A | +| `value` | [models.UpdateProjectDataCacheHasProjectsResponseValue](../models/updateprojectdatacachehasprojectsresponsevalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectdatacachehasprojects2.md b/docs/models/updateprojectdatacachehasprojects2.md index 0505b87e..91c2be91 100644 --- a/docs/models/updateprojectdatacachehasprojects2.md +++ b/docs/models/updateprojectdatacachehasprojects2.md @@ -15,7 +15,7 @@ let value: UpdateProjectDataCacheHasProjects2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType](../models/updateprojectdatacachehasprojectsresponse200applicationjsontype.md) | :heavy_check_mark: | N/A | -| `value` | [models.UpdateProjectDataCacheHasProjectsResponse200Value](../models/updateprojectdatacachehasprojectsresponse200value.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `type` | *"host"* | :heavy_check_mark: | N/A | +| `value` | [models.UpdateProjectDataCacheHasProjectsResponse200Value](../models/updateprojectdatacachehasprojectsresponse200value.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectdatacachehasprojectsresponse200applicationjsontype.md b/docs/models/updateprojectdatacachehasprojectsresponse200applicationjsontype.md deleted file mode 100644 index a2ccac8f..00000000 --- a/docs/models/updateprojectdatacachehasprojectsresponse200applicationjsontype.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType - -## Example Usage - -```typescript -import { UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType } from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType = - "host"; -``` - -## Values - -```typescript -"host" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacachehasprojectsresponse200type.md b/docs/models/updateprojectdatacachehasprojectsresponse200type.md deleted file mode 100644 index ba0ce9cd..00000000 --- a/docs/models/updateprojectdatacachehasprojectsresponse200type.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectDataCacheHasProjectsResponse200Type - -## Example Usage - -```typescript -import { UpdateProjectDataCacheHasProjectsResponse200Type } from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: UpdateProjectDataCacheHasProjectsResponse200Type = "header"; -``` - -## Values - -```typescript -"header" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacachehasprojectsresponsetype.md b/docs/models/updateprojectdatacachehasprojectsresponsetype.md deleted file mode 100644 index 0ee461c5..00000000 --- a/docs/models/updateprojectdatacachehasprojectsresponsetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectDataCacheHasProjectsResponseType - -## Example Usage - -```typescript -import { UpdateProjectDataCacheHasProjectsResponseType } from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: UpdateProjectDataCacheHasProjectsResponseType = "host"; -``` - -## Values - -```typescript -"host" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacachehasprojectstype.md b/docs/models/updateprojectdatacachehasprojectstype.md deleted file mode 100644 index 4ffe717d..00000000 --- a/docs/models/updateprojectdatacachehasprojectstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectDataCacheHasProjectsType - -## Example Usage - -```typescript -import { UpdateProjectDataCacheHasProjectsType } from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: UpdateProjectDataCacheHasProjectsType = "header"; -``` - -## Values - -```typescript -"header" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacachehastype.md b/docs/models/updateprojectdatacachehastype.md deleted file mode 100644 index 00548123..00000000 --- a/docs/models/updateprojectdatacachehastype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectDataCacheHasType - -## Example Usage - -```typescript -import { UpdateProjectDataCacheHasType } from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: UpdateProjectDataCacheHasType = "host"; -``` - -## Values - -```typescript -"host" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacachelinkprojectsresponse200type.md b/docs/models/updateprojectdatacachelinkprojectsresponse200type.md deleted file mode 100644 index 723c6ab9..00000000 --- a/docs/models/updateprojectdatacachelinkprojectsresponse200type.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectDataCacheLinkProjectsResponse200Type - -## Example Usage - -```typescript -import { UpdateProjectDataCacheLinkProjectsResponse200Type } from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: UpdateProjectDataCacheLinkProjectsResponse200Type = "bitbucket"; -``` - -## Values - -```typescript -"bitbucket" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacachelinkprojectsresponsetype.md b/docs/models/updateprojectdatacachelinkprojectsresponsetype.md deleted file mode 100644 index e07b5e7b..00000000 --- a/docs/models/updateprojectdatacachelinkprojectsresponsetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectDataCacheLinkProjectsResponseType - -## Example Usage - -```typescript -import { UpdateProjectDataCacheLinkProjectsResponseType } from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: UpdateProjectDataCacheLinkProjectsResponseType = "gitlab"; -``` - -## Values - -```typescript -"gitlab" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacachelinkprojectstype.md b/docs/models/updateprojectdatacachelinkprojectstype.md deleted file mode 100644 index e180dcde..00000000 --- a/docs/models/updateprojectdatacachelinkprojectstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectDataCacheLinkProjectsType - -## Example Usage - -```typescript -import { UpdateProjectDataCacheLinkProjectsType } from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: UpdateProjectDataCacheLinkProjectsType = "github-custom-host"; -``` - -## Values - -```typescript -"github-custom-host" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacachelinktype.md b/docs/models/updateprojectdatacachelinktype.md deleted file mode 100644 index 78ab8bfb..00000000 --- a/docs/models/updateprojectdatacachelinktype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectDataCacheLinkType - -## Example Usage - -```typescript -import { UpdateProjectDataCacheLinkType } from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: UpdateProjectDataCacheLinkType = "github-limited"; -``` - -## Values - -```typescript -"github-limited" -``` \ No newline at end of file diff --git a/docs/models/updateprojectdatacacheprotectionbypassscope.md b/docs/models/updateprojectdatacacheprotectionbypassscope.md deleted file mode 100644 index 774b8b19..00000000 --- a/docs/models/updateprojectdatacacheprotectionbypassscope.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateProjectDataCacheProtectionBypassScope - -## Example Usage - -```typescript -import { UpdateProjectDataCacheProtectionBypassScope } from "@vercel/sdk/models/updateprojectdatacacheop.js"; - -let value: UpdateProjectDataCacheProtectionBypassScope = - "integration-automation-bypass"; -``` - -## Values - -```typescript -"integration-automation-bypass" -``` \ No newline at end of file diff --git a/docs/models/updateprojecthas1.md b/docs/models/updateprojecthas1.md index 0c346dd5..66de1c18 100644 --- a/docs/models/updateprojecthas1.md +++ b/docs/models/updateprojecthas1.md @@ -18,6 +18,6 @@ let value: UpdateProjectHas1 = { | Field | Type | Required | Description | | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `type` | [models.UpdateProjectHasType](../models/updateprojecthastype.md) | :heavy_check_mark: | N/A | +| `type` | *"header"* | :heavy_check_mark: | N/A | | `key` | [models.UpdateProjectHasKey](../models/updateprojecthaskey.md) | :heavy_check_mark: | N/A | | `value` | [models.UpdateProjectHasValue](../models/updateprojecthasvalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojecthas2.md b/docs/models/updateprojecthas2.md index a6de0255..984c4983 100644 --- a/docs/models/updateprojecthas2.md +++ b/docs/models/updateprojecthas2.md @@ -17,5 +17,5 @@ let value: UpdateProjectHas2 = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectHasProjectsType](../models/updateprojecthasprojectstype.md) | :heavy_check_mark: | N/A | +| `type` | *"host"* | :heavy_check_mark: | N/A | | `value` | [models.UpdateProjectHasProjectsValue](../models/updateprojecthasprojectsvalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojecthasprojects1.md b/docs/models/updateprojecthasprojects1.md index 0876f2cc..8444c8b4 100644 --- a/docs/models/updateprojecthasprojects1.md +++ b/docs/models/updateprojecthasprojects1.md @@ -18,6 +18,6 @@ let value: UpdateProjectHasProjects1 = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectHasProjectsResponseType](../models/updateprojecthasprojectsresponsetype.md) | :heavy_check_mark: | N/A | +| `type` | *"header"* | :heavy_check_mark: | N/A | | `key` | [models.UpdateProjectHasProjectsKey](../models/updateprojecthasprojectskey.md) | :heavy_check_mark: | N/A | | `value` | [models.UpdateProjectHasProjectsResponseValue](../models/updateprojecthasprojectsresponsevalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojecthasprojects2.md b/docs/models/updateprojecthasprojects2.md index 88ae252b..ce6b6998 100644 --- a/docs/models/updateprojecthasprojects2.md +++ b/docs/models/updateprojecthasprojects2.md @@ -17,5 +17,5 @@ let value: UpdateProjectHasProjects2 = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectHasProjectsResponse200Type](../models/updateprojecthasprojectsresponse200type.md) | :heavy_check_mark: | N/A | +| `type` | *"host"* | :heavy_check_mark: | N/A | | `value` | [models.UpdateProjectHasProjectsResponse200Value](../models/updateprojecthasprojectsresponse200value.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojecthasprojectsresponse1.md b/docs/models/updateprojecthasprojectsresponse1.md index 8f704433..519c4dcb 100644 --- a/docs/models/updateprojecthasprojectsresponse1.md +++ b/docs/models/updateprojecthasprojectsresponse1.md @@ -18,6 +18,6 @@ let value: UpdateProjectHasProjectsResponse1 = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectHasProjectsResponse200ApplicationJSONType](../models/updateprojecthasprojectsresponse200applicationjsontype.md) | :heavy_check_mark: | N/A | +| `type` | *"header"* | :heavy_check_mark: | N/A | | `key` | [models.UpdateProjectHasProjectsResponseKey](../models/updateprojecthasprojectsresponsekey.md) | :heavy_check_mark: | N/A | | `value` | [models.UpdateProjectHasProjectsResponse200ApplicationJSONValue](../models/updateprojecthasprojectsresponse200applicationjsonvalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojecthasprojectsresponse2.md b/docs/models/updateprojecthasprojectsresponse2.md index 78066294..68c85a84 100644 --- a/docs/models/updateprojecthasprojectsresponse2.md +++ b/docs/models/updateprojecthasprojectsresponse2.md @@ -17,5 +17,5 @@ let value: UpdateProjectHasProjectsResponse2 = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [models.UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyType](../models/updateprojecthasprojectsresponse200applicationjsonresponsebodytype.md) | :heavy_check_mark: | N/A | +| `type` | *"host"* | :heavy_check_mark: | N/A | | `value` | [models.UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyValue](../models/updateprojecthasprojectsresponse200applicationjsonresponsebodyvalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojecthasprojectsresponse200applicationjsonresponsebodytype.md b/docs/models/updateprojecthasprojectsresponse200applicationjsonresponsebodytype.md deleted file mode 100644 index cbe5656c..00000000 --- a/docs/models/updateprojecthasprojectsresponse200applicationjsonresponsebodytype.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyType - -## Example Usage - -```typescript -import { UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyType } from "@vercel/sdk/models/updateprojectop.js"; - -let value: UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyType = - "host"; -``` - -## Values - -```typescript -"host" -``` \ No newline at end of file diff --git a/docs/models/updateprojecthasprojectsresponse200applicationjsontype.md b/docs/models/updateprojecthasprojectsresponse200applicationjsontype.md deleted file mode 100644 index 71240f65..00000000 --- a/docs/models/updateprojecthasprojectsresponse200applicationjsontype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectHasProjectsResponse200ApplicationJSONType - -## Example Usage - -```typescript -import { UpdateProjectHasProjectsResponse200ApplicationJSONType } from "@vercel/sdk/models/updateprojectop.js"; - -let value: UpdateProjectHasProjectsResponse200ApplicationJSONType = "header"; -``` - -## Values - -```typescript -"header" -``` \ No newline at end of file diff --git a/docs/models/updateprojecthasprojectsresponse200type.md b/docs/models/updateprojecthasprojectsresponse200type.md deleted file mode 100644 index 5776fc6c..00000000 --- a/docs/models/updateprojecthasprojectsresponse200type.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectHasProjectsResponse200Type - -## Example Usage - -```typescript -import { UpdateProjectHasProjectsResponse200Type } from "@vercel/sdk/models/updateprojectop.js"; - -let value: UpdateProjectHasProjectsResponse200Type = "host"; -``` - -## Values - -```typescript -"host" -``` \ No newline at end of file diff --git a/docs/models/updateprojecthasprojectsresponsetype.md b/docs/models/updateprojecthasprojectsresponsetype.md deleted file mode 100644 index 2cf3f298..00000000 --- a/docs/models/updateprojecthasprojectsresponsetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectHasProjectsResponseType - -## Example Usage - -```typescript -import { UpdateProjectHasProjectsResponseType } from "@vercel/sdk/models/updateprojectop.js"; - -let value: UpdateProjectHasProjectsResponseType = "header"; -``` - -## Values - -```typescript -"header" -``` \ No newline at end of file diff --git a/docs/models/updateprojecthasprojectstype.md b/docs/models/updateprojecthasprojectstype.md deleted file mode 100644 index 163db24c..00000000 --- a/docs/models/updateprojecthasprojectstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectHasProjectsType - -## Example Usage - -```typescript -import { UpdateProjectHasProjectsType } from "@vercel/sdk/models/updateprojectop.js"; - -let value: UpdateProjectHasProjectsType = "host"; -``` - -## Values - -```typescript -"host" -``` \ No newline at end of file diff --git a/docs/models/updateprojecthastype.md b/docs/models/updateprojecthastype.md deleted file mode 100644 index b3789cb3..00000000 --- a/docs/models/updateprojecthastype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectHasType - -## Example Usage - -```typescript -import { UpdateProjectHasType } from "@vercel/sdk/models/updateprojectop.js"; - -let value: UpdateProjectHasType = "header"; -``` - -## Values - -```typescript -"header" -``` \ No newline at end of file diff --git a/docs/models/updateprojectlink1.md b/docs/models/updateprojectlink1.md index 801db5f6..14525ea1 100644 --- a/docs/models/updateprojectlink1.md +++ b/docs/models/updateprojectlink1.md @@ -22,7 +22,7 @@ let value: UpdateProjectLink1 = { | `repoOwnerId` | *number* | :heavy_minus_sign: | A new field, should be included in all new project links, is being added just in time when a deployment is created. This is needed for Protected Git scopes. | | `repo` | *string* | :heavy_minus_sign: | N/A | | `repoId` | *number* | :heavy_minus_sign: | N/A | -| `type` | [models.UpdateProjectLinkType](../models/updateprojectlinktype.md) | :heavy_check_mark: | N/A | +| `type` | *"github"* | :heavy_check_mark: | N/A | | `createdAt` | *number* | :heavy_minus_sign: | N/A | | `deployHooks` | [models.UpdateProjectLinkDeployHooks](../models/updateprojectlinkdeployhooks.md)[] | :heavy_check_mark: | N/A | | `gitCredentialId` | *string* | :heavy_check_mark: | N/A | diff --git a/docs/models/updateprojectlink2.md b/docs/models/updateprojectlink2.md index 65834c99..4e777440 100644 --- a/docs/models/updateprojectlink2.md +++ b/docs/models/updateprojectlink2.md @@ -18,7 +18,7 @@ let value: UpdateProjectLink2 = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [models.UpdateProjectLinkProjectsType](../models/updateprojectlinkprojectstype.md) | :heavy_check_mark: | N/A | +| `type` | *"github-limited"* | :heavy_check_mark: | N/A | | `repo` | *string* | :heavy_minus_sign: | N/A | | `repoId` | *number* | :heavy_minus_sign: | N/A | | `createdAt` | *number* | :heavy_minus_sign: | N/A | diff --git a/docs/models/updateprojectlink3.md b/docs/models/updateprojectlink3.md index 7d5b0825..538b62af 100644 --- a/docs/models/updateprojectlink3.md +++ b/docs/models/updateprojectlink3.md @@ -23,7 +23,7 @@ let value: UpdateProjectLink3 = { | `repoOwnerId` | *number* | :heavy_minus_sign: | A new field, should be included in all new project links, is being added just in time when a deployment is created. This is needed for Protected Git scopes. | | `repo` | *string* | :heavy_minus_sign: | N/A | | `repoId` | *number* | :heavy_minus_sign: | N/A | -| `type` | [models.UpdateProjectLinkProjectsResponseType](../models/updateprojectlinkprojectsresponsetype.md) | :heavy_check_mark: | N/A | +| `type` | *"github-custom-host"* | :heavy_check_mark: | N/A | | `host` | *string* | :heavy_check_mark: | N/A | | `createdAt` | *number* | :heavy_minus_sign: | N/A | | `deployHooks` | [models.UpdateProjectLinkProjectsResponseDeployHooks](../models/updateprojectlinkprojectsresponsedeployhooks.md)[] | :heavy_check_mark: | N/A | diff --git a/docs/models/updateprojectlink4.md b/docs/models/updateprojectlink4.md index df2971d5..65cf5514 100644 --- a/docs/models/updateprojectlink4.md +++ b/docs/models/updateprojectlink4.md @@ -28,7 +28,7 @@ let value: UpdateProjectLink4 = { | `projectNamespace` | *string* | :heavy_check_mark: | N/A | | `projectOwnerId` | *number* | :heavy_minus_sign: | A new field, should be included in all new project links, is being added just in time when a deployment is created. This is needed for Protected Git scopes. This is the id of the top level group that a namespace belongs to. Gitlab supports group nesting (up to 20 levels). | | `projectUrl` | *string* | :heavy_check_mark: | N/A | -| `type` | [models.UpdateProjectLinkProjectsResponse200Type](../models/updateprojectlinkprojectsresponse200type.md) | :heavy_check_mark: | N/A | +| `type` | *"gitlab"* | :heavy_check_mark: | N/A | | `createdAt` | *number* | :heavy_minus_sign: | N/A | | `deployHooks` | [models.UpdateProjectLinkProjectsResponse200DeployHooks](../models/updateprojectlinkprojectsresponse200deployhooks.md)[] | :heavy_check_mark: | N/A | | `gitCredentialId` | *string* | :heavy_check_mark: | N/A | diff --git a/docs/models/updateprojectlink5.md b/docs/models/updateprojectlink5.md index 8bc4d728..28de2035 100644 --- a/docs/models/updateprojectlink5.md +++ b/docs/models/updateprojectlink5.md @@ -32,7 +32,7 @@ let value: UpdateProjectLink5 = { | `name` | *string* | :heavy_check_mark: | N/A | | `slug` | *string* | :heavy_check_mark: | N/A | | `owner` | *string* | :heavy_check_mark: | N/A | -| `type` | [models.UpdateProjectLinkProjectsResponse200ApplicationJSONType](../models/updateprojectlinkprojectsresponse200applicationjsontype.md) | :heavy_check_mark: | N/A | +| `type` | *"bitbucket"* | :heavy_check_mark: | N/A | | `uuid` | *string* | :heavy_check_mark: | N/A | | `workspaceUuid` | *string* | :heavy_check_mark: | N/A | | `createdAt` | *number* | :heavy_minus_sign: | N/A | diff --git a/docs/models/updateprojectlinkprojectsresponse200applicationjsontype.md b/docs/models/updateprojectlinkprojectsresponse200applicationjsontype.md deleted file mode 100644 index ee2c0d77..00000000 --- a/docs/models/updateprojectlinkprojectsresponse200applicationjsontype.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateProjectLinkProjectsResponse200ApplicationJSONType - -## Example Usage - -```typescript -import { UpdateProjectLinkProjectsResponse200ApplicationJSONType } from "@vercel/sdk/models/updateprojectop.js"; - -let value: UpdateProjectLinkProjectsResponse200ApplicationJSONType = - "bitbucket"; -``` - -## Values - -```typescript -"bitbucket" -``` \ No newline at end of file diff --git a/docs/models/updateprojectlinkprojectsresponse200type.md b/docs/models/updateprojectlinkprojectsresponse200type.md deleted file mode 100644 index 4e9625f1..00000000 --- a/docs/models/updateprojectlinkprojectsresponse200type.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectLinkProjectsResponse200Type - -## Example Usage - -```typescript -import { UpdateProjectLinkProjectsResponse200Type } from "@vercel/sdk/models/updateprojectop.js"; - -let value: UpdateProjectLinkProjectsResponse200Type = "gitlab"; -``` - -## Values - -```typescript -"gitlab" -``` \ No newline at end of file diff --git a/docs/models/updateprojectlinkprojectsresponsetype.md b/docs/models/updateprojectlinkprojectsresponsetype.md deleted file mode 100644 index bb4a1304..00000000 --- a/docs/models/updateprojectlinkprojectsresponsetype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectLinkProjectsResponseType - -## Example Usage - -```typescript -import { UpdateProjectLinkProjectsResponseType } from "@vercel/sdk/models/updateprojectop.js"; - -let value: UpdateProjectLinkProjectsResponseType = "github-custom-host"; -``` - -## Values - -```typescript -"github-custom-host" -``` \ No newline at end of file diff --git a/docs/models/updateprojectlinkprojectstype.md b/docs/models/updateprojectlinkprojectstype.md deleted file mode 100644 index 7ec7ed19..00000000 --- a/docs/models/updateprojectlinkprojectstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectLinkProjectsType - -## Example Usage - -```typescript -import { UpdateProjectLinkProjectsType } from "@vercel/sdk/models/updateprojectop.js"; - -let value: UpdateProjectLinkProjectsType = "github-limited"; -``` - -## Values - -```typescript -"github-limited" -``` \ No newline at end of file diff --git a/docs/models/updateprojectlinktype.md b/docs/models/updateprojectlinktype.md deleted file mode 100644 index a0336546..00000000 --- a/docs/models/updateprojectlinktype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectLinkType - -## Example Usage - -```typescript -import { UpdateProjectLinkType } from "@vercel/sdk/models/updateprojectop.js"; - -let value: UpdateProjectLinkType = "github"; -``` - -## Values - -```typescript -"github" -``` \ No newline at end of file diff --git a/docs/models/updateprojectprotectionbypass1.md b/docs/models/updateprojectprotectionbypass1.md index b16088d6..7505d727 100644 --- a/docs/models/updateprojectprotectionbypass1.md +++ b/docs/models/updateprojectprotectionbypass1.md @@ -16,10 +16,10 @@ let value: UpdateProjectProtectionBypass1 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `createdBy` | *string* | :heavy_check_mark: | N/A | -| `scope` | [models.UpdateProjectProtectionBypassScope](../models/updateprojectprotectionbypassscope.md) | :heavy_check_mark: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `configurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `createdBy` | *string* | :heavy_check_mark: | N/A | +| `scope` | *"integration-automation-bypass"* | :heavy_check_mark: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `configurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectprotectionbypass2.md b/docs/models/updateprojectprotectionbypass2.md index be3764c5..edde6118 100644 --- a/docs/models/updateprojectprotectionbypass2.md +++ b/docs/models/updateprojectprotectionbypass2.md @@ -14,8 +14,8 @@ let value: UpdateProjectProtectionBypass2 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `createdBy` | *string* | :heavy_check_mark: | N/A | -| `scope` | [models.UpdateProjectProtectionBypassProjectsScope](../models/updateprojectprotectionbypassprojectsscope.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `createdBy` | *string* | :heavy_check_mark: | N/A | +| `scope` | *"automation-bypass"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectprotectionbypassprojectsscope.md b/docs/models/updateprojectprotectionbypassprojectsscope.md deleted file mode 100644 index acff3d00..00000000 --- a/docs/models/updateprojectprotectionbypassprojectsscope.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectProtectionBypassProjectsScope - -## Example Usage - -```typescript -import { UpdateProjectProtectionBypassProjectsScope } from "@vercel/sdk/models/updateprojectop.js"; - -let value: UpdateProjectProtectionBypassProjectsScope = "automation-bypass"; -``` - -## Values - -```typescript -"automation-bypass" -``` \ No newline at end of file diff --git a/docs/models/updateprojectprotectionbypassprotectionbypass1.md b/docs/models/updateprojectprotectionbypassprotectionbypass1.md index 1eb947b1..71cca7e3 100644 --- a/docs/models/updateprojectprotectionbypassprotectionbypass1.md +++ b/docs/models/updateprojectprotectionbypassprotectionbypass1.md @@ -16,10 +16,10 @@ let value: UpdateProjectProtectionBypassProtectionBypass1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `createdBy` | *string* | :heavy_check_mark: | N/A | -| `scope` | [models.UpdateProjectProtectionBypassProtectionBypassScope](../models/updateprojectprotectionbypassprotectionbypassscope.md) | :heavy_check_mark: | N/A | -| `integrationId` | *string* | :heavy_check_mark: | N/A | -| `configurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `createdBy` | *string* | :heavy_check_mark: | N/A | +| `scope` | *"integration-automation-bypass"* | :heavy_check_mark: | N/A | +| `integrationId` | *string* | :heavy_check_mark: | N/A | +| `configurationId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectprotectionbypassprotectionbypass2.md b/docs/models/updateprojectprotectionbypassprotectionbypass2.md index 5d603a02..b2593221 100644 --- a/docs/models/updateprojectprotectionbypassprotectionbypass2.md +++ b/docs/models/updateprojectprotectionbypassprotectionbypass2.md @@ -14,8 +14,8 @@ let value: UpdateProjectProtectionBypassProtectionBypass2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `createdBy` | *string* | :heavy_check_mark: | N/A | -| `scope` | [models.UpdateProjectProtectionBypassProtectionBypassProjectsScope](../models/updateprojectprotectionbypassprotectionbypassprojectsscope.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `createdAt` | *number* | :heavy_check_mark: | N/A | +| `createdBy` | *string* | :heavy_check_mark: | N/A | +| `scope` | *"automation-bypass"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectprotectionbypassprotectionbypassprojectsscope.md b/docs/models/updateprojectprotectionbypassprotectionbypassprojectsscope.md deleted file mode 100644 index b36b2441..00000000 --- a/docs/models/updateprojectprotectionbypassprotectionbypassprojectsscope.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateProjectProtectionBypassProtectionBypassProjectsScope - -## Example Usage - -```typescript -import { UpdateProjectProtectionBypassProtectionBypassProjectsScope } from "@vercel/sdk/models/updateprojectprotectionbypassop.js"; - -let value: UpdateProjectProtectionBypassProtectionBypassProjectsScope = - "automation-bypass"; -``` - -## Values - -```typescript -"automation-bypass" -``` \ No newline at end of file diff --git a/docs/models/updateprojectprotectionbypassprotectionbypassscope.md b/docs/models/updateprojectprotectionbypassprotectionbypassscope.md deleted file mode 100644 index ad200434..00000000 --- a/docs/models/updateprojectprotectionbypassprotectionbypassscope.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateProjectProtectionBypassProtectionBypassScope - -## Example Usage - -```typescript -import { UpdateProjectProtectionBypassProtectionBypassScope } from "@vercel/sdk/models/updateprojectprotectionbypassop.js"; - -let value: UpdateProjectProtectionBypassProtectionBypassScope = - "integration-automation-bypass"; -``` - -## Values - -```typescript -"integration-automation-bypass" -``` \ No newline at end of file diff --git a/docs/models/updateprojectprotectionbypassscope.md b/docs/models/updateprojectprotectionbypassscope.md deleted file mode 100644 index 84b76fd6..00000000 --- a/docs/models/updateprojectprotectionbypassscope.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateProjectProtectionBypassScope - -## Example Usage - -```typescript -import { UpdateProjectProtectionBypassScope } from "@vercel/sdk/models/updateprojectop.js"; - -let value: UpdateProjectProtectionBypassScope = "integration-automation-bypass"; -``` - -## Values - -```typescript -"integration-automation-bypass" -``` \ No newline at end of file diff --git a/docs/models/usereventcredentialstype.md b/docs/models/usereventcredentialstype.md deleted file mode 100644 index bba57548..00000000 --- a/docs/models/usereventcredentialstype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UserEventCredentialsType - -## Example Usage - -```typescript -import { UserEventCredentialsType } from "@vercel/sdk/models/userevent.js"; - -let value: UserEventCredentialsType = "github-oauth-custom-host"; -``` - -## Values - -```typescript -"github-oauth-custom-host" -``` \ No newline at end of file diff --git a/examples/package-lock.json b/examples/package-lock.json index f48484dc..cf7f7d89 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,7 +18,7 @@ }, "..": { "name": "@vercel/sdk", - "version": "1.17.7", + "version": "1.18.0", "dependencies": { "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", "zod": "^3.25.0 || ^4.0.0" diff --git a/jsr.json b/jsr.json index 6ae196e3..c2739f1a 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@vercel/sdk", - "version": "1.17.7", + "version": "1.18.0", "exports": { ".": "./src/index.ts", "./models": "./src/models/index.ts", diff --git a/package-lock.json b/package-lock.json index f65cb5a6..b86c43c9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@vercel/sdk", - "version": "1.17.7", + "version": "1.18.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@vercel/sdk", - "version": "1.17.7", + "version": "1.18.0", "dependencies": { "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", "zod": "^3.25.0 || ^4.0.0" diff --git a/package.json b/package.json index a5a13795..680e3b55 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vercel/sdk", - "version": "1.17.7", + "version": "1.18.0", "author": "Speakeasy", "type": "module", "bin": { diff --git a/src/__tests__/checks.test.ts b/src/__tests__/checks.test.ts index 95462e41..6c0b30c5 100644 --- a/src/__tests__/checks.test.ts +++ b/src/__tests__/checks.test.ts @@ -66,7 +66,7 @@ test("Checks Get All Checks", async () => { integrationId: "", name: "", rerequestable: false, - blocking: false, + blocking: true, status: "completed", updatedAt: 5993.81, }, diff --git a/src/__tests__/domains.test.ts b/src/__tests__/domains.test.ts index 490a49ef..9bd50033 100644 --- a/src/__tests__/domains.test.ts +++ b/src/__tests__/domains.test.ts @@ -130,17 +130,16 @@ test("Domains Get Domain Config", async () => { }); expect(result).toBeDefined(); expect(result).toEqual({ - configuredBy: "dns-01", + configuredBy: "CNAME", acceptedChallenges: [ - "http-01", + "dns-01", ], recommendedIPv4: [ { - rank: 4614.79, + rank: 4769.73, value: [ "", "", - "", ], }, ], diff --git a/src/__tests__/edgeconfig.test.ts b/src/__tests__/edgeconfig.test.ts index 9909caa7..1e84888c 100644 --- a/src/__tests__/edgeconfig.test.ts +++ b/src/__tests__/edgeconfig.test.ts @@ -50,8 +50,8 @@ test("Edge Config Create Edge Config", async () => { }); expect(result).toBeDefined(); expect(result).toEqual({ - createdAt: 5288.95, - updatedAt: 5680.45, + createdAt: 5488.14, + updatedAt: 7151.9, id: "", slug: "", ownerId: "", @@ -77,8 +77,8 @@ test("Edge Config Get Edge Config", async () => { }); expect(result).toBeDefined(); expect(result).toEqual({ - createdAt: 9255.97, - updatedAt: 710.36, + createdAt: 6027.63, + updatedAt: 5448.83, id: "", slug: "", ownerId: "", @@ -107,8 +107,8 @@ test("Edge Config Update Edge Config", async () => { }); expect(result).toBeDefined(); expect(result).toEqual({ - createdAt: 871.29, - updatedAt: 202.18, + createdAt: 4236.55, + updatedAt: 6458.94, id: "", slug: "", ownerId: "", diff --git a/src/__tests__/mockserver/internal/handler/pathgetv1deploymentsdeploymentidchecks.go b/src/__tests__/mockserver/internal/handler/pathgetv1deploymentsdeploymentidchecks.go index 2732da90..0135c41b 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetv1deploymentsdeploymentidchecks.go +++ b/src/__tests__/mockserver/internal/handler/pathgetv1deploymentsdeploymentidchecks.go @@ -53,7 +53,7 @@ func testGetAllChecksGetAllChecks0(w http.ResponseWriter, req *http.Request) { IntegrationID: "", Name: "", Rerequestable: false, - Blocking: true, + Blocking: false, Status: operations.GetAllChecksStatusCompleted, UpdatedAt: 5993.81, }, diff --git a/src/__tests__/mockserver/internal/handler/pathgetv1drainsid.go b/src/__tests__/mockserver/internal/handler/pathgetv1drainsid.go index 6c3197e3..3434d650 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetv1drainsid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetv1drainsid.go @@ -53,7 +53,7 @@ func testGetDrainGetDrain0(w http.ResponseWriter, req *http.Request) { Name: "", CreatedAt: 1182.63, UpdatedAt: 7579.11, - Source: operations.CreateGetDrainSourceUnion1GetDrainSourceIntegration1( + Source: operations.CreateGetDrainSourceUnion1Integration( operations.GetDrainSourceIntegration1{ Kind: operations.GetDrainKindIntegration1Integration, IntegrationID: "", diff --git a/src/__tests__/mockserver/internal/handler/pathgetv1integrationsconfigurationid.go b/src/__tests__/mockserver/internal/handler/pathgetv1integrationsconfigurationid.go index 1d3069f0..2e4f814d 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetv1integrationsconfigurationid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetv1integrationsconfigurationid.go @@ -53,7 +53,7 @@ func testGetConfigurationGetConfiguration0(w http.ResponseWriter, req *http.Requ Level: operations.GetConfigurationLevelWarn, Title: "", }, - TransferRequest: operations.CreateTransferRequestTransferRequestTransferFromMarketplace( + TransferRequest: operations.CreateTransferRequestTransferFromMarketplace( operations.TransferRequestTransferFromMarketplace{ Kind: operations.KindTransferFromMarketplaceTransferFromMarketplace, RequestID: "", diff --git a/src/__tests__/mockserver/internal/handler/pathgetv1logdrains.go b/src/__tests__/mockserver/internal/handler/pathgetv1logdrains.go index a9183516..dac0cb9b 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetv1logdrains.go +++ b/src/__tests__/mockserver/internal/handler/pathgetv1logdrains.go @@ -56,7 +56,7 @@ func testGetAllLogDrainsGetAllLogDrains0(w http.ResponseWriter, req *http.Reques Name: "", CreatedAt: 7495.57, UpdatedAt: 4759.82, - Source: operations.CreateGetAllLogDrainsSourceUnion1GetAllLogDrainsSourceSelfServed1( + Source: operations.CreateGetAllLogDrainsSourceUnion1SelfServed( operations.GetAllLogDrainsSourceSelfServed1{ Kind: operations.GetAllLogDrainsKindSelfServed1SelfServed, }, diff --git a/src/__tests__/mockserver/internal/handler/pathgetv1projectsidornamerollingreleasebilling.go b/src/__tests__/mockserver/internal/handler/pathgetv1projectsidornamerollingreleasebilling.go index 84e62feb..60fa748e 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetv1projectsidornamerollingreleasebilling.go +++ b/src/__tests__/mockserver/internal/handler/pathgetv1projectsidornamerollingreleasebilling.go @@ -48,11 +48,13 @@ func testGetRollingReleaseBillingStatusGetRollingReleaseBillingStatus0(w http.Re } var respBody *operations.GetRollingReleaseBillingStatusResponseBody = types.Pointer(operations.CreateGetRollingReleaseBillingStatusResponseBodyNoAvailableSlots( operations.NoAvailableSlots{ - AvailableSlots: 5448.83, + AvailableSlots: 8974.52, Reason: operations.ReasonNoAvailableSlotsNoAvailableSlots, Message: "", EnabledProjects: []string{ "", + "", + "", }, }, )) diff --git a/src/__tests__/mockserver/internal/handler/pathgetv1registrarordersorderid.go b/src/__tests__/mockserver/internal/handler/pathgetv1registrarordersorderid.go index c3a3b84f..68f8daa6 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetv1registrarordersorderid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetv1registrarordersorderid.go @@ -48,7 +48,7 @@ func testGetOrderGetOrder0(w http.ResponseWriter, req *http.Request) { var respBody *operations.GetOrderResponseBody = &operations.GetOrderResponseBody{ OrderID: "", Domains: []operations.GetOrderDomainUnion{ - operations.CreateGetOrderDomainUnionDomainRenewal( + operations.CreateGetOrderDomainUnionRenewal( operations.DomainRenewal{ PurchaseType: operations.PurchaseTypeRenewalRenewal, Years: 3271.32, diff --git a/src/__tests__/mockserver/internal/handler/pathgetv1securityfirewallbypass.go b/src/__tests__/mockserver/internal/handler/pathgetv1securityfirewallbypass.go index 43c0a89f..5e5ca16c 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetv1securityfirewallbypass.go +++ b/src/__tests__/mockserver/internal/handler/pathgetv1securityfirewallbypass.go @@ -50,10 +50,10 @@ func testGetBypassIPGetBypassIp0(w http.ResponseWriter, req *http.Request) { operations.GetBypassIPResult{ OwnerID: "", ID: "", - Domain: "jealous-tapioca.org", - IP: "202.135.145.236", - CreatedAt: "1706393793060", - UpdatedAt: "1735610727884", + Domain: "second-newsletter.name", + IP: "165.112.228.246", + CreatedAt: "1716245811354", + UpdatedAt: "1735671604252", UpdatedAtHour: "", }, }, diff --git a/src/__tests__/mockserver/internal/handler/pathgetv2integrationslogdrains.go b/src/__tests__/mockserver/internal/handler/pathgetv2integrationslogdrains.go index 66e1b078..b5ed6a94 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetv2integrationslogdrains.go +++ b/src/__tests__/mockserver/internal/handler/pathgetv2integrationslogdrains.go @@ -75,7 +75,7 @@ func testGetIntegrationLogDrainsGetIntegrationLogDrains0(w http.ResponseWriter, }, Branch: types.String("feature/*"), SamplingRate: types.Float64(0.5), - Source: operations.CreateGetIntegrationLogDrainsSourceUnionGetIntegrationLogDrainsSourceIntegration( + Source: operations.CreateGetIntegrationLogDrainsSourceUnionIntegration( operations.GetIntegrationLogDrainsSourceIntegration{ Kind: operations.GetIntegrationLogDrainsKindIntegrationIntegration, IntegrationID: "", @@ -111,7 +111,7 @@ func testGetIntegrationLogDrainsGetIntegrationLogDrains0(w http.ResponseWriter, }, Branch: types.String("feature/*"), SamplingRate: types.Float64(0.5), - Source: operations.CreateGetIntegrationLogDrainsSourceUnionGetIntegrationLogDrainsSourceIntegration( + Source: operations.CreateGetIntegrationLogDrainsSourceUnionIntegration( operations.GetIntegrationLogDrainsSourceIntegration{ Kind: operations.GetIntegrationLogDrainsKindIntegrationIntegration, IntegrationID: "", diff --git a/src/__tests__/mockserver/internal/handler/pathpatchv1drainsid.go b/src/__tests__/mockserver/internal/handler/pathpatchv1drainsid.go index 9699c0b1..07635c5f 100644 --- a/src/__tests__/mockserver/internal/handler/pathpatchv1drainsid.go +++ b/src/__tests__/mockserver/internal/handler/pathpatchv1drainsid.go @@ -58,7 +58,7 @@ func testUpdateDrainUpdateDrain0(w http.ResponseWriter, req *http.Request) { Name: "", CreatedAt: 7781.81, UpdatedAt: 8087.89, - Source: operations.CreateUpdateDrainResponseBodySourceUnion1UpdateDrainSourceIntegration1( + Source: operations.CreateUpdateDrainResponseBodySourceUnion1Integration( operations.UpdateDrainSourceIntegration1{ Kind: operations.UpdateDrainKindIntegration1Integration, IntegrationID: "", diff --git a/src/__tests__/mockserver/internal/handler/pathpostv1drains.go b/src/__tests__/mockserver/internal/handler/pathpostv1drains.go index 11e0d791..50c1b7b7 100644 --- a/src/__tests__/mockserver/internal/handler/pathpostv1drains.go +++ b/src/__tests__/mockserver/internal/handler/pathpostv1drains.go @@ -58,7 +58,7 @@ func testCreateDrainCreateDrain0(w http.ResponseWriter, req *http.Request) { Name: "", CreatedAt: 3665.73, UpdatedAt: 3681.88, - Source: operations.CreateCreateDrainResponseBodySourceUnion1CreateDrainSourceSelfServed1( + Source: operations.CreateCreateDrainResponseBodySourceUnion1SelfServed( operations.CreateDrainSourceSelfServed1{ Kind: operations.CreateDrainKindSelfServed1SelfServed, }, diff --git a/src/__tests__/mockserver/internal/handler/pathpostv1edgeconfig.go b/src/__tests__/mockserver/internal/handler/pathpostv1edgeconfig.go index 36711bf5..b2c21005 100644 --- a/src/__tests__/mockserver/internal/handler/pathpostv1edgeconfig.go +++ b/src/__tests__/mockserver/internal/handler/pathpostv1edgeconfig.go @@ -51,8 +51,8 @@ func testCreateEdgeConfigCreateEdgeConfig0(w http.ResponseWriter, req *http.Requ return } var respBody *operations.CreateEdgeConfigResponseBody = &operations.CreateEdgeConfigResponseBody{ - CreatedAt: 5488.14, - UpdatedAt: 7151.9, + CreatedAt: 6458.94, + UpdatedAt: 4375.87, ID: "", Slug: "", OwnerID: "", diff --git a/src/__tests__/mockserver/internal/handler/pathpostv2integrationslogdrains.go b/src/__tests__/mockserver/internal/handler/pathpostv2integrationslogdrains.go index f83d4787..cf65d199 100644 --- a/src/__tests__/mockserver/internal/handler/pathpostv2integrationslogdrains.go +++ b/src/__tests__/mockserver/internal/handler/pathpostv2integrationslogdrains.go @@ -77,7 +77,7 @@ func testCreateLogDrainCreateLogDrain0(w http.ResponseWriter, req *http.Request) }, Branch: types.String("feature/*"), SamplingRate: types.Float64(0.5), - Source: operations.CreateCreateLogDrainSourceUnionCreateLogDrainSourceIntegration( + Source: operations.CreateCreateLogDrainSourceUnionIntegration( operations.CreateLogDrainSourceIntegration{ Kind: operations.CreateLogDrainKindIntegrationIntegration, IntegrationID: "", diff --git a/src/__tests__/mockserver/internal/handler/pathputv1edgeconfigedgeconfigid.go b/src/__tests__/mockserver/internal/handler/pathputv1edgeconfigedgeconfigid.go index a79a633c..03585040 100644 --- a/src/__tests__/mockserver/internal/handler/pathputv1edgeconfigedgeconfigid.go +++ b/src/__tests__/mockserver/internal/handler/pathputv1edgeconfigedgeconfigid.go @@ -51,8 +51,8 @@ func testUpdateEdgeConfigUpdateEdgeConfig0(w http.ResponseWriter, req *http.Requ return } var respBody *operations.UpdateEdgeConfigResponseBody = &operations.UpdateEdgeConfigResponseBody{ - CreatedAt: 8700.13, - UpdatedAt: 9786.19, + CreatedAt: 3834.41, + UpdatedAt: 7917.25, ID: "", Slug: "", OwnerID: "", diff --git a/src/__tests__/mockserver/internal/sdk/models/components/authtoken.go b/src/__tests__/mockserver/internal/sdk/models/components/authtoken.go index cb79e543..79545f32 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/authtoken.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/authtoken.go @@ -347,8 +347,8 @@ func (o *ScopeUser) GetExpiresAt() *float64 { type ScopeType string const ( - ScopeTypeScopeUser ScopeType = "scope_User" - ScopeTypeScopeTeam ScopeType = "scope_Team" + ScopeTypeUser ScopeType = "user" + ScopeTypeTeam ScopeType = "team" ) type Scope struct { @@ -358,37 +358,59 @@ type Scope struct { Type ScopeType } -func CreateScopeScopeUser(scopeUser ScopeUser) Scope { - typ := ScopeTypeScopeUser +func CreateScopeUser(user ScopeUser) Scope { + typ := ScopeTypeUser + + typStr := AuthTokenTypeUser(typ) + user.Type = typStr return Scope{ - ScopeUser: &scopeUser, + ScopeUser: &user, Type: typ, } } -func CreateScopeScopeTeam(scopeTeam ScopeTeam) Scope { - typ := ScopeTypeScopeTeam +func CreateScopeTeam(team ScopeTeam) Scope { + typ := ScopeTypeTeam + + typStr := TypeTeam(typ) + team.Type = typStr return Scope{ - ScopeTeam: &scopeTeam, + ScopeTeam: &team, Type: typ, } } func (u *Scope) UnmarshalJSON(data []byte) error { - var scopeTeam ScopeTeam = ScopeTeam{} - if err := utils.UnmarshalJSON(data, &scopeTeam, "", true, nil); err == nil { - u.ScopeTeam = &scopeTeam - u.Type = ScopeTypeScopeTeam - return nil + type discriminator struct { + Type string `json:"type"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var scopeUser ScopeUser = ScopeUser{} - if err := utils.UnmarshalJSON(data, &scopeUser, "", true, nil); err == nil { - u.ScopeUser = &scopeUser - u.Type = ScopeTypeScopeUser + switch dis.Type { + case "user": + scopeUser := new(ScopeUser) + if err := utils.UnmarshalJSON(data, &scopeUser, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == user) type ScopeUser within Scope: %w", string(data), err) + } + + u.ScopeUser = scopeUser + u.Type = ScopeTypeUser + return nil + case "team": + scopeTeam := new(ScopeTeam) + if err := utils.UnmarshalJSON(data, &scopeTeam, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == team) type ScopeTeam within Scope: %w", string(data), err) + } + + u.ScopeTeam = scopeTeam + u.Type = ScopeTypeTeam return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/userevent.go b/src/__tests__/mockserver/internal/sdk/models/components/userevent.go index 0f3c3f8e..7d5466fc 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/userevent.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/userevent.go @@ -11529,8 +11529,13 @@ func (o *Credential) GetID() string { type CredentialUnionType string const ( - CredentialUnionTypeCredential CredentialUnionType = "credential" - CredentialUnionTypeCredentialGithubOauthCustomHost CredentialUnionType = "credential_GithubOauthCustomHost" + CredentialUnionTypeGitlab CredentialUnionType = "gitlab" + CredentialUnionTypeBitbucket CredentialUnionType = "bitbucket" + CredentialUnionTypeGoogle CredentialUnionType = "google" + CredentialUnionTypeApple CredentialUnionType = "apple" + CredentialUnionTypeGithubOauth CredentialUnionType = "github-oauth" + CredentialUnionTypeGithubOauthLimited CredentialUnionType = "github-oauth-limited" + CredentialUnionTypeGithubOauthCustomHost CredentialUnionType = "github-oauth-custom-host" ) type CredentialUnion struct { @@ -11540,37 +11545,164 @@ type CredentialUnion struct { Type CredentialUnionType } -func CreateCredentialUnionCredential(credential Credential) CredentialUnion { - typ := CredentialUnionTypeCredential +func CreateCredentialUnionGitlab(gitlab Credential) CredentialUnion { + typ := CredentialUnionTypeGitlab + + typStr := CredentialType(typ) + gitlab.Type = typStr + + return CredentialUnion{ + Credential: &gitlab, + Type: typ, + } +} + +func CreateCredentialUnionBitbucket(bitbucket Credential) CredentialUnion { + typ := CredentialUnionTypeBitbucket + + typStr := CredentialType(typ) + bitbucket.Type = typStr + + return CredentialUnion{ + Credential: &bitbucket, + Type: typ, + } +} + +func CreateCredentialUnionGoogle(google Credential) CredentialUnion { + typ := CredentialUnionTypeGoogle + + typStr := CredentialType(typ) + google.Type = typStr + + return CredentialUnion{ + Credential: &google, + Type: typ, + } +} + +func CreateCredentialUnionApple(apple Credential) CredentialUnion { + typ := CredentialUnionTypeApple + + typStr := CredentialType(typ) + apple.Type = typStr + + return CredentialUnion{ + Credential: &apple, + Type: typ, + } +} + +func CreateCredentialUnionGithubOauth(githubOauth Credential) CredentialUnion { + typ := CredentialUnionTypeGithubOauth + + typStr := CredentialType(typ) + githubOauth.Type = typStr + + return CredentialUnion{ + Credential: &githubOauth, + Type: typ, + } +} + +func CreateCredentialUnionGithubOauthLimited(githubOauthLimited Credential) CredentialUnion { + typ := CredentialUnionTypeGithubOauthLimited + + typStr := CredentialType(typ) + githubOauthLimited.Type = typStr return CredentialUnion{ - Credential: &credential, + Credential: &githubOauthLimited, Type: typ, } } -func CreateCredentialUnionCredentialGithubOauthCustomHost(credentialGithubOauthCustomHost CredentialGithubOauthCustomHost) CredentialUnion { - typ := CredentialUnionTypeCredentialGithubOauthCustomHost +func CreateCredentialUnionGithubOauthCustomHost(githubOauthCustomHost CredentialGithubOauthCustomHost) CredentialUnion { + typ := CredentialUnionTypeGithubOauthCustomHost + + typStr := TypeGithubOauthCustomHost(typ) + githubOauthCustomHost.Type = typStr return CredentialUnion{ - CredentialGithubOauthCustomHost: &credentialGithubOauthCustomHost, + CredentialGithubOauthCustomHost: &githubOauthCustomHost, Type: typ, } } func (u *CredentialUnion) UnmarshalJSON(data []byte) error { - var credentialGithubOauthCustomHost CredentialGithubOauthCustomHost = CredentialGithubOauthCustomHost{} - if err := utils.UnmarshalJSON(data, &credentialGithubOauthCustomHost, "", true, nil); err == nil { - u.CredentialGithubOauthCustomHost = &credentialGithubOauthCustomHost - u.Type = CredentialUnionTypeCredentialGithubOauthCustomHost - return nil + type discriminator struct { + Type string `json:"type"` } - var credential Credential = Credential{} - if err := utils.UnmarshalJSON(data, &credential, "", true, nil); err == nil { - u.Credential = &credential - u.Type = CredentialUnionTypeCredential + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Type { + case "gitlab": + credential := new(Credential) + if err := utils.UnmarshalJSON(data, &credential, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == gitlab) type Credential within CredentialUnion: %w", string(data), err) + } + + u.Credential = credential + u.Type = CredentialUnionTypeGitlab + return nil + case "bitbucket": + credential := new(Credential) + if err := utils.UnmarshalJSON(data, &credential, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == bitbucket) type Credential within CredentialUnion: %w", string(data), err) + } + + u.Credential = credential + u.Type = CredentialUnionTypeBitbucket + return nil + case "google": + credential := new(Credential) + if err := utils.UnmarshalJSON(data, &credential, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == google) type Credential within CredentialUnion: %w", string(data), err) + } + + u.Credential = credential + u.Type = CredentialUnionTypeGoogle + return nil + case "apple": + credential := new(Credential) + if err := utils.UnmarshalJSON(data, &credential, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == apple) type Credential within CredentialUnion: %w", string(data), err) + } + + u.Credential = credential + u.Type = CredentialUnionTypeApple + return nil + case "github-oauth": + credential := new(Credential) + if err := utils.UnmarshalJSON(data, &credential, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == github-oauth) type Credential within CredentialUnion: %w", string(data), err) + } + + u.Credential = credential + u.Type = CredentialUnionTypeGithubOauth + return nil + case "github-oauth-limited": + credential := new(Credential) + if err := utils.UnmarshalJSON(data, &credential, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == github-oauth-limited) type Credential within CredentialUnion: %w", string(data), err) + } + + u.Credential = credential + u.Type = CredentialUnionTypeGithubOauthLimited + return nil + case "github-oauth-custom-host": + credentialGithubOauthCustomHost := new(CredentialGithubOauthCustomHost) + if err := utils.UnmarshalJSON(data, &credentialGithubOauthCustomHost, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == github-oauth-custom-host) type CredentialGithubOauthCustomHost within CredentialUnion: %w", string(data), err) + } + + u.CredentialGithubOauthCustomHost = credentialGithubOauthCustomHost + u.Type = CredentialUnionTypeGithubOauthCustomHost return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/canceldeployment.go b/src/__tests__/mockserver/internal/sdk/models/operations/canceldeployment.go index 9888c082..d8dfd095 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/canceldeployment.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/canceldeployment.go @@ -4668,8 +4668,10 @@ func (o *CancelDeploymentHasHost) GetValue() CancelDeploymentHasValueUnion1 { type CancelDeploymentHasUnionType string const ( - CancelDeploymentHasUnionTypeCancelDeploymentHasHost CancelDeploymentHasUnionType = "cancelDeployment_has_Host" - CancelDeploymentHasUnionTypeCancelDeploymentHas CancelDeploymentHasUnionType = "cancelDeployment_has" + CancelDeploymentHasUnionTypeHost CancelDeploymentHasUnionType = "host" + CancelDeploymentHasUnionTypeHeader CancelDeploymentHasUnionType = "header" + CancelDeploymentHasUnionTypeCookie CancelDeploymentHasUnionType = "cookie" + CancelDeploymentHasUnionTypeQuery CancelDeploymentHasUnionType = "query" ) type CancelDeploymentHasUnion struct { @@ -4679,37 +4681,101 @@ type CancelDeploymentHasUnion struct { Type CancelDeploymentHasUnionType } -func CreateCancelDeploymentHasUnionCancelDeploymentHasHost(cancelDeploymentHasHost CancelDeploymentHasHost) CancelDeploymentHasUnion { - typ := CancelDeploymentHasUnionTypeCancelDeploymentHasHost +func CreateCancelDeploymentHasUnionHost(host CancelDeploymentHasHost) CancelDeploymentHasUnion { + typ := CancelDeploymentHasUnionTypeHost + + typStr := CancelDeploymentHasTypeHost(typ) + host.Type = typStr return CancelDeploymentHasUnion{ - CancelDeploymentHasHost: &cancelDeploymentHasHost, + CancelDeploymentHasHost: &host, Type: typ, } } -func CreateCancelDeploymentHasUnionCancelDeploymentHas(cancelDeploymentHas CancelDeploymentHas) CancelDeploymentHasUnion { - typ := CancelDeploymentHasUnionTypeCancelDeploymentHas +func CreateCancelDeploymentHasUnionHeader(header CancelDeploymentHas) CancelDeploymentHasUnion { + typ := CancelDeploymentHasUnionTypeHeader + + typStr := CancelDeploymentHasType(typ) + header.Type = typStr + + return CancelDeploymentHasUnion{ + CancelDeploymentHas: &header, + Type: typ, + } +} + +func CreateCancelDeploymentHasUnionCookie(cookie CancelDeploymentHas) CancelDeploymentHasUnion { + typ := CancelDeploymentHasUnionTypeCookie + + typStr := CancelDeploymentHasType(typ) + cookie.Type = typStr + + return CancelDeploymentHasUnion{ + CancelDeploymentHas: &cookie, + Type: typ, + } +} + +func CreateCancelDeploymentHasUnionQuery(query CancelDeploymentHas) CancelDeploymentHasUnion { + typ := CancelDeploymentHasUnionTypeQuery + + typStr := CancelDeploymentHasType(typ) + query.Type = typStr return CancelDeploymentHasUnion{ - CancelDeploymentHas: &cancelDeploymentHas, + CancelDeploymentHas: &query, Type: typ, } } func (u *CancelDeploymentHasUnion) UnmarshalJSON(data []byte) error { - var cancelDeploymentHasHost CancelDeploymentHasHost = CancelDeploymentHasHost{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentHasHost, "", true, nil); err == nil { - u.CancelDeploymentHasHost = &cancelDeploymentHasHost - u.Type = CancelDeploymentHasUnionTypeCancelDeploymentHasHost - return nil + type discriminator struct { + Type string `json:"type"` } - var cancelDeploymentHas CancelDeploymentHas = CancelDeploymentHas{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentHas, "", true, nil); err == nil { - u.CancelDeploymentHas = &cancelDeploymentHas - u.Type = CancelDeploymentHasUnionTypeCancelDeploymentHas + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Type { + case "host": + cancelDeploymentHasHost := new(CancelDeploymentHasHost) + if err := utils.UnmarshalJSON(data, &cancelDeploymentHasHost, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == host) type CancelDeploymentHasHost within CancelDeploymentHasUnion: %w", string(data), err) + } + + u.CancelDeploymentHasHost = cancelDeploymentHasHost + u.Type = CancelDeploymentHasUnionTypeHost + return nil + case "header": + cancelDeploymentHas := new(CancelDeploymentHas) + if err := utils.UnmarshalJSON(data, &cancelDeploymentHas, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == header) type CancelDeploymentHas within CancelDeploymentHasUnion: %w", string(data), err) + } + + u.CancelDeploymentHas = cancelDeploymentHas + u.Type = CancelDeploymentHasUnionTypeHeader + return nil + case "cookie": + cancelDeploymentHas := new(CancelDeploymentHas) + if err := utils.UnmarshalJSON(data, &cancelDeploymentHas, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == cookie) type CancelDeploymentHas within CancelDeploymentHasUnion: %w", string(data), err) + } + + u.CancelDeploymentHas = cancelDeploymentHas + u.Type = CancelDeploymentHasUnionTypeCookie + return nil + case "query": + cancelDeploymentHas := new(CancelDeploymentHas) + if err := utils.UnmarshalJSON(data, &cancelDeploymentHas, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == query) type CancelDeploymentHas within CancelDeploymentHasUnion: %w", string(data), err) + } + + u.CancelDeploymentHas = cancelDeploymentHas + u.Type = CancelDeploymentHasUnionTypeQuery return nil } @@ -5307,8 +5373,10 @@ func (o *CancelDeploymentMissingHost) GetValue() CancelDeploymentMissingValueUni type CancelDeploymentMissingUnionType string const ( - CancelDeploymentMissingUnionTypeCancelDeploymentMissingHost CancelDeploymentMissingUnionType = "cancelDeployment_missing_Host" - CancelDeploymentMissingUnionTypeCancelDeploymentMissing CancelDeploymentMissingUnionType = "cancelDeployment_missing" + CancelDeploymentMissingUnionTypeHost CancelDeploymentMissingUnionType = "host" + CancelDeploymentMissingUnionTypeHeader CancelDeploymentMissingUnionType = "header" + CancelDeploymentMissingUnionTypeCookie CancelDeploymentMissingUnionType = "cookie" + CancelDeploymentMissingUnionTypeQuery CancelDeploymentMissingUnionType = "query" ) type CancelDeploymentMissingUnion struct { @@ -5318,37 +5386,101 @@ type CancelDeploymentMissingUnion struct { Type CancelDeploymentMissingUnionType } -func CreateCancelDeploymentMissingUnionCancelDeploymentMissingHost(cancelDeploymentMissingHost CancelDeploymentMissingHost) CancelDeploymentMissingUnion { - typ := CancelDeploymentMissingUnionTypeCancelDeploymentMissingHost +func CreateCancelDeploymentMissingUnionHost(host CancelDeploymentMissingHost) CancelDeploymentMissingUnion { + typ := CancelDeploymentMissingUnionTypeHost + + typStr := CancelDeploymentMissingTypeHost(typ) + host.Type = typStr return CancelDeploymentMissingUnion{ - CancelDeploymentMissingHost: &cancelDeploymentMissingHost, + CancelDeploymentMissingHost: &host, Type: typ, } } -func CreateCancelDeploymentMissingUnionCancelDeploymentMissing(cancelDeploymentMissing CancelDeploymentMissing) CancelDeploymentMissingUnion { - typ := CancelDeploymentMissingUnionTypeCancelDeploymentMissing +func CreateCancelDeploymentMissingUnionHeader(header CancelDeploymentMissing) CancelDeploymentMissingUnion { + typ := CancelDeploymentMissingUnionTypeHeader + + typStr := CancelDeploymentMissingType(typ) + header.Type = typStr return CancelDeploymentMissingUnion{ - CancelDeploymentMissing: &cancelDeploymentMissing, + CancelDeploymentMissing: &header, + Type: typ, + } +} + +func CreateCancelDeploymentMissingUnionCookie(cookie CancelDeploymentMissing) CancelDeploymentMissingUnion { + typ := CancelDeploymentMissingUnionTypeCookie + + typStr := CancelDeploymentMissingType(typ) + cookie.Type = typStr + + return CancelDeploymentMissingUnion{ + CancelDeploymentMissing: &cookie, + Type: typ, + } +} + +func CreateCancelDeploymentMissingUnionQuery(query CancelDeploymentMissing) CancelDeploymentMissingUnion { + typ := CancelDeploymentMissingUnionTypeQuery + + typStr := CancelDeploymentMissingType(typ) + query.Type = typStr + + return CancelDeploymentMissingUnion{ + CancelDeploymentMissing: &query, Type: typ, } } func (u *CancelDeploymentMissingUnion) UnmarshalJSON(data []byte) error { - var cancelDeploymentMissingHost CancelDeploymentMissingHost = CancelDeploymentMissingHost{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentMissingHost, "", true, nil); err == nil { - u.CancelDeploymentMissingHost = &cancelDeploymentMissingHost - u.Type = CancelDeploymentMissingUnionTypeCancelDeploymentMissingHost - return nil + type discriminator struct { + Type string `json:"type"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var cancelDeploymentMissing CancelDeploymentMissing = CancelDeploymentMissing{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentMissing, "", true, nil); err == nil { - u.CancelDeploymentMissing = &cancelDeploymentMissing - u.Type = CancelDeploymentMissingUnionTypeCancelDeploymentMissing + switch dis.Type { + case "host": + cancelDeploymentMissingHost := new(CancelDeploymentMissingHost) + if err := utils.UnmarshalJSON(data, &cancelDeploymentMissingHost, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == host) type CancelDeploymentMissingHost within CancelDeploymentMissingUnion: %w", string(data), err) + } + + u.CancelDeploymentMissingHost = cancelDeploymentMissingHost + u.Type = CancelDeploymentMissingUnionTypeHost + return nil + case "header": + cancelDeploymentMissing := new(CancelDeploymentMissing) + if err := utils.UnmarshalJSON(data, &cancelDeploymentMissing, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == header) type CancelDeploymentMissing within CancelDeploymentMissingUnion: %w", string(data), err) + } + + u.CancelDeploymentMissing = cancelDeploymentMissing + u.Type = CancelDeploymentMissingUnionTypeHeader + return nil + case "cookie": + cancelDeploymentMissing := new(CancelDeploymentMissing) + if err := utils.UnmarshalJSON(data, &cancelDeploymentMissing, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == cookie) type CancelDeploymentMissing within CancelDeploymentMissingUnion: %w", string(data), err) + } + + u.CancelDeploymentMissing = cancelDeploymentMissing + u.Type = CancelDeploymentMissingUnionTypeCookie + return nil + case "query": + cancelDeploymentMissing := new(CancelDeploymentMissing) + if err := utils.UnmarshalJSON(data, &cancelDeploymentMissing, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == query) type CancelDeploymentMissing within CancelDeploymentMissingUnion: %w", string(data), err) + } + + u.CancelDeploymentMissing = cancelDeploymentMissing + u.Type = CancelDeploymentMissingUnionTypeQuery return nil } @@ -6532,9 +6664,9 @@ func (o *CancelDeploymentGitRepoGitlab) GetOwnerType() CancelDeploymentOwnerType type CancelDeploymentGitRepoUnionType string const ( - CancelDeploymentGitRepoUnionTypeCancelDeploymentGitRepoGitlab CancelDeploymentGitRepoUnionType = "cancelDeployment_gitRepo_Gitlab" - CancelDeploymentGitRepoUnionTypeCancelDeploymentGitRepoGithub CancelDeploymentGitRepoUnionType = "cancelDeployment_gitRepo_Github" - CancelDeploymentGitRepoUnionTypeCancelDeploymentGitRepoBitbucket CancelDeploymentGitRepoUnionType = "cancelDeployment_gitRepo_Bitbucket" + CancelDeploymentGitRepoUnionTypeGitlab CancelDeploymentGitRepoUnionType = "gitlab" + CancelDeploymentGitRepoUnionTypeGithub CancelDeploymentGitRepoUnionType = "github" + CancelDeploymentGitRepoUnionTypeBitbucket CancelDeploymentGitRepoUnionType = "bitbucket" ) type CancelDeploymentGitRepoUnion struct { @@ -6545,53 +6677,80 @@ type CancelDeploymentGitRepoUnion struct { Type CancelDeploymentGitRepoUnionType } -func CreateCancelDeploymentGitRepoUnionCancelDeploymentGitRepoGitlab(cancelDeploymentGitRepoGitlab CancelDeploymentGitRepoGitlab) CancelDeploymentGitRepoUnion { - typ := CancelDeploymentGitRepoUnionTypeCancelDeploymentGitRepoGitlab +func CreateCancelDeploymentGitRepoUnionGitlab(gitlab CancelDeploymentGitRepoGitlab) CancelDeploymentGitRepoUnion { + typ := CancelDeploymentGitRepoUnionTypeGitlab + + typStr := CancelDeploymentGitRepoTypeGitlab(typ) + gitlab.Type = typStr return CancelDeploymentGitRepoUnion{ - CancelDeploymentGitRepoGitlab: &cancelDeploymentGitRepoGitlab, + CancelDeploymentGitRepoGitlab: &gitlab, Type: typ, } } -func CreateCancelDeploymentGitRepoUnionCancelDeploymentGitRepoGithub(cancelDeploymentGitRepoGithub CancelDeploymentGitRepoGithub) CancelDeploymentGitRepoUnion { - typ := CancelDeploymentGitRepoUnionTypeCancelDeploymentGitRepoGithub +func CreateCancelDeploymentGitRepoUnionGithub(github CancelDeploymentGitRepoGithub) CancelDeploymentGitRepoUnion { + typ := CancelDeploymentGitRepoUnionTypeGithub + + typStr := CancelDeploymentGitRepoTypeGithub(typ) + github.Type = typStr return CancelDeploymentGitRepoUnion{ - CancelDeploymentGitRepoGithub: &cancelDeploymentGitRepoGithub, + CancelDeploymentGitRepoGithub: &github, Type: typ, } } -func CreateCancelDeploymentGitRepoUnionCancelDeploymentGitRepoBitbucket(cancelDeploymentGitRepoBitbucket CancelDeploymentGitRepoBitbucket) CancelDeploymentGitRepoUnion { - typ := CancelDeploymentGitRepoUnionTypeCancelDeploymentGitRepoBitbucket +func CreateCancelDeploymentGitRepoUnionBitbucket(bitbucket CancelDeploymentGitRepoBitbucket) CancelDeploymentGitRepoUnion { + typ := CancelDeploymentGitRepoUnionTypeBitbucket + + typStr := CancelDeploymentGitRepoTypeBitbucket(typ) + bitbucket.Type = typStr return CancelDeploymentGitRepoUnion{ - CancelDeploymentGitRepoBitbucket: &cancelDeploymentGitRepoBitbucket, + CancelDeploymentGitRepoBitbucket: &bitbucket, Type: typ, } } func (u *CancelDeploymentGitRepoUnion) UnmarshalJSON(data []byte) error { - var cancelDeploymentGitRepoGithub CancelDeploymentGitRepoGithub = CancelDeploymentGitRepoGithub{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentGitRepoGithub, "", true, nil); err == nil { - u.CancelDeploymentGitRepoGithub = &cancelDeploymentGitRepoGithub - u.Type = CancelDeploymentGitRepoUnionTypeCancelDeploymentGitRepoGithub - return nil + type discriminator struct { + Type string `json:"type"` } - var cancelDeploymentGitRepoBitbucket CancelDeploymentGitRepoBitbucket = CancelDeploymentGitRepoBitbucket{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentGitRepoBitbucket, "", true, nil); err == nil { - u.CancelDeploymentGitRepoBitbucket = &cancelDeploymentGitRepoBitbucket - u.Type = CancelDeploymentGitRepoUnionTypeCancelDeploymentGitRepoBitbucket - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var cancelDeploymentGitRepoGitlab CancelDeploymentGitRepoGitlab = CancelDeploymentGitRepoGitlab{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentGitRepoGitlab, "", true, nil); err == nil { - u.CancelDeploymentGitRepoGitlab = &cancelDeploymentGitRepoGitlab - u.Type = CancelDeploymentGitRepoUnionTypeCancelDeploymentGitRepoGitlab + switch dis.Type { + case "gitlab": + cancelDeploymentGitRepoGitlab := new(CancelDeploymentGitRepoGitlab) + if err := utils.UnmarshalJSON(data, &cancelDeploymentGitRepoGitlab, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == gitlab) type CancelDeploymentGitRepoGitlab within CancelDeploymentGitRepoUnion: %w", string(data), err) + } + + u.CancelDeploymentGitRepoGitlab = cancelDeploymentGitRepoGitlab + u.Type = CancelDeploymentGitRepoUnionTypeGitlab + return nil + case "github": + cancelDeploymentGitRepoGithub := new(CancelDeploymentGitRepoGithub) + if err := utils.UnmarshalJSON(data, &cancelDeploymentGitRepoGithub, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == github) type CancelDeploymentGitRepoGithub within CancelDeploymentGitRepoUnion: %w", string(data), err) + } + + u.CancelDeploymentGitRepoGithub = cancelDeploymentGitRepoGithub + u.Type = CancelDeploymentGitRepoUnionTypeGithub + return nil + case "bitbucket": + cancelDeploymentGitRepoBitbucket := new(CancelDeploymentGitRepoBitbucket) + if err := utils.UnmarshalJSON(data, &cancelDeploymentGitRepoBitbucket, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == bitbucket) type CancelDeploymentGitRepoBitbucket within CancelDeploymentGitRepoUnion: %w", string(data), err) + } + + u.CancelDeploymentGitRepoBitbucket = cancelDeploymentGitRepoBitbucket + u.Type = CancelDeploymentGitRepoUnionTypeBitbucket return nil } @@ -7844,6 +8003,27 @@ func (o *CancelDeploymentResponseBody) GetGitRepo() *CancelDeploymentGitRepoUnio return o.GitRepo } +func (o *CancelDeploymentResponseBody) GetGitRepoGitlab() *CancelDeploymentGitRepoGitlab { + if v := o.GetGitRepo(); v != nil { + return v.CancelDeploymentGitRepoGitlab + } + return nil +} + +func (o *CancelDeploymentResponseBody) GetGitRepoGithub() *CancelDeploymentGitRepoGithub { + if v := o.GetGitRepo(); v != nil { + return v.CancelDeploymentGitRepoGithub + } + return nil +} + +func (o *CancelDeploymentResponseBody) GetGitRepoBitbucket() *CancelDeploymentGitRepoBitbucket { + if v := o.GetGitRepo(); v != nil { + return v.CancelDeploymentGitRepoBitbucket + } + return nil +} + func (o *CancelDeploymentResponseBody) GetFlags() *CancelDeploymentFlagsUnion { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/createdeployment.go b/src/__tests__/mockserver/internal/sdk/models/operations/createdeployment.go index ff249a6b..514327b1 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/createdeployment.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/createdeployment.go @@ -6349,8 +6349,10 @@ func (o *CreateDeploymentHasHost) GetValue() CreateDeploymentHasValueUnion1 { type CreateDeploymentHasUnionType string const ( - CreateDeploymentHasUnionTypeCreateDeploymentHasHost CreateDeploymentHasUnionType = "createDeployment_has_Host" - CreateDeploymentHasUnionTypeCreateDeploymentHas CreateDeploymentHasUnionType = "createDeployment_has" + CreateDeploymentHasUnionTypeHost CreateDeploymentHasUnionType = "host" + CreateDeploymentHasUnionTypeHeader CreateDeploymentHasUnionType = "header" + CreateDeploymentHasUnionTypeCookie CreateDeploymentHasUnionType = "cookie" + CreateDeploymentHasUnionTypeQuery CreateDeploymentHasUnionType = "query" ) type CreateDeploymentHasUnion struct { @@ -6360,37 +6362,101 @@ type CreateDeploymentHasUnion struct { Type CreateDeploymentHasUnionType } -func CreateCreateDeploymentHasUnionCreateDeploymentHasHost(createDeploymentHasHost CreateDeploymentHasHost) CreateDeploymentHasUnion { - typ := CreateDeploymentHasUnionTypeCreateDeploymentHasHost +func CreateCreateDeploymentHasUnionHost(host CreateDeploymentHasHost) CreateDeploymentHasUnion { + typ := CreateDeploymentHasUnionTypeHost + + typStr := CreateDeploymentHasTypeHost(typ) + host.Type = typStr return CreateDeploymentHasUnion{ - CreateDeploymentHasHost: &createDeploymentHasHost, + CreateDeploymentHasHost: &host, Type: typ, } } -func CreateCreateDeploymentHasUnionCreateDeploymentHas(createDeploymentHas CreateDeploymentHas) CreateDeploymentHasUnion { - typ := CreateDeploymentHasUnionTypeCreateDeploymentHas +func CreateCreateDeploymentHasUnionHeader(header CreateDeploymentHas) CreateDeploymentHasUnion { + typ := CreateDeploymentHasUnionTypeHeader + + typStr := CreateDeploymentHasType(typ) + header.Type = typStr + + return CreateDeploymentHasUnion{ + CreateDeploymentHas: &header, + Type: typ, + } +} + +func CreateCreateDeploymentHasUnionCookie(cookie CreateDeploymentHas) CreateDeploymentHasUnion { + typ := CreateDeploymentHasUnionTypeCookie + + typStr := CreateDeploymentHasType(typ) + cookie.Type = typStr + + return CreateDeploymentHasUnion{ + CreateDeploymentHas: &cookie, + Type: typ, + } +} + +func CreateCreateDeploymentHasUnionQuery(query CreateDeploymentHas) CreateDeploymentHasUnion { + typ := CreateDeploymentHasUnionTypeQuery + + typStr := CreateDeploymentHasType(typ) + query.Type = typStr return CreateDeploymentHasUnion{ - CreateDeploymentHas: &createDeploymentHas, + CreateDeploymentHas: &query, Type: typ, } } func (u *CreateDeploymentHasUnion) UnmarshalJSON(data []byte) error { - var createDeploymentHasHost CreateDeploymentHasHost = CreateDeploymentHasHost{} - if err := utils.UnmarshalJSON(data, &createDeploymentHasHost, "", true, nil); err == nil { - u.CreateDeploymentHasHost = &createDeploymentHasHost - u.Type = CreateDeploymentHasUnionTypeCreateDeploymentHasHost - return nil + type discriminator struct { + Type string `json:"type"` } - var createDeploymentHas CreateDeploymentHas = CreateDeploymentHas{} - if err := utils.UnmarshalJSON(data, &createDeploymentHas, "", true, nil); err == nil { - u.CreateDeploymentHas = &createDeploymentHas - u.Type = CreateDeploymentHasUnionTypeCreateDeploymentHas + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Type { + case "host": + createDeploymentHasHost := new(CreateDeploymentHasHost) + if err := utils.UnmarshalJSON(data, &createDeploymentHasHost, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == host) type CreateDeploymentHasHost within CreateDeploymentHasUnion: %w", string(data), err) + } + + u.CreateDeploymentHasHost = createDeploymentHasHost + u.Type = CreateDeploymentHasUnionTypeHost + return nil + case "header": + createDeploymentHas := new(CreateDeploymentHas) + if err := utils.UnmarshalJSON(data, &createDeploymentHas, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == header) type CreateDeploymentHas within CreateDeploymentHasUnion: %w", string(data), err) + } + + u.CreateDeploymentHas = createDeploymentHas + u.Type = CreateDeploymentHasUnionTypeHeader + return nil + case "cookie": + createDeploymentHas := new(CreateDeploymentHas) + if err := utils.UnmarshalJSON(data, &createDeploymentHas, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == cookie) type CreateDeploymentHas within CreateDeploymentHasUnion: %w", string(data), err) + } + + u.CreateDeploymentHas = createDeploymentHas + u.Type = CreateDeploymentHasUnionTypeCookie + return nil + case "query": + createDeploymentHas := new(CreateDeploymentHas) + if err := utils.UnmarshalJSON(data, &createDeploymentHas, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == query) type CreateDeploymentHas within CreateDeploymentHasUnion: %w", string(data), err) + } + + u.CreateDeploymentHas = createDeploymentHas + u.Type = CreateDeploymentHasUnionTypeQuery return nil } @@ -6988,8 +7054,10 @@ func (o *CreateDeploymentMissingHost) GetValue() CreateDeploymentMissingValueUni type CreateDeploymentMissingUnionType string const ( - CreateDeploymentMissingUnionTypeCreateDeploymentMissingHost CreateDeploymentMissingUnionType = "createDeployment_missing_Host" - CreateDeploymentMissingUnionTypeCreateDeploymentMissing CreateDeploymentMissingUnionType = "createDeployment_missing" + CreateDeploymentMissingUnionTypeHost CreateDeploymentMissingUnionType = "host" + CreateDeploymentMissingUnionTypeHeader CreateDeploymentMissingUnionType = "header" + CreateDeploymentMissingUnionTypeCookie CreateDeploymentMissingUnionType = "cookie" + CreateDeploymentMissingUnionTypeQuery CreateDeploymentMissingUnionType = "query" ) type CreateDeploymentMissingUnion struct { @@ -6999,37 +7067,101 @@ type CreateDeploymentMissingUnion struct { Type CreateDeploymentMissingUnionType } -func CreateCreateDeploymentMissingUnionCreateDeploymentMissingHost(createDeploymentMissingHost CreateDeploymentMissingHost) CreateDeploymentMissingUnion { - typ := CreateDeploymentMissingUnionTypeCreateDeploymentMissingHost +func CreateCreateDeploymentMissingUnionHost(host CreateDeploymentMissingHost) CreateDeploymentMissingUnion { + typ := CreateDeploymentMissingUnionTypeHost + + typStr := CreateDeploymentMissingTypeHost(typ) + host.Type = typStr return CreateDeploymentMissingUnion{ - CreateDeploymentMissingHost: &createDeploymentMissingHost, + CreateDeploymentMissingHost: &host, Type: typ, } } -func CreateCreateDeploymentMissingUnionCreateDeploymentMissing(createDeploymentMissing CreateDeploymentMissing) CreateDeploymentMissingUnion { - typ := CreateDeploymentMissingUnionTypeCreateDeploymentMissing +func CreateCreateDeploymentMissingUnionHeader(header CreateDeploymentMissing) CreateDeploymentMissingUnion { + typ := CreateDeploymentMissingUnionTypeHeader + + typStr := CreateDeploymentMissingType(typ) + header.Type = typStr return CreateDeploymentMissingUnion{ - CreateDeploymentMissing: &createDeploymentMissing, + CreateDeploymentMissing: &header, + Type: typ, + } +} + +func CreateCreateDeploymentMissingUnionCookie(cookie CreateDeploymentMissing) CreateDeploymentMissingUnion { + typ := CreateDeploymentMissingUnionTypeCookie + + typStr := CreateDeploymentMissingType(typ) + cookie.Type = typStr + + return CreateDeploymentMissingUnion{ + CreateDeploymentMissing: &cookie, + Type: typ, + } +} + +func CreateCreateDeploymentMissingUnionQuery(query CreateDeploymentMissing) CreateDeploymentMissingUnion { + typ := CreateDeploymentMissingUnionTypeQuery + + typStr := CreateDeploymentMissingType(typ) + query.Type = typStr + + return CreateDeploymentMissingUnion{ + CreateDeploymentMissing: &query, Type: typ, } } func (u *CreateDeploymentMissingUnion) UnmarshalJSON(data []byte) error { - var createDeploymentMissingHost CreateDeploymentMissingHost = CreateDeploymentMissingHost{} - if err := utils.UnmarshalJSON(data, &createDeploymentMissingHost, "", true, nil); err == nil { - u.CreateDeploymentMissingHost = &createDeploymentMissingHost - u.Type = CreateDeploymentMissingUnionTypeCreateDeploymentMissingHost - return nil + type discriminator struct { + Type string `json:"type"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var createDeploymentMissing CreateDeploymentMissing = CreateDeploymentMissing{} - if err := utils.UnmarshalJSON(data, &createDeploymentMissing, "", true, nil); err == nil { - u.CreateDeploymentMissing = &createDeploymentMissing - u.Type = CreateDeploymentMissingUnionTypeCreateDeploymentMissing + switch dis.Type { + case "host": + createDeploymentMissingHost := new(CreateDeploymentMissingHost) + if err := utils.UnmarshalJSON(data, &createDeploymentMissingHost, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == host) type CreateDeploymentMissingHost within CreateDeploymentMissingUnion: %w", string(data), err) + } + + u.CreateDeploymentMissingHost = createDeploymentMissingHost + u.Type = CreateDeploymentMissingUnionTypeHost + return nil + case "header": + createDeploymentMissing := new(CreateDeploymentMissing) + if err := utils.UnmarshalJSON(data, &createDeploymentMissing, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == header) type CreateDeploymentMissing within CreateDeploymentMissingUnion: %w", string(data), err) + } + + u.CreateDeploymentMissing = createDeploymentMissing + u.Type = CreateDeploymentMissingUnionTypeHeader + return nil + case "cookie": + createDeploymentMissing := new(CreateDeploymentMissing) + if err := utils.UnmarshalJSON(data, &createDeploymentMissing, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == cookie) type CreateDeploymentMissing within CreateDeploymentMissingUnion: %w", string(data), err) + } + + u.CreateDeploymentMissing = createDeploymentMissing + u.Type = CreateDeploymentMissingUnionTypeCookie + return nil + case "query": + createDeploymentMissing := new(CreateDeploymentMissing) + if err := utils.UnmarshalJSON(data, &createDeploymentMissing, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == query) type CreateDeploymentMissing within CreateDeploymentMissingUnion: %w", string(data), err) + } + + u.CreateDeploymentMissing = createDeploymentMissing + u.Type = CreateDeploymentMissingUnionTypeQuery return nil } @@ -8213,9 +8345,9 @@ func (o *CreateDeploymentGitRepoGitlab) GetOwnerType() CreateDeploymentOwnerType type CreateDeploymentGitRepoUnionType string const ( - CreateDeploymentGitRepoUnionTypeCreateDeploymentGitRepoGitlab CreateDeploymentGitRepoUnionType = "createDeployment_gitRepo_Gitlab" - CreateDeploymentGitRepoUnionTypeCreateDeploymentGitRepoGithub CreateDeploymentGitRepoUnionType = "createDeployment_gitRepo_Github" - CreateDeploymentGitRepoUnionTypeCreateDeploymentGitRepoBitbucket CreateDeploymentGitRepoUnionType = "createDeployment_gitRepo_Bitbucket" + CreateDeploymentGitRepoUnionTypeGitlab CreateDeploymentGitRepoUnionType = "gitlab" + CreateDeploymentGitRepoUnionTypeGithub CreateDeploymentGitRepoUnionType = "github" + CreateDeploymentGitRepoUnionTypeBitbucket CreateDeploymentGitRepoUnionType = "bitbucket" ) type CreateDeploymentGitRepoUnion struct { @@ -8226,53 +8358,80 @@ type CreateDeploymentGitRepoUnion struct { Type CreateDeploymentGitRepoUnionType } -func CreateCreateDeploymentGitRepoUnionCreateDeploymentGitRepoGitlab(createDeploymentGitRepoGitlab CreateDeploymentGitRepoGitlab) CreateDeploymentGitRepoUnion { - typ := CreateDeploymentGitRepoUnionTypeCreateDeploymentGitRepoGitlab +func CreateCreateDeploymentGitRepoUnionGitlab(gitlab CreateDeploymentGitRepoGitlab) CreateDeploymentGitRepoUnion { + typ := CreateDeploymentGitRepoUnionTypeGitlab + + typStr := CreateDeploymentGitRepoTypeGitlab(typ) + gitlab.Type = typStr return CreateDeploymentGitRepoUnion{ - CreateDeploymentGitRepoGitlab: &createDeploymentGitRepoGitlab, + CreateDeploymentGitRepoGitlab: &gitlab, Type: typ, } } -func CreateCreateDeploymentGitRepoUnionCreateDeploymentGitRepoGithub(createDeploymentGitRepoGithub CreateDeploymentGitRepoGithub) CreateDeploymentGitRepoUnion { - typ := CreateDeploymentGitRepoUnionTypeCreateDeploymentGitRepoGithub +func CreateCreateDeploymentGitRepoUnionGithub(github CreateDeploymentGitRepoGithub) CreateDeploymentGitRepoUnion { + typ := CreateDeploymentGitRepoUnionTypeGithub + + typStr := CreateDeploymentGitRepoTypeGithub(typ) + github.Type = typStr return CreateDeploymentGitRepoUnion{ - CreateDeploymentGitRepoGithub: &createDeploymentGitRepoGithub, + CreateDeploymentGitRepoGithub: &github, Type: typ, } } -func CreateCreateDeploymentGitRepoUnionCreateDeploymentGitRepoBitbucket(createDeploymentGitRepoBitbucket CreateDeploymentGitRepoBitbucket) CreateDeploymentGitRepoUnion { - typ := CreateDeploymentGitRepoUnionTypeCreateDeploymentGitRepoBitbucket +func CreateCreateDeploymentGitRepoUnionBitbucket(bitbucket CreateDeploymentGitRepoBitbucket) CreateDeploymentGitRepoUnion { + typ := CreateDeploymentGitRepoUnionTypeBitbucket + + typStr := CreateDeploymentGitRepoTypeBitbucket(typ) + bitbucket.Type = typStr return CreateDeploymentGitRepoUnion{ - CreateDeploymentGitRepoBitbucket: &createDeploymentGitRepoBitbucket, + CreateDeploymentGitRepoBitbucket: &bitbucket, Type: typ, } } func (u *CreateDeploymentGitRepoUnion) UnmarshalJSON(data []byte) error { - var createDeploymentGitRepoGithub CreateDeploymentGitRepoGithub = CreateDeploymentGitRepoGithub{} - if err := utils.UnmarshalJSON(data, &createDeploymentGitRepoGithub, "", true, nil); err == nil { - u.CreateDeploymentGitRepoGithub = &createDeploymentGitRepoGithub - u.Type = CreateDeploymentGitRepoUnionTypeCreateDeploymentGitRepoGithub - return nil + type discriminator struct { + Type string `json:"type"` } - var createDeploymentGitRepoBitbucket CreateDeploymentGitRepoBitbucket = CreateDeploymentGitRepoBitbucket{} - if err := utils.UnmarshalJSON(data, &createDeploymentGitRepoBitbucket, "", true, nil); err == nil { - u.CreateDeploymentGitRepoBitbucket = &createDeploymentGitRepoBitbucket - u.Type = CreateDeploymentGitRepoUnionTypeCreateDeploymentGitRepoBitbucket - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var createDeploymentGitRepoGitlab CreateDeploymentGitRepoGitlab = CreateDeploymentGitRepoGitlab{} - if err := utils.UnmarshalJSON(data, &createDeploymentGitRepoGitlab, "", true, nil); err == nil { - u.CreateDeploymentGitRepoGitlab = &createDeploymentGitRepoGitlab - u.Type = CreateDeploymentGitRepoUnionTypeCreateDeploymentGitRepoGitlab + switch dis.Type { + case "gitlab": + createDeploymentGitRepoGitlab := new(CreateDeploymentGitRepoGitlab) + if err := utils.UnmarshalJSON(data, &createDeploymentGitRepoGitlab, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == gitlab) type CreateDeploymentGitRepoGitlab within CreateDeploymentGitRepoUnion: %w", string(data), err) + } + + u.CreateDeploymentGitRepoGitlab = createDeploymentGitRepoGitlab + u.Type = CreateDeploymentGitRepoUnionTypeGitlab + return nil + case "github": + createDeploymentGitRepoGithub := new(CreateDeploymentGitRepoGithub) + if err := utils.UnmarshalJSON(data, &createDeploymentGitRepoGithub, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == github) type CreateDeploymentGitRepoGithub within CreateDeploymentGitRepoUnion: %w", string(data), err) + } + + u.CreateDeploymentGitRepoGithub = createDeploymentGitRepoGithub + u.Type = CreateDeploymentGitRepoUnionTypeGithub + return nil + case "bitbucket": + createDeploymentGitRepoBitbucket := new(CreateDeploymentGitRepoBitbucket) + if err := utils.UnmarshalJSON(data, &createDeploymentGitRepoBitbucket, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == bitbucket) type CreateDeploymentGitRepoBitbucket within CreateDeploymentGitRepoUnion: %w", string(data), err) + } + + u.CreateDeploymentGitRepoBitbucket = createDeploymentGitRepoBitbucket + u.Type = CreateDeploymentGitRepoUnionTypeBitbucket return nil } @@ -9525,6 +9684,27 @@ func (o *CreateDeploymentResponseBody) GetGitRepo() *CreateDeploymentGitRepoUnio return o.GitRepo } +func (o *CreateDeploymentResponseBody) GetGitRepoGitlab() *CreateDeploymentGitRepoGitlab { + if v := o.GetGitRepo(); v != nil { + return v.CreateDeploymentGitRepoGitlab + } + return nil +} + +func (o *CreateDeploymentResponseBody) GetGitRepoGithub() *CreateDeploymentGitRepoGithub { + if v := o.GetGitRepo(); v != nil { + return v.CreateDeploymentGitRepoGithub + } + return nil +} + +func (o *CreateDeploymentResponseBody) GetGitRepoBitbucket() *CreateDeploymentGitRepoBitbucket { + if v := o.GetGitRepo(); v != nil { + return v.CreateDeploymentGitRepoBitbucket + } + return nil +} + func (o *CreateDeploymentResponseBody) GetFlags() *CreateDeploymentFlagsUnion { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/createdrain.go b/src/__tests__/mockserver/internal/sdk/models/operations/createdrain.go index bd953171..7a2389fc 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/createdrain.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/createdrain.go @@ -1884,10 +1884,10 @@ func (o *CreateDrainDeliveryHTTP2) GetSecret() *CreateDrainSecretUnion3 { type CreateDrainDeliveryResponseUnion2Type string const ( - CreateDrainDeliveryResponseUnion2TypeCreateDrainDeliveryHTTP2 CreateDrainDeliveryResponseUnion2Type = "createDrain_delivery_HTTP_2" - CreateDrainDeliveryResponseUnion2TypeCreateDrainDeliveryOtlphttp2 CreateDrainDeliveryResponseUnion2Type = "createDrain_delivery_Otlphttp_2" - CreateDrainDeliveryResponseUnion2TypeCreateDrainDeliveryClickhouse2 CreateDrainDeliveryResponseUnion2Type = "createDrain_delivery_Clickhouse_2" - CreateDrainDeliveryResponseUnion2TypeCreateDrainDeliveryVercelOtelTracesDb2 CreateDrainDeliveryResponseUnion2Type = "createDrain_delivery_VercelOtelTracesDb_2" + CreateDrainDeliveryResponseUnion2TypeHTTP CreateDrainDeliveryResponseUnion2Type = "http" + CreateDrainDeliveryResponseUnion2TypeOtlphttp CreateDrainDeliveryResponseUnion2Type = "otlphttp" + CreateDrainDeliveryResponseUnion2TypeClickhouse CreateDrainDeliveryResponseUnion2Type = "clickhouse" + CreateDrainDeliveryResponseUnion2TypeInternal CreateDrainDeliveryResponseUnion2Type = "internal" ) type CreateDrainDeliveryResponseUnion2 struct { @@ -1899,69 +1899,101 @@ type CreateDrainDeliveryResponseUnion2 struct { Type CreateDrainDeliveryResponseUnion2Type } -func CreateCreateDrainDeliveryResponseUnion2CreateDrainDeliveryHTTP2(createDrainDeliveryHTTP2 CreateDrainDeliveryHTTP2) CreateDrainDeliveryResponseUnion2 { - typ := CreateDrainDeliveryResponseUnion2TypeCreateDrainDeliveryHTTP2 +func CreateCreateDrainDeliveryResponseUnion2HTTP(http CreateDrainDeliveryHTTP2) CreateDrainDeliveryResponseUnion2 { + typ := CreateDrainDeliveryResponseUnion2TypeHTTP + + typStr := CreateDrainTypeHTTP2(typ) + http.Type = typStr return CreateDrainDeliveryResponseUnion2{ - CreateDrainDeliveryHTTP2: &createDrainDeliveryHTTP2, + CreateDrainDeliveryHTTP2: &http, Type: typ, } } -func CreateCreateDrainDeliveryResponseUnion2CreateDrainDeliveryOtlphttp2(createDrainDeliveryOtlphttp2 CreateDrainDeliveryOtlphttp2) CreateDrainDeliveryResponseUnion2 { - typ := CreateDrainDeliveryResponseUnion2TypeCreateDrainDeliveryOtlphttp2 +func CreateCreateDrainDeliveryResponseUnion2Otlphttp(otlphttp CreateDrainDeliveryOtlphttp2) CreateDrainDeliveryResponseUnion2 { + typ := CreateDrainDeliveryResponseUnion2TypeOtlphttp + + typStr := CreateDrainTypeOtlphttp2(typ) + otlphttp.Type = typStr return CreateDrainDeliveryResponseUnion2{ - CreateDrainDeliveryOtlphttp2: &createDrainDeliveryOtlphttp2, + CreateDrainDeliveryOtlphttp2: &otlphttp, Type: typ, } } -func CreateCreateDrainDeliveryResponseUnion2CreateDrainDeliveryClickhouse2(createDrainDeliveryClickhouse2 CreateDrainDeliveryClickhouse2) CreateDrainDeliveryResponseUnion2 { - typ := CreateDrainDeliveryResponseUnion2TypeCreateDrainDeliveryClickhouse2 +func CreateCreateDrainDeliveryResponseUnion2Clickhouse(clickhouse CreateDrainDeliveryClickhouse2) CreateDrainDeliveryResponseUnion2 { + typ := CreateDrainDeliveryResponseUnion2TypeClickhouse + + typStr := CreateDrainTypeClickhouse2(typ) + clickhouse.Type = typStr return CreateDrainDeliveryResponseUnion2{ - CreateDrainDeliveryClickhouse2: &createDrainDeliveryClickhouse2, + CreateDrainDeliveryClickhouse2: &clickhouse, Type: typ, } } -func CreateCreateDrainDeliveryResponseUnion2CreateDrainDeliveryVercelOtelTracesDb2(createDrainDeliveryVercelOtelTracesDb2 CreateDrainDeliveryVercelOtelTracesDb2) CreateDrainDeliveryResponseUnion2 { - typ := CreateDrainDeliveryResponseUnion2TypeCreateDrainDeliveryVercelOtelTracesDb2 +func CreateCreateDrainDeliveryResponseUnion2Internal(internal CreateDrainDeliveryVercelOtelTracesDb2) CreateDrainDeliveryResponseUnion2 { + typ := CreateDrainDeliveryResponseUnion2TypeInternal + + typStr := CreateDrainTypeInternal2(typ) + internal.Type = typStr return CreateDrainDeliveryResponseUnion2{ - CreateDrainDeliveryVercelOtelTracesDb2: &createDrainDeliveryVercelOtelTracesDb2, + CreateDrainDeliveryVercelOtelTracesDb2: &internal, Type: typ, } } func (u *CreateDrainDeliveryResponseUnion2) UnmarshalJSON(data []byte) error { - var createDrainDeliveryHTTP2 CreateDrainDeliveryHTTP2 = CreateDrainDeliveryHTTP2{} - if err := utils.UnmarshalJSON(data, &createDrainDeliveryHTTP2, "", true, nil); err == nil { - u.CreateDrainDeliveryHTTP2 = &createDrainDeliveryHTTP2 - u.Type = CreateDrainDeliveryResponseUnion2TypeCreateDrainDeliveryHTTP2 - return nil + type discriminator struct { + Type string `json:"type"` } - var createDrainDeliveryOtlphttp2 CreateDrainDeliveryOtlphttp2 = CreateDrainDeliveryOtlphttp2{} - if err := utils.UnmarshalJSON(data, &createDrainDeliveryOtlphttp2, "", true, nil); err == nil { - u.CreateDrainDeliveryOtlphttp2 = &createDrainDeliveryOtlphttp2 - u.Type = CreateDrainDeliveryResponseUnion2TypeCreateDrainDeliveryOtlphttp2 - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var createDrainDeliveryClickhouse2 CreateDrainDeliveryClickhouse2 = CreateDrainDeliveryClickhouse2{} - if err := utils.UnmarshalJSON(data, &createDrainDeliveryClickhouse2, "", true, nil); err == nil { - u.CreateDrainDeliveryClickhouse2 = &createDrainDeliveryClickhouse2 - u.Type = CreateDrainDeliveryResponseUnion2TypeCreateDrainDeliveryClickhouse2 + switch dis.Type { + case "http": + createDrainDeliveryHTTP2 := new(CreateDrainDeliveryHTTP2) + if err := utils.UnmarshalJSON(data, &createDrainDeliveryHTTP2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == http) type CreateDrainDeliveryHTTP2 within CreateDrainDeliveryResponseUnion2: %w", string(data), err) + } + + u.CreateDrainDeliveryHTTP2 = createDrainDeliveryHTTP2 + u.Type = CreateDrainDeliveryResponseUnion2TypeHTTP return nil - } + case "otlphttp": + createDrainDeliveryOtlphttp2 := new(CreateDrainDeliveryOtlphttp2) + if err := utils.UnmarshalJSON(data, &createDrainDeliveryOtlphttp2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == otlphttp) type CreateDrainDeliveryOtlphttp2 within CreateDrainDeliveryResponseUnion2: %w", string(data), err) + } + + u.CreateDrainDeliveryOtlphttp2 = createDrainDeliveryOtlphttp2 + u.Type = CreateDrainDeliveryResponseUnion2TypeOtlphttp + return nil + case "clickhouse": + createDrainDeliveryClickhouse2 := new(CreateDrainDeliveryClickhouse2) + if err := utils.UnmarshalJSON(data, &createDrainDeliveryClickhouse2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == clickhouse) type CreateDrainDeliveryClickhouse2 within CreateDrainDeliveryResponseUnion2: %w", string(data), err) + } + + u.CreateDrainDeliveryClickhouse2 = createDrainDeliveryClickhouse2 + u.Type = CreateDrainDeliveryResponseUnion2TypeClickhouse + return nil + case "internal": + createDrainDeliveryVercelOtelTracesDb2 := new(CreateDrainDeliveryVercelOtelTracesDb2) + if err := utils.UnmarshalJSON(data, &createDrainDeliveryVercelOtelTracesDb2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == internal) type CreateDrainDeliveryVercelOtelTracesDb2 within CreateDrainDeliveryResponseUnion2: %w", string(data), err) + } - var createDrainDeliveryVercelOtelTracesDb2 CreateDrainDeliveryVercelOtelTracesDb2 = CreateDrainDeliveryVercelOtelTracesDb2{} - if err := utils.UnmarshalJSON(data, &createDrainDeliveryVercelOtelTracesDb2, "", true, nil); err == nil { - u.CreateDrainDeliveryVercelOtelTracesDb2 = &createDrainDeliveryVercelOtelTracesDb2 - u.Type = CreateDrainDeliveryResponseUnion2TypeCreateDrainDeliveryVercelOtelTracesDb2 + u.CreateDrainDeliveryVercelOtelTracesDb2 = createDrainDeliveryVercelOtelTracesDb2 + u.Type = CreateDrainDeliveryResponseUnion2TypeInternal return nil } @@ -2269,8 +2301,8 @@ func (o *CreateDrainSourceSelfServed2) GetKind() CreateDrainKindSelfServed2 { type CreateDrainResponseBodySourceUnion2Type string const ( - CreateDrainResponseBodySourceUnion2TypeCreateDrainSourceSelfServed2 CreateDrainResponseBodySourceUnion2Type = "createDrain_source_SelfServed_2" - CreateDrainResponseBodySourceUnion2TypeCreateDrainSourceIntegration2 CreateDrainResponseBodySourceUnion2Type = "createDrain_source_Integration_2" + CreateDrainResponseBodySourceUnion2TypeSelfServed CreateDrainResponseBodySourceUnion2Type = "self-served" + CreateDrainResponseBodySourceUnion2TypeIntegration CreateDrainResponseBodySourceUnion2Type = "integration" ) type CreateDrainResponseBodySourceUnion2 struct { @@ -2280,37 +2312,59 @@ type CreateDrainResponseBodySourceUnion2 struct { Type CreateDrainResponseBodySourceUnion2Type } -func CreateCreateDrainResponseBodySourceUnion2CreateDrainSourceSelfServed2(createDrainSourceSelfServed2 CreateDrainSourceSelfServed2) CreateDrainResponseBodySourceUnion2 { - typ := CreateDrainResponseBodySourceUnion2TypeCreateDrainSourceSelfServed2 +func CreateCreateDrainResponseBodySourceUnion2SelfServed(selfServed CreateDrainSourceSelfServed2) CreateDrainResponseBodySourceUnion2 { + typ := CreateDrainResponseBodySourceUnion2TypeSelfServed + + typStr := CreateDrainKindSelfServed2(typ) + selfServed.Kind = typStr return CreateDrainResponseBodySourceUnion2{ - CreateDrainSourceSelfServed2: &createDrainSourceSelfServed2, + CreateDrainSourceSelfServed2: &selfServed, Type: typ, } } -func CreateCreateDrainResponseBodySourceUnion2CreateDrainSourceIntegration2(createDrainSourceIntegration2 CreateDrainSourceIntegration2) CreateDrainResponseBodySourceUnion2 { - typ := CreateDrainResponseBodySourceUnion2TypeCreateDrainSourceIntegration2 +func CreateCreateDrainResponseBodySourceUnion2Integration(integration CreateDrainSourceIntegration2) CreateDrainResponseBodySourceUnion2 { + typ := CreateDrainResponseBodySourceUnion2TypeIntegration + + typStr := CreateDrainKindIntegration2(typ) + integration.Kind = typStr return CreateDrainResponseBodySourceUnion2{ - CreateDrainSourceIntegration2: &createDrainSourceIntegration2, + CreateDrainSourceIntegration2: &integration, Type: typ, } } func (u *CreateDrainResponseBodySourceUnion2) UnmarshalJSON(data []byte) error { - var createDrainSourceIntegration2 CreateDrainSourceIntegration2 = CreateDrainSourceIntegration2{} - if err := utils.UnmarshalJSON(data, &createDrainSourceIntegration2, "", true, nil); err == nil { - u.CreateDrainSourceIntegration2 = &createDrainSourceIntegration2 - u.Type = CreateDrainResponseBodySourceUnion2TypeCreateDrainSourceIntegration2 - return nil + type discriminator struct { + Kind string `json:"kind"` } - var createDrainSourceSelfServed2 CreateDrainSourceSelfServed2 = CreateDrainSourceSelfServed2{} - if err := utils.UnmarshalJSON(data, &createDrainSourceSelfServed2, "", true, nil); err == nil { - u.CreateDrainSourceSelfServed2 = &createDrainSourceSelfServed2 - u.Type = CreateDrainResponseBodySourceUnion2TypeCreateDrainSourceSelfServed2 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Kind { + case "self-served": + createDrainSourceSelfServed2 := new(CreateDrainSourceSelfServed2) + if err := utils.UnmarshalJSON(data, &createDrainSourceSelfServed2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == self-served) type CreateDrainSourceSelfServed2 within CreateDrainResponseBodySourceUnion2: %w", string(data), err) + } + + u.CreateDrainSourceSelfServed2 = createDrainSourceSelfServed2 + u.Type = CreateDrainResponseBodySourceUnion2TypeSelfServed + return nil + case "integration": + createDrainSourceIntegration2 := new(CreateDrainSourceIntegration2) + if err := utils.UnmarshalJSON(data, &createDrainSourceIntegration2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == integration) type CreateDrainSourceIntegration2 within CreateDrainResponseBodySourceUnion2: %w", string(data), err) + } + + u.CreateDrainSourceIntegration2 = createDrainSourceIntegration2 + u.Type = CreateDrainResponseBodySourceUnion2TypeIntegration return nil } @@ -2618,8 +2672,8 @@ func (o *CreateDrainFilterBasic2) GetDeployment() *CreateDrainFilterV2Deployment type CreateDrainFilterResponseUnion2Type string const ( - CreateDrainFilterResponseUnion2TypeCreateDrainFilterBasic2 CreateDrainFilterResponseUnion2Type = "createDrain_filter_Basic_2" - CreateDrainFilterResponseUnion2TypeCreateDrainFilterOdata2 CreateDrainFilterResponseUnion2Type = "createDrain_filter_Odata_2" + CreateDrainFilterResponseUnion2TypeBasic CreateDrainFilterResponseUnion2Type = "basic" + CreateDrainFilterResponseUnion2TypeOdata CreateDrainFilterResponseUnion2Type = "odata" ) type CreateDrainFilterResponseUnion2 struct { @@ -2629,37 +2683,59 @@ type CreateDrainFilterResponseUnion2 struct { Type CreateDrainFilterResponseUnion2Type } -func CreateCreateDrainFilterResponseUnion2CreateDrainFilterBasic2(createDrainFilterBasic2 CreateDrainFilterBasic2) CreateDrainFilterResponseUnion2 { - typ := CreateDrainFilterResponseUnion2TypeCreateDrainFilterBasic2 +func CreateCreateDrainFilterResponseUnion2Basic(basic CreateDrainFilterBasic2) CreateDrainFilterResponseUnion2 { + typ := CreateDrainFilterResponseUnion2TypeBasic + + typStr := CreateDrainTypeBasic2(typ) + basic.Type = typStr return CreateDrainFilterResponseUnion2{ - CreateDrainFilterBasic2: &createDrainFilterBasic2, + CreateDrainFilterBasic2: &basic, Type: typ, } } -func CreateCreateDrainFilterResponseUnion2CreateDrainFilterOdata2(createDrainFilterOdata2 CreateDrainFilterOdata2) CreateDrainFilterResponseUnion2 { - typ := CreateDrainFilterResponseUnion2TypeCreateDrainFilterOdata2 +func CreateCreateDrainFilterResponseUnion2Odata(odata CreateDrainFilterOdata2) CreateDrainFilterResponseUnion2 { + typ := CreateDrainFilterResponseUnion2TypeOdata + + typStr := CreateDrainTypeOdata2(typ) + odata.Type = typStr return CreateDrainFilterResponseUnion2{ - CreateDrainFilterOdata2: &createDrainFilterOdata2, + CreateDrainFilterOdata2: &odata, Type: typ, } } func (u *CreateDrainFilterResponseUnion2) UnmarshalJSON(data []byte) error { - var createDrainFilterOdata2 CreateDrainFilterOdata2 = CreateDrainFilterOdata2{} - if err := utils.UnmarshalJSON(data, &createDrainFilterOdata2, "", true, nil); err == nil { - u.CreateDrainFilterOdata2 = &createDrainFilterOdata2 - u.Type = CreateDrainFilterResponseUnion2TypeCreateDrainFilterOdata2 - return nil + type discriminator struct { + Type string `json:"type"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var createDrainFilterBasic2 CreateDrainFilterBasic2 = CreateDrainFilterBasic2{} - if err := utils.UnmarshalJSON(data, &createDrainFilterBasic2, "", true, nil); err == nil { - u.CreateDrainFilterBasic2 = &createDrainFilterBasic2 - u.Type = CreateDrainFilterResponseUnion2TypeCreateDrainFilterBasic2 + switch dis.Type { + case "basic": + createDrainFilterBasic2 := new(CreateDrainFilterBasic2) + if err := utils.UnmarshalJSON(data, &createDrainFilterBasic2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == basic) type CreateDrainFilterBasic2 within CreateDrainFilterResponseUnion2: %w", string(data), err) + } + + u.CreateDrainFilterBasic2 = createDrainFilterBasic2 + u.Type = CreateDrainFilterResponseUnion2TypeBasic + return nil + case "odata": + createDrainFilterOdata2 := new(CreateDrainFilterOdata2) + if err := utils.UnmarshalJSON(data, &createDrainFilterOdata2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == odata) type CreateDrainFilterOdata2 within CreateDrainFilterResponseUnion2: %w", string(data), err) + } + + u.CreateDrainFilterOdata2 = createDrainFilterOdata2 + u.Type = CreateDrainFilterResponseUnion2TypeOdata return nil } @@ -2708,6 +2784,14 @@ func (o *CreateDrainFilterV2V22) GetFilter() CreateDrainFilterResponseUnion2 { return o.Filter } +func (o *CreateDrainFilterV2V22) GetFilterBasic() *CreateDrainFilterBasic2 { + return o.GetFilter().CreateDrainFilterBasic2 +} + +func (o *CreateDrainFilterV2V22) GetFilterOdata() *CreateDrainFilterOdata2 { + return o.GetFilter().CreateDrainFilterOdata2 +} + type CreateDrainVersionV12 string const ( @@ -2756,8 +2840,8 @@ func (o *CreateDrainFilterV2V12) GetVersion() CreateDrainVersionV12 { type CreateDrainFilterV2Union2Type string const ( - CreateDrainFilterV2Union2TypeCreateDrainFilterV2V12 CreateDrainFilterV2Union2Type = "createDrain_filterV2_V1_2" - CreateDrainFilterV2Union2TypeCreateDrainFilterV2V22 CreateDrainFilterV2Union2Type = "createDrain_filterV2_V2_2" + CreateDrainFilterV2Union2TypeV1 CreateDrainFilterV2Union2Type = "v1" + CreateDrainFilterV2Union2TypeV2 CreateDrainFilterV2Union2Type = "v2" ) type CreateDrainFilterV2Union2 struct { @@ -2767,37 +2851,59 @@ type CreateDrainFilterV2Union2 struct { Type CreateDrainFilterV2Union2Type } -func CreateCreateDrainFilterV2Union2CreateDrainFilterV2V12(createDrainFilterV2V12 CreateDrainFilterV2V12) CreateDrainFilterV2Union2 { - typ := CreateDrainFilterV2Union2TypeCreateDrainFilterV2V12 +func CreateCreateDrainFilterV2Union2V1(v1 CreateDrainFilterV2V12) CreateDrainFilterV2Union2 { + typ := CreateDrainFilterV2Union2TypeV1 + + typStr := CreateDrainVersionV12(typ) + v1.Version = typStr return CreateDrainFilterV2Union2{ - CreateDrainFilterV2V12: &createDrainFilterV2V12, + CreateDrainFilterV2V12: &v1, Type: typ, } } -func CreateCreateDrainFilterV2Union2CreateDrainFilterV2V22(createDrainFilterV2V22 CreateDrainFilterV2V22) CreateDrainFilterV2Union2 { - typ := CreateDrainFilterV2Union2TypeCreateDrainFilterV2V22 +func CreateCreateDrainFilterV2Union2V2(v2 CreateDrainFilterV2V22) CreateDrainFilterV2Union2 { + typ := CreateDrainFilterV2Union2TypeV2 + + typStr := CreateDrainVersionV22(typ) + v2.Version = typStr return CreateDrainFilterV2Union2{ - CreateDrainFilterV2V22: &createDrainFilterV2V22, + CreateDrainFilterV2V22: &v2, Type: typ, } } func (u *CreateDrainFilterV2Union2) UnmarshalJSON(data []byte) error { - var createDrainFilterV2V22 CreateDrainFilterV2V22 = CreateDrainFilterV2V22{} - if err := utils.UnmarshalJSON(data, &createDrainFilterV2V22, "", true, nil); err == nil { - u.CreateDrainFilterV2V22 = &createDrainFilterV2V22 - u.Type = CreateDrainFilterV2Union2TypeCreateDrainFilterV2V22 - return nil + type discriminator struct { + Version string `json:"version"` } - var createDrainFilterV2V12 CreateDrainFilterV2V12 = CreateDrainFilterV2V12{} - if err := utils.UnmarshalJSON(data, &createDrainFilterV2V12, "", true, nil); err == nil { - u.CreateDrainFilterV2V12 = &createDrainFilterV2V12 - u.Type = CreateDrainFilterV2Union2TypeCreateDrainFilterV2V12 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Version { + case "v1": + createDrainFilterV2V12 := new(CreateDrainFilterV2V12) + if err := utils.UnmarshalJSON(data, &createDrainFilterV2V12, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Version == v1) type CreateDrainFilterV2V12 within CreateDrainFilterV2Union2: %w", string(data), err) + } + + u.CreateDrainFilterV2V12 = createDrainFilterV2V12 + u.Type = CreateDrainFilterV2Union2TypeV1 + return nil + case "v2": + createDrainFilterV2V22 := new(CreateDrainFilterV2V22) + if err := utils.UnmarshalJSON(data, &createDrainFilterV2V22, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Version == v2) type CreateDrainFilterV2V22 within CreateDrainFilterV2Union2: %w", string(data), err) + } + + u.CreateDrainFilterV2V22 = createDrainFilterV2V22 + u.Type = CreateDrainFilterV2Union2TypeV2 return nil } @@ -2917,8 +3023,8 @@ func (o *CreateDrainProjectAccessAll) GetAccess() CreateDrainAccessAll { type CreateDrainProjectAccessUnionType string const ( - CreateDrainProjectAccessUnionTypeCreateDrainProjectAccessAll CreateDrainProjectAccessUnionType = "createDrain_projectAccess_All" - CreateDrainProjectAccessUnionTypeCreateDrainProjectAccessSome CreateDrainProjectAccessUnionType = "createDrain_projectAccess_Some" + CreateDrainProjectAccessUnionTypeAll CreateDrainProjectAccessUnionType = "all" + CreateDrainProjectAccessUnionTypeSome CreateDrainProjectAccessUnionType = "some" ) type CreateDrainProjectAccessUnion struct { @@ -2928,37 +3034,59 @@ type CreateDrainProjectAccessUnion struct { Type CreateDrainProjectAccessUnionType } -func CreateCreateDrainProjectAccessUnionCreateDrainProjectAccessAll(createDrainProjectAccessAll CreateDrainProjectAccessAll) CreateDrainProjectAccessUnion { - typ := CreateDrainProjectAccessUnionTypeCreateDrainProjectAccessAll +func CreateCreateDrainProjectAccessUnionAll(all CreateDrainProjectAccessAll) CreateDrainProjectAccessUnion { + typ := CreateDrainProjectAccessUnionTypeAll + + typStr := CreateDrainAccessAll(typ) + all.Access = typStr return CreateDrainProjectAccessUnion{ - CreateDrainProjectAccessAll: &createDrainProjectAccessAll, + CreateDrainProjectAccessAll: &all, Type: typ, } } -func CreateCreateDrainProjectAccessUnionCreateDrainProjectAccessSome(createDrainProjectAccessSome CreateDrainProjectAccessSome) CreateDrainProjectAccessUnion { - typ := CreateDrainProjectAccessUnionTypeCreateDrainProjectAccessSome +func CreateCreateDrainProjectAccessUnionSome(some CreateDrainProjectAccessSome) CreateDrainProjectAccessUnion { + typ := CreateDrainProjectAccessUnionTypeSome + + typStr := CreateDrainAccessSome(typ) + some.Access = typStr return CreateDrainProjectAccessUnion{ - CreateDrainProjectAccessSome: &createDrainProjectAccessSome, + CreateDrainProjectAccessSome: &some, Type: typ, } } func (u *CreateDrainProjectAccessUnion) UnmarshalJSON(data []byte) error { - var createDrainProjectAccessSome CreateDrainProjectAccessSome = CreateDrainProjectAccessSome{} - if err := utils.UnmarshalJSON(data, &createDrainProjectAccessSome, "", true, nil); err == nil { - u.CreateDrainProjectAccessSome = &createDrainProjectAccessSome - u.Type = CreateDrainProjectAccessUnionTypeCreateDrainProjectAccessSome - return nil + type discriminator struct { + Access string `json:"access"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var createDrainProjectAccessAll CreateDrainProjectAccessAll = CreateDrainProjectAccessAll{} - if err := utils.UnmarshalJSON(data, &createDrainProjectAccessAll, "", true, nil); err == nil { - u.CreateDrainProjectAccessAll = &createDrainProjectAccessAll - u.Type = CreateDrainProjectAccessUnionTypeCreateDrainProjectAccessAll + switch dis.Access { + case "all": + createDrainProjectAccessAll := new(CreateDrainProjectAccessAll) + if err := utils.UnmarshalJSON(data, &createDrainProjectAccessAll, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Access == all) type CreateDrainProjectAccessAll within CreateDrainProjectAccessUnion: %w", string(data), err) + } + + u.CreateDrainProjectAccessAll = createDrainProjectAccessAll + u.Type = CreateDrainProjectAccessUnionTypeAll + return nil + case "some": + createDrainProjectAccessSome := new(CreateDrainProjectAccessSome) + if err := utils.UnmarshalJSON(data, &createDrainProjectAccessSome, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Access == some) type CreateDrainProjectAccessSome within CreateDrainProjectAccessUnion: %w", string(data), err) + } + + u.CreateDrainProjectAccessSome = createDrainProjectAccessSome + u.Type = CreateDrainProjectAccessUnionTypeSome return nil } @@ -3069,6 +3197,34 @@ func (o *CreateDrainResponseBody2) GetDelivery() *CreateDrainDeliveryResponseUni return o.Delivery } +func (o *CreateDrainResponseBody2) GetDeliveryHTTP() *CreateDrainDeliveryHTTP2 { + if v := o.GetDelivery(); v != nil { + return v.CreateDrainDeliveryHTTP2 + } + return nil +} + +func (o *CreateDrainResponseBody2) GetDeliveryOtlphttp() *CreateDrainDeliveryOtlphttp2 { + if v := o.GetDelivery(); v != nil { + return v.CreateDrainDeliveryOtlphttp2 + } + return nil +} + +func (o *CreateDrainResponseBody2) GetDeliveryClickhouse() *CreateDrainDeliveryClickhouse2 { + if v := o.GetDelivery(); v != nil { + return v.CreateDrainDeliveryClickhouse2 + } + return nil +} + +func (o *CreateDrainResponseBody2) GetDeliveryInternal() *CreateDrainDeliveryVercelOtelTracesDb2 { + if v := o.GetDelivery(); v != nil { + return v.CreateDrainDeliveryVercelOtelTracesDb2 + } + return nil +} + func (o *CreateDrainResponseBody2) GetSampling() []CreateDrainSamplingResponse2 { if o == nil { return nil @@ -3125,6 +3281,14 @@ func (o *CreateDrainResponseBody2) GetSource() CreateDrainResponseBodySourceUnio return o.Source } +func (o *CreateDrainResponseBody2) GetSourceSelfServed() *CreateDrainSourceSelfServed2 { + return o.GetSource().CreateDrainSourceSelfServed2 +} + +func (o *CreateDrainResponseBody2) GetSourceIntegration() *CreateDrainSourceIntegration2 { + return o.GetSource().CreateDrainSourceIntegration2 +} + func (o *CreateDrainResponseBody2) GetFilter() *string { if o == nil { return nil @@ -3139,6 +3303,20 @@ func (o *CreateDrainResponseBody2) GetFilterV2() *CreateDrainFilterV2Union2 { return o.FilterV2 } +func (o *CreateDrainResponseBody2) GetFilterV2V1() *CreateDrainFilterV2V12 { + if v := o.GetFilterV2(); v != nil { + return v.CreateDrainFilterV2V12 + } + return nil +} + +func (o *CreateDrainResponseBody2) GetFilterV2V2() *CreateDrainFilterV2V22 { + if v := o.GetFilterV2(); v != nil { + return v.CreateDrainFilterV2V22 + } + return nil +} + func (o *CreateDrainResponseBody2) GetIntegrationIcon() *string { if o == nil { return nil @@ -3167,6 +3345,20 @@ func (o *CreateDrainResponseBody2) GetProjectAccess() *CreateDrainProjectAccessU return o.ProjectAccess } +func (o *CreateDrainResponseBody2) GetProjectAccessAll() *CreateDrainProjectAccessAll { + if v := o.GetProjectAccess(); v != nil { + return v.CreateDrainProjectAccessAll + } + return nil +} + +func (o *CreateDrainResponseBody2) GetProjectAccessSome() *CreateDrainProjectAccessSome { + if v := o.GetProjectAccess(); v != nil { + return v.CreateDrainProjectAccessSome + } + return nil +} + type CreateDrainSchemasLog1 struct { } @@ -3887,10 +4079,10 @@ func (o *CreateDrainDeliveryHTTP1) GetSecret() *CreateDrainSecretUnion1 { type CreateDrainDeliveryResponseUnion1Type string const ( - CreateDrainDeliveryResponseUnion1TypeCreateDrainDeliveryHTTP1 CreateDrainDeliveryResponseUnion1Type = "createDrain_delivery_HTTP_1" - CreateDrainDeliveryResponseUnion1TypeCreateDrainDeliveryOtlphttp1 CreateDrainDeliveryResponseUnion1Type = "createDrain_delivery_Otlphttp_1" - CreateDrainDeliveryResponseUnion1TypeCreateDrainDeliveryClickhouse1 CreateDrainDeliveryResponseUnion1Type = "createDrain_delivery_Clickhouse_1" - CreateDrainDeliveryResponseUnion1TypeCreateDrainDeliveryVercelOtelTracesDb1 CreateDrainDeliveryResponseUnion1Type = "createDrain_delivery_VercelOtelTracesDb_1" + CreateDrainDeliveryResponseUnion1TypeHTTP CreateDrainDeliveryResponseUnion1Type = "http" + CreateDrainDeliveryResponseUnion1TypeOtlphttp CreateDrainDeliveryResponseUnion1Type = "otlphttp" + CreateDrainDeliveryResponseUnion1TypeClickhouse CreateDrainDeliveryResponseUnion1Type = "clickhouse" + CreateDrainDeliveryResponseUnion1TypeInternal CreateDrainDeliveryResponseUnion1Type = "internal" ) type CreateDrainDeliveryResponseUnion1 struct { @@ -3902,69 +4094,101 @@ type CreateDrainDeliveryResponseUnion1 struct { Type CreateDrainDeliveryResponseUnion1Type } -func CreateCreateDrainDeliveryResponseUnion1CreateDrainDeliveryHTTP1(createDrainDeliveryHTTP1 CreateDrainDeliveryHTTP1) CreateDrainDeliveryResponseUnion1 { - typ := CreateDrainDeliveryResponseUnion1TypeCreateDrainDeliveryHTTP1 +func CreateCreateDrainDeliveryResponseUnion1HTTP(http CreateDrainDeliveryHTTP1) CreateDrainDeliveryResponseUnion1 { + typ := CreateDrainDeliveryResponseUnion1TypeHTTP + + typStr := CreateDrainTypeHTTP1(typ) + http.Type = typStr return CreateDrainDeliveryResponseUnion1{ - CreateDrainDeliveryHTTP1: &createDrainDeliveryHTTP1, + CreateDrainDeliveryHTTP1: &http, Type: typ, } } -func CreateCreateDrainDeliveryResponseUnion1CreateDrainDeliveryOtlphttp1(createDrainDeliveryOtlphttp1 CreateDrainDeliveryOtlphttp1) CreateDrainDeliveryResponseUnion1 { - typ := CreateDrainDeliveryResponseUnion1TypeCreateDrainDeliveryOtlphttp1 +func CreateCreateDrainDeliveryResponseUnion1Otlphttp(otlphttp CreateDrainDeliveryOtlphttp1) CreateDrainDeliveryResponseUnion1 { + typ := CreateDrainDeliveryResponseUnion1TypeOtlphttp + + typStr := CreateDrainTypeOtlphttp1(typ) + otlphttp.Type = typStr return CreateDrainDeliveryResponseUnion1{ - CreateDrainDeliveryOtlphttp1: &createDrainDeliveryOtlphttp1, + CreateDrainDeliveryOtlphttp1: &otlphttp, Type: typ, } } -func CreateCreateDrainDeliveryResponseUnion1CreateDrainDeliveryClickhouse1(createDrainDeliveryClickhouse1 CreateDrainDeliveryClickhouse1) CreateDrainDeliveryResponseUnion1 { - typ := CreateDrainDeliveryResponseUnion1TypeCreateDrainDeliveryClickhouse1 +func CreateCreateDrainDeliveryResponseUnion1Clickhouse(clickhouse CreateDrainDeliveryClickhouse1) CreateDrainDeliveryResponseUnion1 { + typ := CreateDrainDeliveryResponseUnion1TypeClickhouse + + typStr := CreateDrainTypeClickhouse1(typ) + clickhouse.Type = typStr return CreateDrainDeliveryResponseUnion1{ - CreateDrainDeliveryClickhouse1: &createDrainDeliveryClickhouse1, + CreateDrainDeliveryClickhouse1: &clickhouse, Type: typ, } } -func CreateCreateDrainDeliveryResponseUnion1CreateDrainDeliveryVercelOtelTracesDb1(createDrainDeliveryVercelOtelTracesDb1 CreateDrainDeliveryVercelOtelTracesDb1) CreateDrainDeliveryResponseUnion1 { - typ := CreateDrainDeliveryResponseUnion1TypeCreateDrainDeliveryVercelOtelTracesDb1 +func CreateCreateDrainDeliveryResponseUnion1Internal(internal CreateDrainDeliveryVercelOtelTracesDb1) CreateDrainDeliveryResponseUnion1 { + typ := CreateDrainDeliveryResponseUnion1TypeInternal + + typStr := CreateDrainTypeInternal1(typ) + internal.Type = typStr return CreateDrainDeliveryResponseUnion1{ - CreateDrainDeliveryVercelOtelTracesDb1: &createDrainDeliveryVercelOtelTracesDb1, + CreateDrainDeliveryVercelOtelTracesDb1: &internal, Type: typ, } } func (u *CreateDrainDeliveryResponseUnion1) UnmarshalJSON(data []byte) error { - var createDrainDeliveryHTTP1 CreateDrainDeliveryHTTP1 = CreateDrainDeliveryHTTP1{} - if err := utils.UnmarshalJSON(data, &createDrainDeliveryHTTP1, "", true, nil); err == nil { - u.CreateDrainDeliveryHTTP1 = &createDrainDeliveryHTTP1 - u.Type = CreateDrainDeliveryResponseUnion1TypeCreateDrainDeliveryHTTP1 - return nil + type discriminator struct { + Type string `json:"type"` } - var createDrainDeliveryOtlphttp1 CreateDrainDeliveryOtlphttp1 = CreateDrainDeliveryOtlphttp1{} - if err := utils.UnmarshalJSON(data, &createDrainDeliveryOtlphttp1, "", true, nil); err == nil { - u.CreateDrainDeliveryOtlphttp1 = &createDrainDeliveryOtlphttp1 - u.Type = CreateDrainDeliveryResponseUnion1TypeCreateDrainDeliveryOtlphttp1 - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var createDrainDeliveryClickhouse1 CreateDrainDeliveryClickhouse1 = CreateDrainDeliveryClickhouse1{} - if err := utils.UnmarshalJSON(data, &createDrainDeliveryClickhouse1, "", true, nil); err == nil { - u.CreateDrainDeliveryClickhouse1 = &createDrainDeliveryClickhouse1 - u.Type = CreateDrainDeliveryResponseUnion1TypeCreateDrainDeliveryClickhouse1 + switch dis.Type { + case "http": + createDrainDeliveryHTTP1 := new(CreateDrainDeliveryHTTP1) + if err := utils.UnmarshalJSON(data, &createDrainDeliveryHTTP1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == http) type CreateDrainDeliveryHTTP1 within CreateDrainDeliveryResponseUnion1: %w", string(data), err) + } + + u.CreateDrainDeliveryHTTP1 = createDrainDeliveryHTTP1 + u.Type = CreateDrainDeliveryResponseUnion1TypeHTTP return nil - } + case "otlphttp": + createDrainDeliveryOtlphttp1 := new(CreateDrainDeliveryOtlphttp1) + if err := utils.UnmarshalJSON(data, &createDrainDeliveryOtlphttp1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == otlphttp) type CreateDrainDeliveryOtlphttp1 within CreateDrainDeliveryResponseUnion1: %w", string(data), err) + } + + u.CreateDrainDeliveryOtlphttp1 = createDrainDeliveryOtlphttp1 + u.Type = CreateDrainDeliveryResponseUnion1TypeOtlphttp + return nil + case "clickhouse": + createDrainDeliveryClickhouse1 := new(CreateDrainDeliveryClickhouse1) + if err := utils.UnmarshalJSON(data, &createDrainDeliveryClickhouse1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == clickhouse) type CreateDrainDeliveryClickhouse1 within CreateDrainDeliveryResponseUnion1: %w", string(data), err) + } - var createDrainDeliveryVercelOtelTracesDb1 CreateDrainDeliveryVercelOtelTracesDb1 = CreateDrainDeliveryVercelOtelTracesDb1{} - if err := utils.UnmarshalJSON(data, &createDrainDeliveryVercelOtelTracesDb1, "", true, nil); err == nil { - u.CreateDrainDeliveryVercelOtelTracesDb1 = &createDrainDeliveryVercelOtelTracesDb1 - u.Type = CreateDrainDeliveryResponseUnion1TypeCreateDrainDeliveryVercelOtelTracesDb1 + u.CreateDrainDeliveryClickhouse1 = createDrainDeliveryClickhouse1 + u.Type = CreateDrainDeliveryResponseUnion1TypeClickhouse + return nil + case "internal": + createDrainDeliveryVercelOtelTracesDb1 := new(CreateDrainDeliveryVercelOtelTracesDb1) + if err := utils.UnmarshalJSON(data, &createDrainDeliveryVercelOtelTracesDb1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == internal) type CreateDrainDeliveryVercelOtelTracesDb1 within CreateDrainDeliveryResponseUnion1: %w", string(data), err) + } + + u.CreateDrainDeliveryVercelOtelTracesDb1 = createDrainDeliveryVercelOtelTracesDb1 + u.Type = CreateDrainDeliveryResponseUnion1TypeInternal return nil } @@ -4272,8 +4496,8 @@ func (o *CreateDrainSourceSelfServed1) GetKind() CreateDrainKindSelfServed1 { type CreateDrainResponseBodySourceUnion1Type string const ( - CreateDrainResponseBodySourceUnion1TypeCreateDrainSourceSelfServed1 CreateDrainResponseBodySourceUnion1Type = "createDrain_source_SelfServed_1" - CreateDrainResponseBodySourceUnion1TypeCreateDrainSourceIntegration1 CreateDrainResponseBodySourceUnion1Type = "createDrain_source_Integration_1" + CreateDrainResponseBodySourceUnion1TypeSelfServed CreateDrainResponseBodySourceUnion1Type = "self-served" + CreateDrainResponseBodySourceUnion1TypeIntegration CreateDrainResponseBodySourceUnion1Type = "integration" ) type CreateDrainResponseBodySourceUnion1 struct { @@ -4283,37 +4507,59 @@ type CreateDrainResponseBodySourceUnion1 struct { Type CreateDrainResponseBodySourceUnion1Type } -func CreateCreateDrainResponseBodySourceUnion1CreateDrainSourceSelfServed1(createDrainSourceSelfServed1 CreateDrainSourceSelfServed1) CreateDrainResponseBodySourceUnion1 { - typ := CreateDrainResponseBodySourceUnion1TypeCreateDrainSourceSelfServed1 +func CreateCreateDrainResponseBodySourceUnion1SelfServed(selfServed CreateDrainSourceSelfServed1) CreateDrainResponseBodySourceUnion1 { + typ := CreateDrainResponseBodySourceUnion1TypeSelfServed + + typStr := CreateDrainKindSelfServed1(typ) + selfServed.Kind = typStr return CreateDrainResponseBodySourceUnion1{ - CreateDrainSourceSelfServed1: &createDrainSourceSelfServed1, + CreateDrainSourceSelfServed1: &selfServed, Type: typ, } } -func CreateCreateDrainResponseBodySourceUnion1CreateDrainSourceIntegration1(createDrainSourceIntegration1 CreateDrainSourceIntegration1) CreateDrainResponseBodySourceUnion1 { - typ := CreateDrainResponseBodySourceUnion1TypeCreateDrainSourceIntegration1 +func CreateCreateDrainResponseBodySourceUnion1Integration(integration CreateDrainSourceIntegration1) CreateDrainResponseBodySourceUnion1 { + typ := CreateDrainResponseBodySourceUnion1TypeIntegration + + typStr := CreateDrainKindIntegration1(typ) + integration.Kind = typStr return CreateDrainResponseBodySourceUnion1{ - CreateDrainSourceIntegration1: &createDrainSourceIntegration1, + CreateDrainSourceIntegration1: &integration, Type: typ, } } func (u *CreateDrainResponseBodySourceUnion1) UnmarshalJSON(data []byte) error { - var createDrainSourceIntegration1 CreateDrainSourceIntegration1 = CreateDrainSourceIntegration1{} - if err := utils.UnmarshalJSON(data, &createDrainSourceIntegration1, "", true, nil); err == nil { - u.CreateDrainSourceIntegration1 = &createDrainSourceIntegration1 - u.Type = CreateDrainResponseBodySourceUnion1TypeCreateDrainSourceIntegration1 - return nil + type discriminator struct { + Kind string `json:"kind"` } - var createDrainSourceSelfServed1 CreateDrainSourceSelfServed1 = CreateDrainSourceSelfServed1{} - if err := utils.UnmarshalJSON(data, &createDrainSourceSelfServed1, "", true, nil); err == nil { - u.CreateDrainSourceSelfServed1 = &createDrainSourceSelfServed1 - u.Type = CreateDrainResponseBodySourceUnion1TypeCreateDrainSourceSelfServed1 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Kind { + case "self-served": + createDrainSourceSelfServed1 := new(CreateDrainSourceSelfServed1) + if err := utils.UnmarshalJSON(data, &createDrainSourceSelfServed1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == self-served) type CreateDrainSourceSelfServed1 within CreateDrainResponseBodySourceUnion1: %w", string(data), err) + } + + u.CreateDrainSourceSelfServed1 = createDrainSourceSelfServed1 + u.Type = CreateDrainResponseBodySourceUnion1TypeSelfServed + return nil + case "integration": + createDrainSourceIntegration1 := new(CreateDrainSourceIntegration1) + if err := utils.UnmarshalJSON(data, &createDrainSourceIntegration1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == integration) type CreateDrainSourceIntegration1 within CreateDrainResponseBodySourceUnion1: %w", string(data), err) + } + + u.CreateDrainSourceIntegration1 = createDrainSourceIntegration1 + u.Type = CreateDrainResponseBodySourceUnion1TypeIntegration return nil } @@ -4621,8 +4867,8 @@ func (o *CreateDrainFilterBasic1) GetDeployment() *CreateDrainFilterV2Deployment type CreateDrainFilterResponseUnion1Type string const ( - CreateDrainFilterResponseUnion1TypeCreateDrainFilterBasic1 CreateDrainFilterResponseUnion1Type = "createDrain_filter_Basic_1" - CreateDrainFilterResponseUnion1TypeCreateDrainFilterOdata1 CreateDrainFilterResponseUnion1Type = "createDrain_filter_Odata_1" + CreateDrainFilterResponseUnion1TypeBasic CreateDrainFilterResponseUnion1Type = "basic" + CreateDrainFilterResponseUnion1TypeOdata CreateDrainFilterResponseUnion1Type = "odata" ) type CreateDrainFilterResponseUnion1 struct { @@ -4632,37 +4878,59 @@ type CreateDrainFilterResponseUnion1 struct { Type CreateDrainFilterResponseUnion1Type } -func CreateCreateDrainFilterResponseUnion1CreateDrainFilterBasic1(createDrainFilterBasic1 CreateDrainFilterBasic1) CreateDrainFilterResponseUnion1 { - typ := CreateDrainFilterResponseUnion1TypeCreateDrainFilterBasic1 +func CreateCreateDrainFilterResponseUnion1Basic(basic CreateDrainFilterBasic1) CreateDrainFilterResponseUnion1 { + typ := CreateDrainFilterResponseUnion1TypeBasic + + typStr := CreateDrainTypeBasic1(typ) + basic.Type = typStr return CreateDrainFilterResponseUnion1{ - CreateDrainFilterBasic1: &createDrainFilterBasic1, + CreateDrainFilterBasic1: &basic, Type: typ, } } -func CreateCreateDrainFilterResponseUnion1CreateDrainFilterOdata1(createDrainFilterOdata1 CreateDrainFilterOdata1) CreateDrainFilterResponseUnion1 { - typ := CreateDrainFilterResponseUnion1TypeCreateDrainFilterOdata1 +func CreateCreateDrainFilterResponseUnion1Odata(odata CreateDrainFilterOdata1) CreateDrainFilterResponseUnion1 { + typ := CreateDrainFilterResponseUnion1TypeOdata + + typStr := CreateDrainTypeOdata1(typ) + odata.Type = typStr return CreateDrainFilterResponseUnion1{ - CreateDrainFilterOdata1: &createDrainFilterOdata1, + CreateDrainFilterOdata1: &odata, Type: typ, } } func (u *CreateDrainFilterResponseUnion1) UnmarshalJSON(data []byte) error { - var createDrainFilterOdata1 CreateDrainFilterOdata1 = CreateDrainFilterOdata1{} - if err := utils.UnmarshalJSON(data, &createDrainFilterOdata1, "", true, nil); err == nil { - u.CreateDrainFilterOdata1 = &createDrainFilterOdata1 - u.Type = CreateDrainFilterResponseUnion1TypeCreateDrainFilterOdata1 - return nil + type discriminator struct { + Type string `json:"type"` } - var createDrainFilterBasic1 CreateDrainFilterBasic1 = CreateDrainFilterBasic1{} - if err := utils.UnmarshalJSON(data, &createDrainFilterBasic1, "", true, nil); err == nil { - u.CreateDrainFilterBasic1 = &createDrainFilterBasic1 - u.Type = CreateDrainFilterResponseUnion1TypeCreateDrainFilterBasic1 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Type { + case "basic": + createDrainFilterBasic1 := new(CreateDrainFilterBasic1) + if err := utils.UnmarshalJSON(data, &createDrainFilterBasic1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == basic) type CreateDrainFilterBasic1 within CreateDrainFilterResponseUnion1: %w", string(data), err) + } + + u.CreateDrainFilterBasic1 = createDrainFilterBasic1 + u.Type = CreateDrainFilterResponseUnion1TypeBasic + return nil + case "odata": + createDrainFilterOdata1 := new(CreateDrainFilterOdata1) + if err := utils.UnmarshalJSON(data, &createDrainFilterOdata1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == odata) type CreateDrainFilterOdata1 within CreateDrainFilterResponseUnion1: %w", string(data), err) + } + + u.CreateDrainFilterOdata1 = createDrainFilterOdata1 + u.Type = CreateDrainFilterResponseUnion1TypeOdata return nil } @@ -4711,6 +4979,14 @@ func (o *CreateDrainFilterV2V21) GetFilter() CreateDrainFilterResponseUnion1 { return o.Filter } +func (o *CreateDrainFilterV2V21) GetFilterBasic() *CreateDrainFilterBasic1 { + return o.GetFilter().CreateDrainFilterBasic1 +} + +func (o *CreateDrainFilterV2V21) GetFilterOdata() *CreateDrainFilterOdata1 { + return o.GetFilter().CreateDrainFilterOdata1 +} + type CreateDrainVersionV11 string const ( @@ -4759,8 +5035,8 @@ func (o *CreateDrainFilterV2V11) GetVersion() CreateDrainVersionV11 { type CreateDrainFilterV2Union1Type string const ( - CreateDrainFilterV2Union1TypeCreateDrainFilterV2V11 CreateDrainFilterV2Union1Type = "createDrain_filterV2_V1_1" - CreateDrainFilterV2Union1TypeCreateDrainFilterV2V21 CreateDrainFilterV2Union1Type = "createDrain_filterV2_V2_1" + CreateDrainFilterV2Union1TypeV1 CreateDrainFilterV2Union1Type = "v1" + CreateDrainFilterV2Union1TypeV2 CreateDrainFilterV2Union1Type = "v2" ) type CreateDrainFilterV2Union1 struct { @@ -4770,37 +5046,59 @@ type CreateDrainFilterV2Union1 struct { Type CreateDrainFilterV2Union1Type } -func CreateCreateDrainFilterV2Union1CreateDrainFilterV2V11(createDrainFilterV2V11 CreateDrainFilterV2V11) CreateDrainFilterV2Union1 { - typ := CreateDrainFilterV2Union1TypeCreateDrainFilterV2V11 +func CreateCreateDrainFilterV2Union1V1(v1 CreateDrainFilterV2V11) CreateDrainFilterV2Union1 { + typ := CreateDrainFilterV2Union1TypeV1 + + typStr := CreateDrainVersionV11(typ) + v1.Version = typStr return CreateDrainFilterV2Union1{ - CreateDrainFilterV2V11: &createDrainFilterV2V11, + CreateDrainFilterV2V11: &v1, Type: typ, } } -func CreateCreateDrainFilterV2Union1CreateDrainFilterV2V21(createDrainFilterV2V21 CreateDrainFilterV2V21) CreateDrainFilterV2Union1 { - typ := CreateDrainFilterV2Union1TypeCreateDrainFilterV2V21 +func CreateCreateDrainFilterV2Union1V2(v2 CreateDrainFilterV2V21) CreateDrainFilterV2Union1 { + typ := CreateDrainFilterV2Union1TypeV2 + + typStr := CreateDrainVersionV21(typ) + v2.Version = typStr return CreateDrainFilterV2Union1{ - CreateDrainFilterV2V21: &createDrainFilterV2V21, + CreateDrainFilterV2V21: &v2, Type: typ, } } func (u *CreateDrainFilterV2Union1) UnmarshalJSON(data []byte) error { - var createDrainFilterV2V21 CreateDrainFilterV2V21 = CreateDrainFilterV2V21{} - if err := utils.UnmarshalJSON(data, &createDrainFilterV2V21, "", true, nil); err == nil { - u.CreateDrainFilterV2V21 = &createDrainFilterV2V21 - u.Type = CreateDrainFilterV2Union1TypeCreateDrainFilterV2V21 - return nil + type discriminator struct { + Version string `json:"version"` } - var createDrainFilterV2V11 CreateDrainFilterV2V11 = CreateDrainFilterV2V11{} - if err := utils.UnmarshalJSON(data, &createDrainFilterV2V11, "", true, nil); err == nil { - u.CreateDrainFilterV2V11 = &createDrainFilterV2V11 - u.Type = CreateDrainFilterV2Union1TypeCreateDrainFilterV2V11 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Version { + case "v1": + createDrainFilterV2V11 := new(CreateDrainFilterV2V11) + if err := utils.UnmarshalJSON(data, &createDrainFilterV2V11, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Version == v1) type CreateDrainFilterV2V11 within CreateDrainFilterV2Union1: %w", string(data), err) + } + + u.CreateDrainFilterV2V11 = createDrainFilterV2V11 + u.Type = CreateDrainFilterV2Union1TypeV1 + return nil + case "v2": + createDrainFilterV2V21 := new(CreateDrainFilterV2V21) + if err := utils.UnmarshalJSON(data, &createDrainFilterV2V21, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Version == v2) type CreateDrainFilterV2V21 within CreateDrainFilterV2Union1: %w", string(data), err) + } + + u.CreateDrainFilterV2V21 = createDrainFilterV2V21 + u.Type = CreateDrainFilterV2Union1TypeV2 return nil } @@ -4907,6 +5205,34 @@ func (o *CreateDrainResponseBody1) GetDelivery() *CreateDrainDeliveryResponseUni return o.Delivery } +func (o *CreateDrainResponseBody1) GetDeliveryHTTP() *CreateDrainDeliveryHTTP1 { + if v := o.GetDelivery(); v != nil { + return v.CreateDrainDeliveryHTTP1 + } + return nil +} + +func (o *CreateDrainResponseBody1) GetDeliveryOtlphttp() *CreateDrainDeliveryOtlphttp1 { + if v := o.GetDelivery(); v != nil { + return v.CreateDrainDeliveryOtlphttp1 + } + return nil +} + +func (o *CreateDrainResponseBody1) GetDeliveryClickhouse() *CreateDrainDeliveryClickhouse1 { + if v := o.GetDelivery(); v != nil { + return v.CreateDrainDeliveryClickhouse1 + } + return nil +} + +func (o *CreateDrainResponseBody1) GetDeliveryInternal() *CreateDrainDeliveryVercelOtelTracesDb1 { + if v := o.GetDelivery(); v != nil { + return v.CreateDrainDeliveryVercelOtelTracesDb1 + } + return nil +} + func (o *CreateDrainResponseBody1) GetSampling() []CreateDrainSamplingResponse1 { if o == nil { return nil @@ -4963,6 +5289,14 @@ func (o *CreateDrainResponseBody1) GetSource() CreateDrainResponseBodySourceUnio return o.Source } +func (o *CreateDrainResponseBody1) GetSourceSelfServed() *CreateDrainSourceSelfServed1 { + return o.GetSource().CreateDrainSourceSelfServed1 +} + +func (o *CreateDrainResponseBody1) GetSourceIntegration() *CreateDrainSourceIntegration1 { + return o.GetSource().CreateDrainSourceIntegration1 +} + func (o *CreateDrainResponseBody1) GetFilter() *string { if o == nil { return nil @@ -4977,6 +5311,20 @@ func (o *CreateDrainResponseBody1) GetFilterV2() *CreateDrainFilterV2Union1 { return o.FilterV2 } +func (o *CreateDrainResponseBody1) GetFilterV2V1() *CreateDrainFilterV2V11 { + if v := o.GetFilterV2(); v != nil { + return v.CreateDrainFilterV2V11 + } + return nil +} + +func (o *CreateDrainResponseBody1) GetFilterV2V2() *CreateDrainFilterV2V21 { + if v := o.GetFilterV2(); v != nil { + return v.CreateDrainFilterV2V21 + } + return nil +} + type CreateDrainResponseBodyType string const ( diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/createedgeconfig.go b/src/__tests__/mockserver/internal/sdk/models/operations/createedgeconfig.go index fc35df64..0c3549c4 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/createedgeconfig.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/createedgeconfig.go @@ -198,8 +198,8 @@ func (o *CreateEdgeConfigPurposeFlags) GetProjectID() string { type CreateEdgeConfigPurposeUnionType string const ( - CreateEdgeConfigPurposeUnionTypeCreateEdgeConfigPurposeFlags CreateEdgeConfigPurposeUnionType = "createEdgeConfig_purpose_Flags" - CreateEdgeConfigPurposeUnionTypeCreateEdgeConfigPurposeExperimentation CreateEdgeConfigPurposeUnionType = "createEdgeConfig_purpose_Experimentation" + CreateEdgeConfigPurposeUnionTypeFlags CreateEdgeConfigPurposeUnionType = "flags" + CreateEdgeConfigPurposeUnionTypeExperimentation CreateEdgeConfigPurposeUnionType = "experimentation" ) type CreateEdgeConfigPurposeUnion struct { @@ -209,37 +209,59 @@ type CreateEdgeConfigPurposeUnion struct { Type CreateEdgeConfigPurposeUnionType } -func CreateCreateEdgeConfigPurposeUnionCreateEdgeConfigPurposeFlags(createEdgeConfigPurposeFlags CreateEdgeConfigPurposeFlags) CreateEdgeConfigPurposeUnion { - typ := CreateEdgeConfigPurposeUnionTypeCreateEdgeConfigPurposeFlags +func CreateCreateEdgeConfigPurposeUnionFlags(flags CreateEdgeConfigPurposeFlags) CreateEdgeConfigPurposeUnion { + typ := CreateEdgeConfigPurposeUnionTypeFlags + + typStr := CreateEdgeConfigTypeFlags(typ) + flags.Type = typStr return CreateEdgeConfigPurposeUnion{ - CreateEdgeConfigPurposeFlags: &createEdgeConfigPurposeFlags, + CreateEdgeConfigPurposeFlags: &flags, Type: typ, } } -func CreateCreateEdgeConfigPurposeUnionCreateEdgeConfigPurposeExperimentation(createEdgeConfigPurposeExperimentation CreateEdgeConfigPurposeExperimentation) CreateEdgeConfigPurposeUnion { - typ := CreateEdgeConfigPurposeUnionTypeCreateEdgeConfigPurposeExperimentation +func CreateCreateEdgeConfigPurposeUnionExperimentation(experimentation CreateEdgeConfigPurposeExperimentation) CreateEdgeConfigPurposeUnion { + typ := CreateEdgeConfigPurposeUnionTypeExperimentation + + typStr := CreateEdgeConfigTypeExperimentation(typ) + experimentation.Type = typStr return CreateEdgeConfigPurposeUnion{ - CreateEdgeConfigPurposeExperimentation: &createEdgeConfigPurposeExperimentation, + CreateEdgeConfigPurposeExperimentation: &experimentation, Type: typ, } } func (u *CreateEdgeConfigPurposeUnion) UnmarshalJSON(data []byte) error { - var createEdgeConfigPurposeFlags CreateEdgeConfigPurposeFlags = CreateEdgeConfigPurposeFlags{} - if err := utils.UnmarshalJSON(data, &createEdgeConfigPurposeFlags, "", true, nil); err == nil { - u.CreateEdgeConfigPurposeFlags = &createEdgeConfigPurposeFlags - u.Type = CreateEdgeConfigPurposeUnionTypeCreateEdgeConfigPurposeFlags - return nil + type discriminator struct { + Type string `json:"type"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var createEdgeConfigPurposeExperimentation CreateEdgeConfigPurposeExperimentation = CreateEdgeConfigPurposeExperimentation{} - if err := utils.UnmarshalJSON(data, &createEdgeConfigPurposeExperimentation, "", true, nil); err == nil { - u.CreateEdgeConfigPurposeExperimentation = &createEdgeConfigPurposeExperimentation - u.Type = CreateEdgeConfigPurposeUnionTypeCreateEdgeConfigPurposeExperimentation + switch dis.Type { + case "flags": + createEdgeConfigPurposeFlags := new(CreateEdgeConfigPurposeFlags) + if err := utils.UnmarshalJSON(data, &createEdgeConfigPurposeFlags, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == flags) type CreateEdgeConfigPurposeFlags within CreateEdgeConfigPurposeUnion: %w", string(data), err) + } + + u.CreateEdgeConfigPurposeFlags = createEdgeConfigPurposeFlags + u.Type = CreateEdgeConfigPurposeUnionTypeFlags + return nil + case "experimentation": + createEdgeConfigPurposeExperimentation := new(CreateEdgeConfigPurposeExperimentation) + if err := utils.UnmarshalJSON(data, &createEdgeConfigPurposeExperimentation, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == experimentation) type CreateEdgeConfigPurposeExperimentation within CreateEdgeConfigPurposeUnion: %w", string(data), err) + } + + u.CreateEdgeConfigPurposeExperimentation = createEdgeConfigPurposeExperimentation + u.Type = CreateEdgeConfigPurposeUnionTypeExperimentation return nil } @@ -348,6 +370,20 @@ func (o *CreateEdgeConfigResponseBody) GetPurpose() *CreateEdgeConfigPurposeUnio return o.Purpose } +func (o *CreateEdgeConfigResponseBody) GetPurposeFlags() *CreateEdgeConfigPurposeFlags { + if v := o.GetPurpose(); v != nil { + return v.CreateEdgeConfigPurposeFlags + } + return nil +} + +func (o *CreateEdgeConfigResponseBody) GetPurposeExperimentation() *CreateEdgeConfigPurposeExperimentation { + if v := o.GetPurpose(); v != nil { + return v.CreateEdgeConfigPurposeExperimentation + } + return nil +} + func (o *CreateEdgeConfigResponseBody) GetSyncedToDynamoAt() *float64 { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/createevent.go b/src/__tests__/mockserver/internal/sdk/models/operations/createevent.go index 7cb80848..fdb9cc64 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/createevent.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/createevent.go @@ -130,8 +130,8 @@ func (o *EventInstallationUpdated) GetBillingPlanID() *string { type EventType string const ( - EventTypeEventInstallationUpdated EventType = "event_InstallationUpdated" - EventTypeEventResourceUpdated EventType = "event_ResourceUpdated" + EventTypeInstallationUpdated EventType = "installation.updated" + EventTypeResourceUpdated EventType = "resource.updated" ) type Event struct { @@ -141,37 +141,59 @@ type Event struct { Type EventType } -func CreateEventEventInstallationUpdated(eventInstallationUpdated EventInstallationUpdated) Event { - typ := EventTypeEventInstallationUpdated +func CreateEventInstallationUpdated(installationUpdated EventInstallationUpdated) Event { + typ := EventTypeInstallationUpdated + + typStr := TypeInstallationUpdated(typ) + installationUpdated.Type = typStr return Event{ - EventInstallationUpdated: &eventInstallationUpdated, + EventInstallationUpdated: &installationUpdated, Type: typ, } } -func CreateEventEventResourceUpdated(eventResourceUpdated EventResourceUpdated) Event { - typ := EventTypeEventResourceUpdated +func CreateEventResourceUpdated(resourceUpdated EventResourceUpdated) Event { + typ := EventTypeResourceUpdated + + typStr := TypeResourceUpdated(typ) + resourceUpdated.Type = typStr return Event{ - EventResourceUpdated: &eventResourceUpdated, + EventResourceUpdated: &resourceUpdated, Type: typ, } } func (u *Event) UnmarshalJSON(data []byte) error { - var eventResourceUpdated EventResourceUpdated = EventResourceUpdated{} - if err := utils.UnmarshalJSON(data, &eventResourceUpdated, "", true, nil); err == nil { - u.EventResourceUpdated = &eventResourceUpdated - u.Type = EventTypeEventResourceUpdated - return nil + type discriminator struct { + Type string `json:"type"` } - var eventInstallationUpdated EventInstallationUpdated = EventInstallationUpdated{} - if err := utils.UnmarshalJSON(data, &eventInstallationUpdated, "", true, nil); err == nil { - u.EventInstallationUpdated = &eventInstallationUpdated - u.Type = EventTypeEventInstallationUpdated + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Type { + case "installation.updated": + eventInstallationUpdated := new(EventInstallationUpdated) + if err := utils.UnmarshalJSON(data, &eventInstallationUpdated, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == installation.updated) type EventInstallationUpdated within Event: %w", string(data), err) + } + + u.EventInstallationUpdated = eventInstallationUpdated + u.Type = EventTypeInstallationUpdated + return nil + case "resource.updated": + eventResourceUpdated := new(EventResourceUpdated) + if err := utils.UnmarshalJSON(data, &eventResourceUpdated, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == resource.updated) type EventResourceUpdated within Event: %w", string(data), err) + } + + u.EventResourceUpdated = eventResourceUpdated + u.Type = EventTypeResourceUpdated return nil } @@ -201,6 +223,14 @@ func (o *CreateEventRequestBody) GetEvent() Event { return o.Event } +func (o *CreateEventRequestBody) GetEventInstallationUpdated() *EventInstallationUpdated { + return o.GetEvent().EventInstallationUpdated +} + +func (o *CreateEventRequestBody) GetEventResourceUpdated() *EventResourceUpdated { + return o.GetEvent().EventResourceUpdated +} + type CreateEventRequest struct { IntegrationConfigurationID string `pathParam:"style=simple,explode=false,name=integrationConfigurationId"` Body CreateEventRequestBody `request:"mediaType=application/json"` diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/createlogdrain.go b/src/__tests__/mockserver/internal/sdk/models/operations/createlogdrain.go index feadd777..4293f033 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/createlogdrain.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/createlogdrain.go @@ -453,8 +453,8 @@ func (o *CreateLogDrainSourceSelfServed) GetKind() CreateLogDrainKindSelfServed type CreateLogDrainSourceUnionType string const ( - CreateLogDrainSourceUnionTypeCreateLogDrainSourceSelfServed CreateLogDrainSourceUnionType = "createLogDrain_source_SelfServed" - CreateLogDrainSourceUnionTypeCreateLogDrainSourceIntegration CreateLogDrainSourceUnionType = "createLogDrain_source_Integration" + CreateLogDrainSourceUnionTypeSelfServed CreateLogDrainSourceUnionType = "self-served" + CreateLogDrainSourceUnionTypeIntegration CreateLogDrainSourceUnionType = "integration" ) type CreateLogDrainSourceUnion struct { @@ -464,37 +464,59 @@ type CreateLogDrainSourceUnion struct { Type CreateLogDrainSourceUnionType } -func CreateCreateLogDrainSourceUnionCreateLogDrainSourceSelfServed(createLogDrainSourceSelfServed CreateLogDrainSourceSelfServed) CreateLogDrainSourceUnion { - typ := CreateLogDrainSourceUnionTypeCreateLogDrainSourceSelfServed +func CreateCreateLogDrainSourceUnionSelfServed(selfServed CreateLogDrainSourceSelfServed) CreateLogDrainSourceUnion { + typ := CreateLogDrainSourceUnionTypeSelfServed + + typStr := CreateLogDrainKindSelfServed(typ) + selfServed.Kind = typStr return CreateLogDrainSourceUnion{ - CreateLogDrainSourceSelfServed: &createLogDrainSourceSelfServed, + CreateLogDrainSourceSelfServed: &selfServed, Type: typ, } } -func CreateCreateLogDrainSourceUnionCreateLogDrainSourceIntegration(createLogDrainSourceIntegration CreateLogDrainSourceIntegration) CreateLogDrainSourceUnion { - typ := CreateLogDrainSourceUnionTypeCreateLogDrainSourceIntegration +func CreateCreateLogDrainSourceUnionIntegration(integration CreateLogDrainSourceIntegration) CreateLogDrainSourceUnion { + typ := CreateLogDrainSourceUnionTypeIntegration + + typStr := CreateLogDrainKindIntegration(typ) + integration.Kind = typStr return CreateLogDrainSourceUnion{ - CreateLogDrainSourceIntegration: &createLogDrainSourceIntegration, + CreateLogDrainSourceIntegration: &integration, Type: typ, } } func (u *CreateLogDrainSourceUnion) UnmarshalJSON(data []byte) error { - var createLogDrainSourceIntegration CreateLogDrainSourceIntegration = CreateLogDrainSourceIntegration{} - if err := utils.UnmarshalJSON(data, &createLogDrainSourceIntegration, "", true, nil); err == nil { - u.CreateLogDrainSourceIntegration = &createLogDrainSourceIntegration - u.Type = CreateLogDrainSourceUnionTypeCreateLogDrainSourceIntegration - return nil + type discriminator struct { + Kind string `json:"kind"` } - var createLogDrainSourceSelfServed CreateLogDrainSourceSelfServed = CreateLogDrainSourceSelfServed{} - if err := utils.UnmarshalJSON(data, &createLogDrainSourceSelfServed, "", true, nil); err == nil { - u.CreateLogDrainSourceSelfServed = &createLogDrainSourceSelfServed - u.Type = CreateLogDrainSourceUnionTypeCreateLogDrainSourceSelfServed + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Kind { + case "self-served": + createLogDrainSourceSelfServed := new(CreateLogDrainSourceSelfServed) + if err := utils.UnmarshalJSON(data, &createLogDrainSourceSelfServed, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == self-served) type CreateLogDrainSourceSelfServed within CreateLogDrainSourceUnion: %w", string(data), err) + } + + u.CreateLogDrainSourceSelfServed = createLogDrainSourceSelfServed + u.Type = CreateLogDrainSourceUnionTypeSelfServed + return nil + case "integration": + createLogDrainSourceIntegration := new(CreateLogDrainSourceIntegration) + if err := utils.UnmarshalJSON(data, &createLogDrainSourceIntegration, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == integration) type CreateLogDrainSourceIntegration within CreateLogDrainSourceUnion: %w", string(data), err) + } + + u.CreateLogDrainSourceIntegration = createLogDrainSourceIntegration + u.Type = CreateLogDrainSourceUnionTypeIntegration return nil } @@ -668,6 +690,14 @@ func (o *CreateLogDrainResponseBody) GetSource() CreateLogDrainSourceUnion { return o.Source } +func (o *CreateLogDrainResponseBody) GetSourceSelfServed() *CreateLogDrainSourceSelfServed { + return o.GetSource().CreateLogDrainSourceSelfServed +} + +func (o *CreateLogDrainResponseBody) GetSourceIntegration() *CreateLogDrainSourceIntegration { + return o.GetSource().CreateLogDrainSourceIntegration +} + type CreateLogDrainResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // The log drain was successfully created diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/createproject.go b/src/__tests__/mockserver/internal/sdk/models/operations/createproject.go index c1716d45..2b132088 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/createproject.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/createproject.go @@ -2331,21 +2331,21 @@ func (o *CreateProjectContentHintRedisURL) GetStoreID() string { type CreateProjectContentHintUnionType string const ( - CreateProjectContentHintUnionTypeCreateProjectContentHintRedisURL CreateProjectContentHintUnionType = "createProject_contentHint_RedisURL" - CreateProjectContentHintUnionTypeCreateProjectContentHintRedisRestAPIURL CreateProjectContentHintUnionType = "createProject_contentHint_RedisRestAPIURL" - CreateProjectContentHintUnionTypeCreateProjectContentHintRedisRestAPIToken CreateProjectContentHintUnionType = "createProject_contentHint_RedisRestAPIToken" - CreateProjectContentHintUnionTypeCreateProjectContentHintRedisRestAPIReadOnlyToken CreateProjectContentHintUnionType = "createProject_contentHint_RedisRestAPIReadOnlyToken" - CreateProjectContentHintUnionTypeCreateProjectContentHintBlobReadWriteToken CreateProjectContentHintUnionType = "createProject_contentHint_BlobReadWriteToken" - CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresURL CreateProjectContentHintUnionType = "createProject_contentHint_PostgresURL" - CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresURLNonPooling CreateProjectContentHintUnionType = "createProject_contentHint_PostgresURLNonPooling" - CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresPrismaURL CreateProjectContentHintUnionType = "createProject_contentHint_PostgresPrismaURL" - CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresUser CreateProjectContentHintUnionType = "createProject_contentHint_PostgresUser" - CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresHost CreateProjectContentHintUnionType = "createProject_contentHint_PostgresHost" - CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresPassword CreateProjectContentHintUnionType = "createProject_contentHint_PostgresPassword" - CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresDatabase CreateProjectContentHintUnionType = "createProject_contentHint_PostgresDatabase" - CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresURLNoSsl CreateProjectContentHintUnionType = "createProject_contentHint_PostgresURLNoSsl" - CreateProjectContentHintUnionTypeCreateProjectContentHintIntegrationStoreSecret CreateProjectContentHintUnionType = "createProject_contentHint_IntegrationStoreSecret" - CreateProjectContentHintUnionTypeCreateProjectContentHintFlagsConnectionString CreateProjectContentHintUnionType = "createProject_contentHint_FlagsConnectionString" + CreateProjectContentHintUnionTypeRedisURL CreateProjectContentHintUnionType = "redis-url" + CreateProjectContentHintUnionTypeRedisRestAPIURL CreateProjectContentHintUnionType = "redis-rest-api-url" + CreateProjectContentHintUnionTypeRedisRestAPIToken CreateProjectContentHintUnionType = "redis-rest-api-token" + CreateProjectContentHintUnionTypeRedisRestAPIReadOnlyToken CreateProjectContentHintUnionType = "redis-rest-api-read-only-token" + CreateProjectContentHintUnionTypeBlobReadWriteToken CreateProjectContentHintUnionType = "blob-read-write-token" + CreateProjectContentHintUnionTypePostgresURL CreateProjectContentHintUnionType = "postgres-url" + CreateProjectContentHintUnionTypePostgresURLNonPooling CreateProjectContentHintUnionType = "postgres-url-non-pooling" + CreateProjectContentHintUnionTypePostgresPrismaURL CreateProjectContentHintUnionType = "postgres-prisma-url" + CreateProjectContentHintUnionTypePostgresUser CreateProjectContentHintUnionType = "postgres-user" + CreateProjectContentHintUnionTypePostgresHost CreateProjectContentHintUnionType = "postgres-host" + CreateProjectContentHintUnionTypePostgresPassword CreateProjectContentHintUnionType = "postgres-password" + CreateProjectContentHintUnionTypePostgresDatabase CreateProjectContentHintUnionType = "postgres-database" + CreateProjectContentHintUnionTypePostgresURLNoSsl CreateProjectContentHintUnionType = "postgres-url-no-ssl" + CreateProjectContentHintUnionTypeIntegrationStoreSecret CreateProjectContentHintUnionType = "integration-store-secret" + CreateProjectContentHintUnionTypeFlagsConnectionString CreateProjectContentHintUnionType = "flags-connection-string" ) type CreateProjectContentHintUnion struct { @@ -2368,245 +2368,332 @@ type CreateProjectContentHintUnion struct { Type CreateProjectContentHintUnionType } -func CreateCreateProjectContentHintUnionCreateProjectContentHintRedisURL(createProjectContentHintRedisURL CreateProjectContentHintRedisURL) CreateProjectContentHintUnion { - typ := CreateProjectContentHintUnionTypeCreateProjectContentHintRedisURL +func CreateCreateProjectContentHintUnionRedisURL(redisURL CreateProjectContentHintRedisURL) CreateProjectContentHintUnion { + typ := CreateProjectContentHintUnionTypeRedisURL + + typStr := CreateProjectTypeRedisURL(typ) + redisURL.Type = typStr return CreateProjectContentHintUnion{ - CreateProjectContentHintRedisURL: &createProjectContentHintRedisURL, + CreateProjectContentHintRedisURL: &redisURL, Type: typ, } } -func CreateCreateProjectContentHintUnionCreateProjectContentHintRedisRestAPIURL(createProjectContentHintRedisRestAPIURL CreateProjectContentHintRedisRestAPIURL) CreateProjectContentHintUnion { - typ := CreateProjectContentHintUnionTypeCreateProjectContentHintRedisRestAPIURL +func CreateCreateProjectContentHintUnionRedisRestAPIURL(redisRestAPIURL CreateProjectContentHintRedisRestAPIURL) CreateProjectContentHintUnion { + typ := CreateProjectContentHintUnionTypeRedisRestAPIURL + + typStr := CreateProjectTypeRedisRestAPIURL(typ) + redisRestAPIURL.Type = typStr return CreateProjectContentHintUnion{ - CreateProjectContentHintRedisRestAPIURL: &createProjectContentHintRedisRestAPIURL, + CreateProjectContentHintRedisRestAPIURL: &redisRestAPIURL, Type: typ, } } -func CreateCreateProjectContentHintUnionCreateProjectContentHintRedisRestAPIToken(createProjectContentHintRedisRestAPIToken CreateProjectContentHintRedisRestAPIToken) CreateProjectContentHintUnion { - typ := CreateProjectContentHintUnionTypeCreateProjectContentHintRedisRestAPIToken +func CreateCreateProjectContentHintUnionRedisRestAPIToken(redisRestAPIToken CreateProjectContentHintRedisRestAPIToken) CreateProjectContentHintUnion { + typ := CreateProjectContentHintUnionTypeRedisRestAPIToken + + typStr := CreateProjectTypeRedisRestAPIToken(typ) + redisRestAPIToken.Type = typStr return CreateProjectContentHintUnion{ - CreateProjectContentHintRedisRestAPIToken: &createProjectContentHintRedisRestAPIToken, + CreateProjectContentHintRedisRestAPIToken: &redisRestAPIToken, Type: typ, } } -func CreateCreateProjectContentHintUnionCreateProjectContentHintRedisRestAPIReadOnlyToken(createProjectContentHintRedisRestAPIReadOnlyToken CreateProjectContentHintRedisRestAPIReadOnlyToken) CreateProjectContentHintUnion { - typ := CreateProjectContentHintUnionTypeCreateProjectContentHintRedisRestAPIReadOnlyToken +func CreateCreateProjectContentHintUnionRedisRestAPIReadOnlyToken(redisRestAPIReadOnlyToken CreateProjectContentHintRedisRestAPIReadOnlyToken) CreateProjectContentHintUnion { + typ := CreateProjectContentHintUnionTypeRedisRestAPIReadOnlyToken + + typStr := CreateProjectTypeRedisRestAPIReadOnlyToken(typ) + redisRestAPIReadOnlyToken.Type = typStr return CreateProjectContentHintUnion{ - CreateProjectContentHintRedisRestAPIReadOnlyToken: &createProjectContentHintRedisRestAPIReadOnlyToken, + CreateProjectContentHintRedisRestAPIReadOnlyToken: &redisRestAPIReadOnlyToken, Type: typ, } } -func CreateCreateProjectContentHintUnionCreateProjectContentHintBlobReadWriteToken(createProjectContentHintBlobReadWriteToken CreateProjectContentHintBlobReadWriteToken) CreateProjectContentHintUnion { - typ := CreateProjectContentHintUnionTypeCreateProjectContentHintBlobReadWriteToken +func CreateCreateProjectContentHintUnionBlobReadWriteToken(blobReadWriteToken CreateProjectContentHintBlobReadWriteToken) CreateProjectContentHintUnion { + typ := CreateProjectContentHintUnionTypeBlobReadWriteToken + + typStr := CreateProjectTypeBlobReadWriteToken(typ) + blobReadWriteToken.Type = typStr return CreateProjectContentHintUnion{ - CreateProjectContentHintBlobReadWriteToken: &createProjectContentHintBlobReadWriteToken, + CreateProjectContentHintBlobReadWriteToken: &blobReadWriteToken, Type: typ, } } -func CreateCreateProjectContentHintUnionCreateProjectContentHintPostgresURL(createProjectContentHintPostgresURL CreateProjectContentHintPostgresURL) CreateProjectContentHintUnion { - typ := CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresURL +func CreateCreateProjectContentHintUnionPostgresURL(postgresURL CreateProjectContentHintPostgresURL) CreateProjectContentHintUnion { + typ := CreateProjectContentHintUnionTypePostgresURL + + typStr := CreateProjectTypePostgresURL(typ) + postgresURL.Type = typStr return CreateProjectContentHintUnion{ - CreateProjectContentHintPostgresURL: &createProjectContentHintPostgresURL, + CreateProjectContentHintPostgresURL: &postgresURL, Type: typ, } } -func CreateCreateProjectContentHintUnionCreateProjectContentHintPostgresURLNonPooling(createProjectContentHintPostgresURLNonPooling CreateProjectContentHintPostgresURLNonPooling) CreateProjectContentHintUnion { - typ := CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresURLNonPooling +func CreateCreateProjectContentHintUnionPostgresURLNonPooling(postgresURLNonPooling CreateProjectContentHintPostgresURLNonPooling) CreateProjectContentHintUnion { + typ := CreateProjectContentHintUnionTypePostgresURLNonPooling + + typStr := CreateProjectTypePostgresURLNonPooling(typ) + postgresURLNonPooling.Type = typStr return CreateProjectContentHintUnion{ - CreateProjectContentHintPostgresURLNonPooling: &createProjectContentHintPostgresURLNonPooling, + CreateProjectContentHintPostgresURLNonPooling: &postgresURLNonPooling, Type: typ, } } -func CreateCreateProjectContentHintUnionCreateProjectContentHintPostgresPrismaURL(createProjectContentHintPostgresPrismaURL CreateProjectContentHintPostgresPrismaURL) CreateProjectContentHintUnion { - typ := CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresPrismaURL +func CreateCreateProjectContentHintUnionPostgresPrismaURL(postgresPrismaURL CreateProjectContentHintPostgresPrismaURL) CreateProjectContentHintUnion { + typ := CreateProjectContentHintUnionTypePostgresPrismaURL + + typStr := CreateProjectTypePostgresPrismaURL(typ) + postgresPrismaURL.Type = typStr return CreateProjectContentHintUnion{ - CreateProjectContentHintPostgresPrismaURL: &createProjectContentHintPostgresPrismaURL, + CreateProjectContentHintPostgresPrismaURL: &postgresPrismaURL, Type: typ, } } -func CreateCreateProjectContentHintUnionCreateProjectContentHintPostgresUser(createProjectContentHintPostgresUser CreateProjectContentHintPostgresUser) CreateProjectContentHintUnion { - typ := CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresUser +func CreateCreateProjectContentHintUnionPostgresUser(postgresUser CreateProjectContentHintPostgresUser) CreateProjectContentHintUnion { + typ := CreateProjectContentHintUnionTypePostgresUser + + typStr := CreateProjectTypePostgresUser(typ) + postgresUser.Type = typStr return CreateProjectContentHintUnion{ - CreateProjectContentHintPostgresUser: &createProjectContentHintPostgresUser, + CreateProjectContentHintPostgresUser: &postgresUser, Type: typ, } } -func CreateCreateProjectContentHintUnionCreateProjectContentHintPostgresHost(createProjectContentHintPostgresHost CreateProjectContentHintPostgresHost) CreateProjectContentHintUnion { - typ := CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresHost +func CreateCreateProjectContentHintUnionPostgresHost(postgresHost CreateProjectContentHintPostgresHost) CreateProjectContentHintUnion { + typ := CreateProjectContentHintUnionTypePostgresHost + + typStr := CreateProjectTypePostgresHost(typ) + postgresHost.Type = typStr return CreateProjectContentHintUnion{ - CreateProjectContentHintPostgresHost: &createProjectContentHintPostgresHost, + CreateProjectContentHintPostgresHost: &postgresHost, Type: typ, } } -func CreateCreateProjectContentHintUnionCreateProjectContentHintPostgresPassword(createProjectContentHintPostgresPassword CreateProjectContentHintPostgresPassword) CreateProjectContentHintUnion { - typ := CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresPassword +func CreateCreateProjectContentHintUnionPostgresPassword(postgresPassword CreateProjectContentHintPostgresPassword) CreateProjectContentHintUnion { + typ := CreateProjectContentHintUnionTypePostgresPassword + + typStr := CreateProjectTypePostgresPassword(typ) + postgresPassword.Type = typStr return CreateProjectContentHintUnion{ - CreateProjectContentHintPostgresPassword: &createProjectContentHintPostgresPassword, + CreateProjectContentHintPostgresPassword: &postgresPassword, Type: typ, } } -func CreateCreateProjectContentHintUnionCreateProjectContentHintPostgresDatabase(createProjectContentHintPostgresDatabase CreateProjectContentHintPostgresDatabase) CreateProjectContentHintUnion { - typ := CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresDatabase +func CreateCreateProjectContentHintUnionPostgresDatabase(postgresDatabase CreateProjectContentHintPostgresDatabase) CreateProjectContentHintUnion { + typ := CreateProjectContentHintUnionTypePostgresDatabase + + typStr := CreateProjectTypePostgresDatabase(typ) + postgresDatabase.Type = typStr return CreateProjectContentHintUnion{ - CreateProjectContentHintPostgresDatabase: &createProjectContentHintPostgresDatabase, + CreateProjectContentHintPostgresDatabase: &postgresDatabase, Type: typ, } } -func CreateCreateProjectContentHintUnionCreateProjectContentHintPostgresURLNoSsl(createProjectContentHintPostgresURLNoSsl CreateProjectContentHintPostgresURLNoSsl) CreateProjectContentHintUnion { - typ := CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresURLNoSsl +func CreateCreateProjectContentHintUnionPostgresURLNoSsl(postgresURLNoSsl CreateProjectContentHintPostgresURLNoSsl) CreateProjectContentHintUnion { + typ := CreateProjectContentHintUnionTypePostgresURLNoSsl + + typStr := CreateProjectTypePostgresURLNoSsl(typ) + postgresURLNoSsl.Type = typStr return CreateProjectContentHintUnion{ - CreateProjectContentHintPostgresURLNoSsl: &createProjectContentHintPostgresURLNoSsl, + CreateProjectContentHintPostgresURLNoSsl: &postgresURLNoSsl, Type: typ, } } -func CreateCreateProjectContentHintUnionCreateProjectContentHintIntegrationStoreSecret(createProjectContentHintIntegrationStoreSecret CreateProjectContentHintIntegrationStoreSecret) CreateProjectContentHintUnion { - typ := CreateProjectContentHintUnionTypeCreateProjectContentHintIntegrationStoreSecret +func CreateCreateProjectContentHintUnionIntegrationStoreSecret(integrationStoreSecret CreateProjectContentHintIntegrationStoreSecret) CreateProjectContentHintUnion { + typ := CreateProjectContentHintUnionTypeIntegrationStoreSecret + + typStr := CreateProjectTypeIntegrationStoreSecret(typ) + integrationStoreSecret.Type = typStr return CreateProjectContentHintUnion{ - CreateProjectContentHintIntegrationStoreSecret: &createProjectContentHintIntegrationStoreSecret, + CreateProjectContentHintIntegrationStoreSecret: &integrationStoreSecret, Type: typ, } } -func CreateCreateProjectContentHintUnionCreateProjectContentHintFlagsConnectionString(createProjectContentHintFlagsConnectionString CreateProjectContentHintFlagsConnectionString) CreateProjectContentHintUnion { - typ := CreateProjectContentHintUnionTypeCreateProjectContentHintFlagsConnectionString +func CreateCreateProjectContentHintUnionFlagsConnectionString(flagsConnectionString CreateProjectContentHintFlagsConnectionString) CreateProjectContentHintUnion { + typ := CreateProjectContentHintUnionTypeFlagsConnectionString + + typStr := CreateProjectTypeFlagsConnectionString(typ) + flagsConnectionString.Type = typStr return CreateProjectContentHintUnion{ - CreateProjectContentHintFlagsConnectionString: &createProjectContentHintFlagsConnectionString, + CreateProjectContentHintFlagsConnectionString: &flagsConnectionString, Type: typ, } } func (u *CreateProjectContentHintUnion) UnmarshalJSON(data []byte) error { - var createProjectContentHintIntegrationStoreSecret CreateProjectContentHintIntegrationStoreSecret = CreateProjectContentHintIntegrationStoreSecret{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintIntegrationStoreSecret, "", true, nil); err == nil { - u.CreateProjectContentHintIntegrationStoreSecret = &createProjectContentHintIntegrationStoreSecret - u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintIntegrationStoreSecret - return nil + type discriminator struct { + Type string `json:"type"` } - var createProjectContentHintRedisURL CreateProjectContentHintRedisURL = CreateProjectContentHintRedisURL{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintRedisURL, "", true, nil); err == nil { - u.CreateProjectContentHintRedisURL = &createProjectContentHintRedisURL - u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintRedisURL - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var createProjectContentHintRedisRestAPIURL CreateProjectContentHintRedisRestAPIURL = CreateProjectContentHintRedisRestAPIURL{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintRedisRestAPIURL, "", true, nil); err == nil { - u.CreateProjectContentHintRedisRestAPIURL = &createProjectContentHintRedisRestAPIURL - u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintRedisRestAPIURL + switch dis.Type { + case "redis-url": + createProjectContentHintRedisURL := new(CreateProjectContentHintRedisURL) + if err := utils.UnmarshalJSON(data, &createProjectContentHintRedisURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-url) type CreateProjectContentHintRedisURL within CreateProjectContentHintUnion: %w", string(data), err) + } + + u.CreateProjectContentHintRedisURL = createProjectContentHintRedisURL + u.Type = CreateProjectContentHintUnionTypeRedisURL return nil - } + case "redis-rest-api-url": + createProjectContentHintRedisRestAPIURL := new(CreateProjectContentHintRedisRestAPIURL) + if err := utils.UnmarshalJSON(data, &createProjectContentHintRedisRestAPIURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-url) type CreateProjectContentHintRedisRestAPIURL within CreateProjectContentHintUnion: %w", string(data), err) + } - var createProjectContentHintRedisRestAPIToken CreateProjectContentHintRedisRestAPIToken = CreateProjectContentHintRedisRestAPIToken{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintRedisRestAPIToken, "", true, nil); err == nil { - u.CreateProjectContentHintRedisRestAPIToken = &createProjectContentHintRedisRestAPIToken - u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintRedisRestAPIToken + u.CreateProjectContentHintRedisRestAPIURL = createProjectContentHintRedisRestAPIURL + u.Type = CreateProjectContentHintUnionTypeRedisRestAPIURL return nil - } + case "redis-rest-api-token": + createProjectContentHintRedisRestAPIToken := new(CreateProjectContentHintRedisRestAPIToken) + if err := utils.UnmarshalJSON(data, &createProjectContentHintRedisRestAPIToken, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-token) type CreateProjectContentHintRedisRestAPIToken within CreateProjectContentHintUnion: %w", string(data), err) + } - var createProjectContentHintRedisRestAPIReadOnlyToken CreateProjectContentHintRedisRestAPIReadOnlyToken = CreateProjectContentHintRedisRestAPIReadOnlyToken{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintRedisRestAPIReadOnlyToken, "", true, nil); err == nil { - u.CreateProjectContentHintRedisRestAPIReadOnlyToken = &createProjectContentHintRedisRestAPIReadOnlyToken - u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintRedisRestAPIReadOnlyToken + u.CreateProjectContentHintRedisRestAPIToken = createProjectContentHintRedisRestAPIToken + u.Type = CreateProjectContentHintUnionTypeRedisRestAPIToken return nil - } + case "redis-rest-api-read-only-token": + createProjectContentHintRedisRestAPIReadOnlyToken := new(CreateProjectContentHintRedisRestAPIReadOnlyToken) + if err := utils.UnmarshalJSON(data, &createProjectContentHintRedisRestAPIReadOnlyToken, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-read-only-token) type CreateProjectContentHintRedisRestAPIReadOnlyToken within CreateProjectContentHintUnion: %w", string(data), err) + } - var createProjectContentHintBlobReadWriteToken CreateProjectContentHintBlobReadWriteToken = CreateProjectContentHintBlobReadWriteToken{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintBlobReadWriteToken, "", true, nil); err == nil { - u.CreateProjectContentHintBlobReadWriteToken = &createProjectContentHintBlobReadWriteToken - u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintBlobReadWriteToken + u.CreateProjectContentHintRedisRestAPIReadOnlyToken = createProjectContentHintRedisRestAPIReadOnlyToken + u.Type = CreateProjectContentHintUnionTypeRedisRestAPIReadOnlyToken return nil - } + case "blob-read-write-token": + createProjectContentHintBlobReadWriteToken := new(CreateProjectContentHintBlobReadWriteToken) + if err := utils.UnmarshalJSON(data, &createProjectContentHintBlobReadWriteToken, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == blob-read-write-token) type CreateProjectContentHintBlobReadWriteToken within CreateProjectContentHintUnion: %w", string(data), err) + } - var createProjectContentHintPostgresURL CreateProjectContentHintPostgresURL = CreateProjectContentHintPostgresURL{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresURL, "", true, nil); err == nil { - u.CreateProjectContentHintPostgresURL = &createProjectContentHintPostgresURL - u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresURL + u.CreateProjectContentHintBlobReadWriteToken = createProjectContentHintBlobReadWriteToken + u.Type = CreateProjectContentHintUnionTypeBlobReadWriteToken return nil - } + case "postgres-url": + createProjectContentHintPostgresURL := new(CreateProjectContentHintPostgresURL) + if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url) type CreateProjectContentHintPostgresURL within CreateProjectContentHintUnion: %w", string(data), err) + } - var createProjectContentHintPostgresURLNonPooling CreateProjectContentHintPostgresURLNonPooling = CreateProjectContentHintPostgresURLNonPooling{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresURLNonPooling, "", true, nil); err == nil { - u.CreateProjectContentHintPostgresURLNonPooling = &createProjectContentHintPostgresURLNonPooling - u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresURLNonPooling + u.CreateProjectContentHintPostgresURL = createProjectContentHintPostgresURL + u.Type = CreateProjectContentHintUnionTypePostgresURL return nil - } + case "postgres-url-non-pooling": + createProjectContentHintPostgresURLNonPooling := new(CreateProjectContentHintPostgresURLNonPooling) + if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresURLNonPooling, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-non-pooling) type CreateProjectContentHintPostgresURLNonPooling within CreateProjectContentHintUnion: %w", string(data), err) + } - var createProjectContentHintPostgresPrismaURL CreateProjectContentHintPostgresPrismaURL = CreateProjectContentHintPostgresPrismaURL{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresPrismaURL, "", true, nil); err == nil { - u.CreateProjectContentHintPostgresPrismaURL = &createProjectContentHintPostgresPrismaURL - u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresPrismaURL + u.CreateProjectContentHintPostgresURLNonPooling = createProjectContentHintPostgresURLNonPooling + u.Type = CreateProjectContentHintUnionTypePostgresURLNonPooling return nil - } + case "postgres-prisma-url": + createProjectContentHintPostgresPrismaURL := new(CreateProjectContentHintPostgresPrismaURL) + if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresPrismaURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-prisma-url) type CreateProjectContentHintPostgresPrismaURL within CreateProjectContentHintUnion: %w", string(data), err) + } - var createProjectContentHintPostgresUser CreateProjectContentHintPostgresUser = CreateProjectContentHintPostgresUser{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresUser, "", true, nil); err == nil { - u.CreateProjectContentHintPostgresUser = &createProjectContentHintPostgresUser - u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresUser + u.CreateProjectContentHintPostgresPrismaURL = createProjectContentHintPostgresPrismaURL + u.Type = CreateProjectContentHintUnionTypePostgresPrismaURL return nil - } + case "postgres-user": + createProjectContentHintPostgresUser := new(CreateProjectContentHintPostgresUser) + if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresUser, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-user) type CreateProjectContentHintPostgresUser within CreateProjectContentHintUnion: %w", string(data), err) + } - var createProjectContentHintPostgresHost CreateProjectContentHintPostgresHost = CreateProjectContentHintPostgresHost{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresHost, "", true, nil); err == nil { - u.CreateProjectContentHintPostgresHost = &createProjectContentHintPostgresHost - u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresHost + u.CreateProjectContentHintPostgresUser = createProjectContentHintPostgresUser + u.Type = CreateProjectContentHintUnionTypePostgresUser return nil - } + case "postgres-host": + createProjectContentHintPostgresHost := new(CreateProjectContentHintPostgresHost) + if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresHost, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-host) type CreateProjectContentHintPostgresHost within CreateProjectContentHintUnion: %w", string(data), err) + } - var createProjectContentHintPostgresPassword CreateProjectContentHintPostgresPassword = CreateProjectContentHintPostgresPassword{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresPassword, "", true, nil); err == nil { - u.CreateProjectContentHintPostgresPassword = &createProjectContentHintPostgresPassword - u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresPassword + u.CreateProjectContentHintPostgresHost = createProjectContentHintPostgresHost + u.Type = CreateProjectContentHintUnionTypePostgresHost return nil - } + case "postgres-password": + createProjectContentHintPostgresPassword := new(CreateProjectContentHintPostgresPassword) + if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresPassword, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-password) type CreateProjectContentHintPostgresPassword within CreateProjectContentHintUnion: %w", string(data), err) + } - var createProjectContentHintPostgresDatabase CreateProjectContentHintPostgresDatabase = CreateProjectContentHintPostgresDatabase{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresDatabase, "", true, nil); err == nil { - u.CreateProjectContentHintPostgresDatabase = &createProjectContentHintPostgresDatabase - u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresDatabase + u.CreateProjectContentHintPostgresPassword = createProjectContentHintPostgresPassword + u.Type = CreateProjectContentHintUnionTypePostgresPassword return nil - } + case "postgres-database": + createProjectContentHintPostgresDatabase := new(CreateProjectContentHintPostgresDatabase) + if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresDatabase, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-database) type CreateProjectContentHintPostgresDatabase within CreateProjectContentHintUnion: %w", string(data), err) + } - var createProjectContentHintPostgresURLNoSsl CreateProjectContentHintPostgresURLNoSsl = CreateProjectContentHintPostgresURLNoSsl{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresURLNoSsl, "", true, nil); err == nil { - u.CreateProjectContentHintPostgresURLNoSsl = &createProjectContentHintPostgresURLNoSsl - u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresURLNoSsl + u.CreateProjectContentHintPostgresDatabase = createProjectContentHintPostgresDatabase + u.Type = CreateProjectContentHintUnionTypePostgresDatabase return nil - } + case "postgres-url-no-ssl": + createProjectContentHintPostgresURLNoSsl := new(CreateProjectContentHintPostgresURLNoSsl) + if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresURLNoSsl, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-no-ssl) type CreateProjectContentHintPostgresURLNoSsl within CreateProjectContentHintUnion: %w", string(data), err) + } + + u.CreateProjectContentHintPostgresURLNoSsl = createProjectContentHintPostgresURLNoSsl + u.Type = CreateProjectContentHintUnionTypePostgresURLNoSsl + return nil + case "integration-store-secret": + createProjectContentHintIntegrationStoreSecret := new(CreateProjectContentHintIntegrationStoreSecret) + if err := utils.UnmarshalJSON(data, &createProjectContentHintIntegrationStoreSecret, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == integration-store-secret) type CreateProjectContentHintIntegrationStoreSecret within CreateProjectContentHintUnion: %w", string(data), err) + } + + u.CreateProjectContentHintIntegrationStoreSecret = createProjectContentHintIntegrationStoreSecret + u.Type = CreateProjectContentHintUnionTypeIntegrationStoreSecret + return nil + case "flags-connection-string": + createProjectContentHintFlagsConnectionString := new(CreateProjectContentHintFlagsConnectionString) + if err := utils.UnmarshalJSON(data, &createProjectContentHintFlagsConnectionString, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == flags-connection-string) type CreateProjectContentHintFlagsConnectionString within CreateProjectContentHintUnion: %w", string(data), err) + } - var createProjectContentHintFlagsConnectionString CreateProjectContentHintFlagsConnectionString = CreateProjectContentHintFlagsConnectionString{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintFlagsConnectionString, "", true, nil); err == nil { - u.CreateProjectContentHintFlagsConnectionString = &createProjectContentHintFlagsConnectionString - u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintFlagsConnectionString + u.CreateProjectContentHintFlagsConnectionString = createProjectContentHintFlagsConnectionString + u.Type = CreateProjectContentHintUnionTypeFlagsConnectionString return nil } @@ -2865,6 +2952,111 @@ func (o *CreateProjectEnv) GetContentHint() *CreateProjectContentHintUnion { return o.ContentHint } +func (o *CreateProjectEnv) GetContentHintRedisURL() *CreateProjectContentHintRedisURL { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectContentHintRedisURL + } + return nil +} + +func (o *CreateProjectEnv) GetContentHintRedisRestAPIURL() *CreateProjectContentHintRedisRestAPIURL { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectContentHintRedisRestAPIURL + } + return nil +} + +func (o *CreateProjectEnv) GetContentHintRedisRestAPIToken() *CreateProjectContentHintRedisRestAPIToken { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectContentHintRedisRestAPIToken + } + return nil +} + +func (o *CreateProjectEnv) GetContentHintRedisRestAPIReadOnlyToken() *CreateProjectContentHintRedisRestAPIReadOnlyToken { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectContentHintRedisRestAPIReadOnlyToken + } + return nil +} + +func (o *CreateProjectEnv) GetContentHintBlobReadWriteToken() *CreateProjectContentHintBlobReadWriteToken { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectContentHintBlobReadWriteToken + } + return nil +} + +func (o *CreateProjectEnv) GetContentHintPostgresURL() *CreateProjectContentHintPostgresURL { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectContentHintPostgresURL + } + return nil +} + +func (o *CreateProjectEnv) GetContentHintPostgresURLNonPooling() *CreateProjectContentHintPostgresURLNonPooling { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectContentHintPostgresURLNonPooling + } + return nil +} + +func (o *CreateProjectEnv) GetContentHintPostgresPrismaURL() *CreateProjectContentHintPostgresPrismaURL { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectContentHintPostgresPrismaURL + } + return nil +} + +func (o *CreateProjectEnv) GetContentHintPostgresUser() *CreateProjectContentHintPostgresUser { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectContentHintPostgresUser + } + return nil +} + +func (o *CreateProjectEnv) GetContentHintPostgresHost() *CreateProjectContentHintPostgresHost { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectContentHintPostgresHost + } + return nil +} + +func (o *CreateProjectEnv) GetContentHintPostgresPassword() *CreateProjectContentHintPostgresPassword { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectContentHintPostgresPassword + } + return nil +} + +func (o *CreateProjectEnv) GetContentHintPostgresDatabase() *CreateProjectContentHintPostgresDatabase { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectContentHintPostgresDatabase + } + return nil +} + +func (o *CreateProjectEnv) GetContentHintPostgresURLNoSsl() *CreateProjectContentHintPostgresURLNoSsl { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectContentHintPostgresURLNoSsl + } + return nil +} + +func (o *CreateProjectEnv) GetContentHintIntegrationStoreSecret() *CreateProjectContentHintIntegrationStoreSecret { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectContentHintIntegrationStoreSecret + } + return nil +} + +func (o *CreateProjectEnv) GetContentHintFlagsConnectionString() *CreateProjectContentHintFlagsConnectionString { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectContentHintFlagsConnectionString + } + return nil +} + func (o *CreateProjectEnv) GetInternalContentHint() *CreateProjectInternalContentHint { if o == nil { return nil @@ -4619,11 +4811,11 @@ func (o *CreateProjectLinkGithub) GetProductionBranch() string { type CreateProjectLinkUnionType string const ( - CreateProjectLinkUnionTypeCreateProjectLinkGithub CreateProjectLinkUnionType = "createProject_link_Github" - CreateProjectLinkUnionTypeCreateProjectLinkGithubLimited CreateProjectLinkUnionType = "createProject_link_GithubLimited" - CreateProjectLinkUnionTypeCreateProjectLinkGithubCustomHost CreateProjectLinkUnionType = "createProject_link_GithubCustomHost" - CreateProjectLinkUnionTypeCreateProjectLinkGitlab CreateProjectLinkUnionType = "createProject_link_Gitlab" - CreateProjectLinkUnionTypeCreateProjectLinkBitbucket CreateProjectLinkUnionType = "createProject_link_Bitbucket" + CreateProjectLinkUnionTypeGithub CreateProjectLinkUnionType = "github" + CreateProjectLinkUnionTypeGithubLimited CreateProjectLinkUnionType = "github-limited" + CreateProjectLinkUnionTypeGithubCustomHost CreateProjectLinkUnionType = "github-custom-host" + CreateProjectLinkUnionTypeGitlab CreateProjectLinkUnionType = "gitlab" + CreateProjectLinkUnionTypeBitbucket CreateProjectLinkUnionType = "bitbucket" ) type CreateProjectLinkUnion struct { @@ -4636,85 +4828,122 @@ type CreateProjectLinkUnion struct { Type CreateProjectLinkUnionType } -func CreateCreateProjectLinkUnionCreateProjectLinkGithub(createProjectLinkGithub CreateProjectLinkGithub) CreateProjectLinkUnion { - typ := CreateProjectLinkUnionTypeCreateProjectLinkGithub +func CreateCreateProjectLinkUnionGithub(github CreateProjectLinkGithub) CreateProjectLinkUnion { + typ := CreateProjectLinkUnionTypeGithub + + typStr := CreateProjectTypeGithub(typ) + github.Type = typStr return CreateProjectLinkUnion{ - CreateProjectLinkGithub: &createProjectLinkGithub, + CreateProjectLinkGithub: &github, Type: typ, } } -func CreateCreateProjectLinkUnionCreateProjectLinkGithubLimited(createProjectLinkGithubLimited CreateProjectLinkGithubLimited) CreateProjectLinkUnion { - typ := CreateProjectLinkUnionTypeCreateProjectLinkGithubLimited +func CreateCreateProjectLinkUnionGithubLimited(githubLimited CreateProjectLinkGithubLimited) CreateProjectLinkUnion { + typ := CreateProjectLinkUnionTypeGithubLimited + + typStr := CreateProjectTypeGithubLimited(typ) + githubLimited.Type = typStr return CreateProjectLinkUnion{ - CreateProjectLinkGithubLimited: &createProjectLinkGithubLimited, + CreateProjectLinkGithubLimited: &githubLimited, Type: typ, } } -func CreateCreateProjectLinkUnionCreateProjectLinkGithubCustomHost(createProjectLinkGithubCustomHost CreateProjectLinkGithubCustomHost) CreateProjectLinkUnion { - typ := CreateProjectLinkUnionTypeCreateProjectLinkGithubCustomHost +func CreateCreateProjectLinkUnionGithubCustomHost(githubCustomHost CreateProjectLinkGithubCustomHost) CreateProjectLinkUnion { + typ := CreateProjectLinkUnionTypeGithubCustomHost + + typStr := CreateProjectTypeGithubCustomHost(typ) + githubCustomHost.Type = typStr return CreateProjectLinkUnion{ - CreateProjectLinkGithubCustomHost: &createProjectLinkGithubCustomHost, + CreateProjectLinkGithubCustomHost: &githubCustomHost, Type: typ, } } -func CreateCreateProjectLinkUnionCreateProjectLinkGitlab(createProjectLinkGitlab CreateProjectLinkGitlab) CreateProjectLinkUnion { - typ := CreateProjectLinkUnionTypeCreateProjectLinkGitlab +func CreateCreateProjectLinkUnionGitlab(gitlab CreateProjectLinkGitlab) CreateProjectLinkUnion { + typ := CreateProjectLinkUnionTypeGitlab + + typStr := CreateProjectTypeGitlab(typ) + gitlab.Type = typStr return CreateProjectLinkUnion{ - CreateProjectLinkGitlab: &createProjectLinkGitlab, + CreateProjectLinkGitlab: &gitlab, Type: typ, } } -func CreateCreateProjectLinkUnionCreateProjectLinkBitbucket(createProjectLinkBitbucket CreateProjectLinkBitbucket) CreateProjectLinkUnion { - typ := CreateProjectLinkUnionTypeCreateProjectLinkBitbucket +func CreateCreateProjectLinkUnionBitbucket(bitbucket CreateProjectLinkBitbucket) CreateProjectLinkUnion { + typ := CreateProjectLinkUnionTypeBitbucket + + typStr := CreateProjectTypeBitbucket(typ) + bitbucket.Type = typStr return CreateProjectLinkUnion{ - CreateProjectLinkBitbucket: &createProjectLinkBitbucket, + CreateProjectLinkBitbucket: &bitbucket, Type: typ, } } func (u *CreateProjectLinkUnion) UnmarshalJSON(data []byte) error { - var createProjectLinkGitlab CreateProjectLinkGitlab = CreateProjectLinkGitlab{} - if err := utils.UnmarshalJSON(data, &createProjectLinkGitlab, "", true, nil); err == nil { - u.CreateProjectLinkGitlab = &createProjectLinkGitlab - u.Type = CreateProjectLinkUnionTypeCreateProjectLinkGitlab - return nil + type discriminator struct { + Type string `json:"type"` } - var createProjectLinkBitbucket CreateProjectLinkBitbucket = CreateProjectLinkBitbucket{} - if err := utils.UnmarshalJSON(data, &createProjectLinkBitbucket, "", true, nil); err == nil { - u.CreateProjectLinkBitbucket = &createProjectLinkBitbucket - u.Type = CreateProjectLinkUnionTypeCreateProjectLinkBitbucket - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var createProjectLinkGithubCustomHost CreateProjectLinkGithubCustomHost = CreateProjectLinkGithubCustomHost{} - if err := utils.UnmarshalJSON(data, &createProjectLinkGithubCustomHost, "", true, nil); err == nil { - u.CreateProjectLinkGithubCustomHost = &createProjectLinkGithubCustomHost - u.Type = CreateProjectLinkUnionTypeCreateProjectLinkGithubCustomHost + switch dis.Type { + case "github": + createProjectLinkGithub := new(CreateProjectLinkGithub) + if err := utils.UnmarshalJSON(data, &createProjectLinkGithub, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == github) type CreateProjectLinkGithub within CreateProjectLinkUnion: %w", string(data), err) + } + + u.CreateProjectLinkGithub = createProjectLinkGithub + u.Type = CreateProjectLinkUnionTypeGithub return nil - } + case "github-limited": + createProjectLinkGithubLimited := new(CreateProjectLinkGithubLimited) + if err := utils.UnmarshalJSON(data, &createProjectLinkGithubLimited, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == github-limited) type CreateProjectLinkGithubLimited within CreateProjectLinkUnion: %w", string(data), err) + } - var createProjectLinkGithub CreateProjectLinkGithub = CreateProjectLinkGithub{} - if err := utils.UnmarshalJSON(data, &createProjectLinkGithub, "", true, nil); err == nil { - u.CreateProjectLinkGithub = &createProjectLinkGithub - u.Type = CreateProjectLinkUnionTypeCreateProjectLinkGithub + u.CreateProjectLinkGithubLimited = createProjectLinkGithubLimited + u.Type = CreateProjectLinkUnionTypeGithubLimited return nil - } + case "github-custom-host": + createProjectLinkGithubCustomHost := new(CreateProjectLinkGithubCustomHost) + if err := utils.UnmarshalJSON(data, &createProjectLinkGithubCustomHost, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == github-custom-host) type CreateProjectLinkGithubCustomHost within CreateProjectLinkUnion: %w", string(data), err) + } + + u.CreateProjectLinkGithubCustomHost = createProjectLinkGithubCustomHost + u.Type = CreateProjectLinkUnionTypeGithubCustomHost + return nil + case "gitlab": + createProjectLinkGitlab := new(CreateProjectLinkGitlab) + if err := utils.UnmarshalJSON(data, &createProjectLinkGitlab, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == gitlab) type CreateProjectLinkGitlab within CreateProjectLinkUnion: %w", string(data), err) + } + + u.CreateProjectLinkGitlab = createProjectLinkGitlab + u.Type = CreateProjectLinkUnionTypeGitlab + return nil + case "bitbucket": + createProjectLinkBitbucket := new(CreateProjectLinkBitbucket) + if err := utils.UnmarshalJSON(data, &createProjectLinkBitbucket, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == bitbucket) type CreateProjectLinkBitbucket within CreateProjectLinkUnion: %w", string(data), err) + } - var createProjectLinkGithubLimited CreateProjectLinkGithubLimited = CreateProjectLinkGithubLimited{} - if err := utils.UnmarshalJSON(data, &createProjectLinkGithubLimited, "", true, nil); err == nil { - u.CreateProjectLinkGithubLimited = &createProjectLinkGithubLimited - u.Type = CreateProjectLinkUnionTypeCreateProjectLinkGithubLimited + u.CreateProjectLinkBitbucket = createProjectLinkBitbucket + u.Type = CreateProjectLinkUnionTypeBitbucket return nil } @@ -8295,8 +8524,8 @@ func (o *CreateProjectProtectionBypassIntegrationAutomationBypass) GetConfigurat type CreateProjectProtectionBypassUnionType string const ( - CreateProjectProtectionBypassUnionTypeCreateProjectProtectionBypassIntegrationAutomationBypass CreateProjectProtectionBypassUnionType = "createProject_protectionBypass_IntegrationAutomationBypass" - CreateProjectProtectionBypassUnionTypeCreateProjectProtectionBypassAutomationBypass CreateProjectProtectionBypassUnionType = "createProject_protectionBypass_AutomationBypass" + CreateProjectProtectionBypassUnionTypeIntegrationAutomationBypass CreateProjectProtectionBypassUnionType = "integration-automation-bypass" + CreateProjectProtectionBypassUnionTypeAutomationBypass CreateProjectProtectionBypassUnionType = "automation-bypass" ) type CreateProjectProtectionBypassUnion struct { @@ -8306,37 +8535,59 @@ type CreateProjectProtectionBypassUnion struct { Type CreateProjectProtectionBypassUnionType } -func CreateCreateProjectProtectionBypassUnionCreateProjectProtectionBypassIntegrationAutomationBypass(createProjectProtectionBypassIntegrationAutomationBypass CreateProjectProtectionBypassIntegrationAutomationBypass) CreateProjectProtectionBypassUnion { - typ := CreateProjectProtectionBypassUnionTypeCreateProjectProtectionBypassIntegrationAutomationBypass +func CreateCreateProjectProtectionBypassUnionIntegrationAutomationBypass(integrationAutomationBypass CreateProjectProtectionBypassIntegrationAutomationBypass) CreateProjectProtectionBypassUnion { + typ := CreateProjectProtectionBypassUnionTypeIntegrationAutomationBypass + + typStr := CreateProjectScopeIntegrationAutomationBypass(typ) + integrationAutomationBypass.Scope = typStr return CreateProjectProtectionBypassUnion{ - CreateProjectProtectionBypassIntegrationAutomationBypass: &createProjectProtectionBypassIntegrationAutomationBypass, + CreateProjectProtectionBypassIntegrationAutomationBypass: &integrationAutomationBypass, Type: typ, } } -func CreateCreateProjectProtectionBypassUnionCreateProjectProtectionBypassAutomationBypass(createProjectProtectionBypassAutomationBypass CreateProjectProtectionBypassAutomationBypass) CreateProjectProtectionBypassUnion { - typ := CreateProjectProtectionBypassUnionTypeCreateProjectProtectionBypassAutomationBypass +func CreateCreateProjectProtectionBypassUnionAutomationBypass(automationBypass CreateProjectProtectionBypassAutomationBypass) CreateProjectProtectionBypassUnion { + typ := CreateProjectProtectionBypassUnionTypeAutomationBypass + + typStr := CreateProjectScopeAutomationBypass(typ) + automationBypass.Scope = typStr return CreateProjectProtectionBypassUnion{ - CreateProjectProtectionBypassAutomationBypass: &createProjectProtectionBypassAutomationBypass, + CreateProjectProtectionBypassAutomationBypass: &automationBypass, Type: typ, } } func (u *CreateProjectProtectionBypassUnion) UnmarshalJSON(data []byte) error { - var createProjectProtectionBypassIntegrationAutomationBypass CreateProjectProtectionBypassIntegrationAutomationBypass = CreateProjectProtectionBypassIntegrationAutomationBypass{} - if err := utils.UnmarshalJSON(data, &createProjectProtectionBypassIntegrationAutomationBypass, "", true, nil); err == nil { - u.CreateProjectProtectionBypassIntegrationAutomationBypass = &createProjectProtectionBypassIntegrationAutomationBypass - u.Type = CreateProjectProtectionBypassUnionTypeCreateProjectProtectionBypassIntegrationAutomationBypass - return nil + type discriminator struct { + Scope string `json:"scope"` } - var createProjectProtectionBypassAutomationBypass CreateProjectProtectionBypassAutomationBypass = CreateProjectProtectionBypassAutomationBypass{} - if err := utils.UnmarshalJSON(data, &createProjectProtectionBypassAutomationBypass, "", true, nil); err == nil { - u.CreateProjectProtectionBypassAutomationBypass = &createProjectProtectionBypassAutomationBypass - u.Type = CreateProjectProtectionBypassUnionTypeCreateProjectProtectionBypassAutomationBypass + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Scope { + case "integration-automation-bypass": + createProjectProtectionBypassIntegrationAutomationBypass := new(CreateProjectProtectionBypassIntegrationAutomationBypass) + if err := utils.UnmarshalJSON(data, &createProjectProtectionBypassIntegrationAutomationBypass, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Scope == integration-automation-bypass) type CreateProjectProtectionBypassIntegrationAutomationBypass within CreateProjectProtectionBypassUnion: %w", string(data), err) + } + + u.CreateProjectProtectionBypassIntegrationAutomationBypass = createProjectProtectionBypassIntegrationAutomationBypass + u.Type = CreateProjectProtectionBypassUnionTypeIntegrationAutomationBypass + return nil + case "automation-bypass": + createProjectProtectionBypassAutomationBypass := new(CreateProjectProtectionBypassAutomationBypass) + if err := utils.UnmarshalJSON(data, &createProjectProtectionBypassAutomationBypass, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Scope == automation-bypass) type CreateProjectProtectionBypassAutomationBypass within CreateProjectProtectionBypassUnion: %w", string(data), err) + } + + u.CreateProjectProtectionBypassAutomationBypass = createProjectProtectionBypassAutomationBypass + u.Type = CreateProjectProtectionBypassUnionTypeAutomationBypass return nil } @@ -9423,8 +9674,8 @@ func (o *CreateProjectBlockHistoryHasXVercelIPCountry2) GetValue() CreateProject type CreateProjectBlockHistoryHasUnion2Type string const ( - CreateProjectBlockHistoryHasUnion2TypeCreateProjectBlockHistoryHasXVercelIPCountry2 CreateProjectBlockHistoryHasUnion2Type = "createProject_blockHistory_has_XVercelIPCountry_2" - CreateProjectBlockHistoryHasUnion2TypeCreateProjectBlockHistoryHasHost2 CreateProjectBlockHistoryHasUnion2Type = "createProject_blockHistory_has_Host_2" + CreateProjectBlockHistoryHasUnion2TypeHeader CreateProjectBlockHistoryHasUnion2Type = "header" + CreateProjectBlockHistoryHasUnion2TypeHost CreateProjectBlockHistoryHasUnion2Type = "host" ) type CreateProjectBlockHistoryHasUnion2 struct { @@ -9434,37 +9685,59 @@ type CreateProjectBlockHistoryHasUnion2 struct { Type CreateProjectBlockHistoryHasUnion2Type } -func CreateCreateProjectBlockHistoryHasUnion2CreateProjectBlockHistoryHasXVercelIPCountry2(createProjectBlockHistoryHasXVercelIPCountry2 CreateProjectBlockHistoryHasXVercelIPCountry2) CreateProjectBlockHistoryHasUnion2 { - typ := CreateProjectBlockHistoryHasUnion2TypeCreateProjectBlockHistoryHasXVercelIPCountry2 +func CreateCreateProjectBlockHistoryHasUnion2Header(header CreateProjectBlockHistoryHasXVercelIPCountry2) CreateProjectBlockHistoryHasUnion2 { + typ := CreateProjectBlockHistoryHasUnion2TypeHeader + + typStr := CreateProjectBlockHistoryTypeHeader2(typ) + header.Type = typStr return CreateProjectBlockHistoryHasUnion2{ - CreateProjectBlockHistoryHasXVercelIPCountry2: &createProjectBlockHistoryHasXVercelIPCountry2, + CreateProjectBlockHistoryHasXVercelIPCountry2: &header, Type: typ, } } -func CreateCreateProjectBlockHistoryHasUnion2CreateProjectBlockHistoryHasHost2(createProjectBlockHistoryHasHost2 CreateProjectBlockHistoryHasHost2) CreateProjectBlockHistoryHasUnion2 { - typ := CreateProjectBlockHistoryHasUnion2TypeCreateProjectBlockHistoryHasHost2 +func CreateCreateProjectBlockHistoryHasUnion2Host(host CreateProjectBlockHistoryHasHost2) CreateProjectBlockHistoryHasUnion2 { + typ := CreateProjectBlockHistoryHasUnion2TypeHost + + typStr := CreateProjectBlockHistoryTypeHost2(typ) + host.Type = typStr return CreateProjectBlockHistoryHasUnion2{ - CreateProjectBlockHistoryHasHost2: &createProjectBlockHistoryHasHost2, + CreateProjectBlockHistoryHasHost2: &host, Type: typ, } } func (u *CreateProjectBlockHistoryHasUnion2) UnmarshalJSON(data []byte) error { - var createProjectBlockHistoryHasXVercelIPCountry2 CreateProjectBlockHistoryHasXVercelIPCountry2 = CreateProjectBlockHistoryHasXVercelIPCountry2{} - if err := utils.UnmarshalJSON(data, &createProjectBlockHistoryHasXVercelIPCountry2, "", true, nil); err == nil { - u.CreateProjectBlockHistoryHasXVercelIPCountry2 = &createProjectBlockHistoryHasXVercelIPCountry2 - u.Type = CreateProjectBlockHistoryHasUnion2TypeCreateProjectBlockHistoryHasXVercelIPCountry2 - return nil + type discriminator struct { + Type string `json:"type"` } - var createProjectBlockHistoryHasHost2 CreateProjectBlockHistoryHasHost2 = CreateProjectBlockHistoryHasHost2{} - if err := utils.UnmarshalJSON(data, &createProjectBlockHistoryHasHost2, "", true, nil); err == nil { - u.CreateProjectBlockHistoryHasHost2 = &createProjectBlockHistoryHasHost2 - u.Type = CreateProjectBlockHistoryHasUnion2TypeCreateProjectBlockHistoryHasHost2 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Type { + case "header": + createProjectBlockHistoryHasXVercelIPCountry2 := new(CreateProjectBlockHistoryHasXVercelIPCountry2) + if err := utils.UnmarshalJSON(data, &createProjectBlockHistoryHasXVercelIPCountry2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == header) type CreateProjectBlockHistoryHasXVercelIPCountry2 within CreateProjectBlockHistoryHasUnion2: %w", string(data), err) + } + + u.CreateProjectBlockHistoryHasXVercelIPCountry2 = createProjectBlockHistoryHasXVercelIPCountry2 + u.Type = CreateProjectBlockHistoryHasUnion2TypeHeader + return nil + case "host": + createProjectBlockHistoryHasHost2 := new(CreateProjectBlockHistoryHasHost2) + if err := utils.UnmarshalJSON(data, &createProjectBlockHistoryHasHost2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == host) type CreateProjectBlockHistoryHasHost2 within CreateProjectBlockHistoryHasUnion2: %w", string(data), err) + } + + u.CreateProjectBlockHistoryHasHost2 = createProjectBlockHistoryHasHost2 + u.Type = CreateProjectBlockHistoryHasUnion2TypeHost return nil } @@ -9944,8 +10217,8 @@ func (o *CreateProjectBlockHistoryHasXVercelIPCountry1) GetValue() CreateProject type CreateProjectBlockHistoryHasUnion1Type string const ( - CreateProjectBlockHistoryHasUnion1TypeCreateProjectBlockHistoryHasXVercelIPCountry1 CreateProjectBlockHistoryHasUnion1Type = "createProject_blockHistory_has_XVercelIPCountry_1" - CreateProjectBlockHistoryHasUnion1TypeCreateProjectBlockHistoryHasHost1 CreateProjectBlockHistoryHasUnion1Type = "createProject_blockHistory_has_Host_1" + CreateProjectBlockHistoryHasUnion1TypeHeader CreateProjectBlockHistoryHasUnion1Type = "header" + CreateProjectBlockHistoryHasUnion1TypeHost CreateProjectBlockHistoryHasUnion1Type = "host" ) type CreateProjectBlockHistoryHasUnion1 struct { @@ -9955,37 +10228,59 @@ type CreateProjectBlockHistoryHasUnion1 struct { Type CreateProjectBlockHistoryHasUnion1Type } -func CreateCreateProjectBlockHistoryHasUnion1CreateProjectBlockHistoryHasXVercelIPCountry1(createProjectBlockHistoryHasXVercelIPCountry1 CreateProjectBlockHistoryHasXVercelIPCountry1) CreateProjectBlockHistoryHasUnion1 { - typ := CreateProjectBlockHistoryHasUnion1TypeCreateProjectBlockHistoryHasXVercelIPCountry1 +func CreateCreateProjectBlockHistoryHasUnion1Header(header CreateProjectBlockHistoryHasXVercelIPCountry1) CreateProjectBlockHistoryHasUnion1 { + typ := CreateProjectBlockHistoryHasUnion1TypeHeader + + typStr := CreateProjectBlockHistoryTypeHeader1(typ) + header.Type = typStr return CreateProjectBlockHistoryHasUnion1{ - CreateProjectBlockHistoryHasXVercelIPCountry1: &createProjectBlockHistoryHasXVercelIPCountry1, + CreateProjectBlockHistoryHasXVercelIPCountry1: &header, Type: typ, } } -func CreateCreateProjectBlockHistoryHasUnion1CreateProjectBlockHistoryHasHost1(createProjectBlockHistoryHasHost1 CreateProjectBlockHistoryHasHost1) CreateProjectBlockHistoryHasUnion1 { - typ := CreateProjectBlockHistoryHasUnion1TypeCreateProjectBlockHistoryHasHost1 +func CreateCreateProjectBlockHistoryHasUnion1Host(host CreateProjectBlockHistoryHasHost1) CreateProjectBlockHistoryHasUnion1 { + typ := CreateProjectBlockHistoryHasUnion1TypeHost + + typStr := CreateProjectBlockHistoryTypeHost1(typ) + host.Type = typStr return CreateProjectBlockHistoryHasUnion1{ - CreateProjectBlockHistoryHasHost1: &createProjectBlockHistoryHasHost1, + CreateProjectBlockHistoryHasHost1: &host, Type: typ, } } func (u *CreateProjectBlockHistoryHasUnion1) UnmarshalJSON(data []byte) error { - var createProjectBlockHistoryHasXVercelIPCountry1 CreateProjectBlockHistoryHasXVercelIPCountry1 = CreateProjectBlockHistoryHasXVercelIPCountry1{} - if err := utils.UnmarshalJSON(data, &createProjectBlockHistoryHasXVercelIPCountry1, "", true, nil); err == nil { - u.CreateProjectBlockHistoryHasXVercelIPCountry1 = &createProjectBlockHistoryHasXVercelIPCountry1 - u.Type = CreateProjectBlockHistoryHasUnion1TypeCreateProjectBlockHistoryHasXVercelIPCountry1 - return nil + type discriminator struct { + Type string `json:"type"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var createProjectBlockHistoryHasHost1 CreateProjectBlockHistoryHasHost1 = CreateProjectBlockHistoryHasHost1{} - if err := utils.UnmarshalJSON(data, &createProjectBlockHistoryHasHost1, "", true, nil); err == nil { - u.CreateProjectBlockHistoryHasHost1 = &createProjectBlockHistoryHasHost1 - u.Type = CreateProjectBlockHistoryHasUnion1TypeCreateProjectBlockHistoryHasHost1 + switch dis.Type { + case "header": + createProjectBlockHistoryHasXVercelIPCountry1 := new(CreateProjectBlockHistoryHasXVercelIPCountry1) + if err := utils.UnmarshalJSON(data, &createProjectBlockHistoryHasXVercelIPCountry1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == header) type CreateProjectBlockHistoryHasXVercelIPCountry1 within CreateProjectBlockHistoryHasUnion1: %w", string(data), err) + } + + u.CreateProjectBlockHistoryHasXVercelIPCountry1 = createProjectBlockHistoryHasXVercelIPCountry1 + u.Type = CreateProjectBlockHistoryHasUnion1TypeHeader + return nil + case "host": + createProjectBlockHistoryHasHost1 := new(CreateProjectBlockHistoryHasHost1) + if err := utils.UnmarshalJSON(data, &createProjectBlockHistoryHasHost1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == host) type CreateProjectBlockHistoryHasHost1 within CreateProjectBlockHistoryHasUnion1: %w", string(data), err) + } + + u.CreateProjectBlockHistoryHasHost1 = createProjectBlockHistoryHasHost1 + u.Type = CreateProjectBlockHistoryHasUnion1TypeHost return nil } @@ -10447,10 +10742,10 @@ func (o *CreateProjectBlockHistoryBlocked) GetIsCascading() *bool { type CreateProjectBlockHistoryUnionType string const ( - CreateProjectBlockHistoryUnionTypeCreateProjectBlockHistoryBlocked CreateProjectBlockHistoryUnionType = "createProject_blockHistory_Blocked" - CreateProjectBlockHistoryUnionTypeCreateProjectBlockHistoryUnblocked CreateProjectBlockHistoryUnionType = "createProject_blockHistory_Unblocked" - CreateProjectBlockHistoryUnionTypeCreateProjectBlockHistoryRouteBlocked CreateProjectBlockHistoryUnionType = "createProject_blockHistory_RouteBlocked" - CreateProjectBlockHistoryUnionTypeCreateProjectBlockHistoryRouteUnblocked CreateProjectBlockHistoryUnionType = "createProject_blockHistory_RouteUnblocked" + CreateProjectBlockHistoryUnionTypeBlocked CreateProjectBlockHistoryUnionType = "blocked" + CreateProjectBlockHistoryUnionTypeUnblocked CreateProjectBlockHistoryUnionType = "unblocked" + CreateProjectBlockHistoryUnionTypeRouteBlocked CreateProjectBlockHistoryUnionType = "route-blocked" + CreateProjectBlockHistoryUnionTypeRouteUnblocked CreateProjectBlockHistoryUnionType = "route-unblocked" ) type CreateProjectBlockHistoryUnion struct { @@ -10462,69 +10757,101 @@ type CreateProjectBlockHistoryUnion struct { Type CreateProjectBlockHistoryUnionType } -func CreateCreateProjectBlockHistoryUnionCreateProjectBlockHistoryBlocked(createProjectBlockHistoryBlocked CreateProjectBlockHistoryBlocked) CreateProjectBlockHistoryUnion { - typ := CreateProjectBlockHistoryUnionTypeCreateProjectBlockHistoryBlocked +func CreateCreateProjectBlockHistoryUnionBlocked(blocked CreateProjectBlockHistoryBlocked) CreateProjectBlockHistoryUnion { + typ := CreateProjectBlockHistoryUnionTypeBlocked + + typStr := CreateProjectBlockHistoryActionBlocked(typ) + blocked.Action = typStr return CreateProjectBlockHistoryUnion{ - CreateProjectBlockHistoryBlocked: &createProjectBlockHistoryBlocked, + CreateProjectBlockHistoryBlocked: &blocked, Type: typ, } } -func CreateCreateProjectBlockHistoryUnionCreateProjectBlockHistoryUnblocked(createProjectBlockHistoryUnblocked CreateProjectBlockHistoryUnblocked) CreateProjectBlockHistoryUnion { - typ := CreateProjectBlockHistoryUnionTypeCreateProjectBlockHistoryUnblocked +func CreateCreateProjectBlockHistoryUnionUnblocked(unblocked CreateProjectBlockHistoryUnblocked) CreateProjectBlockHistoryUnion { + typ := CreateProjectBlockHistoryUnionTypeUnblocked + + typStr := CreateProjectActionUnblocked(typ) + unblocked.Action = typStr return CreateProjectBlockHistoryUnion{ - CreateProjectBlockHistoryUnblocked: &createProjectBlockHistoryUnblocked, + CreateProjectBlockHistoryUnblocked: &unblocked, Type: typ, } } -func CreateCreateProjectBlockHistoryUnionCreateProjectBlockHistoryRouteBlocked(createProjectBlockHistoryRouteBlocked CreateProjectBlockHistoryRouteBlocked) CreateProjectBlockHistoryUnion { - typ := CreateProjectBlockHistoryUnionTypeCreateProjectBlockHistoryRouteBlocked +func CreateCreateProjectBlockHistoryUnionRouteBlocked(routeBlocked CreateProjectBlockHistoryRouteBlocked) CreateProjectBlockHistoryUnion { + typ := CreateProjectBlockHistoryUnionTypeRouteBlocked + + typStr := CreateProjectActionRouteBlocked(typ) + routeBlocked.Action = typStr return CreateProjectBlockHistoryUnion{ - CreateProjectBlockHistoryRouteBlocked: &createProjectBlockHistoryRouteBlocked, + CreateProjectBlockHistoryRouteBlocked: &routeBlocked, Type: typ, } } -func CreateCreateProjectBlockHistoryUnionCreateProjectBlockHistoryRouteUnblocked(createProjectBlockHistoryRouteUnblocked CreateProjectBlockHistoryRouteUnblocked) CreateProjectBlockHistoryUnion { - typ := CreateProjectBlockHistoryUnionTypeCreateProjectBlockHistoryRouteUnblocked +func CreateCreateProjectBlockHistoryUnionRouteUnblocked(routeUnblocked CreateProjectBlockHistoryRouteUnblocked) CreateProjectBlockHistoryUnion { + typ := CreateProjectBlockHistoryUnionTypeRouteUnblocked + + typStr := CreateProjectActionRouteUnblocked(typ) + routeUnblocked.Action = typStr return CreateProjectBlockHistoryUnion{ - CreateProjectBlockHistoryRouteUnblocked: &createProjectBlockHistoryRouteUnblocked, + CreateProjectBlockHistoryRouteUnblocked: &routeUnblocked, Type: typ, } } func (u *CreateProjectBlockHistoryUnion) UnmarshalJSON(data []byte) error { - var createProjectBlockHistoryBlocked CreateProjectBlockHistoryBlocked = CreateProjectBlockHistoryBlocked{} - if err := utils.UnmarshalJSON(data, &createProjectBlockHistoryBlocked, "", true, nil); err == nil { - u.CreateProjectBlockHistoryBlocked = &createProjectBlockHistoryBlocked - u.Type = CreateProjectBlockHistoryUnionTypeCreateProjectBlockHistoryBlocked - return nil + type discriminator struct { + Action string `json:"action"` } - var createProjectBlockHistoryRouteBlocked CreateProjectBlockHistoryRouteBlocked = CreateProjectBlockHistoryRouteBlocked{} - if err := utils.UnmarshalJSON(data, &createProjectBlockHistoryRouteBlocked, "", true, nil); err == nil { - u.CreateProjectBlockHistoryRouteBlocked = &createProjectBlockHistoryRouteBlocked - u.Type = CreateProjectBlockHistoryUnionTypeCreateProjectBlockHistoryRouteBlocked - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var createProjectBlockHistoryRouteUnblocked CreateProjectBlockHistoryRouteUnblocked = CreateProjectBlockHistoryRouteUnblocked{} - if err := utils.UnmarshalJSON(data, &createProjectBlockHistoryRouteUnblocked, "", true, nil); err == nil { - u.CreateProjectBlockHistoryRouteUnblocked = &createProjectBlockHistoryRouteUnblocked - u.Type = CreateProjectBlockHistoryUnionTypeCreateProjectBlockHistoryRouteUnblocked + switch dis.Action { + case "blocked": + createProjectBlockHistoryBlocked := new(CreateProjectBlockHistoryBlocked) + if err := utils.UnmarshalJSON(data, &createProjectBlockHistoryBlocked, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Action == blocked) type CreateProjectBlockHistoryBlocked within CreateProjectBlockHistoryUnion: %w", string(data), err) + } + + u.CreateProjectBlockHistoryBlocked = createProjectBlockHistoryBlocked + u.Type = CreateProjectBlockHistoryUnionTypeBlocked return nil - } + case "unblocked": + createProjectBlockHistoryUnblocked := new(CreateProjectBlockHistoryUnblocked) + if err := utils.UnmarshalJSON(data, &createProjectBlockHistoryUnblocked, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Action == unblocked) type CreateProjectBlockHistoryUnblocked within CreateProjectBlockHistoryUnion: %w", string(data), err) + } - var createProjectBlockHistoryUnblocked CreateProjectBlockHistoryUnblocked = CreateProjectBlockHistoryUnblocked{} - if err := utils.UnmarshalJSON(data, &createProjectBlockHistoryUnblocked, "", true, nil); err == nil { - u.CreateProjectBlockHistoryUnblocked = &createProjectBlockHistoryUnblocked - u.Type = CreateProjectBlockHistoryUnionTypeCreateProjectBlockHistoryUnblocked + u.CreateProjectBlockHistoryUnblocked = createProjectBlockHistoryUnblocked + u.Type = CreateProjectBlockHistoryUnionTypeUnblocked + return nil + case "route-blocked": + createProjectBlockHistoryRouteBlocked := new(CreateProjectBlockHistoryRouteBlocked) + if err := utils.UnmarshalJSON(data, &createProjectBlockHistoryRouteBlocked, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Action == route-blocked) type CreateProjectBlockHistoryRouteBlocked within CreateProjectBlockHistoryUnion: %w", string(data), err) + } + + u.CreateProjectBlockHistoryRouteBlocked = createProjectBlockHistoryRouteBlocked + u.Type = CreateProjectBlockHistoryUnionTypeRouteBlocked + return nil + case "route-unblocked": + createProjectBlockHistoryRouteUnblocked := new(CreateProjectBlockHistoryRouteUnblocked) + if err := utils.UnmarshalJSON(data, &createProjectBlockHistoryRouteUnblocked, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Action == route-unblocked) type CreateProjectBlockHistoryRouteUnblocked within CreateProjectBlockHistoryUnion: %w", string(data), err) + } + + u.CreateProjectBlockHistoryRouteUnblocked = createProjectBlockHistoryRouteUnblocked + u.Type = CreateProjectBlockHistoryUnionTypeRouteUnblocked return nil } @@ -10786,8 +11113,8 @@ func (o *CreateProjectInternalRouteHasXVercelIPCountry) GetValue() CreateProject type CreateProjectInternalRouteHasUnionType string const ( - CreateProjectInternalRouteHasUnionTypeCreateProjectInternalRouteHasXVercelIPCountry CreateProjectInternalRouteHasUnionType = "createProject_internalRoute_has_XVercelIPCountry" - CreateProjectInternalRouteHasUnionTypeCreateProjectInternalRouteHasHost CreateProjectInternalRouteHasUnionType = "createProject_internalRoute_has_Host" + CreateProjectInternalRouteHasUnionTypeHeader CreateProjectInternalRouteHasUnionType = "header" + CreateProjectInternalRouteHasUnionTypeHost CreateProjectInternalRouteHasUnionType = "host" ) type CreateProjectInternalRouteHasUnion struct { @@ -10797,37 +11124,59 @@ type CreateProjectInternalRouteHasUnion struct { Type CreateProjectInternalRouteHasUnionType } -func CreateCreateProjectInternalRouteHasUnionCreateProjectInternalRouteHasXVercelIPCountry(createProjectInternalRouteHasXVercelIPCountry CreateProjectInternalRouteHasXVercelIPCountry) CreateProjectInternalRouteHasUnion { - typ := CreateProjectInternalRouteHasUnionTypeCreateProjectInternalRouteHasXVercelIPCountry +func CreateCreateProjectInternalRouteHasUnionHeader(header CreateProjectInternalRouteHasXVercelIPCountry) CreateProjectInternalRouteHasUnion { + typ := CreateProjectInternalRouteHasUnionTypeHeader + + typStr := CreateProjectInternalRouteTypeHeader(typ) + header.Type = typStr return CreateProjectInternalRouteHasUnion{ - CreateProjectInternalRouteHasXVercelIPCountry: &createProjectInternalRouteHasXVercelIPCountry, + CreateProjectInternalRouteHasXVercelIPCountry: &header, Type: typ, } } -func CreateCreateProjectInternalRouteHasUnionCreateProjectInternalRouteHasHost(createProjectInternalRouteHasHost CreateProjectInternalRouteHasHost) CreateProjectInternalRouteHasUnion { - typ := CreateProjectInternalRouteHasUnionTypeCreateProjectInternalRouteHasHost +func CreateCreateProjectInternalRouteHasUnionHost(host CreateProjectInternalRouteHasHost) CreateProjectInternalRouteHasUnion { + typ := CreateProjectInternalRouteHasUnionTypeHost + + typStr := CreateProjectInternalRouteTypeHost(typ) + host.Type = typStr return CreateProjectInternalRouteHasUnion{ - CreateProjectInternalRouteHasHost: &createProjectInternalRouteHasHost, + CreateProjectInternalRouteHasHost: &host, Type: typ, } } func (u *CreateProjectInternalRouteHasUnion) UnmarshalJSON(data []byte) error { - var createProjectInternalRouteHasXVercelIPCountry CreateProjectInternalRouteHasXVercelIPCountry = CreateProjectInternalRouteHasXVercelIPCountry{} - if err := utils.UnmarshalJSON(data, &createProjectInternalRouteHasXVercelIPCountry, "", true, nil); err == nil { - u.CreateProjectInternalRouteHasXVercelIPCountry = &createProjectInternalRouteHasXVercelIPCountry - u.Type = CreateProjectInternalRouteHasUnionTypeCreateProjectInternalRouteHasXVercelIPCountry - return nil + type discriminator struct { + Type string `json:"type"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var createProjectInternalRouteHasHost CreateProjectInternalRouteHasHost = CreateProjectInternalRouteHasHost{} - if err := utils.UnmarshalJSON(data, &createProjectInternalRouteHasHost, "", true, nil); err == nil { - u.CreateProjectInternalRouteHasHost = &createProjectInternalRouteHasHost - u.Type = CreateProjectInternalRouteHasUnionTypeCreateProjectInternalRouteHasHost + switch dis.Type { + case "header": + createProjectInternalRouteHasXVercelIPCountry := new(CreateProjectInternalRouteHasXVercelIPCountry) + if err := utils.UnmarshalJSON(data, &createProjectInternalRouteHasXVercelIPCountry, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == header) type CreateProjectInternalRouteHasXVercelIPCountry within CreateProjectInternalRouteHasUnion: %w", string(data), err) + } + + u.CreateProjectInternalRouteHasXVercelIPCountry = createProjectInternalRouteHasXVercelIPCountry + u.Type = CreateProjectInternalRouteHasUnionTypeHeader + return nil + case "host": + createProjectInternalRouteHasHost := new(CreateProjectInternalRouteHasHost) + if err := utils.UnmarshalJSON(data, &createProjectInternalRouteHasHost, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == host) type CreateProjectInternalRouteHasHost within CreateProjectInternalRouteHasUnion: %w", string(data), err) + } + + u.CreateProjectInternalRouteHasHost = createProjectInternalRouteHasHost + u.Type = CreateProjectInternalRouteHasUnionTypeHost return nil } @@ -11682,6 +12031,41 @@ func (o *CreateProjectResponseBody) GetLink() *CreateProjectLinkUnion { return o.Link } +func (o *CreateProjectResponseBody) GetLinkGithub() *CreateProjectLinkGithub { + if v := o.GetLink(); v != nil { + return v.CreateProjectLinkGithub + } + return nil +} + +func (o *CreateProjectResponseBody) GetLinkGithubLimited() *CreateProjectLinkGithubLimited { + if v := o.GetLink(); v != nil { + return v.CreateProjectLinkGithubLimited + } + return nil +} + +func (o *CreateProjectResponseBody) GetLinkGithubCustomHost() *CreateProjectLinkGithubCustomHost { + if v := o.GetLink(); v != nil { + return v.CreateProjectLinkGithubCustomHost + } + return nil +} + +func (o *CreateProjectResponseBody) GetLinkGitlab() *CreateProjectLinkGitlab { + if v := o.GetLink(); v != nil { + return v.CreateProjectLinkGitlab + } + return nil +} + +func (o *CreateProjectResponseBody) GetLinkBitbucket() *CreateProjectLinkBitbucket { + if v := o.GetLink(); v != nil { + return v.CreateProjectLinkBitbucket + } + return nil +} + func (o *CreateProjectResponseBody) GetMicrofrontends() *CreateProjectMicrofrontendsUnion { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/createprojectenv.go b/src/__tests__/mockserver/internal/sdk/models/operations/createprojectenv.go index 61b2b5fb..b044fe28 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/createprojectenv.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/createprojectenv.go @@ -1763,21 +1763,21 @@ func (o *CreateProjectEnvContentHintRedisURL2) GetStoreID() string { type CreateProjectEnvContentHintUnion2Type string const ( - CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintRedisURL2 CreateProjectEnvContentHintUnion2Type = "createProjectEnv_contentHint_RedisURL_2" - CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintRedisRestAPIURL2 CreateProjectEnvContentHintUnion2Type = "createProjectEnv_contentHint_RedisRestAPIURL_2" - CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintRedisRestAPIToken2 CreateProjectEnvContentHintUnion2Type = "createProjectEnv_contentHint_RedisRestAPIToken_2" - CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintRedisRestAPIReadOnlyToken2 CreateProjectEnvContentHintUnion2Type = "createProjectEnv_contentHint_RedisRestAPIReadOnlyToken_2" - CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintBlobReadWriteToken2 CreateProjectEnvContentHintUnion2Type = "createProjectEnv_contentHint_BlobReadWriteToken_2" - CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresURL2 CreateProjectEnvContentHintUnion2Type = "createProjectEnv_contentHint_PostgresURL_2" - CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresURLNonPooling2 CreateProjectEnvContentHintUnion2Type = "createProjectEnv_contentHint_PostgresURLNonPooling_2" - CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresPrismaURL2 CreateProjectEnvContentHintUnion2Type = "createProjectEnv_contentHint_PostgresPrismaURL_2" - CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresUser2 CreateProjectEnvContentHintUnion2Type = "createProjectEnv_contentHint_PostgresUser_2" - CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresHost2 CreateProjectEnvContentHintUnion2Type = "createProjectEnv_contentHint_PostgresHost_2" - CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresPassword2 CreateProjectEnvContentHintUnion2Type = "createProjectEnv_contentHint_PostgresPassword_2" - CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresDatabase2 CreateProjectEnvContentHintUnion2Type = "createProjectEnv_contentHint_PostgresDatabase_2" - CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresURLNoSsl2 CreateProjectEnvContentHintUnion2Type = "createProjectEnv_contentHint_PostgresURLNoSsl_2" - CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintIntegrationStoreSecret2 CreateProjectEnvContentHintUnion2Type = "createProjectEnv_contentHint_IntegrationStoreSecret_2" - CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintFlagsConnectionString2 CreateProjectEnvContentHintUnion2Type = "createProjectEnv_contentHint_FlagsConnectionString_2" + CreateProjectEnvContentHintUnion2TypeRedisURL CreateProjectEnvContentHintUnion2Type = "redis-url" + CreateProjectEnvContentHintUnion2TypeRedisRestAPIURL CreateProjectEnvContentHintUnion2Type = "redis-rest-api-url" + CreateProjectEnvContentHintUnion2TypeRedisRestAPIToken CreateProjectEnvContentHintUnion2Type = "redis-rest-api-token" + CreateProjectEnvContentHintUnion2TypeRedisRestAPIReadOnlyToken CreateProjectEnvContentHintUnion2Type = "redis-rest-api-read-only-token" + CreateProjectEnvContentHintUnion2TypeBlobReadWriteToken CreateProjectEnvContentHintUnion2Type = "blob-read-write-token" + CreateProjectEnvContentHintUnion2TypePostgresURL CreateProjectEnvContentHintUnion2Type = "postgres-url" + CreateProjectEnvContentHintUnion2TypePostgresURLNonPooling CreateProjectEnvContentHintUnion2Type = "postgres-url-non-pooling" + CreateProjectEnvContentHintUnion2TypePostgresPrismaURL CreateProjectEnvContentHintUnion2Type = "postgres-prisma-url" + CreateProjectEnvContentHintUnion2TypePostgresUser CreateProjectEnvContentHintUnion2Type = "postgres-user" + CreateProjectEnvContentHintUnion2TypePostgresHost CreateProjectEnvContentHintUnion2Type = "postgres-host" + CreateProjectEnvContentHintUnion2TypePostgresPassword CreateProjectEnvContentHintUnion2Type = "postgres-password" + CreateProjectEnvContentHintUnion2TypePostgresDatabase CreateProjectEnvContentHintUnion2Type = "postgres-database" + CreateProjectEnvContentHintUnion2TypePostgresURLNoSsl CreateProjectEnvContentHintUnion2Type = "postgres-url-no-ssl" + CreateProjectEnvContentHintUnion2TypeIntegrationStoreSecret CreateProjectEnvContentHintUnion2Type = "integration-store-secret" + CreateProjectEnvContentHintUnion2TypeFlagsConnectionString CreateProjectEnvContentHintUnion2Type = "flags-connection-string" ) type CreateProjectEnvContentHintUnion2 struct { @@ -1800,245 +1800,332 @@ type CreateProjectEnvContentHintUnion2 struct { Type CreateProjectEnvContentHintUnion2Type } -func CreateCreateProjectEnvContentHintUnion2CreateProjectEnvContentHintRedisURL2(createProjectEnvContentHintRedisURL2 CreateProjectEnvContentHintRedisURL2) CreateProjectEnvContentHintUnion2 { - typ := CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintRedisURL2 +func CreateCreateProjectEnvContentHintUnion2RedisURL(redisURL CreateProjectEnvContentHintRedisURL2) CreateProjectEnvContentHintUnion2 { + typ := CreateProjectEnvContentHintUnion2TypeRedisURL + + typStr := CreatedTypeRedisURL2(typ) + redisURL.Type = typStr return CreateProjectEnvContentHintUnion2{ - CreateProjectEnvContentHintRedisURL2: &createProjectEnvContentHintRedisURL2, + CreateProjectEnvContentHintRedisURL2: &redisURL, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion2CreateProjectEnvContentHintRedisRestAPIURL2(createProjectEnvContentHintRedisRestAPIURL2 CreateProjectEnvContentHintRedisRestAPIURL2) CreateProjectEnvContentHintUnion2 { - typ := CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintRedisRestAPIURL2 +func CreateCreateProjectEnvContentHintUnion2RedisRestAPIURL(redisRestAPIURL CreateProjectEnvContentHintRedisRestAPIURL2) CreateProjectEnvContentHintUnion2 { + typ := CreateProjectEnvContentHintUnion2TypeRedisRestAPIURL + + typStr := CreatedTypeRedisRestAPIURL2(typ) + redisRestAPIURL.Type = typStr return CreateProjectEnvContentHintUnion2{ - CreateProjectEnvContentHintRedisRestAPIURL2: &createProjectEnvContentHintRedisRestAPIURL2, + CreateProjectEnvContentHintRedisRestAPIURL2: &redisRestAPIURL, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion2CreateProjectEnvContentHintRedisRestAPIToken2(createProjectEnvContentHintRedisRestAPIToken2 CreateProjectEnvContentHintRedisRestAPIToken2) CreateProjectEnvContentHintUnion2 { - typ := CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintRedisRestAPIToken2 +func CreateCreateProjectEnvContentHintUnion2RedisRestAPIToken(redisRestAPIToken CreateProjectEnvContentHintRedisRestAPIToken2) CreateProjectEnvContentHintUnion2 { + typ := CreateProjectEnvContentHintUnion2TypeRedisRestAPIToken + + typStr := CreatedTypeRedisRestAPIToken2(typ) + redisRestAPIToken.Type = typStr return CreateProjectEnvContentHintUnion2{ - CreateProjectEnvContentHintRedisRestAPIToken2: &createProjectEnvContentHintRedisRestAPIToken2, + CreateProjectEnvContentHintRedisRestAPIToken2: &redisRestAPIToken, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion2CreateProjectEnvContentHintRedisRestAPIReadOnlyToken2(createProjectEnvContentHintRedisRestAPIReadOnlyToken2 CreateProjectEnvContentHintRedisRestAPIReadOnlyToken2) CreateProjectEnvContentHintUnion2 { - typ := CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintRedisRestAPIReadOnlyToken2 +func CreateCreateProjectEnvContentHintUnion2RedisRestAPIReadOnlyToken(redisRestAPIReadOnlyToken CreateProjectEnvContentHintRedisRestAPIReadOnlyToken2) CreateProjectEnvContentHintUnion2 { + typ := CreateProjectEnvContentHintUnion2TypeRedisRestAPIReadOnlyToken + + typStr := CreatedTypeRedisRestAPIReadOnlyToken2(typ) + redisRestAPIReadOnlyToken.Type = typStr return CreateProjectEnvContentHintUnion2{ - CreateProjectEnvContentHintRedisRestAPIReadOnlyToken2: &createProjectEnvContentHintRedisRestAPIReadOnlyToken2, + CreateProjectEnvContentHintRedisRestAPIReadOnlyToken2: &redisRestAPIReadOnlyToken, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion2CreateProjectEnvContentHintBlobReadWriteToken2(createProjectEnvContentHintBlobReadWriteToken2 CreateProjectEnvContentHintBlobReadWriteToken2) CreateProjectEnvContentHintUnion2 { - typ := CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintBlobReadWriteToken2 +func CreateCreateProjectEnvContentHintUnion2BlobReadWriteToken(blobReadWriteToken CreateProjectEnvContentHintBlobReadWriteToken2) CreateProjectEnvContentHintUnion2 { + typ := CreateProjectEnvContentHintUnion2TypeBlobReadWriteToken + + typStr := CreatedTypeBlobReadWriteToken2(typ) + blobReadWriteToken.Type = typStr return CreateProjectEnvContentHintUnion2{ - CreateProjectEnvContentHintBlobReadWriteToken2: &createProjectEnvContentHintBlobReadWriteToken2, + CreateProjectEnvContentHintBlobReadWriteToken2: &blobReadWriteToken, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion2CreateProjectEnvContentHintPostgresURL2(createProjectEnvContentHintPostgresURL2 CreateProjectEnvContentHintPostgresURL2) CreateProjectEnvContentHintUnion2 { - typ := CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresURL2 +func CreateCreateProjectEnvContentHintUnion2PostgresURL(postgresURL CreateProjectEnvContentHintPostgresURL2) CreateProjectEnvContentHintUnion2 { + typ := CreateProjectEnvContentHintUnion2TypePostgresURL + + typStr := CreatedTypePostgresURL2(typ) + postgresURL.Type = typStr return CreateProjectEnvContentHintUnion2{ - CreateProjectEnvContentHintPostgresURL2: &createProjectEnvContentHintPostgresURL2, + CreateProjectEnvContentHintPostgresURL2: &postgresURL, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion2CreateProjectEnvContentHintPostgresURLNonPooling2(createProjectEnvContentHintPostgresURLNonPooling2 CreateProjectEnvContentHintPostgresURLNonPooling2) CreateProjectEnvContentHintUnion2 { - typ := CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresURLNonPooling2 +func CreateCreateProjectEnvContentHintUnion2PostgresURLNonPooling(postgresURLNonPooling CreateProjectEnvContentHintPostgresURLNonPooling2) CreateProjectEnvContentHintUnion2 { + typ := CreateProjectEnvContentHintUnion2TypePostgresURLNonPooling + + typStr := CreatedTypePostgresURLNonPooling2(typ) + postgresURLNonPooling.Type = typStr return CreateProjectEnvContentHintUnion2{ - CreateProjectEnvContentHintPostgresURLNonPooling2: &createProjectEnvContentHintPostgresURLNonPooling2, + CreateProjectEnvContentHintPostgresURLNonPooling2: &postgresURLNonPooling, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion2CreateProjectEnvContentHintPostgresPrismaURL2(createProjectEnvContentHintPostgresPrismaURL2 CreateProjectEnvContentHintPostgresPrismaURL2) CreateProjectEnvContentHintUnion2 { - typ := CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresPrismaURL2 +func CreateCreateProjectEnvContentHintUnion2PostgresPrismaURL(postgresPrismaURL CreateProjectEnvContentHintPostgresPrismaURL2) CreateProjectEnvContentHintUnion2 { + typ := CreateProjectEnvContentHintUnion2TypePostgresPrismaURL + + typStr := CreatedTypePostgresPrismaURL2(typ) + postgresPrismaURL.Type = typStr return CreateProjectEnvContentHintUnion2{ - CreateProjectEnvContentHintPostgresPrismaURL2: &createProjectEnvContentHintPostgresPrismaURL2, + CreateProjectEnvContentHintPostgresPrismaURL2: &postgresPrismaURL, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion2CreateProjectEnvContentHintPostgresUser2(createProjectEnvContentHintPostgresUser2 CreateProjectEnvContentHintPostgresUser2) CreateProjectEnvContentHintUnion2 { - typ := CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresUser2 +func CreateCreateProjectEnvContentHintUnion2PostgresUser(postgresUser CreateProjectEnvContentHintPostgresUser2) CreateProjectEnvContentHintUnion2 { + typ := CreateProjectEnvContentHintUnion2TypePostgresUser + + typStr := CreatedTypePostgresUser2(typ) + postgresUser.Type = typStr return CreateProjectEnvContentHintUnion2{ - CreateProjectEnvContentHintPostgresUser2: &createProjectEnvContentHintPostgresUser2, + CreateProjectEnvContentHintPostgresUser2: &postgresUser, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion2CreateProjectEnvContentHintPostgresHost2(createProjectEnvContentHintPostgresHost2 CreateProjectEnvContentHintPostgresHost2) CreateProjectEnvContentHintUnion2 { - typ := CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresHost2 +func CreateCreateProjectEnvContentHintUnion2PostgresHost(postgresHost CreateProjectEnvContentHintPostgresHost2) CreateProjectEnvContentHintUnion2 { + typ := CreateProjectEnvContentHintUnion2TypePostgresHost + + typStr := CreatedTypePostgresHost2(typ) + postgresHost.Type = typStr return CreateProjectEnvContentHintUnion2{ - CreateProjectEnvContentHintPostgresHost2: &createProjectEnvContentHintPostgresHost2, + CreateProjectEnvContentHintPostgresHost2: &postgresHost, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion2CreateProjectEnvContentHintPostgresPassword2(createProjectEnvContentHintPostgresPassword2 CreateProjectEnvContentHintPostgresPassword2) CreateProjectEnvContentHintUnion2 { - typ := CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresPassword2 +func CreateCreateProjectEnvContentHintUnion2PostgresPassword(postgresPassword CreateProjectEnvContentHintPostgresPassword2) CreateProjectEnvContentHintUnion2 { + typ := CreateProjectEnvContentHintUnion2TypePostgresPassword + + typStr := CreatedTypePostgresPassword2(typ) + postgresPassword.Type = typStr return CreateProjectEnvContentHintUnion2{ - CreateProjectEnvContentHintPostgresPassword2: &createProjectEnvContentHintPostgresPassword2, + CreateProjectEnvContentHintPostgresPassword2: &postgresPassword, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion2CreateProjectEnvContentHintPostgresDatabase2(createProjectEnvContentHintPostgresDatabase2 CreateProjectEnvContentHintPostgresDatabase2) CreateProjectEnvContentHintUnion2 { - typ := CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresDatabase2 +func CreateCreateProjectEnvContentHintUnion2PostgresDatabase(postgresDatabase CreateProjectEnvContentHintPostgresDatabase2) CreateProjectEnvContentHintUnion2 { + typ := CreateProjectEnvContentHintUnion2TypePostgresDatabase + + typStr := CreatedTypePostgresDatabase2(typ) + postgresDatabase.Type = typStr return CreateProjectEnvContentHintUnion2{ - CreateProjectEnvContentHintPostgresDatabase2: &createProjectEnvContentHintPostgresDatabase2, + CreateProjectEnvContentHintPostgresDatabase2: &postgresDatabase, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion2CreateProjectEnvContentHintPostgresURLNoSsl2(createProjectEnvContentHintPostgresURLNoSsl2 CreateProjectEnvContentHintPostgresURLNoSsl2) CreateProjectEnvContentHintUnion2 { - typ := CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresURLNoSsl2 +func CreateCreateProjectEnvContentHintUnion2PostgresURLNoSsl(postgresURLNoSsl CreateProjectEnvContentHintPostgresURLNoSsl2) CreateProjectEnvContentHintUnion2 { + typ := CreateProjectEnvContentHintUnion2TypePostgresURLNoSsl + + typStr := CreatedTypePostgresURLNoSsl2(typ) + postgresURLNoSsl.Type = typStr return CreateProjectEnvContentHintUnion2{ - CreateProjectEnvContentHintPostgresURLNoSsl2: &createProjectEnvContentHintPostgresURLNoSsl2, + CreateProjectEnvContentHintPostgresURLNoSsl2: &postgresURLNoSsl, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion2CreateProjectEnvContentHintIntegrationStoreSecret2(createProjectEnvContentHintIntegrationStoreSecret2 CreateProjectEnvContentHintIntegrationStoreSecret2) CreateProjectEnvContentHintUnion2 { - typ := CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintIntegrationStoreSecret2 +func CreateCreateProjectEnvContentHintUnion2IntegrationStoreSecret(integrationStoreSecret CreateProjectEnvContentHintIntegrationStoreSecret2) CreateProjectEnvContentHintUnion2 { + typ := CreateProjectEnvContentHintUnion2TypeIntegrationStoreSecret + + typStr := CreatedTypeIntegrationStoreSecret2(typ) + integrationStoreSecret.Type = typStr return CreateProjectEnvContentHintUnion2{ - CreateProjectEnvContentHintIntegrationStoreSecret2: &createProjectEnvContentHintIntegrationStoreSecret2, + CreateProjectEnvContentHintIntegrationStoreSecret2: &integrationStoreSecret, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion2CreateProjectEnvContentHintFlagsConnectionString2(createProjectEnvContentHintFlagsConnectionString2 CreateProjectEnvContentHintFlagsConnectionString2) CreateProjectEnvContentHintUnion2 { - typ := CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintFlagsConnectionString2 +func CreateCreateProjectEnvContentHintUnion2FlagsConnectionString(flagsConnectionString CreateProjectEnvContentHintFlagsConnectionString2) CreateProjectEnvContentHintUnion2 { + typ := CreateProjectEnvContentHintUnion2TypeFlagsConnectionString + + typStr := CreatedTypeFlagsConnectionString2(typ) + flagsConnectionString.Type = typStr return CreateProjectEnvContentHintUnion2{ - CreateProjectEnvContentHintFlagsConnectionString2: &createProjectEnvContentHintFlagsConnectionString2, + CreateProjectEnvContentHintFlagsConnectionString2: &flagsConnectionString, Type: typ, } } func (u *CreateProjectEnvContentHintUnion2) UnmarshalJSON(data []byte) error { - var createProjectEnvContentHintIntegrationStoreSecret2 CreateProjectEnvContentHintIntegrationStoreSecret2 = CreateProjectEnvContentHintIntegrationStoreSecret2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintIntegrationStoreSecret2, "", true, nil); err == nil { - u.CreateProjectEnvContentHintIntegrationStoreSecret2 = &createProjectEnvContentHintIntegrationStoreSecret2 - u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintIntegrationStoreSecret2 - return nil + type discriminator struct { + Type string `json:"type"` } - var createProjectEnvContentHintRedisURL2 CreateProjectEnvContentHintRedisURL2 = CreateProjectEnvContentHintRedisURL2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisURL2, "", true, nil); err == nil { - u.CreateProjectEnvContentHintRedisURL2 = &createProjectEnvContentHintRedisURL2 - u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintRedisURL2 - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var createProjectEnvContentHintRedisRestAPIURL2 CreateProjectEnvContentHintRedisRestAPIURL2 = CreateProjectEnvContentHintRedisRestAPIURL2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIURL2, "", true, nil); err == nil { - u.CreateProjectEnvContentHintRedisRestAPIURL2 = &createProjectEnvContentHintRedisRestAPIURL2 - u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintRedisRestAPIURL2 + switch dis.Type { + case "redis-url": + createProjectEnvContentHintRedisURL2 := new(CreateProjectEnvContentHintRedisURL2) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisURL2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-url) type CreateProjectEnvContentHintRedisURL2 within CreateProjectEnvContentHintUnion2: %w", string(data), err) + } + + u.CreateProjectEnvContentHintRedisURL2 = createProjectEnvContentHintRedisURL2 + u.Type = CreateProjectEnvContentHintUnion2TypeRedisURL return nil - } + case "redis-rest-api-url": + createProjectEnvContentHintRedisRestAPIURL2 := new(CreateProjectEnvContentHintRedisRestAPIURL2) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIURL2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-url) type CreateProjectEnvContentHintRedisRestAPIURL2 within CreateProjectEnvContentHintUnion2: %w", string(data), err) + } - var createProjectEnvContentHintRedisRestAPIToken2 CreateProjectEnvContentHintRedisRestAPIToken2 = CreateProjectEnvContentHintRedisRestAPIToken2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIToken2, "", true, nil); err == nil { - u.CreateProjectEnvContentHintRedisRestAPIToken2 = &createProjectEnvContentHintRedisRestAPIToken2 - u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintRedisRestAPIToken2 + u.CreateProjectEnvContentHintRedisRestAPIURL2 = createProjectEnvContentHintRedisRestAPIURL2 + u.Type = CreateProjectEnvContentHintUnion2TypeRedisRestAPIURL return nil - } + case "redis-rest-api-token": + createProjectEnvContentHintRedisRestAPIToken2 := new(CreateProjectEnvContentHintRedisRestAPIToken2) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIToken2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-token) type CreateProjectEnvContentHintRedisRestAPIToken2 within CreateProjectEnvContentHintUnion2: %w", string(data), err) + } - var createProjectEnvContentHintRedisRestAPIReadOnlyToken2 CreateProjectEnvContentHintRedisRestAPIReadOnlyToken2 = CreateProjectEnvContentHintRedisRestAPIReadOnlyToken2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIReadOnlyToken2, "", true, nil); err == nil { - u.CreateProjectEnvContentHintRedisRestAPIReadOnlyToken2 = &createProjectEnvContentHintRedisRestAPIReadOnlyToken2 - u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintRedisRestAPIReadOnlyToken2 + u.CreateProjectEnvContentHintRedisRestAPIToken2 = createProjectEnvContentHintRedisRestAPIToken2 + u.Type = CreateProjectEnvContentHintUnion2TypeRedisRestAPIToken return nil - } + case "redis-rest-api-read-only-token": + createProjectEnvContentHintRedisRestAPIReadOnlyToken2 := new(CreateProjectEnvContentHintRedisRestAPIReadOnlyToken2) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIReadOnlyToken2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-read-only-token) type CreateProjectEnvContentHintRedisRestAPIReadOnlyToken2 within CreateProjectEnvContentHintUnion2: %w", string(data), err) + } - var createProjectEnvContentHintBlobReadWriteToken2 CreateProjectEnvContentHintBlobReadWriteToken2 = CreateProjectEnvContentHintBlobReadWriteToken2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintBlobReadWriteToken2, "", true, nil); err == nil { - u.CreateProjectEnvContentHintBlobReadWriteToken2 = &createProjectEnvContentHintBlobReadWriteToken2 - u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintBlobReadWriteToken2 + u.CreateProjectEnvContentHintRedisRestAPIReadOnlyToken2 = createProjectEnvContentHintRedisRestAPIReadOnlyToken2 + u.Type = CreateProjectEnvContentHintUnion2TypeRedisRestAPIReadOnlyToken return nil - } + case "blob-read-write-token": + createProjectEnvContentHintBlobReadWriteToken2 := new(CreateProjectEnvContentHintBlobReadWriteToken2) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintBlobReadWriteToken2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == blob-read-write-token) type CreateProjectEnvContentHintBlobReadWriteToken2 within CreateProjectEnvContentHintUnion2: %w", string(data), err) + } - var createProjectEnvContentHintPostgresURL2 CreateProjectEnvContentHintPostgresURL2 = CreateProjectEnvContentHintPostgresURL2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURL2, "", true, nil); err == nil { - u.CreateProjectEnvContentHintPostgresURL2 = &createProjectEnvContentHintPostgresURL2 - u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresURL2 + u.CreateProjectEnvContentHintBlobReadWriteToken2 = createProjectEnvContentHintBlobReadWriteToken2 + u.Type = CreateProjectEnvContentHintUnion2TypeBlobReadWriteToken return nil - } + case "postgres-url": + createProjectEnvContentHintPostgresURL2 := new(CreateProjectEnvContentHintPostgresURL2) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURL2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url) type CreateProjectEnvContentHintPostgresURL2 within CreateProjectEnvContentHintUnion2: %w", string(data), err) + } - var createProjectEnvContentHintPostgresURLNonPooling2 CreateProjectEnvContentHintPostgresURLNonPooling2 = CreateProjectEnvContentHintPostgresURLNonPooling2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURLNonPooling2, "", true, nil); err == nil { - u.CreateProjectEnvContentHintPostgresURLNonPooling2 = &createProjectEnvContentHintPostgresURLNonPooling2 - u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresURLNonPooling2 + u.CreateProjectEnvContentHintPostgresURL2 = createProjectEnvContentHintPostgresURL2 + u.Type = CreateProjectEnvContentHintUnion2TypePostgresURL return nil - } + case "postgres-url-non-pooling": + createProjectEnvContentHintPostgresURLNonPooling2 := new(CreateProjectEnvContentHintPostgresURLNonPooling2) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURLNonPooling2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-non-pooling) type CreateProjectEnvContentHintPostgresURLNonPooling2 within CreateProjectEnvContentHintUnion2: %w", string(data), err) + } - var createProjectEnvContentHintPostgresPrismaURL2 CreateProjectEnvContentHintPostgresPrismaURL2 = CreateProjectEnvContentHintPostgresPrismaURL2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresPrismaURL2, "", true, nil); err == nil { - u.CreateProjectEnvContentHintPostgresPrismaURL2 = &createProjectEnvContentHintPostgresPrismaURL2 - u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresPrismaURL2 + u.CreateProjectEnvContentHintPostgresURLNonPooling2 = createProjectEnvContentHintPostgresURLNonPooling2 + u.Type = CreateProjectEnvContentHintUnion2TypePostgresURLNonPooling return nil - } + case "postgres-prisma-url": + createProjectEnvContentHintPostgresPrismaURL2 := new(CreateProjectEnvContentHintPostgresPrismaURL2) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresPrismaURL2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-prisma-url) type CreateProjectEnvContentHintPostgresPrismaURL2 within CreateProjectEnvContentHintUnion2: %w", string(data), err) + } - var createProjectEnvContentHintPostgresUser2 CreateProjectEnvContentHintPostgresUser2 = CreateProjectEnvContentHintPostgresUser2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresUser2, "", true, nil); err == nil { - u.CreateProjectEnvContentHintPostgresUser2 = &createProjectEnvContentHintPostgresUser2 - u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresUser2 + u.CreateProjectEnvContentHintPostgresPrismaURL2 = createProjectEnvContentHintPostgresPrismaURL2 + u.Type = CreateProjectEnvContentHintUnion2TypePostgresPrismaURL return nil - } + case "postgres-user": + createProjectEnvContentHintPostgresUser2 := new(CreateProjectEnvContentHintPostgresUser2) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresUser2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-user) type CreateProjectEnvContentHintPostgresUser2 within CreateProjectEnvContentHintUnion2: %w", string(data), err) + } - var createProjectEnvContentHintPostgresHost2 CreateProjectEnvContentHintPostgresHost2 = CreateProjectEnvContentHintPostgresHost2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresHost2, "", true, nil); err == nil { - u.CreateProjectEnvContentHintPostgresHost2 = &createProjectEnvContentHintPostgresHost2 - u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresHost2 + u.CreateProjectEnvContentHintPostgresUser2 = createProjectEnvContentHintPostgresUser2 + u.Type = CreateProjectEnvContentHintUnion2TypePostgresUser return nil - } + case "postgres-host": + createProjectEnvContentHintPostgresHost2 := new(CreateProjectEnvContentHintPostgresHost2) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresHost2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-host) type CreateProjectEnvContentHintPostgresHost2 within CreateProjectEnvContentHintUnion2: %w", string(data), err) + } - var createProjectEnvContentHintPostgresPassword2 CreateProjectEnvContentHintPostgresPassword2 = CreateProjectEnvContentHintPostgresPassword2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresPassword2, "", true, nil); err == nil { - u.CreateProjectEnvContentHintPostgresPassword2 = &createProjectEnvContentHintPostgresPassword2 - u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresPassword2 + u.CreateProjectEnvContentHintPostgresHost2 = createProjectEnvContentHintPostgresHost2 + u.Type = CreateProjectEnvContentHintUnion2TypePostgresHost return nil - } + case "postgres-password": + createProjectEnvContentHintPostgresPassword2 := new(CreateProjectEnvContentHintPostgresPassword2) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresPassword2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-password) type CreateProjectEnvContentHintPostgresPassword2 within CreateProjectEnvContentHintUnion2: %w", string(data), err) + } - var createProjectEnvContentHintPostgresDatabase2 CreateProjectEnvContentHintPostgresDatabase2 = CreateProjectEnvContentHintPostgresDatabase2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresDatabase2, "", true, nil); err == nil { - u.CreateProjectEnvContentHintPostgresDatabase2 = &createProjectEnvContentHintPostgresDatabase2 - u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresDatabase2 + u.CreateProjectEnvContentHintPostgresPassword2 = createProjectEnvContentHintPostgresPassword2 + u.Type = CreateProjectEnvContentHintUnion2TypePostgresPassword return nil - } + case "postgres-database": + createProjectEnvContentHintPostgresDatabase2 := new(CreateProjectEnvContentHintPostgresDatabase2) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresDatabase2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-database) type CreateProjectEnvContentHintPostgresDatabase2 within CreateProjectEnvContentHintUnion2: %w", string(data), err) + } - var createProjectEnvContentHintPostgresURLNoSsl2 CreateProjectEnvContentHintPostgresURLNoSsl2 = CreateProjectEnvContentHintPostgresURLNoSsl2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURLNoSsl2, "", true, nil); err == nil { - u.CreateProjectEnvContentHintPostgresURLNoSsl2 = &createProjectEnvContentHintPostgresURLNoSsl2 - u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresURLNoSsl2 + u.CreateProjectEnvContentHintPostgresDatabase2 = createProjectEnvContentHintPostgresDatabase2 + u.Type = CreateProjectEnvContentHintUnion2TypePostgresDatabase return nil - } + case "postgres-url-no-ssl": + createProjectEnvContentHintPostgresURLNoSsl2 := new(CreateProjectEnvContentHintPostgresURLNoSsl2) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURLNoSsl2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-no-ssl) type CreateProjectEnvContentHintPostgresURLNoSsl2 within CreateProjectEnvContentHintUnion2: %w", string(data), err) + } + + u.CreateProjectEnvContentHintPostgresURLNoSsl2 = createProjectEnvContentHintPostgresURLNoSsl2 + u.Type = CreateProjectEnvContentHintUnion2TypePostgresURLNoSsl + return nil + case "integration-store-secret": + createProjectEnvContentHintIntegrationStoreSecret2 := new(CreateProjectEnvContentHintIntegrationStoreSecret2) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintIntegrationStoreSecret2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == integration-store-secret) type CreateProjectEnvContentHintIntegrationStoreSecret2 within CreateProjectEnvContentHintUnion2: %w", string(data), err) + } + + u.CreateProjectEnvContentHintIntegrationStoreSecret2 = createProjectEnvContentHintIntegrationStoreSecret2 + u.Type = CreateProjectEnvContentHintUnion2TypeIntegrationStoreSecret + return nil + case "flags-connection-string": + createProjectEnvContentHintFlagsConnectionString2 := new(CreateProjectEnvContentHintFlagsConnectionString2) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintFlagsConnectionString2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == flags-connection-string) type CreateProjectEnvContentHintFlagsConnectionString2 within CreateProjectEnvContentHintUnion2: %w", string(data), err) + } - var createProjectEnvContentHintFlagsConnectionString2 CreateProjectEnvContentHintFlagsConnectionString2 = CreateProjectEnvContentHintFlagsConnectionString2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintFlagsConnectionString2, "", true, nil); err == nil { - u.CreateProjectEnvContentHintFlagsConnectionString2 = &createProjectEnvContentHintFlagsConnectionString2 - u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintFlagsConnectionString2 + u.CreateProjectEnvContentHintFlagsConnectionString2 = createProjectEnvContentHintFlagsConnectionString2 + u.Type = CreateProjectEnvContentHintUnion2TypeFlagsConnectionString return nil } @@ -2320,6 +2407,111 @@ func (o *CreateProjectEnvCreated2) GetContentHint() *CreateProjectEnvContentHint return o.ContentHint } +func (o *CreateProjectEnvCreated2) GetContentHintRedisURL() *CreateProjectEnvContentHintRedisURL2 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintRedisURL2 + } + return nil +} + +func (o *CreateProjectEnvCreated2) GetContentHintRedisRestAPIURL() *CreateProjectEnvContentHintRedisRestAPIURL2 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintRedisRestAPIURL2 + } + return nil +} + +func (o *CreateProjectEnvCreated2) GetContentHintRedisRestAPIToken() *CreateProjectEnvContentHintRedisRestAPIToken2 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintRedisRestAPIToken2 + } + return nil +} + +func (o *CreateProjectEnvCreated2) GetContentHintRedisRestAPIReadOnlyToken() *CreateProjectEnvContentHintRedisRestAPIReadOnlyToken2 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintRedisRestAPIReadOnlyToken2 + } + return nil +} + +func (o *CreateProjectEnvCreated2) GetContentHintBlobReadWriteToken() *CreateProjectEnvContentHintBlobReadWriteToken2 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintBlobReadWriteToken2 + } + return nil +} + +func (o *CreateProjectEnvCreated2) GetContentHintPostgresURL() *CreateProjectEnvContentHintPostgresURL2 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintPostgresURL2 + } + return nil +} + +func (o *CreateProjectEnvCreated2) GetContentHintPostgresURLNonPooling() *CreateProjectEnvContentHintPostgresURLNonPooling2 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintPostgresURLNonPooling2 + } + return nil +} + +func (o *CreateProjectEnvCreated2) GetContentHintPostgresPrismaURL() *CreateProjectEnvContentHintPostgresPrismaURL2 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintPostgresPrismaURL2 + } + return nil +} + +func (o *CreateProjectEnvCreated2) GetContentHintPostgresUser() *CreateProjectEnvContentHintPostgresUser2 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintPostgresUser2 + } + return nil +} + +func (o *CreateProjectEnvCreated2) GetContentHintPostgresHost() *CreateProjectEnvContentHintPostgresHost2 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintPostgresHost2 + } + return nil +} + +func (o *CreateProjectEnvCreated2) GetContentHintPostgresPassword() *CreateProjectEnvContentHintPostgresPassword2 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintPostgresPassword2 + } + return nil +} + +func (o *CreateProjectEnvCreated2) GetContentHintPostgresDatabase() *CreateProjectEnvContentHintPostgresDatabase2 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintPostgresDatabase2 + } + return nil +} + +func (o *CreateProjectEnvCreated2) GetContentHintPostgresURLNoSsl() *CreateProjectEnvContentHintPostgresURLNoSsl2 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintPostgresURLNoSsl2 + } + return nil +} + +func (o *CreateProjectEnvCreated2) GetContentHintIntegrationStoreSecret() *CreateProjectEnvContentHintIntegrationStoreSecret2 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintIntegrationStoreSecret2 + } + return nil +} + +func (o *CreateProjectEnvCreated2) GetContentHintFlagsConnectionString() *CreateProjectEnvContentHintFlagsConnectionString2 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintFlagsConnectionString2 + } + return nil +} + func (o *CreateProjectEnvCreated2) GetInternalContentHint() *CreateProjectEnvInternalContentHint2 { if o == nil { return nil @@ -3326,21 +3518,21 @@ func (o *CreateProjectEnvContentHintRedisURL1) GetStoreID() string { type CreateProjectEnvContentHintUnion1Type string const ( - CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintRedisURL1 CreateProjectEnvContentHintUnion1Type = "createProjectEnv_contentHint_RedisURL_1" - CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintRedisRestAPIURL1 CreateProjectEnvContentHintUnion1Type = "createProjectEnv_contentHint_RedisRestAPIURL_1" - CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintRedisRestAPIToken1 CreateProjectEnvContentHintUnion1Type = "createProjectEnv_contentHint_RedisRestAPIToken_1" - CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintRedisRestAPIReadOnlyToken1 CreateProjectEnvContentHintUnion1Type = "createProjectEnv_contentHint_RedisRestAPIReadOnlyToken_1" - CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintBlobReadWriteToken1 CreateProjectEnvContentHintUnion1Type = "createProjectEnv_contentHint_BlobReadWriteToken_1" - CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresURL1 CreateProjectEnvContentHintUnion1Type = "createProjectEnv_contentHint_PostgresURL_1" - CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresURLNonPooling1 CreateProjectEnvContentHintUnion1Type = "createProjectEnv_contentHint_PostgresURLNonPooling_1" - CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresPrismaURL1 CreateProjectEnvContentHintUnion1Type = "createProjectEnv_contentHint_PostgresPrismaURL_1" - CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresUser1 CreateProjectEnvContentHintUnion1Type = "createProjectEnv_contentHint_PostgresUser_1" - CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresHost1 CreateProjectEnvContentHintUnion1Type = "createProjectEnv_contentHint_PostgresHost_1" - CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresPassword1 CreateProjectEnvContentHintUnion1Type = "createProjectEnv_contentHint_PostgresPassword_1" - CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresDatabase1 CreateProjectEnvContentHintUnion1Type = "createProjectEnv_contentHint_PostgresDatabase_1" - CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresURLNoSsl1 CreateProjectEnvContentHintUnion1Type = "createProjectEnv_contentHint_PostgresURLNoSsl_1" - CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintIntegrationStoreSecret1 CreateProjectEnvContentHintUnion1Type = "createProjectEnv_contentHint_IntegrationStoreSecret_1" - CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintFlagsConnectionString1 CreateProjectEnvContentHintUnion1Type = "createProjectEnv_contentHint_FlagsConnectionString_1" + CreateProjectEnvContentHintUnion1TypeRedisURL CreateProjectEnvContentHintUnion1Type = "redis-url" + CreateProjectEnvContentHintUnion1TypeRedisRestAPIURL CreateProjectEnvContentHintUnion1Type = "redis-rest-api-url" + CreateProjectEnvContentHintUnion1TypeRedisRestAPIToken CreateProjectEnvContentHintUnion1Type = "redis-rest-api-token" + CreateProjectEnvContentHintUnion1TypeRedisRestAPIReadOnlyToken CreateProjectEnvContentHintUnion1Type = "redis-rest-api-read-only-token" + CreateProjectEnvContentHintUnion1TypeBlobReadWriteToken CreateProjectEnvContentHintUnion1Type = "blob-read-write-token" + CreateProjectEnvContentHintUnion1TypePostgresURL CreateProjectEnvContentHintUnion1Type = "postgres-url" + CreateProjectEnvContentHintUnion1TypePostgresURLNonPooling CreateProjectEnvContentHintUnion1Type = "postgres-url-non-pooling" + CreateProjectEnvContentHintUnion1TypePostgresPrismaURL CreateProjectEnvContentHintUnion1Type = "postgres-prisma-url" + CreateProjectEnvContentHintUnion1TypePostgresUser CreateProjectEnvContentHintUnion1Type = "postgres-user" + CreateProjectEnvContentHintUnion1TypePostgresHost CreateProjectEnvContentHintUnion1Type = "postgres-host" + CreateProjectEnvContentHintUnion1TypePostgresPassword CreateProjectEnvContentHintUnion1Type = "postgres-password" + CreateProjectEnvContentHintUnion1TypePostgresDatabase CreateProjectEnvContentHintUnion1Type = "postgres-database" + CreateProjectEnvContentHintUnion1TypePostgresURLNoSsl CreateProjectEnvContentHintUnion1Type = "postgres-url-no-ssl" + CreateProjectEnvContentHintUnion1TypeIntegrationStoreSecret CreateProjectEnvContentHintUnion1Type = "integration-store-secret" + CreateProjectEnvContentHintUnion1TypeFlagsConnectionString CreateProjectEnvContentHintUnion1Type = "flags-connection-string" ) type CreateProjectEnvContentHintUnion1 struct { @@ -3363,245 +3555,332 @@ type CreateProjectEnvContentHintUnion1 struct { Type CreateProjectEnvContentHintUnion1Type } -func CreateCreateProjectEnvContentHintUnion1CreateProjectEnvContentHintRedisURL1(createProjectEnvContentHintRedisURL1 CreateProjectEnvContentHintRedisURL1) CreateProjectEnvContentHintUnion1 { - typ := CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintRedisURL1 +func CreateCreateProjectEnvContentHintUnion1RedisURL(redisURL CreateProjectEnvContentHintRedisURL1) CreateProjectEnvContentHintUnion1 { + typ := CreateProjectEnvContentHintUnion1TypeRedisURL + + typStr := CreatedTypeRedisURL1(typ) + redisURL.Type = typStr return CreateProjectEnvContentHintUnion1{ - CreateProjectEnvContentHintRedisURL1: &createProjectEnvContentHintRedisURL1, + CreateProjectEnvContentHintRedisURL1: &redisURL, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion1CreateProjectEnvContentHintRedisRestAPIURL1(createProjectEnvContentHintRedisRestAPIURL1 CreateProjectEnvContentHintRedisRestAPIURL1) CreateProjectEnvContentHintUnion1 { - typ := CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintRedisRestAPIURL1 +func CreateCreateProjectEnvContentHintUnion1RedisRestAPIURL(redisRestAPIURL CreateProjectEnvContentHintRedisRestAPIURL1) CreateProjectEnvContentHintUnion1 { + typ := CreateProjectEnvContentHintUnion1TypeRedisRestAPIURL + + typStr := CreatedTypeRedisRestAPIURL1(typ) + redisRestAPIURL.Type = typStr return CreateProjectEnvContentHintUnion1{ - CreateProjectEnvContentHintRedisRestAPIURL1: &createProjectEnvContentHintRedisRestAPIURL1, + CreateProjectEnvContentHintRedisRestAPIURL1: &redisRestAPIURL, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion1CreateProjectEnvContentHintRedisRestAPIToken1(createProjectEnvContentHintRedisRestAPIToken1 CreateProjectEnvContentHintRedisRestAPIToken1) CreateProjectEnvContentHintUnion1 { - typ := CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintRedisRestAPIToken1 +func CreateCreateProjectEnvContentHintUnion1RedisRestAPIToken(redisRestAPIToken CreateProjectEnvContentHintRedisRestAPIToken1) CreateProjectEnvContentHintUnion1 { + typ := CreateProjectEnvContentHintUnion1TypeRedisRestAPIToken + + typStr := CreatedTypeRedisRestAPIToken1(typ) + redisRestAPIToken.Type = typStr return CreateProjectEnvContentHintUnion1{ - CreateProjectEnvContentHintRedisRestAPIToken1: &createProjectEnvContentHintRedisRestAPIToken1, + CreateProjectEnvContentHintRedisRestAPIToken1: &redisRestAPIToken, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion1CreateProjectEnvContentHintRedisRestAPIReadOnlyToken1(createProjectEnvContentHintRedisRestAPIReadOnlyToken1 CreateProjectEnvContentHintRedisRestAPIReadOnlyToken1) CreateProjectEnvContentHintUnion1 { - typ := CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintRedisRestAPIReadOnlyToken1 +func CreateCreateProjectEnvContentHintUnion1RedisRestAPIReadOnlyToken(redisRestAPIReadOnlyToken CreateProjectEnvContentHintRedisRestAPIReadOnlyToken1) CreateProjectEnvContentHintUnion1 { + typ := CreateProjectEnvContentHintUnion1TypeRedisRestAPIReadOnlyToken + + typStr := CreatedTypeRedisRestAPIReadOnlyToken1(typ) + redisRestAPIReadOnlyToken.Type = typStr return CreateProjectEnvContentHintUnion1{ - CreateProjectEnvContentHintRedisRestAPIReadOnlyToken1: &createProjectEnvContentHintRedisRestAPIReadOnlyToken1, + CreateProjectEnvContentHintRedisRestAPIReadOnlyToken1: &redisRestAPIReadOnlyToken, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion1CreateProjectEnvContentHintBlobReadWriteToken1(createProjectEnvContentHintBlobReadWriteToken1 CreateProjectEnvContentHintBlobReadWriteToken1) CreateProjectEnvContentHintUnion1 { - typ := CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintBlobReadWriteToken1 +func CreateCreateProjectEnvContentHintUnion1BlobReadWriteToken(blobReadWriteToken CreateProjectEnvContentHintBlobReadWriteToken1) CreateProjectEnvContentHintUnion1 { + typ := CreateProjectEnvContentHintUnion1TypeBlobReadWriteToken + + typStr := CreatedTypeBlobReadWriteToken1(typ) + blobReadWriteToken.Type = typStr return CreateProjectEnvContentHintUnion1{ - CreateProjectEnvContentHintBlobReadWriteToken1: &createProjectEnvContentHintBlobReadWriteToken1, + CreateProjectEnvContentHintBlobReadWriteToken1: &blobReadWriteToken, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion1CreateProjectEnvContentHintPostgresURL1(createProjectEnvContentHintPostgresURL1 CreateProjectEnvContentHintPostgresURL1) CreateProjectEnvContentHintUnion1 { - typ := CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresURL1 +func CreateCreateProjectEnvContentHintUnion1PostgresURL(postgresURL CreateProjectEnvContentHintPostgresURL1) CreateProjectEnvContentHintUnion1 { + typ := CreateProjectEnvContentHintUnion1TypePostgresURL + + typStr := CreatedTypePostgresURL1(typ) + postgresURL.Type = typStr return CreateProjectEnvContentHintUnion1{ - CreateProjectEnvContentHintPostgresURL1: &createProjectEnvContentHintPostgresURL1, + CreateProjectEnvContentHintPostgresURL1: &postgresURL, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion1CreateProjectEnvContentHintPostgresURLNonPooling1(createProjectEnvContentHintPostgresURLNonPooling1 CreateProjectEnvContentHintPostgresURLNonPooling1) CreateProjectEnvContentHintUnion1 { - typ := CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresURLNonPooling1 +func CreateCreateProjectEnvContentHintUnion1PostgresURLNonPooling(postgresURLNonPooling CreateProjectEnvContentHintPostgresURLNonPooling1) CreateProjectEnvContentHintUnion1 { + typ := CreateProjectEnvContentHintUnion1TypePostgresURLNonPooling + + typStr := CreatedTypePostgresURLNonPooling1(typ) + postgresURLNonPooling.Type = typStr return CreateProjectEnvContentHintUnion1{ - CreateProjectEnvContentHintPostgresURLNonPooling1: &createProjectEnvContentHintPostgresURLNonPooling1, + CreateProjectEnvContentHintPostgresURLNonPooling1: &postgresURLNonPooling, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion1CreateProjectEnvContentHintPostgresPrismaURL1(createProjectEnvContentHintPostgresPrismaURL1 CreateProjectEnvContentHintPostgresPrismaURL1) CreateProjectEnvContentHintUnion1 { - typ := CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresPrismaURL1 +func CreateCreateProjectEnvContentHintUnion1PostgresPrismaURL(postgresPrismaURL CreateProjectEnvContentHintPostgresPrismaURL1) CreateProjectEnvContentHintUnion1 { + typ := CreateProjectEnvContentHintUnion1TypePostgresPrismaURL + + typStr := CreatedTypePostgresPrismaURL1(typ) + postgresPrismaURL.Type = typStr return CreateProjectEnvContentHintUnion1{ - CreateProjectEnvContentHintPostgresPrismaURL1: &createProjectEnvContentHintPostgresPrismaURL1, + CreateProjectEnvContentHintPostgresPrismaURL1: &postgresPrismaURL, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion1CreateProjectEnvContentHintPostgresUser1(createProjectEnvContentHintPostgresUser1 CreateProjectEnvContentHintPostgresUser1) CreateProjectEnvContentHintUnion1 { - typ := CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresUser1 +func CreateCreateProjectEnvContentHintUnion1PostgresUser(postgresUser CreateProjectEnvContentHintPostgresUser1) CreateProjectEnvContentHintUnion1 { + typ := CreateProjectEnvContentHintUnion1TypePostgresUser + + typStr := CreatedTypePostgresUser1(typ) + postgresUser.Type = typStr return CreateProjectEnvContentHintUnion1{ - CreateProjectEnvContentHintPostgresUser1: &createProjectEnvContentHintPostgresUser1, + CreateProjectEnvContentHintPostgresUser1: &postgresUser, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion1CreateProjectEnvContentHintPostgresHost1(createProjectEnvContentHintPostgresHost1 CreateProjectEnvContentHintPostgresHost1) CreateProjectEnvContentHintUnion1 { - typ := CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresHost1 +func CreateCreateProjectEnvContentHintUnion1PostgresHost(postgresHost CreateProjectEnvContentHintPostgresHost1) CreateProjectEnvContentHintUnion1 { + typ := CreateProjectEnvContentHintUnion1TypePostgresHost + + typStr := CreatedTypePostgresHost1(typ) + postgresHost.Type = typStr return CreateProjectEnvContentHintUnion1{ - CreateProjectEnvContentHintPostgresHost1: &createProjectEnvContentHintPostgresHost1, + CreateProjectEnvContentHintPostgresHost1: &postgresHost, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion1CreateProjectEnvContentHintPostgresPassword1(createProjectEnvContentHintPostgresPassword1 CreateProjectEnvContentHintPostgresPassword1) CreateProjectEnvContentHintUnion1 { - typ := CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresPassword1 +func CreateCreateProjectEnvContentHintUnion1PostgresPassword(postgresPassword CreateProjectEnvContentHintPostgresPassword1) CreateProjectEnvContentHintUnion1 { + typ := CreateProjectEnvContentHintUnion1TypePostgresPassword + + typStr := CreatedTypePostgresPassword1(typ) + postgresPassword.Type = typStr return CreateProjectEnvContentHintUnion1{ - CreateProjectEnvContentHintPostgresPassword1: &createProjectEnvContentHintPostgresPassword1, + CreateProjectEnvContentHintPostgresPassword1: &postgresPassword, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion1CreateProjectEnvContentHintPostgresDatabase1(createProjectEnvContentHintPostgresDatabase1 CreateProjectEnvContentHintPostgresDatabase1) CreateProjectEnvContentHintUnion1 { - typ := CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresDatabase1 +func CreateCreateProjectEnvContentHintUnion1PostgresDatabase(postgresDatabase CreateProjectEnvContentHintPostgresDatabase1) CreateProjectEnvContentHintUnion1 { + typ := CreateProjectEnvContentHintUnion1TypePostgresDatabase + + typStr := CreatedTypePostgresDatabase1(typ) + postgresDatabase.Type = typStr return CreateProjectEnvContentHintUnion1{ - CreateProjectEnvContentHintPostgresDatabase1: &createProjectEnvContentHintPostgresDatabase1, + CreateProjectEnvContentHintPostgresDatabase1: &postgresDatabase, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion1CreateProjectEnvContentHintPostgresURLNoSsl1(createProjectEnvContentHintPostgresURLNoSsl1 CreateProjectEnvContentHintPostgresURLNoSsl1) CreateProjectEnvContentHintUnion1 { - typ := CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresURLNoSsl1 +func CreateCreateProjectEnvContentHintUnion1PostgresURLNoSsl(postgresURLNoSsl CreateProjectEnvContentHintPostgresURLNoSsl1) CreateProjectEnvContentHintUnion1 { + typ := CreateProjectEnvContentHintUnion1TypePostgresURLNoSsl + + typStr := CreatedTypePostgresURLNoSsl1(typ) + postgresURLNoSsl.Type = typStr return CreateProjectEnvContentHintUnion1{ - CreateProjectEnvContentHintPostgresURLNoSsl1: &createProjectEnvContentHintPostgresURLNoSsl1, + CreateProjectEnvContentHintPostgresURLNoSsl1: &postgresURLNoSsl, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion1CreateProjectEnvContentHintIntegrationStoreSecret1(createProjectEnvContentHintIntegrationStoreSecret1 CreateProjectEnvContentHintIntegrationStoreSecret1) CreateProjectEnvContentHintUnion1 { - typ := CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintIntegrationStoreSecret1 +func CreateCreateProjectEnvContentHintUnion1IntegrationStoreSecret(integrationStoreSecret CreateProjectEnvContentHintIntegrationStoreSecret1) CreateProjectEnvContentHintUnion1 { + typ := CreateProjectEnvContentHintUnion1TypeIntegrationStoreSecret + + typStr := CreatedTypeIntegrationStoreSecret1(typ) + integrationStoreSecret.Type = typStr return CreateProjectEnvContentHintUnion1{ - CreateProjectEnvContentHintIntegrationStoreSecret1: &createProjectEnvContentHintIntegrationStoreSecret1, + CreateProjectEnvContentHintIntegrationStoreSecret1: &integrationStoreSecret, Type: typ, } } -func CreateCreateProjectEnvContentHintUnion1CreateProjectEnvContentHintFlagsConnectionString1(createProjectEnvContentHintFlagsConnectionString1 CreateProjectEnvContentHintFlagsConnectionString1) CreateProjectEnvContentHintUnion1 { - typ := CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintFlagsConnectionString1 +func CreateCreateProjectEnvContentHintUnion1FlagsConnectionString(flagsConnectionString CreateProjectEnvContentHintFlagsConnectionString1) CreateProjectEnvContentHintUnion1 { + typ := CreateProjectEnvContentHintUnion1TypeFlagsConnectionString + + typStr := CreatedTypeFlagsConnectionString1(typ) + flagsConnectionString.Type = typStr return CreateProjectEnvContentHintUnion1{ - CreateProjectEnvContentHintFlagsConnectionString1: &createProjectEnvContentHintFlagsConnectionString1, + CreateProjectEnvContentHintFlagsConnectionString1: &flagsConnectionString, Type: typ, } } func (u *CreateProjectEnvContentHintUnion1) UnmarshalJSON(data []byte) error { - var createProjectEnvContentHintIntegrationStoreSecret1 CreateProjectEnvContentHintIntegrationStoreSecret1 = CreateProjectEnvContentHintIntegrationStoreSecret1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintIntegrationStoreSecret1, "", true, nil); err == nil { - u.CreateProjectEnvContentHintIntegrationStoreSecret1 = &createProjectEnvContentHintIntegrationStoreSecret1 - u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintIntegrationStoreSecret1 - return nil + type discriminator struct { + Type string `json:"type"` } - var createProjectEnvContentHintRedisURL1 CreateProjectEnvContentHintRedisURL1 = CreateProjectEnvContentHintRedisURL1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisURL1, "", true, nil); err == nil { - u.CreateProjectEnvContentHintRedisURL1 = &createProjectEnvContentHintRedisURL1 - u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintRedisURL1 - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var createProjectEnvContentHintRedisRestAPIURL1 CreateProjectEnvContentHintRedisRestAPIURL1 = CreateProjectEnvContentHintRedisRestAPIURL1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIURL1, "", true, nil); err == nil { - u.CreateProjectEnvContentHintRedisRestAPIURL1 = &createProjectEnvContentHintRedisRestAPIURL1 - u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintRedisRestAPIURL1 + switch dis.Type { + case "redis-url": + createProjectEnvContentHintRedisURL1 := new(CreateProjectEnvContentHintRedisURL1) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisURL1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-url) type CreateProjectEnvContentHintRedisURL1 within CreateProjectEnvContentHintUnion1: %w", string(data), err) + } + + u.CreateProjectEnvContentHintRedisURL1 = createProjectEnvContentHintRedisURL1 + u.Type = CreateProjectEnvContentHintUnion1TypeRedisURL return nil - } + case "redis-rest-api-url": + createProjectEnvContentHintRedisRestAPIURL1 := new(CreateProjectEnvContentHintRedisRestAPIURL1) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIURL1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-url) type CreateProjectEnvContentHintRedisRestAPIURL1 within CreateProjectEnvContentHintUnion1: %w", string(data), err) + } - var createProjectEnvContentHintRedisRestAPIToken1 CreateProjectEnvContentHintRedisRestAPIToken1 = CreateProjectEnvContentHintRedisRestAPIToken1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIToken1, "", true, nil); err == nil { - u.CreateProjectEnvContentHintRedisRestAPIToken1 = &createProjectEnvContentHintRedisRestAPIToken1 - u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintRedisRestAPIToken1 + u.CreateProjectEnvContentHintRedisRestAPIURL1 = createProjectEnvContentHintRedisRestAPIURL1 + u.Type = CreateProjectEnvContentHintUnion1TypeRedisRestAPIURL return nil - } + case "redis-rest-api-token": + createProjectEnvContentHintRedisRestAPIToken1 := new(CreateProjectEnvContentHintRedisRestAPIToken1) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIToken1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-token) type CreateProjectEnvContentHintRedisRestAPIToken1 within CreateProjectEnvContentHintUnion1: %w", string(data), err) + } - var createProjectEnvContentHintRedisRestAPIReadOnlyToken1 CreateProjectEnvContentHintRedisRestAPIReadOnlyToken1 = CreateProjectEnvContentHintRedisRestAPIReadOnlyToken1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIReadOnlyToken1, "", true, nil); err == nil { - u.CreateProjectEnvContentHintRedisRestAPIReadOnlyToken1 = &createProjectEnvContentHintRedisRestAPIReadOnlyToken1 - u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintRedisRestAPIReadOnlyToken1 + u.CreateProjectEnvContentHintRedisRestAPIToken1 = createProjectEnvContentHintRedisRestAPIToken1 + u.Type = CreateProjectEnvContentHintUnion1TypeRedisRestAPIToken return nil - } + case "redis-rest-api-read-only-token": + createProjectEnvContentHintRedisRestAPIReadOnlyToken1 := new(CreateProjectEnvContentHintRedisRestAPIReadOnlyToken1) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIReadOnlyToken1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-read-only-token) type CreateProjectEnvContentHintRedisRestAPIReadOnlyToken1 within CreateProjectEnvContentHintUnion1: %w", string(data), err) + } - var createProjectEnvContentHintBlobReadWriteToken1 CreateProjectEnvContentHintBlobReadWriteToken1 = CreateProjectEnvContentHintBlobReadWriteToken1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintBlobReadWriteToken1, "", true, nil); err == nil { - u.CreateProjectEnvContentHintBlobReadWriteToken1 = &createProjectEnvContentHintBlobReadWriteToken1 - u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintBlobReadWriteToken1 + u.CreateProjectEnvContentHintRedisRestAPIReadOnlyToken1 = createProjectEnvContentHintRedisRestAPIReadOnlyToken1 + u.Type = CreateProjectEnvContentHintUnion1TypeRedisRestAPIReadOnlyToken return nil - } + case "blob-read-write-token": + createProjectEnvContentHintBlobReadWriteToken1 := new(CreateProjectEnvContentHintBlobReadWriteToken1) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintBlobReadWriteToken1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == blob-read-write-token) type CreateProjectEnvContentHintBlobReadWriteToken1 within CreateProjectEnvContentHintUnion1: %w", string(data), err) + } - var createProjectEnvContentHintPostgresURL1 CreateProjectEnvContentHintPostgresURL1 = CreateProjectEnvContentHintPostgresURL1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURL1, "", true, nil); err == nil { - u.CreateProjectEnvContentHintPostgresURL1 = &createProjectEnvContentHintPostgresURL1 - u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresURL1 + u.CreateProjectEnvContentHintBlobReadWriteToken1 = createProjectEnvContentHintBlobReadWriteToken1 + u.Type = CreateProjectEnvContentHintUnion1TypeBlobReadWriteToken return nil - } + case "postgres-url": + createProjectEnvContentHintPostgresURL1 := new(CreateProjectEnvContentHintPostgresURL1) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURL1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url) type CreateProjectEnvContentHintPostgresURL1 within CreateProjectEnvContentHintUnion1: %w", string(data), err) + } - var createProjectEnvContentHintPostgresURLNonPooling1 CreateProjectEnvContentHintPostgresURLNonPooling1 = CreateProjectEnvContentHintPostgresURLNonPooling1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURLNonPooling1, "", true, nil); err == nil { - u.CreateProjectEnvContentHintPostgresURLNonPooling1 = &createProjectEnvContentHintPostgresURLNonPooling1 - u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresURLNonPooling1 + u.CreateProjectEnvContentHintPostgresURL1 = createProjectEnvContentHintPostgresURL1 + u.Type = CreateProjectEnvContentHintUnion1TypePostgresURL return nil - } + case "postgres-url-non-pooling": + createProjectEnvContentHintPostgresURLNonPooling1 := new(CreateProjectEnvContentHintPostgresURLNonPooling1) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURLNonPooling1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-non-pooling) type CreateProjectEnvContentHintPostgresURLNonPooling1 within CreateProjectEnvContentHintUnion1: %w", string(data), err) + } - var createProjectEnvContentHintPostgresPrismaURL1 CreateProjectEnvContentHintPostgresPrismaURL1 = CreateProjectEnvContentHintPostgresPrismaURL1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresPrismaURL1, "", true, nil); err == nil { - u.CreateProjectEnvContentHintPostgresPrismaURL1 = &createProjectEnvContentHintPostgresPrismaURL1 - u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresPrismaURL1 + u.CreateProjectEnvContentHintPostgresURLNonPooling1 = createProjectEnvContentHintPostgresURLNonPooling1 + u.Type = CreateProjectEnvContentHintUnion1TypePostgresURLNonPooling return nil - } + case "postgres-prisma-url": + createProjectEnvContentHintPostgresPrismaURL1 := new(CreateProjectEnvContentHintPostgresPrismaURL1) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresPrismaURL1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-prisma-url) type CreateProjectEnvContentHintPostgresPrismaURL1 within CreateProjectEnvContentHintUnion1: %w", string(data), err) + } - var createProjectEnvContentHintPostgresUser1 CreateProjectEnvContentHintPostgresUser1 = CreateProjectEnvContentHintPostgresUser1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresUser1, "", true, nil); err == nil { - u.CreateProjectEnvContentHintPostgresUser1 = &createProjectEnvContentHintPostgresUser1 - u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresUser1 + u.CreateProjectEnvContentHintPostgresPrismaURL1 = createProjectEnvContentHintPostgresPrismaURL1 + u.Type = CreateProjectEnvContentHintUnion1TypePostgresPrismaURL return nil - } + case "postgres-user": + createProjectEnvContentHintPostgresUser1 := new(CreateProjectEnvContentHintPostgresUser1) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresUser1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-user) type CreateProjectEnvContentHintPostgresUser1 within CreateProjectEnvContentHintUnion1: %w", string(data), err) + } - var createProjectEnvContentHintPostgresHost1 CreateProjectEnvContentHintPostgresHost1 = CreateProjectEnvContentHintPostgresHost1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresHost1, "", true, nil); err == nil { - u.CreateProjectEnvContentHintPostgresHost1 = &createProjectEnvContentHintPostgresHost1 - u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresHost1 + u.CreateProjectEnvContentHintPostgresUser1 = createProjectEnvContentHintPostgresUser1 + u.Type = CreateProjectEnvContentHintUnion1TypePostgresUser return nil - } + case "postgres-host": + createProjectEnvContentHintPostgresHost1 := new(CreateProjectEnvContentHintPostgresHost1) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresHost1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-host) type CreateProjectEnvContentHintPostgresHost1 within CreateProjectEnvContentHintUnion1: %w", string(data), err) + } - var createProjectEnvContentHintPostgresPassword1 CreateProjectEnvContentHintPostgresPassword1 = CreateProjectEnvContentHintPostgresPassword1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresPassword1, "", true, nil); err == nil { - u.CreateProjectEnvContentHintPostgresPassword1 = &createProjectEnvContentHintPostgresPassword1 - u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresPassword1 + u.CreateProjectEnvContentHintPostgresHost1 = createProjectEnvContentHintPostgresHost1 + u.Type = CreateProjectEnvContentHintUnion1TypePostgresHost return nil - } + case "postgres-password": + createProjectEnvContentHintPostgresPassword1 := new(CreateProjectEnvContentHintPostgresPassword1) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresPassword1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-password) type CreateProjectEnvContentHintPostgresPassword1 within CreateProjectEnvContentHintUnion1: %w", string(data), err) + } - var createProjectEnvContentHintPostgresDatabase1 CreateProjectEnvContentHintPostgresDatabase1 = CreateProjectEnvContentHintPostgresDatabase1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresDatabase1, "", true, nil); err == nil { - u.CreateProjectEnvContentHintPostgresDatabase1 = &createProjectEnvContentHintPostgresDatabase1 - u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresDatabase1 + u.CreateProjectEnvContentHintPostgresPassword1 = createProjectEnvContentHintPostgresPassword1 + u.Type = CreateProjectEnvContentHintUnion1TypePostgresPassword return nil - } + case "postgres-database": + createProjectEnvContentHintPostgresDatabase1 := new(CreateProjectEnvContentHintPostgresDatabase1) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresDatabase1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-database) type CreateProjectEnvContentHintPostgresDatabase1 within CreateProjectEnvContentHintUnion1: %w", string(data), err) + } - var createProjectEnvContentHintPostgresURLNoSsl1 CreateProjectEnvContentHintPostgresURLNoSsl1 = CreateProjectEnvContentHintPostgresURLNoSsl1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURLNoSsl1, "", true, nil); err == nil { - u.CreateProjectEnvContentHintPostgresURLNoSsl1 = &createProjectEnvContentHintPostgresURLNoSsl1 - u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresURLNoSsl1 + u.CreateProjectEnvContentHintPostgresDatabase1 = createProjectEnvContentHintPostgresDatabase1 + u.Type = CreateProjectEnvContentHintUnion1TypePostgresDatabase return nil - } + case "postgres-url-no-ssl": + createProjectEnvContentHintPostgresURLNoSsl1 := new(CreateProjectEnvContentHintPostgresURLNoSsl1) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURLNoSsl1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-no-ssl) type CreateProjectEnvContentHintPostgresURLNoSsl1 within CreateProjectEnvContentHintUnion1: %w", string(data), err) + } + + u.CreateProjectEnvContentHintPostgresURLNoSsl1 = createProjectEnvContentHintPostgresURLNoSsl1 + u.Type = CreateProjectEnvContentHintUnion1TypePostgresURLNoSsl + return nil + case "integration-store-secret": + createProjectEnvContentHintIntegrationStoreSecret1 := new(CreateProjectEnvContentHintIntegrationStoreSecret1) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintIntegrationStoreSecret1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == integration-store-secret) type CreateProjectEnvContentHintIntegrationStoreSecret1 within CreateProjectEnvContentHintUnion1: %w", string(data), err) + } + + u.CreateProjectEnvContentHintIntegrationStoreSecret1 = createProjectEnvContentHintIntegrationStoreSecret1 + u.Type = CreateProjectEnvContentHintUnion1TypeIntegrationStoreSecret + return nil + case "flags-connection-string": + createProjectEnvContentHintFlagsConnectionString1 := new(CreateProjectEnvContentHintFlagsConnectionString1) + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintFlagsConnectionString1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == flags-connection-string) type CreateProjectEnvContentHintFlagsConnectionString1 within CreateProjectEnvContentHintUnion1: %w", string(data), err) + } - var createProjectEnvContentHintFlagsConnectionString1 CreateProjectEnvContentHintFlagsConnectionString1 = CreateProjectEnvContentHintFlagsConnectionString1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintFlagsConnectionString1, "", true, nil); err == nil { - u.CreateProjectEnvContentHintFlagsConnectionString1 = &createProjectEnvContentHintFlagsConnectionString1 - u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintFlagsConnectionString1 + u.CreateProjectEnvContentHintFlagsConnectionString1 = createProjectEnvContentHintFlagsConnectionString1 + u.Type = CreateProjectEnvContentHintUnion1TypeFlagsConnectionString return nil } @@ -3883,6 +4162,111 @@ func (o *CreateProjectEnvCreated1) GetContentHint() *CreateProjectEnvContentHint return o.ContentHint } +func (o *CreateProjectEnvCreated1) GetContentHintRedisURL() *CreateProjectEnvContentHintRedisURL1 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintRedisURL1 + } + return nil +} + +func (o *CreateProjectEnvCreated1) GetContentHintRedisRestAPIURL() *CreateProjectEnvContentHintRedisRestAPIURL1 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintRedisRestAPIURL1 + } + return nil +} + +func (o *CreateProjectEnvCreated1) GetContentHintRedisRestAPIToken() *CreateProjectEnvContentHintRedisRestAPIToken1 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintRedisRestAPIToken1 + } + return nil +} + +func (o *CreateProjectEnvCreated1) GetContentHintRedisRestAPIReadOnlyToken() *CreateProjectEnvContentHintRedisRestAPIReadOnlyToken1 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintRedisRestAPIReadOnlyToken1 + } + return nil +} + +func (o *CreateProjectEnvCreated1) GetContentHintBlobReadWriteToken() *CreateProjectEnvContentHintBlobReadWriteToken1 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintBlobReadWriteToken1 + } + return nil +} + +func (o *CreateProjectEnvCreated1) GetContentHintPostgresURL() *CreateProjectEnvContentHintPostgresURL1 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintPostgresURL1 + } + return nil +} + +func (o *CreateProjectEnvCreated1) GetContentHintPostgresURLNonPooling() *CreateProjectEnvContentHintPostgresURLNonPooling1 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintPostgresURLNonPooling1 + } + return nil +} + +func (o *CreateProjectEnvCreated1) GetContentHintPostgresPrismaURL() *CreateProjectEnvContentHintPostgresPrismaURL1 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintPostgresPrismaURL1 + } + return nil +} + +func (o *CreateProjectEnvCreated1) GetContentHintPostgresUser() *CreateProjectEnvContentHintPostgresUser1 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintPostgresUser1 + } + return nil +} + +func (o *CreateProjectEnvCreated1) GetContentHintPostgresHost() *CreateProjectEnvContentHintPostgresHost1 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintPostgresHost1 + } + return nil +} + +func (o *CreateProjectEnvCreated1) GetContentHintPostgresPassword() *CreateProjectEnvContentHintPostgresPassword1 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintPostgresPassword1 + } + return nil +} + +func (o *CreateProjectEnvCreated1) GetContentHintPostgresDatabase() *CreateProjectEnvContentHintPostgresDatabase1 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintPostgresDatabase1 + } + return nil +} + +func (o *CreateProjectEnvCreated1) GetContentHintPostgresURLNoSsl() *CreateProjectEnvContentHintPostgresURLNoSsl1 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintPostgresURLNoSsl1 + } + return nil +} + +func (o *CreateProjectEnvCreated1) GetContentHintIntegrationStoreSecret() *CreateProjectEnvContentHintIntegrationStoreSecret1 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintIntegrationStoreSecret1 + } + return nil +} + +func (o *CreateProjectEnvCreated1) GetContentHintFlagsConnectionString() *CreateProjectEnvContentHintFlagsConnectionString1 { + if v := o.GetContentHint(); v != nil { + return v.CreateProjectEnvContentHintFlagsConnectionString1 + } + return nil +} + func (o *CreateProjectEnvCreated1) GetInternalContentHint() *CreateProjectEnvInternalContentHint1 { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/editprojectenv.go b/src/__tests__/mockserver/internal/sdk/models/operations/editprojectenv.go index b25b309f..591adb8e 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/editprojectenv.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/editprojectenv.go @@ -1151,21 +1151,21 @@ func (o *EditProjectEnvContentHintRedisURL) GetStoreID() string { type EditProjectEnvContentHintUnionType string const ( - EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintRedisURL EditProjectEnvContentHintUnionType = "editProjectEnv_contentHint_RedisURL" - EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintRedisRestAPIURL EditProjectEnvContentHintUnionType = "editProjectEnv_contentHint_RedisRestAPIURL" - EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintRedisRestAPIToken EditProjectEnvContentHintUnionType = "editProjectEnv_contentHint_RedisRestAPIToken" - EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintRedisRestAPIReadOnlyToken EditProjectEnvContentHintUnionType = "editProjectEnv_contentHint_RedisRestAPIReadOnlyToken" - EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintBlobReadWriteToken EditProjectEnvContentHintUnionType = "editProjectEnv_contentHint_BlobReadWriteToken" - EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresURL EditProjectEnvContentHintUnionType = "editProjectEnv_contentHint_PostgresURL" - EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresURLNonPooling EditProjectEnvContentHintUnionType = "editProjectEnv_contentHint_PostgresURLNonPooling" - EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresPrismaURL EditProjectEnvContentHintUnionType = "editProjectEnv_contentHint_PostgresPrismaURL" - EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresUser EditProjectEnvContentHintUnionType = "editProjectEnv_contentHint_PostgresUser" - EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresHost EditProjectEnvContentHintUnionType = "editProjectEnv_contentHint_PostgresHost" - EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresPassword EditProjectEnvContentHintUnionType = "editProjectEnv_contentHint_PostgresPassword" - EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresDatabase EditProjectEnvContentHintUnionType = "editProjectEnv_contentHint_PostgresDatabase" - EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresURLNoSsl EditProjectEnvContentHintUnionType = "editProjectEnv_contentHint_PostgresURLNoSsl" - EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintIntegrationStoreSecret EditProjectEnvContentHintUnionType = "editProjectEnv_contentHint_IntegrationStoreSecret" - EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintFlagsConnectionString EditProjectEnvContentHintUnionType = "editProjectEnv_contentHint_FlagsConnectionString" + EditProjectEnvContentHintUnionTypeRedisURL EditProjectEnvContentHintUnionType = "redis-url" + EditProjectEnvContentHintUnionTypeRedisRestAPIURL EditProjectEnvContentHintUnionType = "redis-rest-api-url" + EditProjectEnvContentHintUnionTypeRedisRestAPIToken EditProjectEnvContentHintUnionType = "redis-rest-api-token" + EditProjectEnvContentHintUnionTypeRedisRestAPIReadOnlyToken EditProjectEnvContentHintUnionType = "redis-rest-api-read-only-token" + EditProjectEnvContentHintUnionTypeBlobReadWriteToken EditProjectEnvContentHintUnionType = "blob-read-write-token" + EditProjectEnvContentHintUnionTypePostgresURL EditProjectEnvContentHintUnionType = "postgres-url" + EditProjectEnvContentHintUnionTypePostgresURLNonPooling EditProjectEnvContentHintUnionType = "postgres-url-non-pooling" + EditProjectEnvContentHintUnionTypePostgresPrismaURL EditProjectEnvContentHintUnionType = "postgres-prisma-url" + EditProjectEnvContentHintUnionTypePostgresUser EditProjectEnvContentHintUnionType = "postgres-user" + EditProjectEnvContentHintUnionTypePostgresHost EditProjectEnvContentHintUnionType = "postgres-host" + EditProjectEnvContentHintUnionTypePostgresPassword EditProjectEnvContentHintUnionType = "postgres-password" + EditProjectEnvContentHintUnionTypePostgresDatabase EditProjectEnvContentHintUnionType = "postgres-database" + EditProjectEnvContentHintUnionTypePostgresURLNoSsl EditProjectEnvContentHintUnionType = "postgres-url-no-ssl" + EditProjectEnvContentHintUnionTypeIntegrationStoreSecret EditProjectEnvContentHintUnionType = "integration-store-secret" + EditProjectEnvContentHintUnionTypeFlagsConnectionString EditProjectEnvContentHintUnionType = "flags-connection-string" ) type EditProjectEnvContentHintUnion struct { @@ -1188,245 +1188,332 @@ type EditProjectEnvContentHintUnion struct { Type EditProjectEnvContentHintUnionType } -func CreateEditProjectEnvContentHintUnionEditProjectEnvContentHintRedisURL(editProjectEnvContentHintRedisURL EditProjectEnvContentHintRedisURL) EditProjectEnvContentHintUnion { - typ := EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintRedisURL +func CreateEditProjectEnvContentHintUnionRedisURL(redisURL EditProjectEnvContentHintRedisURL) EditProjectEnvContentHintUnion { + typ := EditProjectEnvContentHintUnionTypeRedisURL + + typStr := EditProjectEnvTypeRedisURL(typ) + redisURL.Type = typStr return EditProjectEnvContentHintUnion{ - EditProjectEnvContentHintRedisURL: &editProjectEnvContentHintRedisURL, + EditProjectEnvContentHintRedisURL: &redisURL, Type: typ, } } -func CreateEditProjectEnvContentHintUnionEditProjectEnvContentHintRedisRestAPIURL(editProjectEnvContentHintRedisRestAPIURL EditProjectEnvContentHintRedisRestAPIURL) EditProjectEnvContentHintUnion { - typ := EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintRedisRestAPIURL +func CreateEditProjectEnvContentHintUnionRedisRestAPIURL(redisRestAPIURL EditProjectEnvContentHintRedisRestAPIURL) EditProjectEnvContentHintUnion { + typ := EditProjectEnvContentHintUnionTypeRedisRestAPIURL + + typStr := EditProjectEnvTypeRedisRestAPIURL(typ) + redisRestAPIURL.Type = typStr return EditProjectEnvContentHintUnion{ - EditProjectEnvContentHintRedisRestAPIURL: &editProjectEnvContentHintRedisRestAPIURL, + EditProjectEnvContentHintRedisRestAPIURL: &redisRestAPIURL, Type: typ, } } -func CreateEditProjectEnvContentHintUnionEditProjectEnvContentHintRedisRestAPIToken(editProjectEnvContentHintRedisRestAPIToken EditProjectEnvContentHintRedisRestAPIToken) EditProjectEnvContentHintUnion { - typ := EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintRedisRestAPIToken +func CreateEditProjectEnvContentHintUnionRedisRestAPIToken(redisRestAPIToken EditProjectEnvContentHintRedisRestAPIToken) EditProjectEnvContentHintUnion { + typ := EditProjectEnvContentHintUnionTypeRedisRestAPIToken + + typStr := EditProjectEnvTypeRedisRestAPIToken(typ) + redisRestAPIToken.Type = typStr return EditProjectEnvContentHintUnion{ - EditProjectEnvContentHintRedisRestAPIToken: &editProjectEnvContentHintRedisRestAPIToken, + EditProjectEnvContentHintRedisRestAPIToken: &redisRestAPIToken, Type: typ, } } -func CreateEditProjectEnvContentHintUnionEditProjectEnvContentHintRedisRestAPIReadOnlyToken(editProjectEnvContentHintRedisRestAPIReadOnlyToken EditProjectEnvContentHintRedisRestAPIReadOnlyToken) EditProjectEnvContentHintUnion { - typ := EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintRedisRestAPIReadOnlyToken +func CreateEditProjectEnvContentHintUnionRedisRestAPIReadOnlyToken(redisRestAPIReadOnlyToken EditProjectEnvContentHintRedisRestAPIReadOnlyToken) EditProjectEnvContentHintUnion { + typ := EditProjectEnvContentHintUnionTypeRedisRestAPIReadOnlyToken + + typStr := EditProjectEnvTypeRedisRestAPIReadOnlyToken(typ) + redisRestAPIReadOnlyToken.Type = typStr return EditProjectEnvContentHintUnion{ - EditProjectEnvContentHintRedisRestAPIReadOnlyToken: &editProjectEnvContentHintRedisRestAPIReadOnlyToken, + EditProjectEnvContentHintRedisRestAPIReadOnlyToken: &redisRestAPIReadOnlyToken, Type: typ, } } -func CreateEditProjectEnvContentHintUnionEditProjectEnvContentHintBlobReadWriteToken(editProjectEnvContentHintBlobReadWriteToken EditProjectEnvContentHintBlobReadWriteToken) EditProjectEnvContentHintUnion { - typ := EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintBlobReadWriteToken +func CreateEditProjectEnvContentHintUnionBlobReadWriteToken(blobReadWriteToken EditProjectEnvContentHintBlobReadWriteToken) EditProjectEnvContentHintUnion { + typ := EditProjectEnvContentHintUnionTypeBlobReadWriteToken + + typStr := EditProjectEnvTypeBlobReadWriteToken(typ) + blobReadWriteToken.Type = typStr return EditProjectEnvContentHintUnion{ - EditProjectEnvContentHintBlobReadWriteToken: &editProjectEnvContentHintBlobReadWriteToken, + EditProjectEnvContentHintBlobReadWriteToken: &blobReadWriteToken, Type: typ, } } -func CreateEditProjectEnvContentHintUnionEditProjectEnvContentHintPostgresURL(editProjectEnvContentHintPostgresURL EditProjectEnvContentHintPostgresURL) EditProjectEnvContentHintUnion { - typ := EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresURL +func CreateEditProjectEnvContentHintUnionPostgresURL(postgresURL EditProjectEnvContentHintPostgresURL) EditProjectEnvContentHintUnion { + typ := EditProjectEnvContentHintUnionTypePostgresURL + + typStr := EditProjectEnvTypePostgresURL(typ) + postgresURL.Type = typStr return EditProjectEnvContentHintUnion{ - EditProjectEnvContentHintPostgresURL: &editProjectEnvContentHintPostgresURL, + EditProjectEnvContentHintPostgresURL: &postgresURL, Type: typ, } } -func CreateEditProjectEnvContentHintUnionEditProjectEnvContentHintPostgresURLNonPooling(editProjectEnvContentHintPostgresURLNonPooling EditProjectEnvContentHintPostgresURLNonPooling) EditProjectEnvContentHintUnion { - typ := EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresURLNonPooling +func CreateEditProjectEnvContentHintUnionPostgresURLNonPooling(postgresURLNonPooling EditProjectEnvContentHintPostgresURLNonPooling) EditProjectEnvContentHintUnion { + typ := EditProjectEnvContentHintUnionTypePostgresURLNonPooling + + typStr := EditProjectEnvTypePostgresURLNonPooling(typ) + postgresURLNonPooling.Type = typStr return EditProjectEnvContentHintUnion{ - EditProjectEnvContentHintPostgresURLNonPooling: &editProjectEnvContentHintPostgresURLNonPooling, + EditProjectEnvContentHintPostgresURLNonPooling: &postgresURLNonPooling, Type: typ, } } -func CreateEditProjectEnvContentHintUnionEditProjectEnvContentHintPostgresPrismaURL(editProjectEnvContentHintPostgresPrismaURL EditProjectEnvContentHintPostgresPrismaURL) EditProjectEnvContentHintUnion { - typ := EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresPrismaURL +func CreateEditProjectEnvContentHintUnionPostgresPrismaURL(postgresPrismaURL EditProjectEnvContentHintPostgresPrismaURL) EditProjectEnvContentHintUnion { + typ := EditProjectEnvContentHintUnionTypePostgresPrismaURL + + typStr := EditProjectEnvTypePostgresPrismaURL(typ) + postgresPrismaURL.Type = typStr return EditProjectEnvContentHintUnion{ - EditProjectEnvContentHintPostgresPrismaURL: &editProjectEnvContentHintPostgresPrismaURL, + EditProjectEnvContentHintPostgresPrismaURL: &postgresPrismaURL, Type: typ, } } -func CreateEditProjectEnvContentHintUnionEditProjectEnvContentHintPostgresUser(editProjectEnvContentHintPostgresUser EditProjectEnvContentHintPostgresUser) EditProjectEnvContentHintUnion { - typ := EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresUser +func CreateEditProjectEnvContentHintUnionPostgresUser(postgresUser EditProjectEnvContentHintPostgresUser) EditProjectEnvContentHintUnion { + typ := EditProjectEnvContentHintUnionTypePostgresUser + + typStr := EditProjectEnvTypePostgresUser(typ) + postgresUser.Type = typStr return EditProjectEnvContentHintUnion{ - EditProjectEnvContentHintPostgresUser: &editProjectEnvContentHintPostgresUser, + EditProjectEnvContentHintPostgresUser: &postgresUser, Type: typ, } } -func CreateEditProjectEnvContentHintUnionEditProjectEnvContentHintPostgresHost(editProjectEnvContentHintPostgresHost EditProjectEnvContentHintPostgresHost) EditProjectEnvContentHintUnion { - typ := EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresHost +func CreateEditProjectEnvContentHintUnionPostgresHost(postgresHost EditProjectEnvContentHintPostgresHost) EditProjectEnvContentHintUnion { + typ := EditProjectEnvContentHintUnionTypePostgresHost + + typStr := EditProjectEnvTypePostgresHost(typ) + postgresHost.Type = typStr return EditProjectEnvContentHintUnion{ - EditProjectEnvContentHintPostgresHost: &editProjectEnvContentHintPostgresHost, + EditProjectEnvContentHintPostgresHost: &postgresHost, Type: typ, } } -func CreateEditProjectEnvContentHintUnionEditProjectEnvContentHintPostgresPassword(editProjectEnvContentHintPostgresPassword EditProjectEnvContentHintPostgresPassword) EditProjectEnvContentHintUnion { - typ := EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresPassword +func CreateEditProjectEnvContentHintUnionPostgresPassword(postgresPassword EditProjectEnvContentHintPostgresPassword) EditProjectEnvContentHintUnion { + typ := EditProjectEnvContentHintUnionTypePostgresPassword + + typStr := EditProjectEnvTypePostgresPassword(typ) + postgresPassword.Type = typStr return EditProjectEnvContentHintUnion{ - EditProjectEnvContentHintPostgresPassword: &editProjectEnvContentHintPostgresPassword, + EditProjectEnvContentHintPostgresPassword: &postgresPassword, Type: typ, } } -func CreateEditProjectEnvContentHintUnionEditProjectEnvContentHintPostgresDatabase(editProjectEnvContentHintPostgresDatabase EditProjectEnvContentHintPostgresDatabase) EditProjectEnvContentHintUnion { - typ := EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresDatabase +func CreateEditProjectEnvContentHintUnionPostgresDatabase(postgresDatabase EditProjectEnvContentHintPostgresDatabase) EditProjectEnvContentHintUnion { + typ := EditProjectEnvContentHintUnionTypePostgresDatabase + + typStr := EditProjectEnvTypePostgresDatabase(typ) + postgresDatabase.Type = typStr return EditProjectEnvContentHintUnion{ - EditProjectEnvContentHintPostgresDatabase: &editProjectEnvContentHintPostgresDatabase, + EditProjectEnvContentHintPostgresDatabase: &postgresDatabase, Type: typ, } } -func CreateEditProjectEnvContentHintUnionEditProjectEnvContentHintPostgresURLNoSsl(editProjectEnvContentHintPostgresURLNoSsl EditProjectEnvContentHintPostgresURLNoSsl) EditProjectEnvContentHintUnion { - typ := EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresURLNoSsl +func CreateEditProjectEnvContentHintUnionPostgresURLNoSsl(postgresURLNoSsl EditProjectEnvContentHintPostgresURLNoSsl) EditProjectEnvContentHintUnion { + typ := EditProjectEnvContentHintUnionTypePostgresURLNoSsl + + typStr := EditProjectEnvTypePostgresURLNoSsl(typ) + postgresURLNoSsl.Type = typStr return EditProjectEnvContentHintUnion{ - EditProjectEnvContentHintPostgresURLNoSsl: &editProjectEnvContentHintPostgresURLNoSsl, + EditProjectEnvContentHintPostgresURLNoSsl: &postgresURLNoSsl, Type: typ, } } -func CreateEditProjectEnvContentHintUnionEditProjectEnvContentHintIntegrationStoreSecret(editProjectEnvContentHintIntegrationStoreSecret EditProjectEnvContentHintIntegrationStoreSecret) EditProjectEnvContentHintUnion { - typ := EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintIntegrationStoreSecret +func CreateEditProjectEnvContentHintUnionIntegrationStoreSecret(integrationStoreSecret EditProjectEnvContentHintIntegrationStoreSecret) EditProjectEnvContentHintUnion { + typ := EditProjectEnvContentHintUnionTypeIntegrationStoreSecret + + typStr := EditProjectEnvTypeIntegrationStoreSecret(typ) + integrationStoreSecret.Type = typStr return EditProjectEnvContentHintUnion{ - EditProjectEnvContentHintIntegrationStoreSecret: &editProjectEnvContentHintIntegrationStoreSecret, + EditProjectEnvContentHintIntegrationStoreSecret: &integrationStoreSecret, Type: typ, } } -func CreateEditProjectEnvContentHintUnionEditProjectEnvContentHintFlagsConnectionString(editProjectEnvContentHintFlagsConnectionString EditProjectEnvContentHintFlagsConnectionString) EditProjectEnvContentHintUnion { - typ := EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintFlagsConnectionString +func CreateEditProjectEnvContentHintUnionFlagsConnectionString(flagsConnectionString EditProjectEnvContentHintFlagsConnectionString) EditProjectEnvContentHintUnion { + typ := EditProjectEnvContentHintUnionTypeFlagsConnectionString + + typStr := EditProjectEnvTypeFlagsConnectionString(typ) + flagsConnectionString.Type = typStr return EditProjectEnvContentHintUnion{ - EditProjectEnvContentHintFlagsConnectionString: &editProjectEnvContentHintFlagsConnectionString, + EditProjectEnvContentHintFlagsConnectionString: &flagsConnectionString, Type: typ, } } func (u *EditProjectEnvContentHintUnion) UnmarshalJSON(data []byte) error { - var editProjectEnvContentHintIntegrationStoreSecret EditProjectEnvContentHintIntegrationStoreSecret = EditProjectEnvContentHintIntegrationStoreSecret{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintIntegrationStoreSecret, "", true, nil); err == nil { - u.EditProjectEnvContentHintIntegrationStoreSecret = &editProjectEnvContentHintIntegrationStoreSecret - u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintIntegrationStoreSecret - return nil + type discriminator struct { + Type string `json:"type"` } - var editProjectEnvContentHintRedisURL EditProjectEnvContentHintRedisURL = EditProjectEnvContentHintRedisURL{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintRedisURL, "", true, nil); err == nil { - u.EditProjectEnvContentHintRedisURL = &editProjectEnvContentHintRedisURL - u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintRedisURL - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var editProjectEnvContentHintRedisRestAPIURL EditProjectEnvContentHintRedisRestAPIURL = EditProjectEnvContentHintRedisRestAPIURL{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintRedisRestAPIURL, "", true, nil); err == nil { - u.EditProjectEnvContentHintRedisRestAPIURL = &editProjectEnvContentHintRedisRestAPIURL - u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintRedisRestAPIURL + switch dis.Type { + case "redis-url": + editProjectEnvContentHintRedisURL := new(EditProjectEnvContentHintRedisURL) + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintRedisURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-url) type EditProjectEnvContentHintRedisURL within EditProjectEnvContentHintUnion: %w", string(data), err) + } + + u.EditProjectEnvContentHintRedisURL = editProjectEnvContentHintRedisURL + u.Type = EditProjectEnvContentHintUnionTypeRedisURL return nil - } + case "redis-rest-api-url": + editProjectEnvContentHintRedisRestAPIURL := new(EditProjectEnvContentHintRedisRestAPIURL) + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintRedisRestAPIURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-url) type EditProjectEnvContentHintRedisRestAPIURL within EditProjectEnvContentHintUnion: %w", string(data), err) + } - var editProjectEnvContentHintRedisRestAPIToken EditProjectEnvContentHintRedisRestAPIToken = EditProjectEnvContentHintRedisRestAPIToken{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintRedisRestAPIToken, "", true, nil); err == nil { - u.EditProjectEnvContentHintRedisRestAPIToken = &editProjectEnvContentHintRedisRestAPIToken - u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintRedisRestAPIToken + u.EditProjectEnvContentHintRedisRestAPIURL = editProjectEnvContentHintRedisRestAPIURL + u.Type = EditProjectEnvContentHintUnionTypeRedisRestAPIURL return nil - } + case "redis-rest-api-token": + editProjectEnvContentHintRedisRestAPIToken := new(EditProjectEnvContentHintRedisRestAPIToken) + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintRedisRestAPIToken, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-token) type EditProjectEnvContentHintRedisRestAPIToken within EditProjectEnvContentHintUnion: %w", string(data), err) + } - var editProjectEnvContentHintRedisRestAPIReadOnlyToken EditProjectEnvContentHintRedisRestAPIReadOnlyToken = EditProjectEnvContentHintRedisRestAPIReadOnlyToken{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintRedisRestAPIReadOnlyToken, "", true, nil); err == nil { - u.EditProjectEnvContentHintRedisRestAPIReadOnlyToken = &editProjectEnvContentHintRedisRestAPIReadOnlyToken - u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintRedisRestAPIReadOnlyToken + u.EditProjectEnvContentHintRedisRestAPIToken = editProjectEnvContentHintRedisRestAPIToken + u.Type = EditProjectEnvContentHintUnionTypeRedisRestAPIToken return nil - } + case "redis-rest-api-read-only-token": + editProjectEnvContentHintRedisRestAPIReadOnlyToken := new(EditProjectEnvContentHintRedisRestAPIReadOnlyToken) + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintRedisRestAPIReadOnlyToken, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-read-only-token) type EditProjectEnvContentHintRedisRestAPIReadOnlyToken within EditProjectEnvContentHintUnion: %w", string(data), err) + } - var editProjectEnvContentHintBlobReadWriteToken EditProjectEnvContentHintBlobReadWriteToken = EditProjectEnvContentHintBlobReadWriteToken{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintBlobReadWriteToken, "", true, nil); err == nil { - u.EditProjectEnvContentHintBlobReadWriteToken = &editProjectEnvContentHintBlobReadWriteToken - u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintBlobReadWriteToken + u.EditProjectEnvContentHintRedisRestAPIReadOnlyToken = editProjectEnvContentHintRedisRestAPIReadOnlyToken + u.Type = EditProjectEnvContentHintUnionTypeRedisRestAPIReadOnlyToken return nil - } + case "blob-read-write-token": + editProjectEnvContentHintBlobReadWriteToken := new(EditProjectEnvContentHintBlobReadWriteToken) + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintBlobReadWriteToken, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == blob-read-write-token) type EditProjectEnvContentHintBlobReadWriteToken within EditProjectEnvContentHintUnion: %w", string(data), err) + } - var editProjectEnvContentHintPostgresURL EditProjectEnvContentHintPostgresURL = EditProjectEnvContentHintPostgresURL{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresURL, "", true, nil); err == nil { - u.EditProjectEnvContentHintPostgresURL = &editProjectEnvContentHintPostgresURL - u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresURL + u.EditProjectEnvContentHintBlobReadWriteToken = editProjectEnvContentHintBlobReadWriteToken + u.Type = EditProjectEnvContentHintUnionTypeBlobReadWriteToken return nil - } + case "postgres-url": + editProjectEnvContentHintPostgresURL := new(EditProjectEnvContentHintPostgresURL) + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url) type EditProjectEnvContentHintPostgresURL within EditProjectEnvContentHintUnion: %w", string(data), err) + } - var editProjectEnvContentHintPostgresURLNonPooling EditProjectEnvContentHintPostgresURLNonPooling = EditProjectEnvContentHintPostgresURLNonPooling{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresURLNonPooling, "", true, nil); err == nil { - u.EditProjectEnvContentHintPostgresURLNonPooling = &editProjectEnvContentHintPostgresURLNonPooling - u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresURLNonPooling + u.EditProjectEnvContentHintPostgresURL = editProjectEnvContentHintPostgresURL + u.Type = EditProjectEnvContentHintUnionTypePostgresURL return nil - } + case "postgres-url-non-pooling": + editProjectEnvContentHintPostgresURLNonPooling := new(EditProjectEnvContentHintPostgresURLNonPooling) + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresURLNonPooling, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-non-pooling) type EditProjectEnvContentHintPostgresURLNonPooling within EditProjectEnvContentHintUnion: %w", string(data), err) + } - var editProjectEnvContentHintPostgresPrismaURL EditProjectEnvContentHintPostgresPrismaURL = EditProjectEnvContentHintPostgresPrismaURL{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresPrismaURL, "", true, nil); err == nil { - u.EditProjectEnvContentHintPostgresPrismaURL = &editProjectEnvContentHintPostgresPrismaURL - u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresPrismaURL + u.EditProjectEnvContentHintPostgresURLNonPooling = editProjectEnvContentHintPostgresURLNonPooling + u.Type = EditProjectEnvContentHintUnionTypePostgresURLNonPooling return nil - } + case "postgres-prisma-url": + editProjectEnvContentHintPostgresPrismaURL := new(EditProjectEnvContentHintPostgresPrismaURL) + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresPrismaURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-prisma-url) type EditProjectEnvContentHintPostgresPrismaURL within EditProjectEnvContentHintUnion: %w", string(data), err) + } - var editProjectEnvContentHintPostgresUser EditProjectEnvContentHintPostgresUser = EditProjectEnvContentHintPostgresUser{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresUser, "", true, nil); err == nil { - u.EditProjectEnvContentHintPostgresUser = &editProjectEnvContentHintPostgresUser - u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresUser + u.EditProjectEnvContentHintPostgresPrismaURL = editProjectEnvContentHintPostgresPrismaURL + u.Type = EditProjectEnvContentHintUnionTypePostgresPrismaURL return nil - } + case "postgres-user": + editProjectEnvContentHintPostgresUser := new(EditProjectEnvContentHintPostgresUser) + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresUser, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-user) type EditProjectEnvContentHintPostgresUser within EditProjectEnvContentHintUnion: %w", string(data), err) + } - var editProjectEnvContentHintPostgresHost EditProjectEnvContentHintPostgresHost = EditProjectEnvContentHintPostgresHost{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresHost, "", true, nil); err == nil { - u.EditProjectEnvContentHintPostgresHost = &editProjectEnvContentHintPostgresHost - u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresHost + u.EditProjectEnvContentHintPostgresUser = editProjectEnvContentHintPostgresUser + u.Type = EditProjectEnvContentHintUnionTypePostgresUser return nil - } + case "postgres-host": + editProjectEnvContentHintPostgresHost := new(EditProjectEnvContentHintPostgresHost) + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresHost, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-host) type EditProjectEnvContentHintPostgresHost within EditProjectEnvContentHintUnion: %w", string(data), err) + } - var editProjectEnvContentHintPostgresPassword EditProjectEnvContentHintPostgresPassword = EditProjectEnvContentHintPostgresPassword{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresPassword, "", true, nil); err == nil { - u.EditProjectEnvContentHintPostgresPassword = &editProjectEnvContentHintPostgresPassword - u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresPassword + u.EditProjectEnvContentHintPostgresHost = editProjectEnvContentHintPostgresHost + u.Type = EditProjectEnvContentHintUnionTypePostgresHost return nil - } + case "postgres-password": + editProjectEnvContentHintPostgresPassword := new(EditProjectEnvContentHintPostgresPassword) + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresPassword, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-password) type EditProjectEnvContentHintPostgresPassword within EditProjectEnvContentHintUnion: %w", string(data), err) + } - var editProjectEnvContentHintPostgresDatabase EditProjectEnvContentHintPostgresDatabase = EditProjectEnvContentHintPostgresDatabase{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresDatabase, "", true, nil); err == nil { - u.EditProjectEnvContentHintPostgresDatabase = &editProjectEnvContentHintPostgresDatabase - u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresDatabase + u.EditProjectEnvContentHintPostgresPassword = editProjectEnvContentHintPostgresPassword + u.Type = EditProjectEnvContentHintUnionTypePostgresPassword return nil - } + case "postgres-database": + editProjectEnvContentHintPostgresDatabase := new(EditProjectEnvContentHintPostgresDatabase) + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresDatabase, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-database) type EditProjectEnvContentHintPostgresDatabase within EditProjectEnvContentHintUnion: %w", string(data), err) + } - var editProjectEnvContentHintPostgresURLNoSsl EditProjectEnvContentHintPostgresURLNoSsl = EditProjectEnvContentHintPostgresURLNoSsl{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresURLNoSsl, "", true, nil); err == nil { - u.EditProjectEnvContentHintPostgresURLNoSsl = &editProjectEnvContentHintPostgresURLNoSsl - u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresURLNoSsl + u.EditProjectEnvContentHintPostgresDatabase = editProjectEnvContentHintPostgresDatabase + u.Type = EditProjectEnvContentHintUnionTypePostgresDatabase return nil - } + case "postgres-url-no-ssl": + editProjectEnvContentHintPostgresURLNoSsl := new(EditProjectEnvContentHintPostgresURLNoSsl) + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresURLNoSsl, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-no-ssl) type EditProjectEnvContentHintPostgresURLNoSsl within EditProjectEnvContentHintUnion: %w", string(data), err) + } + + u.EditProjectEnvContentHintPostgresURLNoSsl = editProjectEnvContentHintPostgresURLNoSsl + u.Type = EditProjectEnvContentHintUnionTypePostgresURLNoSsl + return nil + case "integration-store-secret": + editProjectEnvContentHintIntegrationStoreSecret := new(EditProjectEnvContentHintIntegrationStoreSecret) + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintIntegrationStoreSecret, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == integration-store-secret) type EditProjectEnvContentHintIntegrationStoreSecret within EditProjectEnvContentHintUnion: %w", string(data), err) + } + + u.EditProjectEnvContentHintIntegrationStoreSecret = editProjectEnvContentHintIntegrationStoreSecret + u.Type = EditProjectEnvContentHintUnionTypeIntegrationStoreSecret + return nil + case "flags-connection-string": + editProjectEnvContentHintFlagsConnectionString := new(EditProjectEnvContentHintFlagsConnectionString) + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintFlagsConnectionString, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == flags-connection-string) type EditProjectEnvContentHintFlagsConnectionString within EditProjectEnvContentHintUnion: %w", string(data), err) + } - var editProjectEnvContentHintFlagsConnectionString EditProjectEnvContentHintFlagsConnectionString = EditProjectEnvContentHintFlagsConnectionString{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintFlagsConnectionString, "", true, nil); err == nil { - u.EditProjectEnvContentHintFlagsConnectionString = &editProjectEnvContentHintFlagsConnectionString - u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintFlagsConnectionString + u.EditProjectEnvContentHintFlagsConnectionString = editProjectEnvContentHintFlagsConnectionString + u.Type = EditProjectEnvContentHintUnionTypeFlagsConnectionString return nil } @@ -1699,6 +1786,111 @@ func (o *EditProjectEnvResponseBody1) GetContentHint() *EditProjectEnvContentHin return o.ContentHint } +func (o *EditProjectEnvResponseBody1) GetContentHintRedisURL() *EditProjectEnvContentHintRedisURL { + if v := o.GetContentHint(); v != nil { + return v.EditProjectEnvContentHintRedisURL + } + return nil +} + +func (o *EditProjectEnvResponseBody1) GetContentHintRedisRestAPIURL() *EditProjectEnvContentHintRedisRestAPIURL { + if v := o.GetContentHint(); v != nil { + return v.EditProjectEnvContentHintRedisRestAPIURL + } + return nil +} + +func (o *EditProjectEnvResponseBody1) GetContentHintRedisRestAPIToken() *EditProjectEnvContentHintRedisRestAPIToken { + if v := o.GetContentHint(); v != nil { + return v.EditProjectEnvContentHintRedisRestAPIToken + } + return nil +} + +func (o *EditProjectEnvResponseBody1) GetContentHintRedisRestAPIReadOnlyToken() *EditProjectEnvContentHintRedisRestAPIReadOnlyToken { + if v := o.GetContentHint(); v != nil { + return v.EditProjectEnvContentHintRedisRestAPIReadOnlyToken + } + return nil +} + +func (o *EditProjectEnvResponseBody1) GetContentHintBlobReadWriteToken() *EditProjectEnvContentHintBlobReadWriteToken { + if v := o.GetContentHint(); v != nil { + return v.EditProjectEnvContentHintBlobReadWriteToken + } + return nil +} + +func (o *EditProjectEnvResponseBody1) GetContentHintPostgresURL() *EditProjectEnvContentHintPostgresURL { + if v := o.GetContentHint(); v != nil { + return v.EditProjectEnvContentHintPostgresURL + } + return nil +} + +func (o *EditProjectEnvResponseBody1) GetContentHintPostgresURLNonPooling() *EditProjectEnvContentHintPostgresURLNonPooling { + if v := o.GetContentHint(); v != nil { + return v.EditProjectEnvContentHintPostgresURLNonPooling + } + return nil +} + +func (o *EditProjectEnvResponseBody1) GetContentHintPostgresPrismaURL() *EditProjectEnvContentHintPostgresPrismaURL { + if v := o.GetContentHint(); v != nil { + return v.EditProjectEnvContentHintPostgresPrismaURL + } + return nil +} + +func (o *EditProjectEnvResponseBody1) GetContentHintPostgresUser() *EditProjectEnvContentHintPostgresUser { + if v := o.GetContentHint(); v != nil { + return v.EditProjectEnvContentHintPostgresUser + } + return nil +} + +func (o *EditProjectEnvResponseBody1) GetContentHintPostgresHost() *EditProjectEnvContentHintPostgresHost { + if v := o.GetContentHint(); v != nil { + return v.EditProjectEnvContentHintPostgresHost + } + return nil +} + +func (o *EditProjectEnvResponseBody1) GetContentHintPostgresPassword() *EditProjectEnvContentHintPostgresPassword { + if v := o.GetContentHint(); v != nil { + return v.EditProjectEnvContentHintPostgresPassword + } + return nil +} + +func (o *EditProjectEnvResponseBody1) GetContentHintPostgresDatabase() *EditProjectEnvContentHintPostgresDatabase { + if v := o.GetContentHint(); v != nil { + return v.EditProjectEnvContentHintPostgresDatabase + } + return nil +} + +func (o *EditProjectEnvResponseBody1) GetContentHintPostgresURLNoSsl() *EditProjectEnvContentHintPostgresURLNoSsl { + if v := o.GetContentHint(); v != nil { + return v.EditProjectEnvContentHintPostgresURLNoSsl + } + return nil +} + +func (o *EditProjectEnvResponseBody1) GetContentHintIntegrationStoreSecret() *EditProjectEnvContentHintIntegrationStoreSecret { + if v := o.GetContentHint(); v != nil { + return v.EditProjectEnvContentHintIntegrationStoreSecret + } + return nil +} + +func (o *EditProjectEnvResponseBody1) GetContentHintFlagsConnectionString() *EditProjectEnvContentHintFlagsConnectionString { + if v := o.GetContentHint(); v != nil { + return v.EditProjectEnvContentHintFlagsConnectionString + } + return nil +} + func (o *EditProjectEnvResponseBody1) GetInternalContentHint() *EditProjectEnvInternalContentHint { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/filterprojectenvs.go b/src/__tests__/mockserver/internal/sdk/models/operations/filterprojectenvs.go index 90f364e7..985a32e4 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/filterprojectenvs.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/filterprojectenvs.go @@ -1092,21 +1092,21 @@ func (o *FilterProjectEnvsContentHintEnvRedisURL2) GetStoreID() string { type FilterProjectEnvsEnvContentHintUnion2Type string const ( - FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvRedisURL2 FilterProjectEnvsEnvContentHintUnion2Type = "filterProjectEnvs_contentHint_env_RedisURL_2" - FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvRedisRestAPIURL2 FilterProjectEnvsEnvContentHintUnion2Type = "filterProjectEnvs_contentHint_env_RedisRestAPIURL_2" - FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvRedisRestAPIToken2 FilterProjectEnvsEnvContentHintUnion2Type = "filterProjectEnvs_contentHint_env_RedisRestAPIToken_2" - FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2 FilterProjectEnvsEnvContentHintUnion2Type = "filterProjectEnvs_contentHint_env_RedisRestAPIReadOnlyToken_2" - FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvBlobReadWriteToken2 FilterProjectEnvsEnvContentHintUnion2Type = "filterProjectEnvs_contentHint_env_BlobReadWriteToken_2" - FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresURL2 FilterProjectEnvsEnvContentHintUnion2Type = "filterProjectEnvs_contentHint_env_PostgresURL_2" - FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresURLNonPooling2 FilterProjectEnvsEnvContentHintUnion2Type = "filterProjectEnvs_contentHint_env_PostgresURLNonPooling_2" - FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresPrismaURL2 FilterProjectEnvsEnvContentHintUnion2Type = "filterProjectEnvs_contentHint_env_PostgresPrismaURL_2" - FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresUser2 FilterProjectEnvsEnvContentHintUnion2Type = "filterProjectEnvs_contentHint_env_PostgresUser_2" - FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresHost2 FilterProjectEnvsEnvContentHintUnion2Type = "filterProjectEnvs_contentHint_env_PostgresHost_2" - FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresPassword2 FilterProjectEnvsEnvContentHintUnion2Type = "filterProjectEnvs_contentHint_env_PostgresPassword_2" - FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresDatabase2 FilterProjectEnvsEnvContentHintUnion2Type = "filterProjectEnvs_contentHint_env_PostgresDatabase_2" - FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresURLNoSsl2 FilterProjectEnvsEnvContentHintUnion2Type = "filterProjectEnvs_contentHint_env_PostgresURLNoSsl_2" - FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvIntegrationStoreSecret2 FilterProjectEnvsEnvContentHintUnion2Type = "filterProjectEnvs_contentHint_env_IntegrationStoreSecret_2" - FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvFlagsConnectionString2 FilterProjectEnvsEnvContentHintUnion2Type = "filterProjectEnvs_contentHint_env_FlagsConnectionString_2" + FilterProjectEnvsEnvContentHintUnion2TypeRedisURL FilterProjectEnvsEnvContentHintUnion2Type = "redis-url" + FilterProjectEnvsEnvContentHintUnion2TypeRedisRestAPIURL FilterProjectEnvsEnvContentHintUnion2Type = "redis-rest-api-url" + FilterProjectEnvsEnvContentHintUnion2TypeRedisRestAPIToken FilterProjectEnvsEnvContentHintUnion2Type = "redis-rest-api-token" + FilterProjectEnvsEnvContentHintUnion2TypeRedisRestAPIReadOnlyToken FilterProjectEnvsEnvContentHintUnion2Type = "redis-rest-api-read-only-token" + FilterProjectEnvsEnvContentHintUnion2TypeBlobReadWriteToken FilterProjectEnvsEnvContentHintUnion2Type = "blob-read-write-token" + FilterProjectEnvsEnvContentHintUnion2TypePostgresURL FilterProjectEnvsEnvContentHintUnion2Type = "postgres-url" + FilterProjectEnvsEnvContentHintUnion2TypePostgresURLNonPooling FilterProjectEnvsEnvContentHintUnion2Type = "postgres-url-non-pooling" + FilterProjectEnvsEnvContentHintUnion2TypePostgresPrismaURL FilterProjectEnvsEnvContentHintUnion2Type = "postgres-prisma-url" + FilterProjectEnvsEnvContentHintUnion2TypePostgresUser FilterProjectEnvsEnvContentHintUnion2Type = "postgres-user" + FilterProjectEnvsEnvContentHintUnion2TypePostgresHost FilterProjectEnvsEnvContentHintUnion2Type = "postgres-host" + FilterProjectEnvsEnvContentHintUnion2TypePostgresPassword FilterProjectEnvsEnvContentHintUnion2Type = "postgres-password" + FilterProjectEnvsEnvContentHintUnion2TypePostgresDatabase FilterProjectEnvsEnvContentHintUnion2Type = "postgres-database" + FilterProjectEnvsEnvContentHintUnion2TypePostgresURLNoSsl FilterProjectEnvsEnvContentHintUnion2Type = "postgres-url-no-ssl" + FilterProjectEnvsEnvContentHintUnion2TypeIntegrationStoreSecret FilterProjectEnvsEnvContentHintUnion2Type = "integration-store-secret" + FilterProjectEnvsEnvContentHintUnion2TypeFlagsConnectionString FilterProjectEnvsEnvContentHintUnion2Type = "flags-connection-string" ) type FilterProjectEnvsEnvContentHintUnion2 struct { @@ -1129,245 +1129,332 @@ type FilterProjectEnvsEnvContentHintUnion2 struct { Type FilterProjectEnvsEnvContentHintUnion2Type } -func CreateFilterProjectEnvsEnvContentHintUnion2FilterProjectEnvsContentHintEnvRedisURL2(filterProjectEnvsContentHintEnvRedisURL2 FilterProjectEnvsContentHintEnvRedisURL2) FilterProjectEnvsEnvContentHintUnion2 { - typ := FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvRedisURL2 +func CreateFilterProjectEnvsEnvContentHintUnion2RedisURL(redisURL FilterProjectEnvsContentHintEnvRedisURL2) FilterProjectEnvsEnvContentHintUnion2 { + typ := FilterProjectEnvsEnvContentHintUnion2TypeRedisURL + + typStr := FilterProjectEnvsEnvTypeRedisURL2(typ) + redisURL.Type = typStr return FilterProjectEnvsEnvContentHintUnion2{ - FilterProjectEnvsContentHintEnvRedisURL2: &filterProjectEnvsContentHintEnvRedisURL2, + FilterProjectEnvsContentHintEnvRedisURL2: &redisURL, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion2FilterProjectEnvsContentHintEnvRedisRestAPIURL2(filterProjectEnvsContentHintEnvRedisRestAPIURL2 FilterProjectEnvsContentHintEnvRedisRestAPIURL2) FilterProjectEnvsEnvContentHintUnion2 { - typ := FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvRedisRestAPIURL2 +func CreateFilterProjectEnvsEnvContentHintUnion2RedisRestAPIURL(redisRestAPIURL FilterProjectEnvsContentHintEnvRedisRestAPIURL2) FilterProjectEnvsEnvContentHintUnion2 { + typ := FilterProjectEnvsEnvContentHintUnion2TypeRedisRestAPIURL + + typStr := FilterProjectEnvsEnvTypeRedisRestAPIURL2(typ) + redisRestAPIURL.Type = typStr return FilterProjectEnvsEnvContentHintUnion2{ - FilterProjectEnvsContentHintEnvRedisRestAPIURL2: &filterProjectEnvsContentHintEnvRedisRestAPIURL2, + FilterProjectEnvsContentHintEnvRedisRestAPIURL2: &redisRestAPIURL, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion2FilterProjectEnvsContentHintEnvRedisRestAPIToken2(filterProjectEnvsContentHintEnvRedisRestAPIToken2 FilterProjectEnvsContentHintEnvRedisRestAPIToken2) FilterProjectEnvsEnvContentHintUnion2 { - typ := FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvRedisRestAPIToken2 +func CreateFilterProjectEnvsEnvContentHintUnion2RedisRestAPIToken(redisRestAPIToken FilterProjectEnvsContentHintEnvRedisRestAPIToken2) FilterProjectEnvsEnvContentHintUnion2 { + typ := FilterProjectEnvsEnvContentHintUnion2TypeRedisRestAPIToken + + typStr := FilterProjectEnvsEnvTypeRedisRestAPIToken2(typ) + redisRestAPIToken.Type = typStr return FilterProjectEnvsEnvContentHintUnion2{ - FilterProjectEnvsContentHintEnvRedisRestAPIToken2: &filterProjectEnvsContentHintEnvRedisRestAPIToken2, + FilterProjectEnvsContentHintEnvRedisRestAPIToken2: &redisRestAPIToken, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion2FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2(filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2 FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2) FilterProjectEnvsEnvContentHintUnion2 { - typ := FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2 +func CreateFilterProjectEnvsEnvContentHintUnion2RedisRestAPIReadOnlyToken(redisRestAPIReadOnlyToken FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2) FilterProjectEnvsEnvContentHintUnion2 { + typ := FilterProjectEnvsEnvContentHintUnion2TypeRedisRestAPIReadOnlyToken + + typStr := FilterProjectEnvsEnvTypeRedisRestAPIReadOnlyToken2(typ) + redisRestAPIReadOnlyToken.Type = typStr return FilterProjectEnvsEnvContentHintUnion2{ - FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2: &filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2, + FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2: &redisRestAPIReadOnlyToken, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion2FilterProjectEnvsContentHintEnvBlobReadWriteToken2(filterProjectEnvsContentHintEnvBlobReadWriteToken2 FilterProjectEnvsContentHintEnvBlobReadWriteToken2) FilterProjectEnvsEnvContentHintUnion2 { - typ := FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvBlobReadWriteToken2 +func CreateFilterProjectEnvsEnvContentHintUnion2BlobReadWriteToken(blobReadWriteToken FilterProjectEnvsContentHintEnvBlobReadWriteToken2) FilterProjectEnvsEnvContentHintUnion2 { + typ := FilterProjectEnvsEnvContentHintUnion2TypeBlobReadWriteToken + + typStr := FilterProjectEnvsEnvTypeBlobReadWriteToken2(typ) + blobReadWriteToken.Type = typStr return FilterProjectEnvsEnvContentHintUnion2{ - FilterProjectEnvsContentHintEnvBlobReadWriteToken2: &filterProjectEnvsContentHintEnvBlobReadWriteToken2, + FilterProjectEnvsContentHintEnvBlobReadWriteToken2: &blobReadWriteToken, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion2FilterProjectEnvsContentHintEnvPostgresURL2(filterProjectEnvsContentHintEnvPostgresURL2 FilterProjectEnvsContentHintEnvPostgresURL2) FilterProjectEnvsEnvContentHintUnion2 { - typ := FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresURL2 +func CreateFilterProjectEnvsEnvContentHintUnion2PostgresURL(postgresURL FilterProjectEnvsContentHintEnvPostgresURL2) FilterProjectEnvsEnvContentHintUnion2 { + typ := FilterProjectEnvsEnvContentHintUnion2TypePostgresURL + + typStr := FilterProjectEnvsEnvTypePostgresURL2(typ) + postgresURL.Type = typStr return FilterProjectEnvsEnvContentHintUnion2{ - FilterProjectEnvsContentHintEnvPostgresURL2: &filterProjectEnvsContentHintEnvPostgresURL2, + FilterProjectEnvsContentHintEnvPostgresURL2: &postgresURL, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion2FilterProjectEnvsContentHintEnvPostgresURLNonPooling2(filterProjectEnvsContentHintEnvPostgresURLNonPooling2 FilterProjectEnvsContentHintEnvPostgresURLNonPooling2) FilterProjectEnvsEnvContentHintUnion2 { - typ := FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresURLNonPooling2 +func CreateFilterProjectEnvsEnvContentHintUnion2PostgresURLNonPooling(postgresURLNonPooling FilterProjectEnvsContentHintEnvPostgresURLNonPooling2) FilterProjectEnvsEnvContentHintUnion2 { + typ := FilterProjectEnvsEnvContentHintUnion2TypePostgresURLNonPooling + + typStr := FilterProjectEnvsEnvTypePostgresURLNonPooling2(typ) + postgresURLNonPooling.Type = typStr return FilterProjectEnvsEnvContentHintUnion2{ - FilterProjectEnvsContentHintEnvPostgresURLNonPooling2: &filterProjectEnvsContentHintEnvPostgresURLNonPooling2, + FilterProjectEnvsContentHintEnvPostgresURLNonPooling2: &postgresURLNonPooling, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion2FilterProjectEnvsContentHintEnvPostgresPrismaURL2(filterProjectEnvsContentHintEnvPostgresPrismaURL2 FilterProjectEnvsContentHintEnvPostgresPrismaURL2) FilterProjectEnvsEnvContentHintUnion2 { - typ := FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresPrismaURL2 +func CreateFilterProjectEnvsEnvContentHintUnion2PostgresPrismaURL(postgresPrismaURL FilterProjectEnvsContentHintEnvPostgresPrismaURL2) FilterProjectEnvsEnvContentHintUnion2 { + typ := FilterProjectEnvsEnvContentHintUnion2TypePostgresPrismaURL + + typStr := FilterProjectEnvsEnvTypePostgresPrismaURL2(typ) + postgresPrismaURL.Type = typStr return FilterProjectEnvsEnvContentHintUnion2{ - FilterProjectEnvsContentHintEnvPostgresPrismaURL2: &filterProjectEnvsContentHintEnvPostgresPrismaURL2, + FilterProjectEnvsContentHintEnvPostgresPrismaURL2: &postgresPrismaURL, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion2FilterProjectEnvsContentHintEnvPostgresUser2(filterProjectEnvsContentHintEnvPostgresUser2 FilterProjectEnvsContentHintEnvPostgresUser2) FilterProjectEnvsEnvContentHintUnion2 { - typ := FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresUser2 +func CreateFilterProjectEnvsEnvContentHintUnion2PostgresUser(postgresUser FilterProjectEnvsContentHintEnvPostgresUser2) FilterProjectEnvsEnvContentHintUnion2 { + typ := FilterProjectEnvsEnvContentHintUnion2TypePostgresUser + + typStr := FilterProjectEnvsEnvTypePostgresUser2(typ) + postgresUser.Type = typStr return FilterProjectEnvsEnvContentHintUnion2{ - FilterProjectEnvsContentHintEnvPostgresUser2: &filterProjectEnvsContentHintEnvPostgresUser2, + FilterProjectEnvsContentHintEnvPostgresUser2: &postgresUser, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion2FilterProjectEnvsContentHintEnvPostgresHost2(filterProjectEnvsContentHintEnvPostgresHost2 FilterProjectEnvsContentHintEnvPostgresHost2) FilterProjectEnvsEnvContentHintUnion2 { - typ := FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresHost2 +func CreateFilterProjectEnvsEnvContentHintUnion2PostgresHost(postgresHost FilterProjectEnvsContentHintEnvPostgresHost2) FilterProjectEnvsEnvContentHintUnion2 { + typ := FilterProjectEnvsEnvContentHintUnion2TypePostgresHost + + typStr := FilterProjectEnvsEnvTypePostgresHost2(typ) + postgresHost.Type = typStr return FilterProjectEnvsEnvContentHintUnion2{ - FilterProjectEnvsContentHintEnvPostgresHost2: &filterProjectEnvsContentHintEnvPostgresHost2, + FilterProjectEnvsContentHintEnvPostgresHost2: &postgresHost, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion2FilterProjectEnvsContentHintEnvPostgresPassword2(filterProjectEnvsContentHintEnvPostgresPassword2 FilterProjectEnvsContentHintEnvPostgresPassword2) FilterProjectEnvsEnvContentHintUnion2 { - typ := FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresPassword2 +func CreateFilterProjectEnvsEnvContentHintUnion2PostgresPassword(postgresPassword FilterProjectEnvsContentHintEnvPostgresPassword2) FilterProjectEnvsEnvContentHintUnion2 { + typ := FilterProjectEnvsEnvContentHintUnion2TypePostgresPassword + + typStr := FilterProjectEnvsEnvTypePostgresPassword2(typ) + postgresPassword.Type = typStr return FilterProjectEnvsEnvContentHintUnion2{ - FilterProjectEnvsContentHintEnvPostgresPassword2: &filterProjectEnvsContentHintEnvPostgresPassword2, + FilterProjectEnvsContentHintEnvPostgresPassword2: &postgresPassword, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion2FilterProjectEnvsContentHintEnvPostgresDatabase2(filterProjectEnvsContentHintEnvPostgresDatabase2 FilterProjectEnvsContentHintEnvPostgresDatabase2) FilterProjectEnvsEnvContentHintUnion2 { - typ := FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresDatabase2 +func CreateFilterProjectEnvsEnvContentHintUnion2PostgresDatabase(postgresDatabase FilterProjectEnvsContentHintEnvPostgresDatabase2) FilterProjectEnvsEnvContentHintUnion2 { + typ := FilterProjectEnvsEnvContentHintUnion2TypePostgresDatabase + + typStr := FilterProjectEnvsEnvTypePostgresDatabase2(typ) + postgresDatabase.Type = typStr return FilterProjectEnvsEnvContentHintUnion2{ - FilterProjectEnvsContentHintEnvPostgresDatabase2: &filterProjectEnvsContentHintEnvPostgresDatabase2, + FilterProjectEnvsContentHintEnvPostgresDatabase2: &postgresDatabase, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion2FilterProjectEnvsContentHintEnvPostgresURLNoSsl2(filterProjectEnvsContentHintEnvPostgresURLNoSsl2 FilterProjectEnvsContentHintEnvPostgresURLNoSsl2) FilterProjectEnvsEnvContentHintUnion2 { - typ := FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresURLNoSsl2 +func CreateFilterProjectEnvsEnvContentHintUnion2PostgresURLNoSsl(postgresURLNoSsl FilterProjectEnvsContentHintEnvPostgresURLNoSsl2) FilterProjectEnvsEnvContentHintUnion2 { + typ := FilterProjectEnvsEnvContentHintUnion2TypePostgresURLNoSsl + + typStr := FilterProjectEnvsEnvTypePostgresURLNoSsl2(typ) + postgresURLNoSsl.Type = typStr return FilterProjectEnvsEnvContentHintUnion2{ - FilterProjectEnvsContentHintEnvPostgresURLNoSsl2: &filterProjectEnvsContentHintEnvPostgresURLNoSsl2, + FilterProjectEnvsContentHintEnvPostgresURLNoSsl2: &postgresURLNoSsl, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion2FilterProjectEnvsContentHintEnvIntegrationStoreSecret2(filterProjectEnvsContentHintEnvIntegrationStoreSecret2 FilterProjectEnvsContentHintEnvIntegrationStoreSecret2) FilterProjectEnvsEnvContentHintUnion2 { - typ := FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvIntegrationStoreSecret2 +func CreateFilterProjectEnvsEnvContentHintUnion2IntegrationStoreSecret(integrationStoreSecret FilterProjectEnvsContentHintEnvIntegrationStoreSecret2) FilterProjectEnvsEnvContentHintUnion2 { + typ := FilterProjectEnvsEnvContentHintUnion2TypeIntegrationStoreSecret + + typStr := FilterProjectEnvsEnvTypeIntegrationStoreSecret2(typ) + integrationStoreSecret.Type = typStr return FilterProjectEnvsEnvContentHintUnion2{ - FilterProjectEnvsContentHintEnvIntegrationStoreSecret2: &filterProjectEnvsContentHintEnvIntegrationStoreSecret2, + FilterProjectEnvsContentHintEnvIntegrationStoreSecret2: &integrationStoreSecret, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion2FilterProjectEnvsContentHintEnvFlagsConnectionString2(filterProjectEnvsContentHintEnvFlagsConnectionString2 FilterProjectEnvsContentHintEnvFlagsConnectionString2) FilterProjectEnvsEnvContentHintUnion2 { - typ := FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvFlagsConnectionString2 +func CreateFilterProjectEnvsEnvContentHintUnion2FlagsConnectionString(flagsConnectionString FilterProjectEnvsContentHintEnvFlagsConnectionString2) FilterProjectEnvsEnvContentHintUnion2 { + typ := FilterProjectEnvsEnvContentHintUnion2TypeFlagsConnectionString + + typStr := FilterProjectEnvsEnvTypeFlagsConnectionString2(typ) + flagsConnectionString.Type = typStr return FilterProjectEnvsEnvContentHintUnion2{ - FilterProjectEnvsContentHintEnvFlagsConnectionString2: &filterProjectEnvsContentHintEnvFlagsConnectionString2, + FilterProjectEnvsContentHintEnvFlagsConnectionString2: &flagsConnectionString, Type: typ, } } func (u *FilterProjectEnvsEnvContentHintUnion2) UnmarshalJSON(data []byte) error { - var filterProjectEnvsContentHintEnvIntegrationStoreSecret2 FilterProjectEnvsContentHintEnvIntegrationStoreSecret2 = FilterProjectEnvsContentHintEnvIntegrationStoreSecret2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvIntegrationStoreSecret2, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvIntegrationStoreSecret2 = &filterProjectEnvsContentHintEnvIntegrationStoreSecret2 - u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvIntegrationStoreSecret2 - return nil + type discriminator struct { + Type string `json:"type"` } - var filterProjectEnvsContentHintEnvRedisURL2 FilterProjectEnvsContentHintEnvRedisURL2 = FilterProjectEnvsContentHintEnvRedisURL2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisURL2, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvRedisURL2 = &filterProjectEnvsContentHintEnvRedisURL2 - u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvRedisURL2 - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var filterProjectEnvsContentHintEnvRedisRestAPIURL2 FilterProjectEnvsContentHintEnvRedisRestAPIURL2 = FilterProjectEnvsContentHintEnvRedisRestAPIURL2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIURL2, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvRedisRestAPIURL2 = &filterProjectEnvsContentHintEnvRedisRestAPIURL2 - u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvRedisRestAPIURL2 + switch dis.Type { + case "redis-url": + filterProjectEnvsContentHintEnvRedisURL2 := new(FilterProjectEnvsContentHintEnvRedisURL2) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisURL2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-url) type FilterProjectEnvsContentHintEnvRedisURL2 within FilterProjectEnvsEnvContentHintUnion2: %w", string(data), err) + } + + u.FilterProjectEnvsContentHintEnvRedisURL2 = filterProjectEnvsContentHintEnvRedisURL2 + u.Type = FilterProjectEnvsEnvContentHintUnion2TypeRedisURL return nil - } + case "redis-rest-api-url": + filterProjectEnvsContentHintEnvRedisRestAPIURL2 := new(FilterProjectEnvsContentHintEnvRedisRestAPIURL2) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIURL2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-url) type FilterProjectEnvsContentHintEnvRedisRestAPIURL2 within FilterProjectEnvsEnvContentHintUnion2: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvRedisRestAPIToken2 FilterProjectEnvsContentHintEnvRedisRestAPIToken2 = FilterProjectEnvsContentHintEnvRedisRestAPIToken2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIToken2, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvRedisRestAPIToken2 = &filterProjectEnvsContentHintEnvRedisRestAPIToken2 - u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvRedisRestAPIToken2 + u.FilterProjectEnvsContentHintEnvRedisRestAPIURL2 = filterProjectEnvsContentHintEnvRedisRestAPIURL2 + u.Type = FilterProjectEnvsEnvContentHintUnion2TypeRedisRestAPIURL return nil - } + case "redis-rest-api-token": + filterProjectEnvsContentHintEnvRedisRestAPIToken2 := new(FilterProjectEnvsContentHintEnvRedisRestAPIToken2) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIToken2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-token) type FilterProjectEnvsContentHintEnvRedisRestAPIToken2 within FilterProjectEnvsEnvContentHintUnion2: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2 FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2 = FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2 = &filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2 - u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2 + u.FilterProjectEnvsContentHintEnvRedisRestAPIToken2 = filterProjectEnvsContentHintEnvRedisRestAPIToken2 + u.Type = FilterProjectEnvsEnvContentHintUnion2TypeRedisRestAPIToken return nil - } + case "redis-rest-api-read-only-token": + filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2 := new(FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-read-only-token) type FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2 within FilterProjectEnvsEnvContentHintUnion2: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvBlobReadWriteToken2 FilterProjectEnvsContentHintEnvBlobReadWriteToken2 = FilterProjectEnvsContentHintEnvBlobReadWriteToken2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvBlobReadWriteToken2, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvBlobReadWriteToken2 = &filterProjectEnvsContentHintEnvBlobReadWriteToken2 - u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvBlobReadWriteToken2 + u.FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2 = filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2 + u.Type = FilterProjectEnvsEnvContentHintUnion2TypeRedisRestAPIReadOnlyToken return nil - } + case "blob-read-write-token": + filterProjectEnvsContentHintEnvBlobReadWriteToken2 := new(FilterProjectEnvsContentHintEnvBlobReadWriteToken2) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvBlobReadWriteToken2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == blob-read-write-token) type FilterProjectEnvsContentHintEnvBlobReadWriteToken2 within FilterProjectEnvsEnvContentHintUnion2: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvPostgresURL2 FilterProjectEnvsContentHintEnvPostgresURL2 = FilterProjectEnvsContentHintEnvPostgresURL2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURL2, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresURL2 = &filterProjectEnvsContentHintEnvPostgresURL2 - u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresURL2 + u.FilterProjectEnvsContentHintEnvBlobReadWriteToken2 = filterProjectEnvsContentHintEnvBlobReadWriteToken2 + u.Type = FilterProjectEnvsEnvContentHintUnion2TypeBlobReadWriteToken return nil - } + case "postgres-url": + filterProjectEnvsContentHintEnvPostgresURL2 := new(FilterProjectEnvsContentHintEnvPostgresURL2) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURL2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url) type FilterProjectEnvsContentHintEnvPostgresURL2 within FilterProjectEnvsEnvContentHintUnion2: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvPostgresURLNonPooling2 FilterProjectEnvsContentHintEnvPostgresURLNonPooling2 = FilterProjectEnvsContentHintEnvPostgresURLNonPooling2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURLNonPooling2, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresURLNonPooling2 = &filterProjectEnvsContentHintEnvPostgresURLNonPooling2 - u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresURLNonPooling2 + u.FilterProjectEnvsContentHintEnvPostgresURL2 = filterProjectEnvsContentHintEnvPostgresURL2 + u.Type = FilterProjectEnvsEnvContentHintUnion2TypePostgresURL return nil - } + case "postgres-url-non-pooling": + filterProjectEnvsContentHintEnvPostgresURLNonPooling2 := new(FilterProjectEnvsContentHintEnvPostgresURLNonPooling2) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURLNonPooling2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-non-pooling) type FilterProjectEnvsContentHintEnvPostgresURLNonPooling2 within FilterProjectEnvsEnvContentHintUnion2: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvPostgresPrismaURL2 FilterProjectEnvsContentHintEnvPostgresPrismaURL2 = FilterProjectEnvsContentHintEnvPostgresPrismaURL2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresPrismaURL2, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresPrismaURL2 = &filterProjectEnvsContentHintEnvPostgresPrismaURL2 - u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresPrismaURL2 + u.FilterProjectEnvsContentHintEnvPostgresURLNonPooling2 = filterProjectEnvsContentHintEnvPostgresURLNonPooling2 + u.Type = FilterProjectEnvsEnvContentHintUnion2TypePostgresURLNonPooling return nil - } + case "postgres-prisma-url": + filterProjectEnvsContentHintEnvPostgresPrismaURL2 := new(FilterProjectEnvsContentHintEnvPostgresPrismaURL2) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresPrismaURL2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-prisma-url) type FilterProjectEnvsContentHintEnvPostgresPrismaURL2 within FilterProjectEnvsEnvContentHintUnion2: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvPostgresUser2 FilterProjectEnvsContentHintEnvPostgresUser2 = FilterProjectEnvsContentHintEnvPostgresUser2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresUser2, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresUser2 = &filterProjectEnvsContentHintEnvPostgresUser2 - u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresUser2 + u.FilterProjectEnvsContentHintEnvPostgresPrismaURL2 = filterProjectEnvsContentHintEnvPostgresPrismaURL2 + u.Type = FilterProjectEnvsEnvContentHintUnion2TypePostgresPrismaURL return nil - } + case "postgres-user": + filterProjectEnvsContentHintEnvPostgresUser2 := new(FilterProjectEnvsContentHintEnvPostgresUser2) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresUser2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-user) type FilterProjectEnvsContentHintEnvPostgresUser2 within FilterProjectEnvsEnvContentHintUnion2: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvPostgresHost2 FilterProjectEnvsContentHintEnvPostgresHost2 = FilterProjectEnvsContentHintEnvPostgresHost2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresHost2, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresHost2 = &filterProjectEnvsContentHintEnvPostgresHost2 - u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresHost2 + u.FilterProjectEnvsContentHintEnvPostgresUser2 = filterProjectEnvsContentHintEnvPostgresUser2 + u.Type = FilterProjectEnvsEnvContentHintUnion2TypePostgresUser return nil - } + case "postgres-host": + filterProjectEnvsContentHintEnvPostgresHost2 := new(FilterProjectEnvsContentHintEnvPostgresHost2) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresHost2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-host) type FilterProjectEnvsContentHintEnvPostgresHost2 within FilterProjectEnvsEnvContentHintUnion2: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvPostgresPassword2 FilterProjectEnvsContentHintEnvPostgresPassword2 = FilterProjectEnvsContentHintEnvPostgresPassword2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresPassword2, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresPassword2 = &filterProjectEnvsContentHintEnvPostgresPassword2 - u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresPassword2 + u.FilterProjectEnvsContentHintEnvPostgresHost2 = filterProjectEnvsContentHintEnvPostgresHost2 + u.Type = FilterProjectEnvsEnvContentHintUnion2TypePostgresHost return nil - } + case "postgres-password": + filterProjectEnvsContentHintEnvPostgresPassword2 := new(FilterProjectEnvsContentHintEnvPostgresPassword2) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresPassword2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-password) type FilterProjectEnvsContentHintEnvPostgresPassword2 within FilterProjectEnvsEnvContentHintUnion2: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvPostgresDatabase2 FilterProjectEnvsContentHintEnvPostgresDatabase2 = FilterProjectEnvsContentHintEnvPostgresDatabase2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresDatabase2, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresDatabase2 = &filterProjectEnvsContentHintEnvPostgresDatabase2 - u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresDatabase2 + u.FilterProjectEnvsContentHintEnvPostgresPassword2 = filterProjectEnvsContentHintEnvPostgresPassword2 + u.Type = FilterProjectEnvsEnvContentHintUnion2TypePostgresPassword return nil - } + case "postgres-database": + filterProjectEnvsContentHintEnvPostgresDatabase2 := new(FilterProjectEnvsContentHintEnvPostgresDatabase2) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresDatabase2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-database) type FilterProjectEnvsContentHintEnvPostgresDatabase2 within FilterProjectEnvsEnvContentHintUnion2: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvPostgresURLNoSsl2 FilterProjectEnvsContentHintEnvPostgresURLNoSsl2 = FilterProjectEnvsContentHintEnvPostgresURLNoSsl2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURLNoSsl2, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresURLNoSsl2 = &filterProjectEnvsContentHintEnvPostgresURLNoSsl2 - u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresURLNoSsl2 + u.FilterProjectEnvsContentHintEnvPostgresDatabase2 = filterProjectEnvsContentHintEnvPostgresDatabase2 + u.Type = FilterProjectEnvsEnvContentHintUnion2TypePostgresDatabase return nil - } + case "postgres-url-no-ssl": + filterProjectEnvsContentHintEnvPostgresURLNoSsl2 := new(FilterProjectEnvsContentHintEnvPostgresURLNoSsl2) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURLNoSsl2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-no-ssl) type FilterProjectEnvsContentHintEnvPostgresURLNoSsl2 within FilterProjectEnvsEnvContentHintUnion2: %w", string(data), err) + } + + u.FilterProjectEnvsContentHintEnvPostgresURLNoSsl2 = filterProjectEnvsContentHintEnvPostgresURLNoSsl2 + u.Type = FilterProjectEnvsEnvContentHintUnion2TypePostgresURLNoSsl + return nil + case "integration-store-secret": + filterProjectEnvsContentHintEnvIntegrationStoreSecret2 := new(FilterProjectEnvsContentHintEnvIntegrationStoreSecret2) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvIntegrationStoreSecret2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == integration-store-secret) type FilterProjectEnvsContentHintEnvIntegrationStoreSecret2 within FilterProjectEnvsEnvContentHintUnion2: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvFlagsConnectionString2 FilterProjectEnvsContentHintEnvFlagsConnectionString2 = FilterProjectEnvsContentHintEnvFlagsConnectionString2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvFlagsConnectionString2, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvFlagsConnectionString2 = &filterProjectEnvsContentHintEnvFlagsConnectionString2 - u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvFlagsConnectionString2 + u.FilterProjectEnvsContentHintEnvIntegrationStoreSecret2 = filterProjectEnvsContentHintEnvIntegrationStoreSecret2 + u.Type = FilterProjectEnvsEnvContentHintUnion2TypeIntegrationStoreSecret + return nil + case "flags-connection-string": + filterProjectEnvsContentHintEnvFlagsConnectionString2 := new(FilterProjectEnvsContentHintEnvFlagsConnectionString2) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvFlagsConnectionString2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == flags-connection-string) type FilterProjectEnvsContentHintEnvFlagsConnectionString2 within FilterProjectEnvsEnvContentHintUnion2: %w", string(data), err) + } + + u.FilterProjectEnvsContentHintEnvFlagsConnectionString2 = filterProjectEnvsContentHintEnvFlagsConnectionString2 + u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFlagsConnectionString return nil } @@ -1649,6 +1736,111 @@ func (o *FilterProjectEnvsEnv2) GetContentHint() *FilterProjectEnvsEnvContentHin return o.ContentHint } +func (o *FilterProjectEnvsEnv2) GetContentHintRedisURL() *FilterProjectEnvsContentHintEnvRedisURL2 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvRedisURL2 + } + return nil +} + +func (o *FilterProjectEnvsEnv2) GetContentHintRedisRestAPIURL() *FilterProjectEnvsContentHintEnvRedisRestAPIURL2 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvRedisRestAPIURL2 + } + return nil +} + +func (o *FilterProjectEnvsEnv2) GetContentHintRedisRestAPIToken() *FilterProjectEnvsContentHintEnvRedisRestAPIToken2 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvRedisRestAPIToken2 + } + return nil +} + +func (o *FilterProjectEnvsEnv2) GetContentHintRedisRestAPIReadOnlyToken() *FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2 + } + return nil +} + +func (o *FilterProjectEnvsEnv2) GetContentHintBlobReadWriteToken() *FilterProjectEnvsContentHintEnvBlobReadWriteToken2 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvBlobReadWriteToken2 + } + return nil +} + +func (o *FilterProjectEnvsEnv2) GetContentHintPostgresURL() *FilterProjectEnvsContentHintEnvPostgresURL2 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvPostgresURL2 + } + return nil +} + +func (o *FilterProjectEnvsEnv2) GetContentHintPostgresURLNonPooling() *FilterProjectEnvsContentHintEnvPostgresURLNonPooling2 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvPostgresURLNonPooling2 + } + return nil +} + +func (o *FilterProjectEnvsEnv2) GetContentHintPostgresPrismaURL() *FilterProjectEnvsContentHintEnvPostgresPrismaURL2 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvPostgresPrismaURL2 + } + return nil +} + +func (o *FilterProjectEnvsEnv2) GetContentHintPostgresUser() *FilterProjectEnvsContentHintEnvPostgresUser2 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvPostgresUser2 + } + return nil +} + +func (o *FilterProjectEnvsEnv2) GetContentHintPostgresHost() *FilterProjectEnvsContentHintEnvPostgresHost2 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvPostgresHost2 + } + return nil +} + +func (o *FilterProjectEnvsEnv2) GetContentHintPostgresPassword() *FilterProjectEnvsContentHintEnvPostgresPassword2 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvPostgresPassword2 + } + return nil +} + +func (o *FilterProjectEnvsEnv2) GetContentHintPostgresDatabase() *FilterProjectEnvsContentHintEnvPostgresDatabase2 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvPostgresDatabase2 + } + return nil +} + +func (o *FilterProjectEnvsEnv2) GetContentHintPostgresURLNoSsl() *FilterProjectEnvsContentHintEnvPostgresURLNoSsl2 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvPostgresURLNoSsl2 + } + return nil +} + +func (o *FilterProjectEnvsEnv2) GetContentHintIntegrationStoreSecret() *FilterProjectEnvsContentHintEnvIntegrationStoreSecret2 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvIntegrationStoreSecret2 + } + return nil +} + +func (o *FilterProjectEnvsEnv2) GetContentHintFlagsConnectionString() *FilterProjectEnvsContentHintEnvFlagsConnectionString2 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvFlagsConnectionString2 + } + return nil +} + func (o *FilterProjectEnvsEnv2) GetInternalContentHint() *FilterProjectEnvsEnvInternalContentHint2 { if o == nil { return nil @@ -2678,21 +2870,21 @@ func (o *FilterProjectEnvsContentHintEnvRedisURL1) GetStoreID() string { type FilterProjectEnvsEnvContentHintUnion1Type string const ( - FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvRedisURL1 FilterProjectEnvsEnvContentHintUnion1Type = "filterProjectEnvs_contentHint_env_RedisURL_1" - FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvRedisRestAPIURL1 FilterProjectEnvsEnvContentHintUnion1Type = "filterProjectEnvs_contentHint_env_RedisRestAPIURL_1" - FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvRedisRestAPIToken1 FilterProjectEnvsEnvContentHintUnion1Type = "filterProjectEnvs_contentHint_env_RedisRestAPIToken_1" - FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1 FilterProjectEnvsEnvContentHintUnion1Type = "filterProjectEnvs_contentHint_env_RedisRestAPIReadOnlyToken_1" - FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvBlobReadWriteToken1 FilterProjectEnvsEnvContentHintUnion1Type = "filterProjectEnvs_contentHint_env_BlobReadWriteToken_1" - FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresURL1 FilterProjectEnvsEnvContentHintUnion1Type = "filterProjectEnvs_contentHint_env_PostgresURL_1" - FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresURLNonPooling1 FilterProjectEnvsEnvContentHintUnion1Type = "filterProjectEnvs_contentHint_env_PostgresURLNonPooling_1" - FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresPrismaURL1 FilterProjectEnvsEnvContentHintUnion1Type = "filterProjectEnvs_contentHint_env_PostgresPrismaURL_1" - FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresUser1 FilterProjectEnvsEnvContentHintUnion1Type = "filterProjectEnvs_contentHint_env_PostgresUser_1" - FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresHost1 FilterProjectEnvsEnvContentHintUnion1Type = "filterProjectEnvs_contentHint_env_PostgresHost_1" - FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresPassword1 FilterProjectEnvsEnvContentHintUnion1Type = "filterProjectEnvs_contentHint_env_PostgresPassword_1" - FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresDatabase1 FilterProjectEnvsEnvContentHintUnion1Type = "filterProjectEnvs_contentHint_env_PostgresDatabase_1" - FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresURLNoSsl1 FilterProjectEnvsEnvContentHintUnion1Type = "filterProjectEnvs_contentHint_env_PostgresURLNoSsl_1" - FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvIntegrationStoreSecret1 FilterProjectEnvsEnvContentHintUnion1Type = "filterProjectEnvs_contentHint_env_IntegrationStoreSecret_1" - FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvFlagsConnectionString1 FilterProjectEnvsEnvContentHintUnion1Type = "filterProjectEnvs_contentHint_env_FlagsConnectionString_1" + FilterProjectEnvsEnvContentHintUnion1TypeRedisURL FilterProjectEnvsEnvContentHintUnion1Type = "redis-url" + FilterProjectEnvsEnvContentHintUnion1TypeRedisRestAPIURL FilterProjectEnvsEnvContentHintUnion1Type = "redis-rest-api-url" + FilterProjectEnvsEnvContentHintUnion1TypeRedisRestAPIToken FilterProjectEnvsEnvContentHintUnion1Type = "redis-rest-api-token" + FilterProjectEnvsEnvContentHintUnion1TypeRedisRestAPIReadOnlyToken FilterProjectEnvsEnvContentHintUnion1Type = "redis-rest-api-read-only-token" + FilterProjectEnvsEnvContentHintUnion1TypeBlobReadWriteToken FilterProjectEnvsEnvContentHintUnion1Type = "blob-read-write-token" + FilterProjectEnvsEnvContentHintUnion1TypePostgresURL FilterProjectEnvsEnvContentHintUnion1Type = "postgres-url" + FilterProjectEnvsEnvContentHintUnion1TypePostgresURLNonPooling FilterProjectEnvsEnvContentHintUnion1Type = "postgres-url-non-pooling" + FilterProjectEnvsEnvContentHintUnion1TypePostgresPrismaURL FilterProjectEnvsEnvContentHintUnion1Type = "postgres-prisma-url" + FilterProjectEnvsEnvContentHintUnion1TypePostgresUser FilterProjectEnvsEnvContentHintUnion1Type = "postgres-user" + FilterProjectEnvsEnvContentHintUnion1TypePostgresHost FilterProjectEnvsEnvContentHintUnion1Type = "postgres-host" + FilterProjectEnvsEnvContentHintUnion1TypePostgresPassword FilterProjectEnvsEnvContentHintUnion1Type = "postgres-password" + FilterProjectEnvsEnvContentHintUnion1TypePostgresDatabase FilterProjectEnvsEnvContentHintUnion1Type = "postgres-database" + FilterProjectEnvsEnvContentHintUnion1TypePostgresURLNoSsl FilterProjectEnvsEnvContentHintUnion1Type = "postgres-url-no-ssl" + FilterProjectEnvsEnvContentHintUnion1TypeIntegrationStoreSecret FilterProjectEnvsEnvContentHintUnion1Type = "integration-store-secret" + FilterProjectEnvsEnvContentHintUnion1TypeFlagsConnectionString FilterProjectEnvsEnvContentHintUnion1Type = "flags-connection-string" ) type FilterProjectEnvsEnvContentHintUnion1 struct { @@ -2715,245 +2907,332 @@ type FilterProjectEnvsEnvContentHintUnion1 struct { Type FilterProjectEnvsEnvContentHintUnion1Type } -func CreateFilterProjectEnvsEnvContentHintUnion1FilterProjectEnvsContentHintEnvRedisURL1(filterProjectEnvsContentHintEnvRedisURL1 FilterProjectEnvsContentHintEnvRedisURL1) FilterProjectEnvsEnvContentHintUnion1 { - typ := FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvRedisURL1 +func CreateFilterProjectEnvsEnvContentHintUnion1RedisURL(redisURL FilterProjectEnvsContentHintEnvRedisURL1) FilterProjectEnvsEnvContentHintUnion1 { + typ := FilterProjectEnvsEnvContentHintUnion1TypeRedisURL + + typStr := FilterProjectEnvsEnvTypeRedisURL1(typ) + redisURL.Type = typStr return FilterProjectEnvsEnvContentHintUnion1{ - FilterProjectEnvsContentHintEnvRedisURL1: &filterProjectEnvsContentHintEnvRedisURL1, + FilterProjectEnvsContentHintEnvRedisURL1: &redisURL, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion1FilterProjectEnvsContentHintEnvRedisRestAPIURL1(filterProjectEnvsContentHintEnvRedisRestAPIURL1 FilterProjectEnvsContentHintEnvRedisRestAPIURL1) FilterProjectEnvsEnvContentHintUnion1 { - typ := FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvRedisRestAPIURL1 +func CreateFilterProjectEnvsEnvContentHintUnion1RedisRestAPIURL(redisRestAPIURL FilterProjectEnvsContentHintEnvRedisRestAPIURL1) FilterProjectEnvsEnvContentHintUnion1 { + typ := FilterProjectEnvsEnvContentHintUnion1TypeRedisRestAPIURL + + typStr := FilterProjectEnvsEnvTypeRedisRestAPIURL1(typ) + redisRestAPIURL.Type = typStr return FilterProjectEnvsEnvContentHintUnion1{ - FilterProjectEnvsContentHintEnvRedisRestAPIURL1: &filterProjectEnvsContentHintEnvRedisRestAPIURL1, + FilterProjectEnvsContentHintEnvRedisRestAPIURL1: &redisRestAPIURL, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion1FilterProjectEnvsContentHintEnvRedisRestAPIToken1(filterProjectEnvsContentHintEnvRedisRestAPIToken1 FilterProjectEnvsContentHintEnvRedisRestAPIToken1) FilterProjectEnvsEnvContentHintUnion1 { - typ := FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvRedisRestAPIToken1 +func CreateFilterProjectEnvsEnvContentHintUnion1RedisRestAPIToken(redisRestAPIToken FilterProjectEnvsContentHintEnvRedisRestAPIToken1) FilterProjectEnvsEnvContentHintUnion1 { + typ := FilterProjectEnvsEnvContentHintUnion1TypeRedisRestAPIToken + + typStr := FilterProjectEnvsEnvTypeRedisRestAPIToken1(typ) + redisRestAPIToken.Type = typStr return FilterProjectEnvsEnvContentHintUnion1{ - FilterProjectEnvsContentHintEnvRedisRestAPIToken1: &filterProjectEnvsContentHintEnvRedisRestAPIToken1, + FilterProjectEnvsContentHintEnvRedisRestAPIToken1: &redisRestAPIToken, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion1FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1(filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1 FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1) FilterProjectEnvsEnvContentHintUnion1 { - typ := FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1 +func CreateFilterProjectEnvsEnvContentHintUnion1RedisRestAPIReadOnlyToken(redisRestAPIReadOnlyToken FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1) FilterProjectEnvsEnvContentHintUnion1 { + typ := FilterProjectEnvsEnvContentHintUnion1TypeRedisRestAPIReadOnlyToken + + typStr := FilterProjectEnvsEnvTypeRedisRestAPIReadOnlyToken1(typ) + redisRestAPIReadOnlyToken.Type = typStr return FilterProjectEnvsEnvContentHintUnion1{ - FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1: &filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1, + FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1: &redisRestAPIReadOnlyToken, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion1FilterProjectEnvsContentHintEnvBlobReadWriteToken1(filterProjectEnvsContentHintEnvBlobReadWriteToken1 FilterProjectEnvsContentHintEnvBlobReadWriteToken1) FilterProjectEnvsEnvContentHintUnion1 { - typ := FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvBlobReadWriteToken1 +func CreateFilterProjectEnvsEnvContentHintUnion1BlobReadWriteToken(blobReadWriteToken FilterProjectEnvsContentHintEnvBlobReadWriteToken1) FilterProjectEnvsEnvContentHintUnion1 { + typ := FilterProjectEnvsEnvContentHintUnion1TypeBlobReadWriteToken + + typStr := FilterProjectEnvsEnvTypeBlobReadWriteToken1(typ) + blobReadWriteToken.Type = typStr return FilterProjectEnvsEnvContentHintUnion1{ - FilterProjectEnvsContentHintEnvBlobReadWriteToken1: &filterProjectEnvsContentHintEnvBlobReadWriteToken1, + FilterProjectEnvsContentHintEnvBlobReadWriteToken1: &blobReadWriteToken, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion1FilterProjectEnvsContentHintEnvPostgresURL1(filterProjectEnvsContentHintEnvPostgresURL1 FilterProjectEnvsContentHintEnvPostgresURL1) FilterProjectEnvsEnvContentHintUnion1 { - typ := FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresURL1 +func CreateFilterProjectEnvsEnvContentHintUnion1PostgresURL(postgresURL FilterProjectEnvsContentHintEnvPostgresURL1) FilterProjectEnvsEnvContentHintUnion1 { + typ := FilterProjectEnvsEnvContentHintUnion1TypePostgresURL + + typStr := FilterProjectEnvsEnvTypePostgresURL1(typ) + postgresURL.Type = typStr return FilterProjectEnvsEnvContentHintUnion1{ - FilterProjectEnvsContentHintEnvPostgresURL1: &filterProjectEnvsContentHintEnvPostgresURL1, + FilterProjectEnvsContentHintEnvPostgresURL1: &postgresURL, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion1FilterProjectEnvsContentHintEnvPostgresURLNonPooling1(filterProjectEnvsContentHintEnvPostgresURLNonPooling1 FilterProjectEnvsContentHintEnvPostgresURLNonPooling1) FilterProjectEnvsEnvContentHintUnion1 { - typ := FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresURLNonPooling1 +func CreateFilterProjectEnvsEnvContentHintUnion1PostgresURLNonPooling(postgresURLNonPooling FilterProjectEnvsContentHintEnvPostgresURLNonPooling1) FilterProjectEnvsEnvContentHintUnion1 { + typ := FilterProjectEnvsEnvContentHintUnion1TypePostgresURLNonPooling + + typStr := FilterProjectEnvsEnvTypePostgresURLNonPooling1(typ) + postgresURLNonPooling.Type = typStr return FilterProjectEnvsEnvContentHintUnion1{ - FilterProjectEnvsContentHintEnvPostgresURLNonPooling1: &filterProjectEnvsContentHintEnvPostgresURLNonPooling1, + FilterProjectEnvsContentHintEnvPostgresURLNonPooling1: &postgresURLNonPooling, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion1FilterProjectEnvsContentHintEnvPostgresPrismaURL1(filterProjectEnvsContentHintEnvPostgresPrismaURL1 FilterProjectEnvsContentHintEnvPostgresPrismaURL1) FilterProjectEnvsEnvContentHintUnion1 { - typ := FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresPrismaURL1 +func CreateFilterProjectEnvsEnvContentHintUnion1PostgresPrismaURL(postgresPrismaURL FilterProjectEnvsContentHintEnvPostgresPrismaURL1) FilterProjectEnvsEnvContentHintUnion1 { + typ := FilterProjectEnvsEnvContentHintUnion1TypePostgresPrismaURL + + typStr := FilterProjectEnvsEnvTypePostgresPrismaURL1(typ) + postgresPrismaURL.Type = typStr return FilterProjectEnvsEnvContentHintUnion1{ - FilterProjectEnvsContentHintEnvPostgresPrismaURL1: &filterProjectEnvsContentHintEnvPostgresPrismaURL1, + FilterProjectEnvsContentHintEnvPostgresPrismaURL1: &postgresPrismaURL, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion1FilterProjectEnvsContentHintEnvPostgresUser1(filterProjectEnvsContentHintEnvPostgresUser1 FilterProjectEnvsContentHintEnvPostgresUser1) FilterProjectEnvsEnvContentHintUnion1 { - typ := FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresUser1 +func CreateFilterProjectEnvsEnvContentHintUnion1PostgresUser(postgresUser FilterProjectEnvsContentHintEnvPostgresUser1) FilterProjectEnvsEnvContentHintUnion1 { + typ := FilterProjectEnvsEnvContentHintUnion1TypePostgresUser + + typStr := FilterProjectEnvsEnvTypePostgresUser1(typ) + postgresUser.Type = typStr return FilterProjectEnvsEnvContentHintUnion1{ - FilterProjectEnvsContentHintEnvPostgresUser1: &filterProjectEnvsContentHintEnvPostgresUser1, + FilterProjectEnvsContentHintEnvPostgresUser1: &postgresUser, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion1FilterProjectEnvsContentHintEnvPostgresHost1(filterProjectEnvsContentHintEnvPostgresHost1 FilterProjectEnvsContentHintEnvPostgresHost1) FilterProjectEnvsEnvContentHintUnion1 { - typ := FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresHost1 +func CreateFilterProjectEnvsEnvContentHintUnion1PostgresHost(postgresHost FilterProjectEnvsContentHintEnvPostgresHost1) FilterProjectEnvsEnvContentHintUnion1 { + typ := FilterProjectEnvsEnvContentHintUnion1TypePostgresHost + + typStr := FilterProjectEnvsEnvTypePostgresHost1(typ) + postgresHost.Type = typStr return FilterProjectEnvsEnvContentHintUnion1{ - FilterProjectEnvsContentHintEnvPostgresHost1: &filterProjectEnvsContentHintEnvPostgresHost1, + FilterProjectEnvsContentHintEnvPostgresHost1: &postgresHost, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion1FilterProjectEnvsContentHintEnvPostgresPassword1(filterProjectEnvsContentHintEnvPostgresPassword1 FilterProjectEnvsContentHintEnvPostgresPassword1) FilterProjectEnvsEnvContentHintUnion1 { - typ := FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresPassword1 +func CreateFilterProjectEnvsEnvContentHintUnion1PostgresPassword(postgresPassword FilterProjectEnvsContentHintEnvPostgresPassword1) FilterProjectEnvsEnvContentHintUnion1 { + typ := FilterProjectEnvsEnvContentHintUnion1TypePostgresPassword + + typStr := FilterProjectEnvsEnvTypePostgresPassword1(typ) + postgresPassword.Type = typStr return FilterProjectEnvsEnvContentHintUnion1{ - FilterProjectEnvsContentHintEnvPostgresPassword1: &filterProjectEnvsContentHintEnvPostgresPassword1, + FilterProjectEnvsContentHintEnvPostgresPassword1: &postgresPassword, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion1FilterProjectEnvsContentHintEnvPostgresDatabase1(filterProjectEnvsContentHintEnvPostgresDatabase1 FilterProjectEnvsContentHintEnvPostgresDatabase1) FilterProjectEnvsEnvContentHintUnion1 { - typ := FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresDatabase1 +func CreateFilterProjectEnvsEnvContentHintUnion1PostgresDatabase(postgresDatabase FilterProjectEnvsContentHintEnvPostgresDatabase1) FilterProjectEnvsEnvContentHintUnion1 { + typ := FilterProjectEnvsEnvContentHintUnion1TypePostgresDatabase + + typStr := FilterProjectEnvsEnvTypePostgresDatabase1(typ) + postgresDatabase.Type = typStr return FilterProjectEnvsEnvContentHintUnion1{ - FilterProjectEnvsContentHintEnvPostgresDatabase1: &filterProjectEnvsContentHintEnvPostgresDatabase1, + FilterProjectEnvsContentHintEnvPostgresDatabase1: &postgresDatabase, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion1FilterProjectEnvsContentHintEnvPostgresURLNoSsl1(filterProjectEnvsContentHintEnvPostgresURLNoSsl1 FilterProjectEnvsContentHintEnvPostgresURLNoSsl1) FilterProjectEnvsEnvContentHintUnion1 { - typ := FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresURLNoSsl1 +func CreateFilterProjectEnvsEnvContentHintUnion1PostgresURLNoSsl(postgresURLNoSsl FilterProjectEnvsContentHintEnvPostgresURLNoSsl1) FilterProjectEnvsEnvContentHintUnion1 { + typ := FilterProjectEnvsEnvContentHintUnion1TypePostgresURLNoSsl + + typStr := FilterProjectEnvsEnvTypePostgresURLNoSsl1(typ) + postgresURLNoSsl.Type = typStr return FilterProjectEnvsEnvContentHintUnion1{ - FilterProjectEnvsContentHintEnvPostgresURLNoSsl1: &filterProjectEnvsContentHintEnvPostgresURLNoSsl1, + FilterProjectEnvsContentHintEnvPostgresURLNoSsl1: &postgresURLNoSsl, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion1FilterProjectEnvsContentHintEnvIntegrationStoreSecret1(filterProjectEnvsContentHintEnvIntegrationStoreSecret1 FilterProjectEnvsContentHintEnvIntegrationStoreSecret1) FilterProjectEnvsEnvContentHintUnion1 { - typ := FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvIntegrationStoreSecret1 +func CreateFilterProjectEnvsEnvContentHintUnion1IntegrationStoreSecret(integrationStoreSecret FilterProjectEnvsContentHintEnvIntegrationStoreSecret1) FilterProjectEnvsEnvContentHintUnion1 { + typ := FilterProjectEnvsEnvContentHintUnion1TypeIntegrationStoreSecret + + typStr := FilterProjectEnvsEnvTypeIntegrationStoreSecret1(typ) + integrationStoreSecret.Type = typStr return FilterProjectEnvsEnvContentHintUnion1{ - FilterProjectEnvsContentHintEnvIntegrationStoreSecret1: &filterProjectEnvsContentHintEnvIntegrationStoreSecret1, + FilterProjectEnvsContentHintEnvIntegrationStoreSecret1: &integrationStoreSecret, Type: typ, } } -func CreateFilterProjectEnvsEnvContentHintUnion1FilterProjectEnvsContentHintEnvFlagsConnectionString1(filterProjectEnvsContentHintEnvFlagsConnectionString1 FilterProjectEnvsContentHintEnvFlagsConnectionString1) FilterProjectEnvsEnvContentHintUnion1 { - typ := FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvFlagsConnectionString1 +func CreateFilterProjectEnvsEnvContentHintUnion1FlagsConnectionString(flagsConnectionString FilterProjectEnvsContentHintEnvFlagsConnectionString1) FilterProjectEnvsEnvContentHintUnion1 { + typ := FilterProjectEnvsEnvContentHintUnion1TypeFlagsConnectionString + + typStr := FilterProjectEnvsEnvTypeFlagsConnectionString1(typ) + flagsConnectionString.Type = typStr return FilterProjectEnvsEnvContentHintUnion1{ - FilterProjectEnvsContentHintEnvFlagsConnectionString1: &filterProjectEnvsContentHintEnvFlagsConnectionString1, + FilterProjectEnvsContentHintEnvFlagsConnectionString1: &flagsConnectionString, Type: typ, } } func (u *FilterProjectEnvsEnvContentHintUnion1) UnmarshalJSON(data []byte) error { - var filterProjectEnvsContentHintEnvIntegrationStoreSecret1 FilterProjectEnvsContentHintEnvIntegrationStoreSecret1 = FilterProjectEnvsContentHintEnvIntegrationStoreSecret1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvIntegrationStoreSecret1, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvIntegrationStoreSecret1 = &filterProjectEnvsContentHintEnvIntegrationStoreSecret1 - u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvIntegrationStoreSecret1 - return nil + type discriminator struct { + Type string `json:"type"` } - var filterProjectEnvsContentHintEnvRedisURL1 FilterProjectEnvsContentHintEnvRedisURL1 = FilterProjectEnvsContentHintEnvRedisURL1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisURL1, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvRedisURL1 = &filterProjectEnvsContentHintEnvRedisURL1 - u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvRedisURL1 - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var filterProjectEnvsContentHintEnvRedisRestAPIURL1 FilterProjectEnvsContentHintEnvRedisRestAPIURL1 = FilterProjectEnvsContentHintEnvRedisRestAPIURL1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIURL1, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvRedisRestAPIURL1 = &filterProjectEnvsContentHintEnvRedisRestAPIURL1 - u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvRedisRestAPIURL1 + switch dis.Type { + case "redis-url": + filterProjectEnvsContentHintEnvRedisURL1 := new(FilterProjectEnvsContentHintEnvRedisURL1) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisURL1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-url) type FilterProjectEnvsContentHintEnvRedisURL1 within FilterProjectEnvsEnvContentHintUnion1: %w", string(data), err) + } + + u.FilterProjectEnvsContentHintEnvRedisURL1 = filterProjectEnvsContentHintEnvRedisURL1 + u.Type = FilterProjectEnvsEnvContentHintUnion1TypeRedisURL return nil - } + case "redis-rest-api-url": + filterProjectEnvsContentHintEnvRedisRestAPIURL1 := new(FilterProjectEnvsContentHintEnvRedisRestAPIURL1) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIURL1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-url) type FilterProjectEnvsContentHintEnvRedisRestAPIURL1 within FilterProjectEnvsEnvContentHintUnion1: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvRedisRestAPIToken1 FilterProjectEnvsContentHintEnvRedisRestAPIToken1 = FilterProjectEnvsContentHintEnvRedisRestAPIToken1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIToken1, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvRedisRestAPIToken1 = &filterProjectEnvsContentHintEnvRedisRestAPIToken1 - u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvRedisRestAPIToken1 + u.FilterProjectEnvsContentHintEnvRedisRestAPIURL1 = filterProjectEnvsContentHintEnvRedisRestAPIURL1 + u.Type = FilterProjectEnvsEnvContentHintUnion1TypeRedisRestAPIURL return nil - } + case "redis-rest-api-token": + filterProjectEnvsContentHintEnvRedisRestAPIToken1 := new(FilterProjectEnvsContentHintEnvRedisRestAPIToken1) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIToken1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-token) type FilterProjectEnvsContentHintEnvRedisRestAPIToken1 within FilterProjectEnvsEnvContentHintUnion1: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1 FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1 = FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1 = &filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1 - u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1 + u.FilterProjectEnvsContentHintEnvRedisRestAPIToken1 = filterProjectEnvsContentHintEnvRedisRestAPIToken1 + u.Type = FilterProjectEnvsEnvContentHintUnion1TypeRedisRestAPIToken return nil - } + case "redis-rest-api-read-only-token": + filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1 := new(FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-read-only-token) type FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1 within FilterProjectEnvsEnvContentHintUnion1: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvBlobReadWriteToken1 FilterProjectEnvsContentHintEnvBlobReadWriteToken1 = FilterProjectEnvsContentHintEnvBlobReadWriteToken1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvBlobReadWriteToken1, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvBlobReadWriteToken1 = &filterProjectEnvsContentHintEnvBlobReadWriteToken1 - u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvBlobReadWriteToken1 + u.FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1 = filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1 + u.Type = FilterProjectEnvsEnvContentHintUnion1TypeRedisRestAPIReadOnlyToken return nil - } + case "blob-read-write-token": + filterProjectEnvsContentHintEnvBlobReadWriteToken1 := new(FilterProjectEnvsContentHintEnvBlobReadWriteToken1) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvBlobReadWriteToken1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == blob-read-write-token) type FilterProjectEnvsContentHintEnvBlobReadWriteToken1 within FilterProjectEnvsEnvContentHintUnion1: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvPostgresURL1 FilterProjectEnvsContentHintEnvPostgresURL1 = FilterProjectEnvsContentHintEnvPostgresURL1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURL1, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresURL1 = &filterProjectEnvsContentHintEnvPostgresURL1 - u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresURL1 + u.FilterProjectEnvsContentHintEnvBlobReadWriteToken1 = filterProjectEnvsContentHintEnvBlobReadWriteToken1 + u.Type = FilterProjectEnvsEnvContentHintUnion1TypeBlobReadWriteToken return nil - } + case "postgres-url": + filterProjectEnvsContentHintEnvPostgresURL1 := new(FilterProjectEnvsContentHintEnvPostgresURL1) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURL1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url) type FilterProjectEnvsContentHintEnvPostgresURL1 within FilterProjectEnvsEnvContentHintUnion1: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvPostgresURLNonPooling1 FilterProjectEnvsContentHintEnvPostgresURLNonPooling1 = FilterProjectEnvsContentHintEnvPostgresURLNonPooling1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURLNonPooling1, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresURLNonPooling1 = &filterProjectEnvsContentHintEnvPostgresURLNonPooling1 - u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresURLNonPooling1 + u.FilterProjectEnvsContentHintEnvPostgresURL1 = filterProjectEnvsContentHintEnvPostgresURL1 + u.Type = FilterProjectEnvsEnvContentHintUnion1TypePostgresURL return nil - } + case "postgres-url-non-pooling": + filterProjectEnvsContentHintEnvPostgresURLNonPooling1 := new(FilterProjectEnvsContentHintEnvPostgresURLNonPooling1) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURLNonPooling1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-non-pooling) type FilterProjectEnvsContentHintEnvPostgresURLNonPooling1 within FilterProjectEnvsEnvContentHintUnion1: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvPostgresPrismaURL1 FilterProjectEnvsContentHintEnvPostgresPrismaURL1 = FilterProjectEnvsContentHintEnvPostgresPrismaURL1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresPrismaURL1, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresPrismaURL1 = &filterProjectEnvsContentHintEnvPostgresPrismaURL1 - u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresPrismaURL1 + u.FilterProjectEnvsContentHintEnvPostgresURLNonPooling1 = filterProjectEnvsContentHintEnvPostgresURLNonPooling1 + u.Type = FilterProjectEnvsEnvContentHintUnion1TypePostgresURLNonPooling return nil - } + case "postgres-prisma-url": + filterProjectEnvsContentHintEnvPostgresPrismaURL1 := new(FilterProjectEnvsContentHintEnvPostgresPrismaURL1) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresPrismaURL1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-prisma-url) type FilterProjectEnvsContentHintEnvPostgresPrismaURL1 within FilterProjectEnvsEnvContentHintUnion1: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvPostgresUser1 FilterProjectEnvsContentHintEnvPostgresUser1 = FilterProjectEnvsContentHintEnvPostgresUser1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresUser1, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresUser1 = &filterProjectEnvsContentHintEnvPostgresUser1 - u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresUser1 + u.FilterProjectEnvsContentHintEnvPostgresPrismaURL1 = filterProjectEnvsContentHintEnvPostgresPrismaURL1 + u.Type = FilterProjectEnvsEnvContentHintUnion1TypePostgresPrismaURL return nil - } + case "postgres-user": + filterProjectEnvsContentHintEnvPostgresUser1 := new(FilterProjectEnvsContentHintEnvPostgresUser1) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresUser1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-user) type FilterProjectEnvsContentHintEnvPostgresUser1 within FilterProjectEnvsEnvContentHintUnion1: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvPostgresHost1 FilterProjectEnvsContentHintEnvPostgresHost1 = FilterProjectEnvsContentHintEnvPostgresHost1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresHost1, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresHost1 = &filterProjectEnvsContentHintEnvPostgresHost1 - u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresHost1 + u.FilterProjectEnvsContentHintEnvPostgresUser1 = filterProjectEnvsContentHintEnvPostgresUser1 + u.Type = FilterProjectEnvsEnvContentHintUnion1TypePostgresUser return nil - } + case "postgres-host": + filterProjectEnvsContentHintEnvPostgresHost1 := new(FilterProjectEnvsContentHintEnvPostgresHost1) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresHost1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-host) type FilterProjectEnvsContentHintEnvPostgresHost1 within FilterProjectEnvsEnvContentHintUnion1: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvPostgresPassword1 FilterProjectEnvsContentHintEnvPostgresPassword1 = FilterProjectEnvsContentHintEnvPostgresPassword1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresPassword1, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresPassword1 = &filterProjectEnvsContentHintEnvPostgresPassword1 - u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresPassword1 + u.FilterProjectEnvsContentHintEnvPostgresHost1 = filterProjectEnvsContentHintEnvPostgresHost1 + u.Type = FilterProjectEnvsEnvContentHintUnion1TypePostgresHost return nil - } + case "postgres-password": + filterProjectEnvsContentHintEnvPostgresPassword1 := new(FilterProjectEnvsContentHintEnvPostgresPassword1) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresPassword1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-password) type FilterProjectEnvsContentHintEnvPostgresPassword1 within FilterProjectEnvsEnvContentHintUnion1: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvPostgresDatabase1 FilterProjectEnvsContentHintEnvPostgresDatabase1 = FilterProjectEnvsContentHintEnvPostgresDatabase1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresDatabase1, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresDatabase1 = &filterProjectEnvsContentHintEnvPostgresDatabase1 - u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresDatabase1 + u.FilterProjectEnvsContentHintEnvPostgresPassword1 = filterProjectEnvsContentHintEnvPostgresPassword1 + u.Type = FilterProjectEnvsEnvContentHintUnion1TypePostgresPassword return nil - } + case "postgres-database": + filterProjectEnvsContentHintEnvPostgresDatabase1 := new(FilterProjectEnvsContentHintEnvPostgresDatabase1) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresDatabase1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-database) type FilterProjectEnvsContentHintEnvPostgresDatabase1 within FilterProjectEnvsEnvContentHintUnion1: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvPostgresURLNoSsl1 FilterProjectEnvsContentHintEnvPostgresURLNoSsl1 = FilterProjectEnvsContentHintEnvPostgresURLNoSsl1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURLNoSsl1, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresURLNoSsl1 = &filterProjectEnvsContentHintEnvPostgresURLNoSsl1 - u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresURLNoSsl1 + u.FilterProjectEnvsContentHintEnvPostgresDatabase1 = filterProjectEnvsContentHintEnvPostgresDatabase1 + u.Type = FilterProjectEnvsEnvContentHintUnion1TypePostgresDatabase return nil - } + case "postgres-url-no-ssl": + filterProjectEnvsContentHintEnvPostgresURLNoSsl1 := new(FilterProjectEnvsContentHintEnvPostgresURLNoSsl1) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURLNoSsl1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-no-ssl) type FilterProjectEnvsContentHintEnvPostgresURLNoSsl1 within FilterProjectEnvsEnvContentHintUnion1: %w", string(data), err) + } + + u.FilterProjectEnvsContentHintEnvPostgresURLNoSsl1 = filterProjectEnvsContentHintEnvPostgresURLNoSsl1 + u.Type = FilterProjectEnvsEnvContentHintUnion1TypePostgresURLNoSsl + return nil + case "integration-store-secret": + filterProjectEnvsContentHintEnvIntegrationStoreSecret1 := new(FilterProjectEnvsContentHintEnvIntegrationStoreSecret1) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvIntegrationStoreSecret1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == integration-store-secret) type FilterProjectEnvsContentHintEnvIntegrationStoreSecret1 within FilterProjectEnvsEnvContentHintUnion1: %w", string(data), err) + } - var filterProjectEnvsContentHintEnvFlagsConnectionString1 FilterProjectEnvsContentHintEnvFlagsConnectionString1 = FilterProjectEnvsContentHintEnvFlagsConnectionString1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvFlagsConnectionString1, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintEnvFlagsConnectionString1 = &filterProjectEnvsContentHintEnvFlagsConnectionString1 - u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvFlagsConnectionString1 + u.FilterProjectEnvsContentHintEnvIntegrationStoreSecret1 = filterProjectEnvsContentHintEnvIntegrationStoreSecret1 + u.Type = FilterProjectEnvsEnvContentHintUnion1TypeIntegrationStoreSecret + return nil + case "flags-connection-string": + filterProjectEnvsContentHintEnvFlagsConnectionString1 := new(FilterProjectEnvsContentHintEnvFlagsConnectionString1) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvFlagsConnectionString1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == flags-connection-string) type FilterProjectEnvsContentHintEnvFlagsConnectionString1 within FilterProjectEnvsEnvContentHintUnion1: %w", string(data), err) + } + + u.FilterProjectEnvsContentHintEnvFlagsConnectionString1 = filterProjectEnvsContentHintEnvFlagsConnectionString1 + u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFlagsConnectionString return nil } @@ -3235,6 +3514,111 @@ func (o *FilterProjectEnvsEnv1) GetContentHint() *FilterProjectEnvsEnvContentHin return o.ContentHint } +func (o *FilterProjectEnvsEnv1) GetContentHintRedisURL() *FilterProjectEnvsContentHintEnvRedisURL1 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvRedisURL1 + } + return nil +} + +func (o *FilterProjectEnvsEnv1) GetContentHintRedisRestAPIURL() *FilterProjectEnvsContentHintEnvRedisRestAPIURL1 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvRedisRestAPIURL1 + } + return nil +} + +func (o *FilterProjectEnvsEnv1) GetContentHintRedisRestAPIToken() *FilterProjectEnvsContentHintEnvRedisRestAPIToken1 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvRedisRestAPIToken1 + } + return nil +} + +func (o *FilterProjectEnvsEnv1) GetContentHintRedisRestAPIReadOnlyToken() *FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1 + } + return nil +} + +func (o *FilterProjectEnvsEnv1) GetContentHintBlobReadWriteToken() *FilterProjectEnvsContentHintEnvBlobReadWriteToken1 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvBlobReadWriteToken1 + } + return nil +} + +func (o *FilterProjectEnvsEnv1) GetContentHintPostgresURL() *FilterProjectEnvsContentHintEnvPostgresURL1 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvPostgresURL1 + } + return nil +} + +func (o *FilterProjectEnvsEnv1) GetContentHintPostgresURLNonPooling() *FilterProjectEnvsContentHintEnvPostgresURLNonPooling1 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvPostgresURLNonPooling1 + } + return nil +} + +func (o *FilterProjectEnvsEnv1) GetContentHintPostgresPrismaURL() *FilterProjectEnvsContentHintEnvPostgresPrismaURL1 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvPostgresPrismaURL1 + } + return nil +} + +func (o *FilterProjectEnvsEnv1) GetContentHintPostgresUser() *FilterProjectEnvsContentHintEnvPostgresUser1 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvPostgresUser1 + } + return nil +} + +func (o *FilterProjectEnvsEnv1) GetContentHintPostgresHost() *FilterProjectEnvsContentHintEnvPostgresHost1 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvPostgresHost1 + } + return nil +} + +func (o *FilterProjectEnvsEnv1) GetContentHintPostgresPassword() *FilterProjectEnvsContentHintEnvPostgresPassword1 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvPostgresPassword1 + } + return nil +} + +func (o *FilterProjectEnvsEnv1) GetContentHintPostgresDatabase() *FilterProjectEnvsContentHintEnvPostgresDatabase1 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvPostgresDatabase1 + } + return nil +} + +func (o *FilterProjectEnvsEnv1) GetContentHintPostgresURLNoSsl() *FilterProjectEnvsContentHintEnvPostgresURLNoSsl1 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvPostgresURLNoSsl1 + } + return nil +} + +func (o *FilterProjectEnvsEnv1) GetContentHintIntegrationStoreSecret() *FilterProjectEnvsContentHintEnvIntegrationStoreSecret1 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvIntegrationStoreSecret1 + } + return nil +} + +func (o *FilterProjectEnvsEnv1) GetContentHintFlagsConnectionString() *FilterProjectEnvsContentHintEnvFlagsConnectionString1 { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintEnvFlagsConnectionString1 + } + return nil +} + func (o *FilterProjectEnvsEnv1) GetInternalContentHint() *FilterProjectEnvsEnvInternalContentHint1 { if o == nil { return nil @@ -4272,21 +4656,21 @@ func (o *FilterProjectEnvsContentHintRedisURL) GetStoreID() string { type FilterProjectEnvsContentHintUnionType string const ( - FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintRedisURL FilterProjectEnvsContentHintUnionType = "filterProjectEnvs_contentHint_RedisURL" - FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintRedisRestAPIURL FilterProjectEnvsContentHintUnionType = "filterProjectEnvs_contentHint_RedisRestAPIURL" - FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintRedisRestAPIToken FilterProjectEnvsContentHintUnionType = "filterProjectEnvs_contentHint_RedisRestAPIToken" - FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintRedisRestAPIReadOnlyToken FilterProjectEnvsContentHintUnionType = "filterProjectEnvs_contentHint_RedisRestAPIReadOnlyToken" - FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintBlobReadWriteToken FilterProjectEnvsContentHintUnionType = "filterProjectEnvs_contentHint_BlobReadWriteToken" - FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresURL FilterProjectEnvsContentHintUnionType = "filterProjectEnvs_contentHint_PostgresURL" - FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresURLNonPooling FilterProjectEnvsContentHintUnionType = "filterProjectEnvs_contentHint_PostgresURLNonPooling" - FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresPrismaURL FilterProjectEnvsContentHintUnionType = "filterProjectEnvs_contentHint_PostgresPrismaURL" - FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresUser FilterProjectEnvsContentHintUnionType = "filterProjectEnvs_contentHint_PostgresUser" - FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresHost FilterProjectEnvsContentHintUnionType = "filterProjectEnvs_contentHint_PostgresHost" - FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresPassword FilterProjectEnvsContentHintUnionType = "filterProjectEnvs_contentHint_PostgresPassword" - FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresDatabase FilterProjectEnvsContentHintUnionType = "filterProjectEnvs_contentHint_PostgresDatabase" - FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresURLNoSsl FilterProjectEnvsContentHintUnionType = "filterProjectEnvs_contentHint_PostgresURLNoSsl" - FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintIntegrationStoreSecret FilterProjectEnvsContentHintUnionType = "filterProjectEnvs_contentHint_IntegrationStoreSecret" - FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintFlagsConnectionString FilterProjectEnvsContentHintUnionType = "filterProjectEnvs_contentHint_FlagsConnectionString" + FilterProjectEnvsContentHintUnionTypeRedisURL FilterProjectEnvsContentHintUnionType = "redis-url" + FilterProjectEnvsContentHintUnionTypeRedisRestAPIURL FilterProjectEnvsContentHintUnionType = "redis-rest-api-url" + FilterProjectEnvsContentHintUnionTypeRedisRestAPIToken FilterProjectEnvsContentHintUnionType = "redis-rest-api-token" + FilterProjectEnvsContentHintUnionTypeRedisRestAPIReadOnlyToken FilterProjectEnvsContentHintUnionType = "redis-rest-api-read-only-token" + FilterProjectEnvsContentHintUnionTypeBlobReadWriteToken FilterProjectEnvsContentHintUnionType = "blob-read-write-token" + FilterProjectEnvsContentHintUnionTypePostgresURL FilterProjectEnvsContentHintUnionType = "postgres-url" + FilterProjectEnvsContentHintUnionTypePostgresURLNonPooling FilterProjectEnvsContentHintUnionType = "postgres-url-non-pooling" + FilterProjectEnvsContentHintUnionTypePostgresPrismaURL FilterProjectEnvsContentHintUnionType = "postgres-prisma-url" + FilterProjectEnvsContentHintUnionTypePostgresUser FilterProjectEnvsContentHintUnionType = "postgres-user" + FilterProjectEnvsContentHintUnionTypePostgresHost FilterProjectEnvsContentHintUnionType = "postgres-host" + FilterProjectEnvsContentHintUnionTypePostgresPassword FilterProjectEnvsContentHintUnionType = "postgres-password" + FilterProjectEnvsContentHintUnionTypePostgresDatabase FilterProjectEnvsContentHintUnionType = "postgres-database" + FilterProjectEnvsContentHintUnionTypePostgresURLNoSsl FilterProjectEnvsContentHintUnionType = "postgres-url-no-ssl" + FilterProjectEnvsContentHintUnionTypeIntegrationStoreSecret FilterProjectEnvsContentHintUnionType = "integration-store-secret" + FilterProjectEnvsContentHintUnionTypeFlagsConnectionString FilterProjectEnvsContentHintUnionType = "flags-connection-string" ) type FilterProjectEnvsContentHintUnion struct { @@ -4309,245 +4693,332 @@ type FilterProjectEnvsContentHintUnion struct { Type FilterProjectEnvsContentHintUnionType } -func CreateFilterProjectEnvsContentHintUnionFilterProjectEnvsContentHintRedisURL(filterProjectEnvsContentHintRedisURL FilterProjectEnvsContentHintRedisURL) FilterProjectEnvsContentHintUnion { - typ := FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintRedisURL +func CreateFilterProjectEnvsContentHintUnionRedisURL(redisURL FilterProjectEnvsContentHintRedisURL) FilterProjectEnvsContentHintUnion { + typ := FilterProjectEnvsContentHintUnionTypeRedisURL + + typStr := FilterProjectEnvsTypeRedisURL(typ) + redisURL.Type = typStr return FilterProjectEnvsContentHintUnion{ - FilterProjectEnvsContentHintRedisURL: &filterProjectEnvsContentHintRedisURL, + FilterProjectEnvsContentHintRedisURL: &redisURL, Type: typ, } } -func CreateFilterProjectEnvsContentHintUnionFilterProjectEnvsContentHintRedisRestAPIURL(filterProjectEnvsContentHintRedisRestAPIURL FilterProjectEnvsContentHintRedisRestAPIURL) FilterProjectEnvsContentHintUnion { - typ := FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintRedisRestAPIURL +func CreateFilterProjectEnvsContentHintUnionRedisRestAPIURL(redisRestAPIURL FilterProjectEnvsContentHintRedisRestAPIURL) FilterProjectEnvsContentHintUnion { + typ := FilterProjectEnvsContentHintUnionTypeRedisRestAPIURL + + typStr := FilterProjectEnvsTypeRedisRestAPIURL(typ) + redisRestAPIURL.Type = typStr return FilterProjectEnvsContentHintUnion{ - FilterProjectEnvsContentHintRedisRestAPIURL: &filterProjectEnvsContentHintRedisRestAPIURL, + FilterProjectEnvsContentHintRedisRestAPIURL: &redisRestAPIURL, Type: typ, } } -func CreateFilterProjectEnvsContentHintUnionFilterProjectEnvsContentHintRedisRestAPIToken(filterProjectEnvsContentHintRedisRestAPIToken FilterProjectEnvsContentHintRedisRestAPIToken) FilterProjectEnvsContentHintUnion { - typ := FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintRedisRestAPIToken +func CreateFilterProjectEnvsContentHintUnionRedisRestAPIToken(redisRestAPIToken FilterProjectEnvsContentHintRedisRestAPIToken) FilterProjectEnvsContentHintUnion { + typ := FilterProjectEnvsContentHintUnionTypeRedisRestAPIToken + + typStr := FilterProjectEnvsTypeRedisRestAPIToken(typ) + redisRestAPIToken.Type = typStr return FilterProjectEnvsContentHintUnion{ - FilterProjectEnvsContentHintRedisRestAPIToken: &filterProjectEnvsContentHintRedisRestAPIToken, + FilterProjectEnvsContentHintRedisRestAPIToken: &redisRestAPIToken, Type: typ, } } -func CreateFilterProjectEnvsContentHintUnionFilterProjectEnvsContentHintRedisRestAPIReadOnlyToken(filterProjectEnvsContentHintRedisRestAPIReadOnlyToken FilterProjectEnvsContentHintRedisRestAPIReadOnlyToken) FilterProjectEnvsContentHintUnion { - typ := FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintRedisRestAPIReadOnlyToken +func CreateFilterProjectEnvsContentHintUnionRedisRestAPIReadOnlyToken(redisRestAPIReadOnlyToken FilterProjectEnvsContentHintRedisRestAPIReadOnlyToken) FilterProjectEnvsContentHintUnion { + typ := FilterProjectEnvsContentHintUnionTypeRedisRestAPIReadOnlyToken + + typStr := FilterProjectEnvsTypeRedisRestAPIReadOnlyToken(typ) + redisRestAPIReadOnlyToken.Type = typStr return FilterProjectEnvsContentHintUnion{ - FilterProjectEnvsContentHintRedisRestAPIReadOnlyToken: &filterProjectEnvsContentHintRedisRestAPIReadOnlyToken, + FilterProjectEnvsContentHintRedisRestAPIReadOnlyToken: &redisRestAPIReadOnlyToken, Type: typ, } } -func CreateFilterProjectEnvsContentHintUnionFilterProjectEnvsContentHintBlobReadWriteToken(filterProjectEnvsContentHintBlobReadWriteToken FilterProjectEnvsContentHintBlobReadWriteToken) FilterProjectEnvsContentHintUnion { - typ := FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintBlobReadWriteToken +func CreateFilterProjectEnvsContentHintUnionBlobReadWriteToken(blobReadWriteToken FilterProjectEnvsContentHintBlobReadWriteToken) FilterProjectEnvsContentHintUnion { + typ := FilterProjectEnvsContentHintUnionTypeBlobReadWriteToken + + typStr := FilterProjectEnvsTypeBlobReadWriteToken(typ) + blobReadWriteToken.Type = typStr return FilterProjectEnvsContentHintUnion{ - FilterProjectEnvsContentHintBlobReadWriteToken: &filterProjectEnvsContentHintBlobReadWriteToken, + FilterProjectEnvsContentHintBlobReadWriteToken: &blobReadWriteToken, Type: typ, } } -func CreateFilterProjectEnvsContentHintUnionFilterProjectEnvsContentHintPostgresURL(filterProjectEnvsContentHintPostgresURL FilterProjectEnvsContentHintPostgresURL) FilterProjectEnvsContentHintUnion { - typ := FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresURL +func CreateFilterProjectEnvsContentHintUnionPostgresURL(postgresURL FilterProjectEnvsContentHintPostgresURL) FilterProjectEnvsContentHintUnion { + typ := FilterProjectEnvsContentHintUnionTypePostgresURL + + typStr := FilterProjectEnvsTypePostgresURL(typ) + postgresURL.Type = typStr return FilterProjectEnvsContentHintUnion{ - FilterProjectEnvsContentHintPostgresURL: &filterProjectEnvsContentHintPostgresURL, + FilterProjectEnvsContentHintPostgresURL: &postgresURL, Type: typ, } } -func CreateFilterProjectEnvsContentHintUnionFilterProjectEnvsContentHintPostgresURLNonPooling(filterProjectEnvsContentHintPostgresURLNonPooling FilterProjectEnvsContentHintPostgresURLNonPooling) FilterProjectEnvsContentHintUnion { - typ := FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresURLNonPooling +func CreateFilterProjectEnvsContentHintUnionPostgresURLNonPooling(postgresURLNonPooling FilterProjectEnvsContentHintPostgresURLNonPooling) FilterProjectEnvsContentHintUnion { + typ := FilterProjectEnvsContentHintUnionTypePostgresURLNonPooling + + typStr := FilterProjectEnvsTypePostgresURLNonPooling(typ) + postgresURLNonPooling.Type = typStr return FilterProjectEnvsContentHintUnion{ - FilterProjectEnvsContentHintPostgresURLNonPooling: &filterProjectEnvsContentHintPostgresURLNonPooling, + FilterProjectEnvsContentHintPostgresURLNonPooling: &postgresURLNonPooling, Type: typ, } } -func CreateFilterProjectEnvsContentHintUnionFilterProjectEnvsContentHintPostgresPrismaURL(filterProjectEnvsContentHintPostgresPrismaURL FilterProjectEnvsContentHintPostgresPrismaURL) FilterProjectEnvsContentHintUnion { - typ := FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresPrismaURL +func CreateFilterProjectEnvsContentHintUnionPostgresPrismaURL(postgresPrismaURL FilterProjectEnvsContentHintPostgresPrismaURL) FilterProjectEnvsContentHintUnion { + typ := FilterProjectEnvsContentHintUnionTypePostgresPrismaURL + + typStr := FilterProjectEnvsTypePostgresPrismaURL(typ) + postgresPrismaURL.Type = typStr return FilterProjectEnvsContentHintUnion{ - FilterProjectEnvsContentHintPostgresPrismaURL: &filterProjectEnvsContentHintPostgresPrismaURL, + FilterProjectEnvsContentHintPostgresPrismaURL: &postgresPrismaURL, Type: typ, } } -func CreateFilterProjectEnvsContentHintUnionFilterProjectEnvsContentHintPostgresUser(filterProjectEnvsContentHintPostgresUser FilterProjectEnvsContentHintPostgresUser) FilterProjectEnvsContentHintUnion { - typ := FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresUser +func CreateFilterProjectEnvsContentHintUnionPostgresUser(postgresUser FilterProjectEnvsContentHintPostgresUser) FilterProjectEnvsContentHintUnion { + typ := FilterProjectEnvsContentHintUnionTypePostgresUser + + typStr := FilterProjectEnvsTypePostgresUser(typ) + postgresUser.Type = typStr return FilterProjectEnvsContentHintUnion{ - FilterProjectEnvsContentHintPostgresUser: &filterProjectEnvsContentHintPostgresUser, + FilterProjectEnvsContentHintPostgresUser: &postgresUser, Type: typ, } } -func CreateFilterProjectEnvsContentHintUnionFilterProjectEnvsContentHintPostgresHost(filterProjectEnvsContentHintPostgresHost FilterProjectEnvsContentHintPostgresHost) FilterProjectEnvsContentHintUnion { - typ := FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresHost +func CreateFilterProjectEnvsContentHintUnionPostgresHost(postgresHost FilterProjectEnvsContentHintPostgresHost) FilterProjectEnvsContentHintUnion { + typ := FilterProjectEnvsContentHintUnionTypePostgresHost + + typStr := FilterProjectEnvsTypePostgresHost(typ) + postgresHost.Type = typStr return FilterProjectEnvsContentHintUnion{ - FilterProjectEnvsContentHintPostgresHost: &filterProjectEnvsContentHintPostgresHost, + FilterProjectEnvsContentHintPostgresHost: &postgresHost, Type: typ, } } -func CreateFilterProjectEnvsContentHintUnionFilterProjectEnvsContentHintPostgresPassword(filterProjectEnvsContentHintPostgresPassword FilterProjectEnvsContentHintPostgresPassword) FilterProjectEnvsContentHintUnion { - typ := FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresPassword +func CreateFilterProjectEnvsContentHintUnionPostgresPassword(postgresPassword FilterProjectEnvsContentHintPostgresPassword) FilterProjectEnvsContentHintUnion { + typ := FilterProjectEnvsContentHintUnionTypePostgresPassword + + typStr := FilterProjectEnvsTypePostgresPassword(typ) + postgresPassword.Type = typStr return FilterProjectEnvsContentHintUnion{ - FilterProjectEnvsContentHintPostgresPassword: &filterProjectEnvsContentHintPostgresPassword, + FilterProjectEnvsContentHintPostgresPassword: &postgresPassword, Type: typ, } } -func CreateFilterProjectEnvsContentHintUnionFilterProjectEnvsContentHintPostgresDatabase(filterProjectEnvsContentHintPostgresDatabase FilterProjectEnvsContentHintPostgresDatabase) FilterProjectEnvsContentHintUnion { - typ := FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresDatabase +func CreateFilterProjectEnvsContentHintUnionPostgresDatabase(postgresDatabase FilterProjectEnvsContentHintPostgresDatabase) FilterProjectEnvsContentHintUnion { + typ := FilterProjectEnvsContentHintUnionTypePostgresDatabase + + typStr := FilterProjectEnvsTypePostgresDatabase(typ) + postgresDatabase.Type = typStr return FilterProjectEnvsContentHintUnion{ - FilterProjectEnvsContentHintPostgresDatabase: &filterProjectEnvsContentHintPostgresDatabase, + FilterProjectEnvsContentHintPostgresDatabase: &postgresDatabase, Type: typ, } } -func CreateFilterProjectEnvsContentHintUnionFilterProjectEnvsContentHintPostgresURLNoSsl(filterProjectEnvsContentHintPostgresURLNoSsl FilterProjectEnvsContentHintPostgresURLNoSsl) FilterProjectEnvsContentHintUnion { - typ := FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresURLNoSsl +func CreateFilterProjectEnvsContentHintUnionPostgresURLNoSsl(postgresURLNoSsl FilterProjectEnvsContentHintPostgresURLNoSsl) FilterProjectEnvsContentHintUnion { + typ := FilterProjectEnvsContentHintUnionTypePostgresURLNoSsl + + typStr := FilterProjectEnvsTypePostgresURLNoSsl(typ) + postgresURLNoSsl.Type = typStr return FilterProjectEnvsContentHintUnion{ - FilterProjectEnvsContentHintPostgresURLNoSsl: &filterProjectEnvsContentHintPostgresURLNoSsl, + FilterProjectEnvsContentHintPostgresURLNoSsl: &postgresURLNoSsl, Type: typ, } } -func CreateFilterProjectEnvsContentHintUnionFilterProjectEnvsContentHintIntegrationStoreSecret(filterProjectEnvsContentHintIntegrationStoreSecret FilterProjectEnvsContentHintIntegrationStoreSecret) FilterProjectEnvsContentHintUnion { - typ := FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintIntegrationStoreSecret +func CreateFilterProjectEnvsContentHintUnionIntegrationStoreSecret(integrationStoreSecret FilterProjectEnvsContentHintIntegrationStoreSecret) FilterProjectEnvsContentHintUnion { + typ := FilterProjectEnvsContentHintUnionTypeIntegrationStoreSecret + + typStr := FilterProjectEnvsTypeIntegrationStoreSecret(typ) + integrationStoreSecret.Type = typStr return FilterProjectEnvsContentHintUnion{ - FilterProjectEnvsContentHintIntegrationStoreSecret: &filterProjectEnvsContentHintIntegrationStoreSecret, + FilterProjectEnvsContentHintIntegrationStoreSecret: &integrationStoreSecret, Type: typ, } } -func CreateFilterProjectEnvsContentHintUnionFilterProjectEnvsContentHintFlagsConnectionString(filterProjectEnvsContentHintFlagsConnectionString FilterProjectEnvsContentHintFlagsConnectionString) FilterProjectEnvsContentHintUnion { - typ := FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintFlagsConnectionString +func CreateFilterProjectEnvsContentHintUnionFlagsConnectionString(flagsConnectionString FilterProjectEnvsContentHintFlagsConnectionString) FilterProjectEnvsContentHintUnion { + typ := FilterProjectEnvsContentHintUnionTypeFlagsConnectionString + + typStr := FilterProjectEnvsTypeFlagsConnectionString(typ) + flagsConnectionString.Type = typStr return FilterProjectEnvsContentHintUnion{ - FilterProjectEnvsContentHintFlagsConnectionString: &filterProjectEnvsContentHintFlagsConnectionString, + FilterProjectEnvsContentHintFlagsConnectionString: &flagsConnectionString, Type: typ, } } func (u *FilterProjectEnvsContentHintUnion) UnmarshalJSON(data []byte) error { - var filterProjectEnvsContentHintIntegrationStoreSecret FilterProjectEnvsContentHintIntegrationStoreSecret = FilterProjectEnvsContentHintIntegrationStoreSecret{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintIntegrationStoreSecret, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintIntegrationStoreSecret = &filterProjectEnvsContentHintIntegrationStoreSecret - u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintIntegrationStoreSecret - return nil + type discriminator struct { + Type string `json:"type"` } - var filterProjectEnvsContentHintRedisURL FilterProjectEnvsContentHintRedisURL = FilterProjectEnvsContentHintRedisURL{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintRedisURL, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintRedisURL = &filterProjectEnvsContentHintRedisURL - u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintRedisURL - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var filterProjectEnvsContentHintRedisRestAPIURL FilterProjectEnvsContentHintRedisRestAPIURL = FilterProjectEnvsContentHintRedisRestAPIURL{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintRedisRestAPIURL, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintRedisRestAPIURL = &filterProjectEnvsContentHintRedisRestAPIURL - u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintRedisRestAPIURL + switch dis.Type { + case "redis-url": + filterProjectEnvsContentHintRedisURL := new(FilterProjectEnvsContentHintRedisURL) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintRedisURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-url) type FilterProjectEnvsContentHintRedisURL within FilterProjectEnvsContentHintUnion: %w", string(data), err) + } + + u.FilterProjectEnvsContentHintRedisURL = filterProjectEnvsContentHintRedisURL + u.Type = FilterProjectEnvsContentHintUnionTypeRedisURL return nil - } + case "redis-rest-api-url": + filterProjectEnvsContentHintRedisRestAPIURL := new(FilterProjectEnvsContentHintRedisRestAPIURL) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintRedisRestAPIURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-url) type FilterProjectEnvsContentHintRedisRestAPIURL within FilterProjectEnvsContentHintUnion: %w", string(data), err) + } - var filterProjectEnvsContentHintRedisRestAPIToken FilterProjectEnvsContentHintRedisRestAPIToken = FilterProjectEnvsContentHintRedisRestAPIToken{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintRedisRestAPIToken, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintRedisRestAPIToken = &filterProjectEnvsContentHintRedisRestAPIToken - u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintRedisRestAPIToken + u.FilterProjectEnvsContentHintRedisRestAPIURL = filterProjectEnvsContentHintRedisRestAPIURL + u.Type = FilterProjectEnvsContentHintUnionTypeRedisRestAPIURL return nil - } + case "redis-rest-api-token": + filterProjectEnvsContentHintRedisRestAPIToken := new(FilterProjectEnvsContentHintRedisRestAPIToken) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintRedisRestAPIToken, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-token) type FilterProjectEnvsContentHintRedisRestAPIToken within FilterProjectEnvsContentHintUnion: %w", string(data), err) + } - var filterProjectEnvsContentHintRedisRestAPIReadOnlyToken FilterProjectEnvsContentHintRedisRestAPIReadOnlyToken = FilterProjectEnvsContentHintRedisRestAPIReadOnlyToken{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintRedisRestAPIReadOnlyToken, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintRedisRestAPIReadOnlyToken = &filterProjectEnvsContentHintRedisRestAPIReadOnlyToken - u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintRedisRestAPIReadOnlyToken + u.FilterProjectEnvsContentHintRedisRestAPIToken = filterProjectEnvsContentHintRedisRestAPIToken + u.Type = FilterProjectEnvsContentHintUnionTypeRedisRestAPIToken return nil - } + case "redis-rest-api-read-only-token": + filterProjectEnvsContentHintRedisRestAPIReadOnlyToken := new(FilterProjectEnvsContentHintRedisRestAPIReadOnlyToken) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintRedisRestAPIReadOnlyToken, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-read-only-token) type FilterProjectEnvsContentHintRedisRestAPIReadOnlyToken within FilterProjectEnvsContentHintUnion: %w", string(data), err) + } - var filterProjectEnvsContentHintBlobReadWriteToken FilterProjectEnvsContentHintBlobReadWriteToken = FilterProjectEnvsContentHintBlobReadWriteToken{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintBlobReadWriteToken, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintBlobReadWriteToken = &filterProjectEnvsContentHintBlobReadWriteToken - u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintBlobReadWriteToken + u.FilterProjectEnvsContentHintRedisRestAPIReadOnlyToken = filterProjectEnvsContentHintRedisRestAPIReadOnlyToken + u.Type = FilterProjectEnvsContentHintUnionTypeRedisRestAPIReadOnlyToken return nil - } + case "blob-read-write-token": + filterProjectEnvsContentHintBlobReadWriteToken := new(FilterProjectEnvsContentHintBlobReadWriteToken) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintBlobReadWriteToken, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == blob-read-write-token) type FilterProjectEnvsContentHintBlobReadWriteToken within FilterProjectEnvsContentHintUnion: %w", string(data), err) + } - var filterProjectEnvsContentHintPostgresURL FilterProjectEnvsContentHintPostgresURL = FilterProjectEnvsContentHintPostgresURL{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresURL, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintPostgresURL = &filterProjectEnvsContentHintPostgresURL - u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresURL + u.FilterProjectEnvsContentHintBlobReadWriteToken = filterProjectEnvsContentHintBlobReadWriteToken + u.Type = FilterProjectEnvsContentHintUnionTypeBlobReadWriteToken return nil - } + case "postgres-url": + filterProjectEnvsContentHintPostgresURL := new(FilterProjectEnvsContentHintPostgresURL) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url) type FilterProjectEnvsContentHintPostgresURL within FilterProjectEnvsContentHintUnion: %w", string(data), err) + } - var filterProjectEnvsContentHintPostgresURLNonPooling FilterProjectEnvsContentHintPostgresURLNonPooling = FilterProjectEnvsContentHintPostgresURLNonPooling{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresURLNonPooling, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintPostgresURLNonPooling = &filterProjectEnvsContentHintPostgresURLNonPooling - u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresURLNonPooling + u.FilterProjectEnvsContentHintPostgresURL = filterProjectEnvsContentHintPostgresURL + u.Type = FilterProjectEnvsContentHintUnionTypePostgresURL return nil - } + case "postgres-url-non-pooling": + filterProjectEnvsContentHintPostgresURLNonPooling := new(FilterProjectEnvsContentHintPostgresURLNonPooling) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresURLNonPooling, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-non-pooling) type FilterProjectEnvsContentHintPostgresURLNonPooling within FilterProjectEnvsContentHintUnion: %w", string(data), err) + } - var filterProjectEnvsContentHintPostgresPrismaURL FilterProjectEnvsContentHintPostgresPrismaURL = FilterProjectEnvsContentHintPostgresPrismaURL{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresPrismaURL, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintPostgresPrismaURL = &filterProjectEnvsContentHintPostgresPrismaURL - u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresPrismaURL + u.FilterProjectEnvsContentHintPostgresURLNonPooling = filterProjectEnvsContentHintPostgresURLNonPooling + u.Type = FilterProjectEnvsContentHintUnionTypePostgresURLNonPooling return nil - } + case "postgres-prisma-url": + filterProjectEnvsContentHintPostgresPrismaURL := new(FilterProjectEnvsContentHintPostgresPrismaURL) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresPrismaURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-prisma-url) type FilterProjectEnvsContentHintPostgresPrismaURL within FilterProjectEnvsContentHintUnion: %w", string(data), err) + } - var filterProjectEnvsContentHintPostgresUser FilterProjectEnvsContentHintPostgresUser = FilterProjectEnvsContentHintPostgresUser{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresUser, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintPostgresUser = &filterProjectEnvsContentHintPostgresUser - u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresUser + u.FilterProjectEnvsContentHintPostgresPrismaURL = filterProjectEnvsContentHintPostgresPrismaURL + u.Type = FilterProjectEnvsContentHintUnionTypePostgresPrismaURL return nil - } + case "postgres-user": + filterProjectEnvsContentHintPostgresUser := new(FilterProjectEnvsContentHintPostgresUser) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresUser, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-user) type FilterProjectEnvsContentHintPostgresUser within FilterProjectEnvsContentHintUnion: %w", string(data), err) + } - var filterProjectEnvsContentHintPostgresHost FilterProjectEnvsContentHintPostgresHost = FilterProjectEnvsContentHintPostgresHost{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresHost, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintPostgresHost = &filterProjectEnvsContentHintPostgresHost - u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresHost + u.FilterProjectEnvsContentHintPostgresUser = filterProjectEnvsContentHintPostgresUser + u.Type = FilterProjectEnvsContentHintUnionTypePostgresUser return nil - } + case "postgres-host": + filterProjectEnvsContentHintPostgresHost := new(FilterProjectEnvsContentHintPostgresHost) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresHost, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-host) type FilterProjectEnvsContentHintPostgresHost within FilterProjectEnvsContentHintUnion: %w", string(data), err) + } - var filterProjectEnvsContentHintPostgresPassword FilterProjectEnvsContentHintPostgresPassword = FilterProjectEnvsContentHintPostgresPassword{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresPassword, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintPostgresPassword = &filterProjectEnvsContentHintPostgresPassword - u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresPassword + u.FilterProjectEnvsContentHintPostgresHost = filterProjectEnvsContentHintPostgresHost + u.Type = FilterProjectEnvsContentHintUnionTypePostgresHost return nil - } + case "postgres-password": + filterProjectEnvsContentHintPostgresPassword := new(FilterProjectEnvsContentHintPostgresPassword) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresPassword, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-password) type FilterProjectEnvsContentHintPostgresPassword within FilterProjectEnvsContentHintUnion: %w", string(data), err) + } - var filterProjectEnvsContentHintPostgresDatabase FilterProjectEnvsContentHintPostgresDatabase = FilterProjectEnvsContentHintPostgresDatabase{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresDatabase, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintPostgresDatabase = &filterProjectEnvsContentHintPostgresDatabase - u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresDatabase + u.FilterProjectEnvsContentHintPostgresPassword = filterProjectEnvsContentHintPostgresPassword + u.Type = FilterProjectEnvsContentHintUnionTypePostgresPassword return nil - } + case "postgres-database": + filterProjectEnvsContentHintPostgresDatabase := new(FilterProjectEnvsContentHintPostgresDatabase) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresDatabase, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-database) type FilterProjectEnvsContentHintPostgresDatabase within FilterProjectEnvsContentHintUnion: %w", string(data), err) + } - var filterProjectEnvsContentHintPostgresURLNoSsl FilterProjectEnvsContentHintPostgresURLNoSsl = FilterProjectEnvsContentHintPostgresURLNoSsl{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresURLNoSsl, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintPostgresURLNoSsl = &filterProjectEnvsContentHintPostgresURLNoSsl - u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresURLNoSsl + u.FilterProjectEnvsContentHintPostgresDatabase = filterProjectEnvsContentHintPostgresDatabase + u.Type = FilterProjectEnvsContentHintUnionTypePostgresDatabase return nil - } + case "postgres-url-no-ssl": + filterProjectEnvsContentHintPostgresURLNoSsl := new(FilterProjectEnvsContentHintPostgresURLNoSsl) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresURLNoSsl, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-no-ssl) type FilterProjectEnvsContentHintPostgresURLNoSsl within FilterProjectEnvsContentHintUnion: %w", string(data), err) + } + + u.FilterProjectEnvsContentHintPostgresURLNoSsl = filterProjectEnvsContentHintPostgresURLNoSsl + u.Type = FilterProjectEnvsContentHintUnionTypePostgresURLNoSsl + return nil + case "integration-store-secret": + filterProjectEnvsContentHintIntegrationStoreSecret := new(FilterProjectEnvsContentHintIntegrationStoreSecret) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintIntegrationStoreSecret, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == integration-store-secret) type FilterProjectEnvsContentHintIntegrationStoreSecret within FilterProjectEnvsContentHintUnion: %w", string(data), err) + } + + u.FilterProjectEnvsContentHintIntegrationStoreSecret = filterProjectEnvsContentHintIntegrationStoreSecret + u.Type = FilterProjectEnvsContentHintUnionTypeIntegrationStoreSecret + return nil + case "flags-connection-string": + filterProjectEnvsContentHintFlagsConnectionString := new(FilterProjectEnvsContentHintFlagsConnectionString) + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintFlagsConnectionString, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == flags-connection-string) type FilterProjectEnvsContentHintFlagsConnectionString within FilterProjectEnvsContentHintUnion: %w", string(data), err) + } - var filterProjectEnvsContentHintFlagsConnectionString FilterProjectEnvsContentHintFlagsConnectionString = FilterProjectEnvsContentHintFlagsConnectionString{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintFlagsConnectionString, "", true, nil); err == nil { - u.FilterProjectEnvsContentHintFlagsConnectionString = &filterProjectEnvsContentHintFlagsConnectionString - u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintFlagsConnectionString + u.FilterProjectEnvsContentHintFlagsConnectionString = filterProjectEnvsContentHintFlagsConnectionString + u.Type = FilterProjectEnvsContentHintUnionTypeFlagsConnectionString return nil } @@ -4829,6 +5300,111 @@ func (o *FilterProjectEnvsResponseBody1) GetContentHint() *FilterProjectEnvsCont return o.ContentHint } +func (o *FilterProjectEnvsResponseBody1) GetContentHintRedisURL() *FilterProjectEnvsContentHintRedisURL { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintRedisURL + } + return nil +} + +func (o *FilterProjectEnvsResponseBody1) GetContentHintRedisRestAPIURL() *FilterProjectEnvsContentHintRedisRestAPIURL { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintRedisRestAPIURL + } + return nil +} + +func (o *FilterProjectEnvsResponseBody1) GetContentHintRedisRestAPIToken() *FilterProjectEnvsContentHintRedisRestAPIToken { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintRedisRestAPIToken + } + return nil +} + +func (o *FilterProjectEnvsResponseBody1) GetContentHintRedisRestAPIReadOnlyToken() *FilterProjectEnvsContentHintRedisRestAPIReadOnlyToken { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintRedisRestAPIReadOnlyToken + } + return nil +} + +func (o *FilterProjectEnvsResponseBody1) GetContentHintBlobReadWriteToken() *FilterProjectEnvsContentHintBlobReadWriteToken { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintBlobReadWriteToken + } + return nil +} + +func (o *FilterProjectEnvsResponseBody1) GetContentHintPostgresURL() *FilterProjectEnvsContentHintPostgresURL { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintPostgresURL + } + return nil +} + +func (o *FilterProjectEnvsResponseBody1) GetContentHintPostgresURLNonPooling() *FilterProjectEnvsContentHintPostgresURLNonPooling { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintPostgresURLNonPooling + } + return nil +} + +func (o *FilterProjectEnvsResponseBody1) GetContentHintPostgresPrismaURL() *FilterProjectEnvsContentHintPostgresPrismaURL { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintPostgresPrismaURL + } + return nil +} + +func (o *FilterProjectEnvsResponseBody1) GetContentHintPostgresUser() *FilterProjectEnvsContentHintPostgresUser { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintPostgresUser + } + return nil +} + +func (o *FilterProjectEnvsResponseBody1) GetContentHintPostgresHost() *FilterProjectEnvsContentHintPostgresHost { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintPostgresHost + } + return nil +} + +func (o *FilterProjectEnvsResponseBody1) GetContentHintPostgresPassword() *FilterProjectEnvsContentHintPostgresPassword { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintPostgresPassword + } + return nil +} + +func (o *FilterProjectEnvsResponseBody1) GetContentHintPostgresDatabase() *FilterProjectEnvsContentHintPostgresDatabase { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintPostgresDatabase + } + return nil +} + +func (o *FilterProjectEnvsResponseBody1) GetContentHintPostgresURLNoSsl() *FilterProjectEnvsContentHintPostgresURLNoSsl { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintPostgresURLNoSsl + } + return nil +} + +func (o *FilterProjectEnvsResponseBody1) GetContentHintIntegrationStoreSecret() *FilterProjectEnvsContentHintIntegrationStoreSecret { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintIntegrationStoreSecret + } + return nil +} + +func (o *FilterProjectEnvsResponseBody1) GetContentHintFlagsConnectionString() *FilterProjectEnvsContentHintFlagsConnectionString { + if v := o.GetContentHint(); v != nil { + return v.FilterProjectEnvsContentHintFlagsConnectionString + } + return nil +} + func (o *FilterProjectEnvsResponseBody1) GetInternalContentHint() *FilterProjectEnvsInternalContentHint { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getalias.go b/src/__tests__/mockserver/internal/sdk/models/operations/getalias.go index 0df2d008..98b36603 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getalias.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getalias.go @@ -448,10 +448,10 @@ func (o *GetAliasProtectionBypassShareableLink) GetExpires() *float64 { type GetAliasProtectionBypassUnionType string const ( - GetAliasProtectionBypassUnionTypeGetAliasProtectionBypassShareableLink GetAliasProtectionBypassUnionType = "getAlias_protectionBypass_ShareableLink" - GetAliasProtectionBypassUnionTypeGetAliasProtectionBypassUser GetAliasProtectionBypassUnionType = "getAlias_protectionBypass_User" - GetAliasProtectionBypassUnionTypeGetAliasProtectionBypassAliasProtectionOverride GetAliasProtectionBypassUnionType = "getAlias_protectionBypass_AliasProtectionOverride" - GetAliasProtectionBypassUnionTypeGetAliasProtectionBypassEmailInvite GetAliasProtectionBypassUnionType = "getAlias_protectionBypass_EmailInvite" + GetAliasProtectionBypassUnionTypeShareableLink GetAliasProtectionBypassUnionType = "shareable-link" + GetAliasProtectionBypassUnionTypeUser GetAliasProtectionBypassUnionType = "user" + GetAliasProtectionBypassUnionTypeAliasProtectionOverride GetAliasProtectionBypassUnionType = "alias-protection-override" + GetAliasProtectionBypassUnionTypeEmailInvite GetAliasProtectionBypassUnionType = "email_invite" ) type GetAliasProtectionBypassUnion struct { @@ -463,69 +463,101 @@ type GetAliasProtectionBypassUnion struct { Type GetAliasProtectionBypassUnionType } -func CreateGetAliasProtectionBypassUnionGetAliasProtectionBypassShareableLink(getAliasProtectionBypassShareableLink GetAliasProtectionBypassShareableLink) GetAliasProtectionBypassUnion { - typ := GetAliasProtectionBypassUnionTypeGetAliasProtectionBypassShareableLink +func CreateGetAliasProtectionBypassUnionShareableLink(shareableLink GetAliasProtectionBypassShareableLink) GetAliasProtectionBypassUnion { + typ := GetAliasProtectionBypassUnionTypeShareableLink + + typStr := GetAliasScopeShareableLink(typ) + shareableLink.Scope = typStr return GetAliasProtectionBypassUnion{ - GetAliasProtectionBypassShareableLink: &getAliasProtectionBypassShareableLink, + GetAliasProtectionBypassShareableLink: &shareableLink, Type: typ, } } -func CreateGetAliasProtectionBypassUnionGetAliasProtectionBypassUser(getAliasProtectionBypassUser GetAliasProtectionBypassUser) GetAliasProtectionBypassUnion { - typ := GetAliasProtectionBypassUnionTypeGetAliasProtectionBypassUser +func CreateGetAliasProtectionBypassUnionUser(user GetAliasProtectionBypassUser) GetAliasProtectionBypassUnion { + typ := GetAliasProtectionBypassUnionTypeUser + + typStr := GetAliasScopeUser(typ) + user.Scope = typStr return GetAliasProtectionBypassUnion{ - GetAliasProtectionBypassUser: &getAliasProtectionBypassUser, + GetAliasProtectionBypassUser: &user, Type: typ, } } -func CreateGetAliasProtectionBypassUnionGetAliasProtectionBypassAliasProtectionOverride(getAliasProtectionBypassAliasProtectionOverride GetAliasProtectionBypassAliasProtectionOverride) GetAliasProtectionBypassUnion { - typ := GetAliasProtectionBypassUnionTypeGetAliasProtectionBypassAliasProtectionOverride +func CreateGetAliasProtectionBypassUnionAliasProtectionOverride(aliasProtectionOverride GetAliasProtectionBypassAliasProtectionOverride) GetAliasProtectionBypassUnion { + typ := GetAliasProtectionBypassUnionTypeAliasProtectionOverride + + typStr := GetAliasScopeAliasProtectionOverride(typ) + aliasProtectionOverride.Scope = typStr return GetAliasProtectionBypassUnion{ - GetAliasProtectionBypassAliasProtectionOverride: &getAliasProtectionBypassAliasProtectionOverride, + GetAliasProtectionBypassAliasProtectionOverride: &aliasProtectionOverride, Type: typ, } } -func CreateGetAliasProtectionBypassUnionGetAliasProtectionBypassEmailInvite(getAliasProtectionBypassEmailInvite GetAliasProtectionBypassEmailInvite) GetAliasProtectionBypassUnion { - typ := GetAliasProtectionBypassUnionTypeGetAliasProtectionBypassEmailInvite +func CreateGetAliasProtectionBypassUnionEmailInvite(emailInvite GetAliasProtectionBypassEmailInvite) GetAliasProtectionBypassUnion { + typ := GetAliasProtectionBypassUnionTypeEmailInvite + + typStr := GetAliasScopeEmailInvite(typ) + emailInvite.Scope = typStr return GetAliasProtectionBypassUnion{ - GetAliasProtectionBypassEmailInvite: &getAliasProtectionBypassEmailInvite, + GetAliasProtectionBypassEmailInvite: &emailInvite, Type: typ, } } func (u *GetAliasProtectionBypassUnion) UnmarshalJSON(data []byte) error { - var getAliasProtectionBypassUser GetAliasProtectionBypassUser = GetAliasProtectionBypassUser{} - if err := utils.UnmarshalJSON(data, &getAliasProtectionBypassUser, "", true, nil); err == nil { - u.GetAliasProtectionBypassUser = &getAliasProtectionBypassUser - u.Type = GetAliasProtectionBypassUnionTypeGetAliasProtectionBypassUser - return nil + type discriminator struct { + Scope string `json:"scope"` } - var getAliasProtectionBypassEmailInvite GetAliasProtectionBypassEmailInvite = GetAliasProtectionBypassEmailInvite{} - if err := utils.UnmarshalJSON(data, &getAliasProtectionBypassEmailInvite, "", true, nil); err == nil { - u.GetAliasProtectionBypassEmailInvite = &getAliasProtectionBypassEmailInvite - u.Type = GetAliasProtectionBypassUnionTypeGetAliasProtectionBypassEmailInvite - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getAliasProtectionBypassShareableLink GetAliasProtectionBypassShareableLink = GetAliasProtectionBypassShareableLink{} - if err := utils.UnmarshalJSON(data, &getAliasProtectionBypassShareableLink, "", true, nil); err == nil { - u.GetAliasProtectionBypassShareableLink = &getAliasProtectionBypassShareableLink - u.Type = GetAliasProtectionBypassUnionTypeGetAliasProtectionBypassShareableLink + switch dis.Scope { + case "shareable-link": + getAliasProtectionBypassShareableLink := new(GetAliasProtectionBypassShareableLink) + if err := utils.UnmarshalJSON(data, &getAliasProtectionBypassShareableLink, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Scope == shareable-link) type GetAliasProtectionBypassShareableLink within GetAliasProtectionBypassUnion: %w", string(data), err) + } + + u.GetAliasProtectionBypassShareableLink = getAliasProtectionBypassShareableLink + u.Type = GetAliasProtectionBypassUnionTypeShareableLink return nil - } + case "user": + getAliasProtectionBypassUser := new(GetAliasProtectionBypassUser) + if err := utils.UnmarshalJSON(data, &getAliasProtectionBypassUser, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Scope == user) type GetAliasProtectionBypassUser within GetAliasProtectionBypassUnion: %w", string(data), err) + } + + u.GetAliasProtectionBypassUser = getAliasProtectionBypassUser + u.Type = GetAliasProtectionBypassUnionTypeUser + return nil + case "alias-protection-override": + getAliasProtectionBypassAliasProtectionOverride := new(GetAliasProtectionBypassAliasProtectionOverride) + if err := utils.UnmarshalJSON(data, &getAliasProtectionBypassAliasProtectionOverride, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Scope == alias-protection-override) type GetAliasProtectionBypassAliasProtectionOverride within GetAliasProtectionBypassUnion: %w", string(data), err) + } + + u.GetAliasProtectionBypassAliasProtectionOverride = getAliasProtectionBypassAliasProtectionOverride + u.Type = GetAliasProtectionBypassUnionTypeAliasProtectionOverride + return nil + case "email_invite": + getAliasProtectionBypassEmailInvite := new(GetAliasProtectionBypassEmailInvite) + if err := utils.UnmarshalJSON(data, &getAliasProtectionBypassEmailInvite, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Scope == email_invite) type GetAliasProtectionBypassEmailInvite within GetAliasProtectionBypassUnion: %w", string(data), err) + } - var getAliasProtectionBypassAliasProtectionOverride GetAliasProtectionBypassAliasProtectionOverride = GetAliasProtectionBypassAliasProtectionOverride{} - if err := utils.UnmarshalJSON(data, &getAliasProtectionBypassAliasProtectionOverride, "", true, nil); err == nil { - u.GetAliasProtectionBypassAliasProtectionOverride = &getAliasProtectionBypassAliasProtectionOverride - u.Type = GetAliasProtectionBypassUnionTypeGetAliasProtectionBypassAliasProtectionOverride + u.GetAliasProtectionBypassEmailInvite = getAliasProtectionBypassEmailInvite + u.Type = GetAliasProtectionBypassUnionTypeEmailInvite return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getalllogdrains.go b/src/__tests__/mockserver/internal/sdk/models/operations/getalllogdrains.go index 962dbf76..cec50d1d 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getalllogdrains.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getalllogdrains.go @@ -1093,10 +1093,10 @@ func (o *GetAllLogDrainsDeliveryHTTP2) GetSecret() *GetAllLogDrainsSecretUnion3 type GetAllLogDrainsDeliveryUnion2Type string const ( - GetAllLogDrainsDeliveryUnion2TypeGetAllLogDrainsDeliveryHTTP2 GetAllLogDrainsDeliveryUnion2Type = "getAllLogDrains_delivery_HTTP_2" - GetAllLogDrainsDeliveryUnion2TypeGetAllLogDrainsDeliveryOtlphttp2 GetAllLogDrainsDeliveryUnion2Type = "getAllLogDrains_delivery_Otlphttp_2" - GetAllLogDrainsDeliveryUnion2TypeGetAllLogDrainsDeliveryClickhouse2 GetAllLogDrainsDeliveryUnion2Type = "getAllLogDrains_delivery_Clickhouse_2" - GetAllLogDrainsDeliveryUnion2TypeGetAllLogDrainsDeliveryVercelOtelTracesDb2 GetAllLogDrainsDeliveryUnion2Type = "getAllLogDrains_delivery_VercelOtelTracesDb_2" + GetAllLogDrainsDeliveryUnion2TypeHTTP GetAllLogDrainsDeliveryUnion2Type = "http" + GetAllLogDrainsDeliveryUnion2TypeOtlphttp GetAllLogDrainsDeliveryUnion2Type = "otlphttp" + GetAllLogDrainsDeliveryUnion2TypeClickhouse GetAllLogDrainsDeliveryUnion2Type = "clickhouse" + GetAllLogDrainsDeliveryUnion2TypeInternal GetAllLogDrainsDeliveryUnion2Type = "internal" ) type GetAllLogDrainsDeliveryUnion2 struct { @@ -1108,69 +1108,101 @@ type GetAllLogDrainsDeliveryUnion2 struct { Type GetAllLogDrainsDeliveryUnion2Type } -func CreateGetAllLogDrainsDeliveryUnion2GetAllLogDrainsDeliveryHTTP2(getAllLogDrainsDeliveryHTTP2 GetAllLogDrainsDeliveryHTTP2) GetAllLogDrainsDeliveryUnion2 { - typ := GetAllLogDrainsDeliveryUnion2TypeGetAllLogDrainsDeliveryHTTP2 +func CreateGetAllLogDrainsDeliveryUnion2HTTP(http GetAllLogDrainsDeliveryHTTP2) GetAllLogDrainsDeliveryUnion2 { + typ := GetAllLogDrainsDeliveryUnion2TypeHTTP + + typStr := GetAllLogDrainsTypeHTTP2(typ) + http.Type = typStr return GetAllLogDrainsDeliveryUnion2{ - GetAllLogDrainsDeliveryHTTP2: &getAllLogDrainsDeliveryHTTP2, + GetAllLogDrainsDeliveryHTTP2: &http, Type: typ, } } -func CreateGetAllLogDrainsDeliveryUnion2GetAllLogDrainsDeliveryOtlphttp2(getAllLogDrainsDeliveryOtlphttp2 GetAllLogDrainsDeliveryOtlphttp2) GetAllLogDrainsDeliveryUnion2 { - typ := GetAllLogDrainsDeliveryUnion2TypeGetAllLogDrainsDeliveryOtlphttp2 +func CreateGetAllLogDrainsDeliveryUnion2Otlphttp(otlphttp GetAllLogDrainsDeliveryOtlphttp2) GetAllLogDrainsDeliveryUnion2 { + typ := GetAllLogDrainsDeliveryUnion2TypeOtlphttp + + typStr := GetAllLogDrainsTypeOtlphttp2(typ) + otlphttp.Type = typStr return GetAllLogDrainsDeliveryUnion2{ - GetAllLogDrainsDeliveryOtlphttp2: &getAllLogDrainsDeliveryOtlphttp2, + GetAllLogDrainsDeliveryOtlphttp2: &otlphttp, Type: typ, } } -func CreateGetAllLogDrainsDeliveryUnion2GetAllLogDrainsDeliveryClickhouse2(getAllLogDrainsDeliveryClickhouse2 GetAllLogDrainsDeliveryClickhouse2) GetAllLogDrainsDeliveryUnion2 { - typ := GetAllLogDrainsDeliveryUnion2TypeGetAllLogDrainsDeliveryClickhouse2 +func CreateGetAllLogDrainsDeliveryUnion2Clickhouse(clickhouse GetAllLogDrainsDeliveryClickhouse2) GetAllLogDrainsDeliveryUnion2 { + typ := GetAllLogDrainsDeliveryUnion2TypeClickhouse + + typStr := GetAllLogDrainsTypeClickhouse2(typ) + clickhouse.Type = typStr return GetAllLogDrainsDeliveryUnion2{ - GetAllLogDrainsDeliveryClickhouse2: &getAllLogDrainsDeliveryClickhouse2, + GetAllLogDrainsDeliveryClickhouse2: &clickhouse, Type: typ, } } -func CreateGetAllLogDrainsDeliveryUnion2GetAllLogDrainsDeliveryVercelOtelTracesDb2(getAllLogDrainsDeliveryVercelOtelTracesDb2 GetAllLogDrainsDeliveryVercelOtelTracesDb2) GetAllLogDrainsDeliveryUnion2 { - typ := GetAllLogDrainsDeliveryUnion2TypeGetAllLogDrainsDeliveryVercelOtelTracesDb2 +func CreateGetAllLogDrainsDeliveryUnion2Internal(internal GetAllLogDrainsDeliveryVercelOtelTracesDb2) GetAllLogDrainsDeliveryUnion2 { + typ := GetAllLogDrainsDeliveryUnion2TypeInternal + + typStr := GetAllLogDrainsTypeInternal2(typ) + internal.Type = typStr return GetAllLogDrainsDeliveryUnion2{ - GetAllLogDrainsDeliveryVercelOtelTracesDb2: &getAllLogDrainsDeliveryVercelOtelTracesDb2, + GetAllLogDrainsDeliveryVercelOtelTracesDb2: &internal, Type: typ, } } func (u *GetAllLogDrainsDeliveryUnion2) UnmarshalJSON(data []byte) error { - var getAllLogDrainsDeliveryHTTP2 GetAllLogDrainsDeliveryHTTP2 = GetAllLogDrainsDeliveryHTTP2{} - if err := utils.UnmarshalJSON(data, &getAllLogDrainsDeliveryHTTP2, "", true, nil); err == nil { - u.GetAllLogDrainsDeliveryHTTP2 = &getAllLogDrainsDeliveryHTTP2 - u.Type = GetAllLogDrainsDeliveryUnion2TypeGetAllLogDrainsDeliveryHTTP2 - return nil + type discriminator struct { + Type string `json:"type"` } - var getAllLogDrainsDeliveryOtlphttp2 GetAllLogDrainsDeliveryOtlphttp2 = GetAllLogDrainsDeliveryOtlphttp2{} - if err := utils.UnmarshalJSON(data, &getAllLogDrainsDeliveryOtlphttp2, "", true, nil); err == nil { - u.GetAllLogDrainsDeliveryOtlphttp2 = &getAllLogDrainsDeliveryOtlphttp2 - u.Type = GetAllLogDrainsDeliveryUnion2TypeGetAllLogDrainsDeliveryOtlphttp2 - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getAllLogDrainsDeliveryClickhouse2 GetAllLogDrainsDeliveryClickhouse2 = GetAllLogDrainsDeliveryClickhouse2{} - if err := utils.UnmarshalJSON(data, &getAllLogDrainsDeliveryClickhouse2, "", true, nil); err == nil { - u.GetAllLogDrainsDeliveryClickhouse2 = &getAllLogDrainsDeliveryClickhouse2 - u.Type = GetAllLogDrainsDeliveryUnion2TypeGetAllLogDrainsDeliveryClickhouse2 + switch dis.Type { + case "http": + getAllLogDrainsDeliveryHTTP2 := new(GetAllLogDrainsDeliveryHTTP2) + if err := utils.UnmarshalJSON(data, &getAllLogDrainsDeliveryHTTP2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == http) type GetAllLogDrainsDeliveryHTTP2 within GetAllLogDrainsDeliveryUnion2: %w", string(data), err) + } + + u.GetAllLogDrainsDeliveryHTTP2 = getAllLogDrainsDeliveryHTTP2 + u.Type = GetAllLogDrainsDeliveryUnion2TypeHTTP return nil - } + case "otlphttp": + getAllLogDrainsDeliveryOtlphttp2 := new(GetAllLogDrainsDeliveryOtlphttp2) + if err := utils.UnmarshalJSON(data, &getAllLogDrainsDeliveryOtlphttp2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == otlphttp) type GetAllLogDrainsDeliveryOtlphttp2 within GetAllLogDrainsDeliveryUnion2: %w", string(data), err) + } + + u.GetAllLogDrainsDeliveryOtlphttp2 = getAllLogDrainsDeliveryOtlphttp2 + u.Type = GetAllLogDrainsDeliveryUnion2TypeOtlphttp + return nil + case "clickhouse": + getAllLogDrainsDeliveryClickhouse2 := new(GetAllLogDrainsDeliveryClickhouse2) + if err := utils.UnmarshalJSON(data, &getAllLogDrainsDeliveryClickhouse2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == clickhouse) type GetAllLogDrainsDeliveryClickhouse2 within GetAllLogDrainsDeliveryUnion2: %w", string(data), err) + } + + u.GetAllLogDrainsDeliveryClickhouse2 = getAllLogDrainsDeliveryClickhouse2 + u.Type = GetAllLogDrainsDeliveryUnion2TypeClickhouse + return nil + case "internal": + getAllLogDrainsDeliveryVercelOtelTracesDb2 := new(GetAllLogDrainsDeliveryVercelOtelTracesDb2) + if err := utils.UnmarshalJSON(data, &getAllLogDrainsDeliveryVercelOtelTracesDb2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == internal) type GetAllLogDrainsDeliveryVercelOtelTracesDb2 within GetAllLogDrainsDeliveryUnion2: %w", string(data), err) + } - var getAllLogDrainsDeliveryVercelOtelTracesDb2 GetAllLogDrainsDeliveryVercelOtelTracesDb2 = GetAllLogDrainsDeliveryVercelOtelTracesDb2{} - if err := utils.UnmarshalJSON(data, &getAllLogDrainsDeliveryVercelOtelTracesDb2, "", true, nil); err == nil { - u.GetAllLogDrainsDeliveryVercelOtelTracesDb2 = &getAllLogDrainsDeliveryVercelOtelTracesDb2 - u.Type = GetAllLogDrainsDeliveryUnion2TypeGetAllLogDrainsDeliveryVercelOtelTracesDb2 + u.GetAllLogDrainsDeliveryVercelOtelTracesDb2 = getAllLogDrainsDeliveryVercelOtelTracesDb2 + u.Type = GetAllLogDrainsDeliveryUnion2TypeInternal return nil } @@ -1478,8 +1510,8 @@ func (o *GetAllLogDrainsSourceSelfServed2) GetKind() GetAllLogDrainsKindSelfServ type GetAllLogDrainsSourceUnion2Type string const ( - GetAllLogDrainsSourceUnion2TypeGetAllLogDrainsSourceSelfServed2 GetAllLogDrainsSourceUnion2Type = "getAllLogDrains_source_SelfServed_2" - GetAllLogDrainsSourceUnion2TypeGetAllLogDrainsSourceIntegration2 GetAllLogDrainsSourceUnion2Type = "getAllLogDrains_source_Integration_2" + GetAllLogDrainsSourceUnion2TypeSelfServed GetAllLogDrainsSourceUnion2Type = "self-served" + GetAllLogDrainsSourceUnion2TypeIntegration GetAllLogDrainsSourceUnion2Type = "integration" ) type GetAllLogDrainsSourceUnion2 struct { @@ -1489,37 +1521,59 @@ type GetAllLogDrainsSourceUnion2 struct { Type GetAllLogDrainsSourceUnion2Type } -func CreateGetAllLogDrainsSourceUnion2GetAllLogDrainsSourceSelfServed2(getAllLogDrainsSourceSelfServed2 GetAllLogDrainsSourceSelfServed2) GetAllLogDrainsSourceUnion2 { - typ := GetAllLogDrainsSourceUnion2TypeGetAllLogDrainsSourceSelfServed2 +func CreateGetAllLogDrainsSourceUnion2SelfServed(selfServed GetAllLogDrainsSourceSelfServed2) GetAllLogDrainsSourceUnion2 { + typ := GetAllLogDrainsSourceUnion2TypeSelfServed + + typStr := GetAllLogDrainsKindSelfServed2(typ) + selfServed.Kind = typStr return GetAllLogDrainsSourceUnion2{ - GetAllLogDrainsSourceSelfServed2: &getAllLogDrainsSourceSelfServed2, + GetAllLogDrainsSourceSelfServed2: &selfServed, Type: typ, } } -func CreateGetAllLogDrainsSourceUnion2GetAllLogDrainsSourceIntegration2(getAllLogDrainsSourceIntegration2 GetAllLogDrainsSourceIntegration2) GetAllLogDrainsSourceUnion2 { - typ := GetAllLogDrainsSourceUnion2TypeGetAllLogDrainsSourceIntegration2 +func CreateGetAllLogDrainsSourceUnion2Integration(integration GetAllLogDrainsSourceIntegration2) GetAllLogDrainsSourceUnion2 { + typ := GetAllLogDrainsSourceUnion2TypeIntegration + + typStr := GetAllLogDrainsKindIntegration2(typ) + integration.Kind = typStr return GetAllLogDrainsSourceUnion2{ - GetAllLogDrainsSourceIntegration2: &getAllLogDrainsSourceIntegration2, + GetAllLogDrainsSourceIntegration2: &integration, Type: typ, } } func (u *GetAllLogDrainsSourceUnion2) UnmarshalJSON(data []byte) error { - var getAllLogDrainsSourceIntegration2 GetAllLogDrainsSourceIntegration2 = GetAllLogDrainsSourceIntegration2{} - if err := utils.UnmarshalJSON(data, &getAllLogDrainsSourceIntegration2, "", true, nil); err == nil { - u.GetAllLogDrainsSourceIntegration2 = &getAllLogDrainsSourceIntegration2 - u.Type = GetAllLogDrainsSourceUnion2TypeGetAllLogDrainsSourceIntegration2 - return nil + type discriminator struct { + Kind string `json:"kind"` } - var getAllLogDrainsSourceSelfServed2 GetAllLogDrainsSourceSelfServed2 = GetAllLogDrainsSourceSelfServed2{} - if err := utils.UnmarshalJSON(data, &getAllLogDrainsSourceSelfServed2, "", true, nil); err == nil { - u.GetAllLogDrainsSourceSelfServed2 = &getAllLogDrainsSourceSelfServed2 - u.Type = GetAllLogDrainsSourceUnion2TypeGetAllLogDrainsSourceSelfServed2 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Kind { + case "self-served": + getAllLogDrainsSourceSelfServed2 := new(GetAllLogDrainsSourceSelfServed2) + if err := utils.UnmarshalJSON(data, &getAllLogDrainsSourceSelfServed2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == self-served) type GetAllLogDrainsSourceSelfServed2 within GetAllLogDrainsSourceUnion2: %w", string(data), err) + } + + u.GetAllLogDrainsSourceSelfServed2 = getAllLogDrainsSourceSelfServed2 + u.Type = GetAllLogDrainsSourceUnion2TypeSelfServed + return nil + case "integration": + getAllLogDrainsSourceIntegration2 := new(GetAllLogDrainsSourceIntegration2) + if err := utils.UnmarshalJSON(data, &getAllLogDrainsSourceIntegration2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == integration) type GetAllLogDrainsSourceIntegration2 within GetAllLogDrainsSourceUnion2: %w", string(data), err) + } + + u.GetAllLogDrainsSourceIntegration2 = getAllLogDrainsSourceIntegration2 + u.Type = GetAllLogDrainsSourceUnion2TypeIntegration return nil } @@ -1827,8 +1881,8 @@ func (o *GetAllLogDrainsFilterBasic2) GetDeployment() *GetAllLogDrainsDeployment type GetAllLogDrainsFilterUnion2Type string const ( - GetAllLogDrainsFilterUnion2TypeGetAllLogDrainsFilterBasic2 GetAllLogDrainsFilterUnion2Type = "getAllLogDrains_filter_Basic_2" - GetAllLogDrainsFilterUnion2TypeGetAllLogDrainsFilterOdata2 GetAllLogDrainsFilterUnion2Type = "getAllLogDrains_filter_Odata_2" + GetAllLogDrainsFilterUnion2TypeBasic GetAllLogDrainsFilterUnion2Type = "basic" + GetAllLogDrainsFilterUnion2TypeOdata GetAllLogDrainsFilterUnion2Type = "odata" ) type GetAllLogDrainsFilterUnion2 struct { @@ -1838,37 +1892,59 @@ type GetAllLogDrainsFilterUnion2 struct { Type GetAllLogDrainsFilterUnion2Type } -func CreateGetAllLogDrainsFilterUnion2GetAllLogDrainsFilterBasic2(getAllLogDrainsFilterBasic2 GetAllLogDrainsFilterBasic2) GetAllLogDrainsFilterUnion2 { - typ := GetAllLogDrainsFilterUnion2TypeGetAllLogDrainsFilterBasic2 +func CreateGetAllLogDrainsFilterUnion2Basic(basic GetAllLogDrainsFilterBasic2) GetAllLogDrainsFilterUnion2 { + typ := GetAllLogDrainsFilterUnion2TypeBasic + + typStr := GetAllLogDrainsTypeBasic2(typ) + basic.Type = typStr return GetAllLogDrainsFilterUnion2{ - GetAllLogDrainsFilterBasic2: &getAllLogDrainsFilterBasic2, + GetAllLogDrainsFilterBasic2: &basic, Type: typ, } } -func CreateGetAllLogDrainsFilterUnion2GetAllLogDrainsFilterOdata2(getAllLogDrainsFilterOdata2 GetAllLogDrainsFilterOdata2) GetAllLogDrainsFilterUnion2 { - typ := GetAllLogDrainsFilterUnion2TypeGetAllLogDrainsFilterOdata2 +func CreateGetAllLogDrainsFilterUnion2Odata(odata GetAllLogDrainsFilterOdata2) GetAllLogDrainsFilterUnion2 { + typ := GetAllLogDrainsFilterUnion2TypeOdata + + typStr := GetAllLogDrainsTypeOdata2(typ) + odata.Type = typStr return GetAllLogDrainsFilterUnion2{ - GetAllLogDrainsFilterOdata2: &getAllLogDrainsFilterOdata2, + GetAllLogDrainsFilterOdata2: &odata, Type: typ, } } func (u *GetAllLogDrainsFilterUnion2) UnmarshalJSON(data []byte) error { - var getAllLogDrainsFilterOdata2 GetAllLogDrainsFilterOdata2 = GetAllLogDrainsFilterOdata2{} - if err := utils.UnmarshalJSON(data, &getAllLogDrainsFilterOdata2, "", true, nil); err == nil { - u.GetAllLogDrainsFilterOdata2 = &getAllLogDrainsFilterOdata2 - u.Type = GetAllLogDrainsFilterUnion2TypeGetAllLogDrainsFilterOdata2 - return nil + type discriminator struct { + Type string `json:"type"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getAllLogDrainsFilterBasic2 GetAllLogDrainsFilterBasic2 = GetAllLogDrainsFilterBasic2{} - if err := utils.UnmarshalJSON(data, &getAllLogDrainsFilterBasic2, "", true, nil); err == nil { - u.GetAllLogDrainsFilterBasic2 = &getAllLogDrainsFilterBasic2 - u.Type = GetAllLogDrainsFilterUnion2TypeGetAllLogDrainsFilterBasic2 + switch dis.Type { + case "basic": + getAllLogDrainsFilterBasic2 := new(GetAllLogDrainsFilterBasic2) + if err := utils.UnmarshalJSON(data, &getAllLogDrainsFilterBasic2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == basic) type GetAllLogDrainsFilterBasic2 within GetAllLogDrainsFilterUnion2: %w", string(data), err) + } + + u.GetAllLogDrainsFilterBasic2 = getAllLogDrainsFilterBasic2 + u.Type = GetAllLogDrainsFilterUnion2TypeBasic + return nil + case "odata": + getAllLogDrainsFilterOdata2 := new(GetAllLogDrainsFilterOdata2) + if err := utils.UnmarshalJSON(data, &getAllLogDrainsFilterOdata2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == odata) type GetAllLogDrainsFilterOdata2 within GetAllLogDrainsFilterUnion2: %w", string(data), err) + } + + u.GetAllLogDrainsFilterOdata2 = getAllLogDrainsFilterOdata2 + u.Type = GetAllLogDrainsFilterUnion2TypeOdata return nil } @@ -1917,6 +1993,14 @@ func (o *GetAllLogDrainsFilterV2V22) GetFilter() GetAllLogDrainsFilterUnion2 { return o.Filter } +func (o *GetAllLogDrainsFilterV2V22) GetFilterBasic() *GetAllLogDrainsFilterBasic2 { + return o.GetFilter().GetAllLogDrainsFilterBasic2 +} + +func (o *GetAllLogDrainsFilterV2V22) GetFilterOdata() *GetAllLogDrainsFilterOdata2 { + return o.GetFilter().GetAllLogDrainsFilterOdata2 +} + type GetAllLogDrainsVersionV12 string const ( @@ -1965,8 +2049,8 @@ func (o *GetAllLogDrainsFilterV2V12) GetVersion() GetAllLogDrainsVersionV12 { type GetAllLogDrainsFilterV2Union2Type string const ( - GetAllLogDrainsFilterV2Union2TypeGetAllLogDrainsFilterV2V12 GetAllLogDrainsFilterV2Union2Type = "getAllLogDrains_filterV2_V1_2" - GetAllLogDrainsFilterV2Union2TypeGetAllLogDrainsFilterV2V22 GetAllLogDrainsFilterV2Union2Type = "getAllLogDrains_filterV2_V2_2" + GetAllLogDrainsFilterV2Union2TypeV1 GetAllLogDrainsFilterV2Union2Type = "v1" + GetAllLogDrainsFilterV2Union2TypeV2 GetAllLogDrainsFilterV2Union2Type = "v2" ) type GetAllLogDrainsFilterV2Union2 struct { @@ -1976,37 +2060,59 @@ type GetAllLogDrainsFilterV2Union2 struct { Type GetAllLogDrainsFilterV2Union2Type } -func CreateGetAllLogDrainsFilterV2Union2GetAllLogDrainsFilterV2V12(getAllLogDrainsFilterV2V12 GetAllLogDrainsFilterV2V12) GetAllLogDrainsFilterV2Union2 { - typ := GetAllLogDrainsFilterV2Union2TypeGetAllLogDrainsFilterV2V12 +func CreateGetAllLogDrainsFilterV2Union2V1(v1 GetAllLogDrainsFilterV2V12) GetAllLogDrainsFilterV2Union2 { + typ := GetAllLogDrainsFilterV2Union2TypeV1 + + typStr := GetAllLogDrainsVersionV12(typ) + v1.Version = typStr return GetAllLogDrainsFilterV2Union2{ - GetAllLogDrainsFilterV2V12: &getAllLogDrainsFilterV2V12, + GetAllLogDrainsFilterV2V12: &v1, Type: typ, } } -func CreateGetAllLogDrainsFilterV2Union2GetAllLogDrainsFilterV2V22(getAllLogDrainsFilterV2V22 GetAllLogDrainsFilterV2V22) GetAllLogDrainsFilterV2Union2 { - typ := GetAllLogDrainsFilterV2Union2TypeGetAllLogDrainsFilterV2V22 +func CreateGetAllLogDrainsFilterV2Union2V2(v2 GetAllLogDrainsFilterV2V22) GetAllLogDrainsFilterV2Union2 { + typ := GetAllLogDrainsFilterV2Union2TypeV2 + + typStr := GetAllLogDrainsVersionV22(typ) + v2.Version = typStr return GetAllLogDrainsFilterV2Union2{ - GetAllLogDrainsFilterV2V22: &getAllLogDrainsFilterV2V22, + GetAllLogDrainsFilterV2V22: &v2, Type: typ, } } func (u *GetAllLogDrainsFilterV2Union2) UnmarshalJSON(data []byte) error { - var getAllLogDrainsFilterV2V22 GetAllLogDrainsFilterV2V22 = GetAllLogDrainsFilterV2V22{} - if err := utils.UnmarshalJSON(data, &getAllLogDrainsFilterV2V22, "", true, nil); err == nil { - u.GetAllLogDrainsFilterV2V22 = &getAllLogDrainsFilterV2V22 - u.Type = GetAllLogDrainsFilterV2Union2TypeGetAllLogDrainsFilterV2V22 - return nil + type discriminator struct { + Version string `json:"version"` } - var getAllLogDrainsFilterV2V12 GetAllLogDrainsFilterV2V12 = GetAllLogDrainsFilterV2V12{} - if err := utils.UnmarshalJSON(data, &getAllLogDrainsFilterV2V12, "", true, nil); err == nil { - u.GetAllLogDrainsFilterV2V12 = &getAllLogDrainsFilterV2V12 - u.Type = GetAllLogDrainsFilterV2Union2TypeGetAllLogDrainsFilterV2V12 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Version { + case "v1": + getAllLogDrainsFilterV2V12 := new(GetAllLogDrainsFilterV2V12) + if err := utils.UnmarshalJSON(data, &getAllLogDrainsFilterV2V12, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Version == v1) type GetAllLogDrainsFilterV2V12 within GetAllLogDrainsFilterV2Union2: %w", string(data), err) + } + + u.GetAllLogDrainsFilterV2V12 = getAllLogDrainsFilterV2V12 + u.Type = GetAllLogDrainsFilterV2Union2TypeV1 + return nil + case "v2": + getAllLogDrainsFilterV2V22 := new(GetAllLogDrainsFilterV2V22) + if err := utils.UnmarshalJSON(data, &getAllLogDrainsFilterV2V22, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Version == v2) type GetAllLogDrainsFilterV2V22 within GetAllLogDrainsFilterV2Union2: %w", string(data), err) + } + + u.GetAllLogDrainsFilterV2V22 = getAllLogDrainsFilterV2V22 + u.Type = GetAllLogDrainsFilterV2Union2TypeV2 return nil } @@ -2126,8 +2232,8 @@ func (o *GetAllLogDrainsProjectAccessAll) GetAccess() GetAllLogDrainsAccessAll { type GetAllLogDrainsProjectAccessUnionType string const ( - GetAllLogDrainsProjectAccessUnionTypeGetAllLogDrainsProjectAccessAll GetAllLogDrainsProjectAccessUnionType = "getAllLogDrains_projectAccess_All" - GetAllLogDrainsProjectAccessUnionTypeGetAllLogDrainsProjectAccessSome GetAllLogDrainsProjectAccessUnionType = "getAllLogDrains_projectAccess_Some" + GetAllLogDrainsProjectAccessUnionTypeAll GetAllLogDrainsProjectAccessUnionType = "all" + GetAllLogDrainsProjectAccessUnionTypeSome GetAllLogDrainsProjectAccessUnionType = "some" ) type GetAllLogDrainsProjectAccessUnion struct { @@ -2137,37 +2243,59 @@ type GetAllLogDrainsProjectAccessUnion struct { Type GetAllLogDrainsProjectAccessUnionType } -func CreateGetAllLogDrainsProjectAccessUnionGetAllLogDrainsProjectAccessAll(getAllLogDrainsProjectAccessAll GetAllLogDrainsProjectAccessAll) GetAllLogDrainsProjectAccessUnion { - typ := GetAllLogDrainsProjectAccessUnionTypeGetAllLogDrainsProjectAccessAll +func CreateGetAllLogDrainsProjectAccessUnionAll(all GetAllLogDrainsProjectAccessAll) GetAllLogDrainsProjectAccessUnion { + typ := GetAllLogDrainsProjectAccessUnionTypeAll + + typStr := GetAllLogDrainsAccessAll(typ) + all.Access = typStr return GetAllLogDrainsProjectAccessUnion{ - GetAllLogDrainsProjectAccessAll: &getAllLogDrainsProjectAccessAll, + GetAllLogDrainsProjectAccessAll: &all, Type: typ, } } -func CreateGetAllLogDrainsProjectAccessUnionGetAllLogDrainsProjectAccessSome(getAllLogDrainsProjectAccessSome GetAllLogDrainsProjectAccessSome) GetAllLogDrainsProjectAccessUnion { - typ := GetAllLogDrainsProjectAccessUnionTypeGetAllLogDrainsProjectAccessSome +func CreateGetAllLogDrainsProjectAccessUnionSome(some GetAllLogDrainsProjectAccessSome) GetAllLogDrainsProjectAccessUnion { + typ := GetAllLogDrainsProjectAccessUnionTypeSome + + typStr := GetAllLogDrainsAccessSome(typ) + some.Access = typStr return GetAllLogDrainsProjectAccessUnion{ - GetAllLogDrainsProjectAccessSome: &getAllLogDrainsProjectAccessSome, + GetAllLogDrainsProjectAccessSome: &some, Type: typ, } } func (u *GetAllLogDrainsProjectAccessUnion) UnmarshalJSON(data []byte) error { - var getAllLogDrainsProjectAccessSome GetAllLogDrainsProjectAccessSome = GetAllLogDrainsProjectAccessSome{} - if err := utils.UnmarshalJSON(data, &getAllLogDrainsProjectAccessSome, "", true, nil); err == nil { - u.GetAllLogDrainsProjectAccessSome = &getAllLogDrainsProjectAccessSome - u.Type = GetAllLogDrainsProjectAccessUnionTypeGetAllLogDrainsProjectAccessSome - return nil + type discriminator struct { + Access string `json:"access"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getAllLogDrainsProjectAccessAll GetAllLogDrainsProjectAccessAll = GetAllLogDrainsProjectAccessAll{} - if err := utils.UnmarshalJSON(data, &getAllLogDrainsProjectAccessAll, "", true, nil); err == nil { - u.GetAllLogDrainsProjectAccessAll = &getAllLogDrainsProjectAccessAll - u.Type = GetAllLogDrainsProjectAccessUnionTypeGetAllLogDrainsProjectAccessAll + switch dis.Access { + case "all": + getAllLogDrainsProjectAccessAll := new(GetAllLogDrainsProjectAccessAll) + if err := utils.UnmarshalJSON(data, &getAllLogDrainsProjectAccessAll, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Access == all) type GetAllLogDrainsProjectAccessAll within GetAllLogDrainsProjectAccessUnion: %w", string(data), err) + } + + u.GetAllLogDrainsProjectAccessAll = getAllLogDrainsProjectAccessAll + u.Type = GetAllLogDrainsProjectAccessUnionTypeAll + return nil + case "some": + getAllLogDrainsProjectAccessSome := new(GetAllLogDrainsProjectAccessSome) + if err := utils.UnmarshalJSON(data, &getAllLogDrainsProjectAccessSome, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Access == some) type GetAllLogDrainsProjectAccessSome within GetAllLogDrainsProjectAccessUnion: %w", string(data), err) + } + + u.GetAllLogDrainsProjectAccessSome = getAllLogDrainsProjectAccessSome + u.Type = GetAllLogDrainsProjectAccessUnionTypeSome return nil } @@ -2278,6 +2406,34 @@ func (o *GetAllLogDrainsDrains2) GetDelivery() *GetAllLogDrainsDeliveryUnion2 { return o.Delivery } +func (o *GetAllLogDrainsDrains2) GetDeliveryHTTP() *GetAllLogDrainsDeliveryHTTP2 { + if v := o.GetDelivery(); v != nil { + return v.GetAllLogDrainsDeliveryHTTP2 + } + return nil +} + +func (o *GetAllLogDrainsDrains2) GetDeliveryOtlphttp() *GetAllLogDrainsDeliveryOtlphttp2 { + if v := o.GetDelivery(); v != nil { + return v.GetAllLogDrainsDeliveryOtlphttp2 + } + return nil +} + +func (o *GetAllLogDrainsDrains2) GetDeliveryClickhouse() *GetAllLogDrainsDeliveryClickhouse2 { + if v := o.GetDelivery(); v != nil { + return v.GetAllLogDrainsDeliveryClickhouse2 + } + return nil +} + +func (o *GetAllLogDrainsDrains2) GetDeliveryInternal() *GetAllLogDrainsDeliveryVercelOtelTracesDb2 { + if v := o.GetDelivery(); v != nil { + return v.GetAllLogDrainsDeliveryVercelOtelTracesDb2 + } + return nil +} + func (o *GetAllLogDrainsDrains2) GetSampling() []GetAllLogDrainsSampling2 { if o == nil { return nil @@ -2334,6 +2490,14 @@ func (o *GetAllLogDrainsDrains2) GetSource() GetAllLogDrainsSourceUnion2 { return o.Source } +func (o *GetAllLogDrainsDrains2) GetSourceSelfServed() *GetAllLogDrainsSourceSelfServed2 { + return o.GetSource().GetAllLogDrainsSourceSelfServed2 +} + +func (o *GetAllLogDrainsDrains2) GetSourceIntegration() *GetAllLogDrainsSourceIntegration2 { + return o.GetSource().GetAllLogDrainsSourceIntegration2 +} + func (o *GetAllLogDrainsDrains2) GetFilter() *string { if o == nil { return nil @@ -2348,6 +2512,20 @@ func (o *GetAllLogDrainsDrains2) GetFilterV2() *GetAllLogDrainsFilterV2Union2 { return o.FilterV2 } +func (o *GetAllLogDrainsDrains2) GetFilterV2V1() *GetAllLogDrainsFilterV2V12 { + if v := o.GetFilterV2(); v != nil { + return v.GetAllLogDrainsFilterV2V12 + } + return nil +} + +func (o *GetAllLogDrainsDrains2) GetFilterV2V2() *GetAllLogDrainsFilterV2V22 { + if v := o.GetFilterV2(); v != nil { + return v.GetAllLogDrainsFilterV2V22 + } + return nil +} + func (o *GetAllLogDrainsDrains2) GetIntegrationIcon() *string { if o == nil { return nil @@ -2376,6 +2554,20 @@ func (o *GetAllLogDrainsDrains2) GetProjectAccess() *GetAllLogDrainsProjectAcces return o.ProjectAccess } +func (o *GetAllLogDrainsDrains2) GetProjectAccessAll() *GetAllLogDrainsProjectAccessAll { + if v := o.GetProjectAccess(); v != nil { + return v.GetAllLogDrainsProjectAccessAll + } + return nil +} + +func (o *GetAllLogDrainsDrains2) GetProjectAccessSome() *GetAllLogDrainsProjectAccessSome { + if v := o.GetProjectAccess(); v != nil { + return v.GetAllLogDrainsProjectAccessSome + } + return nil +} + type GetAllLogDrainsSchemasLog1 struct { } @@ -3096,10 +3288,10 @@ func (o *GetAllLogDrainsDeliveryHTTP1) GetSecret() *GetAllLogDrainsSecretUnion1 type GetAllLogDrainsDeliveryUnion1Type string const ( - GetAllLogDrainsDeliveryUnion1TypeGetAllLogDrainsDeliveryHTTP1 GetAllLogDrainsDeliveryUnion1Type = "getAllLogDrains_delivery_HTTP_1" - GetAllLogDrainsDeliveryUnion1TypeGetAllLogDrainsDeliveryOtlphttp1 GetAllLogDrainsDeliveryUnion1Type = "getAllLogDrains_delivery_Otlphttp_1" - GetAllLogDrainsDeliveryUnion1TypeGetAllLogDrainsDeliveryClickhouse1 GetAllLogDrainsDeliveryUnion1Type = "getAllLogDrains_delivery_Clickhouse_1" - GetAllLogDrainsDeliveryUnion1TypeGetAllLogDrainsDeliveryVercelOtelTracesDb1 GetAllLogDrainsDeliveryUnion1Type = "getAllLogDrains_delivery_VercelOtelTracesDb_1" + GetAllLogDrainsDeliveryUnion1TypeHTTP GetAllLogDrainsDeliveryUnion1Type = "http" + GetAllLogDrainsDeliveryUnion1TypeOtlphttp GetAllLogDrainsDeliveryUnion1Type = "otlphttp" + GetAllLogDrainsDeliveryUnion1TypeClickhouse GetAllLogDrainsDeliveryUnion1Type = "clickhouse" + GetAllLogDrainsDeliveryUnion1TypeInternal GetAllLogDrainsDeliveryUnion1Type = "internal" ) type GetAllLogDrainsDeliveryUnion1 struct { @@ -3111,69 +3303,101 @@ type GetAllLogDrainsDeliveryUnion1 struct { Type GetAllLogDrainsDeliveryUnion1Type } -func CreateGetAllLogDrainsDeliveryUnion1GetAllLogDrainsDeliveryHTTP1(getAllLogDrainsDeliveryHTTP1 GetAllLogDrainsDeliveryHTTP1) GetAllLogDrainsDeliveryUnion1 { - typ := GetAllLogDrainsDeliveryUnion1TypeGetAllLogDrainsDeliveryHTTP1 +func CreateGetAllLogDrainsDeliveryUnion1HTTP(http GetAllLogDrainsDeliveryHTTP1) GetAllLogDrainsDeliveryUnion1 { + typ := GetAllLogDrainsDeliveryUnion1TypeHTTP + + typStr := GetAllLogDrainsTypeHTTP1(typ) + http.Type = typStr return GetAllLogDrainsDeliveryUnion1{ - GetAllLogDrainsDeliveryHTTP1: &getAllLogDrainsDeliveryHTTP1, + GetAllLogDrainsDeliveryHTTP1: &http, Type: typ, } } -func CreateGetAllLogDrainsDeliveryUnion1GetAllLogDrainsDeliveryOtlphttp1(getAllLogDrainsDeliveryOtlphttp1 GetAllLogDrainsDeliveryOtlphttp1) GetAllLogDrainsDeliveryUnion1 { - typ := GetAllLogDrainsDeliveryUnion1TypeGetAllLogDrainsDeliveryOtlphttp1 +func CreateGetAllLogDrainsDeliveryUnion1Otlphttp(otlphttp GetAllLogDrainsDeliveryOtlphttp1) GetAllLogDrainsDeliveryUnion1 { + typ := GetAllLogDrainsDeliveryUnion1TypeOtlphttp + + typStr := GetAllLogDrainsTypeOtlphttp1(typ) + otlphttp.Type = typStr return GetAllLogDrainsDeliveryUnion1{ - GetAllLogDrainsDeliveryOtlphttp1: &getAllLogDrainsDeliveryOtlphttp1, + GetAllLogDrainsDeliveryOtlphttp1: &otlphttp, Type: typ, } } -func CreateGetAllLogDrainsDeliveryUnion1GetAllLogDrainsDeliveryClickhouse1(getAllLogDrainsDeliveryClickhouse1 GetAllLogDrainsDeliveryClickhouse1) GetAllLogDrainsDeliveryUnion1 { - typ := GetAllLogDrainsDeliveryUnion1TypeGetAllLogDrainsDeliveryClickhouse1 +func CreateGetAllLogDrainsDeliveryUnion1Clickhouse(clickhouse GetAllLogDrainsDeliveryClickhouse1) GetAllLogDrainsDeliveryUnion1 { + typ := GetAllLogDrainsDeliveryUnion1TypeClickhouse + + typStr := GetAllLogDrainsTypeClickhouse1(typ) + clickhouse.Type = typStr return GetAllLogDrainsDeliveryUnion1{ - GetAllLogDrainsDeliveryClickhouse1: &getAllLogDrainsDeliveryClickhouse1, + GetAllLogDrainsDeliveryClickhouse1: &clickhouse, Type: typ, } } -func CreateGetAllLogDrainsDeliveryUnion1GetAllLogDrainsDeliveryVercelOtelTracesDb1(getAllLogDrainsDeliveryVercelOtelTracesDb1 GetAllLogDrainsDeliveryVercelOtelTracesDb1) GetAllLogDrainsDeliveryUnion1 { - typ := GetAllLogDrainsDeliveryUnion1TypeGetAllLogDrainsDeliveryVercelOtelTracesDb1 +func CreateGetAllLogDrainsDeliveryUnion1Internal(internal GetAllLogDrainsDeliveryVercelOtelTracesDb1) GetAllLogDrainsDeliveryUnion1 { + typ := GetAllLogDrainsDeliveryUnion1TypeInternal + + typStr := GetAllLogDrainsTypeInternal1(typ) + internal.Type = typStr return GetAllLogDrainsDeliveryUnion1{ - GetAllLogDrainsDeliveryVercelOtelTracesDb1: &getAllLogDrainsDeliveryVercelOtelTracesDb1, + GetAllLogDrainsDeliveryVercelOtelTracesDb1: &internal, Type: typ, } } func (u *GetAllLogDrainsDeliveryUnion1) UnmarshalJSON(data []byte) error { - var getAllLogDrainsDeliveryHTTP1 GetAllLogDrainsDeliveryHTTP1 = GetAllLogDrainsDeliveryHTTP1{} - if err := utils.UnmarshalJSON(data, &getAllLogDrainsDeliveryHTTP1, "", true, nil); err == nil { - u.GetAllLogDrainsDeliveryHTTP1 = &getAllLogDrainsDeliveryHTTP1 - u.Type = GetAllLogDrainsDeliveryUnion1TypeGetAllLogDrainsDeliveryHTTP1 - return nil + type discriminator struct { + Type string `json:"type"` } - var getAllLogDrainsDeliveryOtlphttp1 GetAllLogDrainsDeliveryOtlphttp1 = GetAllLogDrainsDeliveryOtlphttp1{} - if err := utils.UnmarshalJSON(data, &getAllLogDrainsDeliveryOtlphttp1, "", true, nil); err == nil { - u.GetAllLogDrainsDeliveryOtlphttp1 = &getAllLogDrainsDeliveryOtlphttp1 - u.Type = GetAllLogDrainsDeliveryUnion1TypeGetAllLogDrainsDeliveryOtlphttp1 - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getAllLogDrainsDeliveryClickhouse1 GetAllLogDrainsDeliveryClickhouse1 = GetAllLogDrainsDeliveryClickhouse1{} - if err := utils.UnmarshalJSON(data, &getAllLogDrainsDeliveryClickhouse1, "", true, nil); err == nil { - u.GetAllLogDrainsDeliveryClickhouse1 = &getAllLogDrainsDeliveryClickhouse1 - u.Type = GetAllLogDrainsDeliveryUnion1TypeGetAllLogDrainsDeliveryClickhouse1 + switch dis.Type { + case "http": + getAllLogDrainsDeliveryHTTP1 := new(GetAllLogDrainsDeliveryHTTP1) + if err := utils.UnmarshalJSON(data, &getAllLogDrainsDeliveryHTTP1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == http) type GetAllLogDrainsDeliveryHTTP1 within GetAllLogDrainsDeliveryUnion1: %w", string(data), err) + } + + u.GetAllLogDrainsDeliveryHTTP1 = getAllLogDrainsDeliveryHTTP1 + u.Type = GetAllLogDrainsDeliveryUnion1TypeHTTP return nil - } + case "otlphttp": + getAllLogDrainsDeliveryOtlphttp1 := new(GetAllLogDrainsDeliveryOtlphttp1) + if err := utils.UnmarshalJSON(data, &getAllLogDrainsDeliveryOtlphttp1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == otlphttp) type GetAllLogDrainsDeliveryOtlphttp1 within GetAllLogDrainsDeliveryUnion1: %w", string(data), err) + } + + u.GetAllLogDrainsDeliveryOtlphttp1 = getAllLogDrainsDeliveryOtlphttp1 + u.Type = GetAllLogDrainsDeliveryUnion1TypeOtlphttp + return nil + case "clickhouse": + getAllLogDrainsDeliveryClickhouse1 := new(GetAllLogDrainsDeliveryClickhouse1) + if err := utils.UnmarshalJSON(data, &getAllLogDrainsDeliveryClickhouse1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == clickhouse) type GetAllLogDrainsDeliveryClickhouse1 within GetAllLogDrainsDeliveryUnion1: %w", string(data), err) + } - var getAllLogDrainsDeliveryVercelOtelTracesDb1 GetAllLogDrainsDeliveryVercelOtelTracesDb1 = GetAllLogDrainsDeliveryVercelOtelTracesDb1{} - if err := utils.UnmarshalJSON(data, &getAllLogDrainsDeliveryVercelOtelTracesDb1, "", true, nil); err == nil { - u.GetAllLogDrainsDeliveryVercelOtelTracesDb1 = &getAllLogDrainsDeliveryVercelOtelTracesDb1 - u.Type = GetAllLogDrainsDeliveryUnion1TypeGetAllLogDrainsDeliveryVercelOtelTracesDb1 + u.GetAllLogDrainsDeliveryClickhouse1 = getAllLogDrainsDeliveryClickhouse1 + u.Type = GetAllLogDrainsDeliveryUnion1TypeClickhouse + return nil + case "internal": + getAllLogDrainsDeliveryVercelOtelTracesDb1 := new(GetAllLogDrainsDeliveryVercelOtelTracesDb1) + if err := utils.UnmarshalJSON(data, &getAllLogDrainsDeliveryVercelOtelTracesDb1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == internal) type GetAllLogDrainsDeliveryVercelOtelTracesDb1 within GetAllLogDrainsDeliveryUnion1: %w", string(data), err) + } + + u.GetAllLogDrainsDeliveryVercelOtelTracesDb1 = getAllLogDrainsDeliveryVercelOtelTracesDb1 + u.Type = GetAllLogDrainsDeliveryUnion1TypeInternal return nil } @@ -3481,8 +3705,8 @@ func (o *GetAllLogDrainsSourceSelfServed1) GetKind() GetAllLogDrainsKindSelfServ type GetAllLogDrainsSourceUnion1Type string const ( - GetAllLogDrainsSourceUnion1TypeGetAllLogDrainsSourceSelfServed1 GetAllLogDrainsSourceUnion1Type = "getAllLogDrains_source_SelfServed_1" - GetAllLogDrainsSourceUnion1TypeGetAllLogDrainsSourceIntegration1 GetAllLogDrainsSourceUnion1Type = "getAllLogDrains_source_Integration_1" + GetAllLogDrainsSourceUnion1TypeSelfServed GetAllLogDrainsSourceUnion1Type = "self-served" + GetAllLogDrainsSourceUnion1TypeIntegration GetAllLogDrainsSourceUnion1Type = "integration" ) type GetAllLogDrainsSourceUnion1 struct { @@ -3492,37 +3716,59 @@ type GetAllLogDrainsSourceUnion1 struct { Type GetAllLogDrainsSourceUnion1Type } -func CreateGetAllLogDrainsSourceUnion1GetAllLogDrainsSourceSelfServed1(getAllLogDrainsSourceSelfServed1 GetAllLogDrainsSourceSelfServed1) GetAllLogDrainsSourceUnion1 { - typ := GetAllLogDrainsSourceUnion1TypeGetAllLogDrainsSourceSelfServed1 +func CreateGetAllLogDrainsSourceUnion1SelfServed(selfServed GetAllLogDrainsSourceSelfServed1) GetAllLogDrainsSourceUnion1 { + typ := GetAllLogDrainsSourceUnion1TypeSelfServed + + typStr := GetAllLogDrainsKindSelfServed1(typ) + selfServed.Kind = typStr return GetAllLogDrainsSourceUnion1{ - GetAllLogDrainsSourceSelfServed1: &getAllLogDrainsSourceSelfServed1, + GetAllLogDrainsSourceSelfServed1: &selfServed, Type: typ, } } -func CreateGetAllLogDrainsSourceUnion1GetAllLogDrainsSourceIntegration1(getAllLogDrainsSourceIntegration1 GetAllLogDrainsSourceIntegration1) GetAllLogDrainsSourceUnion1 { - typ := GetAllLogDrainsSourceUnion1TypeGetAllLogDrainsSourceIntegration1 +func CreateGetAllLogDrainsSourceUnion1Integration(integration GetAllLogDrainsSourceIntegration1) GetAllLogDrainsSourceUnion1 { + typ := GetAllLogDrainsSourceUnion1TypeIntegration + + typStr := GetAllLogDrainsKindIntegration1(typ) + integration.Kind = typStr return GetAllLogDrainsSourceUnion1{ - GetAllLogDrainsSourceIntegration1: &getAllLogDrainsSourceIntegration1, + GetAllLogDrainsSourceIntegration1: &integration, Type: typ, } } func (u *GetAllLogDrainsSourceUnion1) UnmarshalJSON(data []byte) error { - var getAllLogDrainsSourceIntegration1 GetAllLogDrainsSourceIntegration1 = GetAllLogDrainsSourceIntegration1{} - if err := utils.UnmarshalJSON(data, &getAllLogDrainsSourceIntegration1, "", true, nil); err == nil { - u.GetAllLogDrainsSourceIntegration1 = &getAllLogDrainsSourceIntegration1 - u.Type = GetAllLogDrainsSourceUnion1TypeGetAllLogDrainsSourceIntegration1 - return nil + type discriminator struct { + Kind string `json:"kind"` } - var getAllLogDrainsSourceSelfServed1 GetAllLogDrainsSourceSelfServed1 = GetAllLogDrainsSourceSelfServed1{} - if err := utils.UnmarshalJSON(data, &getAllLogDrainsSourceSelfServed1, "", true, nil); err == nil { - u.GetAllLogDrainsSourceSelfServed1 = &getAllLogDrainsSourceSelfServed1 - u.Type = GetAllLogDrainsSourceUnion1TypeGetAllLogDrainsSourceSelfServed1 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Kind { + case "self-served": + getAllLogDrainsSourceSelfServed1 := new(GetAllLogDrainsSourceSelfServed1) + if err := utils.UnmarshalJSON(data, &getAllLogDrainsSourceSelfServed1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == self-served) type GetAllLogDrainsSourceSelfServed1 within GetAllLogDrainsSourceUnion1: %w", string(data), err) + } + + u.GetAllLogDrainsSourceSelfServed1 = getAllLogDrainsSourceSelfServed1 + u.Type = GetAllLogDrainsSourceUnion1TypeSelfServed + return nil + case "integration": + getAllLogDrainsSourceIntegration1 := new(GetAllLogDrainsSourceIntegration1) + if err := utils.UnmarshalJSON(data, &getAllLogDrainsSourceIntegration1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == integration) type GetAllLogDrainsSourceIntegration1 within GetAllLogDrainsSourceUnion1: %w", string(data), err) + } + + u.GetAllLogDrainsSourceIntegration1 = getAllLogDrainsSourceIntegration1 + u.Type = GetAllLogDrainsSourceUnion1TypeIntegration return nil } @@ -3830,8 +4076,8 @@ func (o *GetAllLogDrainsFilterBasic1) GetDeployment() *GetAllLogDrainsDeployment type GetAllLogDrainsFilterUnion1Type string const ( - GetAllLogDrainsFilterUnion1TypeGetAllLogDrainsFilterBasic1 GetAllLogDrainsFilterUnion1Type = "getAllLogDrains_filter_Basic_1" - GetAllLogDrainsFilterUnion1TypeGetAllLogDrainsFilterOdata1 GetAllLogDrainsFilterUnion1Type = "getAllLogDrains_filter_Odata_1" + GetAllLogDrainsFilterUnion1TypeBasic GetAllLogDrainsFilterUnion1Type = "basic" + GetAllLogDrainsFilterUnion1TypeOdata GetAllLogDrainsFilterUnion1Type = "odata" ) type GetAllLogDrainsFilterUnion1 struct { @@ -3841,37 +4087,59 @@ type GetAllLogDrainsFilterUnion1 struct { Type GetAllLogDrainsFilterUnion1Type } -func CreateGetAllLogDrainsFilterUnion1GetAllLogDrainsFilterBasic1(getAllLogDrainsFilterBasic1 GetAllLogDrainsFilterBasic1) GetAllLogDrainsFilterUnion1 { - typ := GetAllLogDrainsFilterUnion1TypeGetAllLogDrainsFilterBasic1 +func CreateGetAllLogDrainsFilterUnion1Basic(basic GetAllLogDrainsFilterBasic1) GetAllLogDrainsFilterUnion1 { + typ := GetAllLogDrainsFilterUnion1TypeBasic + + typStr := GetAllLogDrainsTypeBasic1(typ) + basic.Type = typStr return GetAllLogDrainsFilterUnion1{ - GetAllLogDrainsFilterBasic1: &getAllLogDrainsFilterBasic1, + GetAllLogDrainsFilterBasic1: &basic, Type: typ, } } -func CreateGetAllLogDrainsFilterUnion1GetAllLogDrainsFilterOdata1(getAllLogDrainsFilterOdata1 GetAllLogDrainsFilterOdata1) GetAllLogDrainsFilterUnion1 { - typ := GetAllLogDrainsFilterUnion1TypeGetAllLogDrainsFilterOdata1 +func CreateGetAllLogDrainsFilterUnion1Odata(odata GetAllLogDrainsFilterOdata1) GetAllLogDrainsFilterUnion1 { + typ := GetAllLogDrainsFilterUnion1TypeOdata + + typStr := GetAllLogDrainsTypeOdata1(typ) + odata.Type = typStr return GetAllLogDrainsFilterUnion1{ - GetAllLogDrainsFilterOdata1: &getAllLogDrainsFilterOdata1, + GetAllLogDrainsFilterOdata1: &odata, Type: typ, } } func (u *GetAllLogDrainsFilterUnion1) UnmarshalJSON(data []byte) error { - var getAllLogDrainsFilterOdata1 GetAllLogDrainsFilterOdata1 = GetAllLogDrainsFilterOdata1{} - if err := utils.UnmarshalJSON(data, &getAllLogDrainsFilterOdata1, "", true, nil); err == nil { - u.GetAllLogDrainsFilterOdata1 = &getAllLogDrainsFilterOdata1 - u.Type = GetAllLogDrainsFilterUnion1TypeGetAllLogDrainsFilterOdata1 - return nil + type discriminator struct { + Type string `json:"type"` } - var getAllLogDrainsFilterBasic1 GetAllLogDrainsFilterBasic1 = GetAllLogDrainsFilterBasic1{} - if err := utils.UnmarshalJSON(data, &getAllLogDrainsFilterBasic1, "", true, nil); err == nil { - u.GetAllLogDrainsFilterBasic1 = &getAllLogDrainsFilterBasic1 - u.Type = GetAllLogDrainsFilterUnion1TypeGetAllLogDrainsFilterBasic1 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Type { + case "basic": + getAllLogDrainsFilterBasic1 := new(GetAllLogDrainsFilterBasic1) + if err := utils.UnmarshalJSON(data, &getAllLogDrainsFilterBasic1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == basic) type GetAllLogDrainsFilterBasic1 within GetAllLogDrainsFilterUnion1: %w", string(data), err) + } + + u.GetAllLogDrainsFilterBasic1 = getAllLogDrainsFilterBasic1 + u.Type = GetAllLogDrainsFilterUnion1TypeBasic + return nil + case "odata": + getAllLogDrainsFilterOdata1 := new(GetAllLogDrainsFilterOdata1) + if err := utils.UnmarshalJSON(data, &getAllLogDrainsFilterOdata1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == odata) type GetAllLogDrainsFilterOdata1 within GetAllLogDrainsFilterUnion1: %w", string(data), err) + } + + u.GetAllLogDrainsFilterOdata1 = getAllLogDrainsFilterOdata1 + u.Type = GetAllLogDrainsFilterUnion1TypeOdata return nil } @@ -3920,6 +4188,14 @@ func (o *GetAllLogDrainsFilterV2V21) GetFilter() GetAllLogDrainsFilterUnion1 { return o.Filter } +func (o *GetAllLogDrainsFilterV2V21) GetFilterBasic() *GetAllLogDrainsFilterBasic1 { + return o.GetFilter().GetAllLogDrainsFilterBasic1 +} + +func (o *GetAllLogDrainsFilterV2V21) GetFilterOdata() *GetAllLogDrainsFilterOdata1 { + return o.GetFilter().GetAllLogDrainsFilterOdata1 +} + type GetAllLogDrainsVersionV11 string const ( @@ -3968,8 +4244,8 @@ func (o *GetAllLogDrainsFilterV2V11) GetVersion() GetAllLogDrainsVersionV11 { type GetAllLogDrainsFilterV2Union1Type string const ( - GetAllLogDrainsFilterV2Union1TypeGetAllLogDrainsFilterV2V11 GetAllLogDrainsFilterV2Union1Type = "getAllLogDrains_filterV2_V1_1" - GetAllLogDrainsFilterV2Union1TypeGetAllLogDrainsFilterV2V21 GetAllLogDrainsFilterV2Union1Type = "getAllLogDrains_filterV2_V2_1" + GetAllLogDrainsFilterV2Union1TypeV1 GetAllLogDrainsFilterV2Union1Type = "v1" + GetAllLogDrainsFilterV2Union1TypeV2 GetAllLogDrainsFilterV2Union1Type = "v2" ) type GetAllLogDrainsFilterV2Union1 struct { @@ -3979,37 +4255,59 @@ type GetAllLogDrainsFilterV2Union1 struct { Type GetAllLogDrainsFilterV2Union1Type } -func CreateGetAllLogDrainsFilterV2Union1GetAllLogDrainsFilterV2V11(getAllLogDrainsFilterV2V11 GetAllLogDrainsFilterV2V11) GetAllLogDrainsFilterV2Union1 { - typ := GetAllLogDrainsFilterV2Union1TypeGetAllLogDrainsFilterV2V11 +func CreateGetAllLogDrainsFilterV2Union1V1(v1 GetAllLogDrainsFilterV2V11) GetAllLogDrainsFilterV2Union1 { + typ := GetAllLogDrainsFilterV2Union1TypeV1 + + typStr := GetAllLogDrainsVersionV11(typ) + v1.Version = typStr return GetAllLogDrainsFilterV2Union1{ - GetAllLogDrainsFilterV2V11: &getAllLogDrainsFilterV2V11, + GetAllLogDrainsFilterV2V11: &v1, Type: typ, } } -func CreateGetAllLogDrainsFilterV2Union1GetAllLogDrainsFilterV2V21(getAllLogDrainsFilterV2V21 GetAllLogDrainsFilterV2V21) GetAllLogDrainsFilterV2Union1 { - typ := GetAllLogDrainsFilterV2Union1TypeGetAllLogDrainsFilterV2V21 +func CreateGetAllLogDrainsFilterV2Union1V2(v2 GetAllLogDrainsFilterV2V21) GetAllLogDrainsFilterV2Union1 { + typ := GetAllLogDrainsFilterV2Union1TypeV2 + + typStr := GetAllLogDrainsVersionV21(typ) + v2.Version = typStr return GetAllLogDrainsFilterV2Union1{ - GetAllLogDrainsFilterV2V21: &getAllLogDrainsFilterV2V21, + GetAllLogDrainsFilterV2V21: &v2, Type: typ, } } func (u *GetAllLogDrainsFilterV2Union1) UnmarshalJSON(data []byte) error { - var getAllLogDrainsFilterV2V21 GetAllLogDrainsFilterV2V21 = GetAllLogDrainsFilterV2V21{} - if err := utils.UnmarshalJSON(data, &getAllLogDrainsFilterV2V21, "", true, nil); err == nil { - u.GetAllLogDrainsFilterV2V21 = &getAllLogDrainsFilterV2V21 - u.Type = GetAllLogDrainsFilterV2Union1TypeGetAllLogDrainsFilterV2V21 - return nil + type discriminator struct { + Version string `json:"version"` } - var getAllLogDrainsFilterV2V11 GetAllLogDrainsFilterV2V11 = GetAllLogDrainsFilterV2V11{} - if err := utils.UnmarshalJSON(data, &getAllLogDrainsFilterV2V11, "", true, nil); err == nil { - u.GetAllLogDrainsFilterV2V11 = &getAllLogDrainsFilterV2V11 - u.Type = GetAllLogDrainsFilterV2Union1TypeGetAllLogDrainsFilterV2V11 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Version { + case "v1": + getAllLogDrainsFilterV2V11 := new(GetAllLogDrainsFilterV2V11) + if err := utils.UnmarshalJSON(data, &getAllLogDrainsFilterV2V11, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Version == v1) type GetAllLogDrainsFilterV2V11 within GetAllLogDrainsFilterV2Union1: %w", string(data), err) + } + + u.GetAllLogDrainsFilterV2V11 = getAllLogDrainsFilterV2V11 + u.Type = GetAllLogDrainsFilterV2Union1TypeV1 + return nil + case "v2": + getAllLogDrainsFilterV2V21 := new(GetAllLogDrainsFilterV2V21) + if err := utils.UnmarshalJSON(data, &getAllLogDrainsFilterV2V21, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Version == v2) type GetAllLogDrainsFilterV2V21 within GetAllLogDrainsFilterV2Union1: %w", string(data), err) + } + + u.GetAllLogDrainsFilterV2V21 = getAllLogDrainsFilterV2V21 + u.Type = GetAllLogDrainsFilterV2Union1TypeV2 return nil } @@ -4116,6 +4414,34 @@ func (o *GetAllLogDrainsDrains1) GetDelivery() *GetAllLogDrainsDeliveryUnion1 { return o.Delivery } +func (o *GetAllLogDrainsDrains1) GetDeliveryHTTP() *GetAllLogDrainsDeliveryHTTP1 { + if v := o.GetDelivery(); v != nil { + return v.GetAllLogDrainsDeliveryHTTP1 + } + return nil +} + +func (o *GetAllLogDrainsDrains1) GetDeliveryOtlphttp() *GetAllLogDrainsDeliveryOtlphttp1 { + if v := o.GetDelivery(); v != nil { + return v.GetAllLogDrainsDeliveryOtlphttp1 + } + return nil +} + +func (o *GetAllLogDrainsDrains1) GetDeliveryClickhouse() *GetAllLogDrainsDeliveryClickhouse1 { + if v := o.GetDelivery(); v != nil { + return v.GetAllLogDrainsDeliveryClickhouse1 + } + return nil +} + +func (o *GetAllLogDrainsDrains1) GetDeliveryInternal() *GetAllLogDrainsDeliveryVercelOtelTracesDb1 { + if v := o.GetDelivery(); v != nil { + return v.GetAllLogDrainsDeliveryVercelOtelTracesDb1 + } + return nil +} + func (o *GetAllLogDrainsDrains1) GetSampling() []GetAllLogDrainsSampling1 { if o == nil { return nil @@ -4172,6 +4498,14 @@ func (o *GetAllLogDrainsDrains1) GetSource() GetAllLogDrainsSourceUnion1 { return o.Source } +func (o *GetAllLogDrainsDrains1) GetSourceSelfServed() *GetAllLogDrainsSourceSelfServed1 { + return o.GetSource().GetAllLogDrainsSourceSelfServed1 +} + +func (o *GetAllLogDrainsDrains1) GetSourceIntegration() *GetAllLogDrainsSourceIntegration1 { + return o.GetSource().GetAllLogDrainsSourceIntegration1 +} + func (o *GetAllLogDrainsDrains1) GetFilter() *string { if o == nil { return nil @@ -4186,6 +4520,20 @@ func (o *GetAllLogDrainsDrains1) GetFilterV2() *GetAllLogDrainsFilterV2Union1 { return o.FilterV2 } +func (o *GetAllLogDrainsDrains1) GetFilterV2V1() *GetAllLogDrainsFilterV2V11 { + if v := o.GetFilterV2(); v != nil { + return v.GetAllLogDrainsFilterV2V11 + } + return nil +} + +func (o *GetAllLogDrainsDrains1) GetFilterV2V2() *GetAllLogDrainsFilterV2V21 { + if v := o.GetFilterV2(); v != nil { + return v.GetAllLogDrainsFilterV2V21 + } + return nil +} + type GetAllLogDrainsDrainsUnionType string const ( diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getconfiguration.go b/src/__tests__/mockserver/internal/sdk/models/operations/getconfiguration.go index b44f7fda..0ffdc434 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getconfiguration.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getconfiguration.go @@ -892,8 +892,8 @@ func (o *TransferRequestTransferToMarketplace) GetAuthorizationID() *string { type TransferRequestUnionType string const ( - TransferRequestUnionTypeTransferRequestTransferToMarketplace TransferRequestUnionType = "transferRequest_TransferToMarketplace" - TransferRequestUnionTypeTransferRequestTransferFromMarketplace TransferRequestUnionType = "transferRequest_TransferFromMarketplace" + TransferRequestUnionTypeTransferToMarketplace TransferRequestUnionType = "transfer-to-marketplace" + TransferRequestUnionTypeTransferFromMarketplace TransferRequestUnionType = "transfer-from-marketplace" ) type TransferRequest struct { @@ -903,37 +903,59 @@ type TransferRequest struct { Type TransferRequestUnionType } -func CreateTransferRequestTransferRequestTransferToMarketplace(transferRequestTransferToMarketplace TransferRequestTransferToMarketplace) TransferRequest { - typ := TransferRequestUnionTypeTransferRequestTransferToMarketplace +func CreateTransferRequestTransferToMarketplace(transferToMarketplace TransferRequestTransferToMarketplace) TransferRequest { + typ := TransferRequestUnionTypeTransferToMarketplace + + typStr := KindTransferToMarketplace(typ) + transferToMarketplace.Kind = typStr return TransferRequest{ - TransferRequestTransferToMarketplace: &transferRequestTransferToMarketplace, + TransferRequestTransferToMarketplace: &transferToMarketplace, Type: typ, } } -func CreateTransferRequestTransferRequestTransferFromMarketplace(transferRequestTransferFromMarketplace TransferRequestTransferFromMarketplace) TransferRequest { - typ := TransferRequestUnionTypeTransferRequestTransferFromMarketplace +func CreateTransferRequestTransferFromMarketplace(transferFromMarketplace TransferRequestTransferFromMarketplace) TransferRequest { + typ := TransferRequestUnionTypeTransferFromMarketplace + + typStr := KindTransferFromMarketplace(typ) + transferFromMarketplace.Kind = typStr return TransferRequest{ - TransferRequestTransferFromMarketplace: &transferRequestTransferFromMarketplace, + TransferRequestTransferFromMarketplace: &transferFromMarketplace, Type: typ, } } func (u *TransferRequest) UnmarshalJSON(data []byte) error { - var transferRequestTransferToMarketplace TransferRequestTransferToMarketplace = TransferRequestTransferToMarketplace{} - if err := utils.UnmarshalJSON(data, &transferRequestTransferToMarketplace, "", true, nil); err == nil { - u.TransferRequestTransferToMarketplace = &transferRequestTransferToMarketplace - u.Type = TransferRequestUnionTypeTransferRequestTransferToMarketplace - return nil + type discriminator struct { + Kind string `json:"kind"` } - var transferRequestTransferFromMarketplace TransferRequestTransferFromMarketplace = TransferRequestTransferFromMarketplace{} - if err := utils.UnmarshalJSON(data, &transferRequestTransferFromMarketplace, "", true, nil); err == nil { - u.TransferRequestTransferFromMarketplace = &transferRequestTransferFromMarketplace - u.Type = TransferRequestUnionTypeTransferRequestTransferFromMarketplace + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Kind { + case "transfer-to-marketplace": + transferRequestTransferToMarketplace := new(TransferRequestTransferToMarketplace) + if err := utils.UnmarshalJSON(data, &transferRequestTransferToMarketplace, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == transfer-to-marketplace) type TransferRequestTransferToMarketplace within TransferRequest: %w", string(data), err) + } + + u.TransferRequestTransferToMarketplace = transferRequestTransferToMarketplace + u.Type = TransferRequestUnionTypeTransferToMarketplace + return nil + case "transfer-from-marketplace": + transferRequestTransferFromMarketplace := new(TransferRequestTransferFromMarketplace) + if err := utils.UnmarshalJSON(data, &transferRequestTransferFromMarketplace, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == transfer-from-marketplace) type TransferRequestTransferFromMarketplace within TransferRequest: %w", string(data), err) + } + + u.TransferRequestTransferFromMarketplace = transferRequestTransferFromMarketplace + u.Type = TransferRequestUnionTypeTransferFromMarketplace return nil } @@ -1150,6 +1172,14 @@ func (o *GetConfigurationIntegrationConfiguration1) GetTransferRequest() Transfe return o.TransferRequest } +func (o *GetConfigurationIntegrationConfiguration1) GetTransferRequestTransferToMarketplace() *TransferRequestTransferToMarketplace { + return o.GetTransferRequest().TransferRequestTransferToMarketplace +} + +func (o *GetConfigurationIntegrationConfiguration1) GetTransferRequestTransferFromMarketplace() *TransferRequestTransferFromMarketplace { + return o.GetTransferRequest().TransferRequestTransferFromMarketplace +} + func (o *GetConfigurationIntegrationConfiguration1) GetProjects() []string { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getdeployment.go b/src/__tests__/mockserver/internal/sdk/models/operations/getdeployment.go index a7d214a9..b4de298b 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getdeployment.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getdeployment.go @@ -8409,8 +8409,10 @@ func (o *GetDeploymentHasHost) GetValue() GetDeploymentHasValueUnion1 { type GetDeploymentHasUnionType string const ( - GetDeploymentHasUnionTypeGetDeploymentHasHost GetDeploymentHasUnionType = "getDeployment_has_Host" - GetDeploymentHasUnionTypeGetDeploymentHas GetDeploymentHasUnionType = "getDeployment_has" + GetDeploymentHasUnionTypeHost GetDeploymentHasUnionType = "host" + GetDeploymentHasUnionTypeHeader GetDeploymentHasUnionType = "header" + GetDeploymentHasUnionTypeCookie GetDeploymentHasUnionType = "cookie" + GetDeploymentHasUnionTypeQuery GetDeploymentHasUnionType = "query" ) type GetDeploymentHasUnion struct { @@ -8420,37 +8422,101 @@ type GetDeploymentHasUnion struct { Type GetDeploymentHasUnionType } -func CreateGetDeploymentHasUnionGetDeploymentHasHost(getDeploymentHasHost GetDeploymentHasHost) GetDeploymentHasUnion { - typ := GetDeploymentHasUnionTypeGetDeploymentHasHost +func CreateGetDeploymentHasUnionHost(host GetDeploymentHasHost) GetDeploymentHasUnion { + typ := GetDeploymentHasUnionTypeHost + + typStr := GetDeploymentHasTypeHost(typ) + host.Type = typStr return GetDeploymentHasUnion{ - GetDeploymentHasHost: &getDeploymentHasHost, + GetDeploymentHasHost: &host, Type: typ, } } -func CreateGetDeploymentHasUnionGetDeploymentHas(getDeploymentHas GetDeploymentHas) GetDeploymentHasUnion { - typ := GetDeploymentHasUnionTypeGetDeploymentHas +func CreateGetDeploymentHasUnionHeader(header GetDeploymentHas) GetDeploymentHasUnion { + typ := GetDeploymentHasUnionTypeHeader + + typStr := GetDeploymentHasType(typ) + header.Type = typStr + + return GetDeploymentHasUnion{ + GetDeploymentHas: &header, + Type: typ, + } +} + +func CreateGetDeploymentHasUnionCookie(cookie GetDeploymentHas) GetDeploymentHasUnion { + typ := GetDeploymentHasUnionTypeCookie + + typStr := GetDeploymentHasType(typ) + cookie.Type = typStr + + return GetDeploymentHasUnion{ + GetDeploymentHas: &cookie, + Type: typ, + } +} + +func CreateGetDeploymentHasUnionQuery(query GetDeploymentHas) GetDeploymentHasUnion { + typ := GetDeploymentHasUnionTypeQuery + + typStr := GetDeploymentHasType(typ) + query.Type = typStr return GetDeploymentHasUnion{ - GetDeploymentHas: &getDeploymentHas, + GetDeploymentHas: &query, Type: typ, } } func (u *GetDeploymentHasUnion) UnmarshalJSON(data []byte) error { - var getDeploymentHasHost GetDeploymentHasHost = GetDeploymentHasHost{} - if err := utils.UnmarshalJSON(data, &getDeploymentHasHost, "", true, nil); err == nil { - u.GetDeploymentHasHost = &getDeploymentHasHost - u.Type = GetDeploymentHasUnionTypeGetDeploymentHasHost - return nil + type discriminator struct { + Type string `json:"type"` } - var getDeploymentHas GetDeploymentHas = GetDeploymentHas{} - if err := utils.UnmarshalJSON(data, &getDeploymentHas, "", true, nil); err == nil { - u.GetDeploymentHas = &getDeploymentHas - u.Type = GetDeploymentHasUnionTypeGetDeploymentHas + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Type { + case "host": + getDeploymentHasHost := new(GetDeploymentHasHost) + if err := utils.UnmarshalJSON(data, &getDeploymentHasHost, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == host) type GetDeploymentHasHost within GetDeploymentHasUnion: %w", string(data), err) + } + + u.GetDeploymentHasHost = getDeploymentHasHost + u.Type = GetDeploymentHasUnionTypeHost + return nil + case "header": + getDeploymentHas := new(GetDeploymentHas) + if err := utils.UnmarshalJSON(data, &getDeploymentHas, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == header) type GetDeploymentHas within GetDeploymentHasUnion: %w", string(data), err) + } + + u.GetDeploymentHas = getDeploymentHas + u.Type = GetDeploymentHasUnionTypeHeader + return nil + case "cookie": + getDeploymentHas := new(GetDeploymentHas) + if err := utils.UnmarshalJSON(data, &getDeploymentHas, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == cookie) type GetDeploymentHas within GetDeploymentHasUnion: %w", string(data), err) + } + + u.GetDeploymentHas = getDeploymentHas + u.Type = GetDeploymentHasUnionTypeCookie + return nil + case "query": + getDeploymentHas := new(GetDeploymentHas) + if err := utils.UnmarshalJSON(data, &getDeploymentHas, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == query) type GetDeploymentHas within GetDeploymentHasUnion: %w", string(data), err) + } + + u.GetDeploymentHas = getDeploymentHas + u.Type = GetDeploymentHasUnionTypeQuery return nil } @@ -9048,8 +9114,10 @@ func (o *GetDeploymentMissingHost) GetValue() GetDeploymentMissingValueUnion1 { type GetDeploymentMissingUnionType string const ( - GetDeploymentMissingUnionTypeGetDeploymentMissingHost GetDeploymentMissingUnionType = "getDeployment_missing_Host" - GetDeploymentMissingUnionTypeGetDeploymentMissing GetDeploymentMissingUnionType = "getDeployment_missing" + GetDeploymentMissingUnionTypeHost GetDeploymentMissingUnionType = "host" + GetDeploymentMissingUnionTypeHeader GetDeploymentMissingUnionType = "header" + GetDeploymentMissingUnionTypeCookie GetDeploymentMissingUnionType = "cookie" + GetDeploymentMissingUnionTypeQuery GetDeploymentMissingUnionType = "query" ) type GetDeploymentMissingUnion struct { @@ -9059,37 +9127,101 @@ type GetDeploymentMissingUnion struct { Type GetDeploymentMissingUnionType } -func CreateGetDeploymentMissingUnionGetDeploymentMissingHost(getDeploymentMissingHost GetDeploymentMissingHost) GetDeploymentMissingUnion { - typ := GetDeploymentMissingUnionTypeGetDeploymentMissingHost +func CreateGetDeploymentMissingUnionHost(host GetDeploymentMissingHost) GetDeploymentMissingUnion { + typ := GetDeploymentMissingUnionTypeHost + + typStr := GetDeploymentMissingTypeHost(typ) + host.Type = typStr return GetDeploymentMissingUnion{ - GetDeploymentMissingHost: &getDeploymentMissingHost, + GetDeploymentMissingHost: &host, Type: typ, } } -func CreateGetDeploymentMissingUnionGetDeploymentMissing(getDeploymentMissing GetDeploymentMissing) GetDeploymentMissingUnion { - typ := GetDeploymentMissingUnionTypeGetDeploymentMissing +func CreateGetDeploymentMissingUnionHeader(header GetDeploymentMissing) GetDeploymentMissingUnion { + typ := GetDeploymentMissingUnionTypeHeader + + typStr := GetDeploymentMissingType(typ) + header.Type = typStr return GetDeploymentMissingUnion{ - GetDeploymentMissing: &getDeploymentMissing, + GetDeploymentMissing: &header, + Type: typ, + } +} + +func CreateGetDeploymentMissingUnionCookie(cookie GetDeploymentMissing) GetDeploymentMissingUnion { + typ := GetDeploymentMissingUnionTypeCookie + + typStr := GetDeploymentMissingType(typ) + cookie.Type = typStr + + return GetDeploymentMissingUnion{ + GetDeploymentMissing: &cookie, + Type: typ, + } +} + +func CreateGetDeploymentMissingUnionQuery(query GetDeploymentMissing) GetDeploymentMissingUnion { + typ := GetDeploymentMissingUnionTypeQuery + + typStr := GetDeploymentMissingType(typ) + query.Type = typStr + + return GetDeploymentMissingUnion{ + GetDeploymentMissing: &query, Type: typ, } } func (u *GetDeploymentMissingUnion) UnmarshalJSON(data []byte) error { - var getDeploymentMissingHost GetDeploymentMissingHost = GetDeploymentMissingHost{} - if err := utils.UnmarshalJSON(data, &getDeploymentMissingHost, "", true, nil); err == nil { - u.GetDeploymentMissingHost = &getDeploymentMissingHost - u.Type = GetDeploymentMissingUnionTypeGetDeploymentMissingHost - return nil + type discriminator struct { + Type string `json:"type"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getDeploymentMissing GetDeploymentMissing = GetDeploymentMissing{} - if err := utils.UnmarshalJSON(data, &getDeploymentMissing, "", true, nil); err == nil { - u.GetDeploymentMissing = &getDeploymentMissing - u.Type = GetDeploymentMissingUnionTypeGetDeploymentMissing + switch dis.Type { + case "host": + getDeploymentMissingHost := new(GetDeploymentMissingHost) + if err := utils.UnmarshalJSON(data, &getDeploymentMissingHost, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == host) type GetDeploymentMissingHost within GetDeploymentMissingUnion: %w", string(data), err) + } + + u.GetDeploymentMissingHost = getDeploymentMissingHost + u.Type = GetDeploymentMissingUnionTypeHost + return nil + case "header": + getDeploymentMissing := new(GetDeploymentMissing) + if err := utils.UnmarshalJSON(data, &getDeploymentMissing, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == header) type GetDeploymentMissing within GetDeploymentMissingUnion: %w", string(data), err) + } + + u.GetDeploymentMissing = getDeploymentMissing + u.Type = GetDeploymentMissingUnionTypeHeader + return nil + case "cookie": + getDeploymentMissing := new(GetDeploymentMissing) + if err := utils.UnmarshalJSON(data, &getDeploymentMissing, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == cookie) type GetDeploymentMissing within GetDeploymentMissingUnion: %w", string(data), err) + } + + u.GetDeploymentMissing = getDeploymentMissing + u.Type = GetDeploymentMissingUnionTypeCookie + return nil + case "query": + getDeploymentMissing := new(GetDeploymentMissing) + if err := utils.UnmarshalJSON(data, &getDeploymentMissing, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == query) type GetDeploymentMissing within GetDeploymentMissingUnion: %w", string(data), err) + } + + u.GetDeploymentMissing = getDeploymentMissing + u.Type = GetDeploymentMissingUnionTypeQuery return nil } @@ -10273,9 +10405,9 @@ func (o *GetDeploymentGitRepoGitlab) GetOwnerType() GetDeploymentOwnerType1 { type GetDeploymentGitRepoUnionType string const ( - GetDeploymentGitRepoUnionTypeGetDeploymentGitRepoGitlab GetDeploymentGitRepoUnionType = "getDeployment_gitRepo_Gitlab" - GetDeploymentGitRepoUnionTypeGetDeploymentGitRepoGithub GetDeploymentGitRepoUnionType = "getDeployment_gitRepo_Github" - GetDeploymentGitRepoUnionTypeGetDeploymentGitRepoBitbucket GetDeploymentGitRepoUnionType = "getDeployment_gitRepo_Bitbucket" + GetDeploymentGitRepoUnionTypeGitlab GetDeploymentGitRepoUnionType = "gitlab" + GetDeploymentGitRepoUnionTypeGithub GetDeploymentGitRepoUnionType = "github" + GetDeploymentGitRepoUnionTypeBitbucket GetDeploymentGitRepoUnionType = "bitbucket" ) type GetDeploymentGitRepoUnion struct { @@ -10286,53 +10418,80 @@ type GetDeploymentGitRepoUnion struct { Type GetDeploymentGitRepoUnionType } -func CreateGetDeploymentGitRepoUnionGetDeploymentGitRepoGitlab(getDeploymentGitRepoGitlab GetDeploymentGitRepoGitlab) GetDeploymentGitRepoUnion { - typ := GetDeploymentGitRepoUnionTypeGetDeploymentGitRepoGitlab +func CreateGetDeploymentGitRepoUnionGitlab(gitlab GetDeploymentGitRepoGitlab) GetDeploymentGitRepoUnion { + typ := GetDeploymentGitRepoUnionTypeGitlab + + typStr := GetDeploymentGitRepoTypeGitlab(typ) + gitlab.Type = typStr return GetDeploymentGitRepoUnion{ - GetDeploymentGitRepoGitlab: &getDeploymentGitRepoGitlab, + GetDeploymentGitRepoGitlab: &gitlab, Type: typ, } } -func CreateGetDeploymentGitRepoUnionGetDeploymentGitRepoGithub(getDeploymentGitRepoGithub GetDeploymentGitRepoGithub) GetDeploymentGitRepoUnion { - typ := GetDeploymentGitRepoUnionTypeGetDeploymentGitRepoGithub +func CreateGetDeploymentGitRepoUnionGithub(github GetDeploymentGitRepoGithub) GetDeploymentGitRepoUnion { + typ := GetDeploymentGitRepoUnionTypeGithub + + typStr := GetDeploymentGitRepoTypeGithub(typ) + github.Type = typStr return GetDeploymentGitRepoUnion{ - GetDeploymentGitRepoGithub: &getDeploymentGitRepoGithub, + GetDeploymentGitRepoGithub: &github, Type: typ, } } -func CreateGetDeploymentGitRepoUnionGetDeploymentGitRepoBitbucket(getDeploymentGitRepoBitbucket GetDeploymentGitRepoBitbucket) GetDeploymentGitRepoUnion { - typ := GetDeploymentGitRepoUnionTypeGetDeploymentGitRepoBitbucket +func CreateGetDeploymentGitRepoUnionBitbucket(bitbucket GetDeploymentGitRepoBitbucket) GetDeploymentGitRepoUnion { + typ := GetDeploymentGitRepoUnionTypeBitbucket + + typStr := GetDeploymentGitRepoTypeBitbucket(typ) + bitbucket.Type = typStr return GetDeploymentGitRepoUnion{ - GetDeploymentGitRepoBitbucket: &getDeploymentGitRepoBitbucket, + GetDeploymentGitRepoBitbucket: &bitbucket, Type: typ, } } func (u *GetDeploymentGitRepoUnion) UnmarshalJSON(data []byte) error { - var getDeploymentGitRepoGithub GetDeploymentGitRepoGithub = GetDeploymentGitRepoGithub{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitRepoGithub, "", true, nil); err == nil { - u.GetDeploymentGitRepoGithub = &getDeploymentGitRepoGithub - u.Type = GetDeploymentGitRepoUnionTypeGetDeploymentGitRepoGithub - return nil + type discriminator struct { + Type string `json:"type"` } - var getDeploymentGitRepoBitbucket GetDeploymentGitRepoBitbucket = GetDeploymentGitRepoBitbucket{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitRepoBitbucket, "", true, nil); err == nil { - u.GetDeploymentGitRepoBitbucket = &getDeploymentGitRepoBitbucket - u.Type = GetDeploymentGitRepoUnionTypeGetDeploymentGitRepoBitbucket - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getDeploymentGitRepoGitlab GetDeploymentGitRepoGitlab = GetDeploymentGitRepoGitlab{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitRepoGitlab, "", true, nil); err == nil { - u.GetDeploymentGitRepoGitlab = &getDeploymentGitRepoGitlab - u.Type = GetDeploymentGitRepoUnionTypeGetDeploymentGitRepoGitlab + switch dis.Type { + case "gitlab": + getDeploymentGitRepoGitlab := new(GetDeploymentGitRepoGitlab) + if err := utils.UnmarshalJSON(data, &getDeploymentGitRepoGitlab, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == gitlab) type GetDeploymentGitRepoGitlab within GetDeploymentGitRepoUnion: %w", string(data), err) + } + + u.GetDeploymentGitRepoGitlab = getDeploymentGitRepoGitlab + u.Type = GetDeploymentGitRepoUnionTypeGitlab + return nil + case "github": + getDeploymentGitRepoGithub := new(GetDeploymentGitRepoGithub) + if err := utils.UnmarshalJSON(data, &getDeploymentGitRepoGithub, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == github) type GetDeploymentGitRepoGithub within GetDeploymentGitRepoUnion: %w", string(data), err) + } + + u.GetDeploymentGitRepoGithub = getDeploymentGitRepoGithub + u.Type = GetDeploymentGitRepoUnionTypeGithub + return nil + case "bitbucket": + getDeploymentGitRepoBitbucket := new(GetDeploymentGitRepoBitbucket) + if err := utils.UnmarshalJSON(data, &getDeploymentGitRepoBitbucket, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == bitbucket) type GetDeploymentGitRepoBitbucket within GetDeploymentGitRepoUnion: %w", string(data), err) + } + + u.GetDeploymentGitRepoBitbucket = getDeploymentGitRepoBitbucket + u.Type = GetDeploymentGitRepoUnionTypeBitbucket return nil } @@ -11629,6 +11788,27 @@ func (o *Lambdas1) GetGitRepo() *GetDeploymentGitRepoUnion { return o.GitRepo } +func (o *Lambdas1) GetGitRepoGitlab() *GetDeploymentGitRepoGitlab { + if v := o.GetGitRepo(); v != nil { + return v.GetDeploymentGitRepoGitlab + } + return nil +} + +func (o *Lambdas1) GetGitRepoGithub() *GetDeploymentGitRepoGithub { + if v := o.GetGitRepo(); v != nil { + return v.GetDeploymentGitRepoGithub + } + return nil +} + +func (o *Lambdas1) GetGitRepoBitbucket() *GetDeploymentGitRepoBitbucket { + if v := o.GetGitRepo(); v != nil { + return v.GetDeploymentGitRepoBitbucket + } + return nil +} + func (o *Lambdas1) GetFlags() *GetDeploymentFlagsUnion { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getdrain.go b/src/__tests__/mockserver/internal/sdk/models/operations/getdrain.go index 44c0141e..43c5eb51 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getdrain.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getdrain.go @@ -759,10 +759,10 @@ func (o *GetDrainDeliveryHTTP2) GetSecret() *GetDrainSecretUnion3 { type GetDrainDeliveryUnion2Type string const ( - GetDrainDeliveryUnion2TypeGetDrainDeliveryHTTP2 GetDrainDeliveryUnion2Type = "getDrain_delivery_HTTP_2" - GetDrainDeliveryUnion2TypeGetDrainDeliveryOtlphttp2 GetDrainDeliveryUnion2Type = "getDrain_delivery_Otlphttp_2" - GetDrainDeliveryUnion2TypeGetDrainDeliveryClickhouse2 GetDrainDeliveryUnion2Type = "getDrain_delivery_Clickhouse_2" - GetDrainDeliveryUnion2TypeGetDrainDeliveryVercelOtelTracesDb2 GetDrainDeliveryUnion2Type = "getDrain_delivery_VercelOtelTracesDb_2" + GetDrainDeliveryUnion2TypeHTTP GetDrainDeliveryUnion2Type = "http" + GetDrainDeliveryUnion2TypeOtlphttp GetDrainDeliveryUnion2Type = "otlphttp" + GetDrainDeliveryUnion2TypeClickhouse GetDrainDeliveryUnion2Type = "clickhouse" + GetDrainDeliveryUnion2TypeInternal GetDrainDeliveryUnion2Type = "internal" ) type GetDrainDeliveryUnion2 struct { @@ -774,69 +774,101 @@ type GetDrainDeliveryUnion2 struct { Type GetDrainDeliveryUnion2Type } -func CreateGetDrainDeliveryUnion2GetDrainDeliveryHTTP2(getDrainDeliveryHTTP2 GetDrainDeliveryHTTP2) GetDrainDeliveryUnion2 { - typ := GetDrainDeliveryUnion2TypeGetDrainDeliveryHTTP2 +func CreateGetDrainDeliveryUnion2HTTP(http GetDrainDeliveryHTTP2) GetDrainDeliveryUnion2 { + typ := GetDrainDeliveryUnion2TypeHTTP + + typStr := GetDrainTypeHTTP2(typ) + http.Type = typStr return GetDrainDeliveryUnion2{ - GetDrainDeliveryHTTP2: &getDrainDeliveryHTTP2, + GetDrainDeliveryHTTP2: &http, Type: typ, } } -func CreateGetDrainDeliveryUnion2GetDrainDeliveryOtlphttp2(getDrainDeliveryOtlphttp2 GetDrainDeliveryOtlphttp2) GetDrainDeliveryUnion2 { - typ := GetDrainDeliveryUnion2TypeGetDrainDeliveryOtlphttp2 +func CreateGetDrainDeliveryUnion2Otlphttp(otlphttp GetDrainDeliveryOtlphttp2) GetDrainDeliveryUnion2 { + typ := GetDrainDeliveryUnion2TypeOtlphttp + + typStr := GetDrainTypeOtlphttp2(typ) + otlphttp.Type = typStr return GetDrainDeliveryUnion2{ - GetDrainDeliveryOtlphttp2: &getDrainDeliveryOtlphttp2, + GetDrainDeliveryOtlphttp2: &otlphttp, Type: typ, } } -func CreateGetDrainDeliveryUnion2GetDrainDeliveryClickhouse2(getDrainDeliveryClickhouse2 GetDrainDeliveryClickhouse2) GetDrainDeliveryUnion2 { - typ := GetDrainDeliveryUnion2TypeGetDrainDeliveryClickhouse2 +func CreateGetDrainDeliveryUnion2Clickhouse(clickhouse GetDrainDeliveryClickhouse2) GetDrainDeliveryUnion2 { + typ := GetDrainDeliveryUnion2TypeClickhouse + + typStr := GetDrainTypeClickhouse2(typ) + clickhouse.Type = typStr return GetDrainDeliveryUnion2{ - GetDrainDeliveryClickhouse2: &getDrainDeliveryClickhouse2, + GetDrainDeliveryClickhouse2: &clickhouse, Type: typ, } } -func CreateGetDrainDeliveryUnion2GetDrainDeliveryVercelOtelTracesDb2(getDrainDeliveryVercelOtelTracesDb2 GetDrainDeliveryVercelOtelTracesDb2) GetDrainDeliveryUnion2 { - typ := GetDrainDeliveryUnion2TypeGetDrainDeliveryVercelOtelTracesDb2 +func CreateGetDrainDeliveryUnion2Internal(internal GetDrainDeliveryVercelOtelTracesDb2) GetDrainDeliveryUnion2 { + typ := GetDrainDeliveryUnion2TypeInternal + + typStr := GetDrainTypeInternal2(typ) + internal.Type = typStr return GetDrainDeliveryUnion2{ - GetDrainDeliveryVercelOtelTracesDb2: &getDrainDeliveryVercelOtelTracesDb2, + GetDrainDeliveryVercelOtelTracesDb2: &internal, Type: typ, } } func (u *GetDrainDeliveryUnion2) UnmarshalJSON(data []byte) error { - var getDrainDeliveryHTTP2 GetDrainDeliveryHTTP2 = GetDrainDeliveryHTTP2{} - if err := utils.UnmarshalJSON(data, &getDrainDeliveryHTTP2, "", true, nil); err == nil { - u.GetDrainDeliveryHTTP2 = &getDrainDeliveryHTTP2 - u.Type = GetDrainDeliveryUnion2TypeGetDrainDeliveryHTTP2 - return nil + type discriminator struct { + Type string `json:"type"` } - var getDrainDeliveryOtlphttp2 GetDrainDeliveryOtlphttp2 = GetDrainDeliveryOtlphttp2{} - if err := utils.UnmarshalJSON(data, &getDrainDeliveryOtlphttp2, "", true, nil); err == nil { - u.GetDrainDeliveryOtlphttp2 = &getDrainDeliveryOtlphttp2 - u.Type = GetDrainDeliveryUnion2TypeGetDrainDeliveryOtlphttp2 - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getDrainDeliveryClickhouse2 GetDrainDeliveryClickhouse2 = GetDrainDeliveryClickhouse2{} - if err := utils.UnmarshalJSON(data, &getDrainDeliveryClickhouse2, "", true, nil); err == nil { - u.GetDrainDeliveryClickhouse2 = &getDrainDeliveryClickhouse2 - u.Type = GetDrainDeliveryUnion2TypeGetDrainDeliveryClickhouse2 + switch dis.Type { + case "http": + getDrainDeliveryHTTP2 := new(GetDrainDeliveryHTTP2) + if err := utils.UnmarshalJSON(data, &getDrainDeliveryHTTP2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == http) type GetDrainDeliveryHTTP2 within GetDrainDeliveryUnion2: %w", string(data), err) + } + + u.GetDrainDeliveryHTTP2 = getDrainDeliveryHTTP2 + u.Type = GetDrainDeliveryUnion2TypeHTTP return nil - } + case "otlphttp": + getDrainDeliveryOtlphttp2 := new(GetDrainDeliveryOtlphttp2) + if err := utils.UnmarshalJSON(data, &getDrainDeliveryOtlphttp2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == otlphttp) type GetDrainDeliveryOtlphttp2 within GetDrainDeliveryUnion2: %w", string(data), err) + } + + u.GetDrainDeliveryOtlphttp2 = getDrainDeliveryOtlphttp2 + u.Type = GetDrainDeliveryUnion2TypeOtlphttp + return nil + case "clickhouse": + getDrainDeliveryClickhouse2 := new(GetDrainDeliveryClickhouse2) + if err := utils.UnmarshalJSON(data, &getDrainDeliveryClickhouse2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == clickhouse) type GetDrainDeliveryClickhouse2 within GetDrainDeliveryUnion2: %w", string(data), err) + } + + u.GetDrainDeliveryClickhouse2 = getDrainDeliveryClickhouse2 + u.Type = GetDrainDeliveryUnion2TypeClickhouse + return nil + case "internal": + getDrainDeliveryVercelOtelTracesDb2 := new(GetDrainDeliveryVercelOtelTracesDb2) + if err := utils.UnmarshalJSON(data, &getDrainDeliveryVercelOtelTracesDb2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == internal) type GetDrainDeliveryVercelOtelTracesDb2 within GetDrainDeliveryUnion2: %w", string(data), err) + } - var getDrainDeliveryVercelOtelTracesDb2 GetDrainDeliveryVercelOtelTracesDb2 = GetDrainDeliveryVercelOtelTracesDb2{} - if err := utils.UnmarshalJSON(data, &getDrainDeliveryVercelOtelTracesDb2, "", true, nil); err == nil { - u.GetDrainDeliveryVercelOtelTracesDb2 = &getDrainDeliveryVercelOtelTracesDb2 - u.Type = GetDrainDeliveryUnion2TypeGetDrainDeliveryVercelOtelTracesDb2 + u.GetDrainDeliveryVercelOtelTracesDb2 = getDrainDeliveryVercelOtelTracesDb2 + u.Type = GetDrainDeliveryUnion2TypeInternal return nil } @@ -1144,8 +1176,8 @@ func (o *GetDrainSourceSelfServed2) GetKind() GetDrainKindSelfServed2 { type GetDrainSourceUnion2Type string const ( - GetDrainSourceUnion2TypeGetDrainSourceSelfServed2 GetDrainSourceUnion2Type = "getDrain_source_SelfServed_2" - GetDrainSourceUnion2TypeGetDrainSourceIntegration2 GetDrainSourceUnion2Type = "getDrain_source_Integration_2" + GetDrainSourceUnion2TypeSelfServed GetDrainSourceUnion2Type = "self-served" + GetDrainSourceUnion2TypeIntegration GetDrainSourceUnion2Type = "integration" ) type GetDrainSourceUnion2 struct { @@ -1155,37 +1187,59 @@ type GetDrainSourceUnion2 struct { Type GetDrainSourceUnion2Type } -func CreateGetDrainSourceUnion2GetDrainSourceSelfServed2(getDrainSourceSelfServed2 GetDrainSourceSelfServed2) GetDrainSourceUnion2 { - typ := GetDrainSourceUnion2TypeGetDrainSourceSelfServed2 +func CreateGetDrainSourceUnion2SelfServed(selfServed GetDrainSourceSelfServed2) GetDrainSourceUnion2 { + typ := GetDrainSourceUnion2TypeSelfServed + + typStr := GetDrainKindSelfServed2(typ) + selfServed.Kind = typStr return GetDrainSourceUnion2{ - GetDrainSourceSelfServed2: &getDrainSourceSelfServed2, + GetDrainSourceSelfServed2: &selfServed, Type: typ, } } -func CreateGetDrainSourceUnion2GetDrainSourceIntegration2(getDrainSourceIntegration2 GetDrainSourceIntegration2) GetDrainSourceUnion2 { - typ := GetDrainSourceUnion2TypeGetDrainSourceIntegration2 +func CreateGetDrainSourceUnion2Integration(integration GetDrainSourceIntegration2) GetDrainSourceUnion2 { + typ := GetDrainSourceUnion2TypeIntegration + + typStr := GetDrainKindIntegration2(typ) + integration.Kind = typStr return GetDrainSourceUnion2{ - GetDrainSourceIntegration2: &getDrainSourceIntegration2, + GetDrainSourceIntegration2: &integration, Type: typ, } } func (u *GetDrainSourceUnion2) UnmarshalJSON(data []byte) error { - var getDrainSourceIntegration2 GetDrainSourceIntegration2 = GetDrainSourceIntegration2{} - if err := utils.UnmarshalJSON(data, &getDrainSourceIntegration2, "", true, nil); err == nil { - u.GetDrainSourceIntegration2 = &getDrainSourceIntegration2 - u.Type = GetDrainSourceUnion2TypeGetDrainSourceIntegration2 - return nil + type discriminator struct { + Kind string `json:"kind"` } - var getDrainSourceSelfServed2 GetDrainSourceSelfServed2 = GetDrainSourceSelfServed2{} - if err := utils.UnmarshalJSON(data, &getDrainSourceSelfServed2, "", true, nil); err == nil { - u.GetDrainSourceSelfServed2 = &getDrainSourceSelfServed2 - u.Type = GetDrainSourceUnion2TypeGetDrainSourceSelfServed2 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Kind { + case "self-served": + getDrainSourceSelfServed2 := new(GetDrainSourceSelfServed2) + if err := utils.UnmarshalJSON(data, &getDrainSourceSelfServed2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == self-served) type GetDrainSourceSelfServed2 within GetDrainSourceUnion2: %w", string(data), err) + } + + u.GetDrainSourceSelfServed2 = getDrainSourceSelfServed2 + u.Type = GetDrainSourceUnion2TypeSelfServed + return nil + case "integration": + getDrainSourceIntegration2 := new(GetDrainSourceIntegration2) + if err := utils.UnmarshalJSON(data, &getDrainSourceIntegration2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == integration) type GetDrainSourceIntegration2 within GetDrainSourceUnion2: %w", string(data), err) + } + + u.GetDrainSourceIntegration2 = getDrainSourceIntegration2 + u.Type = GetDrainSourceUnion2TypeIntegration return nil } @@ -1493,8 +1547,8 @@ func (o *GetDrainFilterBasic2) GetDeployment() *GetDrainDeployment2 { type GetDrainFilterUnion2Type string const ( - GetDrainFilterUnion2TypeGetDrainFilterBasic2 GetDrainFilterUnion2Type = "getDrain_filter_Basic_2" - GetDrainFilterUnion2TypeGetDrainFilterOdata2 GetDrainFilterUnion2Type = "getDrain_filter_Odata_2" + GetDrainFilterUnion2TypeBasic GetDrainFilterUnion2Type = "basic" + GetDrainFilterUnion2TypeOdata GetDrainFilterUnion2Type = "odata" ) type GetDrainFilterUnion2 struct { @@ -1504,37 +1558,59 @@ type GetDrainFilterUnion2 struct { Type GetDrainFilterUnion2Type } -func CreateGetDrainFilterUnion2GetDrainFilterBasic2(getDrainFilterBasic2 GetDrainFilterBasic2) GetDrainFilterUnion2 { - typ := GetDrainFilterUnion2TypeGetDrainFilterBasic2 +func CreateGetDrainFilterUnion2Basic(basic GetDrainFilterBasic2) GetDrainFilterUnion2 { + typ := GetDrainFilterUnion2TypeBasic + + typStr := GetDrainTypeBasic2(typ) + basic.Type = typStr return GetDrainFilterUnion2{ - GetDrainFilterBasic2: &getDrainFilterBasic2, + GetDrainFilterBasic2: &basic, Type: typ, } } -func CreateGetDrainFilterUnion2GetDrainFilterOdata2(getDrainFilterOdata2 GetDrainFilterOdata2) GetDrainFilterUnion2 { - typ := GetDrainFilterUnion2TypeGetDrainFilterOdata2 +func CreateGetDrainFilterUnion2Odata(odata GetDrainFilterOdata2) GetDrainFilterUnion2 { + typ := GetDrainFilterUnion2TypeOdata + + typStr := GetDrainTypeOdata2(typ) + odata.Type = typStr return GetDrainFilterUnion2{ - GetDrainFilterOdata2: &getDrainFilterOdata2, + GetDrainFilterOdata2: &odata, Type: typ, } } func (u *GetDrainFilterUnion2) UnmarshalJSON(data []byte) error { - var getDrainFilterOdata2 GetDrainFilterOdata2 = GetDrainFilterOdata2{} - if err := utils.UnmarshalJSON(data, &getDrainFilterOdata2, "", true, nil); err == nil { - u.GetDrainFilterOdata2 = &getDrainFilterOdata2 - u.Type = GetDrainFilterUnion2TypeGetDrainFilterOdata2 - return nil + type discriminator struct { + Type string `json:"type"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getDrainFilterBasic2 GetDrainFilterBasic2 = GetDrainFilterBasic2{} - if err := utils.UnmarshalJSON(data, &getDrainFilterBasic2, "", true, nil); err == nil { - u.GetDrainFilterBasic2 = &getDrainFilterBasic2 - u.Type = GetDrainFilterUnion2TypeGetDrainFilterBasic2 + switch dis.Type { + case "basic": + getDrainFilterBasic2 := new(GetDrainFilterBasic2) + if err := utils.UnmarshalJSON(data, &getDrainFilterBasic2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == basic) type GetDrainFilterBasic2 within GetDrainFilterUnion2: %w", string(data), err) + } + + u.GetDrainFilterBasic2 = getDrainFilterBasic2 + u.Type = GetDrainFilterUnion2TypeBasic + return nil + case "odata": + getDrainFilterOdata2 := new(GetDrainFilterOdata2) + if err := utils.UnmarshalJSON(data, &getDrainFilterOdata2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == odata) type GetDrainFilterOdata2 within GetDrainFilterUnion2: %w", string(data), err) + } + + u.GetDrainFilterOdata2 = getDrainFilterOdata2 + u.Type = GetDrainFilterUnion2TypeOdata return nil } @@ -1583,6 +1659,14 @@ func (o *GetDrainFilterV2V22) GetFilter() GetDrainFilterUnion2 { return o.Filter } +func (o *GetDrainFilterV2V22) GetFilterBasic() *GetDrainFilterBasic2 { + return o.GetFilter().GetDrainFilterBasic2 +} + +func (o *GetDrainFilterV2V22) GetFilterOdata() *GetDrainFilterOdata2 { + return o.GetFilter().GetDrainFilterOdata2 +} + type GetDrainVersionV12 string const ( @@ -1631,8 +1715,8 @@ func (o *GetDrainFilterV2V12) GetVersion() GetDrainVersionV12 { type GetDrainFilterV2Union2Type string const ( - GetDrainFilterV2Union2TypeGetDrainFilterV2V12 GetDrainFilterV2Union2Type = "getDrain_filterV2_V1_2" - GetDrainFilterV2Union2TypeGetDrainFilterV2V22 GetDrainFilterV2Union2Type = "getDrain_filterV2_V2_2" + GetDrainFilterV2Union2TypeV1 GetDrainFilterV2Union2Type = "v1" + GetDrainFilterV2Union2TypeV2 GetDrainFilterV2Union2Type = "v2" ) type GetDrainFilterV2Union2 struct { @@ -1642,37 +1726,59 @@ type GetDrainFilterV2Union2 struct { Type GetDrainFilterV2Union2Type } -func CreateGetDrainFilterV2Union2GetDrainFilterV2V12(getDrainFilterV2V12 GetDrainFilterV2V12) GetDrainFilterV2Union2 { - typ := GetDrainFilterV2Union2TypeGetDrainFilterV2V12 +func CreateGetDrainFilterV2Union2V1(v1 GetDrainFilterV2V12) GetDrainFilterV2Union2 { + typ := GetDrainFilterV2Union2TypeV1 + + typStr := GetDrainVersionV12(typ) + v1.Version = typStr return GetDrainFilterV2Union2{ - GetDrainFilterV2V12: &getDrainFilterV2V12, + GetDrainFilterV2V12: &v1, Type: typ, } } -func CreateGetDrainFilterV2Union2GetDrainFilterV2V22(getDrainFilterV2V22 GetDrainFilterV2V22) GetDrainFilterV2Union2 { - typ := GetDrainFilterV2Union2TypeGetDrainFilterV2V22 +func CreateGetDrainFilterV2Union2V2(v2 GetDrainFilterV2V22) GetDrainFilterV2Union2 { + typ := GetDrainFilterV2Union2TypeV2 + + typStr := GetDrainVersionV22(typ) + v2.Version = typStr return GetDrainFilterV2Union2{ - GetDrainFilterV2V22: &getDrainFilterV2V22, + GetDrainFilterV2V22: &v2, Type: typ, } } func (u *GetDrainFilterV2Union2) UnmarshalJSON(data []byte) error { - var getDrainFilterV2V22 GetDrainFilterV2V22 = GetDrainFilterV2V22{} - if err := utils.UnmarshalJSON(data, &getDrainFilterV2V22, "", true, nil); err == nil { - u.GetDrainFilterV2V22 = &getDrainFilterV2V22 - u.Type = GetDrainFilterV2Union2TypeGetDrainFilterV2V22 - return nil + type discriminator struct { + Version string `json:"version"` } - var getDrainFilterV2V12 GetDrainFilterV2V12 = GetDrainFilterV2V12{} - if err := utils.UnmarshalJSON(data, &getDrainFilterV2V12, "", true, nil); err == nil { - u.GetDrainFilterV2V12 = &getDrainFilterV2V12 - u.Type = GetDrainFilterV2Union2TypeGetDrainFilterV2V12 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Version { + case "v1": + getDrainFilterV2V12 := new(GetDrainFilterV2V12) + if err := utils.UnmarshalJSON(data, &getDrainFilterV2V12, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Version == v1) type GetDrainFilterV2V12 within GetDrainFilterV2Union2: %w", string(data), err) + } + + u.GetDrainFilterV2V12 = getDrainFilterV2V12 + u.Type = GetDrainFilterV2Union2TypeV1 + return nil + case "v2": + getDrainFilterV2V22 := new(GetDrainFilterV2V22) + if err := utils.UnmarshalJSON(data, &getDrainFilterV2V22, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Version == v2) type GetDrainFilterV2V22 within GetDrainFilterV2Union2: %w", string(data), err) + } + + u.GetDrainFilterV2V22 = getDrainFilterV2V22 + u.Type = GetDrainFilterV2Union2TypeV2 return nil } @@ -1792,8 +1898,8 @@ func (o *GetDrainProjectAccessAll) GetAccess() GetDrainAccessAll { type GetDrainProjectAccessUnionType string const ( - GetDrainProjectAccessUnionTypeGetDrainProjectAccessAll GetDrainProjectAccessUnionType = "getDrain_projectAccess_All" - GetDrainProjectAccessUnionTypeGetDrainProjectAccessSome GetDrainProjectAccessUnionType = "getDrain_projectAccess_Some" + GetDrainProjectAccessUnionTypeAll GetDrainProjectAccessUnionType = "all" + GetDrainProjectAccessUnionTypeSome GetDrainProjectAccessUnionType = "some" ) type GetDrainProjectAccessUnion struct { @@ -1803,37 +1909,59 @@ type GetDrainProjectAccessUnion struct { Type GetDrainProjectAccessUnionType } -func CreateGetDrainProjectAccessUnionGetDrainProjectAccessAll(getDrainProjectAccessAll GetDrainProjectAccessAll) GetDrainProjectAccessUnion { - typ := GetDrainProjectAccessUnionTypeGetDrainProjectAccessAll +func CreateGetDrainProjectAccessUnionAll(all GetDrainProjectAccessAll) GetDrainProjectAccessUnion { + typ := GetDrainProjectAccessUnionTypeAll + + typStr := GetDrainAccessAll(typ) + all.Access = typStr return GetDrainProjectAccessUnion{ - GetDrainProjectAccessAll: &getDrainProjectAccessAll, + GetDrainProjectAccessAll: &all, Type: typ, } } -func CreateGetDrainProjectAccessUnionGetDrainProjectAccessSome(getDrainProjectAccessSome GetDrainProjectAccessSome) GetDrainProjectAccessUnion { - typ := GetDrainProjectAccessUnionTypeGetDrainProjectAccessSome +func CreateGetDrainProjectAccessUnionSome(some GetDrainProjectAccessSome) GetDrainProjectAccessUnion { + typ := GetDrainProjectAccessUnionTypeSome + + typStr := GetDrainAccessSome(typ) + some.Access = typStr return GetDrainProjectAccessUnion{ - GetDrainProjectAccessSome: &getDrainProjectAccessSome, + GetDrainProjectAccessSome: &some, Type: typ, } } func (u *GetDrainProjectAccessUnion) UnmarshalJSON(data []byte) error { - var getDrainProjectAccessSome GetDrainProjectAccessSome = GetDrainProjectAccessSome{} - if err := utils.UnmarshalJSON(data, &getDrainProjectAccessSome, "", true, nil); err == nil { - u.GetDrainProjectAccessSome = &getDrainProjectAccessSome - u.Type = GetDrainProjectAccessUnionTypeGetDrainProjectAccessSome - return nil + type discriminator struct { + Access string `json:"access"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getDrainProjectAccessAll GetDrainProjectAccessAll = GetDrainProjectAccessAll{} - if err := utils.UnmarshalJSON(data, &getDrainProjectAccessAll, "", true, nil); err == nil { - u.GetDrainProjectAccessAll = &getDrainProjectAccessAll - u.Type = GetDrainProjectAccessUnionTypeGetDrainProjectAccessAll + switch dis.Access { + case "all": + getDrainProjectAccessAll := new(GetDrainProjectAccessAll) + if err := utils.UnmarshalJSON(data, &getDrainProjectAccessAll, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Access == all) type GetDrainProjectAccessAll within GetDrainProjectAccessUnion: %w", string(data), err) + } + + u.GetDrainProjectAccessAll = getDrainProjectAccessAll + u.Type = GetDrainProjectAccessUnionTypeAll + return nil + case "some": + getDrainProjectAccessSome := new(GetDrainProjectAccessSome) + if err := utils.UnmarshalJSON(data, &getDrainProjectAccessSome, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Access == some) type GetDrainProjectAccessSome within GetDrainProjectAccessUnion: %w", string(data), err) + } + + u.GetDrainProjectAccessSome = getDrainProjectAccessSome + u.Type = GetDrainProjectAccessUnionTypeSome return nil } @@ -1944,6 +2072,34 @@ func (o *GetDrainResponseBody2) GetDelivery() *GetDrainDeliveryUnion2 { return o.Delivery } +func (o *GetDrainResponseBody2) GetDeliveryHTTP() *GetDrainDeliveryHTTP2 { + if v := o.GetDelivery(); v != nil { + return v.GetDrainDeliveryHTTP2 + } + return nil +} + +func (o *GetDrainResponseBody2) GetDeliveryOtlphttp() *GetDrainDeliveryOtlphttp2 { + if v := o.GetDelivery(); v != nil { + return v.GetDrainDeliveryOtlphttp2 + } + return nil +} + +func (o *GetDrainResponseBody2) GetDeliveryClickhouse() *GetDrainDeliveryClickhouse2 { + if v := o.GetDelivery(); v != nil { + return v.GetDrainDeliveryClickhouse2 + } + return nil +} + +func (o *GetDrainResponseBody2) GetDeliveryInternal() *GetDrainDeliveryVercelOtelTracesDb2 { + if v := o.GetDelivery(); v != nil { + return v.GetDrainDeliveryVercelOtelTracesDb2 + } + return nil +} + func (o *GetDrainResponseBody2) GetSampling() []GetDrainSampling2 { if o == nil { return nil @@ -2000,6 +2156,14 @@ func (o *GetDrainResponseBody2) GetSource() GetDrainSourceUnion2 { return o.Source } +func (o *GetDrainResponseBody2) GetSourceSelfServed() *GetDrainSourceSelfServed2 { + return o.GetSource().GetDrainSourceSelfServed2 +} + +func (o *GetDrainResponseBody2) GetSourceIntegration() *GetDrainSourceIntegration2 { + return o.GetSource().GetDrainSourceIntegration2 +} + func (o *GetDrainResponseBody2) GetFilter() *string { if o == nil { return nil @@ -2014,6 +2178,20 @@ func (o *GetDrainResponseBody2) GetFilterV2() *GetDrainFilterV2Union2 { return o.FilterV2 } +func (o *GetDrainResponseBody2) GetFilterV2V1() *GetDrainFilterV2V12 { + if v := o.GetFilterV2(); v != nil { + return v.GetDrainFilterV2V12 + } + return nil +} + +func (o *GetDrainResponseBody2) GetFilterV2V2() *GetDrainFilterV2V22 { + if v := o.GetFilterV2(); v != nil { + return v.GetDrainFilterV2V22 + } + return nil +} + func (o *GetDrainResponseBody2) GetIntegrationIcon() *string { if o == nil { return nil @@ -2042,6 +2220,20 @@ func (o *GetDrainResponseBody2) GetProjectAccess() *GetDrainProjectAccessUnion { return o.ProjectAccess } +func (o *GetDrainResponseBody2) GetProjectAccessAll() *GetDrainProjectAccessAll { + if v := o.GetProjectAccess(); v != nil { + return v.GetDrainProjectAccessAll + } + return nil +} + +func (o *GetDrainResponseBody2) GetProjectAccessSome() *GetDrainProjectAccessSome { + if v := o.GetProjectAccess(); v != nil { + return v.GetDrainProjectAccessSome + } + return nil +} + type GetDrainSchemasLog1 struct { } @@ -2762,10 +2954,10 @@ func (o *GetDrainDeliveryHTTP1) GetSecret() *GetDrainSecretUnion1 { type GetDrainDeliveryUnion1Type string const ( - GetDrainDeliveryUnion1TypeGetDrainDeliveryHTTP1 GetDrainDeliveryUnion1Type = "getDrain_delivery_HTTP_1" - GetDrainDeliveryUnion1TypeGetDrainDeliveryOtlphttp1 GetDrainDeliveryUnion1Type = "getDrain_delivery_Otlphttp_1" - GetDrainDeliveryUnion1TypeGetDrainDeliveryClickhouse1 GetDrainDeliveryUnion1Type = "getDrain_delivery_Clickhouse_1" - GetDrainDeliveryUnion1TypeGetDrainDeliveryVercelOtelTracesDb1 GetDrainDeliveryUnion1Type = "getDrain_delivery_VercelOtelTracesDb_1" + GetDrainDeliveryUnion1TypeHTTP GetDrainDeliveryUnion1Type = "http" + GetDrainDeliveryUnion1TypeOtlphttp GetDrainDeliveryUnion1Type = "otlphttp" + GetDrainDeliveryUnion1TypeClickhouse GetDrainDeliveryUnion1Type = "clickhouse" + GetDrainDeliveryUnion1TypeInternal GetDrainDeliveryUnion1Type = "internal" ) type GetDrainDeliveryUnion1 struct { @@ -2777,69 +2969,101 @@ type GetDrainDeliveryUnion1 struct { Type GetDrainDeliveryUnion1Type } -func CreateGetDrainDeliveryUnion1GetDrainDeliveryHTTP1(getDrainDeliveryHTTP1 GetDrainDeliveryHTTP1) GetDrainDeliveryUnion1 { - typ := GetDrainDeliveryUnion1TypeGetDrainDeliveryHTTP1 +func CreateGetDrainDeliveryUnion1HTTP(http GetDrainDeliveryHTTP1) GetDrainDeliveryUnion1 { + typ := GetDrainDeliveryUnion1TypeHTTP + + typStr := GetDrainTypeHTTP1(typ) + http.Type = typStr return GetDrainDeliveryUnion1{ - GetDrainDeliveryHTTP1: &getDrainDeliveryHTTP1, + GetDrainDeliveryHTTP1: &http, Type: typ, } } -func CreateGetDrainDeliveryUnion1GetDrainDeliveryOtlphttp1(getDrainDeliveryOtlphttp1 GetDrainDeliveryOtlphttp1) GetDrainDeliveryUnion1 { - typ := GetDrainDeliveryUnion1TypeGetDrainDeliveryOtlphttp1 +func CreateGetDrainDeliveryUnion1Otlphttp(otlphttp GetDrainDeliveryOtlphttp1) GetDrainDeliveryUnion1 { + typ := GetDrainDeliveryUnion1TypeOtlphttp + + typStr := GetDrainTypeOtlphttp1(typ) + otlphttp.Type = typStr return GetDrainDeliveryUnion1{ - GetDrainDeliveryOtlphttp1: &getDrainDeliveryOtlphttp1, + GetDrainDeliveryOtlphttp1: &otlphttp, Type: typ, } } -func CreateGetDrainDeliveryUnion1GetDrainDeliveryClickhouse1(getDrainDeliveryClickhouse1 GetDrainDeliveryClickhouse1) GetDrainDeliveryUnion1 { - typ := GetDrainDeliveryUnion1TypeGetDrainDeliveryClickhouse1 +func CreateGetDrainDeliveryUnion1Clickhouse(clickhouse GetDrainDeliveryClickhouse1) GetDrainDeliveryUnion1 { + typ := GetDrainDeliveryUnion1TypeClickhouse + + typStr := GetDrainTypeClickhouse1(typ) + clickhouse.Type = typStr return GetDrainDeliveryUnion1{ - GetDrainDeliveryClickhouse1: &getDrainDeliveryClickhouse1, + GetDrainDeliveryClickhouse1: &clickhouse, Type: typ, } } -func CreateGetDrainDeliveryUnion1GetDrainDeliveryVercelOtelTracesDb1(getDrainDeliveryVercelOtelTracesDb1 GetDrainDeliveryVercelOtelTracesDb1) GetDrainDeliveryUnion1 { - typ := GetDrainDeliveryUnion1TypeGetDrainDeliveryVercelOtelTracesDb1 +func CreateGetDrainDeliveryUnion1Internal(internal GetDrainDeliveryVercelOtelTracesDb1) GetDrainDeliveryUnion1 { + typ := GetDrainDeliveryUnion1TypeInternal + + typStr := GetDrainTypeInternal1(typ) + internal.Type = typStr return GetDrainDeliveryUnion1{ - GetDrainDeliveryVercelOtelTracesDb1: &getDrainDeliveryVercelOtelTracesDb1, + GetDrainDeliveryVercelOtelTracesDb1: &internal, Type: typ, } } func (u *GetDrainDeliveryUnion1) UnmarshalJSON(data []byte) error { - var getDrainDeliveryHTTP1 GetDrainDeliveryHTTP1 = GetDrainDeliveryHTTP1{} - if err := utils.UnmarshalJSON(data, &getDrainDeliveryHTTP1, "", true, nil); err == nil { - u.GetDrainDeliveryHTTP1 = &getDrainDeliveryHTTP1 - u.Type = GetDrainDeliveryUnion1TypeGetDrainDeliveryHTTP1 - return nil + type discriminator struct { + Type string `json:"type"` } - var getDrainDeliveryOtlphttp1 GetDrainDeliveryOtlphttp1 = GetDrainDeliveryOtlphttp1{} - if err := utils.UnmarshalJSON(data, &getDrainDeliveryOtlphttp1, "", true, nil); err == nil { - u.GetDrainDeliveryOtlphttp1 = &getDrainDeliveryOtlphttp1 - u.Type = GetDrainDeliveryUnion1TypeGetDrainDeliveryOtlphttp1 - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getDrainDeliveryClickhouse1 GetDrainDeliveryClickhouse1 = GetDrainDeliveryClickhouse1{} - if err := utils.UnmarshalJSON(data, &getDrainDeliveryClickhouse1, "", true, nil); err == nil { - u.GetDrainDeliveryClickhouse1 = &getDrainDeliveryClickhouse1 - u.Type = GetDrainDeliveryUnion1TypeGetDrainDeliveryClickhouse1 + switch dis.Type { + case "http": + getDrainDeliveryHTTP1 := new(GetDrainDeliveryHTTP1) + if err := utils.UnmarshalJSON(data, &getDrainDeliveryHTTP1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == http) type GetDrainDeliveryHTTP1 within GetDrainDeliveryUnion1: %w", string(data), err) + } + + u.GetDrainDeliveryHTTP1 = getDrainDeliveryHTTP1 + u.Type = GetDrainDeliveryUnion1TypeHTTP return nil - } + case "otlphttp": + getDrainDeliveryOtlphttp1 := new(GetDrainDeliveryOtlphttp1) + if err := utils.UnmarshalJSON(data, &getDrainDeliveryOtlphttp1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == otlphttp) type GetDrainDeliveryOtlphttp1 within GetDrainDeliveryUnion1: %w", string(data), err) + } + + u.GetDrainDeliveryOtlphttp1 = getDrainDeliveryOtlphttp1 + u.Type = GetDrainDeliveryUnion1TypeOtlphttp + return nil + case "clickhouse": + getDrainDeliveryClickhouse1 := new(GetDrainDeliveryClickhouse1) + if err := utils.UnmarshalJSON(data, &getDrainDeliveryClickhouse1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == clickhouse) type GetDrainDeliveryClickhouse1 within GetDrainDeliveryUnion1: %w", string(data), err) + } - var getDrainDeliveryVercelOtelTracesDb1 GetDrainDeliveryVercelOtelTracesDb1 = GetDrainDeliveryVercelOtelTracesDb1{} - if err := utils.UnmarshalJSON(data, &getDrainDeliveryVercelOtelTracesDb1, "", true, nil); err == nil { - u.GetDrainDeliveryVercelOtelTracesDb1 = &getDrainDeliveryVercelOtelTracesDb1 - u.Type = GetDrainDeliveryUnion1TypeGetDrainDeliveryVercelOtelTracesDb1 + u.GetDrainDeliveryClickhouse1 = getDrainDeliveryClickhouse1 + u.Type = GetDrainDeliveryUnion1TypeClickhouse + return nil + case "internal": + getDrainDeliveryVercelOtelTracesDb1 := new(GetDrainDeliveryVercelOtelTracesDb1) + if err := utils.UnmarshalJSON(data, &getDrainDeliveryVercelOtelTracesDb1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == internal) type GetDrainDeliveryVercelOtelTracesDb1 within GetDrainDeliveryUnion1: %w", string(data), err) + } + + u.GetDrainDeliveryVercelOtelTracesDb1 = getDrainDeliveryVercelOtelTracesDb1 + u.Type = GetDrainDeliveryUnion1TypeInternal return nil } @@ -3147,8 +3371,8 @@ func (o *GetDrainSourceSelfServed1) GetKind() GetDrainKindSelfServed1 { type GetDrainSourceUnion1Type string const ( - GetDrainSourceUnion1TypeGetDrainSourceSelfServed1 GetDrainSourceUnion1Type = "getDrain_source_SelfServed_1" - GetDrainSourceUnion1TypeGetDrainSourceIntegration1 GetDrainSourceUnion1Type = "getDrain_source_Integration_1" + GetDrainSourceUnion1TypeSelfServed GetDrainSourceUnion1Type = "self-served" + GetDrainSourceUnion1TypeIntegration GetDrainSourceUnion1Type = "integration" ) type GetDrainSourceUnion1 struct { @@ -3158,37 +3382,59 @@ type GetDrainSourceUnion1 struct { Type GetDrainSourceUnion1Type } -func CreateGetDrainSourceUnion1GetDrainSourceSelfServed1(getDrainSourceSelfServed1 GetDrainSourceSelfServed1) GetDrainSourceUnion1 { - typ := GetDrainSourceUnion1TypeGetDrainSourceSelfServed1 +func CreateGetDrainSourceUnion1SelfServed(selfServed GetDrainSourceSelfServed1) GetDrainSourceUnion1 { + typ := GetDrainSourceUnion1TypeSelfServed + + typStr := GetDrainKindSelfServed1(typ) + selfServed.Kind = typStr return GetDrainSourceUnion1{ - GetDrainSourceSelfServed1: &getDrainSourceSelfServed1, + GetDrainSourceSelfServed1: &selfServed, Type: typ, } } -func CreateGetDrainSourceUnion1GetDrainSourceIntegration1(getDrainSourceIntegration1 GetDrainSourceIntegration1) GetDrainSourceUnion1 { - typ := GetDrainSourceUnion1TypeGetDrainSourceIntegration1 +func CreateGetDrainSourceUnion1Integration(integration GetDrainSourceIntegration1) GetDrainSourceUnion1 { + typ := GetDrainSourceUnion1TypeIntegration + + typStr := GetDrainKindIntegration1(typ) + integration.Kind = typStr return GetDrainSourceUnion1{ - GetDrainSourceIntegration1: &getDrainSourceIntegration1, + GetDrainSourceIntegration1: &integration, Type: typ, } } func (u *GetDrainSourceUnion1) UnmarshalJSON(data []byte) error { - var getDrainSourceIntegration1 GetDrainSourceIntegration1 = GetDrainSourceIntegration1{} - if err := utils.UnmarshalJSON(data, &getDrainSourceIntegration1, "", true, nil); err == nil { - u.GetDrainSourceIntegration1 = &getDrainSourceIntegration1 - u.Type = GetDrainSourceUnion1TypeGetDrainSourceIntegration1 - return nil + type discriminator struct { + Kind string `json:"kind"` } - var getDrainSourceSelfServed1 GetDrainSourceSelfServed1 = GetDrainSourceSelfServed1{} - if err := utils.UnmarshalJSON(data, &getDrainSourceSelfServed1, "", true, nil); err == nil { - u.GetDrainSourceSelfServed1 = &getDrainSourceSelfServed1 - u.Type = GetDrainSourceUnion1TypeGetDrainSourceSelfServed1 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Kind { + case "self-served": + getDrainSourceSelfServed1 := new(GetDrainSourceSelfServed1) + if err := utils.UnmarshalJSON(data, &getDrainSourceSelfServed1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == self-served) type GetDrainSourceSelfServed1 within GetDrainSourceUnion1: %w", string(data), err) + } + + u.GetDrainSourceSelfServed1 = getDrainSourceSelfServed1 + u.Type = GetDrainSourceUnion1TypeSelfServed + return nil + case "integration": + getDrainSourceIntegration1 := new(GetDrainSourceIntegration1) + if err := utils.UnmarshalJSON(data, &getDrainSourceIntegration1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == integration) type GetDrainSourceIntegration1 within GetDrainSourceUnion1: %w", string(data), err) + } + + u.GetDrainSourceIntegration1 = getDrainSourceIntegration1 + u.Type = GetDrainSourceUnion1TypeIntegration return nil } @@ -3496,8 +3742,8 @@ func (o *GetDrainFilterBasic1) GetDeployment() *GetDrainDeployment1 { type GetDrainFilterUnion1Type string const ( - GetDrainFilterUnion1TypeGetDrainFilterBasic1 GetDrainFilterUnion1Type = "getDrain_filter_Basic_1" - GetDrainFilterUnion1TypeGetDrainFilterOdata1 GetDrainFilterUnion1Type = "getDrain_filter_Odata_1" + GetDrainFilterUnion1TypeBasic GetDrainFilterUnion1Type = "basic" + GetDrainFilterUnion1TypeOdata GetDrainFilterUnion1Type = "odata" ) type GetDrainFilterUnion1 struct { @@ -3507,37 +3753,59 @@ type GetDrainFilterUnion1 struct { Type GetDrainFilterUnion1Type } -func CreateGetDrainFilterUnion1GetDrainFilterBasic1(getDrainFilterBasic1 GetDrainFilterBasic1) GetDrainFilterUnion1 { - typ := GetDrainFilterUnion1TypeGetDrainFilterBasic1 +func CreateGetDrainFilterUnion1Basic(basic GetDrainFilterBasic1) GetDrainFilterUnion1 { + typ := GetDrainFilterUnion1TypeBasic + + typStr := GetDrainTypeBasic1(typ) + basic.Type = typStr return GetDrainFilterUnion1{ - GetDrainFilterBasic1: &getDrainFilterBasic1, + GetDrainFilterBasic1: &basic, Type: typ, } } -func CreateGetDrainFilterUnion1GetDrainFilterOdata1(getDrainFilterOdata1 GetDrainFilterOdata1) GetDrainFilterUnion1 { - typ := GetDrainFilterUnion1TypeGetDrainFilterOdata1 +func CreateGetDrainFilterUnion1Odata(odata GetDrainFilterOdata1) GetDrainFilterUnion1 { + typ := GetDrainFilterUnion1TypeOdata + + typStr := GetDrainTypeOdata1(typ) + odata.Type = typStr return GetDrainFilterUnion1{ - GetDrainFilterOdata1: &getDrainFilterOdata1, + GetDrainFilterOdata1: &odata, Type: typ, } } func (u *GetDrainFilterUnion1) UnmarshalJSON(data []byte) error { - var getDrainFilterOdata1 GetDrainFilterOdata1 = GetDrainFilterOdata1{} - if err := utils.UnmarshalJSON(data, &getDrainFilterOdata1, "", true, nil); err == nil { - u.GetDrainFilterOdata1 = &getDrainFilterOdata1 - u.Type = GetDrainFilterUnion1TypeGetDrainFilterOdata1 - return nil + type discriminator struct { + Type string `json:"type"` } - var getDrainFilterBasic1 GetDrainFilterBasic1 = GetDrainFilterBasic1{} - if err := utils.UnmarshalJSON(data, &getDrainFilterBasic1, "", true, nil); err == nil { - u.GetDrainFilterBasic1 = &getDrainFilterBasic1 - u.Type = GetDrainFilterUnion1TypeGetDrainFilterBasic1 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Type { + case "basic": + getDrainFilterBasic1 := new(GetDrainFilterBasic1) + if err := utils.UnmarshalJSON(data, &getDrainFilterBasic1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == basic) type GetDrainFilterBasic1 within GetDrainFilterUnion1: %w", string(data), err) + } + + u.GetDrainFilterBasic1 = getDrainFilterBasic1 + u.Type = GetDrainFilterUnion1TypeBasic + return nil + case "odata": + getDrainFilterOdata1 := new(GetDrainFilterOdata1) + if err := utils.UnmarshalJSON(data, &getDrainFilterOdata1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == odata) type GetDrainFilterOdata1 within GetDrainFilterUnion1: %w", string(data), err) + } + + u.GetDrainFilterOdata1 = getDrainFilterOdata1 + u.Type = GetDrainFilterUnion1TypeOdata return nil } @@ -3586,6 +3854,14 @@ func (o *GetDrainFilterV2V21) GetFilter() GetDrainFilterUnion1 { return o.Filter } +func (o *GetDrainFilterV2V21) GetFilterBasic() *GetDrainFilterBasic1 { + return o.GetFilter().GetDrainFilterBasic1 +} + +func (o *GetDrainFilterV2V21) GetFilterOdata() *GetDrainFilterOdata1 { + return o.GetFilter().GetDrainFilterOdata1 +} + type GetDrainVersionV11 string const ( @@ -3634,8 +3910,8 @@ func (o *GetDrainFilterV2V11) GetVersion() GetDrainVersionV11 { type GetDrainFilterV2Union1Type string const ( - GetDrainFilterV2Union1TypeGetDrainFilterV2V11 GetDrainFilterV2Union1Type = "getDrain_filterV2_V1_1" - GetDrainFilterV2Union1TypeGetDrainFilterV2V21 GetDrainFilterV2Union1Type = "getDrain_filterV2_V2_1" + GetDrainFilterV2Union1TypeV1 GetDrainFilterV2Union1Type = "v1" + GetDrainFilterV2Union1TypeV2 GetDrainFilterV2Union1Type = "v2" ) type GetDrainFilterV2Union1 struct { @@ -3645,37 +3921,59 @@ type GetDrainFilterV2Union1 struct { Type GetDrainFilterV2Union1Type } -func CreateGetDrainFilterV2Union1GetDrainFilterV2V11(getDrainFilterV2V11 GetDrainFilterV2V11) GetDrainFilterV2Union1 { - typ := GetDrainFilterV2Union1TypeGetDrainFilterV2V11 +func CreateGetDrainFilterV2Union1V1(v1 GetDrainFilterV2V11) GetDrainFilterV2Union1 { + typ := GetDrainFilterV2Union1TypeV1 + + typStr := GetDrainVersionV11(typ) + v1.Version = typStr return GetDrainFilterV2Union1{ - GetDrainFilterV2V11: &getDrainFilterV2V11, + GetDrainFilterV2V11: &v1, Type: typ, } } -func CreateGetDrainFilterV2Union1GetDrainFilterV2V21(getDrainFilterV2V21 GetDrainFilterV2V21) GetDrainFilterV2Union1 { - typ := GetDrainFilterV2Union1TypeGetDrainFilterV2V21 +func CreateGetDrainFilterV2Union1V2(v2 GetDrainFilterV2V21) GetDrainFilterV2Union1 { + typ := GetDrainFilterV2Union1TypeV2 + + typStr := GetDrainVersionV21(typ) + v2.Version = typStr return GetDrainFilterV2Union1{ - GetDrainFilterV2V21: &getDrainFilterV2V21, + GetDrainFilterV2V21: &v2, Type: typ, } } func (u *GetDrainFilterV2Union1) UnmarshalJSON(data []byte) error { - var getDrainFilterV2V21 GetDrainFilterV2V21 = GetDrainFilterV2V21{} - if err := utils.UnmarshalJSON(data, &getDrainFilterV2V21, "", true, nil); err == nil { - u.GetDrainFilterV2V21 = &getDrainFilterV2V21 - u.Type = GetDrainFilterV2Union1TypeGetDrainFilterV2V21 - return nil + type discriminator struct { + Version string `json:"version"` } - var getDrainFilterV2V11 GetDrainFilterV2V11 = GetDrainFilterV2V11{} - if err := utils.UnmarshalJSON(data, &getDrainFilterV2V11, "", true, nil); err == nil { - u.GetDrainFilterV2V11 = &getDrainFilterV2V11 - u.Type = GetDrainFilterV2Union1TypeGetDrainFilterV2V11 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Version { + case "v1": + getDrainFilterV2V11 := new(GetDrainFilterV2V11) + if err := utils.UnmarshalJSON(data, &getDrainFilterV2V11, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Version == v1) type GetDrainFilterV2V11 within GetDrainFilterV2Union1: %w", string(data), err) + } + + u.GetDrainFilterV2V11 = getDrainFilterV2V11 + u.Type = GetDrainFilterV2Union1TypeV1 + return nil + case "v2": + getDrainFilterV2V21 := new(GetDrainFilterV2V21) + if err := utils.UnmarshalJSON(data, &getDrainFilterV2V21, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Version == v2) type GetDrainFilterV2V21 within GetDrainFilterV2Union1: %w", string(data), err) + } + + u.GetDrainFilterV2V21 = getDrainFilterV2V21 + u.Type = GetDrainFilterV2Union1TypeV2 return nil } @@ -3782,6 +4080,34 @@ func (o *GetDrainResponseBody1) GetDelivery() *GetDrainDeliveryUnion1 { return o.Delivery } +func (o *GetDrainResponseBody1) GetDeliveryHTTP() *GetDrainDeliveryHTTP1 { + if v := o.GetDelivery(); v != nil { + return v.GetDrainDeliveryHTTP1 + } + return nil +} + +func (o *GetDrainResponseBody1) GetDeliveryOtlphttp() *GetDrainDeliveryOtlphttp1 { + if v := o.GetDelivery(); v != nil { + return v.GetDrainDeliveryOtlphttp1 + } + return nil +} + +func (o *GetDrainResponseBody1) GetDeliveryClickhouse() *GetDrainDeliveryClickhouse1 { + if v := o.GetDelivery(); v != nil { + return v.GetDrainDeliveryClickhouse1 + } + return nil +} + +func (o *GetDrainResponseBody1) GetDeliveryInternal() *GetDrainDeliveryVercelOtelTracesDb1 { + if v := o.GetDelivery(); v != nil { + return v.GetDrainDeliveryVercelOtelTracesDb1 + } + return nil +} + func (o *GetDrainResponseBody1) GetSampling() []GetDrainSampling1 { if o == nil { return nil @@ -3838,6 +4164,14 @@ func (o *GetDrainResponseBody1) GetSource() GetDrainSourceUnion1 { return o.Source } +func (o *GetDrainResponseBody1) GetSourceSelfServed() *GetDrainSourceSelfServed1 { + return o.GetSource().GetDrainSourceSelfServed1 +} + +func (o *GetDrainResponseBody1) GetSourceIntegration() *GetDrainSourceIntegration1 { + return o.GetSource().GetDrainSourceIntegration1 +} + func (o *GetDrainResponseBody1) GetFilter() *string { if o == nil { return nil @@ -3852,6 +4186,20 @@ func (o *GetDrainResponseBody1) GetFilterV2() *GetDrainFilterV2Union1 { return o.FilterV2 } +func (o *GetDrainResponseBody1) GetFilterV2V1() *GetDrainFilterV2V11 { + if v := o.GetFilterV2(); v != nil { + return v.GetDrainFilterV2V11 + } + return nil +} + +func (o *GetDrainResponseBody1) GetFilterV2V2() *GetDrainFilterV2V21 { + if v := o.GetFilterV2(); v != nil { + return v.GetDrainFilterV2V21 + } + return nil +} + type GetDrainResponseBodyType string const ( diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getdrains.go b/src/__tests__/mockserver/internal/sdk/models/operations/getdrains.go index 4bec42cd..3303da74 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getdrains.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getdrains.go @@ -778,10 +778,10 @@ func (o *GetDrainsDeliveryHTTP2) GetSecret() *GetDrainsSecretUnion3 { type GetDrainsDeliveryUnion2Type string const ( - GetDrainsDeliveryUnion2TypeGetDrainsDeliveryHTTP2 GetDrainsDeliveryUnion2Type = "getDrains_delivery_HTTP_2" - GetDrainsDeliveryUnion2TypeGetDrainsDeliveryOtlphttp2 GetDrainsDeliveryUnion2Type = "getDrains_delivery_Otlphttp_2" - GetDrainsDeliveryUnion2TypeGetDrainsDeliveryClickhouse2 GetDrainsDeliveryUnion2Type = "getDrains_delivery_Clickhouse_2" - GetDrainsDeliveryUnion2TypeGetDrainsDeliveryVercelOtelTracesDb2 GetDrainsDeliveryUnion2Type = "getDrains_delivery_VercelOtelTracesDb_2" + GetDrainsDeliveryUnion2TypeHTTP GetDrainsDeliveryUnion2Type = "http" + GetDrainsDeliveryUnion2TypeOtlphttp GetDrainsDeliveryUnion2Type = "otlphttp" + GetDrainsDeliveryUnion2TypeClickhouse GetDrainsDeliveryUnion2Type = "clickhouse" + GetDrainsDeliveryUnion2TypeInternal GetDrainsDeliveryUnion2Type = "internal" ) type GetDrainsDeliveryUnion2 struct { @@ -793,69 +793,101 @@ type GetDrainsDeliveryUnion2 struct { Type GetDrainsDeliveryUnion2Type } -func CreateGetDrainsDeliveryUnion2GetDrainsDeliveryHTTP2(getDrainsDeliveryHTTP2 GetDrainsDeliveryHTTP2) GetDrainsDeliveryUnion2 { - typ := GetDrainsDeliveryUnion2TypeGetDrainsDeliveryHTTP2 +func CreateGetDrainsDeliveryUnion2HTTP(http GetDrainsDeliveryHTTP2) GetDrainsDeliveryUnion2 { + typ := GetDrainsDeliveryUnion2TypeHTTP + + typStr := GetDrainsTypeHTTP2(typ) + http.Type = typStr return GetDrainsDeliveryUnion2{ - GetDrainsDeliveryHTTP2: &getDrainsDeliveryHTTP2, + GetDrainsDeliveryHTTP2: &http, Type: typ, } } -func CreateGetDrainsDeliveryUnion2GetDrainsDeliveryOtlphttp2(getDrainsDeliveryOtlphttp2 GetDrainsDeliveryOtlphttp2) GetDrainsDeliveryUnion2 { - typ := GetDrainsDeliveryUnion2TypeGetDrainsDeliveryOtlphttp2 +func CreateGetDrainsDeliveryUnion2Otlphttp(otlphttp GetDrainsDeliveryOtlphttp2) GetDrainsDeliveryUnion2 { + typ := GetDrainsDeliveryUnion2TypeOtlphttp + + typStr := GetDrainsTypeOtlphttp2(typ) + otlphttp.Type = typStr return GetDrainsDeliveryUnion2{ - GetDrainsDeliveryOtlphttp2: &getDrainsDeliveryOtlphttp2, + GetDrainsDeliveryOtlphttp2: &otlphttp, Type: typ, } } -func CreateGetDrainsDeliveryUnion2GetDrainsDeliveryClickhouse2(getDrainsDeliveryClickhouse2 GetDrainsDeliveryClickhouse2) GetDrainsDeliveryUnion2 { - typ := GetDrainsDeliveryUnion2TypeGetDrainsDeliveryClickhouse2 +func CreateGetDrainsDeliveryUnion2Clickhouse(clickhouse GetDrainsDeliveryClickhouse2) GetDrainsDeliveryUnion2 { + typ := GetDrainsDeliveryUnion2TypeClickhouse + + typStr := GetDrainsTypeClickhouse2(typ) + clickhouse.Type = typStr return GetDrainsDeliveryUnion2{ - GetDrainsDeliveryClickhouse2: &getDrainsDeliveryClickhouse2, + GetDrainsDeliveryClickhouse2: &clickhouse, Type: typ, } } -func CreateGetDrainsDeliveryUnion2GetDrainsDeliveryVercelOtelTracesDb2(getDrainsDeliveryVercelOtelTracesDb2 GetDrainsDeliveryVercelOtelTracesDb2) GetDrainsDeliveryUnion2 { - typ := GetDrainsDeliveryUnion2TypeGetDrainsDeliveryVercelOtelTracesDb2 +func CreateGetDrainsDeliveryUnion2Internal(internal GetDrainsDeliveryVercelOtelTracesDb2) GetDrainsDeliveryUnion2 { + typ := GetDrainsDeliveryUnion2TypeInternal + + typStr := GetDrainsTypeInternal2(typ) + internal.Type = typStr return GetDrainsDeliveryUnion2{ - GetDrainsDeliveryVercelOtelTracesDb2: &getDrainsDeliveryVercelOtelTracesDb2, + GetDrainsDeliveryVercelOtelTracesDb2: &internal, Type: typ, } } func (u *GetDrainsDeliveryUnion2) UnmarshalJSON(data []byte) error { - var getDrainsDeliveryHTTP2 GetDrainsDeliveryHTTP2 = GetDrainsDeliveryHTTP2{} - if err := utils.UnmarshalJSON(data, &getDrainsDeliveryHTTP2, "", true, nil); err == nil { - u.GetDrainsDeliveryHTTP2 = &getDrainsDeliveryHTTP2 - u.Type = GetDrainsDeliveryUnion2TypeGetDrainsDeliveryHTTP2 - return nil + type discriminator struct { + Type string `json:"type"` } - var getDrainsDeliveryOtlphttp2 GetDrainsDeliveryOtlphttp2 = GetDrainsDeliveryOtlphttp2{} - if err := utils.UnmarshalJSON(data, &getDrainsDeliveryOtlphttp2, "", true, nil); err == nil { - u.GetDrainsDeliveryOtlphttp2 = &getDrainsDeliveryOtlphttp2 - u.Type = GetDrainsDeliveryUnion2TypeGetDrainsDeliveryOtlphttp2 - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getDrainsDeliveryClickhouse2 GetDrainsDeliveryClickhouse2 = GetDrainsDeliveryClickhouse2{} - if err := utils.UnmarshalJSON(data, &getDrainsDeliveryClickhouse2, "", true, nil); err == nil { - u.GetDrainsDeliveryClickhouse2 = &getDrainsDeliveryClickhouse2 - u.Type = GetDrainsDeliveryUnion2TypeGetDrainsDeliveryClickhouse2 + switch dis.Type { + case "http": + getDrainsDeliveryHTTP2 := new(GetDrainsDeliveryHTTP2) + if err := utils.UnmarshalJSON(data, &getDrainsDeliveryHTTP2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == http) type GetDrainsDeliveryHTTP2 within GetDrainsDeliveryUnion2: %w", string(data), err) + } + + u.GetDrainsDeliveryHTTP2 = getDrainsDeliveryHTTP2 + u.Type = GetDrainsDeliveryUnion2TypeHTTP return nil - } + case "otlphttp": + getDrainsDeliveryOtlphttp2 := new(GetDrainsDeliveryOtlphttp2) + if err := utils.UnmarshalJSON(data, &getDrainsDeliveryOtlphttp2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == otlphttp) type GetDrainsDeliveryOtlphttp2 within GetDrainsDeliveryUnion2: %w", string(data), err) + } + + u.GetDrainsDeliveryOtlphttp2 = getDrainsDeliveryOtlphttp2 + u.Type = GetDrainsDeliveryUnion2TypeOtlphttp + return nil + case "clickhouse": + getDrainsDeliveryClickhouse2 := new(GetDrainsDeliveryClickhouse2) + if err := utils.UnmarshalJSON(data, &getDrainsDeliveryClickhouse2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == clickhouse) type GetDrainsDeliveryClickhouse2 within GetDrainsDeliveryUnion2: %w", string(data), err) + } + + u.GetDrainsDeliveryClickhouse2 = getDrainsDeliveryClickhouse2 + u.Type = GetDrainsDeliveryUnion2TypeClickhouse + return nil + case "internal": + getDrainsDeliveryVercelOtelTracesDb2 := new(GetDrainsDeliveryVercelOtelTracesDb2) + if err := utils.UnmarshalJSON(data, &getDrainsDeliveryVercelOtelTracesDb2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == internal) type GetDrainsDeliveryVercelOtelTracesDb2 within GetDrainsDeliveryUnion2: %w", string(data), err) + } - var getDrainsDeliveryVercelOtelTracesDb2 GetDrainsDeliveryVercelOtelTracesDb2 = GetDrainsDeliveryVercelOtelTracesDb2{} - if err := utils.UnmarshalJSON(data, &getDrainsDeliveryVercelOtelTracesDb2, "", true, nil); err == nil { - u.GetDrainsDeliveryVercelOtelTracesDb2 = &getDrainsDeliveryVercelOtelTracesDb2 - u.Type = GetDrainsDeliveryUnion2TypeGetDrainsDeliveryVercelOtelTracesDb2 + u.GetDrainsDeliveryVercelOtelTracesDb2 = getDrainsDeliveryVercelOtelTracesDb2 + u.Type = GetDrainsDeliveryUnion2TypeInternal return nil } @@ -1163,8 +1195,8 @@ func (o *GetDrainsSourceSelfServed2) GetKind() GetDrainsKindSelfServed2 { type GetDrainsSourceUnion2Type string const ( - GetDrainsSourceUnion2TypeGetDrainsSourceSelfServed2 GetDrainsSourceUnion2Type = "getDrains_source_SelfServed_2" - GetDrainsSourceUnion2TypeGetDrainsSourceIntegration2 GetDrainsSourceUnion2Type = "getDrains_source_Integration_2" + GetDrainsSourceUnion2TypeSelfServed GetDrainsSourceUnion2Type = "self-served" + GetDrainsSourceUnion2TypeIntegration GetDrainsSourceUnion2Type = "integration" ) type GetDrainsSourceUnion2 struct { @@ -1174,37 +1206,59 @@ type GetDrainsSourceUnion2 struct { Type GetDrainsSourceUnion2Type } -func CreateGetDrainsSourceUnion2GetDrainsSourceSelfServed2(getDrainsSourceSelfServed2 GetDrainsSourceSelfServed2) GetDrainsSourceUnion2 { - typ := GetDrainsSourceUnion2TypeGetDrainsSourceSelfServed2 +func CreateGetDrainsSourceUnion2SelfServed(selfServed GetDrainsSourceSelfServed2) GetDrainsSourceUnion2 { + typ := GetDrainsSourceUnion2TypeSelfServed + + typStr := GetDrainsKindSelfServed2(typ) + selfServed.Kind = typStr return GetDrainsSourceUnion2{ - GetDrainsSourceSelfServed2: &getDrainsSourceSelfServed2, + GetDrainsSourceSelfServed2: &selfServed, Type: typ, } } -func CreateGetDrainsSourceUnion2GetDrainsSourceIntegration2(getDrainsSourceIntegration2 GetDrainsSourceIntegration2) GetDrainsSourceUnion2 { - typ := GetDrainsSourceUnion2TypeGetDrainsSourceIntegration2 +func CreateGetDrainsSourceUnion2Integration(integration GetDrainsSourceIntegration2) GetDrainsSourceUnion2 { + typ := GetDrainsSourceUnion2TypeIntegration + + typStr := GetDrainsKindIntegration2(typ) + integration.Kind = typStr return GetDrainsSourceUnion2{ - GetDrainsSourceIntegration2: &getDrainsSourceIntegration2, + GetDrainsSourceIntegration2: &integration, Type: typ, } } func (u *GetDrainsSourceUnion2) UnmarshalJSON(data []byte) error { - var getDrainsSourceIntegration2 GetDrainsSourceIntegration2 = GetDrainsSourceIntegration2{} - if err := utils.UnmarshalJSON(data, &getDrainsSourceIntegration2, "", true, nil); err == nil { - u.GetDrainsSourceIntegration2 = &getDrainsSourceIntegration2 - u.Type = GetDrainsSourceUnion2TypeGetDrainsSourceIntegration2 - return nil + type discriminator struct { + Kind string `json:"kind"` } - var getDrainsSourceSelfServed2 GetDrainsSourceSelfServed2 = GetDrainsSourceSelfServed2{} - if err := utils.UnmarshalJSON(data, &getDrainsSourceSelfServed2, "", true, nil); err == nil { - u.GetDrainsSourceSelfServed2 = &getDrainsSourceSelfServed2 - u.Type = GetDrainsSourceUnion2TypeGetDrainsSourceSelfServed2 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Kind { + case "self-served": + getDrainsSourceSelfServed2 := new(GetDrainsSourceSelfServed2) + if err := utils.UnmarshalJSON(data, &getDrainsSourceSelfServed2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == self-served) type GetDrainsSourceSelfServed2 within GetDrainsSourceUnion2: %w", string(data), err) + } + + u.GetDrainsSourceSelfServed2 = getDrainsSourceSelfServed2 + u.Type = GetDrainsSourceUnion2TypeSelfServed + return nil + case "integration": + getDrainsSourceIntegration2 := new(GetDrainsSourceIntegration2) + if err := utils.UnmarshalJSON(data, &getDrainsSourceIntegration2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == integration) type GetDrainsSourceIntegration2 within GetDrainsSourceUnion2: %w", string(data), err) + } + + u.GetDrainsSourceIntegration2 = getDrainsSourceIntegration2 + u.Type = GetDrainsSourceUnion2TypeIntegration return nil } @@ -1512,8 +1566,8 @@ func (o *GetDrainsFilterBasic2) GetDeployment() *GetDrainsDeployment2 { type GetDrainsFilterUnion2Type string const ( - GetDrainsFilterUnion2TypeGetDrainsFilterBasic2 GetDrainsFilterUnion2Type = "getDrains_filter_Basic_2" - GetDrainsFilterUnion2TypeGetDrainsFilterOdata2 GetDrainsFilterUnion2Type = "getDrains_filter_Odata_2" + GetDrainsFilterUnion2TypeBasic GetDrainsFilterUnion2Type = "basic" + GetDrainsFilterUnion2TypeOdata GetDrainsFilterUnion2Type = "odata" ) type GetDrainsFilterUnion2 struct { @@ -1523,37 +1577,59 @@ type GetDrainsFilterUnion2 struct { Type GetDrainsFilterUnion2Type } -func CreateGetDrainsFilterUnion2GetDrainsFilterBasic2(getDrainsFilterBasic2 GetDrainsFilterBasic2) GetDrainsFilterUnion2 { - typ := GetDrainsFilterUnion2TypeGetDrainsFilterBasic2 +func CreateGetDrainsFilterUnion2Basic(basic GetDrainsFilterBasic2) GetDrainsFilterUnion2 { + typ := GetDrainsFilterUnion2TypeBasic + + typStr := GetDrainsTypeBasic2(typ) + basic.Type = typStr return GetDrainsFilterUnion2{ - GetDrainsFilterBasic2: &getDrainsFilterBasic2, + GetDrainsFilterBasic2: &basic, Type: typ, } } -func CreateGetDrainsFilterUnion2GetDrainsFilterOdata2(getDrainsFilterOdata2 GetDrainsFilterOdata2) GetDrainsFilterUnion2 { - typ := GetDrainsFilterUnion2TypeGetDrainsFilterOdata2 +func CreateGetDrainsFilterUnion2Odata(odata GetDrainsFilterOdata2) GetDrainsFilterUnion2 { + typ := GetDrainsFilterUnion2TypeOdata + + typStr := GetDrainsTypeOdata2(typ) + odata.Type = typStr return GetDrainsFilterUnion2{ - GetDrainsFilterOdata2: &getDrainsFilterOdata2, + GetDrainsFilterOdata2: &odata, Type: typ, } } func (u *GetDrainsFilterUnion2) UnmarshalJSON(data []byte) error { - var getDrainsFilterOdata2 GetDrainsFilterOdata2 = GetDrainsFilterOdata2{} - if err := utils.UnmarshalJSON(data, &getDrainsFilterOdata2, "", true, nil); err == nil { - u.GetDrainsFilterOdata2 = &getDrainsFilterOdata2 - u.Type = GetDrainsFilterUnion2TypeGetDrainsFilterOdata2 - return nil + type discriminator struct { + Type string `json:"type"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getDrainsFilterBasic2 GetDrainsFilterBasic2 = GetDrainsFilterBasic2{} - if err := utils.UnmarshalJSON(data, &getDrainsFilterBasic2, "", true, nil); err == nil { - u.GetDrainsFilterBasic2 = &getDrainsFilterBasic2 - u.Type = GetDrainsFilterUnion2TypeGetDrainsFilterBasic2 + switch dis.Type { + case "basic": + getDrainsFilterBasic2 := new(GetDrainsFilterBasic2) + if err := utils.UnmarshalJSON(data, &getDrainsFilterBasic2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == basic) type GetDrainsFilterBasic2 within GetDrainsFilterUnion2: %w", string(data), err) + } + + u.GetDrainsFilterBasic2 = getDrainsFilterBasic2 + u.Type = GetDrainsFilterUnion2TypeBasic + return nil + case "odata": + getDrainsFilterOdata2 := new(GetDrainsFilterOdata2) + if err := utils.UnmarshalJSON(data, &getDrainsFilterOdata2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == odata) type GetDrainsFilterOdata2 within GetDrainsFilterUnion2: %w", string(data), err) + } + + u.GetDrainsFilterOdata2 = getDrainsFilterOdata2 + u.Type = GetDrainsFilterUnion2TypeOdata return nil } @@ -1602,6 +1678,14 @@ func (o *GetDrainsFilterV2V22) GetFilter() GetDrainsFilterUnion2 { return o.Filter } +func (o *GetDrainsFilterV2V22) GetFilterBasic() *GetDrainsFilterBasic2 { + return o.GetFilter().GetDrainsFilterBasic2 +} + +func (o *GetDrainsFilterV2V22) GetFilterOdata() *GetDrainsFilterOdata2 { + return o.GetFilter().GetDrainsFilterOdata2 +} + type GetDrainsVersionV12 string const ( @@ -1650,8 +1734,8 @@ func (o *GetDrainsFilterV2V12) GetVersion() GetDrainsVersionV12 { type GetDrainsFilterV2Union2Type string const ( - GetDrainsFilterV2Union2TypeGetDrainsFilterV2V12 GetDrainsFilterV2Union2Type = "getDrains_filterV2_V1_2" - GetDrainsFilterV2Union2TypeGetDrainsFilterV2V22 GetDrainsFilterV2Union2Type = "getDrains_filterV2_V2_2" + GetDrainsFilterV2Union2TypeV1 GetDrainsFilterV2Union2Type = "v1" + GetDrainsFilterV2Union2TypeV2 GetDrainsFilterV2Union2Type = "v2" ) type GetDrainsFilterV2Union2 struct { @@ -1661,37 +1745,59 @@ type GetDrainsFilterV2Union2 struct { Type GetDrainsFilterV2Union2Type } -func CreateGetDrainsFilterV2Union2GetDrainsFilterV2V12(getDrainsFilterV2V12 GetDrainsFilterV2V12) GetDrainsFilterV2Union2 { - typ := GetDrainsFilterV2Union2TypeGetDrainsFilterV2V12 +func CreateGetDrainsFilterV2Union2V1(v1 GetDrainsFilterV2V12) GetDrainsFilterV2Union2 { + typ := GetDrainsFilterV2Union2TypeV1 + + typStr := GetDrainsVersionV12(typ) + v1.Version = typStr return GetDrainsFilterV2Union2{ - GetDrainsFilterV2V12: &getDrainsFilterV2V12, + GetDrainsFilterV2V12: &v1, Type: typ, } } -func CreateGetDrainsFilterV2Union2GetDrainsFilterV2V22(getDrainsFilterV2V22 GetDrainsFilterV2V22) GetDrainsFilterV2Union2 { - typ := GetDrainsFilterV2Union2TypeGetDrainsFilterV2V22 +func CreateGetDrainsFilterV2Union2V2(v2 GetDrainsFilterV2V22) GetDrainsFilterV2Union2 { + typ := GetDrainsFilterV2Union2TypeV2 + + typStr := GetDrainsVersionV22(typ) + v2.Version = typStr return GetDrainsFilterV2Union2{ - GetDrainsFilterV2V22: &getDrainsFilterV2V22, + GetDrainsFilterV2V22: &v2, Type: typ, } } func (u *GetDrainsFilterV2Union2) UnmarshalJSON(data []byte) error { - var getDrainsFilterV2V22 GetDrainsFilterV2V22 = GetDrainsFilterV2V22{} - if err := utils.UnmarshalJSON(data, &getDrainsFilterV2V22, "", true, nil); err == nil { - u.GetDrainsFilterV2V22 = &getDrainsFilterV2V22 - u.Type = GetDrainsFilterV2Union2TypeGetDrainsFilterV2V22 - return nil + type discriminator struct { + Version string `json:"version"` } - var getDrainsFilterV2V12 GetDrainsFilterV2V12 = GetDrainsFilterV2V12{} - if err := utils.UnmarshalJSON(data, &getDrainsFilterV2V12, "", true, nil); err == nil { - u.GetDrainsFilterV2V12 = &getDrainsFilterV2V12 - u.Type = GetDrainsFilterV2Union2TypeGetDrainsFilterV2V12 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Version { + case "v1": + getDrainsFilterV2V12 := new(GetDrainsFilterV2V12) + if err := utils.UnmarshalJSON(data, &getDrainsFilterV2V12, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Version == v1) type GetDrainsFilterV2V12 within GetDrainsFilterV2Union2: %w", string(data), err) + } + + u.GetDrainsFilterV2V12 = getDrainsFilterV2V12 + u.Type = GetDrainsFilterV2Union2TypeV1 + return nil + case "v2": + getDrainsFilterV2V22 := new(GetDrainsFilterV2V22) + if err := utils.UnmarshalJSON(data, &getDrainsFilterV2V22, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Version == v2) type GetDrainsFilterV2V22 within GetDrainsFilterV2Union2: %w", string(data), err) + } + + u.GetDrainsFilterV2V22 = getDrainsFilterV2V22 + u.Type = GetDrainsFilterV2Union2TypeV2 return nil } @@ -1811,8 +1917,8 @@ func (o *GetDrainsProjectAccessAll) GetAccess() GetDrainsAccessAll { type GetDrainsProjectAccessUnionType string const ( - GetDrainsProjectAccessUnionTypeGetDrainsProjectAccessAll GetDrainsProjectAccessUnionType = "getDrains_projectAccess_All" - GetDrainsProjectAccessUnionTypeGetDrainsProjectAccessSome GetDrainsProjectAccessUnionType = "getDrains_projectAccess_Some" + GetDrainsProjectAccessUnionTypeAll GetDrainsProjectAccessUnionType = "all" + GetDrainsProjectAccessUnionTypeSome GetDrainsProjectAccessUnionType = "some" ) type GetDrainsProjectAccessUnion struct { @@ -1822,37 +1928,59 @@ type GetDrainsProjectAccessUnion struct { Type GetDrainsProjectAccessUnionType } -func CreateGetDrainsProjectAccessUnionGetDrainsProjectAccessAll(getDrainsProjectAccessAll GetDrainsProjectAccessAll) GetDrainsProjectAccessUnion { - typ := GetDrainsProjectAccessUnionTypeGetDrainsProjectAccessAll +func CreateGetDrainsProjectAccessUnionAll(all GetDrainsProjectAccessAll) GetDrainsProjectAccessUnion { + typ := GetDrainsProjectAccessUnionTypeAll + + typStr := GetDrainsAccessAll(typ) + all.Access = typStr return GetDrainsProjectAccessUnion{ - GetDrainsProjectAccessAll: &getDrainsProjectAccessAll, + GetDrainsProjectAccessAll: &all, Type: typ, } } -func CreateGetDrainsProjectAccessUnionGetDrainsProjectAccessSome(getDrainsProjectAccessSome GetDrainsProjectAccessSome) GetDrainsProjectAccessUnion { - typ := GetDrainsProjectAccessUnionTypeGetDrainsProjectAccessSome +func CreateGetDrainsProjectAccessUnionSome(some GetDrainsProjectAccessSome) GetDrainsProjectAccessUnion { + typ := GetDrainsProjectAccessUnionTypeSome + + typStr := GetDrainsAccessSome(typ) + some.Access = typStr return GetDrainsProjectAccessUnion{ - GetDrainsProjectAccessSome: &getDrainsProjectAccessSome, + GetDrainsProjectAccessSome: &some, Type: typ, } } func (u *GetDrainsProjectAccessUnion) UnmarshalJSON(data []byte) error { - var getDrainsProjectAccessSome GetDrainsProjectAccessSome = GetDrainsProjectAccessSome{} - if err := utils.UnmarshalJSON(data, &getDrainsProjectAccessSome, "", true, nil); err == nil { - u.GetDrainsProjectAccessSome = &getDrainsProjectAccessSome - u.Type = GetDrainsProjectAccessUnionTypeGetDrainsProjectAccessSome - return nil + type discriminator struct { + Access string `json:"access"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getDrainsProjectAccessAll GetDrainsProjectAccessAll = GetDrainsProjectAccessAll{} - if err := utils.UnmarshalJSON(data, &getDrainsProjectAccessAll, "", true, nil); err == nil { - u.GetDrainsProjectAccessAll = &getDrainsProjectAccessAll - u.Type = GetDrainsProjectAccessUnionTypeGetDrainsProjectAccessAll + switch dis.Access { + case "all": + getDrainsProjectAccessAll := new(GetDrainsProjectAccessAll) + if err := utils.UnmarshalJSON(data, &getDrainsProjectAccessAll, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Access == all) type GetDrainsProjectAccessAll within GetDrainsProjectAccessUnion: %w", string(data), err) + } + + u.GetDrainsProjectAccessAll = getDrainsProjectAccessAll + u.Type = GetDrainsProjectAccessUnionTypeAll + return nil + case "some": + getDrainsProjectAccessSome := new(GetDrainsProjectAccessSome) + if err := utils.UnmarshalJSON(data, &getDrainsProjectAccessSome, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Access == some) type GetDrainsProjectAccessSome within GetDrainsProjectAccessUnion: %w", string(data), err) + } + + u.GetDrainsProjectAccessSome = getDrainsProjectAccessSome + u.Type = GetDrainsProjectAccessUnionTypeSome return nil } @@ -1963,6 +2091,34 @@ func (o *DrainsGetDrains2) GetDelivery() *GetDrainsDeliveryUnion2 { return o.Delivery } +func (o *DrainsGetDrains2) GetDeliveryHTTP() *GetDrainsDeliveryHTTP2 { + if v := o.GetDelivery(); v != nil { + return v.GetDrainsDeliveryHTTP2 + } + return nil +} + +func (o *DrainsGetDrains2) GetDeliveryOtlphttp() *GetDrainsDeliveryOtlphttp2 { + if v := o.GetDelivery(); v != nil { + return v.GetDrainsDeliveryOtlphttp2 + } + return nil +} + +func (o *DrainsGetDrains2) GetDeliveryClickhouse() *GetDrainsDeliveryClickhouse2 { + if v := o.GetDelivery(); v != nil { + return v.GetDrainsDeliveryClickhouse2 + } + return nil +} + +func (o *DrainsGetDrains2) GetDeliveryInternal() *GetDrainsDeliveryVercelOtelTracesDb2 { + if v := o.GetDelivery(); v != nil { + return v.GetDrainsDeliveryVercelOtelTracesDb2 + } + return nil +} + func (o *DrainsGetDrains2) GetSampling() []GetDrainsSampling2 { if o == nil { return nil @@ -2019,6 +2175,14 @@ func (o *DrainsGetDrains2) GetSource() GetDrainsSourceUnion2 { return o.Source } +func (o *DrainsGetDrains2) GetSourceSelfServed() *GetDrainsSourceSelfServed2 { + return o.GetSource().GetDrainsSourceSelfServed2 +} + +func (o *DrainsGetDrains2) GetSourceIntegration() *GetDrainsSourceIntegration2 { + return o.GetSource().GetDrainsSourceIntegration2 +} + func (o *DrainsGetDrains2) GetFilter() *string { if o == nil { return nil @@ -2033,6 +2197,20 @@ func (o *DrainsGetDrains2) GetFilterV2() *GetDrainsFilterV2Union2 { return o.FilterV2 } +func (o *DrainsGetDrains2) GetFilterV2V1() *GetDrainsFilterV2V12 { + if v := o.GetFilterV2(); v != nil { + return v.GetDrainsFilterV2V12 + } + return nil +} + +func (o *DrainsGetDrains2) GetFilterV2V2() *GetDrainsFilterV2V22 { + if v := o.GetFilterV2(); v != nil { + return v.GetDrainsFilterV2V22 + } + return nil +} + func (o *DrainsGetDrains2) GetIntegrationIcon() *string { if o == nil { return nil @@ -2061,6 +2239,20 @@ func (o *DrainsGetDrains2) GetProjectAccess() *GetDrainsProjectAccessUnion { return o.ProjectAccess } +func (o *DrainsGetDrains2) GetProjectAccessAll() *GetDrainsProjectAccessAll { + if v := o.GetProjectAccess(); v != nil { + return v.GetDrainsProjectAccessAll + } + return nil +} + +func (o *DrainsGetDrains2) GetProjectAccessSome() *GetDrainsProjectAccessSome { + if v := o.GetProjectAccess(); v != nil { + return v.GetDrainsProjectAccessSome + } + return nil +} + type GetDrainsSchemasLog1 struct { } @@ -2781,10 +2973,10 @@ func (o *GetDrainsDeliveryHTTP1) GetSecret() *GetDrainsSecretUnion1 { type GetDrainsDeliveryUnion1Type string const ( - GetDrainsDeliveryUnion1TypeGetDrainsDeliveryHTTP1 GetDrainsDeliveryUnion1Type = "getDrains_delivery_HTTP_1" - GetDrainsDeliveryUnion1TypeGetDrainsDeliveryOtlphttp1 GetDrainsDeliveryUnion1Type = "getDrains_delivery_Otlphttp_1" - GetDrainsDeliveryUnion1TypeGetDrainsDeliveryClickhouse1 GetDrainsDeliveryUnion1Type = "getDrains_delivery_Clickhouse_1" - GetDrainsDeliveryUnion1TypeGetDrainsDeliveryVercelOtelTracesDb1 GetDrainsDeliveryUnion1Type = "getDrains_delivery_VercelOtelTracesDb_1" + GetDrainsDeliveryUnion1TypeHTTP GetDrainsDeliveryUnion1Type = "http" + GetDrainsDeliveryUnion1TypeOtlphttp GetDrainsDeliveryUnion1Type = "otlphttp" + GetDrainsDeliveryUnion1TypeClickhouse GetDrainsDeliveryUnion1Type = "clickhouse" + GetDrainsDeliveryUnion1TypeInternal GetDrainsDeliveryUnion1Type = "internal" ) type GetDrainsDeliveryUnion1 struct { @@ -2796,69 +2988,101 @@ type GetDrainsDeliveryUnion1 struct { Type GetDrainsDeliveryUnion1Type } -func CreateGetDrainsDeliveryUnion1GetDrainsDeliveryHTTP1(getDrainsDeliveryHTTP1 GetDrainsDeliveryHTTP1) GetDrainsDeliveryUnion1 { - typ := GetDrainsDeliveryUnion1TypeGetDrainsDeliveryHTTP1 +func CreateGetDrainsDeliveryUnion1HTTP(http GetDrainsDeliveryHTTP1) GetDrainsDeliveryUnion1 { + typ := GetDrainsDeliveryUnion1TypeHTTP + + typStr := GetDrainsTypeHTTP1(typ) + http.Type = typStr return GetDrainsDeliveryUnion1{ - GetDrainsDeliveryHTTP1: &getDrainsDeliveryHTTP1, + GetDrainsDeliveryHTTP1: &http, Type: typ, } } -func CreateGetDrainsDeliveryUnion1GetDrainsDeliveryOtlphttp1(getDrainsDeliveryOtlphttp1 GetDrainsDeliveryOtlphttp1) GetDrainsDeliveryUnion1 { - typ := GetDrainsDeliveryUnion1TypeGetDrainsDeliveryOtlphttp1 +func CreateGetDrainsDeliveryUnion1Otlphttp(otlphttp GetDrainsDeliveryOtlphttp1) GetDrainsDeliveryUnion1 { + typ := GetDrainsDeliveryUnion1TypeOtlphttp + + typStr := GetDrainsTypeOtlphttp1(typ) + otlphttp.Type = typStr return GetDrainsDeliveryUnion1{ - GetDrainsDeliveryOtlphttp1: &getDrainsDeliveryOtlphttp1, + GetDrainsDeliveryOtlphttp1: &otlphttp, Type: typ, } } -func CreateGetDrainsDeliveryUnion1GetDrainsDeliveryClickhouse1(getDrainsDeliveryClickhouse1 GetDrainsDeliveryClickhouse1) GetDrainsDeliveryUnion1 { - typ := GetDrainsDeliveryUnion1TypeGetDrainsDeliveryClickhouse1 +func CreateGetDrainsDeliveryUnion1Clickhouse(clickhouse GetDrainsDeliveryClickhouse1) GetDrainsDeliveryUnion1 { + typ := GetDrainsDeliveryUnion1TypeClickhouse + + typStr := GetDrainsTypeClickhouse1(typ) + clickhouse.Type = typStr return GetDrainsDeliveryUnion1{ - GetDrainsDeliveryClickhouse1: &getDrainsDeliveryClickhouse1, + GetDrainsDeliveryClickhouse1: &clickhouse, Type: typ, } } -func CreateGetDrainsDeliveryUnion1GetDrainsDeliveryVercelOtelTracesDb1(getDrainsDeliveryVercelOtelTracesDb1 GetDrainsDeliveryVercelOtelTracesDb1) GetDrainsDeliveryUnion1 { - typ := GetDrainsDeliveryUnion1TypeGetDrainsDeliveryVercelOtelTracesDb1 +func CreateGetDrainsDeliveryUnion1Internal(internal GetDrainsDeliveryVercelOtelTracesDb1) GetDrainsDeliveryUnion1 { + typ := GetDrainsDeliveryUnion1TypeInternal + + typStr := GetDrainsTypeInternal1(typ) + internal.Type = typStr return GetDrainsDeliveryUnion1{ - GetDrainsDeliveryVercelOtelTracesDb1: &getDrainsDeliveryVercelOtelTracesDb1, + GetDrainsDeliveryVercelOtelTracesDb1: &internal, Type: typ, } } func (u *GetDrainsDeliveryUnion1) UnmarshalJSON(data []byte) error { - var getDrainsDeliveryHTTP1 GetDrainsDeliveryHTTP1 = GetDrainsDeliveryHTTP1{} - if err := utils.UnmarshalJSON(data, &getDrainsDeliveryHTTP1, "", true, nil); err == nil { - u.GetDrainsDeliveryHTTP1 = &getDrainsDeliveryHTTP1 - u.Type = GetDrainsDeliveryUnion1TypeGetDrainsDeliveryHTTP1 - return nil + type discriminator struct { + Type string `json:"type"` } - var getDrainsDeliveryOtlphttp1 GetDrainsDeliveryOtlphttp1 = GetDrainsDeliveryOtlphttp1{} - if err := utils.UnmarshalJSON(data, &getDrainsDeliveryOtlphttp1, "", true, nil); err == nil { - u.GetDrainsDeliveryOtlphttp1 = &getDrainsDeliveryOtlphttp1 - u.Type = GetDrainsDeliveryUnion1TypeGetDrainsDeliveryOtlphttp1 - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getDrainsDeliveryClickhouse1 GetDrainsDeliveryClickhouse1 = GetDrainsDeliveryClickhouse1{} - if err := utils.UnmarshalJSON(data, &getDrainsDeliveryClickhouse1, "", true, nil); err == nil { - u.GetDrainsDeliveryClickhouse1 = &getDrainsDeliveryClickhouse1 - u.Type = GetDrainsDeliveryUnion1TypeGetDrainsDeliveryClickhouse1 + switch dis.Type { + case "http": + getDrainsDeliveryHTTP1 := new(GetDrainsDeliveryHTTP1) + if err := utils.UnmarshalJSON(data, &getDrainsDeliveryHTTP1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == http) type GetDrainsDeliveryHTTP1 within GetDrainsDeliveryUnion1: %w", string(data), err) + } + + u.GetDrainsDeliveryHTTP1 = getDrainsDeliveryHTTP1 + u.Type = GetDrainsDeliveryUnion1TypeHTTP return nil - } + case "otlphttp": + getDrainsDeliveryOtlphttp1 := new(GetDrainsDeliveryOtlphttp1) + if err := utils.UnmarshalJSON(data, &getDrainsDeliveryOtlphttp1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == otlphttp) type GetDrainsDeliveryOtlphttp1 within GetDrainsDeliveryUnion1: %w", string(data), err) + } + + u.GetDrainsDeliveryOtlphttp1 = getDrainsDeliveryOtlphttp1 + u.Type = GetDrainsDeliveryUnion1TypeOtlphttp + return nil + case "clickhouse": + getDrainsDeliveryClickhouse1 := new(GetDrainsDeliveryClickhouse1) + if err := utils.UnmarshalJSON(data, &getDrainsDeliveryClickhouse1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == clickhouse) type GetDrainsDeliveryClickhouse1 within GetDrainsDeliveryUnion1: %w", string(data), err) + } - var getDrainsDeliveryVercelOtelTracesDb1 GetDrainsDeliveryVercelOtelTracesDb1 = GetDrainsDeliveryVercelOtelTracesDb1{} - if err := utils.UnmarshalJSON(data, &getDrainsDeliveryVercelOtelTracesDb1, "", true, nil); err == nil { - u.GetDrainsDeliveryVercelOtelTracesDb1 = &getDrainsDeliveryVercelOtelTracesDb1 - u.Type = GetDrainsDeliveryUnion1TypeGetDrainsDeliveryVercelOtelTracesDb1 + u.GetDrainsDeliveryClickhouse1 = getDrainsDeliveryClickhouse1 + u.Type = GetDrainsDeliveryUnion1TypeClickhouse + return nil + case "internal": + getDrainsDeliveryVercelOtelTracesDb1 := new(GetDrainsDeliveryVercelOtelTracesDb1) + if err := utils.UnmarshalJSON(data, &getDrainsDeliveryVercelOtelTracesDb1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == internal) type GetDrainsDeliveryVercelOtelTracesDb1 within GetDrainsDeliveryUnion1: %w", string(data), err) + } + + u.GetDrainsDeliveryVercelOtelTracesDb1 = getDrainsDeliveryVercelOtelTracesDb1 + u.Type = GetDrainsDeliveryUnion1TypeInternal return nil } @@ -3166,8 +3390,8 @@ func (o *GetDrainsSourceSelfServed1) GetKind() GetDrainsKindSelfServed1 { type GetDrainsSourceUnion1Type string const ( - GetDrainsSourceUnion1TypeGetDrainsSourceSelfServed1 GetDrainsSourceUnion1Type = "getDrains_source_SelfServed_1" - GetDrainsSourceUnion1TypeGetDrainsSourceIntegration1 GetDrainsSourceUnion1Type = "getDrains_source_Integration_1" + GetDrainsSourceUnion1TypeSelfServed GetDrainsSourceUnion1Type = "self-served" + GetDrainsSourceUnion1TypeIntegration GetDrainsSourceUnion1Type = "integration" ) type GetDrainsSourceUnion1 struct { @@ -3177,37 +3401,59 @@ type GetDrainsSourceUnion1 struct { Type GetDrainsSourceUnion1Type } -func CreateGetDrainsSourceUnion1GetDrainsSourceSelfServed1(getDrainsSourceSelfServed1 GetDrainsSourceSelfServed1) GetDrainsSourceUnion1 { - typ := GetDrainsSourceUnion1TypeGetDrainsSourceSelfServed1 +func CreateGetDrainsSourceUnion1SelfServed(selfServed GetDrainsSourceSelfServed1) GetDrainsSourceUnion1 { + typ := GetDrainsSourceUnion1TypeSelfServed + + typStr := GetDrainsKindSelfServed1(typ) + selfServed.Kind = typStr return GetDrainsSourceUnion1{ - GetDrainsSourceSelfServed1: &getDrainsSourceSelfServed1, + GetDrainsSourceSelfServed1: &selfServed, Type: typ, } } -func CreateGetDrainsSourceUnion1GetDrainsSourceIntegration1(getDrainsSourceIntegration1 GetDrainsSourceIntegration1) GetDrainsSourceUnion1 { - typ := GetDrainsSourceUnion1TypeGetDrainsSourceIntegration1 +func CreateGetDrainsSourceUnion1Integration(integration GetDrainsSourceIntegration1) GetDrainsSourceUnion1 { + typ := GetDrainsSourceUnion1TypeIntegration + + typStr := GetDrainsKindIntegration1(typ) + integration.Kind = typStr return GetDrainsSourceUnion1{ - GetDrainsSourceIntegration1: &getDrainsSourceIntegration1, + GetDrainsSourceIntegration1: &integration, Type: typ, } } func (u *GetDrainsSourceUnion1) UnmarshalJSON(data []byte) error { - var getDrainsSourceIntegration1 GetDrainsSourceIntegration1 = GetDrainsSourceIntegration1{} - if err := utils.UnmarshalJSON(data, &getDrainsSourceIntegration1, "", true, nil); err == nil { - u.GetDrainsSourceIntegration1 = &getDrainsSourceIntegration1 - u.Type = GetDrainsSourceUnion1TypeGetDrainsSourceIntegration1 - return nil + type discriminator struct { + Kind string `json:"kind"` } - var getDrainsSourceSelfServed1 GetDrainsSourceSelfServed1 = GetDrainsSourceSelfServed1{} - if err := utils.UnmarshalJSON(data, &getDrainsSourceSelfServed1, "", true, nil); err == nil { - u.GetDrainsSourceSelfServed1 = &getDrainsSourceSelfServed1 - u.Type = GetDrainsSourceUnion1TypeGetDrainsSourceSelfServed1 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Kind { + case "self-served": + getDrainsSourceSelfServed1 := new(GetDrainsSourceSelfServed1) + if err := utils.UnmarshalJSON(data, &getDrainsSourceSelfServed1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == self-served) type GetDrainsSourceSelfServed1 within GetDrainsSourceUnion1: %w", string(data), err) + } + + u.GetDrainsSourceSelfServed1 = getDrainsSourceSelfServed1 + u.Type = GetDrainsSourceUnion1TypeSelfServed + return nil + case "integration": + getDrainsSourceIntegration1 := new(GetDrainsSourceIntegration1) + if err := utils.UnmarshalJSON(data, &getDrainsSourceIntegration1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == integration) type GetDrainsSourceIntegration1 within GetDrainsSourceUnion1: %w", string(data), err) + } + + u.GetDrainsSourceIntegration1 = getDrainsSourceIntegration1 + u.Type = GetDrainsSourceUnion1TypeIntegration return nil } @@ -3515,8 +3761,8 @@ func (o *GetDrainsFilterBasic1) GetDeployment() *GetDrainsDeployment1 { type GetDrainsFilterUnion1Type string const ( - GetDrainsFilterUnion1TypeGetDrainsFilterBasic1 GetDrainsFilterUnion1Type = "getDrains_filter_Basic_1" - GetDrainsFilterUnion1TypeGetDrainsFilterOdata1 GetDrainsFilterUnion1Type = "getDrains_filter_Odata_1" + GetDrainsFilterUnion1TypeBasic GetDrainsFilterUnion1Type = "basic" + GetDrainsFilterUnion1TypeOdata GetDrainsFilterUnion1Type = "odata" ) type GetDrainsFilterUnion1 struct { @@ -3526,37 +3772,59 @@ type GetDrainsFilterUnion1 struct { Type GetDrainsFilterUnion1Type } -func CreateGetDrainsFilterUnion1GetDrainsFilterBasic1(getDrainsFilterBasic1 GetDrainsFilterBasic1) GetDrainsFilterUnion1 { - typ := GetDrainsFilterUnion1TypeGetDrainsFilterBasic1 +func CreateGetDrainsFilterUnion1Basic(basic GetDrainsFilterBasic1) GetDrainsFilterUnion1 { + typ := GetDrainsFilterUnion1TypeBasic + + typStr := GetDrainsTypeBasic1(typ) + basic.Type = typStr return GetDrainsFilterUnion1{ - GetDrainsFilterBasic1: &getDrainsFilterBasic1, + GetDrainsFilterBasic1: &basic, Type: typ, } } -func CreateGetDrainsFilterUnion1GetDrainsFilterOdata1(getDrainsFilterOdata1 GetDrainsFilterOdata1) GetDrainsFilterUnion1 { - typ := GetDrainsFilterUnion1TypeGetDrainsFilterOdata1 +func CreateGetDrainsFilterUnion1Odata(odata GetDrainsFilterOdata1) GetDrainsFilterUnion1 { + typ := GetDrainsFilterUnion1TypeOdata + + typStr := GetDrainsTypeOdata1(typ) + odata.Type = typStr return GetDrainsFilterUnion1{ - GetDrainsFilterOdata1: &getDrainsFilterOdata1, + GetDrainsFilterOdata1: &odata, Type: typ, } } func (u *GetDrainsFilterUnion1) UnmarshalJSON(data []byte) error { - var getDrainsFilterOdata1 GetDrainsFilterOdata1 = GetDrainsFilterOdata1{} - if err := utils.UnmarshalJSON(data, &getDrainsFilterOdata1, "", true, nil); err == nil { - u.GetDrainsFilterOdata1 = &getDrainsFilterOdata1 - u.Type = GetDrainsFilterUnion1TypeGetDrainsFilterOdata1 - return nil + type discriminator struct { + Type string `json:"type"` } - var getDrainsFilterBasic1 GetDrainsFilterBasic1 = GetDrainsFilterBasic1{} - if err := utils.UnmarshalJSON(data, &getDrainsFilterBasic1, "", true, nil); err == nil { - u.GetDrainsFilterBasic1 = &getDrainsFilterBasic1 - u.Type = GetDrainsFilterUnion1TypeGetDrainsFilterBasic1 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Type { + case "basic": + getDrainsFilterBasic1 := new(GetDrainsFilterBasic1) + if err := utils.UnmarshalJSON(data, &getDrainsFilterBasic1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == basic) type GetDrainsFilterBasic1 within GetDrainsFilterUnion1: %w", string(data), err) + } + + u.GetDrainsFilterBasic1 = getDrainsFilterBasic1 + u.Type = GetDrainsFilterUnion1TypeBasic + return nil + case "odata": + getDrainsFilterOdata1 := new(GetDrainsFilterOdata1) + if err := utils.UnmarshalJSON(data, &getDrainsFilterOdata1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == odata) type GetDrainsFilterOdata1 within GetDrainsFilterUnion1: %w", string(data), err) + } + + u.GetDrainsFilterOdata1 = getDrainsFilterOdata1 + u.Type = GetDrainsFilterUnion1TypeOdata return nil } @@ -3605,6 +3873,14 @@ func (o *GetDrainsFilterV2V21) GetFilter() GetDrainsFilterUnion1 { return o.Filter } +func (o *GetDrainsFilterV2V21) GetFilterBasic() *GetDrainsFilterBasic1 { + return o.GetFilter().GetDrainsFilterBasic1 +} + +func (o *GetDrainsFilterV2V21) GetFilterOdata() *GetDrainsFilterOdata1 { + return o.GetFilter().GetDrainsFilterOdata1 +} + type GetDrainsVersionV11 string const ( @@ -3653,8 +3929,8 @@ func (o *GetDrainsFilterV2V11) GetVersion() GetDrainsVersionV11 { type GetDrainsFilterV2Union1Type string const ( - GetDrainsFilterV2Union1TypeGetDrainsFilterV2V11 GetDrainsFilterV2Union1Type = "getDrains_filterV2_V1_1" - GetDrainsFilterV2Union1TypeGetDrainsFilterV2V21 GetDrainsFilterV2Union1Type = "getDrains_filterV2_V2_1" + GetDrainsFilterV2Union1TypeV1 GetDrainsFilterV2Union1Type = "v1" + GetDrainsFilterV2Union1TypeV2 GetDrainsFilterV2Union1Type = "v2" ) type GetDrainsFilterV2Union1 struct { @@ -3664,37 +3940,59 @@ type GetDrainsFilterV2Union1 struct { Type GetDrainsFilterV2Union1Type } -func CreateGetDrainsFilterV2Union1GetDrainsFilterV2V11(getDrainsFilterV2V11 GetDrainsFilterV2V11) GetDrainsFilterV2Union1 { - typ := GetDrainsFilterV2Union1TypeGetDrainsFilterV2V11 +func CreateGetDrainsFilterV2Union1V1(v1 GetDrainsFilterV2V11) GetDrainsFilterV2Union1 { + typ := GetDrainsFilterV2Union1TypeV1 + + typStr := GetDrainsVersionV11(typ) + v1.Version = typStr return GetDrainsFilterV2Union1{ - GetDrainsFilterV2V11: &getDrainsFilterV2V11, + GetDrainsFilterV2V11: &v1, Type: typ, } } -func CreateGetDrainsFilterV2Union1GetDrainsFilterV2V21(getDrainsFilterV2V21 GetDrainsFilterV2V21) GetDrainsFilterV2Union1 { - typ := GetDrainsFilterV2Union1TypeGetDrainsFilterV2V21 +func CreateGetDrainsFilterV2Union1V2(v2 GetDrainsFilterV2V21) GetDrainsFilterV2Union1 { + typ := GetDrainsFilterV2Union1TypeV2 + + typStr := GetDrainsVersionV21(typ) + v2.Version = typStr return GetDrainsFilterV2Union1{ - GetDrainsFilterV2V21: &getDrainsFilterV2V21, + GetDrainsFilterV2V21: &v2, Type: typ, } } func (u *GetDrainsFilterV2Union1) UnmarshalJSON(data []byte) error { - var getDrainsFilterV2V21 GetDrainsFilterV2V21 = GetDrainsFilterV2V21{} - if err := utils.UnmarshalJSON(data, &getDrainsFilterV2V21, "", true, nil); err == nil { - u.GetDrainsFilterV2V21 = &getDrainsFilterV2V21 - u.Type = GetDrainsFilterV2Union1TypeGetDrainsFilterV2V21 - return nil + type discriminator struct { + Version string `json:"version"` } - var getDrainsFilterV2V11 GetDrainsFilterV2V11 = GetDrainsFilterV2V11{} - if err := utils.UnmarshalJSON(data, &getDrainsFilterV2V11, "", true, nil); err == nil { - u.GetDrainsFilterV2V11 = &getDrainsFilterV2V11 - u.Type = GetDrainsFilterV2Union1TypeGetDrainsFilterV2V11 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Version { + case "v1": + getDrainsFilterV2V11 := new(GetDrainsFilterV2V11) + if err := utils.UnmarshalJSON(data, &getDrainsFilterV2V11, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Version == v1) type GetDrainsFilterV2V11 within GetDrainsFilterV2Union1: %w", string(data), err) + } + + u.GetDrainsFilterV2V11 = getDrainsFilterV2V11 + u.Type = GetDrainsFilterV2Union1TypeV1 + return nil + case "v2": + getDrainsFilterV2V21 := new(GetDrainsFilterV2V21) + if err := utils.UnmarshalJSON(data, &getDrainsFilterV2V21, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Version == v2) type GetDrainsFilterV2V21 within GetDrainsFilterV2Union1: %w", string(data), err) + } + + u.GetDrainsFilterV2V21 = getDrainsFilterV2V21 + u.Type = GetDrainsFilterV2Union1TypeV2 return nil } @@ -3801,6 +4099,34 @@ func (o *DrainsGetDrains1) GetDelivery() *GetDrainsDeliveryUnion1 { return o.Delivery } +func (o *DrainsGetDrains1) GetDeliveryHTTP() *GetDrainsDeliveryHTTP1 { + if v := o.GetDelivery(); v != nil { + return v.GetDrainsDeliveryHTTP1 + } + return nil +} + +func (o *DrainsGetDrains1) GetDeliveryOtlphttp() *GetDrainsDeliveryOtlphttp1 { + if v := o.GetDelivery(); v != nil { + return v.GetDrainsDeliveryOtlphttp1 + } + return nil +} + +func (o *DrainsGetDrains1) GetDeliveryClickhouse() *GetDrainsDeliveryClickhouse1 { + if v := o.GetDelivery(); v != nil { + return v.GetDrainsDeliveryClickhouse1 + } + return nil +} + +func (o *DrainsGetDrains1) GetDeliveryInternal() *GetDrainsDeliveryVercelOtelTracesDb1 { + if v := o.GetDelivery(); v != nil { + return v.GetDrainsDeliveryVercelOtelTracesDb1 + } + return nil +} + func (o *DrainsGetDrains1) GetSampling() []GetDrainsSampling1 { if o == nil { return nil @@ -3857,6 +4183,14 @@ func (o *DrainsGetDrains1) GetSource() GetDrainsSourceUnion1 { return o.Source } +func (o *DrainsGetDrains1) GetSourceSelfServed() *GetDrainsSourceSelfServed1 { + return o.GetSource().GetDrainsSourceSelfServed1 +} + +func (o *DrainsGetDrains1) GetSourceIntegration() *GetDrainsSourceIntegration1 { + return o.GetSource().GetDrainsSourceIntegration1 +} + func (o *DrainsGetDrains1) GetFilter() *string { if o == nil { return nil @@ -3871,6 +4205,20 @@ func (o *DrainsGetDrains1) GetFilterV2() *GetDrainsFilterV2Union1 { return o.FilterV2 } +func (o *DrainsGetDrains1) GetFilterV2V1() *GetDrainsFilterV2V11 { + if v := o.GetFilterV2(); v != nil { + return v.GetDrainsFilterV2V11 + } + return nil +} + +func (o *DrainsGetDrains1) GetFilterV2V2() *GetDrainsFilterV2V21 { + if v := o.GetFilterV2(); v != nil { + return v.GetDrainsFilterV2V21 + } + return nil +} + type GetDrainsDrainsUnionType string const ( diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getedgeconfig.go b/src/__tests__/mockserver/internal/sdk/models/operations/getedgeconfig.go index 1a243951..8431af91 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getedgeconfig.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getedgeconfig.go @@ -179,8 +179,8 @@ func (o *GetEdgeConfigPurposeFlags) GetProjectID() string { type GetEdgeConfigPurposeUnionType string const ( - GetEdgeConfigPurposeUnionTypeGetEdgeConfigPurposeFlags GetEdgeConfigPurposeUnionType = "getEdgeConfig_purpose_Flags" - GetEdgeConfigPurposeUnionTypeGetEdgeConfigPurposeExperimentation GetEdgeConfigPurposeUnionType = "getEdgeConfig_purpose_Experimentation" + GetEdgeConfigPurposeUnionTypeFlags GetEdgeConfigPurposeUnionType = "flags" + GetEdgeConfigPurposeUnionTypeExperimentation GetEdgeConfigPurposeUnionType = "experimentation" ) type GetEdgeConfigPurposeUnion struct { @@ -190,37 +190,59 @@ type GetEdgeConfigPurposeUnion struct { Type GetEdgeConfigPurposeUnionType } -func CreateGetEdgeConfigPurposeUnionGetEdgeConfigPurposeFlags(getEdgeConfigPurposeFlags GetEdgeConfigPurposeFlags) GetEdgeConfigPurposeUnion { - typ := GetEdgeConfigPurposeUnionTypeGetEdgeConfigPurposeFlags +func CreateGetEdgeConfigPurposeUnionFlags(flags GetEdgeConfigPurposeFlags) GetEdgeConfigPurposeUnion { + typ := GetEdgeConfigPurposeUnionTypeFlags + + typStr := GetEdgeConfigTypeFlags(typ) + flags.Type = typStr return GetEdgeConfigPurposeUnion{ - GetEdgeConfigPurposeFlags: &getEdgeConfigPurposeFlags, + GetEdgeConfigPurposeFlags: &flags, Type: typ, } } -func CreateGetEdgeConfigPurposeUnionGetEdgeConfigPurposeExperimentation(getEdgeConfigPurposeExperimentation GetEdgeConfigPurposeExperimentation) GetEdgeConfigPurposeUnion { - typ := GetEdgeConfigPurposeUnionTypeGetEdgeConfigPurposeExperimentation +func CreateGetEdgeConfigPurposeUnionExperimentation(experimentation GetEdgeConfigPurposeExperimentation) GetEdgeConfigPurposeUnion { + typ := GetEdgeConfigPurposeUnionTypeExperimentation + + typStr := GetEdgeConfigTypeExperimentation(typ) + experimentation.Type = typStr return GetEdgeConfigPurposeUnion{ - GetEdgeConfigPurposeExperimentation: &getEdgeConfigPurposeExperimentation, + GetEdgeConfigPurposeExperimentation: &experimentation, Type: typ, } } func (u *GetEdgeConfigPurposeUnion) UnmarshalJSON(data []byte) error { - var getEdgeConfigPurposeFlags GetEdgeConfigPurposeFlags = GetEdgeConfigPurposeFlags{} - if err := utils.UnmarshalJSON(data, &getEdgeConfigPurposeFlags, "", true, nil); err == nil { - u.GetEdgeConfigPurposeFlags = &getEdgeConfigPurposeFlags - u.Type = GetEdgeConfigPurposeUnionTypeGetEdgeConfigPurposeFlags - return nil + type discriminator struct { + Type string `json:"type"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getEdgeConfigPurposeExperimentation GetEdgeConfigPurposeExperimentation = GetEdgeConfigPurposeExperimentation{} - if err := utils.UnmarshalJSON(data, &getEdgeConfigPurposeExperimentation, "", true, nil); err == nil { - u.GetEdgeConfigPurposeExperimentation = &getEdgeConfigPurposeExperimentation - u.Type = GetEdgeConfigPurposeUnionTypeGetEdgeConfigPurposeExperimentation + switch dis.Type { + case "flags": + getEdgeConfigPurposeFlags := new(GetEdgeConfigPurposeFlags) + if err := utils.UnmarshalJSON(data, &getEdgeConfigPurposeFlags, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == flags) type GetEdgeConfigPurposeFlags within GetEdgeConfigPurposeUnion: %w", string(data), err) + } + + u.GetEdgeConfigPurposeFlags = getEdgeConfigPurposeFlags + u.Type = GetEdgeConfigPurposeUnionTypeFlags + return nil + case "experimentation": + getEdgeConfigPurposeExperimentation := new(GetEdgeConfigPurposeExperimentation) + if err := utils.UnmarshalJSON(data, &getEdgeConfigPurposeExperimentation, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == experimentation) type GetEdgeConfigPurposeExperimentation within GetEdgeConfigPurposeUnion: %w", string(data), err) + } + + u.GetEdgeConfigPurposeExperimentation = getEdgeConfigPurposeExperimentation + u.Type = GetEdgeConfigPurposeUnionTypeExperimentation return nil } @@ -329,6 +351,20 @@ func (o *GetEdgeConfigResponseBody) GetPurpose() *GetEdgeConfigPurposeUnion { return o.Purpose } +func (o *GetEdgeConfigResponseBody) GetPurposeFlags() *GetEdgeConfigPurposeFlags { + if v := o.GetPurpose(); v != nil { + return v.GetEdgeConfigPurposeFlags + } + return nil +} + +func (o *GetEdgeConfigResponseBody) GetPurposeExperimentation() *GetEdgeConfigPurposeExperimentation { + if v := o.GetPurpose(); v != nil { + return v.GetEdgeConfigPurposeExperimentation + } + return nil +} + func (o *GetEdgeConfigResponseBody) GetSyncedToDynamoAt() *float64 { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getintegrationlogdrains.go b/src/__tests__/mockserver/internal/sdk/models/operations/getintegrationlogdrains.go index 3d20331d..f646b983 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getintegrationlogdrains.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getintegrationlogdrains.go @@ -282,8 +282,8 @@ func (o *GetIntegrationLogDrainsSourceSelfServed) GetKind() GetIntegrationLogDra type GetIntegrationLogDrainsSourceUnionType string const ( - GetIntegrationLogDrainsSourceUnionTypeGetIntegrationLogDrainsSourceSelfServed GetIntegrationLogDrainsSourceUnionType = "getIntegrationLogDrains_source_SelfServed" - GetIntegrationLogDrainsSourceUnionTypeGetIntegrationLogDrainsSourceIntegration GetIntegrationLogDrainsSourceUnionType = "getIntegrationLogDrains_source_Integration" + GetIntegrationLogDrainsSourceUnionTypeSelfServed GetIntegrationLogDrainsSourceUnionType = "self-served" + GetIntegrationLogDrainsSourceUnionTypeIntegration GetIntegrationLogDrainsSourceUnionType = "integration" ) type GetIntegrationLogDrainsSourceUnion struct { @@ -293,37 +293,59 @@ type GetIntegrationLogDrainsSourceUnion struct { Type GetIntegrationLogDrainsSourceUnionType } -func CreateGetIntegrationLogDrainsSourceUnionGetIntegrationLogDrainsSourceSelfServed(getIntegrationLogDrainsSourceSelfServed GetIntegrationLogDrainsSourceSelfServed) GetIntegrationLogDrainsSourceUnion { - typ := GetIntegrationLogDrainsSourceUnionTypeGetIntegrationLogDrainsSourceSelfServed +func CreateGetIntegrationLogDrainsSourceUnionSelfServed(selfServed GetIntegrationLogDrainsSourceSelfServed) GetIntegrationLogDrainsSourceUnion { + typ := GetIntegrationLogDrainsSourceUnionTypeSelfServed + + typStr := GetIntegrationLogDrainsKindSelfServed(typ) + selfServed.Kind = typStr return GetIntegrationLogDrainsSourceUnion{ - GetIntegrationLogDrainsSourceSelfServed: &getIntegrationLogDrainsSourceSelfServed, + GetIntegrationLogDrainsSourceSelfServed: &selfServed, Type: typ, } } -func CreateGetIntegrationLogDrainsSourceUnionGetIntegrationLogDrainsSourceIntegration(getIntegrationLogDrainsSourceIntegration GetIntegrationLogDrainsSourceIntegration) GetIntegrationLogDrainsSourceUnion { - typ := GetIntegrationLogDrainsSourceUnionTypeGetIntegrationLogDrainsSourceIntegration +func CreateGetIntegrationLogDrainsSourceUnionIntegration(integration GetIntegrationLogDrainsSourceIntegration) GetIntegrationLogDrainsSourceUnion { + typ := GetIntegrationLogDrainsSourceUnionTypeIntegration + + typStr := GetIntegrationLogDrainsKindIntegration(typ) + integration.Kind = typStr return GetIntegrationLogDrainsSourceUnion{ - GetIntegrationLogDrainsSourceIntegration: &getIntegrationLogDrainsSourceIntegration, + GetIntegrationLogDrainsSourceIntegration: &integration, Type: typ, } } func (u *GetIntegrationLogDrainsSourceUnion) UnmarshalJSON(data []byte) error { - var getIntegrationLogDrainsSourceIntegration GetIntegrationLogDrainsSourceIntegration = GetIntegrationLogDrainsSourceIntegration{} - if err := utils.UnmarshalJSON(data, &getIntegrationLogDrainsSourceIntegration, "", true, nil); err == nil { - u.GetIntegrationLogDrainsSourceIntegration = &getIntegrationLogDrainsSourceIntegration - u.Type = GetIntegrationLogDrainsSourceUnionTypeGetIntegrationLogDrainsSourceIntegration - return nil + type discriminator struct { + Kind string `json:"kind"` } - var getIntegrationLogDrainsSourceSelfServed GetIntegrationLogDrainsSourceSelfServed = GetIntegrationLogDrainsSourceSelfServed{} - if err := utils.UnmarshalJSON(data, &getIntegrationLogDrainsSourceSelfServed, "", true, nil); err == nil { - u.GetIntegrationLogDrainsSourceSelfServed = &getIntegrationLogDrainsSourceSelfServed - u.Type = GetIntegrationLogDrainsSourceUnionTypeGetIntegrationLogDrainsSourceSelfServed + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Kind { + case "self-served": + getIntegrationLogDrainsSourceSelfServed := new(GetIntegrationLogDrainsSourceSelfServed) + if err := utils.UnmarshalJSON(data, &getIntegrationLogDrainsSourceSelfServed, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == self-served) type GetIntegrationLogDrainsSourceSelfServed within GetIntegrationLogDrainsSourceUnion: %w", string(data), err) + } + + u.GetIntegrationLogDrainsSourceSelfServed = getIntegrationLogDrainsSourceSelfServed + u.Type = GetIntegrationLogDrainsSourceUnionTypeSelfServed + return nil + case "integration": + getIntegrationLogDrainsSourceIntegration := new(GetIntegrationLogDrainsSourceIntegration) + if err := utils.UnmarshalJSON(data, &getIntegrationLogDrainsSourceIntegration, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == integration) type GetIntegrationLogDrainsSourceIntegration within GetIntegrationLogDrainsSourceUnion: %w", string(data), err) + } + + u.GetIntegrationLogDrainsSourceIntegration = getIntegrationLogDrainsSourceIntegration + u.Type = GetIntegrationLogDrainsSourceUnionTypeIntegration return nil } @@ -496,6 +518,14 @@ func (o *GetIntegrationLogDrainsResponseBody) GetSource() GetIntegrationLogDrain return o.Source } +func (o *GetIntegrationLogDrainsResponseBody) GetSourceSelfServed() *GetIntegrationLogDrainsSourceSelfServed { + return o.GetSource().GetIntegrationLogDrainsSourceSelfServed +} + +func (o *GetIntegrationLogDrainsResponseBody) GetSourceIntegration() *GetIntegrationLogDrainsSourceIntegration { + return o.GetSource().GetIntegrationLogDrainsSourceIntegration +} + type GetIntegrationLogDrainsResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // A list of log drains diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getorder.go b/src/__tests__/mockserver/internal/sdk/models/operations/getorder.go index bd2977ff..c667a46d 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getorder.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getorder.go @@ -285,9 +285,9 @@ func (o *ErrorUnsupportedLanguageCode3) GetDetails() DomainDetails3 { type DomainErrorUnion5Type string const ( - DomainErrorUnion5TypeErrorUnsupportedLanguageCode3 DomainErrorUnion5Type = "error_UnsupportedLanguageCode_3" - DomainErrorUnion5TypeErrorClientTransferProhibited3 DomainErrorUnion5Type = "error_ClientTransferProhibited_3" - DomainErrorUnion5TypeErrorClaimsNoticeRequired3 DomainErrorUnion5Type = "error_ClaimsNoticeRequired_3" + DomainErrorUnion5TypeUnsupportedLanguageCode DomainErrorUnion5Type = "unsupported-language-code" + DomainErrorUnion5TypeClientTransferProhibited DomainErrorUnion5Type = "client-transfer-prohibited" + DomainErrorUnion5TypeClaimsNoticeRequired DomainErrorUnion5Type = "claims-notice-required" ) type DomainErrorUnion5 struct { @@ -298,53 +298,80 @@ type DomainErrorUnion5 struct { Type DomainErrorUnion5Type } -func CreateDomainErrorUnion5ErrorUnsupportedLanguageCode3(errorUnsupportedLanguageCode3 ErrorUnsupportedLanguageCode3) DomainErrorUnion5 { - typ := DomainErrorUnion5TypeErrorUnsupportedLanguageCode3 +func CreateDomainErrorUnion5UnsupportedLanguageCode(unsupportedLanguageCode ErrorUnsupportedLanguageCode3) DomainErrorUnion5 { + typ := DomainErrorUnion5TypeUnsupportedLanguageCode + + typStr := CodeUnsupportedLanguageCode3(typ) + unsupportedLanguageCode.Code = typStr return DomainErrorUnion5{ - ErrorUnsupportedLanguageCode3: &errorUnsupportedLanguageCode3, + ErrorUnsupportedLanguageCode3: &unsupportedLanguageCode, Type: typ, } } -func CreateDomainErrorUnion5ErrorClientTransferProhibited3(errorClientTransferProhibited3 ErrorClientTransferProhibited3) DomainErrorUnion5 { - typ := DomainErrorUnion5TypeErrorClientTransferProhibited3 +func CreateDomainErrorUnion5ClientTransferProhibited(clientTransferProhibited ErrorClientTransferProhibited3) DomainErrorUnion5 { + typ := DomainErrorUnion5TypeClientTransferProhibited + + typStr := CodeClientTransferProhibited3(typ) + clientTransferProhibited.Code = typStr return DomainErrorUnion5{ - ErrorClientTransferProhibited3: &errorClientTransferProhibited3, + ErrorClientTransferProhibited3: &clientTransferProhibited, Type: typ, } } -func CreateDomainErrorUnion5ErrorClaimsNoticeRequired3(errorClaimsNoticeRequired3 ErrorClaimsNoticeRequired3) DomainErrorUnion5 { - typ := DomainErrorUnion5TypeErrorClaimsNoticeRequired3 +func CreateDomainErrorUnion5ClaimsNoticeRequired(claimsNoticeRequired ErrorClaimsNoticeRequired3) DomainErrorUnion5 { + typ := DomainErrorUnion5TypeClaimsNoticeRequired + + typStr := CodeClaimsNoticeRequired3(typ) + claimsNoticeRequired.Code = typStr return DomainErrorUnion5{ - ErrorClaimsNoticeRequired3: &errorClaimsNoticeRequired3, + ErrorClaimsNoticeRequired3: &claimsNoticeRequired, Type: typ, } } func (u *DomainErrorUnion5) UnmarshalJSON(data []byte) error { - var errorUnsupportedLanguageCode3 ErrorUnsupportedLanguageCode3 = ErrorUnsupportedLanguageCode3{} - if err := utils.UnmarshalJSON(data, &errorUnsupportedLanguageCode3, "", true, nil); err == nil { - u.ErrorUnsupportedLanguageCode3 = &errorUnsupportedLanguageCode3 - u.Type = DomainErrorUnion5TypeErrorUnsupportedLanguageCode3 - return nil + type discriminator struct { + Code string `json:"code"` } - var errorClientTransferProhibited3 ErrorClientTransferProhibited3 = ErrorClientTransferProhibited3{} - if err := utils.UnmarshalJSON(data, &errorClientTransferProhibited3, "", true, nil); err == nil { - u.ErrorClientTransferProhibited3 = &errorClientTransferProhibited3 - u.Type = DomainErrorUnion5TypeErrorClientTransferProhibited3 - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var errorClaimsNoticeRequired3 ErrorClaimsNoticeRequired3 = ErrorClaimsNoticeRequired3{} - if err := utils.UnmarshalJSON(data, &errorClaimsNoticeRequired3, "", true, nil); err == nil { - u.ErrorClaimsNoticeRequired3 = &errorClaimsNoticeRequired3 - u.Type = DomainErrorUnion5TypeErrorClaimsNoticeRequired3 + switch dis.Code { + case "unsupported-language-code": + errorUnsupportedLanguageCode3 := new(ErrorUnsupportedLanguageCode3) + if err := utils.UnmarshalJSON(data, &errorUnsupportedLanguageCode3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == unsupported-language-code) type ErrorUnsupportedLanguageCode3 within DomainErrorUnion5: %w", string(data), err) + } + + u.ErrorUnsupportedLanguageCode3 = errorUnsupportedLanguageCode3 + u.Type = DomainErrorUnion5TypeUnsupportedLanguageCode + return nil + case "client-transfer-prohibited": + errorClientTransferProhibited3 := new(ErrorClientTransferProhibited3) + if err := utils.UnmarshalJSON(data, &errorClientTransferProhibited3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == client-transfer-prohibited) type ErrorClientTransferProhibited3 within DomainErrorUnion5: %w", string(data), err) + } + + u.ErrorClientTransferProhibited3 = errorClientTransferProhibited3 + u.Type = DomainErrorUnion5TypeClientTransferProhibited + return nil + case "claims-notice-required": + errorClaimsNoticeRequired3 := new(ErrorClaimsNoticeRequired3) + if err := utils.UnmarshalJSON(data, &errorClaimsNoticeRequired3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == claims-notice-required) type ErrorClaimsNoticeRequired3 within DomainErrorUnion5: %w", string(data), err) + } + + u.ErrorClaimsNoticeRequired3 = errorClaimsNoticeRequired3 + u.Type = DomainErrorUnion5TypeClaimsNoticeRequired return nil } @@ -758,9 +785,9 @@ func (o *ErrorUnsupportedLanguageCode2) GetDetails() DomainDetails2 { type DomainErrorUnion3Type string const ( - DomainErrorUnion3TypeErrorUnsupportedLanguageCode2 DomainErrorUnion3Type = "error_UnsupportedLanguageCode_2" - DomainErrorUnion3TypeErrorClientTransferProhibited2 DomainErrorUnion3Type = "error_ClientTransferProhibited_2" - DomainErrorUnion3TypeErrorClaimsNoticeRequired2 DomainErrorUnion3Type = "error_ClaimsNoticeRequired_2" + DomainErrorUnion3TypeUnsupportedLanguageCode DomainErrorUnion3Type = "unsupported-language-code" + DomainErrorUnion3TypeClientTransferProhibited DomainErrorUnion3Type = "client-transfer-prohibited" + DomainErrorUnion3TypeClaimsNoticeRequired DomainErrorUnion3Type = "claims-notice-required" ) type DomainErrorUnion3 struct { @@ -771,53 +798,80 @@ type DomainErrorUnion3 struct { Type DomainErrorUnion3Type } -func CreateDomainErrorUnion3ErrorUnsupportedLanguageCode2(errorUnsupportedLanguageCode2 ErrorUnsupportedLanguageCode2) DomainErrorUnion3 { - typ := DomainErrorUnion3TypeErrorUnsupportedLanguageCode2 +func CreateDomainErrorUnion3UnsupportedLanguageCode(unsupportedLanguageCode ErrorUnsupportedLanguageCode2) DomainErrorUnion3 { + typ := DomainErrorUnion3TypeUnsupportedLanguageCode + + typStr := CodeUnsupportedLanguageCode2(typ) + unsupportedLanguageCode.Code = typStr return DomainErrorUnion3{ - ErrorUnsupportedLanguageCode2: &errorUnsupportedLanguageCode2, + ErrorUnsupportedLanguageCode2: &unsupportedLanguageCode, Type: typ, } } -func CreateDomainErrorUnion3ErrorClientTransferProhibited2(errorClientTransferProhibited2 ErrorClientTransferProhibited2) DomainErrorUnion3 { - typ := DomainErrorUnion3TypeErrorClientTransferProhibited2 +func CreateDomainErrorUnion3ClientTransferProhibited(clientTransferProhibited ErrorClientTransferProhibited2) DomainErrorUnion3 { + typ := DomainErrorUnion3TypeClientTransferProhibited + + typStr := CodeClientTransferProhibited2(typ) + clientTransferProhibited.Code = typStr return DomainErrorUnion3{ - ErrorClientTransferProhibited2: &errorClientTransferProhibited2, + ErrorClientTransferProhibited2: &clientTransferProhibited, Type: typ, } } -func CreateDomainErrorUnion3ErrorClaimsNoticeRequired2(errorClaimsNoticeRequired2 ErrorClaimsNoticeRequired2) DomainErrorUnion3 { - typ := DomainErrorUnion3TypeErrorClaimsNoticeRequired2 +func CreateDomainErrorUnion3ClaimsNoticeRequired(claimsNoticeRequired ErrorClaimsNoticeRequired2) DomainErrorUnion3 { + typ := DomainErrorUnion3TypeClaimsNoticeRequired + + typStr := CodeClaimsNoticeRequired2(typ) + claimsNoticeRequired.Code = typStr return DomainErrorUnion3{ - ErrorClaimsNoticeRequired2: &errorClaimsNoticeRequired2, + ErrorClaimsNoticeRequired2: &claimsNoticeRequired, Type: typ, } } func (u *DomainErrorUnion3) UnmarshalJSON(data []byte) error { - var errorUnsupportedLanguageCode2 ErrorUnsupportedLanguageCode2 = ErrorUnsupportedLanguageCode2{} - if err := utils.UnmarshalJSON(data, &errorUnsupportedLanguageCode2, "", true, nil); err == nil { - u.ErrorUnsupportedLanguageCode2 = &errorUnsupportedLanguageCode2 - u.Type = DomainErrorUnion3TypeErrorUnsupportedLanguageCode2 - return nil + type discriminator struct { + Code string `json:"code"` } - var errorClientTransferProhibited2 ErrorClientTransferProhibited2 = ErrorClientTransferProhibited2{} - if err := utils.UnmarshalJSON(data, &errorClientTransferProhibited2, "", true, nil); err == nil { - u.ErrorClientTransferProhibited2 = &errorClientTransferProhibited2 - u.Type = DomainErrorUnion3TypeErrorClientTransferProhibited2 - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var errorClaimsNoticeRequired2 ErrorClaimsNoticeRequired2 = ErrorClaimsNoticeRequired2{} - if err := utils.UnmarshalJSON(data, &errorClaimsNoticeRequired2, "", true, nil); err == nil { - u.ErrorClaimsNoticeRequired2 = &errorClaimsNoticeRequired2 - u.Type = DomainErrorUnion3TypeErrorClaimsNoticeRequired2 + switch dis.Code { + case "unsupported-language-code": + errorUnsupportedLanguageCode2 := new(ErrorUnsupportedLanguageCode2) + if err := utils.UnmarshalJSON(data, &errorUnsupportedLanguageCode2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == unsupported-language-code) type ErrorUnsupportedLanguageCode2 within DomainErrorUnion3: %w", string(data), err) + } + + u.ErrorUnsupportedLanguageCode2 = errorUnsupportedLanguageCode2 + u.Type = DomainErrorUnion3TypeUnsupportedLanguageCode + return nil + case "client-transfer-prohibited": + errorClientTransferProhibited2 := new(ErrorClientTransferProhibited2) + if err := utils.UnmarshalJSON(data, &errorClientTransferProhibited2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == client-transfer-prohibited) type ErrorClientTransferProhibited2 within DomainErrorUnion3: %w", string(data), err) + } + + u.ErrorClientTransferProhibited2 = errorClientTransferProhibited2 + u.Type = DomainErrorUnion3TypeClientTransferProhibited + return nil + case "claims-notice-required": + errorClaimsNoticeRequired2 := new(ErrorClaimsNoticeRequired2) + if err := utils.UnmarshalJSON(data, &errorClaimsNoticeRequired2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == claims-notice-required) type ErrorClaimsNoticeRequired2 within DomainErrorUnion3: %w", string(data), err) + } + + u.ErrorClaimsNoticeRequired2 = errorClaimsNoticeRequired2 + u.Type = DomainErrorUnion3TypeClaimsNoticeRequired return nil } @@ -1223,9 +1277,9 @@ func (o *ErrorUnsupportedLanguageCode1) GetDetails() DomainDetails1 { type DomainErrorUnion1Type string const ( - DomainErrorUnion1TypeErrorUnsupportedLanguageCode1 DomainErrorUnion1Type = "error_UnsupportedLanguageCode_1" - DomainErrorUnion1TypeErrorClientTransferProhibited1 DomainErrorUnion1Type = "error_ClientTransferProhibited_1" - DomainErrorUnion1TypeErrorClaimsNoticeRequired1 DomainErrorUnion1Type = "error_ClaimsNoticeRequired_1" + DomainErrorUnion1TypeUnsupportedLanguageCode DomainErrorUnion1Type = "unsupported-language-code" + DomainErrorUnion1TypeClientTransferProhibited DomainErrorUnion1Type = "client-transfer-prohibited" + DomainErrorUnion1TypeClaimsNoticeRequired DomainErrorUnion1Type = "claims-notice-required" ) type DomainErrorUnion1 struct { @@ -1236,53 +1290,80 @@ type DomainErrorUnion1 struct { Type DomainErrorUnion1Type } -func CreateDomainErrorUnion1ErrorUnsupportedLanguageCode1(errorUnsupportedLanguageCode1 ErrorUnsupportedLanguageCode1) DomainErrorUnion1 { - typ := DomainErrorUnion1TypeErrorUnsupportedLanguageCode1 +func CreateDomainErrorUnion1UnsupportedLanguageCode(unsupportedLanguageCode ErrorUnsupportedLanguageCode1) DomainErrorUnion1 { + typ := DomainErrorUnion1TypeUnsupportedLanguageCode + + typStr := CodeUnsupportedLanguageCode1(typ) + unsupportedLanguageCode.Code = typStr return DomainErrorUnion1{ - ErrorUnsupportedLanguageCode1: &errorUnsupportedLanguageCode1, + ErrorUnsupportedLanguageCode1: &unsupportedLanguageCode, Type: typ, } } -func CreateDomainErrorUnion1ErrorClientTransferProhibited1(errorClientTransferProhibited1 ErrorClientTransferProhibited1) DomainErrorUnion1 { - typ := DomainErrorUnion1TypeErrorClientTransferProhibited1 +func CreateDomainErrorUnion1ClientTransferProhibited(clientTransferProhibited ErrorClientTransferProhibited1) DomainErrorUnion1 { + typ := DomainErrorUnion1TypeClientTransferProhibited + + typStr := CodeClientTransferProhibited1(typ) + clientTransferProhibited.Code = typStr return DomainErrorUnion1{ - ErrorClientTransferProhibited1: &errorClientTransferProhibited1, + ErrorClientTransferProhibited1: &clientTransferProhibited, Type: typ, } } -func CreateDomainErrorUnion1ErrorClaimsNoticeRequired1(errorClaimsNoticeRequired1 ErrorClaimsNoticeRequired1) DomainErrorUnion1 { - typ := DomainErrorUnion1TypeErrorClaimsNoticeRequired1 +func CreateDomainErrorUnion1ClaimsNoticeRequired(claimsNoticeRequired ErrorClaimsNoticeRequired1) DomainErrorUnion1 { + typ := DomainErrorUnion1TypeClaimsNoticeRequired + + typStr := CodeClaimsNoticeRequired1(typ) + claimsNoticeRequired.Code = typStr return DomainErrorUnion1{ - ErrorClaimsNoticeRequired1: &errorClaimsNoticeRequired1, + ErrorClaimsNoticeRequired1: &claimsNoticeRequired, Type: typ, } } func (u *DomainErrorUnion1) UnmarshalJSON(data []byte) error { - var errorUnsupportedLanguageCode1 ErrorUnsupportedLanguageCode1 = ErrorUnsupportedLanguageCode1{} - if err := utils.UnmarshalJSON(data, &errorUnsupportedLanguageCode1, "", true, nil); err == nil { - u.ErrorUnsupportedLanguageCode1 = &errorUnsupportedLanguageCode1 - u.Type = DomainErrorUnion1TypeErrorUnsupportedLanguageCode1 - return nil + type discriminator struct { + Code string `json:"code"` } - var errorClientTransferProhibited1 ErrorClientTransferProhibited1 = ErrorClientTransferProhibited1{} - if err := utils.UnmarshalJSON(data, &errorClientTransferProhibited1, "", true, nil); err == nil { - u.ErrorClientTransferProhibited1 = &errorClientTransferProhibited1 - u.Type = DomainErrorUnion1TypeErrorClientTransferProhibited1 - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var errorClaimsNoticeRequired1 ErrorClaimsNoticeRequired1 = ErrorClaimsNoticeRequired1{} - if err := utils.UnmarshalJSON(data, &errorClaimsNoticeRequired1, "", true, nil); err == nil { - u.ErrorClaimsNoticeRequired1 = &errorClaimsNoticeRequired1 - u.Type = DomainErrorUnion1TypeErrorClaimsNoticeRequired1 + switch dis.Code { + case "unsupported-language-code": + errorUnsupportedLanguageCode1 := new(ErrorUnsupportedLanguageCode1) + if err := utils.UnmarshalJSON(data, &errorUnsupportedLanguageCode1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == unsupported-language-code) type ErrorUnsupportedLanguageCode1 within DomainErrorUnion1: %w", string(data), err) + } + + u.ErrorUnsupportedLanguageCode1 = errorUnsupportedLanguageCode1 + u.Type = DomainErrorUnion1TypeUnsupportedLanguageCode + return nil + case "client-transfer-prohibited": + errorClientTransferProhibited1 := new(ErrorClientTransferProhibited1) + if err := utils.UnmarshalJSON(data, &errorClientTransferProhibited1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == client-transfer-prohibited) type ErrorClientTransferProhibited1 within DomainErrorUnion1: %w", string(data), err) + } + + u.ErrorClientTransferProhibited1 = errorClientTransferProhibited1 + u.Type = DomainErrorUnion1TypeClientTransferProhibited + return nil + case "claims-notice-required": + errorClaimsNoticeRequired1 := new(ErrorClaimsNoticeRequired1) + if err := utils.UnmarshalJSON(data, &errorClaimsNoticeRequired1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == claims-notice-required) type ErrorClaimsNoticeRequired1 within DomainErrorUnion1: %w", string(data), err) + } + + u.ErrorClaimsNoticeRequired1 = errorClaimsNoticeRequired1 + u.Type = DomainErrorUnion1TypeClaimsNoticeRequired return nil } @@ -1443,9 +1524,9 @@ func (o *DomainPurchase) GetError() *DomainErrorUnion2 { type GetOrderDomainUnionType string const ( - GetOrderDomainUnionTypeDomainPurchase GetOrderDomainUnionType = "domain_Purchase" - GetOrderDomainUnionTypeDomainRenewal GetOrderDomainUnionType = "domain_Renewal" - GetOrderDomainUnionTypeDomainTransfer GetOrderDomainUnionType = "domain_Transfer" + GetOrderDomainUnionTypePurchase GetOrderDomainUnionType = "purchase" + GetOrderDomainUnionTypeRenewal GetOrderDomainUnionType = "renewal" + GetOrderDomainUnionTypeTransfer GetOrderDomainUnionType = "transfer" ) type GetOrderDomainUnion struct { @@ -1456,53 +1537,80 @@ type GetOrderDomainUnion struct { Type GetOrderDomainUnionType } -func CreateGetOrderDomainUnionDomainPurchase(domainPurchase DomainPurchase) GetOrderDomainUnion { - typ := GetOrderDomainUnionTypeDomainPurchase +func CreateGetOrderDomainUnionPurchase(purchase DomainPurchase) GetOrderDomainUnion { + typ := GetOrderDomainUnionTypePurchase + + typStr := PurchaseTypePurchase(typ) + purchase.PurchaseType = typStr return GetOrderDomainUnion{ - DomainPurchase: &domainPurchase, + DomainPurchase: &purchase, Type: typ, } } -func CreateGetOrderDomainUnionDomainRenewal(domainRenewal DomainRenewal) GetOrderDomainUnion { - typ := GetOrderDomainUnionTypeDomainRenewal +func CreateGetOrderDomainUnionRenewal(renewal DomainRenewal) GetOrderDomainUnion { + typ := GetOrderDomainUnionTypeRenewal + + typStr := PurchaseTypeRenewal(typ) + renewal.PurchaseType = typStr return GetOrderDomainUnion{ - DomainRenewal: &domainRenewal, + DomainRenewal: &renewal, Type: typ, } } -func CreateGetOrderDomainUnionDomainTransfer(domainTransfer DomainTransfer) GetOrderDomainUnion { - typ := GetOrderDomainUnionTypeDomainTransfer +func CreateGetOrderDomainUnionTransfer(transfer DomainTransfer) GetOrderDomainUnion { + typ := GetOrderDomainUnionTypeTransfer + + typStr := PurchaseTypeTransfer(typ) + transfer.PurchaseType = typStr return GetOrderDomainUnion{ - DomainTransfer: &domainTransfer, + DomainTransfer: &transfer, Type: typ, } } func (u *GetOrderDomainUnion) UnmarshalJSON(data []byte) error { - var domainPurchase DomainPurchase = DomainPurchase{} - if err := utils.UnmarshalJSON(data, &domainPurchase, "", true, nil); err == nil { - u.DomainPurchase = &domainPurchase - u.Type = GetOrderDomainUnionTypeDomainPurchase - return nil + type discriminator struct { + PurchaseType string `json:"purchaseType"` } - var domainTransfer DomainTransfer = DomainTransfer{} - if err := utils.UnmarshalJSON(data, &domainTransfer, "", true, nil); err == nil { - u.DomainTransfer = &domainTransfer - u.Type = GetOrderDomainUnionTypeDomainTransfer - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var domainRenewal DomainRenewal = DomainRenewal{} - if err := utils.UnmarshalJSON(data, &domainRenewal, "", true, nil); err == nil { - u.DomainRenewal = &domainRenewal - u.Type = GetOrderDomainUnionTypeDomainRenewal + switch dis.PurchaseType { + case "purchase": + domainPurchase := new(DomainPurchase) + if err := utils.UnmarshalJSON(data, &domainPurchase, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (PurchaseType == purchase) type DomainPurchase within GetOrderDomainUnion: %w", string(data), err) + } + + u.DomainPurchase = domainPurchase + u.Type = GetOrderDomainUnionTypePurchase + return nil + case "renewal": + domainRenewal := new(DomainRenewal) + if err := utils.UnmarshalJSON(data, &domainRenewal, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (PurchaseType == renewal) type DomainRenewal within GetOrderDomainUnion: %w", string(data), err) + } + + u.DomainRenewal = domainRenewal + u.Type = GetOrderDomainUnionTypeRenewal + return nil + case "transfer": + domainTransfer := new(DomainTransfer) + if err := utils.UnmarshalJSON(data, &domainTransfer, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (PurchaseType == transfer) type DomainTransfer within GetOrderDomainUnion: %w", string(data), err) + } + + u.DomainTransfer = domainTransfer + u.Type = GetOrderDomainUnionTypeTransfer return nil } @@ -1868,10 +1976,10 @@ func (o *ErrorPaymentFailed) GetCode() CodePaymentFailed { type ErrorUnion1Type string const ( - ErrorUnion1TypeErrorPaymentFailed ErrorUnion1Type = "error_PaymentFailed" - ErrorUnion1TypeErrorTldOutage ErrorUnion1Type = "error_TldOutage" - ErrorUnion1TypeErrorPriceMismatch ErrorUnion1Type = "error_PriceMismatch" - ErrorUnion1TypeErrorUnexpectedError ErrorUnion1Type = "error_UnexpectedError" + ErrorUnion1TypePaymentFailed ErrorUnion1Type = "payment-failed" + ErrorUnion1TypeTldOutage ErrorUnion1Type = "tld-outage" + ErrorUnion1TypePriceMismatch ErrorUnion1Type = "price-mismatch" + ErrorUnion1TypeUnexpectedError ErrorUnion1Type = "unexpected-error" ) type ErrorUnion1 struct { @@ -1883,69 +1991,101 @@ type ErrorUnion1 struct { Type ErrorUnion1Type } -func CreateErrorUnion1ErrorPaymentFailed(errorPaymentFailed ErrorPaymentFailed) ErrorUnion1 { - typ := ErrorUnion1TypeErrorPaymentFailed +func CreateErrorUnion1PaymentFailed(paymentFailed ErrorPaymentFailed) ErrorUnion1 { + typ := ErrorUnion1TypePaymentFailed + + typStr := CodePaymentFailed(typ) + paymentFailed.Code = typStr return ErrorUnion1{ - ErrorPaymentFailed: &errorPaymentFailed, + ErrorPaymentFailed: &paymentFailed, Type: typ, } } -func CreateErrorUnion1ErrorTldOutage(errorTldOutage ErrorTldOutage) ErrorUnion1 { - typ := ErrorUnion1TypeErrorTldOutage +func CreateErrorUnion1TldOutage(tldOutage ErrorTldOutage) ErrorUnion1 { + typ := ErrorUnion1TypeTldOutage + + typStr := CodeTldOutage(typ) + tldOutage.Code = typStr return ErrorUnion1{ - ErrorTldOutage: &errorTldOutage, + ErrorTldOutage: &tldOutage, Type: typ, } } -func CreateErrorUnion1ErrorPriceMismatch(errorPriceMismatch ErrorPriceMismatch) ErrorUnion1 { - typ := ErrorUnion1TypeErrorPriceMismatch +func CreateErrorUnion1PriceMismatch(priceMismatch ErrorPriceMismatch) ErrorUnion1 { + typ := ErrorUnion1TypePriceMismatch + + typStr := CodePriceMismatch(typ) + priceMismatch.Code = typStr return ErrorUnion1{ - ErrorPriceMismatch: &errorPriceMismatch, + ErrorPriceMismatch: &priceMismatch, Type: typ, } } -func CreateErrorUnion1ErrorUnexpectedError(errorUnexpectedError ErrorUnexpectedError) ErrorUnion1 { - typ := ErrorUnion1TypeErrorUnexpectedError +func CreateErrorUnion1UnexpectedError(unexpectedError ErrorUnexpectedError) ErrorUnion1 { + typ := ErrorUnion1TypeUnexpectedError + + typStr := CodeUnexpectedError(typ) + unexpectedError.Code = typStr return ErrorUnion1{ - ErrorUnexpectedError: &errorUnexpectedError, + ErrorUnexpectedError: &unexpectedError, Type: typ, } } func (u *ErrorUnion1) UnmarshalJSON(data []byte) error { - var errorTldOutage ErrorTldOutage = ErrorTldOutage{} - if err := utils.UnmarshalJSON(data, &errorTldOutage, "", true, nil); err == nil { - u.ErrorTldOutage = &errorTldOutage - u.Type = ErrorUnion1TypeErrorTldOutage - return nil + type discriminator struct { + Code string `json:"code"` } - var errorPriceMismatch ErrorPriceMismatch = ErrorPriceMismatch{} - if err := utils.UnmarshalJSON(data, &errorPriceMismatch, "", true, nil); err == nil { - u.ErrorPriceMismatch = &errorPriceMismatch - u.Type = ErrorUnion1TypeErrorPriceMismatch - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var errorPaymentFailed ErrorPaymentFailed = ErrorPaymentFailed{} - if err := utils.UnmarshalJSON(data, &errorPaymentFailed, "", true, nil); err == nil { - u.ErrorPaymentFailed = &errorPaymentFailed - u.Type = ErrorUnion1TypeErrorPaymentFailed + switch dis.Code { + case "payment-failed": + errorPaymentFailed := new(ErrorPaymentFailed) + if err := utils.UnmarshalJSON(data, &errorPaymentFailed, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == payment-failed) type ErrorPaymentFailed within ErrorUnion1: %w", string(data), err) + } + + u.ErrorPaymentFailed = errorPaymentFailed + u.Type = ErrorUnion1TypePaymentFailed return nil - } + case "tld-outage": + errorTldOutage := new(ErrorTldOutage) + if err := utils.UnmarshalJSON(data, &errorTldOutage, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == tld-outage) type ErrorTldOutage within ErrorUnion1: %w", string(data), err) + } + + u.ErrorTldOutage = errorTldOutage + u.Type = ErrorUnion1TypeTldOutage + return nil + case "price-mismatch": + errorPriceMismatch := new(ErrorPriceMismatch) + if err := utils.UnmarshalJSON(data, &errorPriceMismatch, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == price-mismatch) type ErrorPriceMismatch within ErrorUnion1: %w", string(data), err) + } + + u.ErrorPriceMismatch = errorPriceMismatch + u.Type = ErrorUnion1TypePriceMismatch + return nil + case "unexpected-error": + errorUnexpectedError := new(ErrorUnexpectedError) + if err := utils.UnmarshalJSON(data, &errorUnexpectedError, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == unexpected-error) type ErrorUnexpectedError within ErrorUnion1: %w", string(data), err) + } - var errorUnexpectedError ErrorUnexpectedError = ErrorUnexpectedError{} - if err := utils.UnmarshalJSON(data, &errorUnexpectedError, "", true, nil); err == nil { - u.ErrorUnexpectedError = &errorUnexpectedError - u.Type = ErrorUnion1TypeErrorUnexpectedError + u.ErrorUnexpectedError = errorUnexpectedError + u.Type = ErrorUnion1TypeUnexpectedError return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getprojectenv.go b/src/__tests__/mockserver/internal/sdk/models/operations/getprojectenv.go index 888dcfc6..4e485596 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getprojectenv.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getprojectenv.go @@ -998,21 +998,21 @@ func (o *GetProjectEnvContentHintRedisURL3) GetStoreID() string { type GetProjectEnvContentHintUnion3Type string const ( - GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintRedisURL3 GetProjectEnvContentHintUnion3Type = "getProjectEnv_contentHint_RedisURL_3" - GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintRedisRestAPIURL3 GetProjectEnvContentHintUnion3Type = "getProjectEnv_contentHint_RedisRestAPIURL_3" - GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintRedisRestAPIToken3 GetProjectEnvContentHintUnion3Type = "getProjectEnv_contentHint_RedisRestAPIToken_3" - GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintRedisRestAPIReadOnlyToken3 GetProjectEnvContentHintUnion3Type = "getProjectEnv_contentHint_RedisRestAPIReadOnlyToken_3" - GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintBlobReadWriteToken3 GetProjectEnvContentHintUnion3Type = "getProjectEnv_contentHint_BlobReadWriteToken_3" - GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresURL3 GetProjectEnvContentHintUnion3Type = "getProjectEnv_contentHint_PostgresURL_3" - GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresURLNonPooling3 GetProjectEnvContentHintUnion3Type = "getProjectEnv_contentHint_PostgresURLNonPooling_3" - GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresPrismaURL3 GetProjectEnvContentHintUnion3Type = "getProjectEnv_contentHint_PostgresPrismaURL_3" - GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresUser3 GetProjectEnvContentHintUnion3Type = "getProjectEnv_contentHint_PostgresUser_3" - GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresHost3 GetProjectEnvContentHintUnion3Type = "getProjectEnv_contentHint_PostgresHost_3" - GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresPassword3 GetProjectEnvContentHintUnion3Type = "getProjectEnv_contentHint_PostgresPassword_3" - GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresDatabase3 GetProjectEnvContentHintUnion3Type = "getProjectEnv_contentHint_PostgresDatabase_3" - GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresURLNoSsl3 GetProjectEnvContentHintUnion3Type = "getProjectEnv_contentHint_PostgresURLNoSsl_3" - GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintIntegrationStoreSecret3 GetProjectEnvContentHintUnion3Type = "getProjectEnv_contentHint_IntegrationStoreSecret_3" - GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintFlagsConnectionString3 GetProjectEnvContentHintUnion3Type = "getProjectEnv_contentHint_FlagsConnectionString_3" + GetProjectEnvContentHintUnion3TypeRedisURL GetProjectEnvContentHintUnion3Type = "redis-url" + GetProjectEnvContentHintUnion3TypeRedisRestAPIURL GetProjectEnvContentHintUnion3Type = "redis-rest-api-url" + GetProjectEnvContentHintUnion3TypeRedisRestAPIToken GetProjectEnvContentHintUnion3Type = "redis-rest-api-token" + GetProjectEnvContentHintUnion3TypeRedisRestAPIReadOnlyToken GetProjectEnvContentHintUnion3Type = "redis-rest-api-read-only-token" + GetProjectEnvContentHintUnion3TypeBlobReadWriteToken GetProjectEnvContentHintUnion3Type = "blob-read-write-token" + GetProjectEnvContentHintUnion3TypePostgresURL GetProjectEnvContentHintUnion3Type = "postgres-url" + GetProjectEnvContentHintUnion3TypePostgresURLNonPooling GetProjectEnvContentHintUnion3Type = "postgres-url-non-pooling" + GetProjectEnvContentHintUnion3TypePostgresPrismaURL GetProjectEnvContentHintUnion3Type = "postgres-prisma-url" + GetProjectEnvContentHintUnion3TypePostgresUser GetProjectEnvContentHintUnion3Type = "postgres-user" + GetProjectEnvContentHintUnion3TypePostgresHost GetProjectEnvContentHintUnion3Type = "postgres-host" + GetProjectEnvContentHintUnion3TypePostgresPassword GetProjectEnvContentHintUnion3Type = "postgres-password" + GetProjectEnvContentHintUnion3TypePostgresDatabase GetProjectEnvContentHintUnion3Type = "postgres-database" + GetProjectEnvContentHintUnion3TypePostgresURLNoSsl GetProjectEnvContentHintUnion3Type = "postgres-url-no-ssl" + GetProjectEnvContentHintUnion3TypeIntegrationStoreSecret GetProjectEnvContentHintUnion3Type = "integration-store-secret" + GetProjectEnvContentHintUnion3TypeFlagsConnectionString GetProjectEnvContentHintUnion3Type = "flags-connection-string" ) type GetProjectEnvContentHintUnion3 struct { @@ -1035,245 +1035,332 @@ type GetProjectEnvContentHintUnion3 struct { Type GetProjectEnvContentHintUnion3Type } -func CreateGetProjectEnvContentHintUnion3GetProjectEnvContentHintRedisURL3(getProjectEnvContentHintRedisURL3 GetProjectEnvContentHintRedisURL3) GetProjectEnvContentHintUnion3 { - typ := GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintRedisURL3 +func CreateGetProjectEnvContentHintUnion3RedisURL(redisURL GetProjectEnvContentHintRedisURL3) GetProjectEnvContentHintUnion3 { + typ := GetProjectEnvContentHintUnion3TypeRedisURL + + typStr := GetProjectEnvTypeRedisURL3(typ) + redisURL.Type = typStr return GetProjectEnvContentHintUnion3{ - GetProjectEnvContentHintRedisURL3: &getProjectEnvContentHintRedisURL3, + GetProjectEnvContentHintRedisURL3: &redisURL, Type: typ, } } -func CreateGetProjectEnvContentHintUnion3GetProjectEnvContentHintRedisRestAPIURL3(getProjectEnvContentHintRedisRestAPIURL3 GetProjectEnvContentHintRedisRestAPIURL3) GetProjectEnvContentHintUnion3 { - typ := GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintRedisRestAPIURL3 +func CreateGetProjectEnvContentHintUnion3RedisRestAPIURL(redisRestAPIURL GetProjectEnvContentHintRedisRestAPIURL3) GetProjectEnvContentHintUnion3 { + typ := GetProjectEnvContentHintUnion3TypeRedisRestAPIURL + + typStr := GetProjectEnvTypeRedisRestAPIURL3(typ) + redisRestAPIURL.Type = typStr return GetProjectEnvContentHintUnion3{ - GetProjectEnvContentHintRedisRestAPIURL3: &getProjectEnvContentHintRedisRestAPIURL3, + GetProjectEnvContentHintRedisRestAPIURL3: &redisRestAPIURL, Type: typ, } } -func CreateGetProjectEnvContentHintUnion3GetProjectEnvContentHintRedisRestAPIToken3(getProjectEnvContentHintRedisRestAPIToken3 GetProjectEnvContentHintRedisRestAPIToken3) GetProjectEnvContentHintUnion3 { - typ := GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintRedisRestAPIToken3 +func CreateGetProjectEnvContentHintUnion3RedisRestAPIToken(redisRestAPIToken GetProjectEnvContentHintRedisRestAPIToken3) GetProjectEnvContentHintUnion3 { + typ := GetProjectEnvContentHintUnion3TypeRedisRestAPIToken + + typStr := GetProjectEnvTypeRedisRestAPIToken3(typ) + redisRestAPIToken.Type = typStr return GetProjectEnvContentHintUnion3{ - GetProjectEnvContentHintRedisRestAPIToken3: &getProjectEnvContentHintRedisRestAPIToken3, + GetProjectEnvContentHintRedisRestAPIToken3: &redisRestAPIToken, Type: typ, } } -func CreateGetProjectEnvContentHintUnion3GetProjectEnvContentHintRedisRestAPIReadOnlyToken3(getProjectEnvContentHintRedisRestAPIReadOnlyToken3 GetProjectEnvContentHintRedisRestAPIReadOnlyToken3) GetProjectEnvContentHintUnion3 { - typ := GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintRedisRestAPIReadOnlyToken3 +func CreateGetProjectEnvContentHintUnion3RedisRestAPIReadOnlyToken(redisRestAPIReadOnlyToken GetProjectEnvContentHintRedisRestAPIReadOnlyToken3) GetProjectEnvContentHintUnion3 { + typ := GetProjectEnvContentHintUnion3TypeRedisRestAPIReadOnlyToken + + typStr := GetProjectEnvTypeRedisRestAPIReadOnlyToken3(typ) + redisRestAPIReadOnlyToken.Type = typStr return GetProjectEnvContentHintUnion3{ - GetProjectEnvContentHintRedisRestAPIReadOnlyToken3: &getProjectEnvContentHintRedisRestAPIReadOnlyToken3, + GetProjectEnvContentHintRedisRestAPIReadOnlyToken3: &redisRestAPIReadOnlyToken, Type: typ, } } -func CreateGetProjectEnvContentHintUnion3GetProjectEnvContentHintBlobReadWriteToken3(getProjectEnvContentHintBlobReadWriteToken3 GetProjectEnvContentHintBlobReadWriteToken3) GetProjectEnvContentHintUnion3 { - typ := GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintBlobReadWriteToken3 +func CreateGetProjectEnvContentHintUnion3BlobReadWriteToken(blobReadWriteToken GetProjectEnvContentHintBlobReadWriteToken3) GetProjectEnvContentHintUnion3 { + typ := GetProjectEnvContentHintUnion3TypeBlobReadWriteToken + + typStr := GetProjectEnvTypeBlobReadWriteToken3(typ) + blobReadWriteToken.Type = typStr return GetProjectEnvContentHintUnion3{ - GetProjectEnvContentHintBlobReadWriteToken3: &getProjectEnvContentHintBlobReadWriteToken3, + GetProjectEnvContentHintBlobReadWriteToken3: &blobReadWriteToken, Type: typ, } } -func CreateGetProjectEnvContentHintUnion3GetProjectEnvContentHintPostgresURL3(getProjectEnvContentHintPostgresURL3 GetProjectEnvContentHintPostgresURL3) GetProjectEnvContentHintUnion3 { - typ := GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresURL3 +func CreateGetProjectEnvContentHintUnion3PostgresURL(postgresURL GetProjectEnvContentHintPostgresURL3) GetProjectEnvContentHintUnion3 { + typ := GetProjectEnvContentHintUnion3TypePostgresURL + + typStr := GetProjectEnvTypePostgresURL3(typ) + postgresURL.Type = typStr return GetProjectEnvContentHintUnion3{ - GetProjectEnvContentHintPostgresURL3: &getProjectEnvContentHintPostgresURL3, + GetProjectEnvContentHintPostgresURL3: &postgresURL, Type: typ, } } -func CreateGetProjectEnvContentHintUnion3GetProjectEnvContentHintPostgresURLNonPooling3(getProjectEnvContentHintPostgresURLNonPooling3 GetProjectEnvContentHintPostgresURLNonPooling3) GetProjectEnvContentHintUnion3 { - typ := GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresURLNonPooling3 +func CreateGetProjectEnvContentHintUnion3PostgresURLNonPooling(postgresURLNonPooling GetProjectEnvContentHintPostgresURLNonPooling3) GetProjectEnvContentHintUnion3 { + typ := GetProjectEnvContentHintUnion3TypePostgresURLNonPooling + + typStr := GetProjectEnvTypePostgresURLNonPooling3(typ) + postgresURLNonPooling.Type = typStr return GetProjectEnvContentHintUnion3{ - GetProjectEnvContentHintPostgresURLNonPooling3: &getProjectEnvContentHintPostgresURLNonPooling3, + GetProjectEnvContentHintPostgresURLNonPooling3: &postgresURLNonPooling, Type: typ, } } -func CreateGetProjectEnvContentHintUnion3GetProjectEnvContentHintPostgresPrismaURL3(getProjectEnvContentHintPostgresPrismaURL3 GetProjectEnvContentHintPostgresPrismaURL3) GetProjectEnvContentHintUnion3 { - typ := GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresPrismaURL3 +func CreateGetProjectEnvContentHintUnion3PostgresPrismaURL(postgresPrismaURL GetProjectEnvContentHintPostgresPrismaURL3) GetProjectEnvContentHintUnion3 { + typ := GetProjectEnvContentHintUnion3TypePostgresPrismaURL + + typStr := GetProjectEnvTypePostgresPrismaURL3(typ) + postgresPrismaURL.Type = typStr return GetProjectEnvContentHintUnion3{ - GetProjectEnvContentHintPostgresPrismaURL3: &getProjectEnvContentHintPostgresPrismaURL3, + GetProjectEnvContentHintPostgresPrismaURL3: &postgresPrismaURL, Type: typ, } } -func CreateGetProjectEnvContentHintUnion3GetProjectEnvContentHintPostgresUser3(getProjectEnvContentHintPostgresUser3 GetProjectEnvContentHintPostgresUser3) GetProjectEnvContentHintUnion3 { - typ := GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresUser3 +func CreateGetProjectEnvContentHintUnion3PostgresUser(postgresUser GetProjectEnvContentHintPostgresUser3) GetProjectEnvContentHintUnion3 { + typ := GetProjectEnvContentHintUnion3TypePostgresUser + + typStr := GetProjectEnvTypePostgresUser3(typ) + postgresUser.Type = typStr return GetProjectEnvContentHintUnion3{ - GetProjectEnvContentHintPostgresUser3: &getProjectEnvContentHintPostgresUser3, + GetProjectEnvContentHintPostgresUser3: &postgresUser, Type: typ, } } -func CreateGetProjectEnvContentHintUnion3GetProjectEnvContentHintPostgresHost3(getProjectEnvContentHintPostgresHost3 GetProjectEnvContentHintPostgresHost3) GetProjectEnvContentHintUnion3 { - typ := GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresHost3 +func CreateGetProjectEnvContentHintUnion3PostgresHost(postgresHost GetProjectEnvContentHintPostgresHost3) GetProjectEnvContentHintUnion3 { + typ := GetProjectEnvContentHintUnion3TypePostgresHost + + typStr := GetProjectEnvTypePostgresHost3(typ) + postgresHost.Type = typStr return GetProjectEnvContentHintUnion3{ - GetProjectEnvContentHintPostgresHost3: &getProjectEnvContentHintPostgresHost3, + GetProjectEnvContentHintPostgresHost3: &postgresHost, Type: typ, } } -func CreateGetProjectEnvContentHintUnion3GetProjectEnvContentHintPostgresPassword3(getProjectEnvContentHintPostgresPassword3 GetProjectEnvContentHintPostgresPassword3) GetProjectEnvContentHintUnion3 { - typ := GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresPassword3 +func CreateGetProjectEnvContentHintUnion3PostgresPassword(postgresPassword GetProjectEnvContentHintPostgresPassword3) GetProjectEnvContentHintUnion3 { + typ := GetProjectEnvContentHintUnion3TypePostgresPassword + + typStr := GetProjectEnvTypePostgresPassword3(typ) + postgresPassword.Type = typStr return GetProjectEnvContentHintUnion3{ - GetProjectEnvContentHintPostgresPassword3: &getProjectEnvContentHintPostgresPassword3, + GetProjectEnvContentHintPostgresPassword3: &postgresPassword, Type: typ, } } -func CreateGetProjectEnvContentHintUnion3GetProjectEnvContentHintPostgresDatabase3(getProjectEnvContentHintPostgresDatabase3 GetProjectEnvContentHintPostgresDatabase3) GetProjectEnvContentHintUnion3 { - typ := GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresDatabase3 +func CreateGetProjectEnvContentHintUnion3PostgresDatabase(postgresDatabase GetProjectEnvContentHintPostgresDatabase3) GetProjectEnvContentHintUnion3 { + typ := GetProjectEnvContentHintUnion3TypePostgresDatabase + + typStr := GetProjectEnvTypePostgresDatabase3(typ) + postgresDatabase.Type = typStr return GetProjectEnvContentHintUnion3{ - GetProjectEnvContentHintPostgresDatabase3: &getProjectEnvContentHintPostgresDatabase3, + GetProjectEnvContentHintPostgresDatabase3: &postgresDatabase, Type: typ, } } -func CreateGetProjectEnvContentHintUnion3GetProjectEnvContentHintPostgresURLNoSsl3(getProjectEnvContentHintPostgresURLNoSsl3 GetProjectEnvContentHintPostgresURLNoSsl3) GetProjectEnvContentHintUnion3 { - typ := GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresURLNoSsl3 +func CreateGetProjectEnvContentHintUnion3PostgresURLNoSsl(postgresURLNoSsl GetProjectEnvContentHintPostgresURLNoSsl3) GetProjectEnvContentHintUnion3 { + typ := GetProjectEnvContentHintUnion3TypePostgresURLNoSsl + + typStr := GetProjectEnvTypePostgresURLNoSsl3(typ) + postgresURLNoSsl.Type = typStr return GetProjectEnvContentHintUnion3{ - GetProjectEnvContentHintPostgresURLNoSsl3: &getProjectEnvContentHintPostgresURLNoSsl3, + GetProjectEnvContentHintPostgresURLNoSsl3: &postgresURLNoSsl, Type: typ, } } -func CreateGetProjectEnvContentHintUnion3GetProjectEnvContentHintIntegrationStoreSecret3(getProjectEnvContentHintIntegrationStoreSecret3 GetProjectEnvContentHintIntegrationStoreSecret3) GetProjectEnvContentHintUnion3 { - typ := GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintIntegrationStoreSecret3 +func CreateGetProjectEnvContentHintUnion3IntegrationStoreSecret(integrationStoreSecret GetProjectEnvContentHintIntegrationStoreSecret3) GetProjectEnvContentHintUnion3 { + typ := GetProjectEnvContentHintUnion3TypeIntegrationStoreSecret + + typStr := GetProjectEnvTypeIntegrationStoreSecret3(typ) + integrationStoreSecret.Type = typStr return GetProjectEnvContentHintUnion3{ - GetProjectEnvContentHintIntegrationStoreSecret3: &getProjectEnvContentHintIntegrationStoreSecret3, + GetProjectEnvContentHintIntegrationStoreSecret3: &integrationStoreSecret, Type: typ, } } -func CreateGetProjectEnvContentHintUnion3GetProjectEnvContentHintFlagsConnectionString3(getProjectEnvContentHintFlagsConnectionString3 GetProjectEnvContentHintFlagsConnectionString3) GetProjectEnvContentHintUnion3 { - typ := GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintFlagsConnectionString3 +func CreateGetProjectEnvContentHintUnion3FlagsConnectionString(flagsConnectionString GetProjectEnvContentHintFlagsConnectionString3) GetProjectEnvContentHintUnion3 { + typ := GetProjectEnvContentHintUnion3TypeFlagsConnectionString + + typStr := GetProjectEnvTypeFlagsConnectionString3(typ) + flagsConnectionString.Type = typStr return GetProjectEnvContentHintUnion3{ - GetProjectEnvContentHintFlagsConnectionString3: &getProjectEnvContentHintFlagsConnectionString3, + GetProjectEnvContentHintFlagsConnectionString3: &flagsConnectionString, Type: typ, } } func (u *GetProjectEnvContentHintUnion3) UnmarshalJSON(data []byte) error { - var getProjectEnvContentHintIntegrationStoreSecret3 GetProjectEnvContentHintIntegrationStoreSecret3 = GetProjectEnvContentHintIntegrationStoreSecret3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintIntegrationStoreSecret3, "", true, nil); err == nil { - u.GetProjectEnvContentHintIntegrationStoreSecret3 = &getProjectEnvContentHintIntegrationStoreSecret3 - u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintIntegrationStoreSecret3 - return nil + type discriminator struct { + Type string `json:"type"` } - var getProjectEnvContentHintRedisURL3 GetProjectEnvContentHintRedisURL3 = GetProjectEnvContentHintRedisURL3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisURL3, "", true, nil); err == nil { - u.GetProjectEnvContentHintRedisURL3 = &getProjectEnvContentHintRedisURL3 - u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintRedisURL3 - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getProjectEnvContentHintRedisRestAPIURL3 GetProjectEnvContentHintRedisRestAPIURL3 = GetProjectEnvContentHintRedisRestAPIURL3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIURL3, "", true, nil); err == nil { - u.GetProjectEnvContentHintRedisRestAPIURL3 = &getProjectEnvContentHintRedisRestAPIURL3 - u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintRedisRestAPIURL3 + switch dis.Type { + case "redis-url": + getProjectEnvContentHintRedisURL3 := new(GetProjectEnvContentHintRedisURL3) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisURL3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-url) type GetProjectEnvContentHintRedisURL3 within GetProjectEnvContentHintUnion3: %w", string(data), err) + } + + u.GetProjectEnvContentHintRedisURL3 = getProjectEnvContentHintRedisURL3 + u.Type = GetProjectEnvContentHintUnion3TypeRedisURL return nil - } + case "redis-rest-api-url": + getProjectEnvContentHintRedisRestAPIURL3 := new(GetProjectEnvContentHintRedisRestAPIURL3) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIURL3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-url) type GetProjectEnvContentHintRedisRestAPIURL3 within GetProjectEnvContentHintUnion3: %w", string(data), err) + } - var getProjectEnvContentHintRedisRestAPIToken3 GetProjectEnvContentHintRedisRestAPIToken3 = GetProjectEnvContentHintRedisRestAPIToken3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIToken3, "", true, nil); err == nil { - u.GetProjectEnvContentHintRedisRestAPIToken3 = &getProjectEnvContentHintRedisRestAPIToken3 - u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintRedisRestAPIToken3 + u.GetProjectEnvContentHintRedisRestAPIURL3 = getProjectEnvContentHintRedisRestAPIURL3 + u.Type = GetProjectEnvContentHintUnion3TypeRedisRestAPIURL return nil - } + case "redis-rest-api-token": + getProjectEnvContentHintRedisRestAPIToken3 := new(GetProjectEnvContentHintRedisRestAPIToken3) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIToken3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-token) type GetProjectEnvContentHintRedisRestAPIToken3 within GetProjectEnvContentHintUnion3: %w", string(data), err) + } - var getProjectEnvContentHintRedisRestAPIReadOnlyToken3 GetProjectEnvContentHintRedisRestAPIReadOnlyToken3 = GetProjectEnvContentHintRedisRestAPIReadOnlyToken3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIReadOnlyToken3, "", true, nil); err == nil { - u.GetProjectEnvContentHintRedisRestAPIReadOnlyToken3 = &getProjectEnvContentHintRedisRestAPIReadOnlyToken3 - u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintRedisRestAPIReadOnlyToken3 + u.GetProjectEnvContentHintRedisRestAPIToken3 = getProjectEnvContentHintRedisRestAPIToken3 + u.Type = GetProjectEnvContentHintUnion3TypeRedisRestAPIToken return nil - } + case "redis-rest-api-read-only-token": + getProjectEnvContentHintRedisRestAPIReadOnlyToken3 := new(GetProjectEnvContentHintRedisRestAPIReadOnlyToken3) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIReadOnlyToken3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-read-only-token) type GetProjectEnvContentHintRedisRestAPIReadOnlyToken3 within GetProjectEnvContentHintUnion3: %w", string(data), err) + } - var getProjectEnvContentHintBlobReadWriteToken3 GetProjectEnvContentHintBlobReadWriteToken3 = GetProjectEnvContentHintBlobReadWriteToken3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintBlobReadWriteToken3, "", true, nil); err == nil { - u.GetProjectEnvContentHintBlobReadWriteToken3 = &getProjectEnvContentHintBlobReadWriteToken3 - u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintBlobReadWriteToken3 + u.GetProjectEnvContentHintRedisRestAPIReadOnlyToken3 = getProjectEnvContentHintRedisRestAPIReadOnlyToken3 + u.Type = GetProjectEnvContentHintUnion3TypeRedisRestAPIReadOnlyToken return nil - } + case "blob-read-write-token": + getProjectEnvContentHintBlobReadWriteToken3 := new(GetProjectEnvContentHintBlobReadWriteToken3) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintBlobReadWriteToken3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == blob-read-write-token) type GetProjectEnvContentHintBlobReadWriteToken3 within GetProjectEnvContentHintUnion3: %w", string(data), err) + } - var getProjectEnvContentHintPostgresURL3 GetProjectEnvContentHintPostgresURL3 = GetProjectEnvContentHintPostgresURL3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURL3, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresURL3 = &getProjectEnvContentHintPostgresURL3 - u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresURL3 + u.GetProjectEnvContentHintBlobReadWriteToken3 = getProjectEnvContentHintBlobReadWriteToken3 + u.Type = GetProjectEnvContentHintUnion3TypeBlobReadWriteToken return nil - } + case "postgres-url": + getProjectEnvContentHintPostgresURL3 := new(GetProjectEnvContentHintPostgresURL3) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURL3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url) type GetProjectEnvContentHintPostgresURL3 within GetProjectEnvContentHintUnion3: %w", string(data), err) + } - var getProjectEnvContentHintPostgresURLNonPooling3 GetProjectEnvContentHintPostgresURLNonPooling3 = GetProjectEnvContentHintPostgresURLNonPooling3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNonPooling3, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresURLNonPooling3 = &getProjectEnvContentHintPostgresURLNonPooling3 - u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresURLNonPooling3 + u.GetProjectEnvContentHintPostgresURL3 = getProjectEnvContentHintPostgresURL3 + u.Type = GetProjectEnvContentHintUnion3TypePostgresURL return nil - } + case "postgres-url-non-pooling": + getProjectEnvContentHintPostgresURLNonPooling3 := new(GetProjectEnvContentHintPostgresURLNonPooling3) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNonPooling3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-non-pooling) type GetProjectEnvContentHintPostgresURLNonPooling3 within GetProjectEnvContentHintUnion3: %w", string(data), err) + } - var getProjectEnvContentHintPostgresPrismaURL3 GetProjectEnvContentHintPostgresPrismaURL3 = GetProjectEnvContentHintPostgresPrismaURL3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPrismaURL3, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresPrismaURL3 = &getProjectEnvContentHintPostgresPrismaURL3 - u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresPrismaURL3 + u.GetProjectEnvContentHintPostgresURLNonPooling3 = getProjectEnvContentHintPostgresURLNonPooling3 + u.Type = GetProjectEnvContentHintUnion3TypePostgresURLNonPooling return nil - } + case "postgres-prisma-url": + getProjectEnvContentHintPostgresPrismaURL3 := new(GetProjectEnvContentHintPostgresPrismaURL3) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPrismaURL3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-prisma-url) type GetProjectEnvContentHintPostgresPrismaURL3 within GetProjectEnvContentHintUnion3: %w", string(data), err) + } - var getProjectEnvContentHintPostgresUser3 GetProjectEnvContentHintPostgresUser3 = GetProjectEnvContentHintPostgresUser3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresUser3, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresUser3 = &getProjectEnvContentHintPostgresUser3 - u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresUser3 + u.GetProjectEnvContentHintPostgresPrismaURL3 = getProjectEnvContentHintPostgresPrismaURL3 + u.Type = GetProjectEnvContentHintUnion3TypePostgresPrismaURL return nil - } + case "postgres-user": + getProjectEnvContentHintPostgresUser3 := new(GetProjectEnvContentHintPostgresUser3) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresUser3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-user) type GetProjectEnvContentHintPostgresUser3 within GetProjectEnvContentHintUnion3: %w", string(data), err) + } - var getProjectEnvContentHintPostgresHost3 GetProjectEnvContentHintPostgresHost3 = GetProjectEnvContentHintPostgresHost3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresHost3, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresHost3 = &getProjectEnvContentHintPostgresHost3 - u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresHost3 + u.GetProjectEnvContentHintPostgresUser3 = getProjectEnvContentHintPostgresUser3 + u.Type = GetProjectEnvContentHintUnion3TypePostgresUser return nil - } + case "postgres-host": + getProjectEnvContentHintPostgresHost3 := new(GetProjectEnvContentHintPostgresHost3) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresHost3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-host) type GetProjectEnvContentHintPostgresHost3 within GetProjectEnvContentHintUnion3: %w", string(data), err) + } - var getProjectEnvContentHintPostgresPassword3 GetProjectEnvContentHintPostgresPassword3 = GetProjectEnvContentHintPostgresPassword3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPassword3, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresPassword3 = &getProjectEnvContentHintPostgresPassword3 - u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresPassword3 + u.GetProjectEnvContentHintPostgresHost3 = getProjectEnvContentHintPostgresHost3 + u.Type = GetProjectEnvContentHintUnion3TypePostgresHost return nil - } + case "postgres-password": + getProjectEnvContentHintPostgresPassword3 := new(GetProjectEnvContentHintPostgresPassword3) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPassword3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-password) type GetProjectEnvContentHintPostgresPassword3 within GetProjectEnvContentHintUnion3: %w", string(data), err) + } - var getProjectEnvContentHintPostgresDatabase3 GetProjectEnvContentHintPostgresDatabase3 = GetProjectEnvContentHintPostgresDatabase3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresDatabase3, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresDatabase3 = &getProjectEnvContentHintPostgresDatabase3 - u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresDatabase3 + u.GetProjectEnvContentHintPostgresPassword3 = getProjectEnvContentHintPostgresPassword3 + u.Type = GetProjectEnvContentHintUnion3TypePostgresPassword return nil - } + case "postgres-database": + getProjectEnvContentHintPostgresDatabase3 := new(GetProjectEnvContentHintPostgresDatabase3) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresDatabase3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-database) type GetProjectEnvContentHintPostgresDatabase3 within GetProjectEnvContentHintUnion3: %w", string(data), err) + } - var getProjectEnvContentHintPostgresURLNoSsl3 GetProjectEnvContentHintPostgresURLNoSsl3 = GetProjectEnvContentHintPostgresURLNoSsl3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNoSsl3, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresURLNoSsl3 = &getProjectEnvContentHintPostgresURLNoSsl3 - u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresURLNoSsl3 + u.GetProjectEnvContentHintPostgresDatabase3 = getProjectEnvContentHintPostgresDatabase3 + u.Type = GetProjectEnvContentHintUnion3TypePostgresDatabase return nil - } + case "postgres-url-no-ssl": + getProjectEnvContentHintPostgresURLNoSsl3 := new(GetProjectEnvContentHintPostgresURLNoSsl3) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNoSsl3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-no-ssl) type GetProjectEnvContentHintPostgresURLNoSsl3 within GetProjectEnvContentHintUnion3: %w", string(data), err) + } + + u.GetProjectEnvContentHintPostgresURLNoSsl3 = getProjectEnvContentHintPostgresURLNoSsl3 + u.Type = GetProjectEnvContentHintUnion3TypePostgresURLNoSsl + return nil + case "integration-store-secret": + getProjectEnvContentHintIntegrationStoreSecret3 := new(GetProjectEnvContentHintIntegrationStoreSecret3) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintIntegrationStoreSecret3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == integration-store-secret) type GetProjectEnvContentHintIntegrationStoreSecret3 within GetProjectEnvContentHintUnion3: %w", string(data), err) + } - var getProjectEnvContentHintFlagsConnectionString3 GetProjectEnvContentHintFlagsConnectionString3 = GetProjectEnvContentHintFlagsConnectionString3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintFlagsConnectionString3, "", true, nil); err == nil { - u.GetProjectEnvContentHintFlagsConnectionString3 = &getProjectEnvContentHintFlagsConnectionString3 - u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintFlagsConnectionString3 + u.GetProjectEnvContentHintIntegrationStoreSecret3 = getProjectEnvContentHintIntegrationStoreSecret3 + u.Type = GetProjectEnvContentHintUnion3TypeIntegrationStoreSecret + return nil + case "flags-connection-string": + getProjectEnvContentHintFlagsConnectionString3 := new(GetProjectEnvContentHintFlagsConnectionString3) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintFlagsConnectionString3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == flags-connection-string) type GetProjectEnvContentHintFlagsConnectionString3 within GetProjectEnvContentHintUnion3: %w", string(data), err) + } + + u.GetProjectEnvContentHintFlagsConnectionString3 = getProjectEnvContentHintFlagsConnectionString3 + u.Type = GetProjectEnvContentHintUnion3TypeFlagsConnectionString return nil } @@ -1546,6 +1633,111 @@ func (o *GetProjectEnvResponseBody3) GetContentHint() *GetProjectEnvContentHintU return o.ContentHint } +func (o *GetProjectEnvResponseBody3) GetContentHintRedisURL() *GetProjectEnvContentHintRedisURL3 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintRedisURL3 + } + return nil +} + +func (o *GetProjectEnvResponseBody3) GetContentHintRedisRestAPIURL() *GetProjectEnvContentHintRedisRestAPIURL3 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintRedisRestAPIURL3 + } + return nil +} + +func (o *GetProjectEnvResponseBody3) GetContentHintRedisRestAPIToken() *GetProjectEnvContentHintRedisRestAPIToken3 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintRedisRestAPIToken3 + } + return nil +} + +func (o *GetProjectEnvResponseBody3) GetContentHintRedisRestAPIReadOnlyToken() *GetProjectEnvContentHintRedisRestAPIReadOnlyToken3 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintRedisRestAPIReadOnlyToken3 + } + return nil +} + +func (o *GetProjectEnvResponseBody3) GetContentHintBlobReadWriteToken() *GetProjectEnvContentHintBlobReadWriteToken3 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintBlobReadWriteToken3 + } + return nil +} + +func (o *GetProjectEnvResponseBody3) GetContentHintPostgresURL() *GetProjectEnvContentHintPostgresURL3 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresURL3 + } + return nil +} + +func (o *GetProjectEnvResponseBody3) GetContentHintPostgresURLNonPooling() *GetProjectEnvContentHintPostgresURLNonPooling3 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresURLNonPooling3 + } + return nil +} + +func (o *GetProjectEnvResponseBody3) GetContentHintPostgresPrismaURL() *GetProjectEnvContentHintPostgresPrismaURL3 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresPrismaURL3 + } + return nil +} + +func (o *GetProjectEnvResponseBody3) GetContentHintPostgresUser() *GetProjectEnvContentHintPostgresUser3 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresUser3 + } + return nil +} + +func (o *GetProjectEnvResponseBody3) GetContentHintPostgresHost() *GetProjectEnvContentHintPostgresHost3 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresHost3 + } + return nil +} + +func (o *GetProjectEnvResponseBody3) GetContentHintPostgresPassword() *GetProjectEnvContentHintPostgresPassword3 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresPassword3 + } + return nil +} + +func (o *GetProjectEnvResponseBody3) GetContentHintPostgresDatabase() *GetProjectEnvContentHintPostgresDatabase3 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresDatabase3 + } + return nil +} + +func (o *GetProjectEnvResponseBody3) GetContentHintPostgresURLNoSsl() *GetProjectEnvContentHintPostgresURLNoSsl3 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresURLNoSsl3 + } + return nil +} + +func (o *GetProjectEnvResponseBody3) GetContentHintIntegrationStoreSecret() *GetProjectEnvContentHintIntegrationStoreSecret3 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintIntegrationStoreSecret3 + } + return nil +} + +func (o *GetProjectEnvResponseBody3) GetContentHintFlagsConnectionString() *GetProjectEnvContentHintFlagsConnectionString3 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintFlagsConnectionString3 + } + return nil +} + func (o *GetProjectEnvResponseBody3) GetInternalContentHint() *GetProjectEnvInternalContentHint3 { if o == nil { return nil @@ -2545,21 +2737,21 @@ func (o *GetProjectEnvContentHintRedisURL2) GetStoreID() string { type GetProjectEnvContentHintUnion2Type string const ( - GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintRedisURL2 GetProjectEnvContentHintUnion2Type = "getProjectEnv_contentHint_RedisURL_2" - GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintRedisRestAPIURL2 GetProjectEnvContentHintUnion2Type = "getProjectEnv_contentHint_RedisRestAPIURL_2" - GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintRedisRestAPIToken2 GetProjectEnvContentHintUnion2Type = "getProjectEnv_contentHint_RedisRestAPIToken_2" - GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintRedisRestAPIReadOnlyToken2 GetProjectEnvContentHintUnion2Type = "getProjectEnv_contentHint_RedisRestAPIReadOnlyToken_2" - GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintBlobReadWriteToken2 GetProjectEnvContentHintUnion2Type = "getProjectEnv_contentHint_BlobReadWriteToken_2" - GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresURL2 GetProjectEnvContentHintUnion2Type = "getProjectEnv_contentHint_PostgresURL_2" - GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresURLNonPooling2 GetProjectEnvContentHintUnion2Type = "getProjectEnv_contentHint_PostgresURLNonPooling_2" - GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresPrismaURL2 GetProjectEnvContentHintUnion2Type = "getProjectEnv_contentHint_PostgresPrismaURL_2" - GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresUser2 GetProjectEnvContentHintUnion2Type = "getProjectEnv_contentHint_PostgresUser_2" - GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresHost2 GetProjectEnvContentHintUnion2Type = "getProjectEnv_contentHint_PostgresHost_2" - GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresPassword2 GetProjectEnvContentHintUnion2Type = "getProjectEnv_contentHint_PostgresPassword_2" - GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresDatabase2 GetProjectEnvContentHintUnion2Type = "getProjectEnv_contentHint_PostgresDatabase_2" - GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresURLNoSsl2 GetProjectEnvContentHintUnion2Type = "getProjectEnv_contentHint_PostgresURLNoSsl_2" - GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintIntegrationStoreSecret2 GetProjectEnvContentHintUnion2Type = "getProjectEnv_contentHint_IntegrationStoreSecret_2" - GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintFlagsConnectionString2 GetProjectEnvContentHintUnion2Type = "getProjectEnv_contentHint_FlagsConnectionString_2" + GetProjectEnvContentHintUnion2TypeRedisURL GetProjectEnvContentHintUnion2Type = "redis-url" + GetProjectEnvContentHintUnion2TypeRedisRestAPIURL GetProjectEnvContentHintUnion2Type = "redis-rest-api-url" + GetProjectEnvContentHintUnion2TypeRedisRestAPIToken GetProjectEnvContentHintUnion2Type = "redis-rest-api-token" + GetProjectEnvContentHintUnion2TypeRedisRestAPIReadOnlyToken GetProjectEnvContentHintUnion2Type = "redis-rest-api-read-only-token" + GetProjectEnvContentHintUnion2TypeBlobReadWriteToken GetProjectEnvContentHintUnion2Type = "blob-read-write-token" + GetProjectEnvContentHintUnion2TypePostgresURL GetProjectEnvContentHintUnion2Type = "postgres-url" + GetProjectEnvContentHintUnion2TypePostgresURLNonPooling GetProjectEnvContentHintUnion2Type = "postgres-url-non-pooling" + GetProjectEnvContentHintUnion2TypePostgresPrismaURL GetProjectEnvContentHintUnion2Type = "postgres-prisma-url" + GetProjectEnvContentHintUnion2TypePostgresUser GetProjectEnvContentHintUnion2Type = "postgres-user" + GetProjectEnvContentHintUnion2TypePostgresHost GetProjectEnvContentHintUnion2Type = "postgres-host" + GetProjectEnvContentHintUnion2TypePostgresPassword GetProjectEnvContentHintUnion2Type = "postgres-password" + GetProjectEnvContentHintUnion2TypePostgresDatabase GetProjectEnvContentHintUnion2Type = "postgres-database" + GetProjectEnvContentHintUnion2TypePostgresURLNoSsl GetProjectEnvContentHintUnion2Type = "postgres-url-no-ssl" + GetProjectEnvContentHintUnion2TypeIntegrationStoreSecret GetProjectEnvContentHintUnion2Type = "integration-store-secret" + GetProjectEnvContentHintUnion2TypeFlagsConnectionString GetProjectEnvContentHintUnion2Type = "flags-connection-string" ) type GetProjectEnvContentHintUnion2 struct { @@ -2582,245 +2774,332 @@ type GetProjectEnvContentHintUnion2 struct { Type GetProjectEnvContentHintUnion2Type } -func CreateGetProjectEnvContentHintUnion2GetProjectEnvContentHintRedisURL2(getProjectEnvContentHintRedisURL2 GetProjectEnvContentHintRedisURL2) GetProjectEnvContentHintUnion2 { - typ := GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintRedisURL2 +func CreateGetProjectEnvContentHintUnion2RedisURL(redisURL GetProjectEnvContentHintRedisURL2) GetProjectEnvContentHintUnion2 { + typ := GetProjectEnvContentHintUnion2TypeRedisURL + + typStr := GetProjectEnvTypeRedisURL2(typ) + redisURL.Type = typStr return GetProjectEnvContentHintUnion2{ - GetProjectEnvContentHintRedisURL2: &getProjectEnvContentHintRedisURL2, + GetProjectEnvContentHintRedisURL2: &redisURL, Type: typ, } } -func CreateGetProjectEnvContentHintUnion2GetProjectEnvContentHintRedisRestAPIURL2(getProjectEnvContentHintRedisRestAPIURL2 GetProjectEnvContentHintRedisRestAPIURL2) GetProjectEnvContentHintUnion2 { - typ := GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintRedisRestAPIURL2 +func CreateGetProjectEnvContentHintUnion2RedisRestAPIURL(redisRestAPIURL GetProjectEnvContentHintRedisRestAPIURL2) GetProjectEnvContentHintUnion2 { + typ := GetProjectEnvContentHintUnion2TypeRedisRestAPIURL + + typStr := GetProjectEnvTypeRedisRestAPIURL2(typ) + redisRestAPIURL.Type = typStr return GetProjectEnvContentHintUnion2{ - GetProjectEnvContentHintRedisRestAPIURL2: &getProjectEnvContentHintRedisRestAPIURL2, + GetProjectEnvContentHintRedisRestAPIURL2: &redisRestAPIURL, Type: typ, } } -func CreateGetProjectEnvContentHintUnion2GetProjectEnvContentHintRedisRestAPIToken2(getProjectEnvContentHintRedisRestAPIToken2 GetProjectEnvContentHintRedisRestAPIToken2) GetProjectEnvContentHintUnion2 { - typ := GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintRedisRestAPIToken2 +func CreateGetProjectEnvContentHintUnion2RedisRestAPIToken(redisRestAPIToken GetProjectEnvContentHintRedisRestAPIToken2) GetProjectEnvContentHintUnion2 { + typ := GetProjectEnvContentHintUnion2TypeRedisRestAPIToken + + typStr := GetProjectEnvTypeRedisRestAPIToken2(typ) + redisRestAPIToken.Type = typStr return GetProjectEnvContentHintUnion2{ - GetProjectEnvContentHintRedisRestAPIToken2: &getProjectEnvContentHintRedisRestAPIToken2, + GetProjectEnvContentHintRedisRestAPIToken2: &redisRestAPIToken, Type: typ, } } -func CreateGetProjectEnvContentHintUnion2GetProjectEnvContentHintRedisRestAPIReadOnlyToken2(getProjectEnvContentHintRedisRestAPIReadOnlyToken2 GetProjectEnvContentHintRedisRestAPIReadOnlyToken2) GetProjectEnvContentHintUnion2 { - typ := GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintRedisRestAPIReadOnlyToken2 +func CreateGetProjectEnvContentHintUnion2RedisRestAPIReadOnlyToken(redisRestAPIReadOnlyToken GetProjectEnvContentHintRedisRestAPIReadOnlyToken2) GetProjectEnvContentHintUnion2 { + typ := GetProjectEnvContentHintUnion2TypeRedisRestAPIReadOnlyToken + + typStr := GetProjectEnvTypeRedisRestAPIReadOnlyToken2(typ) + redisRestAPIReadOnlyToken.Type = typStr return GetProjectEnvContentHintUnion2{ - GetProjectEnvContentHintRedisRestAPIReadOnlyToken2: &getProjectEnvContentHintRedisRestAPIReadOnlyToken2, + GetProjectEnvContentHintRedisRestAPIReadOnlyToken2: &redisRestAPIReadOnlyToken, Type: typ, } } -func CreateGetProjectEnvContentHintUnion2GetProjectEnvContentHintBlobReadWriteToken2(getProjectEnvContentHintBlobReadWriteToken2 GetProjectEnvContentHintBlobReadWriteToken2) GetProjectEnvContentHintUnion2 { - typ := GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintBlobReadWriteToken2 +func CreateGetProjectEnvContentHintUnion2BlobReadWriteToken(blobReadWriteToken GetProjectEnvContentHintBlobReadWriteToken2) GetProjectEnvContentHintUnion2 { + typ := GetProjectEnvContentHintUnion2TypeBlobReadWriteToken + + typStr := GetProjectEnvTypeBlobReadWriteToken2(typ) + blobReadWriteToken.Type = typStr return GetProjectEnvContentHintUnion2{ - GetProjectEnvContentHintBlobReadWriteToken2: &getProjectEnvContentHintBlobReadWriteToken2, + GetProjectEnvContentHintBlobReadWriteToken2: &blobReadWriteToken, Type: typ, } } -func CreateGetProjectEnvContentHintUnion2GetProjectEnvContentHintPostgresURL2(getProjectEnvContentHintPostgresURL2 GetProjectEnvContentHintPostgresURL2) GetProjectEnvContentHintUnion2 { - typ := GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresURL2 +func CreateGetProjectEnvContentHintUnion2PostgresURL(postgresURL GetProjectEnvContentHintPostgresURL2) GetProjectEnvContentHintUnion2 { + typ := GetProjectEnvContentHintUnion2TypePostgresURL + + typStr := GetProjectEnvTypePostgresURL2(typ) + postgresURL.Type = typStr return GetProjectEnvContentHintUnion2{ - GetProjectEnvContentHintPostgresURL2: &getProjectEnvContentHintPostgresURL2, + GetProjectEnvContentHintPostgresURL2: &postgresURL, Type: typ, } } -func CreateGetProjectEnvContentHintUnion2GetProjectEnvContentHintPostgresURLNonPooling2(getProjectEnvContentHintPostgresURLNonPooling2 GetProjectEnvContentHintPostgresURLNonPooling2) GetProjectEnvContentHintUnion2 { - typ := GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresURLNonPooling2 +func CreateGetProjectEnvContentHintUnion2PostgresURLNonPooling(postgresURLNonPooling GetProjectEnvContentHintPostgresURLNonPooling2) GetProjectEnvContentHintUnion2 { + typ := GetProjectEnvContentHintUnion2TypePostgresURLNonPooling + + typStr := GetProjectEnvTypePostgresURLNonPooling2(typ) + postgresURLNonPooling.Type = typStr return GetProjectEnvContentHintUnion2{ - GetProjectEnvContentHintPostgresURLNonPooling2: &getProjectEnvContentHintPostgresURLNonPooling2, + GetProjectEnvContentHintPostgresURLNonPooling2: &postgresURLNonPooling, Type: typ, } } -func CreateGetProjectEnvContentHintUnion2GetProjectEnvContentHintPostgresPrismaURL2(getProjectEnvContentHintPostgresPrismaURL2 GetProjectEnvContentHintPostgresPrismaURL2) GetProjectEnvContentHintUnion2 { - typ := GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresPrismaURL2 +func CreateGetProjectEnvContentHintUnion2PostgresPrismaURL(postgresPrismaURL GetProjectEnvContentHintPostgresPrismaURL2) GetProjectEnvContentHintUnion2 { + typ := GetProjectEnvContentHintUnion2TypePostgresPrismaURL + + typStr := GetProjectEnvTypePostgresPrismaURL2(typ) + postgresPrismaURL.Type = typStr return GetProjectEnvContentHintUnion2{ - GetProjectEnvContentHintPostgresPrismaURL2: &getProjectEnvContentHintPostgresPrismaURL2, + GetProjectEnvContentHintPostgresPrismaURL2: &postgresPrismaURL, Type: typ, } } -func CreateGetProjectEnvContentHintUnion2GetProjectEnvContentHintPostgresUser2(getProjectEnvContentHintPostgresUser2 GetProjectEnvContentHintPostgresUser2) GetProjectEnvContentHintUnion2 { - typ := GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresUser2 +func CreateGetProjectEnvContentHintUnion2PostgresUser(postgresUser GetProjectEnvContentHintPostgresUser2) GetProjectEnvContentHintUnion2 { + typ := GetProjectEnvContentHintUnion2TypePostgresUser + + typStr := GetProjectEnvTypePostgresUser2(typ) + postgresUser.Type = typStr return GetProjectEnvContentHintUnion2{ - GetProjectEnvContentHintPostgresUser2: &getProjectEnvContentHintPostgresUser2, + GetProjectEnvContentHintPostgresUser2: &postgresUser, Type: typ, } } -func CreateGetProjectEnvContentHintUnion2GetProjectEnvContentHintPostgresHost2(getProjectEnvContentHintPostgresHost2 GetProjectEnvContentHintPostgresHost2) GetProjectEnvContentHintUnion2 { - typ := GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresHost2 +func CreateGetProjectEnvContentHintUnion2PostgresHost(postgresHost GetProjectEnvContentHintPostgresHost2) GetProjectEnvContentHintUnion2 { + typ := GetProjectEnvContentHintUnion2TypePostgresHost + + typStr := GetProjectEnvTypePostgresHost2(typ) + postgresHost.Type = typStr return GetProjectEnvContentHintUnion2{ - GetProjectEnvContentHintPostgresHost2: &getProjectEnvContentHintPostgresHost2, + GetProjectEnvContentHintPostgresHost2: &postgresHost, Type: typ, } } -func CreateGetProjectEnvContentHintUnion2GetProjectEnvContentHintPostgresPassword2(getProjectEnvContentHintPostgresPassword2 GetProjectEnvContentHintPostgresPassword2) GetProjectEnvContentHintUnion2 { - typ := GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresPassword2 +func CreateGetProjectEnvContentHintUnion2PostgresPassword(postgresPassword GetProjectEnvContentHintPostgresPassword2) GetProjectEnvContentHintUnion2 { + typ := GetProjectEnvContentHintUnion2TypePostgresPassword + + typStr := GetProjectEnvTypePostgresPassword2(typ) + postgresPassword.Type = typStr return GetProjectEnvContentHintUnion2{ - GetProjectEnvContentHintPostgresPassword2: &getProjectEnvContentHintPostgresPassword2, + GetProjectEnvContentHintPostgresPassword2: &postgresPassword, Type: typ, } } -func CreateGetProjectEnvContentHintUnion2GetProjectEnvContentHintPostgresDatabase2(getProjectEnvContentHintPostgresDatabase2 GetProjectEnvContentHintPostgresDatabase2) GetProjectEnvContentHintUnion2 { - typ := GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresDatabase2 +func CreateGetProjectEnvContentHintUnion2PostgresDatabase(postgresDatabase GetProjectEnvContentHintPostgresDatabase2) GetProjectEnvContentHintUnion2 { + typ := GetProjectEnvContentHintUnion2TypePostgresDatabase + + typStr := GetProjectEnvTypePostgresDatabase2(typ) + postgresDatabase.Type = typStr return GetProjectEnvContentHintUnion2{ - GetProjectEnvContentHintPostgresDatabase2: &getProjectEnvContentHintPostgresDatabase2, + GetProjectEnvContentHintPostgresDatabase2: &postgresDatabase, Type: typ, } } -func CreateGetProjectEnvContentHintUnion2GetProjectEnvContentHintPostgresURLNoSsl2(getProjectEnvContentHintPostgresURLNoSsl2 GetProjectEnvContentHintPostgresURLNoSsl2) GetProjectEnvContentHintUnion2 { - typ := GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresURLNoSsl2 +func CreateGetProjectEnvContentHintUnion2PostgresURLNoSsl(postgresURLNoSsl GetProjectEnvContentHintPostgresURLNoSsl2) GetProjectEnvContentHintUnion2 { + typ := GetProjectEnvContentHintUnion2TypePostgresURLNoSsl + + typStr := GetProjectEnvTypePostgresURLNoSsl2(typ) + postgresURLNoSsl.Type = typStr return GetProjectEnvContentHintUnion2{ - GetProjectEnvContentHintPostgresURLNoSsl2: &getProjectEnvContentHintPostgresURLNoSsl2, + GetProjectEnvContentHintPostgresURLNoSsl2: &postgresURLNoSsl, Type: typ, } } -func CreateGetProjectEnvContentHintUnion2GetProjectEnvContentHintIntegrationStoreSecret2(getProjectEnvContentHintIntegrationStoreSecret2 GetProjectEnvContentHintIntegrationStoreSecret2) GetProjectEnvContentHintUnion2 { - typ := GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintIntegrationStoreSecret2 +func CreateGetProjectEnvContentHintUnion2IntegrationStoreSecret(integrationStoreSecret GetProjectEnvContentHintIntegrationStoreSecret2) GetProjectEnvContentHintUnion2 { + typ := GetProjectEnvContentHintUnion2TypeIntegrationStoreSecret + + typStr := GetProjectEnvTypeIntegrationStoreSecret2(typ) + integrationStoreSecret.Type = typStr return GetProjectEnvContentHintUnion2{ - GetProjectEnvContentHintIntegrationStoreSecret2: &getProjectEnvContentHintIntegrationStoreSecret2, + GetProjectEnvContentHintIntegrationStoreSecret2: &integrationStoreSecret, Type: typ, } } -func CreateGetProjectEnvContentHintUnion2GetProjectEnvContentHintFlagsConnectionString2(getProjectEnvContentHintFlagsConnectionString2 GetProjectEnvContentHintFlagsConnectionString2) GetProjectEnvContentHintUnion2 { - typ := GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintFlagsConnectionString2 +func CreateGetProjectEnvContentHintUnion2FlagsConnectionString(flagsConnectionString GetProjectEnvContentHintFlagsConnectionString2) GetProjectEnvContentHintUnion2 { + typ := GetProjectEnvContentHintUnion2TypeFlagsConnectionString + + typStr := GetProjectEnvTypeFlagsConnectionString2(typ) + flagsConnectionString.Type = typStr return GetProjectEnvContentHintUnion2{ - GetProjectEnvContentHintFlagsConnectionString2: &getProjectEnvContentHintFlagsConnectionString2, + GetProjectEnvContentHintFlagsConnectionString2: &flagsConnectionString, Type: typ, } } func (u *GetProjectEnvContentHintUnion2) UnmarshalJSON(data []byte) error { - var getProjectEnvContentHintIntegrationStoreSecret2 GetProjectEnvContentHintIntegrationStoreSecret2 = GetProjectEnvContentHintIntegrationStoreSecret2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintIntegrationStoreSecret2, "", true, nil); err == nil { - u.GetProjectEnvContentHintIntegrationStoreSecret2 = &getProjectEnvContentHintIntegrationStoreSecret2 - u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintIntegrationStoreSecret2 - return nil + type discriminator struct { + Type string `json:"type"` } - var getProjectEnvContentHintRedisURL2 GetProjectEnvContentHintRedisURL2 = GetProjectEnvContentHintRedisURL2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisURL2, "", true, nil); err == nil { - u.GetProjectEnvContentHintRedisURL2 = &getProjectEnvContentHintRedisURL2 - u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintRedisURL2 - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getProjectEnvContentHintRedisRestAPIURL2 GetProjectEnvContentHintRedisRestAPIURL2 = GetProjectEnvContentHintRedisRestAPIURL2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIURL2, "", true, nil); err == nil { - u.GetProjectEnvContentHintRedisRestAPIURL2 = &getProjectEnvContentHintRedisRestAPIURL2 - u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintRedisRestAPIURL2 + switch dis.Type { + case "redis-url": + getProjectEnvContentHintRedisURL2 := new(GetProjectEnvContentHintRedisURL2) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisURL2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-url) type GetProjectEnvContentHintRedisURL2 within GetProjectEnvContentHintUnion2: %w", string(data), err) + } + + u.GetProjectEnvContentHintRedisURL2 = getProjectEnvContentHintRedisURL2 + u.Type = GetProjectEnvContentHintUnion2TypeRedisURL return nil - } + case "redis-rest-api-url": + getProjectEnvContentHintRedisRestAPIURL2 := new(GetProjectEnvContentHintRedisRestAPIURL2) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIURL2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-url) type GetProjectEnvContentHintRedisRestAPIURL2 within GetProjectEnvContentHintUnion2: %w", string(data), err) + } - var getProjectEnvContentHintRedisRestAPIToken2 GetProjectEnvContentHintRedisRestAPIToken2 = GetProjectEnvContentHintRedisRestAPIToken2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIToken2, "", true, nil); err == nil { - u.GetProjectEnvContentHintRedisRestAPIToken2 = &getProjectEnvContentHintRedisRestAPIToken2 - u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintRedisRestAPIToken2 + u.GetProjectEnvContentHintRedisRestAPIURL2 = getProjectEnvContentHintRedisRestAPIURL2 + u.Type = GetProjectEnvContentHintUnion2TypeRedisRestAPIURL return nil - } + case "redis-rest-api-token": + getProjectEnvContentHintRedisRestAPIToken2 := new(GetProjectEnvContentHintRedisRestAPIToken2) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIToken2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-token) type GetProjectEnvContentHintRedisRestAPIToken2 within GetProjectEnvContentHintUnion2: %w", string(data), err) + } - var getProjectEnvContentHintRedisRestAPIReadOnlyToken2 GetProjectEnvContentHintRedisRestAPIReadOnlyToken2 = GetProjectEnvContentHintRedisRestAPIReadOnlyToken2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIReadOnlyToken2, "", true, nil); err == nil { - u.GetProjectEnvContentHintRedisRestAPIReadOnlyToken2 = &getProjectEnvContentHintRedisRestAPIReadOnlyToken2 - u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintRedisRestAPIReadOnlyToken2 + u.GetProjectEnvContentHintRedisRestAPIToken2 = getProjectEnvContentHintRedisRestAPIToken2 + u.Type = GetProjectEnvContentHintUnion2TypeRedisRestAPIToken return nil - } + case "redis-rest-api-read-only-token": + getProjectEnvContentHintRedisRestAPIReadOnlyToken2 := new(GetProjectEnvContentHintRedisRestAPIReadOnlyToken2) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIReadOnlyToken2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-read-only-token) type GetProjectEnvContentHintRedisRestAPIReadOnlyToken2 within GetProjectEnvContentHintUnion2: %w", string(data), err) + } - var getProjectEnvContentHintBlobReadWriteToken2 GetProjectEnvContentHintBlobReadWriteToken2 = GetProjectEnvContentHintBlobReadWriteToken2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintBlobReadWriteToken2, "", true, nil); err == nil { - u.GetProjectEnvContentHintBlobReadWriteToken2 = &getProjectEnvContentHintBlobReadWriteToken2 - u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintBlobReadWriteToken2 + u.GetProjectEnvContentHintRedisRestAPIReadOnlyToken2 = getProjectEnvContentHintRedisRestAPIReadOnlyToken2 + u.Type = GetProjectEnvContentHintUnion2TypeRedisRestAPIReadOnlyToken return nil - } + case "blob-read-write-token": + getProjectEnvContentHintBlobReadWriteToken2 := new(GetProjectEnvContentHintBlobReadWriteToken2) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintBlobReadWriteToken2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == blob-read-write-token) type GetProjectEnvContentHintBlobReadWriteToken2 within GetProjectEnvContentHintUnion2: %w", string(data), err) + } - var getProjectEnvContentHintPostgresURL2 GetProjectEnvContentHintPostgresURL2 = GetProjectEnvContentHintPostgresURL2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURL2, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresURL2 = &getProjectEnvContentHintPostgresURL2 - u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresURL2 + u.GetProjectEnvContentHintBlobReadWriteToken2 = getProjectEnvContentHintBlobReadWriteToken2 + u.Type = GetProjectEnvContentHintUnion2TypeBlobReadWriteToken return nil - } + case "postgres-url": + getProjectEnvContentHintPostgresURL2 := new(GetProjectEnvContentHintPostgresURL2) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURL2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url) type GetProjectEnvContentHintPostgresURL2 within GetProjectEnvContentHintUnion2: %w", string(data), err) + } - var getProjectEnvContentHintPostgresURLNonPooling2 GetProjectEnvContentHintPostgresURLNonPooling2 = GetProjectEnvContentHintPostgresURLNonPooling2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNonPooling2, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresURLNonPooling2 = &getProjectEnvContentHintPostgresURLNonPooling2 - u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresURLNonPooling2 + u.GetProjectEnvContentHintPostgresURL2 = getProjectEnvContentHintPostgresURL2 + u.Type = GetProjectEnvContentHintUnion2TypePostgresURL return nil - } + case "postgres-url-non-pooling": + getProjectEnvContentHintPostgresURLNonPooling2 := new(GetProjectEnvContentHintPostgresURLNonPooling2) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNonPooling2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-non-pooling) type GetProjectEnvContentHintPostgresURLNonPooling2 within GetProjectEnvContentHintUnion2: %w", string(data), err) + } - var getProjectEnvContentHintPostgresPrismaURL2 GetProjectEnvContentHintPostgresPrismaURL2 = GetProjectEnvContentHintPostgresPrismaURL2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPrismaURL2, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresPrismaURL2 = &getProjectEnvContentHintPostgresPrismaURL2 - u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresPrismaURL2 + u.GetProjectEnvContentHintPostgresURLNonPooling2 = getProjectEnvContentHintPostgresURLNonPooling2 + u.Type = GetProjectEnvContentHintUnion2TypePostgresURLNonPooling return nil - } + case "postgres-prisma-url": + getProjectEnvContentHintPostgresPrismaURL2 := new(GetProjectEnvContentHintPostgresPrismaURL2) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPrismaURL2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-prisma-url) type GetProjectEnvContentHintPostgresPrismaURL2 within GetProjectEnvContentHintUnion2: %w", string(data), err) + } - var getProjectEnvContentHintPostgresUser2 GetProjectEnvContentHintPostgresUser2 = GetProjectEnvContentHintPostgresUser2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresUser2, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresUser2 = &getProjectEnvContentHintPostgresUser2 - u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresUser2 + u.GetProjectEnvContentHintPostgresPrismaURL2 = getProjectEnvContentHintPostgresPrismaURL2 + u.Type = GetProjectEnvContentHintUnion2TypePostgresPrismaURL return nil - } + case "postgres-user": + getProjectEnvContentHintPostgresUser2 := new(GetProjectEnvContentHintPostgresUser2) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresUser2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-user) type GetProjectEnvContentHintPostgresUser2 within GetProjectEnvContentHintUnion2: %w", string(data), err) + } - var getProjectEnvContentHintPostgresHost2 GetProjectEnvContentHintPostgresHost2 = GetProjectEnvContentHintPostgresHost2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresHost2, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresHost2 = &getProjectEnvContentHintPostgresHost2 - u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresHost2 + u.GetProjectEnvContentHintPostgresUser2 = getProjectEnvContentHintPostgresUser2 + u.Type = GetProjectEnvContentHintUnion2TypePostgresUser return nil - } + case "postgres-host": + getProjectEnvContentHintPostgresHost2 := new(GetProjectEnvContentHintPostgresHost2) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresHost2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-host) type GetProjectEnvContentHintPostgresHost2 within GetProjectEnvContentHintUnion2: %w", string(data), err) + } - var getProjectEnvContentHintPostgresPassword2 GetProjectEnvContentHintPostgresPassword2 = GetProjectEnvContentHintPostgresPassword2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPassword2, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresPassword2 = &getProjectEnvContentHintPostgresPassword2 - u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresPassword2 + u.GetProjectEnvContentHintPostgresHost2 = getProjectEnvContentHintPostgresHost2 + u.Type = GetProjectEnvContentHintUnion2TypePostgresHost return nil - } + case "postgres-password": + getProjectEnvContentHintPostgresPassword2 := new(GetProjectEnvContentHintPostgresPassword2) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPassword2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-password) type GetProjectEnvContentHintPostgresPassword2 within GetProjectEnvContentHintUnion2: %w", string(data), err) + } - var getProjectEnvContentHintPostgresDatabase2 GetProjectEnvContentHintPostgresDatabase2 = GetProjectEnvContentHintPostgresDatabase2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresDatabase2, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresDatabase2 = &getProjectEnvContentHintPostgresDatabase2 - u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresDatabase2 + u.GetProjectEnvContentHintPostgresPassword2 = getProjectEnvContentHintPostgresPassword2 + u.Type = GetProjectEnvContentHintUnion2TypePostgresPassword return nil - } + case "postgres-database": + getProjectEnvContentHintPostgresDatabase2 := new(GetProjectEnvContentHintPostgresDatabase2) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresDatabase2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-database) type GetProjectEnvContentHintPostgresDatabase2 within GetProjectEnvContentHintUnion2: %w", string(data), err) + } - var getProjectEnvContentHintPostgresURLNoSsl2 GetProjectEnvContentHintPostgresURLNoSsl2 = GetProjectEnvContentHintPostgresURLNoSsl2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNoSsl2, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresURLNoSsl2 = &getProjectEnvContentHintPostgresURLNoSsl2 - u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresURLNoSsl2 + u.GetProjectEnvContentHintPostgresDatabase2 = getProjectEnvContentHintPostgresDatabase2 + u.Type = GetProjectEnvContentHintUnion2TypePostgresDatabase return nil - } + case "postgres-url-no-ssl": + getProjectEnvContentHintPostgresURLNoSsl2 := new(GetProjectEnvContentHintPostgresURLNoSsl2) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNoSsl2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-no-ssl) type GetProjectEnvContentHintPostgresURLNoSsl2 within GetProjectEnvContentHintUnion2: %w", string(data), err) + } + + u.GetProjectEnvContentHintPostgresURLNoSsl2 = getProjectEnvContentHintPostgresURLNoSsl2 + u.Type = GetProjectEnvContentHintUnion2TypePostgresURLNoSsl + return nil + case "integration-store-secret": + getProjectEnvContentHintIntegrationStoreSecret2 := new(GetProjectEnvContentHintIntegrationStoreSecret2) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintIntegrationStoreSecret2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == integration-store-secret) type GetProjectEnvContentHintIntegrationStoreSecret2 within GetProjectEnvContentHintUnion2: %w", string(data), err) + } - var getProjectEnvContentHintFlagsConnectionString2 GetProjectEnvContentHintFlagsConnectionString2 = GetProjectEnvContentHintFlagsConnectionString2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintFlagsConnectionString2, "", true, nil); err == nil { - u.GetProjectEnvContentHintFlagsConnectionString2 = &getProjectEnvContentHintFlagsConnectionString2 - u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintFlagsConnectionString2 + u.GetProjectEnvContentHintIntegrationStoreSecret2 = getProjectEnvContentHintIntegrationStoreSecret2 + u.Type = GetProjectEnvContentHintUnion2TypeIntegrationStoreSecret + return nil + case "flags-connection-string": + getProjectEnvContentHintFlagsConnectionString2 := new(GetProjectEnvContentHintFlagsConnectionString2) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintFlagsConnectionString2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == flags-connection-string) type GetProjectEnvContentHintFlagsConnectionString2 within GetProjectEnvContentHintUnion2: %w", string(data), err) + } + + u.GetProjectEnvContentHintFlagsConnectionString2 = getProjectEnvContentHintFlagsConnectionString2 + u.Type = GetProjectEnvContentHintUnion2TypeFlagsConnectionString return nil } @@ -3101,6 +3380,111 @@ func (o *GetProjectEnvResponseBody2) GetContentHint() *GetProjectEnvContentHintU return o.ContentHint } +func (o *GetProjectEnvResponseBody2) GetContentHintRedisURL() *GetProjectEnvContentHintRedisURL2 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintRedisURL2 + } + return nil +} + +func (o *GetProjectEnvResponseBody2) GetContentHintRedisRestAPIURL() *GetProjectEnvContentHintRedisRestAPIURL2 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintRedisRestAPIURL2 + } + return nil +} + +func (o *GetProjectEnvResponseBody2) GetContentHintRedisRestAPIToken() *GetProjectEnvContentHintRedisRestAPIToken2 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintRedisRestAPIToken2 + } + return nil +} + +func (o *GetProjectEnvResponseBody2) GetContentHintRedisRestAPIReadOnlyToken() *GetProjectEnvContentHintRedisRestAPIReadOnlyToken2 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintRedisRestAPIReadOnlyToken2 + } + return nil +} + +func (o *GetProjectEnvResponseBody2) GetContentHintBlobReadWriteToken() *GetProjectEnvContentHintBlobReadWriteToken2 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintBlobReadWriteToken2 + } + return nil +} + +func (o *GetProjectEnvResponseBody2) GetContentHintPostgresURL() *GetProjectEnvContentHintPostgresURL2 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresURL2 + } + return nil +} + +func (o *GetProjectEnvResponseBody2) GetContentHintPostgresURLNonPooling() *GetProjectEnvContentHintPostgresURLNonPooling2 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresURLNonPooling2 + } + return nil +} + +func (o *GetProjectEnvResponseBody2) GetContentHintPostgresPrismaURL() *GetProjectEnvContentHintPostgresPrismaURL2 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresPrismaURL2 + } + return nil +} + +func (o *GetProjectEnvResponseBody2) GetContentHintPostgresUser() *GetProjectEnvContentHintPostgresUser2 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresUser2 + } + return nil +} + +func (o *GetProjectEnvResponseBody2) GetContentHintPostgresHost() *GetProjectEnvContentHintPostgresHost2 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresHost2 + } + return nil +} + +func (o *GetProjectEnvResponseBody2) GetContentHintPostgresPassword() *GetProjectEnvContentHintPostgresPassword2 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresPassword2 + } + return nil +} + +func (o *GetProjectEnvResponseBody2) GetContentHintPostgresDatabase() *GetProjectEnvContentHintPostgresDatabase2 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresDatabase2 + } + return nil +} + +func (o *GetProjectEnvResponseBody2) GetContentHintPostgresURLNoSsl() *GetProjectEnvContentHintPostgresURLNoSsl2 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresURLNoSsl2 + } + return nil +} + +func (o *GetProjectEnvResponseBody2) GetContentHintIntegrationStoreSecret() *GetProjectEnvContentHintIntegrationStoreSecret2 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintIntegrationStoreSecret2 + } + return nil +} + +func (o *GetProjectEnvResponseBody2) GetContentHintFlagsConnectionString() *GetProjectEnvContentHintFlagsConnectionString2 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintFlagsConnectionString2 + } + return nil +} + func (o *GetProjectEnvResponseBody2) GetInternalContentHint() *GetProjectEnvInternalContentHint2 { if o == nil { return nil @@ -4100,21 +4484,21 @@ func (o *GetProjectEnvContentHintRedisURL1) GetStoreID() string { type GetProjectEnvContentHintUnion1Type string const ( - GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintRedisURL1 GetProjectEnvContentHintUnion1Type = "getProjectEnv_contentHint_RedisURL_1" - GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintRedisRestAPIURL1 GetProjectEnvContentHintUnion1Type = "getProjectEnv_contentHint_RedisRestAPIURL_1" - GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintRedisRestAPIToken1 GetProjectEnvContentHintUnion1Type = "getProjectEnv_contentHint_RedisRestAPIToken_1" - GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintRedisRestAPIReadOnlyToken1 GetProjectEnvContentHintUnion1Type = "getProjectEnv_contentHint_RedisRestAPIReadOnlyToken_1" - GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintBlobReadWriteToken1 GetProjectEnvContentHintUnion1Type = "getProjectEnv_contentHint_BlobReadWriteToken_1" - GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresURL1 GetProjectEnvContentHintUnion1Type = "getProjectEnv_contentHint_PostgresURL_1" - GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresURLNonPooling1 GetProjectEnvContentHintUnion1Type = "getProjectEnv_contentHint_PostgresURLNonPooling_1" - GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresPrismaURL1 GetProjectEnvContentHintUnion1Type = "getProjectEnv_contentHint_PostgresPrismaURL_1" - GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresUser1 GetProjectEnvContentHintUnion1Type = "getProjectEnv_contentHint_PostgresUser_1" - GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresHost1 GetProjectEnvContentHintUnion1Type = "getProjectEnv_contentHint_PostgresHost_1" - GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresPassword1 GetProjectEnvContentHintUnion1Type = "getProjectEnv_contentHint_PostgresPassword_1" - GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresDatabase1 GetProjectEnvContentHintUnion1Type = "getProjectEnv_contentHint_PostgresDatabase_1" - GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresURLNoSsl1 GetProjectEnvContentHintUnion1Type = "getProjectEnv_contentHint_PostgresURLNoSsl_1" - GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintIntegrationStoreSecret1 GetProjectEnvContentHintUnion1Type = "getProjectEnv_contentHint_IntegrationStoreSecret_1" - GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintFlagsConnectionString1 GetProjectEnvContentHintUnion1Type = "getProjectEnv_contentHint_FlagsConnectionString_1" + GetProjectEnvContentHintUnion1TypeRedisURL GetProjectEnvContentHintUnion1Type = "redis-url" + GetProjectEnvContentHintUnion1TypeRedisRestAPIURL GetProjectEnvContentHintUnion1Type = "redis-rest-api-url" + GetProjectEnvContentHintUnion1TypeRedisRestAPIToken GetProjectEnvContentHintUnion1Type = "redis-rest-api-token" + GetProjectEnvContentHintUnion1TypeRedisRestAPIReadOnlyToken GetProjectEnvContentHintUnion1Type = "redis-rest-api-read-only-token" + GetProjectEnvContentHintUnion1TypeBlobReadWriteToken GetProjectEnvContentHintUnion1Type = "blob-read-write-token" + GetProjectEnvContentHintUnion1TypePostgresURL GetProjectEnvContentHintUnion1Type = "postgres-url" + GetProjectEnvContentHintUnion1TypePostgresURLNonPooling GetProjectEnvContentHintUnion1Type = "postgres-url-non-pooling" + GetProjectEnvContentHintUnion1TypePostgresPrismaURL GetProjectEnvContentHintUnion1Type = "postgres-prisma-url" + GetProjectEnvContentHintUnion1TypePostgresUser GetProjectEnvContentHintUnion1Type = "postgres-user" + GetProjectEnvContentHintUnion1TypePostgresHost GetProjectEnvContentHintUnion1Type = "postgres-host" + GetProjectEnvContentHintUnion1TypePostgresPassword GetProjectEnvContentHintUnion1Type = "postgres-password" + GetProjectEnvContentHintUnion1TypePostgresDatabase GetProjectEnvContentHintUnion1Type = "postgres-database" + GetProjectEnvContentHintUnion1TypePostgresURLNoSsl GetProjectEnvContentHintUnion1Type = "postgres-url-no-ssl" + GetProjectEnvContentHintUnion1TypeIntegrationStoreSecret GetProjectEnvContentHintUnion1Type = "integration-store-secret" + GetProjectEnvContentHintUnion1TypeFlagsConnectionString GetProjectEnvContentHintUnion1Type = "flags-connection-string" ) type GetProjectEnvContentHintUnion1 struct { @@ -4137,245 +4521,332 @@ type GetProjectEnvContentHintUnion1 struct { Type GetProjectEnvContentHintUnion1Type } -func CreateGetProjectEnvContentHintUnion1GetProjectEnvContentHintRedisURL1(getProjectEnvContentHintRedisURL1 GetProjectEnvContentHintRedisURL1) GetProjectEnvContentHintUnion1 { - typ := GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintRedisURL1 +func CreateGetProjectEnvContentHintUnion1RedisURL(redisURL GetProjectEnvContentHintRedisURL1) GetProjectEnvContentHintUnion1 { + typ := GetProjectEnvContentHintUnion1TypeRedisURL + + typStr := GetProjectEnvTypeRedisURL1(typ) + redisURL.Type = typStr return GetProjectEnvContentHintUnion1{ - GetProjectEnvContentHintRedisURL1: &getProjectEnvContentHintRedisURL1, + GetProjectEnvContentHintRedisURL1: &redisURL, Type: typ, } } -func CreateGetProjectEnvContentHintUnion1GetProjectEnvContentHintRedisRestAPIURL1(getProjectEnvContentHintRedisRestAPIURL1 GetProjectEnvContentHintRedisRestAPIURL1) GetProjectEnvContentHintUnion1 { - typ := GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintRedisRestAPIURL1 +func CreateGetProjectEnvContentHintUnion1RedisRestAPIURL(redisRestAPIURL GetProjectEnvContentHintRedisRestAPIURL1) GetProjectEnvContentHintUnion1 { + typ := GetProjectEnvContentHintUnion1TypeRedisRestAPIURL + + typStr := GetProjectEnvTypeRedisRestAPIURL1(typ) + redisRestAPIURL.Type = typStr return GetProjectEnvContentHintUnion1{ - GetProjectEnvContentHintRedisRestAPIURL1: &getProjectEnvContentHintRedisRestAPIURL1, + GetProjectEnvContentHintRedisRestAPIURL1: &redisRestAPIURL, Type: typ, } } -func CreateGetProjectEnvContentHintUnion1GetProjectEnvContentHintRedisRestAPIToken1(getProjectEnvContentHintRedisRestAPIToken1 GetProjectEnvContentHintRedisRestAPIToken1) GetProjectEnvContentHintUnion1 { - typ := GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintRedisRestAPIToken1 +func CreateGetProjectEnvContentHintUnion1RedisRestAPIToken(redisRestAPIToken GetProjectEnvContentHintRedisRestAPIToken1) GetProjectEnvContentHintUnion1 { + typ := GetProjectEnvContentHintUnion1TypeRedisRestAPIToken + + typStr := GetProjectEnvTypeRedisRestAPIToken1(typ) + redisRestAPIToken.Type = typStr return GetProjectEnvContentHintUnion1{ - GetProjectEnvContentHintRedisRestAPIToken1: &getProjectEnvContentHintRedisRestAPIToken1, + GetProjectEnvContentHintRedisRestAPIToken1: &redisRestAPIToken, Type: typ, } } -func CreateGetProjectEnvContentHintUnion1GetProjectEnvContentHintRedisRestAPIReadOnlyToken1(getProjectEnvContentHintRedisRestAPIReadOnlyToken1 GetProjectEnvContentHintRedisRestAPIReadOnlyToken1) GetProjectEnvContentHintUnion1 { - typ := GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintRedisRestAPIReadOnlyToken1 +func CreateGetProjectEnvContentHintUnion1RedisRestAPIReadOnlyToken(redisRestAPIReadOnlyToken GetProjectEnvContentHintRedisRestAPIReadOnlyToken1) GetProjectEnvContentHintUnion1 { + typ := GetProjectEnvContentHintUnion1TypeRedisRestAPIReadOnlyToken + + typStr := GetProjectEnvTypeRedisRestAPIReadOnlyToken1(typ) + redisRestAPIReadOnlyToken.Type = typStr return GetProjectEnvContentHintUnion1{ - GetProjectEnvContentHintRedisRestAPIReadOnlyToken1: &getProjectEnvContentHintRedisRestAPIReadOnlyToken1, + GetProjectEnvContentHintRedisRestAPIReadOnlyToken1: &redisRestAPIReadOnlyToken, Type: typ, } } -func CreateGetProjectEnvContentHintUnion1GetProjectEnvContentHintBlobReadWriteToken1(getProjectEnvContentHintBlobReadWriteToken1 GetProjectEnvContentHintBlobReadWriteToken1) GetProjectEnvContentHintUnion1 { - typ := GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintBlobReadWriteToken1 +func CreateGetProjectEnvContentHintUnion1BlobReadWriteToken(blobReadWriteToken GetProjectEnvContentHintBlobReadWriteToken1) GetProjectEnvContentHintUnion1 { + typ := GetProjectEnvContentHintUnion1TypeBlobReadWriteToken + + typStr := GetProjectEnvTypeBlobReadWriteToken1(typ) + blobReadWriteToken.Type = typStr return GetProjectEnvContentHintUnion1{ - GetProjectEnvContentHintBlobReadWriteToken1: &getProjectEnvContentHintBlobReadWriteToken1, + GetProjectEnvContentHintBlobReadWriteToken1: &blobReadWriteToken, Type: typ, } } -func CreateGetProjectEnvContentHintUnion1GetProjectEnvContentHintPostgresURL1(getProjectEnvContentHintPostgresURL1 GetProjectEnvContentHintPostgresURL1) GetProjectEnvContentHintUnion1 { - typ := GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresURL1 +func CreateGetProjectEnvContentHintUnion1PostgresURL(postgresURL GetProjectEnvContentHintPostgresURL1) GetProjectEnvContentHintUnion1 { + typ := GetProjectEnvContentHintUnion1TypePostgresURL + + typStr := GetProjectEnvTypePostgresURL1(typ) + postgresURL.Type = typStr return GetProjectEnvContentHintUnion1{ - GetProjectEnvContentHintPostgresURL1: &getProjectEnvContentHintPostgresURL1, + GetProjectEnvContentHintPostgresURL1: &postgresURL, Type: typ, } } -func CreateGetProjectEnvContentHintUnion1GetProjectEnvContentHintPostgresURLNonPooling1(getProjectEnvContentHintPostgresURLNonPooling1 GetProjectEnvContentHintPostgresURLNonPooling1) GetProjectEnvContentHintUnion1 { - typ := GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresURLNonPooling1 +func CreateGetProjectEnvContentHintUnion1PostgresURLNonPooling(postgresURLNonPooling GetProjectEnvContentHintPostgresURLNonPooling1) GetProjectEnvContentHintUnion1 { + typ := GetProjectEnvContentHintUnion1TypePostgresURLNonPooling + + typStr := GetProjectEnvTypePostgresURLNonPooling1(typ) + postgresURLNonPooling.Type = typStr return GetProjectEnvContentHintUnion1{ - GetProjectEnvContentHintPostgresURLNonPooling1: &getProjectEnvContentHintPostgresURLNonPooling1, + GetProjectEnvContentHintPostgresURLNonPooling1: &postgresURLNonPooling, Type: typ, } } -func CreateGetProjectEnvContentHintUnion1GetProjectEnvContentHintPostgresPrismaURL1(getProjectEnvContentHintPostgresPrismaURL1 GetProjectEnvContentHintPostgresPrismaURL1) GetProjectEnvContentHintUnion1 { - typ := GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresPrismaURL1 +func CreateGetProjectEnvContentHintUnion1PostgresPrismaURL(postgresPrismaURL GetProjectEnvContentHintPostgresPrismaURL1) GetProjectEnvContentHintUnion1 { + typ := GetProjectEnvContentHintUnion1TypePostgresPrismaURL + + typStr := GetProjectEnvTypePostgresPrismaURL1(typ) + postgresPrismaURL.Type = typStr return GetProjectEnvContentHintUnion1{ - GetProjectEnvContentHintPostgresPrismaURL1: &getProjectEnvContentHintPostgresPrismaURL1, + GetProjectEnvContentHintPostgresPrismaURL1: &postgresPrismaURL, Type: typ, } } -func CreateGetProjectEnvContentHintUnion1GetProjectEnvContentHintPostgresUser1(getProjectEnvContentHintPostgresUser1 GetProjectEnvContentHintPostgresUser1) GetProjectEnvContentHintUnion1 { - typ := GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresUser1 +func CreateGetProjectEnvContentHintUnion1PostgresUser(postgresUser GetProjectEnvContentHintPostgresUser1) GetProjectEnvContentHintUnion1 { + typ := GetProjectEnvContentHintUnion1TypePostgresUser + + typStr := GetProjectEnvTypePostgresUser1(typ) + postgresUser.Type = typStr return GetProjectEnvContentHintUnion1{ - GetProjectEnvContentHintPostgresUser1: &getProjectEnvContentHintPostgresUser1, + GetProjectEnvContentHintPostgresUser1: &postgresUser, Type: typ, } } -func CreateGetProjectEnvContentHintUnion1GetProjectEnvContentHintPostgresHost1(getProjectEnvContentHintPostgresHost1 GetProjectEnvContentHintPostgresHost1) GetProjectEnvContentHintUnion1 { - typ := GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresHost1 +func CreateGetProjectEnvContentHintUnion1PostgresHost(postgresHost GetProjectEnvContentHintPostgresHost1) GetProjectEnvContentHintUnion1 { + typ := GetProjectEnvContentHintUnion1TypePostgresHost + + typStr := GetProjectEnvTypePostgresHost1(typ) + postgresHost.Type = typStr return GetProjectEnvContentHintUnion1{ - GetProjectEnvContentHintPostgresHost1: &getProjectEnvContentHintPostgresHost1, + GetProjectEnvContentHintPostgresHost1: &postgresHost, Type: typ, } } -func CreateGetProjectEnvContentHintUnion1GetProjectEnvContentHintPostgresPassword1(getProjectEnvContentHintPostgresPassword1 GetProjectEnvContentHintPostgresPassword1) GetProjectEnvContentHintUnion1 { - typ := GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresPassword1 +func CreateGetProjectEnvContentHintUnion1PostgresPassword(postgresPassword GetProjectEnvContentHintPostgresPassword1) GetProjectEnvContentHintUnion1 { + typ := GetProjectEnvContentHintUnion1TypePostgresPassword + + typStr := GetProjectEnvTypePostgresPassword1(typ) + postgresPassword.Type = typStr return GetProjectEnvContentHintUnion1{ - GetProjectEnvContentHintPostgresPassword1: &getProjectEnvContentHintPostgresPassword1, + GetProjectEnvContentHintPostgresPassword1: &postgresPassword, Type: typ, } } -func CreateGetProjectEnvContentHintUnion1GetProjectEnvContentHintPostgresDatabase1(getProjectEnvContentHintPostgresDatabase1 GetProjectEnvContentHintPostgresDatabase1) GetProjectEnvContentHintUnion1 { - typ := GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresDatabase1 +func CreateGetProjectEnvContentHintUnion1PostgresDatabase(postgresDatabase GetProjectEnvContentHintPostgresDatabase1) GetProjectEnvContentHintUnion1 { + typ := GetProjectEnvContentHintUnion1TypePostgresDatabase + + typStr := GetProjectEnvTypePostgresDatabase1(typ) + postgresDatabase.Type = typStr return GetProjectEnvContentHintUnion1{ - GetProjectEnvContentHintPostgresDatabase1: &getProjectEnvContentHintPostgresDatabase1, + GetProjectEnvContentHintPostgresDatabase1: &postgresDatabase, Type: typ, } } -func CreateGetProjectEnvContentHintUnion1GetProjectEnvContentHintPostgresURLNoSsl1(getProjectEnvContentHintPostgresURLNoSsl1 GetProjectEnvContentHintPostgresURLNoSsl1) GetProjectEnvContentHintUnion1 { - typ := GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresURLNoSsl1 +func CreateGetProjectEnvContentHintUnion1PostgresURLNoSsl(postgresURLNoSsl GetProjectEnvContentHintPostgresURLNoSsl1) GetProjectEnvContentHintUnion1 { + typ := GetProjectEnvContentHintUnion1TypePostgresURLNoSsl + + typStr := GetProjectEnvTypePostgresURLNoSsl1(typ) + postgresURLNoSsl.Type = typStr return GetProjectEnvContentHintUnion1{ - GetProjectEnvContentHintPostgresURLNoSsl1: &getProjectEnvContentHintPostgresURLNoSsl1, + GetProjectEnvContentHintPostgresURLNoSsl1: &postgresURLNoSsl, Type: typ, } } -func CreateGetProjectEnvContentHintUnion1GetProjectEnvContentHintIntegrationStoreSecret1(getProjectEnvContentHintIntegrationStoreSecret1 GetProjectEnvContentHintIntegrationStoreSecret1) GetProjectEnvContentHintUnion1 { - typ := GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintIntegrationStoreSecret1 +func CreateGetProjectEnvContentHintUnion1IntegrationStoreSecret(integrationStoreSecret GetProjectEnvContentHintIntegrationStoreSecret1) GetProjectEnvContentHintUnion1 { + typ := GetProjectEnvContentHintUnion1TypeIntegrationStoreSecret + + typStr := GetProjectEnvTypeIntegrationStoreSecret1(typ) + integrationStoreSecret.Type = typStr return GetProjectEnvContentHintUnion1{ - GetProjectEnvContentHintIntegrationStoreSecret1: &getProjectEnvContentHintIntegrationStoreSecret1, + GetProjectEnvContentHintIntegrationStoreSecret1: &integrationStoreSecret, Type: typ, } } -func CreateGetProjectEnvContentHintUnion1GetProjectEnvContentHintFlagsConnectionString1(getProjectEnvContentHintFlagsConnectionString1 GetProjectEnvContentHintFlagsConnectionString1) GetProjectEnvContentHintUnion1 { - typ := GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintFlagsConnectionString1 +func CreateGetProjectEnvContentHintUnion1FlagsConnectionString(flagsConnectionString GetProjectEnvContentHintFlagsConnectionString1) GetProjectEnvContentHintUnion1 { + typ := GetProjectEnvContentHintUnion1TypeFlagsConnectionString + + typStr := GetProjectEnvTypeFlagsConnectionString1(typ) + flagsConnectionString.Type = typStr return GetProjectEnvContentHintUnion1{ - GetProjectEnvContentHintFlagsConnectionString1: &getProjectEnvContentHintFlagsConnectionString1, + GetProjectEnvContentHintFlagsConnectionString1: &flagsConnectionString, Type: typ, } } func (u *GetProjectEnvContentHintUnion1) UnmarshalJSON(data []byte) error { - var getProjectEnvContentHintIntegrationStoreSecret1 GetProjectEnvContentHintIntegrationStoreSecret1 = GetProjectEnvContentHintIntegrationStoreSecret1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintIntegrationStoreSecret1, "", true, nil); err == nil { - u.GetProjectEnvContentHintIntegrationStoreSecret1 = &getProjectEnvContentHintIntegrationStoreSecret1 - u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintIntegrationStoreSecret1 - return nil + type discriminator struct { + Type string `json:"type"` } - var getProjectEnvContentHintRedisURL1 GetProjectEnvContentHintRedisURL1 = GetProjectEnvContentHintRedisURL1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisURL1, "", true, nil); err == nil { - u.GetProjectEnvContentHintRedisURL1 = &getProjectEnvContentHintRedisURL1 - u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintRedisURL1 - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getProjectEnvContentHintRedisRestAPIURL1 GetProjectEnvContentHintRedisRestAPIURL1 = GetProjectEnvContentHintRedisRestAPIURL1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIURL1, "", true, nil); err == nil { - u.GetProjectEnvContentHintRedisRestAPIURL1 = &getProjectEnvContentHintRedisRestAPIURL1 - u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintRedisRestAPIURL1 + switch dis.Type { + case "redis-url": + getProjectEnvContentHintRedisURL1 := new(GetProjectEnvContentHintRedisURL1) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisURL1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-url) type GetProjectEnvContentHintRedisURL1 within GetProjectEnvContentHintUnion1: %w", string(data), err) + } + + u.GetProjectEnvContentHintRedisURL1 = getProjectEnvContentHintRedisURL1 + u.Type = GetProjectEnvContentHintUnion1TypeRedisURL return nil - } + case "redis-rest-api-url": + getProjectEnvContentHintRedisRestAPIURL1 := new(GetProjectEnvContentHintRedisRestAPIURL1) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIURL1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-url) type GetProjectEnvContentHintRedisRestAPIURL1 within GetProjectEnvContentHintUnion1: %w", string(data), err) + } - var getProjectEnvContentHintRedisRestAPIToken1 GetProjectEnvContentHintRedisRestAPIToken1 = GetProjectEnvContentHintRedisRestAPIToken1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIToken1, "", true, nil); err == nil { - u.GetProjectEnvContentHintRedisRestAPIToken1 = &getProjectEnvContentHintRedisRestAPIToken1 - u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintRedisRestAPIToken1 + u.GetProjectEnvContentHintRedisRestAPIURL1 = getProjectEnvContentHintRedisRestAPIURL1 + u.Type = GetProjectEnvContentHintUnion1TypeRedisRestAPIURL return nil - } + case "redis-rest-api-token": + getProjectEnvContentHintRedisRestAPIToken1 := new(GetProjectEnvContentHintRedisRestAPIToken1) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIToken1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-token) type GetProjectEnvContentHintRedisRestAPIToken1 within GetProjectEnvContentHintUnion1: %w", string(data), err) + } - var getProjectEnvContentHintRedisRestAPIReadOnlyToken1 GetProjectEnvContentHintRedisRestAPIReadOnlyToken1 = GetProjectEnvContentHintRedisRestAPIReadOnlyToken1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIReadOnlyToken1, "", true, nil); err == nil { - u.GetProjectEnvContentHintRedisRestAPIReadOnlyToken1 = &getProjectEnvContentHintRedisRestAPIReadOnlyToken1 - u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintRedisRestAPIReadOnlyToken1 + u.GetProjectEnvContentHintRedisRestAPIToken1 = getProjectEnvContentHintRedisRestAPIToken1 + u.Type = GetProjectEnvContentHintUnion1TypeRedisRestAPIToken return nil - } + case "redis-rest-api-read-only-token": + getProjectEnvContentHintRedisRestAPIReadOnlyToken1 := new(GetProjectEnvContentHintRedisRestAPIReadOnlyToken1) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIReadOnlyToken1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-read-only-token) type GetProjectEnvContentHintRedisRestAPIReadOnlyToken1 within GetProjectEnvContentHintUnion1: %w", string(data), err) + } - var getProjectEnvContentHintBlobReadWriteToken1 GetProjectEnvContentHintBlobReadWriteToken1 = GetProjectEnvContentHintBlobReadWriteToken1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintBlobReadWriteToken1, "", true, nil); err == nil { - u.GetProjectEnvContentHintBlobReadWriteToken1 = &getProjectEnvContentHintBlobReadWriteToken1 - u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintBlobReadWriteToken1 + u.GetProjectEnvContentHintRedisRestAPIReadOnlyToken1 = getProjectEnvContentHintRedisRestAPIReadOnlyToken1 + u.Type = GetProjectEnvContentHintUnion1TypeRedisRestAPIReadOnlyToken return nil - } + case "blob-read-write-token": + getProjectEnvContentHintBlobReadWriteToken1 := new(GetProjectEnvContentHintBlobReadWriteToken1) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintBlobReadWriteToken1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == blob-read-write-token) type GetProjectEnvContentHintBlobReadWriteToken1 within GetProjectEnvContentHintUnion1: %w", string(data), err) + } - var getProjectEnvContentHintPostgresURL1 GetProjectEnvContentHintPostgresURL1 = GetProjectEnvContentHintPostgresURL1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURL1, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresURL1 = &getProjectEnvContentHintPostgresURL1 - u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresURL1 + u.GetProjectEnvContentHintBlobReadWriteToken1 = getProjectEnvContentHintBlobReadWriteToken1 + u.Type = GetProjectEnvContentHintUnion1TypeBlobReadWriteToken return nil - } + case "postgres-url": + getProjectEnvContentHintPostgresURL1 := new(GetProjectEnvContentHintPostgresURL1) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURL1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url) type GetProjectEnvContentHintPostgresURL1 within GetProjectEnvContentHintUnion1: %w", string(data), err) + } - var getProjectEnvContentHintPostgresURLNonPooling1 GetProjectEnvContentHintPostgresURLNonPooling1 = GetProjectEnvContentHintPostgresURLNonPooling1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNonPooling1, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresURLNonPooling1 = &getProjectEnvContentHintPostgresURLNonPooling1 - u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresURLNonPooling1 + u.GetProjectEnvContentHintPostgresURL1 = getProjectEnvContentHintPostgresURL1 + u.Type = GetProjectEnvContentHintUnion1TypePostgresURL return nil - } + case "postgres-url-non-pooling": + getProjectEnvContentHintPostgresURLNonPooling1 := new(GetProjectEnvContentHintPostgresURLNonPooling1) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNonPooling1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-non-pooling) type GetProjectEnvContentHintPostgresURLNonPooling1 within GetProjectEnvContentHintUnion1: %w", string(data), err) + } - var getProjectEnvContentHintPostgresPrismaURL1 GetProjectEnvContentHintPostgresPrismaURL1 = GetProjectEnvContentHintPostgresPrismaURL1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPrismaURL1, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresPrismaURL1 = &getProjectEnvContentHintPostgresPrismaURL1 - u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresPrismaURL1 + u.GetProjectEnvContentHintPostgresURLNonPooling1 = getProjectEnvContentHintPostgresURLNonPooling1 + u.Type = GetProjectEnvContentHintUnion1TypePostgresURLNonPooling return nil - } + case "postgres-prisma-url": + getProjectEnvContentHintPostgresPrismaURL1 := new(GetProjectEnvContentHintPostgresPrismaURL1) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPrismaURL1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-prisma-url) type GetProjectEnvContentHintPostgresPrismaURL1 within GetProjectEnvContentHintUnion1: %w", string(data), err) + } - var getProjectEnvContentHintPostgresUser1 GetProjectEnvContentHintPostgresUser1 = GetProjectEnvContentHintPostgresUser1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresUser1, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresUser1 = &getProjectEnvContentHintPostgresUser1 - u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresUser1 + u.GetProjectEnvContentHintPostgresPrismaURL1 = getProjectEnvContentHintPostgresPrismaURL1 + u.Type = GetProjectEnvContentHintUnion1TypePostgresPrismaURL return nil - } + case "postgres-user": + getProjectEnvContentHintPostgresUser1 := new(GetProjectEnvContentHintPostgresUser1) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresUser1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-user) type GetProjectEnvContentHintPostgresUser1 within GetProjectEnvContentHintUnion1: %w", string(data), err) + } - var getProjectEnvContentHintPostgresHost1 GetProjectEnvContentHintPostgresHost1 = GetProjectEnvContentHintPostgresHost1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresHost1, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresHost1 = &getProjectEnvContentHintPostgresHost1 - u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresHost1 + u.GetProjectEnvContentHintPostgresUser1 = getProjectEnvContentHintPostgresUser1 + u.Type = GetProjectEnvContentHintUnion1TypePostgresUser return nil - } + case "postgres-host": + getProjectEnvContentHintPostgresHost1 := new(GetProjectEnvContentHintPostgresHost1) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresHost1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-host) type GetProjectEnvContentHintPostgresHost1 within GetProjectEnvContentHintUnion1: %w", string(data), err) + } - var getProjectEnvContentHintPostgresPassword1 GetProjectEnvContentHintPostgresPassword1 = GetProjectEnvContentHintPostgresPassword1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPassword1, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresPassword1 = &getProjectEnvContentHintPostgresPassword1 - u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresPassword1 + u.GetProjectEnvContentHintPostgresHost1 = getProjectEnvContentHintPostgresHost1 + u.Type = GetProjectEnvContentHintUnion1TypePostgresHost return nil - } + case "postgres-password": + getProjectEnvContentHintPostgresPassword1 := new(GetProjectEnvContentHintPostgresPassword1) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPassword1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-password) type GetProjectEnvContentHintPostgresPassword1 within GetProjectEnvContentHintUnion1: %w", string(data), err) + } - var getProjectEnvContentHintPostgresDatabase1 GetProjectEnvContentHintPostgresDatabase1 = GetProjectEnvContentHintPostgresDatabase1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresDatabase1, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresDatabase1 = &getProjectEnvContentHintPostgresDatabase1 - u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresDatabase1 + u.GetProjectEnvContentHintPostgresPassword1 = getProjectEnvContentHintPostgresPassword1 + u.Type = GetProjectEnvContentHintUnion1TypePostgresPassword return nil - } + case "postgres-database": + getProjectEnvContentHintPostgresDatabase1 := new(GetProjectEnvContentHintPostgresDatabase1) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresDatabase1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-database) type GetProjectEnvContentHintPostgresDatabase1 within GetProjectEnvContentHintUnion1: %w", string(data), err) + } - var getProjectEnvContentHintPostgresURLNoSsl1 GetProjectEnvContentHintPostgresURLNoSsl1 = GetProjectEnvContentHintPostgresURLNoSsl1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNoSsl1, "", true, nil); err == nil { - u.GetProjectEnvContentHintPostgresURLNoSsl1 = &getProjectEnvContentHintPostgresURLNoSsl1 - u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresURLNoSsl1 + u.GetProjectEnvContentHintPostgresDatabase1 = getProjectEnvContentHintPostgresDatabase1 + u.Type = GetProjectEnvContentHintUnion1TypePostgresDatabase return nil - } + case "postgres-url-no-ssl": + getProjectEnvContentHintPostgresURLNoSsl1 := new(GetProjectEnvContentHintPostgresURLNoSsl1) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNoSsl1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-no-ssl) type GetProjectEnvContentHintPostgresURLNoSsl1 within GetProjectEnvContentHintUnion1: %w", string(data), err) + } + + u.GetProjectEnvContentHintPostgresURLNoSsl1 = getProjectEnvContentHintPostgresURLNoSsl1 + u.Type = GetProjectEnvContentHintUnion1TypePostgresURLNoSsl + return nil + case "integration-store-secret": + getProjectEnvContentHintIntegrationStoreSecret1 := new(GetProjectEnvContentHintIntegrationStoreSecret1) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintIntegrationStoreSecret1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == integration-store-secret) type GetProjectEnvContentHintIntegrationStoreSecret1 within GetProjectEnvContentHintUnion1: %w", string(data), err) + } + + u.GetProjectEnvContentHintIntegrationStoreSecret1 = getProjectEnvContentHintIntegrationStoreSecret1 + u.Type = GetProjectEnvContentHintUnion1TypeIntegrationStoreSecret + return nil + case "flags-connection-string": + getProjectEnvContentHintFlagsConnectionString1 := new(GetProjectEnvContentHintFlagsConnectionString1) + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintFlagsConnectionString1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == flags-connection-string) type GetProjectEnvContentHintFlagsConnectionString1 within GetProjectEnvContentHintUnion1: %w", string(data), err) + } - var getProjectEnvContentHintFlagsConnectionString1 GetProjectEnvContentHintFlagsConnectionString1 = GetProjectEnvContentHintFlagsConnectionString1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintFlagsConnectionString1, "", true, nil); err == nil { - u.GetProjectEnvContentHintFlagsConnectionString1 = &getProjectEnvContentHintFlagsConnectionString1 - u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintFlagsConnectionString1 + u.GetProjectEnvContentHintFlagsConnectionString1 = getProjectEnvContentHintFlagsConnectionString1 + u.Type = GetProjectEnvContentHintUnion1TypeFlagsConnectionString return nil } @@ -4640,6 +5111,111 @@ func (o *GetProjectEnvResponseBody1) GetContentHint() *GetProjectEnvContentHintU return o.ContentHint } +func (o *GetProjectEnvResponseBody1) GetContentHintRedisURL() *GetProjectEnvContentHintRedisURL1 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintRedisURL1 + } + return nil +} + +func (o *GetProjectEnvResponseBody1) GetContentHintRedisRestAPIURL() *GetProjectEnvContentHintRedisRestAPIURL1 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintRedisRestAPIURL1 + } + return nil +} + +func (o *GetProjectEnvResponseBody1) GetContentHintRedisRestAPIToken() *GetProjectEnvContentHintRedisRestAPIToken1 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintRedisRestAPIToken1 + } + return nil +} + +func (o *GetProjectEnvResponseBody1) GetContentHintRedisRestAPIReadOnlyToken() *GetProjectEnvContentHintRedisRestAPIReadOnlyToken1 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintRedisRestAPIReadOnlyToken1 + } + return nil +} + +func (o *GetProjectEnvResponseBody1) GetContentHintBlobReadWriteToken() *GetProjectEnvContentHintBlobReadWriteToken1 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintBlobReadWriteToken1 + } + return nil +} + +func (o *GetProjectEnvResponseBody1) GetContentHintPostgresURL() *GetProjectEnvContentHintPostgresURL1 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresURL1 + } + return nil +} + +func (o *GetProjectEnvResponseBody1) GetContentHintPostgresURLNonPooling() *GetProjectEnvContentHintPostgresURLNonPooling1 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresURLNonPooling1 + } + return nil +} + +func (o *GetProjectEnvResponseBody1) GetContentHintPostgresPrismaURL() *GetProjectEnvContentHintPostgresPrismaURL1 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresPrismaURL1 + } + return nil +} + +func (o *GetProjectEnvResponseBody1) GetContentHintPostgresUser() *GetProjectEnvContentHintPostgresUser1 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresUser1 + } + return nil +} + +func (o *GetProjectEnvResponseBody1) GetContentHintPostgresHost() *GetProjectEnvContentHintPostgresHost1 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresHost1 + } + return nil +} + +func (o *GetProjectEnvResponseBody1) GetContentHintPostgresPassword() *GetProjectEnvContentHintPostgresPassword1 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresPassword1 + } + return nil +} + +func (o *GetProjectEnvResponseBody1) GetContentHintPostgresDatabase() *GetProjectEnvContentHintPostgresDatabase1 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresDatabase1 + } + return nil +} + +func (o *GetProjectEnvResponseBody1) GetContentHintPostgresURLNoSsl() *GetProjectEnvContentHintPostgresURLNoSsl1 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintPostgresURLNoSsl1 + } + return nil +} + +func (o *GetProjectEnvResponseBody1) GetContentHintIntegrationStoreSecret() *GetProjectEnvContentHintIntegrationStoreSecret1 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintIntegrationStoreSecret1 + } + return nil +} + +func (o *GetProjectEnvResponseBody1) GetContentHintFlagsConnectionString() *GetProjectEnvContentHintFlagsConnectionString1 { + if v := o.GetContentHint(); v != nil { + return v.GetProjectEnvContentHintFlagsConnectionString1 + } + return nil +} + func (o *GetProjectEnvResponseBody1) GetInternalContentHint() *GetProjectEnvInternalContentHint1 { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getprojects.go b/src/__tests__/mockserver/internal/sdk/models/operations/getprojects.go index bca48563..8b58f06f 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getprojects.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getprojects.go @@ -1652,21 +1652,21 @@ func (o *GetProjectsContentHintRedisURL) GetStoreID() string { type GetProjectsContentHintUnionType string const ( - GetProjectsContentHintUnionTypeGetProjectsContentHintRedisURL GetProjectsContentHintUnionType = "getProjects_contentHint_RedisURL" - GetProjectsContentHintUnionTypeGetProjectsContentHintRedisRestAPIURL GetProjectsContentHintUnionType = "getProjects_contentHint_RedisRestAPIURL" - GetProjectsContentHintUnionTypeGetProjectsContentHintRedisRestAPIToken GetProjectsContentHintUnionType = "getProjects_contentHint_RedisRestAPIToken" - GetProjectsContentHintUnionTypeGetProjectsContentHintRedisRestAPIReadOnlyToken GetProjectsContentHintUnionType = "getProjects_contentHint_RedisRestAPIReadOnlyToken" - GetProjectsContentHintUnionTypeGetProjectsContentHintBlobReadWriteToken GetProjectsContentHintUnionType = "getProjects_contentHint_BlobReadWriteToken" - GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresURL GetProjectsContentHintUnionType = "getProjects_contentHint_PostgresURL" - GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresURLNonPooling GetProjectsContentHintUnionType = "getProjects_contentHint_PostgresURLNonPooling" - GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresPrismaURL GetProjectsContentHintUnionType = "getProjects_contentHint_PostgresPrismaURL" - GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresUser GetProjectsContentHintUnionType = "getProjects_contentHint_PostgresUser" - GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresHost GetProjectsContentHintUnionType = "getProjects_contentHint_PostgresHost" - GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresPassword GetProjectsContentHintUnionType = "getProjects_contentHint_PostgresPassword" - GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresDatabase GetProjectsContentHintUnionType = "getProjects_contentHint_PostgresDatabase" - GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresURLNoSsl GetProjectsContentHintUnionType = "getProjects_contentHint_PostgresURLNoSsl" - GetProjectsContentHintUnionTypeGetProjectsContentHintIntegrationStoreSecret GetProjectsContentHintUnionType = "getProjects_contentHint_IntegrationStoreSecret" - GetProjectsContentHintUnionTypeGetProjectsContentHintFlagsConnectionString GetProjectsContentHintUnionType = "getProjects_contentHint_FlagsConnectionString" + GetProjectsContentHintUnionTypeRedisURL GetProjectsContentHintUnionType = "redis-url" + GetProjectsContentHintUnionTypeRedisRestAPIURL GetProjectsContentHintUnionType = "redis-rest-api-url" + GetProjectsContentHintUnionTypeRedisRestAPIToken GetProjectsContentHintUnionType = "redis-rest-api-token" + GetProjectsContentHintUnionTypeRedisRestAPIReadOnlyToken GetProjectsContentHintUnionType = "redis-rest-api-read-only-token" + GetProjectsContentHintUnionTypeBlobReadWriteToken GetProjectsContentHintUnionType = "blob-read-write-token" + GetProjectsContentHintUnionTypePostgresURL GetProjectsContentHintUnionType = "postgres-url" + GetProjectsContentHintUnionTypePostgresURLNonPooling GetProjectsContentHintUnionType = "postgres-url-non-pooling" + GetProjectsContentHintUnionTypePostgresPrismaURL GetProjectsContentHintUnionType = "postgres-prisma-url" + GetProjectsContentHintUnionTypePostgresUser GetProjectsContentHintUnionType = "postgres-user" + GetProjectsContentHintUnionTypePostgresHost GetProjectsContentHintUnionType = "postgres-host" + GetProjectsContentHintUnionTypePostgresPassword GetProjectsContentHintUnionType = "postgres-password" + GetProjectsContentHintUnionTypePostgresDatabase GetProjectsContentHintUnionType = "postgres-database" + GetProjectsContentHintUnionTypePostgresURLNoSsl GetProjectsContentHintUnionType = "postgres-url-no-ssl" + GetProjectsContentHintUnionTypeIntegrationStoreSecret GetProjectsContentHintUnionType = "integration-store-secret" + GetProjectsContentHintUnionTypeFlagsConnectionString GetProjectsContentHintUnionType = "flags-connection-string" ) type GetProjectsContentHintUnion struct { @@ -1689,245 +1689,332 @@ type GetProjectsContentHintUnion struct { Type GetProjectsContentHintUnionType } -func CreateGetProjectsContentHintUnionGetProjectsContentHintRedisURL(getProjectsContentHintRedisURL GetProjectsContentHintRedisURL) GetProjectsContentHintUnion { - typ := GetProjectsContentHintUnionTypeGetProjectsContentHintRedisURL +func CreateGetProjectsContentHintUnionRedisURL(redisURL GetProjectsContentHintRedisURL) GetProjectsContentHintUnion { + typ := GetProjectsContentHintUnionTypeRedisURL + + typStr := GetProjectsTypeRedisURL(typ) + redisURL.Type = typStr return GetProjectsContentHintUnion{ - GetProjectsContentHintRedisURL: &getProjectsContentHintRedisURL, + GetProjectsContentHintRedisURL: &redisURL, Type: typ, } } -func CreateGetProjectsContentHintUnionGetProjectsContentHintRedisRestAPIURL(getProjectsContentHintRedisRestAPIURL GetProjectsContentHintRedisRestAPIURL) GetProjectsContentHintUnion { - typ := GetProjectsContentHintUnionTypeGetProjectsContentHintRedisRestAPIURL +func CreateGetProjectsContentHintUnionRedisRestAPIURL(redisRestAPIURL GetProjectsContentHintRedisRestAPIURL) GetProjectsContentHintUnion { + typ := GetProjectsContentHintUnionTypeRedisRestAPIURL + + typStr := GetProjectsTypeRedisRestAPIURL(typ) + redisRestAPIURL.Type = typStr return GetProjectsContentHintUnion{ - GetProjectsContentHintRedisRestAPIURL: &getProjectsContentHintRedisRestAPIURL, + GetProjectsContentHintRedisRestAPIURL: &redisRestAPIURL, Type: typ, } } -func CreateGetProjectsContentHintUnionGetProjectsContentHintRedisRestAPIToken(getProjectsContentHintRedisRestAPIToken GetProjectsContentHintRedisRestAPIToken) GetProjectsContentHintUnion { - typ := GetProjectsContentHintUnionTypeGetProjectsContentHintRedisRestAPIToken +func CreateGetProjectsContentHintUnionRedisRestAPIToken(redisRestAPIToken GetProjectsContentHintRedisRestAPIToken) GetProjectsContentHintUnion { + typ := GetProjectsContentHintUnionTypeRedisRestAPIToken + + typStr := GetProjectsTypeRedisRestAPIToken(typ) + redisRestAPIToken.Type = typStr return GetProjectsContentHintUnion{ - GetProjectsContentHintRedisRestAPIToken: &getProjectsContentHintRedisRestAPIToken, + GetProjectsContentHintRedisRestAPIToken: &redisRestAPIToken, Type: typ, } } -func CreateGetProjectsContentHintUnionGetProjectsContentHintRedisRestAPIReadOnlyToken(getProjectsContentHintRedisRestAPIReadOnlyToken GetProjectsContentHintRedisRestAPIReadOnlyToken) GetProjectsContentHintUnion { - typ := GetProjectsContentHintUnionTypeGetProjectsContentHintRedisRestAPIReadOnlyToken +func CreateGetProjectsContentHintUnionRedisRestAPIReadOnlyToken(redisRestAPIReadOnlyToken GetProjectsContentHintRedisRestAPIReadOnlyToken) GetProjectsContentHintUnion { + typ := GetProjectsContentHintUnionTypeRedisRestAPIReadOnlyToken + + typStr := GetProjectsTypeRedisRestAPIReadOnlyToken(typ) + redisRestAPIReadOnlyToken.Type = typStr return GetProjectsContentHintUnion{ - GetProjectsContentHintRedisRestAPIReadOnlyToken: &getProjectsContentHintRedisRestAPIReadOnlyToken, + GetProjectsContentHintRedisRestAPIReadOnlyToken: &redisRestAPIReadOnlyToken, Type: typ, } } -func CreateGetProjectsContentHintUnionGetProjectsContentHintBlobReadWriteToken(getProjectsContentHintBlobReadWriteToken GetProjectsContentHintBlobReadWriteToken) GetProjectsContentHintUnion { - typ := GetProjectsContentHintUnionTypeGetProjectsContentHintBlobReadWriteToken +func CreateGetProjectsContentHintUnionBlobReadWriteToken(blobReadWriteToken GetProjectsContentHintBlobReadWriteToken) GetProjectsContentHintUnion { + typ := GetProjectsContentHintUnionTypeBlobReadWriteToken + + typStr := GetProjectsTypeBlobReadWriteToken(typ) + blobReadWriteToken.Type = typStr return GetProjectsContentHintUnion{ - GetProjectsContentHintBlobReadWriteToken: &getProjectsContentHintBlobReadWriteToken, + GetProjectsContentHintBlobReadWriteToken: &blobReadWriteToken, Type: typ, } } -func CreateGetProjectsContentHintUnionGetProjectsContentHintPostgresURL(getProjectsContentHintPostgresURL GetProjectsContentHintPostgresURL) GetProjectsContentHintUnion { - typ := GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresURL +func CreateGetProjectsContentHintUnionPostgresURL(postgresURL GetProjectsContentHintPostgresURL) GetProjectsContentHintUnion { + typ := GetProjectsContentHintUnionTypePostgresURL + + typStr := GetProjectsTypePostgresURL(typ) + postgresURL.Type = typStr return GetProjectsContentHintUnion{ - GetProjectsContentHintPostgresURL: &getProjectsContentHintPostgresURL, + GetProjectsContentHintPostgresURL: &postgresURL, Type: typ, } } -func CreateGetProjectsContentHintUnionGetProjectsContentHintPostgresURLNonPooling(getProjectsContentHintPostgresURLNonPooling GetProjectsContentHintPostgresURLNonPooling) GetProjectsContentHintUnion { - typ := GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresURLNonPooling +func CreateGetProjectsContentHintUnionPostgresURLNonPooling(postgresURLNonPooling GetProjectsContentHintPostgresURLNonPooling) GetProjectsContentHintUnion { + typ := GetProjectsContentHintUnionTypePostgresURLNonPooling + + typStr := GetProjectsTypePostgresURLNonPooling(typ) + postgresURLNonPooling.Type = typStr return GetProjectsContentHintUnion{ - GetProjectsContentHintPostgresURLNonPooling: &getProjectsContentHintPostgresURLNonPooling, + GetProjectsContentHintPostgresURLNonPooling: &postgresURLNonPooling, Type: typ, } } -func CreateGetProjectsContentHintUnionGetProjectsContentHintPostgresPrismaURL(getProjectsContentHintPostgresPrismaURL GetProjectsContentHintPostgresPrismaURL) GetProjectsContentHintUnion { - typ := GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresPrismaURL +func CreateGetProjectsContentHintUnionPostgresPrismaURL(postgresPrismaURL GetProjectsContentHintPostgresPrismaURL) GetProjectsContentHintUnion { + typ := GetProjectsContentHintUnionTypePostgresPrismaURL + + typStr := GetProjectsTypePostgresPrismaURL(typ) + postgresPrismaURL.Type = typStr return GetProjectsContentHintUnion{ - GetProjectsContentHintPostgresPrismaURL: &getProjectsContentHintPostgresPrismaURL, + GetProjectsContentHintPostgresPrismaURL: &postgresPrismaURL, Type: typ, } } -func CreateGetProjectsContentHintUnionGetProjectsContentHintPostgresUser(getProjectsContentHintPostgresUser GetProjectsContentHintPostgresUser) GetProjectsContentHintUnion { - typ := GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresUser +func CreateGetProjectsContentHintUnionPostgresUser(postgresUser GetProjectsContentHintPostgresUser) GetProjectsContentHintUnion { + typ := GetProjectsContentHintUnionTypePostgresUser + + typStr := GetProjectsTypePostgresUser(typ) + postgresUser.Type = typStr return GetProjectsContentHintUnion{ - GetProjectsContentHintPostgresUser: &getProjectsContentHintPostgresUser, + GetProjectsContentHintPostgresUser: &postgresUser, Type: typ, } } -func CreateGetProjectsContentHintUnionGetProjectsContentHintPostgresHost(getProjectsContentHintPostgresHost GetProjectsContentHintPostgresHost) GetProjectsContentHintUnion { - typ := GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresHost +func CreateGetProjectsContentHintUnionPostgresHost(postgresHost GetProjectsContentHintPostgresHost) GetProjectsContentHintUnion { + typ := GetProjectsContentHintUnionTypePostgresHost + + typStr := GetProjectsTypePostgresHost(typ) + postgresHost.Type = typStr return GetProjectsContentHintUnion{ - GetProjectsContentHintPostgresHost: &getProjectsContentHintPostgresHost, + GetProjectsContentHintPostgresHost: &postgresHost, Type: typ, } } -func CreateGetProjectsContentHintUnionGetProjectsContentHintPostgresPassword(getProjectsContentHintPostgresPassword GetProjectsContentHintPostgresPassword) GetProjectsContentHintUnion { - typ := GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresPassword +func CreateGetProjectsContentHintUnionPostgresPassword(postgresPassword GetProjectsContentHintPostgresPassword) GetProjectsContentHintUnion { + typ := GetProjectsContentHintUnionTypePostgresPassword + + typStr := GetProjectsTypePostgresPassword(typ) + postgresPassword.Type = typStr return GetProjectsContentHintUnion{ - GetProjectsContentHintPostgresPassword: &getProjectsContentHintPostgresPassword, + GetProjectsContentHintPostgresPassword: &postgresPassword, Type: typ, } } -func CreateGetProjectsContentHintUnionGetProjectsContentHintPostgresDatabase(getProjectsContentHintPostgresDatabase GetProjectsContentHintPostgresDatabase) GetProjectsContentHintUnion { - typ := GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresDatabase +func CreateGetProjectsContentHintUnionPostgresDatabase(postgresDatabase GetProjectsContentHintPostgresDatabase) GetProjectsContentHintUnion { + typ := GetProjectsContentHintUnionTypePostgresDatabase + + typStr := GetProjectsTypePostgresDatabase(typ) + postgresDatabase.Type = typStr return GetProjectsContentHintUnion{ - GetProjectsContentHintPostgresDatabase: &getProjectsContentHintPostgresDatabase, + GetProjectsContentHintPostgresDatabase: &postgresDatabase, Type: typ, } } -func CreateGetProjectsContentHintUnionGetProjectsContentHintPostgresURLNoSsl(getProjectsContentHintPostgresURLNoSsl GetProjectsContentHintPostgresURLNoSsl) GetProjectsContentHintUnion { - typ := GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresURLNoSsl +func CreateGetProjectsContentHintUnionPostgresURLNoSsl(postgresURLNoSsl GetProjectsContentHintPostgresURLNoSsl) GetProjectsContentHintUnion { + typ := GetProjectsContentHintUnionTypePostgresURLNoSsl + + typStr := GetProjectsTypePostgresURLNoSsl(typ) + postgresURLNoSsl.Type = typStr return GetProjectsContentHintUnion{ - GetProjectsContentHintPostgresURLNoSsl: &getProjectsContentHintPostgresURLNoSsl, + GetProjectsContentHintPostgresURLNoSsl: &postgresURLNoSsl, Type: typ, } } -func CreateGetProjectsContentHintUnionGetProjectsContentHintIntegrationStoreSecret(getProjectsContentHintIntegrationStoreSecret GetProjectsContentHintIntegrationStoreSecret) GetProjectsContentHintUnion { - typ := GetProjectsContentHintUnionTypeGetProjectsContentHintIntegrationStoreSecret +func CreateGetProjectsContentHintUnionIntegrationStoreSecret(integrationStoreSecret GetProjectsContentHintIntegrationStoreSecret) GetProjectsContentHintUnion { + typ := GetProjectsContentHintUnionTypeIntegrationStoreSecret + + typStr := GetProjectsTypeIntegrationStoreSecret(typ) + integrationStoreSecret.Type = typStr return GetProjectsContentHintUnion{ - GetProjectsContentHintIntegrationStoreSecret: &getProjectsContentHintIntegrationStoreSecret, + GetProjectsContentHintIntegrationStoreSecret: &integrationStoreSecret, Type: typ, } } -func CreateGetProjectsContentHintUnionGetProjectsContentHintFlagsConnectionString(getProjectsContentHintFlagsConnectionString GetProjectsContentHintFlagsConnectionString) GetProjectsContentHintUnion { - typ := GetProjectsContentHintUnionTypeGetProjectsContentHintFlagsConnectionString +func CreateGetProjectsContentHintUnionFlagsConnectionString(flagsConnectionString GetProjectsContentHintFlagsConnectionString) GetProjectsContentHintUnion { + typ := GetProjectsContentHintUnionTypeFlagsConnectionString + + typStr := GetProjectsTypeFlagsConnectionString(typ) + flagsConnectionString.Type = typStr return GetProjectsContentHintUnion{ - GetProjectsContentHintFlagsConnectionString: &getProjectsContentHintFlagsConnectionString, + GetProjectsContentHintFlagsConnectionString: &flagsConnectionString, Type: typ, } } func (u *GetProjectsContentHintUnion) UnmarshalJSON(data []byte) error { - var getProjectsContentHintIntegrationStoreSecret GetProjectsContentHintIntegrationStoreSecret = GetProjectsContentHintIntegrationStoreSecret{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintIntegrationStoreSecret, "", true, nil); err == nil { - u.GetProjectsContentHintIntegrationStoreSecret = &getProjectsContentHintIntegrationStoreSecret - u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintIntegrationStoreSecret - return nil + type discriminator struct { + Type string `json:"type"` } - var getProjectsContentHintRedisURL GetProjectsContentHintRedisURL = GetProjectsContentHintRedisURL{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintRedisURL, "", true, nil); err == nil { - u.GetProjectsContentHintRedisURL = &getProjectsContentHintRedisURL - u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintRedisURL - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getProjectsContentHintRedisRestAPIURL GetProjectsContentHintRedisRestAPIURL = GetProjectsContentHintRedisRestAPIURL{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintRedisRestAPIURL, "", true, nil); err == nil { - u.GetProjectsContentHintRedisRestAPIURL = &getProjectsContentHintRedisRestAPIURL - u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintRedisRestAPIURL + switch dis.Type { + case "redis-url": + getProjectsContentHintRedisURL := new(GetProjectsContentHintRedisURL) + if err := utils.UnmarshalJSON(data, &getProjectsContentHintRedisURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-url) type GetProjectsContentHintRedisURL within GetProjectsContentHintUnion: %w", string(data), err) + } + + u.GetProjectsContentHintRedisURL = getProjectsContentHintRedisURL + u.Type = GetProjectsContentHintUnionTypeRedisURL return nil - } + case "redis-rest-api-url": + getProjectsContentHintRedisRestAPIURL := new(GetProjectsContentHintRedisRestAPIURL) + if err := utils.UnmarshalJSON(data, &getProjectsContentHintRedisRestAPIURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-url) type GetProjectsContentHintRedisRestAPIURL within GetProjectsContentHintUnion: %w", string(data), err) + } - var getProjectsContentHintRedisRestAPIToken GetProjectsContentHintRedisRestAPIToken = GetProjectsContentHintRedisRestAPIToken{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintRedisRestAPIToken, "", true, nil); err == nil { - u.GetProjectsContentHintRedisRestAPIToken = &getProjectsContentHintRedisRestAPIToken - u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintRedisRestAPIToken + u.GetProjectsContentHintRedisRestAPIURL = getProjectsContentHintRedisRestAPIURL + u.Type = GetProjectsContentHintUnionTypeRedisRestAPIURL return nil - } + case "redis-rest-api-token": + getProjectsContentHintRedisRestAPIToken := new(GetProjectsContentHintRedisRestAPIToken) + if err := utils.UnmarshalJSON(data, &getProjectsContentHintRedisRestAPIToken, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-token) type GetProjectsContentHintRedisRestAPIToken within GetProjectsContentHintUnion: %w", string(data), err) + } - var getProjectsContentHintRedisRestAPIReadOnlyToken GetProjectsContentHintRedisRestAPIReadOnlyToken = GetProjectsContentHintRedisRestAPIReadOnlyToken{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintRedisRestAPIReadOnlyToken, "", true, nil); err == nil { - u.GetProjectsContentHintRedisRestAPIReadOnlyToken = &getProjectsContentHintRedisRestAPIReadOnlyToken - u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintRedisRestAPIReadOnlyToken + u.GetProjectsContentHintRedisRestAPIToken = getProjectsContentHintRedisRestAPIToken + u.Type = GetProjectsContentHintUnionTypeRedisRestAPIToken return nil - } + case "redis-rest-api-read-only-token": + getProjectsContentHintRedisRestAPIReadOnlyToken := new(GetProjectsContentHintRedisRestAPIReadOnlyToken) + if err := utils.UnmarshalJSON(data, &getProjectsContentHintRedisRestAPIReadOnlyToken, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-read-only-token) type GetProjectsContentHintRedisRestAPIReadOnlyToken within GetProjectsContentHintUnion: %w", string(data), err) + } - var getProjectsContentHintBlobReadWriteToken GetProjectsContentHintBlobReadWriteToken = GetProjectsContentHintBlobReadWriteToken{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintBlobReadWriteToken, "", true, nil); err == nil { - u.GetProjectsContentHintBlobReadWriteToken = &getProjectsContentHintBlobReadWriteToken - u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintBlobReadWriteToken + u.GetProjectsContentHintRedisRestAPIReadOnlyToken = getProjectsContentHintRedisRestAPIReadOnlyToken + u.Type = GetProjectsContentHintUnionTypeRedisRestAPIReadOnlyToken return nil - } + case "blob-read-write-token": + getProjectsContentHintBlobReadWriteToken := new(GetProjectsContentHintBlobReadWriteToken) + if err := utils.UnmarshalJSON(data, &getProjectsContentHintBlobReadWriteToken, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == blob-read-write-token) type GetProjectsContentHintBlobReadWriteToken within GetProjectsContentHintUnion: %w", string(data), err) + } - var getProjectsContentHintPostgresURL GetProjectsContentHintPostgresURL = GetProjectsContentHintPostgresURL{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresURL, "", true, nil); err == nil { - u.GetProjectsContentHintPostgresURL = &getProjectsContentHintPostgresURL - u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresURL + u.GetProjectsContentHintBlobReadWriteToken = getProjectsContentHintBlobReadWriteToken + u.Type = GetProjectsContentHintUnionTypeBlobReadWriteToken return nil - } + case "postgres-url": + getProjectsContentHintPostgresURL := new(GetProjectsContentHintPostgresURL) + if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url) type GetProjectsContentHintPostgresURL within GetProjectsContentHintUnion: %w", string(data), err) + } - var getProjectsContentHintPostgresURLNonPooling GetProjectsContentHintPostgresURLNonPooling = GetProjectsContentHintPostgresURLNonPooling{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresURLNonPooling, "", true, nil); err == nil { - u.GetProjectsContentHintPostgresURLNonPooling = &getProjectsContentHintPostgresURLNonPooling - u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresURLNonPooling + u.GetProjectsContentHintPostgresURL = getProjectsContentHintPostgresURL + u.Type = GetProjectsContentHintUnionTypePostgresURL return nil - } + case "postgres-url-non-pooling": + getProjectsContentHintPostgresURLNonPooling := new(GetProjectsContentHintPostgresURLNonPooling) + if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresURLNonPooling, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-non-pooling) type GetProjectsContentHintPostgresURLNonPooling within GetProjectsContentHintUnion: %w", string(data), err) + } - var getProjectsContentHintPostgresPrismaURL GetProjectsContentHintPostgresPrismaURL = GetProjectsContentHintPostgresPrismaURL{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresPrismaURL, "", true, nil); err == nil { - u.GetProjectsContentHintPostgresPrismaURL = &getProjectsContentHintPostgresPrismaURL - u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresPrismaURL + u.GetProjectsContentHintPostgresURLNonPooling = getProjectsContentHintPostgresURLNonPooling + u.Type = GetProjectsContentHintUnionTypePostgresURLNonPooling return nil - } + case "postgres-prisma-url": + getProjectsContentHintPostgresPrismaURL := new(GetProjectsContentHintPostgresPrismaURL) + if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresPrismaURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-prisma-url) type GetProjectsContentHintPostgresPrismaURL within GetProjectsContentHintUnion: %w", string(data), err) + } - var getProjectsContentHintPostgresUser GetProjectsContentHintPostgresUser = GetProjectsContentHintPostgresUser{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresUser, "", true, nil); err == nil { - u.GetProjectsContentHintPostgresUser = &getProjectsContentHintPostgresUser - u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresUser + u.GetProjectsContentHintPostgresPrismaURL = getProjectsContentHintPostgresPrismaURL + u.Type = GetProjectsContentHintUnionTypePostgresPrismaURL return nil - } + case "postgres-user": + getProjectsContentHintPostgresUser := new(GetProjectsContentHintPostgresUser) + if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresUser, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-user) type GetProjectsContentHintPostgresUser within GetProjectsContentHintUnion: %w", string(data), err) + } - var getProjectsContentHintPostgresHost GetProjectsContentHintPostgresHost = GetProjectsContentHintPostgresHost{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresHost, "", true, nil); err == nil { - u.GetProjectsContentHintPostgresHost = &getProjectsContentHintPostgresHost - u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresHost + u.GetProjectsContentHintPostgresUser = getProjectsContentHintPostgresUser + u.Type = GetProjectsContentHintUnionTypePostgresUser return nil - } + case "postgres-host": + getProjectsContentHintPostgresHost := new(GetProjectsContentHintPostgresHost) + if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresHost, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-host) type GetProjectsContentHintPostgresHost within GetProjectsContentHintUnion: %w", string(data), err) + } - var getProjectsContentHintPostgresPassword GetProjectsContentHintPostgresPassword = GetProjectsContentHintPostgresPassword{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresPassword, "", true, nil); err == nil { - u.GetProjectsContentHintPostgresPassword = &getProjectsContentHintPostgresPassword - u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresPassword + u.GetProjectsContentHintPostgresHost = getProjectsContentHintPostgresHost + u.Type = GetProjectsContentHintUnionTypePostgresHost return nil - } + case "postgres-password": + getProjectsContentHintPostgresPassword := new(GetProjectsContentHintPostgresPassword) + if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresPassword, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-password) type GetProjectsContentHintPostgresPassword within GetProjectsContentHintUnion: %w", string(data), err) + } - var getProjectsContentHintPostgresDatabase GetProjectsContentHintPostgresDatabase = GetProjectsContentHintPostgresDatabase{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresDatabase, "", true, nil); err == nil { - u.GetProjectsContentHintPostgresDatabase = &getProjectsContentHintPostgresDatabase - u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresDatabase + u.GetProjectsContentHintPostgresPassword = getProjectsContentHintPostgresPassword + u.Type = GetProjectsContentHintUnionTypePostgresPassword return nil - } + case "postgres-database": + getProjectsContentHintPostgresDatabase := new(GetProjectsContentHintPostgresDatabase) + if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresDatabase, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-database) type GetProjectsContentHintPostgresDatabase within GetProjectsContentHintUnion: %w", string(data), err) + } - var getProjectsContentHintPostgresURLNoSsl GetProjectsContentHintPostgresURLNoSsl = GetProjectsContentHintPostgresURLNoSsl{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresURLNoSsl, "", true, nil); err == nil { - u.GetProjectsContentHintPostgresURLNoSsl = &getProjectsContentHintPostgresURLNoSsl - u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresURLNoSsl + u.GetProjectsContentHintPostgresDatabase = getProjectsContentHintPostgresDatabase + u.Type = GetProjectsContentHintUnionTypePostgresDatabase return nil - } + case "postgres-url-no-ssl": + getProjectsContentHintPostgresURLNoSsl := new(GetProjectsContentHintPostgresURLNoSsl) + if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresURLNoSsl, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-no-ssl) type GetProjectsContentHintPostgresURLNoSsl within GetProjectsContentHintUnion: %w", string(data), err) + } + + u.GetProjectsContentHintPostgresURLNoSsl = getProjectsContentHintPostgresURLNoSsl + u.Type = GetProjectsContentHintUnionTypePostgresURLNoSsl + return nil + case "integration-store-secret": + getProjectsContentHintIntegrationStoreSecret := new(GetProjectsContentHintIntegrationStoreSecret) + if err := utils.UnmarshalJSON(data, &getProjectsContentHintIntegrationStoreSecret, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == integration-store-secret) type GetProjectsContentHintIntegrationStoreSecret within GetProjectsContentHintUnion: %w", string(data), err) + } + + u.GetProjectsContentHintIntegrationStoreSecret = getProjectsContentHintIntegrationStoreSecret + u.Type = GetProjectsContentHintUnionTypeIntegrationStoreSecret + return nil + case "flags-connection-string": + getProjectsContentHintFlagsConnectionString := new(GetProjectsContentHintFlagsConnectionString) + if err := utils.UnmarshalJSON(data, &getProjectsContentHintFlagsConnectionString, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == flags-connection-string) type GetProjectsContentHintFlagsConnectionString within GetProjectsContentHintUnion: %w", string(data), err) + } - var getProjectsContentHintFlagsConnectionString GetProjectsContentHintFlagsConnectionString = GetProjectsContentHintFlagsConnectionString{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintFlagsConnectionString, "", true, nil); err == nil { - u.GetProjectsContentHintFlagsConnectionString = &getProjectsContentHintFlagsConnectionString - u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintFlagsConnectionString + u.GetProjectsContentHintFlagsConnectionString = getProjectsContentHintFlagsConnectionString + u.Type = GetProjectsContentHintUnionTypeFlagsConnectionString return nil } @@ -2186,6 +2273,111 @@ func (o *GetProjectsEnv) GetContentHint() *GetProjectsContentHintUnion { return o.ContentHint } +func (o *GetProjectsEnv) GetContentHintRedisURL() *GetProjectsContentHintRedisURL { + if v := o.GetContentHint(); v != nil { + return v.GetProjectsContentHintRedisURL + } + return nil +} + +func (o *GetProjectsEnv) GetContentHintRedisRestAPIURL() *GetProjectsContentHintRedisRestAPIURL { + if v := o.GetContentHint(); v != nil { + return v.GetProjectsContentHintRedisRestAPIURL + } + return nil +} + +func (o *GetProjectsEnv) GetContentHintRedisRestAPIToken() *GetProjectsContentHintRedisRestAPIToken { + if v := o.GetContentHint(); v != nil { + return v.GetProjectsContentHintRedisRestAPIToken + } + return nil +} + +func (o *GetProjectsEnv) GetContentHintRedisRestAPIReadOnlyToken() *GetProjectsContentHintRedisRestAPIReadOnlyToken { + if v := o.GetContentHint(); v != nil { + return v.GetProjectsContentHintRedisRestAPIReadOnlyToken + } + return nil +} + +func (o *GetProjectsEnv) GetContentHintBlobReadWriteToken() *GetProjectsContentHintBlobReadWriteToken { + if v := o.GetContentHint(); v != nil { + return v.GetProjectsContentHintBlobReadWriteToken + } + return nil +} + +func (o *GetProjectsEnv) GetContentHintPostgresURL() *GetProjectsContentHintPostgresURL { + if v := o.GetContentHint(); v != nil { + return v.GetProjectsContentHintPostgresURL + } + return nil +} + +func (o *GetProjectsEnv) GetContentHintPostgresURLNonPooling() *GetProjectsContentHintPostgresURLNonPooling { + if v := o.GetContentHint(); v != nil { + return v.GetProjectsContentHintPostgresURLNonPooling + } + return nil +} + +func (o *GetProjectsEnv) GetContentHintPostgresPrismaURL() *GetProjectsContentHintPostgresPrismaURL { + if v := o.GetContentHint(); v != nil { + return v.GetProjectsContentHintPostgresPrismaURL + } + return nil +} + +func (o *GetProjectsEnv) GetContentHintPostgresUser() *GetProjectsContentHintPostgresUser { + if v := o.GetContentHint(); v != nil { + return v.GetProjectsContentHintPostgresUser + } + return nil +} + +func (o *GetProjectsEnv) GetContentHintPostgresHost() *GetProjectsContentHintPostgresHost { + if v := o.GetContentHint(); v != nil { + return v.GetProjectsContentHintPostgresHost + } + return nil +} + +func (o *GetProjectsEnv) GetContentHintPostgresPassword() *GetProjectsContentHintPostgresPassword { + if v := o.GetContentHint(); v != nil { + return v.GetProjectsContentHintPostgresPassword + } + return nil +} + +func (o *GetProjectsEnv) GetContentHintPostgresDatabase() *GetProjectsContentHintPostgresDatabase { + if v := o.GetContentHint(); v != nil { + return v.GetProjectsContentHintPostgresDatabase + } + return nil +} + +func (o *GetProjectsEnv) GetContentHintPostgresURLNoSsl() *GetProjectsContentHintPostgresURLNoSsl { + if v := o.GetContentHint(); v != nil { + return v.GetProjectsContentHintPostgresURLNoSsl + } + return nil +} + +func (o *GetProjectsEnv) GetContentHintIntegrationStoreSecret() *GetProjectsContentHintIntegrationStoreSecret { + if v := o.GetContentHint(); v != nil { + return v.GetProjectsContentHintIntegrationStoreSecret + } + return nil +} + +func (o *GetProjectsEnv) GetContentHintFlagsConnectionString() *GetProjectsContentHintFlagsConnectionString { + if v := o.GetContentHint(); v != nil { + return v.GetProjectsContentHintFlagsConnectionString + } + return nil +} + func (o *GetProjectsEnv) GetInternalContentHint() *GetProjectsInternalContentHint { if o == nil { return nil @@ -3940,11 +4132,11 @@ func (o *GetProjectsLinkGithub) GetProductionBranch() string { type GetProjectsLinkUnionType string const ( - GetProjectsLinkUnionTypeGetProjectsLinkGithub GetProjectsLinkUnionType = "getProjects_link_Github" - GetProjectsLinkUnionTypeGetProjectsLinkGithubLimited GetProjectsLinkUnionType = "getProjects_link_GithubLimited" - GetProjectsLinkUnionTypeGetProjectsLinkGithubCustomHost GetProjectsLinkUnionType = "getProjects_link_GithubCustomHost" - GetProjectsLinkUnionTypeGetProjectsLinkGitlab GetProjectsLinkUnionType = "getProjects_link_Gitlab" - GetProjectsLinkUnionTypeGetProjectsLinkBitbucket GetProjectsLinkUnionType = "getProjects_link_Bitbucket" + GetProjectsLinkUnionTypeGithub GetProjectsLinkUnionType = "github" + GetProjectsLinkUnionTypeGithubLimited GetProjectsLinkUnionType = "github-limited" + GetProjectsLinkUnionTypeGithubCustomHost GetProjectsLinkUnionType = "github-custom-host" + GetProjectsLinkUnionTypeGitlab GetProjectsLinkUnionType = "gitlab" + GetProjectsLinkUnionTypeBitbucket GetProjectsLinkUnionType = "bitbucket" ) type GetProjectsLinkUnion struct { @@ -3957,85 +4149,122 @@ type GetProjectsLinkUnion struct { Type GetProjectsLinkUnionType } -func CreateGetProjectsLinkUnionGetProjectsLinkGithub(getProjectsLinkGithub GetProjectsLinkGithub) GetProjectsLinkUnion { - typ := GetProjectsLinkUnionTypeGetProjectsLinkGithub +func CreateGetProjectsLinkUnionGithub(github GetProjectsLinkGithub) GetProjectsLinkUnion { + typ := GetProjectsLinkUnionTypeGithub + + typStr := GetProjectsTypeGithub(typ) + github.Type = typStr return GetProjectsLinkUnion{ - GetProjectsLinkGithub: &getProjectsLinkGithub, + GetProjectsLinkGithub: &github, Type: typ, } } -func CreateGetProjectsLinkUnionGetProjectsLinkGithubLimited(getProjectsLinkGithubLimited GetProjectsLinkGithubLimited) GetProjectsLinkUnion { - typ := GetProjectsLinkUnionTypeGetProjectsLinkGithubLimited +func CreateGetProjectsLinkUnionGithubLimited(githubLimited GetProjectsLinkGithubLimited) GetProjectsLinkUnion { + typ := GetProjectsLinkUnionTypeGithubLimited + + typStr := GetProjectsTypeGithubLimited(typ) + githubLimited.Type = typStr return GetProjectsLinkUnion{ - GetProjectsLinkGithubLimited: &getProjectsLinkGithubLimited, + GetProjectsLinkGithubLimited: &githubLimited, Type: typ, } } -func CreateGetProjectsLinkUnionGetProjectsLinkGithubCustomHost(getProjectsLinkGithubCustomHost GetProjectsLinkGithubCustomHost) GetProjectsLinkUnion { - typ := GetProjectsLinkUnionTypeGetProjectsLinkGithubCustomHost +func CreateGetProjectsLinkUnionGithubCustomHost(githubCustomHost GetProjectsLinkGithubCustomHost) GetProjectsLinkUnion { + typ := GetProjectsLinkUnionTypeGithubCustomHost + + typStr := GetProjectsTypeGithubCustomHost(typ) + githubCustomHost.Type = typStr return GetProjectsLinkUnion{ - GetProjectsLinkGithubCustomHost: &getProjectsLinkGithubCustomHost, + GetProjectsLinkGithubCustomHost: &githubCustomHost, Type: typ, } } -func CreateGetProjectsLinkUnionGetProjectsLinkGitlab(getProjectsLinkGitlab GetProjectsLinkGitlab) GetProjectsLinkUnion { - typ := GetProjectsLinkUnionTypeGetProjectsLinkGitlab +func CreateGetProjectsLinkUnionGitlab(gitlab GetProjectsLinkGitlab) GetProjectsLinkUnion { + typ := GetProjectsLinkUnionTypeGitlab + + typStr := GetProjectsTypeGitlab(typ) + gitlab.Type = typStr return GetProjectsLinkUnion{ - GetProjectsLinkGitlab: &getProjectsLinkGitlab, + GetProjectsLinkGitlab: &gitlab, Type: typ, } } -func CreateGetProjectsLinkUnionGetProjectsLinkBitbucket(getProjectsLinkBitbucket GetProjectsLinkBitbucket) GetProjectsLinkUnion { - typ := GetProjectsLinkUnionTypeGetProjectsLinkBitbucket +func CreateGetProjectsLinkUnionBitbucket(bitbucket GetProjectsLinkBitbucket) GetProjectsLinkUnion { + typ := GetProjectsLinkUnionTypeBitbucket + + typStr := GetProjectsTypeBitbucket(typ) + bitbucket.Type = typStr return GetProjectsLinkUnion{ - GetProjectsLinkBitbucket: &getProjectsLinkBitbucket, + GetProjectsLinkBitbucket: &bitbucket, Type: typ, } } func (u *GetProjectsLinkUnion) UnmarshalJSON(data []byte) error { - var getProjectsLinkGitlab GetProjectsLinkGitlab = GetProjectsLinkGitlab{} - if err := utils.UnmarshalJSON(data, &getProjectsLinkGitlab, "", true, nil); err == nil { - u.GetProjectsLinkGitlab = &getProjectsLinkGitlab - u.Type = GetProjectsLinkUnionTypeGetProjectsLinkGitlab - return nil + type discriminator struct { + Type string `json:"type"` } - var getProjectsLinkBitbucket GetProjectsLinkBitbucket = GetProjectsLinkBitbucket{} - if err := utils.UnmarshalJSON(data, &getProjectsLinkBitbucket, "", true, nil); err == nil { - u.GetProjectsLinkBitbucket = &getProjectsLinkBitbucket - u.Type = GetProjectsLinkUnionTypeGetProjectsLinkBitbucket - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getProjectsLinkGithubCustomHost GetProjectsLinkGithubCustomHost = GetProjectsLinkGithubCustomHost{} - if err := utils.UnmarshalJSON(data, &getProjectsLinkGithubCustomHost, "", true, nil); err == nil { - u.GetProjectsLinkGithubCustomHost = &getProjectsLinkGithubCustomHost - u.Type = GetProjectsLinkUnionTypeGetProjectsLinkGithubCustomHost + switch dis.Type { + case "github": + getProjectsLinkGithub := new(GetProjectsLinkGithub) + if err := utils.UnmarshalJSON(data, &getProjectsLinkGithub, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == github) type GetProjectsLinkGithub within GetProjectsLinkUnion: %w", string(data), err) + } + + u.GetProjectsLinkGithub = getProjectsLinkGithub + u.Type = GetProjectsLinkUnionTypeGithub return nil - } + case "github-limited": + getProjectsLinkGithubLimited := new(GetProjectsLinkGithubLimited) + if err := utils.UnmarshalJSON(data, &getProjectsLinkGithubLimited, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == github-limited) type GetProjectsLinkGithubLimited within GetProjectsLinkUnion: %w", string(data), err) + } - var getProjectsLinkGithub GetProjectsLinkGithub = GetProjectsLinkGithub{} - if err := utils.UnmarshalJSON(data, &getProjectsLinkGithub, "", true, nil); err == nil { - u.GetProjectsLinkGithub = &getProjectsLinkGithub - u.Type = GetProjectsLinkUnionTypeGetProjectsLinkGithub + u.GetProjectsLinkGithubLimited = getProjectsLinkGithubLimited + u.Type = GetProjectsLinkUnionTypeGithubLimited return nil - } + case "github-custom-host": + getProjectsLinkGithubCustomHost := new(GetProjectsLinkGithubCustomHost) + if err := utils.UnmarshalJSON(data, &getProjectsLinkGithubCustomHost, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == github-custom-host) type GetProjectsLinkGithubCustomHost within GetProjectsLinkUnion: %w", string(data), err) + } + + u.GetProjectsLinkGithubCustomHost = getProjectsLinkGithubCustomHost + u.Type = GetProjectsLinkUnionTypeGithubCustomHost + return nil + case "gitlab": + getProjectsLinkGitlab := new(GetProjectsLinkGitlab) + if err := utils.UnmarshalJSON(data, &getProjectsLinkGitlab, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == gitlab) type GetProjectsLinkGitlab within GetProjectsLinkUnion: %w", string(data), err) + } + + u.GetProjectsLinkGitlab = getProjectsLinkGitlab + u.Type = GetProjectsLinkUnionTypeGitlab + return nil + case "bitbucket": + getProjectsLinkBitbucket := new(GetProjectsLinkBitbucket) + if err := utils.UnmarshalJSON(data, &getProjectsLinkBitbucket, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == bitbucket) type GetProjectsLinkBitbucket within GetProjectsLinkUnion: %w", string(data), err) + } - var getProjectsLinkGithubLimited GetProjectsLinkGithubLimited = GetProjectsLinkGithubLimited{} - if err := utils.UnmarshalJSON(data, &getProjectsLinkGithubLimited, "", true, nil); err == nil { - u.GetProjectsLinkGithubLimited = &getProjectsLinkGithubLimited - u.Type = GetProjectsLinkUnionTypeGetProjectsLinkGithubLimited + u.GetProjectsLinkBitbucket = getProjectsLinkBitbucket + u.Type = GetProjectsLinkUnionTypeBitbucket return nil } @@ -7616,8 +7845,8 @@ func (o *GetProjectsProtectionBypassIntegrationAutomationBypass) GetConfiguratio type GetProjectsProtectionBypassUnionType string const ( - GetProjectsProtectionBypassUnionTypeGetProjectsProtectionBypassIntegrationAutomationBypass GetProjectsProtectionBypassUnionType = "getProjects_protectionBypass_IntegrationAutomationBypass" - GetProjectsProtectionBypassUnionTypeGetProjectsProtectionBypassAutomationBypass GetProjectsProtectionBypassUnionType = "getProjects_protectionBypass_AutomationBypass" + GetProjectsProtectionBypassUnionTypeIntegrationAutomationBypass GetProjectsProtectionBypassUnionType = "integration-automation-bypass" + GetProjectsProtectionBypassUnionTypeAutomationBypass GetProjectsProtectionBypassUnionType = "automation-bypass" ) type GetProjectsProtectionBypassUnion struct { @@ -7627,37 +7856,59 @@ type GetProjectsProtectionBypassUnion struct { Type GetProjectsProtectionBypassUnionType } -func CreateGetProjectsProtectionBypassUnionGetProjectsProtectionBypassIntegrationAutomationBypass(getProjectsProtectionBypassIntegrationAutomationBypass GetProjectsProtectionBypassIntegrationAutomationBypass) GetProjectsProtectionBypassUnion { - typ := GetProjectsProtectionBypassUnionTypeGetProjectsProtectionBypassIntegrationAutomationBypass +func CreateGetProjectsProtectionBypassUnionIntegrationAutomationBypass(integrationAutomationBypass GetProjectsProtectionBypassIntegrationAutomationBypass) GetProjectsProtectionBypassUnion { + typ := GetProjectsProtectionBypassUnionTypeIntegrationAutomationBypass + + typStr := GetProjectsScopeIntegrationAutomationBypass(typ) + integrationAutomationBypass.Scope = typStr return GetProjectsProtectionBypassUnion{ - GetProjectsProtectionBypassIntegrationAutomationBypass: &getProjectsProtectionBypassIntegrationAutomationBypass, + GetProjectsProtectionBypassIntegrationAutomationBypass: &integrationAutomationBypass, Type: typ, } } -func CreateGetProjectsProtectionBypassUnionGetProjectsProtectionBypassAutomationBypass(getProjectsProtectionBypassAutomationBypass GetProjectsProtectionBypassAutomationBypass) GetProjectsProtectionBypassUnion { - typ := GetProjectsProtectionBypassUnionTypeGetProjectsProtectionBypassAutomationBypass +func CreateGetProjectsProtectionBypassUnionAutomationBypass(automationBypass GetProjectsProtectionBypassAutomationBypass) GetProjectsProtectionBypassUnion { + typ := GetProjectsProtectionBypassUnionTypeAutomationBypass + + typStr := GetProjectsScopeAutomationBypass(typ) + automationBypass.Scope = typStr return GetProjectsProtectionBypassUnion{ - GetProjectsProtectionBypassAutomationBypass: &getProjectsProtectionBypassAutomationBypass, + GetProjectsProtectionBypassAutomationBypass: &automationBypass, Type: typ, } } func (u *GetProjectsProtectionBypassUnion) UnmarshalJSON(data []byte) error { - var getProjectsProtectionBypassIntegrationAutomationBypass GetProjectsProtectionBypassIntegrationAutomationBypass = GetProjectsProtectionBypassIntegrationAutomationBypass{} - if err := utils.UnmarshalJSON(data, &getProjectsProtectionBypassIntegrationAutomationBypass, "", true, nil); err == nil { - u.GetProjectsProtectionBypassIntegrationAutomationBypass = &getProjectsProtectionBypassIntegrationAutomationBypass - u.Type = GetProjectsProtectionBypassUnionTypeGetProjectsProtectionBypassIntegrationAutomationBypass - return nil + type discriminator struct { + Scope string `json:"scope"` } - var getProjectsProtectionBypassAutomationBypass GetProjectsProtectionBypassAutomationBypass = GetProjectsProtectionBypassAutomationBypass{} - if err := utils.UnmarshalJSON(data, &getProjectsProtectionBypassAutomationBypass, "", true, nil); err == nil { - u.GetProjectsProtectionBypassAutomationBypass = &getProjectsProtectionBypassAutomationBypass - u.Type = GetProjectsProtectionBypassUnionTypeGetProjectsProtectionBypassAutomationBypass + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Scope { + case "integration-automation-bypass": + getProjectsProtectionBypassIntegrationAutomationBypass := new(GetProjectsProtectionBypassIntegrationAutomationBypass) + if err := utils.UnmarshalJSON(data, &getProjectsProtectionBypassIntegrationAutomationBypass, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Scope == integration-automation-bypass) type GetProjectsProtectionBypassIntegrationAutomationBypass within GetProjectsProtectionBypassUnion: %w", string(data), err) + } + + u.GetProjectsProtectionBypassIntegrationAutomationBypass = getProjectsProtectionBypassIntegrationAutomationBypass + u.Type = GetProjectsProtectionBypassUnionTypeIntegrationAutomationBypass + return nil + case "automation-bypass": + getProjectsProtectionBypassAutomationBypass := new(GetProjectsProtectionBypassAutomationBypass) + if err := utils.UnmarshalJSON(data, &getProjectsProtectionBypassAutomationBypass, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Scope == automation-bypass) type GetProjectsProtectionBypassAutomationBypass within GetProjectsProtectionBypassUnion: %w", string(data), err) + } + + u.GetProjectsProtectionBypassAutomationBypass = getProjectsProtectionBypassAutomationBypass + u.Type = GetProjectsProtectionBypassUnionTypeAutomationBypass return nil } @@ -8744,8 +8995,8 @@ func (o *GetProjectsBlockHistoryHasXVercelIPCountry2) GetValue() GetProjectsBloc type GetProjectsBlockHistoryHasUnion2Type string const ( - GetProjectsBlockHistoryHasUnion2TypeGetProjectsBlockHistoryHasXVercelIPCountry2 GetProjectsBlockHistoryHasUnion2Type = "getProjects_blockHistory_has_XVercelIPCountry_2" - GetProjectsBlockHistoryHasUnion2TypeGetProjectsBlockHistoryHasHost2 GetProjectsBlockHistoryHasUnion2Type = "getProjects_blockHistory_has_Host_2" + GetProjectsBlockHistoryHasUnion2TypeHeader GetProjectsBlockHistoryHasUnion2Type = "header" + GetProjectsBlockHistoryHasUnion2TypeHost GetProjectsBlockHistoryHasUnion2Type = "host" ) type GetProjectsBlockHistoryHasUnion2 struct { @@ -8755,37 +9006,59 @@ type GetProjectsBlockHistoryHasUnion2 struct { Type GetProjectsBlockHistoryHasUnion2Type } -func CreateGetProjectsBlockHistoryHasUnion2GetProjectsBlockHistoryHasXVercelIPCountry2(getProjectsBlockHistoryHasXVercelIPCountry2 GetProjectsBlockHistoryHasXVercelIPCountry2) GetProjectsBlockHistoryHasUnion2 { - typ := GetProjectsBlockHistoryHasUnion2TypeGetProjectsBlockHistoryHasXVercelIPCountry2 +func CreateGetProjectsBlockHistoryHasUnion2Header(header GetProjectsBlockHistoryHasXVercelIPCountry2) GetProjectsBlockHistoryHasUnion2 { + typ := GetProjectsBlockHistoryHasUnion2TypeHeader + + typStr := GetProjectsBlockHistoryTypeHeader2(typ) + header.Type = typStr return GetProjectsBlockHistoryHasUnion2{ - GetProjectsBlockHistoryHasXVercelIPCountry2: &getProjectsBlockHistoryHasXVercelIPCountry2, + GetProjectsBlockHistoryHasXVercelIPCountry2: &header, Type: typ, } } -func CreateGetProjectsBlockHistoryHasUnion2GetProjectsBlockHistoryHasHost2(getProjectsBlockHistoryHasHost2 GetProjectsBlockHistoryHasHost2) GetProjectsBlockHistoryHasUnion2 { - typ := GetProjectsBlockHistoryHasUnion2TypeGetProjectsBlockHistoryHasHost2 +func CreateGetProjectsBlockHistoryHasUnion2Host(host GetProjectsBlockHistoryHasHost2) GetProjectsBlockHistoryHasUnion2 { + typ := GetProjectsBlockHistoryHasUnion2TypeHost + + typStr := GetProjectsBlockHistoryTypeHost2(typ) + host.Type = typStr return GetProjectsBlockHistoryHasUnion2{ - GetProjectsBlockHistoryHasHost2: &getProjectsBlockHistoryHasHost2, + GetProjectsBlockHistoryHasHost2: &host, Type: typ, } } func (u *GetProjectsBlockHistoryHasUnion2) UnmarshalJSON(data []byte) error { - var getProjectsBlockHistoryHasXVercelIPCountry2 GetProjectsBlockHistoryHasXVercelIPCountry2 = GetProjectsBlockHistoryHasXVercelIPCountry2{} - if err := utils.UnmarshalJSON(data, &getProjectsBlockHistoryHasXVercelIPCountry2, "", true, nil); err == nil { - u.GetProjectsBlockHistoryHasXVercelIPCountry2 = &getProjectsBlockHistoryHasXVercelIPCountry2 - u.Type = GetProjectsBlockHistoryHasUnion2TypeGetProjectsBlockHistoryHasXVercelIPCountry2 - return nil + type discriminator struct { + Type string `json:"type"` } - var getProjectsBlockHistoryHasHost2 GetProjectsBlockHistoryHasHost2 = GetProjectsBlockHistoryHasHost2{} - if err := utils.UnmarshalJSON(data, &getProjectsBlockHistoryHasHost2, "", true, nil); err == nil { - u.GetProjectsBlockHistoryHasHost2 = &getProjectsBlockHistoryHasHost2 - u.Type = GetProjectsBlockHistoryHasUnion2TypeGetProjectsBlockHistoryHasHost2 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Type { + case "header": + getProjectsBlockHistoryHasXVercelIPCountry2 := new(GetProjectsBlockHistoryHasXVercelIPCountry2) + if err := utils.UnmarshalJSON(data, &getProjectsBlockHistoryHasXVercelIPCountry2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == header) type GetProjectsBlockHistoryHasXVercelIPCountry2 within GetProjectsBlockHistoryHasUnion2: %w", string(data), err) + } + + u.GetProjectsBlockHistoryHasXVercelIPCountry2 = getProjectsBlockHistoryHasXVercelIPCountry2 + u.Type = GetProjectsBlockHistoryHasUnion2TypeHeader + return nil + case "host": + getProjectsBlockHistoryHasHost2 := new(GetProjectsBlockHistoryHasHost2) + if err := utils.UnmarshalJSON(data, &getProjectsBlockHistoryHasHost2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == host) type GetProjectsBlockHistoryHasHost2 within GetProjectsBlockHistoryHasUnion2: %w", string(data), err) + } + + u.GetProjectsBlockHistoryHasHost2 = getProjectsBlockHistoryHasHost2 + u.Type = GetProjectsBlockHistoryHasUnion2TypeHost return nil } @@ -9265,8 +9538,8 @@ func (o *GetProjectsBlockHistoryHasXVercelIPCountry1) GetValue() GetProjectsBloc type GetProjectsBlockHistoryHasUnion1Type string const ( - GetProjectsBlockHistoryHasUnion1TypeGetProjectsBlockHistoryHasXVercelIPCountry1 GetProjectsBlockHistoryHasUnion1Type = "getProjects_blockHistory_has_XVercelIPCountry_1" - GetProjectsBlockHistoryHasUnion1TypeGetProjectsBlockHistoryHasHost1 GetProjectsBlockHistoryHasUnion1Type = "getProjects_blockHistory_has_Host_1" + GetProjectsBlockHistoryHasUnion1TypeHeader GetProjectsBlockHistoryHasUnion1Type = "header" + GetProjectsBlockHistoryHasUnion1TypeHost GetProjectsBlockHistoryHasUnion1Type = "host" ) type GetProjectsBlockHistoryHasUnion1 struct { @@ -9276,37 +9549,59 @@ type GetProjectsBlockHistoryHasUnion1 struct { Type GetProjectsBlockHistoryHasUnion1Type } -func CreateGetProjectsBlockHistoryHasUnion1GetProjectsBlockHistoryHasXVercelIPCountry1(getProjectsBlockHistoryHasXVercelIPCountry1 GetProjectsBlockHistoryHasXVercelIPCountry1) GetProjectsBlockHistoryHasUnion1 { - typ := GetProjectsBlockHistoryHasUnion1TypeGetProjectsBlockHistoryHasXVercelIPCountry1 +func CreateGetProjectsBlockHistoryHasUnion1Header(header GetProjectsBlockHistoryHasXVercelIPCountry1) GetProjectsBlockHistoryHasUnion1 { + typ := GetProjectsBlockHistoryHasUnion1TypeHeader + + typStr := GetProjectsBlockHistoryTypeHeader1(typ) + header.Type = typStr return GetProjectsBlockHistoryHasUnion1{ - GetProjectsBlockHistoryHasXVercelIPCountry1: &getProjectsBlockHistoryHasXVercelIPCountry1, + GetProjectsBlockHistoryHasXVercelIPCountry1: &header, Type: typ, } } -func CreateGetProjectsBlockHistoryHasUnion1GetProjectsBlockHistoryHasHost1(getProjectsBlockHistoryHasHost1 GetProjectsBlockHistoryHasHost1) GetProjectsBlockHistoryHasUnion1 { - typ := GetProjectsBlockHistoryHasUnion1TypeGetProjectsBlockHistoryHasHost1 +func CreateGetProjectsBlockHistoryHasUnion1Host(host GetProjectsBlockHistoryHasHost1) GetProjectsBlockHistoryHasUnion1 { + typ := GetProjectsBlockHistoryHasUnion1TypeHost + + typStr := GetProjectsBlockHistoryTypeHost1(typ) + host.Type = typStr return GetProjectsBlockHistoryHasUnion1{ - GetProjectsBlockHistoryHasHost1: &getProjectsBlockHistoryHasHost1, + GetProjectsBlockHistoryHasHost1: &host, Type: typ, } } func (u *GetProjectsBlockHistoryHasUnion1) UnmarshalJSON(data []byte) error { - var getProjectsBlockHistoryHasXVercelIPCountry1 GetProjectsBlockHistoryHasXVercelIPCountry1 = GetProjectsBlockHistoryHasXVercelIPCountry1{} - if err := utils.UnmarshalJSON(data, &getProjectsBlockHistoryHasXVercelIPCountry1, "", true, nil); err == nil { - u.GetProjectsBlockHistoryHasXVercelIPCountry1 = &getProjectsBlockHistoryHasXVercelIPCountry1 - u.Type = GetProjectsBlockHistoryHasUnion1TypeGetProjectsBlockHistoryHasXVercelIPCountry1 - return nil + type discriminator struct { + Type string `json:"type"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getProjectsBlockHistoryHasHost1 GetProjectsBlockHistoryHasHost1 = GetProjectsBlockHistoryHasHost1{} - if err := utils.UnmarshalJSON(data, &getProjectsBlockHistoryHasHost1, "", true, nil); err == nil { - u.GetProjectsBlockHistoryHasHost1 = &getProjectsBlockHistoryHasHost1 - u.Type = GetProjectsBlockHistoryHasUnion1TypeGetProjectsBlockHistoryHasHost1 + switch dis.Type { + case "header": + getProjectsBlockHistoryHasXVercelIPCountry1 := new(GetProjectsBlockHistoryHasXVercelIPCountry1) + if err := utils.UnmarshalJSON(data, &getProjectsBlockHistoryHasXVercelIPCountry1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == header) type GetProjectsBlockHistoryHasXVercelIPCountry1 within GetProjectsBlockHistoryHasUnion1: %w", string(data), err) + } + + u.GetProjectsBlockHistoryHasXVercelIPCountry1 = getProjectsBlockHistoryHasXVercelIPCountry1 + u.Type = GetProjectsBlockHistoryHasUnion1TypeHeader + return nil + case "host": + getProjectsBlockHistoryHasHost1 := new(GetProjectsBlockHistoryHasHost1) + if err := utils.UnmarshalJSON(data, &getProjectsBlockHistoryHasHost1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == host) type GetProjectsBlockHistoryHasHost1 within GetProjectsBlockHistoryHasUnion1: %w", string(data), err) + } + + u.GetProjectsBlockHistoryHasHost1 = getProjectsBlockHistoryHasHost1 + u.Type = GetProjectsBlockHistoryHasUnion1TypeHost return nil } @@ -9768,10 +10063,10 @@ func (o *GetProjectsBlockHistoryBlocked) GetIsCascading() *bool { type GetProjectsBlockHistoryUnionType string const ( - GetProjectsBlockHistoryUnionTypeGetProjectsBlockHistoryBlocked GetProjectsBlockHistoryUnionType = "getProjects_blockHistory_Blocked" - GetProjectsBlockHistoryUnionTypeGetProjectsBlockHistoryUnblocked GetProjectsBlockHistoryUnionType = "getProjects_blockHistory_Unblocked" - GetProjectsBlockHistoryUnionTypeGetProjectsBlockHistoryRouteBlocked GetProjectsBlockHistoryUnionType = "getProjects_blockHistory_RouteBlocked" - GetProjectsBlockHistoryUnionTypeGetProjectsBlockHistoryRouteUnblocked GetProjectsBlockHistoryUnionType = "getProjects_blockHistory_RouteUnblocked" + GetProjectsBlockHistoryUnionTypeBlocked GetProjectsBlockHistoryUnionType = "blocked" + GetProjectsBlockHistoryUnionTypeUnblocked GetProjectsBlockHistoryUnionType = "unblocked" + GetProjectsBlockHistoryUnionTypeRouteBlocked GetProjectsBlockHistoryUnionType = "route-blocked" + GetProjectsBlockHistoryUnionTypeRouteUnblocked GetProjectsBlockHistoryUnionType = "route-unblocked" ) type GetProjectsBlockHistoryUnion struct { @@ -9783,69 +10078,101 @@ type GetProjectsBlockHistoryUnion struct { Type GetProjectsBlockHistoryUnionType } -func CreateGetProjectsBlockHistoryUnionGetProjectsBlockHistoryBlocked(getProjectsBlockHistoryBlocked GetProjectsBlockHistoryBlocked) GetProjectsBlockHistoryUnion { - typ := GetProjectsBlockHistoryUnionTypeGetProjectsBlockHistoryBlocked +func CreateGetProjectsBlockHistoryUnionBlocked(blocked GetProjectsBlockHistoryBlocked) GetProjectsBlockHistoryUnion { + typ := GetProjectsBlockHistoryUnionTypeBlocked + + typStr := GetProjectsBlockHistoryActionBlocked(typ) + blocked.Action = typStr return GetProjectsBlockHistoryUnion{ - GetProjectsBlockHistoryBlocked: &getProjectsBlockHistoryBlocked, + GetProjectsBlockHistoryBlocked: &blocked, Type: typ, } } -func CreateGetProjectsBlockHistoryUnionGetProjectsBlockHistoryUnblocked(getProjectsBlockHistoryUnblocked GetProjectsBlockHistoryUnblocked) GetProjectsBlockHistoryUnion { - typ := GetProjectsBlockHistoryUnionTypeGetProjectsBlockHistoryUnblocked +func CreateGetProjectsBlockHistoryUnionUnblocked(unblocked GetProjectsBlockHistoryUnblocked) GetProjectsBlockHistoryUnion { + typ := GetProjectsBlockHistoryUnionTypeUnblocked + + typStr := GetProjectsActionUnblocked(typ) + unblocked.Action = typStr return GetProjectsBlockHistoryUnion{ - GetProjectsBlockHistoryUnblocked: &getProjectsBlockHistoryUnblocked, + GetProjectsBlockHistoryUnblocked: &unblocked, Type: typ, } } -func CreateGetProjectsBlockHistoryUnionGetProjectsBlockHistoryRouteBlocked(getProjectsBlockHistoryRouteBlocked GetProjectsBlockHistoryRouteBlocked) GetProjectsBlockHistoryUnion { - typ := GetProjectsBlockHistoryUnionTypeGetProjectsBlockHistoryRouteBlocked +func CreateGetProjectsBlockHistoryUnionRouteBlocked(routeBlocked GetProjectsBlockHistoryRouteBlocked) GetProjectsBlockHistoryUnion { + typ := GetProjectsBlockHistoryUnionTypeRouteBlocked + + typStr := GetProjectsActionRouteBlocked(typ) + routeBlocked.Action = typStr return GetProjectsBlockHistoryUnion{ - GetProjectsBlockHistoryRouteBlocked: &getProjectsBlockHistoryRouteBlocked, + GetProjectsBlockHistoryRouteBlocked: &routeBlocked, Type: typ, } } -func CreateGetProjectsBlockHistoryUnionGetProjectsBlockHistoryRouteUnblocked(getProjectsBlockHistoryRouteUnblocked GetProjectsBlockHistoryRouteUnblocked) GetProjectsBlockHistoryUnion { - typ := GetProjectsBlockHistoryUnionTypeGetProjectsBlockHistoryRouteUnblocked +func CreateGetProjectsBlockHistoryUnionRouteUnblocked(routeUnblocked GetProjectsBlockHistoryRouteUnblocked) GetProjectsBlockHistoryUnion { + typ := GetProjectsBlockHistoryUnionTypeRouteUnblocked + + typStr := GetProjectsActionRouteUnblocked(typ) + routeUnblocked.Action = typStr return GetProjectsBlockHistoryUnion{ - GetProjectsBlockHistoryRouteUnblocked: &getProjectsBlockHistoryRouteUnblocked, + GetProjectsBlockHistoryRouteUnblocked: &routeUnblocked, Type: typ, } } func (u *GetProjectsBlockHistoryUnion) UnmarshalJSON(data []byte) error { - var getProjectsBlockHistoryBlocked GetProjectsBlockHistoryBlocked = GetProjectsBlockHistoryBlocked{} - if err := utils.UnmarshalJSON(data, &getProjectsBlockHistoryBlocked, "", true, nil); err == nil { - u.GetProjectsBlockHistoryBlocked = &getProjectsBlockHistoryBlocked - u.Type = GetProjectsBlockHistoryUnionTypeGetProjectsBlockHistoryBlocked - return nil + type discriminator struct { + Action string `json:"action"` } - var getProjectsBlockHistoryRouteBlocked GetProjectsBlockHistoryRouteBlocked = GetProjectsBlockHistoryRouteBlocked{} - if err := utils.UnmarshalJSON(data, &getProjectsBlockHistoryRouteBlocked, "", true, nil); err == nil { - u.GetProjectsBlockHistoryRouteBlocked = &getProjectsBlockHistoryRouteBlocked - u.Type = GetProjectsBlockHistoryUnionTypeGetProjectsBlockHistoryRouteBlocked - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getProjectsBlockHistoryRouteUnblocked GetProjectsBlockHistoryRouteUnblocked = GetProjectsBlockHistoryRouteUnblocked{} - if err := utils.UnmarshalJSON(data, &getProjectsBlockHistoryRouteUnblocked, "", true, nil); err == nil { - u.GetProjectsBlockHistoryRouteUnblocked = &getProjectsBlockHistoryRouteUnblocked - u.Type = GetProjectsBlockHistoryUnionTypeGetProjectsBlockHistoryRouteUnblocked + switch dis.Action { + case "blocked": + getProjectsBlockHistoryBlocked := new(GetProjectsBlockHistoryBlocked) + if err := utils.UnmarshalJSON(data, &getProjectsBlockHistoryBlocked, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Action == blocked) type GetProjectsBlockHistoryBlocked within GetProjectsBlockHistoryUnion: %w", string(data), err) + } + + u.GetProjectsBlockHistoryBlocked = getProjectsBlockHistoryBlocked + u.Type = GetProjectsBlockHistoryUnionTypeBlocked return nil - } + case "unblocked": + getProjectsBlockHistoryUnblocked := new(GetProjectsBlockHistoryUnblocked) + if err := utils.UnmarshalJSON(data, &getProjectsBlockHistoryUnblocked, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Action == unblocked) type GetProjectsBlockHistoryUnblocked within GetProjectsBlockHistoryUnion: %w", string(data), err) + } - var getProjectsBlockHistoryUnblocked GetProjectsBlockHistoryUnblocked = GetProjectsBlockHistoryUnblocked{} - if err := utils.UnmarshalJSON(data, &getProjectsBlockHistoryUnblocked, "", true, nil); err == nil { - u.GetProjectsBlockHistoryUnblocked = &getProjectsBlockHistoryUnblocked - u.Type = GetProjectsBlockHistoryUnionTypeGetProjectsBlockHistoryUnblocked + u.GetProjectsBlockHistoryUnblocked = getProjectsBlockHistoryUnblocked + u.Type = GetProjectsBlockHistoryUnionTypeUnblocked + return nil + case "route-blocked": + getProjectsBlockHistoryRouteBlocked := new(GetProjectsBlockHistoryRouteBlocked) + if err := utils.UnmarshalJSON(data, &getProjectsBlockHistoryRouteBlocked, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Action == route-blocked) type GetProjectsBlockHistoryRouteBlocked within GetProjectsBlockHistoryUnion: %w", string(data), err) + } + + u.GetProjectsBlockHistoryRouteBlocked = getProjectsBlockHistoryRouteBlocked + u.Type = GetProjectsBlockHistoryUnionTypeRouteBlocked + return nil + case "route-unblocked": + getProjectsBlockHistoryRouteUnblocked := new(GetProjectsBlockHistoryRouteUnblocked) + if err := utils.UnmarshalJSON(data, &getProjectsBlockHistoryRouteUnblocked, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Action == route-unblocked) type GetProjectsBlockHistoryRouteUnblocked within GetProjectsBlockHistoryUnion: %w", string(data), err) + } + + u.GetProjectsBlockHistoryRouteUnblocked = getProjectsBlockHistoryRouteUnblocked + u.Type = GetProjectsBlockHistoryUnionTypeRouteUnblocked return nil } @@ -10107,8 +10434,8 @@ func (o *GetProjectsInternalRouteHasXVercelIPCountry) GetValue() GetProjectsInte type GetProjectsInternalRouteHasUnionType string const ( - GetProjectsInternalRouteHasUnionTypeGetProjectsInternalRouteHasXVercelIPCountry GetProjectsInternalRouteHasUnionType = "getProjects_internalRoute_has_XVercelIPCountry" - GetProjectsInternalRouteHasUnionTypeGetProjectsInternalRouteHasHost GetProjectsInternalRouteHasUnionType = "getProjects_internalRoute_has_Host" + GetProjectsInternalRouteHasUnionTypeHeader GetProjectsInternalRouteHasUnionType = "header" + GetProjectsInternalRouteHasUnionTypeHost GetProjectsInternalRouteHasUnionType = "host" ) type GetProjectsInternalRouteHasUnion struct { @@ -10118,37 +10445,59 @@ type GetProjectsInternalRouteHasUnion struct { Type GetProjectsInternalRouteHasUnionType } -func CreateGetProjectsInternalRouteHasUnionGetProjectsInternalRouteHasXVercelIPCountry(getProjectsInternalRouteHasXVercelIPCountry GetProjectsInternalRouteHasXVercelIPCountry) GetProjectsInternalRouteHasUnion { - typ := GetProjectsInternalRouteHasUnionTypeGetProjectsInternalRouteHasXVercelIPCountry +func CreateGetProjectsInternalRouteHasUnionHeader(header GetProjectsInternalRouteHasXVercelIPCountry) GetProjectsInternalRouteHasUnion { + typ := GetProjectsInternalRouteHasUnionTypeHeader + + typStr := GetProjectsInternalRouteTypeHeader(typ) + header.Type = typStr return GetProjectsInternalRouteHasUnion{ - GetProjectsInternalRouteHasXVercelIPCountry: &getProjectsInternalRouteHasXVercelIPCountry, + GetProjectsInternalRouteHasXVercelIPCountry: &header, Type: typ, } } -func CreateGetProjectsInternalRouteHasUnionGetProjectsInternalRouteHasHost(getProjectsInternalRouteHasHost GetProjectsInternalRouteHasHost) GetProjectsInternalRouteHasUnion { - typ := GetProjectsInternalRouteHasUnionTypeGetProjectsInternalRouteHasHost +func CreateGetProjectsInternalRouteHasUnionHost(host GetProjectsInternalRouteHasHost) GetProjectsInternalRouteHasUnion { + typ := GetProjectsInternalRouteHasUnionTypeHost + + typStr := GetProjectsInternalRouteTypeHost(typ) + host.Type = typStr return GetProjectsInternalRouteHasUnion{ - GetProjectsInternalRouteHasHost: &getProjectsInternalRouteHasHost, + GetProjectsInternalRouteHasHost: &host, Type: typ, } } func (u *GetProjectsInternalRouteHasUnion) UnmarshalJSON(data []byte) error { - var getProjectsInternalRouteHasXVercelIPCountry GetProjectsInternalRouteHasXVercelIPCountry = GetProjectsInternalRouteHasXVercelIPCountry{} - if err := utils.UnmarshalJSON(data, &getProjectsInternalRouteHasXVercelIPCountry, "", true, nil); err == nil { - u.GetProjectsInternalRouteHasXVercelIPCountry = &getProjectsInternalRouteHasXVercelIPCountry - u.Type = GetProjectsInternalRouteHasUnionTypeGetProjectsInternalRouteHasXVercelIPCountry - return nil + type discriminator struct { + Type string `json:"type"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var getProjectsInternalRouteHasHost GetProjectsInternalRouteHasHost = GetProjectsInternalRouteHasHost{} - if err := utils.UnmarshalJSON(data, &getProjectsInternalRouteHasHost, "", true, nil); err == nil { - u.GetProjectsInternalRouteHasHost = &getProjectsInternalRouteHasHost - u.Type = GetProjectsInternalRouteHasUnionTypeGetProjectsInternalRouteHasHost + switch dis.Type { + case "header": + getProjectsInternalRouteHasXVercelIPCountry := new(GetProjectsInternalRouteHasXVercelIPCountry) + if err := utils.UnmarshalJSON(data, &getProjectsInternalRouteHasXVercelIPCountry, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == header) type GetProjectsInternalRouteHasXVercelIPCountry within GetProjectsInternalRouteHasUnion: %w", string(data), err) + } + + u.GetProjectsInternalRouteHasXVercelIPCountry = getProjectsInternalRouteHasXVercelIPCountry + u.Type = GetProjectsInternalRouteHasUnionTypeHeader + return nil + case "host": + getProjectsInternalRouteHasHost := new(GetProjectsInternalRouteHasHost) + if err := utils.UnmarshalJSON(data, &getProjectsInternalRouteHasHost, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == host) type GetProjectsInternalRouteHasHost within GetProjectsInternalRouteHasUnion: %w", string(data), err) + } + + u.GetProjectsInternalRouteHasHost = getProjectsInternalRouteHasHost + u.Type = GetProjectsInternalRouteHasUnionTypeHost return nil } @@ -11002,6 +11351,41 @@ func (o *GetProjectsProject) GetLink() *GetProjectsLinkUnion { return o.Link } +func (o *GetProjectsProject) GetLinkGithub() *GetProjectsLinkGithub { + if v := o.GetLink(); v != nil { + return v.GetProjectsLinkGithub + } + return nil +} + +func (o *GetProjectsProject) GetLinkGithubLimited() *GetProjectsLinkGithubLimited { + if v := o.GetLink(); v != nil { + return v.GetProjectsLinkGithubLimited + } + return nil +} + +func (o *GetProjectsProject) GetLinkGithubCustomHost() *GetProjectsLinkGithubCustomHost { + if v := o.GetLink(); v != nil { + return v.GetProjectsLinkGithubCustomHost + } + return nil +} + +func (o *GetProjectsProject) GetLinkGitlab() *GetProjectsLinkGitlab { + if v := o.GetLink(); v != nil { + return v.GetProjectsLinkGitlab + } + return nil +} + +func (o *GetProjectsProject) GetLinkBitbucket() *GetProjectsLinkBitbucket { + if v := o.GetLink(); v != nil { + return v.GetProjectsLinkBitbucket + } + return nil +} + func (o *GetProjectsProject) GetMicrofrontends() *GetProjectsMicrofrontendsUnion { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getrollingreleasebillingstatus.go b/src/__tests__/mockserver/internal/sdk/models/operations/getrollingreleasebillingstatus.go index 54bc189b..ac63afa3 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getrollingreleasebillingstatus.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getrollingreleasebillingstatus.go @@ -318,10 +318,10 @@ func (o *PlanNotSupported) GetMessage() string { type GetRollingReleaseBillingStatusResponseBodyType string const ( - GetRollingReleaseBillingStatusResponseBodyTypePlanNotSupported GetRollingReleaseBillingStatusResponseBodyType = "PlanNotSupported" - GetRollingReleaseBillingStatusResponseBodyTypeUnlimitedSlots GetRollingReleaseBillingStatusResponseBodyType = "UnlimitedSlots" - GetRollingReleaseBillingStatusResponseBodyTypeNoAvailableSlots GetRollingReleaseBillingStatusResponseBodyType = "NoAvailableSlots" - GetRollingReleaseBillingStatusResponseBodyTypeAvailableSlots GetRollingReleaseBillingStatusResponseBodyType = "AvailableSlots" + GetRollingReleaseBillingStatusResponseBodyTypePlanNotSupported GetRollingReleaseBillingStatusResponseBodyType = "plan_not_supported" + GetRollingReleaseBillingStatusResponseBodyTypeUnlimitedSlots GetRollingReleaseBillingStatusResponseBodyType = "unlimited_slots" + GetRollingReleaseBillingStatusResponseBodyTypeNoAvailableSlots GetRollingReleaseBillingStatusResponseBodyType = "no_available_slots" + GetRollingReleaseBillingStatusResponseBodyTypeAvailableSlots GetRollingReleaseBillingStatusResponseBodyType = "available_slots" ) type GetRollingReleaseBillingStatusResponseBody struct { @@ -336,6 +336,9 @@ type GetRollingReleaseBillingStatusResponseBody struct { func CreateGetRollingReleaseBillingStatusResponseBodyPlanNotSupported(planNotSupported PlanNotSupported) GetRollingReleaseBillingStatusResponseBody { typ := GetRollingReleaseBillingStatusResponseBodyTypePlanNotSupported + typStr := ReasonPlanNotSupported(typ) + planNotSupported.Reason = typStr + return GetRollingReleaseBillingStatusResponseBody{ PlanNotSupported: &planNotSupported, Type: typ, @@ -345,6 +348,9 @@ func CreateGetRollingReleaseBillingStatusResponseBodyPlanNotSupported(planNotSup func CreateGetRollingReleaseBillingStatusResponseBodyUnlimitedSlots(unlimitedSlots UnlimitedSlots) GetRollingReleaseBillingStatusResponseBody { typ := GetRollingReleaseBillingStatusResponseBodyTypeUnlimitedSlots + typStr := ReasonUnlimitedSlots(typ) + unlimitedSlots.Reason = typStr + return GetRollingReleaseBillingStatusResponseBody{ UnlimitedSlots: &unlimitedSlots, Type: typ, @@ -354,6 +360,9 @@ func CreateGetRollingReleaseBillingStatusResponseBodyUnlimitedSlots(unlimitedSlo func CreateGetRollingReleaseBillingStatusResponseBodyNoAvailableSlots(noAvailableSlots NoAvailableSlots) GetRollingReleaseBillingStatusResponseBody { typ := GetRollingReleaseBillingStatusResponseBodyTypeNoAvailableSlots + typStr := ReasonNoAvailableSlots(typ) + noAvailableSlots.Reason = typStr + return GetRollingReleaseBillingStatusResponseBody{ NoAvailableSlots: &noAvailableSlots, Type: typ, @@ -363,6 +372,9 @@ func CreateGetRollingReleaseBillingStatusResponseBodyNoAvailableSlots(noAvailabl func CreateGetRollingReleaseBillingStatusResponseBodyAvailableSlots(availableSlots AvailableSlots) GetRollingReleaseBillingStatusResponseBody { typ := GetRollingReleaseBillingStatusResponseBodyTypeAvailableSlots + typStr := ReasonAvailableSlots(typ) + availableSlots.Reason = typStr + return GetRollingReleaseBillingStatusResponseBody{ AvailableSlots: &availableSlots, Type: typ, @@ -371,30 +383,50 @@ func CreateGetRollingReleaseBillingStatusResponseBodyAvailableSlots(availableSlo func (u *GetRollingReleaseBillingStatusResponseBody) UnmarshalJSON(data []byte) error { - var noAvailableSlots NoAvailableSlots = NoAvailableSlots{} - if err := utils.UnmarshalJSON(data, &noAvailableSlots, "", true, nil); err == nil { - u.NoAvailableSlots = &noAvailableSlots - u.Type = GetRollingReleaseBillingStatusResponseBodyTypeNoAvailableSlots - return nil + type discriminator struct { + Reason string `json:"reason"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var planNotSupported PlanNotSupported = PlanNotSupported{} - if err := utils.UnmarshalJSON(data, &planNotSupported, "", true, nil); err == nil { - u.PlanNotSupported = &planNotSupported + switch dis.Reason { + case "plan_not_supported": + planNotSupported := new(PlanNotSupported) + if err := utils.UnmarshalJSON(data, &planNotSupported, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Reason == plan_not_supported) type PlanNotSupported within GetRollingReleaseBillingStatusResponseBody: %w", string(data), err) + } + + u.PlanNotSupported = planNotSupported u.Type = GetRollingReleaseBillingStatusResponseBodyTypePlanNotSupported return nil - } + case "unlimited_slots": + unlimitedSlots := new(UnlimitedSlots) + if err := utils.UnmarshalJSON(data, &unlimitedSlots, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Reason == unlimited_slots) type UnlimitedSlots within GetRollingReleaseBillingStatusResponseBody: %w", string(data), err) + } - var unlimitedSlots UnlimitedSlots = UnlimitedSlots{} - if err := utils.UnmarshalJSON(data, &unlimitedSlots, "", true, nil); err == nil { - u.UnlimitedSlots = &unlimitedSlots + u.UnlimitedSlots = unlimitedSlots u.Type = GetRollingReleaseBillingStatusResponseBodyTypeUnlimitedSlots return nil - } + case "no_available_slots": + noAvailableSlots := new(NoAvailableSlots) + if err := utils.UnmarshalJSON(data, &noAvailableSlots, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Reason == no_available_slots) type NoAvailableSlots within GetRollingReleaseBillingStatusResponseBody: %w", string(data), err) + } + + u.NoAvailableSlots = noAvailableSlots + u.Type = GetRollingReleaseBillingStatusResponseBodyTypeNoAvailableSlots + return nil + case "available_slots": + availableSlots := new(AvailableSlots) + if err := utils.UnmarshalJSON(data, &availableSlots, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Reason == available_slots) type AvailableSlots within GetRollingReleaseBillingStatusResponseBody: %w", string(data), err) + } - var availableSlots AvailableSlots = AvailableSlots{} - if err := utils.UnmarshalJSON(data, &availableSlots, "", true, nil); err == nil { - u.AvailableSlots = &availableSlots + u.AvailableSlots = availableSlots u.Type = GetRollingReleaseBillingStatusResponseBodyTypeAvailableSlots return nil } @@ -440,3 +472,31 @@ func (o *GetRollingReleaseBillingStatusResponse) GetOneOf() *GetRollingReleaseBi } return o.OneOf } + +func (o *GetRollingReleaseBillingStatusResponse) GetOneOfPlanNotSupported() *PlanNotSupported { + if v := o.GetOneOf(); v != nil { + return v.PlanNotSupported + } + return nil +} + +func (o *GetRollingReleaseBillingStatusResponse) GetOneOfUnlimitedSlots() *UnlimitedSlots { + if v := o.GetOneOf(); v != nil { + return v.UnlimitedSlots + } + return nil +} + +func (o *GetRollingReleaseBillingStatusResponse) GetOneOfNoAvailableSlots() *NoAvailableSlots { + if v := o.GetOneOf(); v != nil { + return v.NoAvailableSlots + } + return nil +} + +func (o *GetRollingReleaseBillingStatusResponse) GetOneOfAvailableSlots() *AvailableSlots { + if v := o.GetOneOf(); v != nil { + return v.AvailableSlots + } + return nil +} diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/listaliases.go b/src/__tests__/mockserver/internal/sdk/models/operations/listaliases.go index 6c031f4c..ee021990 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/listaliases.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/listaliases.go @@ -530,10 +530,10 @@ func (o *ListAliasesProtectionBypassShareableLink) GetExpires() *float64 { type ListAliasesProtectionBypassUnionType string const ( - ListAliasesProtectionBypassUnionTypeListAliasesProtectionBypassShareableLink ListAliasesProtectionBypassUnionType = "listAliases_protectionBypass_ShareableLink" - ListAliasesProtectionBypassUnionTypeListAliasesProtectionBypassUser ListAliasesProtectionBypassUnionType = "listAliases_protectionBypass_User" - ListAliasesProtectionBypassUnionTypeListAliasesProtectionBypassAliasProtectionOverride ListAliasesProtectionBypassUnionType = "listAliases_protectionBypass_AliasProtectionOverride" - ListAliasesProtectionBypassUnionTypeListAliasesProtectionBypassEmailInvite ListAliasesProtectionBypassUnionType = "listAliases_protectionBypass_EmailInvite" + ListAliasesProtectionBypassUnionTypeShareableLink ListAliasesProtectionBypassUnionType = "shareable-link" + ListAliasesProtectionBypassUnionTypeUser ListAliasesProtectionBypassUnionType = "user" + ListAliasesProtectionBypassUnionTypeAliasProtectionOverride ListAliasesProtectionBypassUnionType = "alias-protection-override" + ListAliasesProtectionBypassUnionTypeEmailInvite ListAliasesProtectionBypassUnionType = "email_invite" ) type ListAliasesProtectionBypassUnion struct { @@ -545,69 +545,101 @@ type ListAliasesProtectionBypassUnion struct { Type ListAliasesProtectionBypassUnionType } -func CreateListAliasesProtectionBypassUnionListAliasesProtectionBypassShareableLink(listAliasesProtectionBypassShareableLink ListAliasesProtectionBypassShareableLink) ListAliasesProtectionBypassUnion { - typ := ListAliasesProtectionBypassUnionTypeListAliasesProtectionBypassShareableLink +func CreateListAliasesProtectionBypassUnionShareableLink(shareableLink ListAliasesProtectionBypassShareableLink) ListAliasesProtectionBypassUnion { + typ := ListAliasesProtectionBypassUnionTypeShareableLink + + typStr := ListAliasesScopeShareableLink(typ) + shareableLink.Scope = typStr return ListAliasesProtectionBypassUnion{ - ListAliasesProtectionBypassShareableLink: &listAliasesProtectionBypassShareableLink, + ListAliasesProtectionBypassShareableLink: &shareableLink, Type: typ, } } -func CreateListAliasesProtectionBypassUnionListAliasesProtectionBypassUser(listAliasesProtectionBypassUser ListAliasesProtectionBypassUser) ListAliasesProtectionBypassUnion { - typ := ListAliasesProtectionBypassUnionTypeListAliasesProtectionBypassUser +func CreateListAliasesProtectionBypassUnionUser(user ListAliasesProtectionBypassUser) ListAliasesProtectionBypassUnion { + typ := ListAliasesProtectionBypassUnionTypeUser + + typStr := ListAliasesScopeUser(typ) + user.Scope = typStr return ListAliasesProtectionBypassUnion{ - ListAliasesProtectionBypassUser: &listAliasesProtectionBypassUser, + ListAliasesProtectionBypassUser: &user, Type: typ, } } -func CreateListAliasesProtectionBypassUnionListAliasesProtectionBypassAliasProtectionOverride(listAliasesProtectionBypassAliasProtectionOverride ListAliasesProtectionBypassAliasProtectionOverride) ListAliasesProtectionBypassUnion { - typ := ListAliasesProtectionBypassUnionTypeListAliasesProtectionBypassAliasProtectionOverride +func CreateListAliasesProtectionBypassUnionAliasProtectionOverride(aliasProtectionOverride ListAliasesProtectionBypassAliasProtectionOverride) ListAliasesProtectionBypassUnion { + typ := ListAliasesProtectionBypassUnionTypeAliasProtectionOverride + + typStr := ListAliasesScopeAliasProtectionOverride(typ) + aliasProtectionOverride.Scope = typStr return ListAliasesProtectionBypassUnion{ - ListAliasesProtectionBypassAliasProtectionOverride: &listAliasesProtectionBypassAliasProtectionOverride, + ListAliasesProtectionBypassAliasProtectionOverride: &aliasProtectionOverride, Type: typ, } } -func CreateListAliasesProtectionBypassUnionListAliasesProtectionBypassEmailInvite(listAliasesProtectionBypassEmailInvite ListAliasesProtectionBypassEmailInvite) ListAliasesProtectionBypassUnion { - typ := ListAliasesProtectionBypassUnionTypeListAliasesProtectionBypassEmailInvite +func CreateListAliasesProtectionBypassUnionEmailInvite(emailInvite ListAliasesProtectionBypassEmailInvite) ListAliasesProtectionBypassUnion { + typ := ListAliasesProtectionBypassUnionTypeEmailInvite + + typStr := ListAliasesScopeEmailInvite(typ) + emailInvite.Scope = typStr return ListAliasesProtectionBypassUnion{ - ListAliasesProtectionBypassEmailInvite: &listAliasesProtectionBypassEmailInvite, + ListAliasesProtectionBypassEmailInvite: &emailInvite, Type: typ, } } func (u *ListAliasesProtectionBypassUnion) UnmarshalJSON(data []byte) error { - var listAliasesProtectionBypassUser ListAliasesProtectionBypassUser = ListAliasesProtectionBypassUser{} - if err := utils.UnmarshalJSON(data, &listAliasesProtectionBypassUser, "", true, nil); err == nil { - u.ListAliasesProtectionBypassUser = &listAliasesProtectionBypassUser - u.Type = ListAliasesProtectionBypassUnionTypeListAliasesProtectionBypassUser - return nil + type discriminator struct { + Scope string `json:"scope"` } - var listAliasesProtectionBypassEmailInvite ListAliasesProtectionBypassEmailInvite = ListAliasesProtectionBypassEmailInvite{} - if err := utils.UnmarshalJSON(data, &listAliasesProtectionBypassEmailInvite, "", true, nil); err == nil { - u.ListAliasesProtectionBypassEmailInvite = &listAliasesProtectionBypassEmailInvite - u.Type = ListAliasesProtectionBypassUnionTypeListAliasesProtectionBypassEmailInvite - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var listAliasesProtectionBypassShareableLink ListAliasesProtectionBypassShareableLink = ListAliasesProtectionBypassShareableLink{} - if err := utils.UnmarshalJSON(data, &listAliasesProtectionBypassShareableLink, "", true, nil); err == nil { - u.ListAliasesProtectionBypassShareableLink = &listAliasesProtectionBypassShareableLink - u.Type = ListAliasesProtectionBypassUnionTypeListAliasesProtectionBypassShareableLink + switch dis.Scope { + case "shareable-link": + listAliasesProtectionBypassShareableLink := new(ListAliasesProtectionBypassShareableLink) + if err := utils.UnmarshalJSON(data, &listAliasesProtectionBypassShareableLink, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Scope == shareable-link) type ListAliasesProtectionBypassShareableLink within ListAliasesProtectionBypassUnion: %w", string(data), err) + } + + u.ListAliasesProtectionBypassShareableLink = listAliasesProtectionBypassShareableLink + u.Type = ListAliasesProtectionBypassUnionTypeShareableLink return nil - } + case "user": + listAliasesProtectionBypassUser := new(ListAliasesProtectionBypassUser) + if err := utils.UnmarshalJSON(data, &listAliasesProtectionBypassUser, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Scope == user) type ListAliasesProtectionBypassUser within ListAliasesProtectionBypassUnion: %w", string(data), err) + } + + u.ListAliasesProtectionBypassUser = listAliasesProtectionBypassUser + u.Type = ListAliasesProtectionBypassUnionTypeUser + return nil + case "alias-protection-override": + listAliasesProtectionBypassAliasProtectionOverride := new(ListAliasesProtectionBypassAliasProtectionOverride) + if err := utils.UnmarshalJSON(data, &listAliasesProtectionBypassAliasProtectionOverride, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Scope == alias-protection-override) type ListAliasesProtectionBypassAliasProtectionOverride within ListAliasesProtectionBypassUnion: %w", string(data), err) + } + + u.ListAliasesProtectionBypassAliasProtectionOverride = listAliasesProtectionBypassAliasProtectionOverride + u.Type = ListAliasesProtectionBypassUnionTypeAliasProtectionOverride + return nil + case "email_invite": + listAliasesProtectionBypassEmailInvite := new(ListAliasesProtectionBypassEmailInvite) + if err := utils.UnmarshalJSON(data, &listAliasesProtectionBypassEmailInvite, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Scope == email_invite) type ListAliasesProtectionBypassEmailInvite within ListAliasesProtectionBypassUnion: %w", string(data), err) + } - var listAliasesProtectionBypassAliasProtectionOverride ListAliasesProtectionBypassAliasProtectionOverride = ListAliasesProtectionBypassAliasProtectionOverride{} - if err := utils.UnmarshalJSON(data, &listAliasesProtectionBypassAliasProtectionOverride, "", true, nil); err == nil { - u.ListAliasesProtectionBypassAliasProtectionOverride = &listAliasesProtectionBypassAliasProtectionOverride - u.Type = ListAliasesProtectionBypassUnionTypeListAliasesProtectionBypassAliasProtectionOverride + u.ListAliasesProtectionBypassEmailInvite = listAliasesProtectionBypassEmailInvite + u.Type = ListAliasesProtectionBypassUnionTypeEmailInvite return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/listdeploymentaliases.go b/src/__tests__/mockserver/internal/sdk/models/operations/listdeploymentaliases.go index 0848ecda..cfbed5c7 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/listdeploymentaliases.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/listdeploymentaliases.go @@ -350,10 +350,10 @@ func (o *ListDeploymentAliasesProtectionBypassShareableLink) GetExpires() *float type ListDeploymentAliasesProtectionBypassUnionType string const ( - ListDeploymentAliasesProtectionBypassUnionTypeListDeploymentAliasesProtectionBypassShareableLink ListDeploymentAliasesProtectionBypassUnionType = "listDeploymentAliases_protectionBypass_ShareableLink" - ListDeploymentAliasesProtectionBypassUnionTypeListDeploymentAliasesProtectionBypassUser ListDeploymentAliasesProtectionBypassUnionType = "listDeploymentAliases_protectionBypass_User" - ListDeploymentAliasesProtectionBypassUnionTypeListDeploymentAliasesProtectionBypassAliasProtectionOverride ListDeploymentAliasesProtectionBypassUnionType = "listDeploymentAliases_protectionBypass_AliasProtectionOverride" - ListDeploymentAliasesProtectionBypassUnionTypeListDeploymentAliasesProtectionBypassEmailInvite ListDeploymentAliasesProtectionBypassUnionType = "listDeploymentAliases_protectionBypass_EmailInvite" + ListDeploymentAliasesProtectionBypassUnionTypeShareableLink ListDeploymentAliasesProtectionBypassUnionType = "shareable-link" + ListDeploymentAliasesProtectionBypassUnionTypeUser ListDeploymentAliasesProtectionBypassUnionType = "user" + ListDeploymentAliasesProtectionBypassUnionTypeAliasProtectionOverride ListDeploymentAliasesProtectionBypassUnionType = "alias-protection-override" + ListDeploymentAliasesProtectionBypassUnionTypeEmailInvite ListDeploymentAliasesProtectionBypassUnionType = "email_invite" ) type ListDeploymentAliasesProtectionBypassUnion struct { @@ -365,69 +365,101 @@ type ListDeploymentAliasesProtectionBypassUnion struct { Type ListDeploymentAliasesProtectionBypassUnionType } -func CreateListDeploymentAliasesProtectionBypassUnionListDeploymentAliasesProtectionBypassShareableLink(listDeploymentAliasesProtectionBypassShareableLink ListDeploymentAliasesProtectionBypassShareableLink) ListDeploymentAliasesProtectionBypassUnion { - typ := ListDeploymentAliasesProtectionBypassUnionTypeListDeploymentAliasesProtectionBypassShareableLink +func CreateListDeploymentAliasesProtectionBypassUnionShareableLink(shareableLink ListDeploymentAliasesProtectionBypassShareableLink) ListDeploymentAliasesProtectionBypassUnion { + typ := ListDeploymentAliasesProtectionBypassUnionTypeShareableLink + + typStr := ListDeploymentAliasesScopeShareableLink(typ) + shareableLink.Scope = typStr return ListDeploymentAliasesProtectionBypassUnion{ - ListDeploymentAliasesProtectionBypassShareableLink: &listDeploymentAliasesProtectionBypassShareableLink, + ListDeploymentAliasesProtectionBypassShareableLink: &shareableLink, Type: typ, } } -func CreateListDeploymentAliasesProtectionBypassUnionListDeploymentAliasesProtectionBypassUser(listDeploymentAliasesProtectionBypassUser ListDeploymentAliasesProtectionBypassUser) ListDeploymentAliasesProtectionBypassUnion { - typ := ListDeploymentAliasesProtectionBypassUnionTypeListDeploymentAliasesProtectionBypassUser +func CreateListDeploymentAliasesProtectionBypassUnionUser(user ListDeploymentAliasesProtectionBypassUser) ListDeploymentAliasesProtectionBypassUnion { + typ := ListDeploymentAliasesProtectionBypassUnionTypeUser + + typStr := ListDeploymentAliasesScopeUser(typ) + user.Scope = typStr return ListDeploymentAliasesProtectionBypassUnion{ - ListDeploymentAliasesProtectionBypassUser: &listDeploymentAliasesProtectionBypassUser, + ListDeploymentAliasesProtectionBypassUser: &user, Type: typ, } } -func CreateListDeploymentAliasesProtectionBypassUnionListDeploymentAliasesProtectionBypassAliasProtectionOverride(listDeploymentAliasesProtectionBypassAliasProtectionOverride ListDeploymentAliasesProtectionBypassAliasProtectionOverride) ListDeploymentAliasesProtectionBypassUnion { - typ := ListDeploymentAliasesProtectionBypassUnionTypeListDeploymentAliasesProtectionBypassAliasProtectionOverride +func CreateListDeploymentAliasesProtectionBypassUnionAliasProtectionOverride(aliasProtectionOverride ListDeploymentAliasesProtectionBypassAliasProtectionOverride) ListDeploymentAliasesProtectionBypassUnion { + typ := ListDeploymentAliasesProtectionBypassUnionTypeAliasProtectionOverride + + typStr := ListDeploymentAliasesScopeAliasProtectionOverride(typ) + aliasProtectionOverride.Scope = typStr return ListDeploymentAliasesProtectionBypassUnion{ - ListDeploymentAliasesProtectionBypassAliasProtectionOverride: &listDeploymentAliasesProtectionBypassAliasProtectionOverride, + ListDeploymentAliasesProtectionBypassAliasProtectionOverride: &aliasProtectionOverride, Type: typ, } } -func CreateListDeploymentAliasesProtectionBypassUnionListDeploymentAliasesProtectionBypassEmailInvite(listDeploymentAliasesProtectionBypassEmailInvite ListDeploymentAliasesProtectionBypassEmailInvite) ListDeploymentAliasesProtectionBypassUnion { - typ := ListDeploymentAliasesProtectionBypassUnionTypeListDeploymentAliasesProtectionBypassEmailInvite +func CreateListDeploymentAliasesProtectionBypassUnionEmailInvite(emailInvite ListDeploymentAliasesProtectionBypassEmailInvite) ListDeploymentAliasesProtectionBypassUnion { + typ := ListDeploymentAliasesProtectionBypassUnionTypeEmailInvite + + typStr := ListDeploymentAliasesScopeEmailInvite(typ) + emailInvite.Scope = typStr return ListDeploymentAliasesProtectionBypassUnion{ - ListDeploymentAliasesProtectionBypassEmailInvite: &listDeploymentAliasesProtectionBypassEmailInvite, + ListDeploymentAliasesProtectionBypassEmailInvite: &emailInvite, Type: typ, } } func (u *ListDeploymentAliasesProtectionBypassUnion) UnmarshalJSON(data []byte) error { - var listDeploymentAliasesProtectionBypassUser ListDeploymentAliasesProtectionBypassUser = ListDeploymentAliasesProtectionBypassUser{} - if err := utils.UnmarshalJSON(data, &listDeploymentAliasesProtectionBypassUser, "", true, nil); err == nil { - u.ListDeploymentAliasesProtectionBypassUser = &listDeploymentAliasesProtectionBypassUser - u.Type = ListDeploymentAliasesProtectionBypassUnionTypeListDeploymentAliasesProtectionBypassUser - return nil + type discriminator struct { + Scope string `json:"scope"` } - var listDeploymentAliasesProtectionBypassEmailInvite ListDeploymentAliasesProtectionBypassEmailInvite = ListDeploymentAliasesProtectionBypassEmailInvite{} - if err := utils.UnmarshalJSON(data, &listDeploymentAliasesProtectionBypassEmailInvite, "", true, nil); err == nil { - u.ListDeploymentAliasesProtectionBypassEmailInvite = &listDeploymentAliasesProtectionBypassEmailInvite - u.Type = ListDeploymentAliasesProtectionBypassUnionTypeListDeploymentAliasesProtectionBypassEmailInvite - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var listDeploymentAliasesProtectionBypassShareableLink ListDeploymentAliasesProtectionBypassShareableLink = ListDeploymentAliasesProtectionBypassShareableLink{} - if err := utils.UnmarshalJSON(data, &listDeploymentAliasesProtectionBypassShareableLink, "", true, nil); err == nil { - u.ListDeploymentAliasesProtectionBypassShareableLink = &listDeploymentAliasesProtectionBypassShareableLink - u.Type = ListDeploymentAliasesProtectionBypassUnionTypeListDeploymentAliasesProtectionBypassShareableLink + switch dis.Scope { + case "shareable-link": + listDeploymentAliasesProtectionBypassShareableLink := new(ListDeploymentAliasesProtectionBypassShareableLink) + if err := utils.UnmarshalJSON(data, &listDeploymentAliasesProtectionBypassShareableLink, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Scope == shareable-link) type ListDeploymentAliasesProtectionBypassShareableLink within ListDeploymentAliasesProtectionBypassUnion: %w", string(data), err) + } + + u.ListDeploymentAliasesProtectionBypassShareableLink = listDeploymentAliasesProtectionBypassShareableLink + u.Type = ListDeploymentAliasesProtectionBypassUnionTypeShareableLink return nil - } + case "user": + listDeploymentAliasesProtectionBypassUser := new(ListDeploymentAliasesProtectionBypassUser) + if err := utils.UnmarshalJSON(data, &listDeploymentAliasesProtectionBypassUser, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Scope == user) type ListDeploymentAliasesProtectionBypassUser within ListDeploymentAliasesProtectionBypassUnion: %w", string(data), err) + } + + u.ListDeploymentAliasesProtectionBypassUser = listDeploymentAliasesProtectionBypassUser + u.Type = ListDeploymentAliasesProtectionBypassUnionTypeUser + return nil + case "alias-protection-override": + listDeploymentAliasesProtectionBypassAliasProtectionOverride := new(ListDeploymentAliasesProtectionBypassAliasProtectionOverride) + if err := utils.UnmarshalJSON(data, &listDeploymentAliasesProtectionBypassAliasProtectionOverride, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Scope == alias-protection-override) type ListDeploymentAliasesProtectionBypassAliasProtectionOverride within ListDeploymentAliasesProtectionBypassUnion: %w", string(data), err) + } + + u.ListDeploymentAliasesProtectionBypassAliasProtectionOverride = listDeploymentAliasesProtectionBypassAliasProtectionOverride + u.Type = ListDeploymentAliasesProtectionBypassUnionTypeAliasProtectionOverride + return nil + case "email_invite": + listDeploymentAliasesProtectionBypassEmailInvite := new(ListDeploymentAliasesProtectionBypassEmailInvite) + if err := utils.UnmarshalJSON(data, &listDeploymentAliasesProtectionBypassEmailInvite, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Scope == email_invite) type ListDeploymentAliasesProtectionBypassEmailInvite within ListDeploymentAliasesProtectionBypassUnion: %w", string(data), err) + } - var listDeploymentAliasesProtectionBypassAliasProtectionOverride ListDeploymentAliasesProtectionBypassAliasProtectionOverride = ListDeploymentAliasesProtectionBypassAliasProtectionOverride{} - if err := utils.UnmarshalJSON(data, &listDeploymentAliasesProtectionBypassAliasProtectionOverride, "", true, nil); err == nil { - u.ListDeploymentAliasesProtectionBypassAliasProtectionOverride = &listDeploymentAliasesProtectionBypassAliasProtectionOverride - u.Type = ListDeploymentAliasesProtectionBypassUnionTypeListDeploymentAliasesProtectionBypassAliasProtectionOverride + u.ListDeploymentAliasesProtectionBypassEmailInvite = listDeploymentAliasesProtectionBypassEmailInvite + u.Type = ListDeploymentAliasesProtectionBypassUnionTypeEmailInvite return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/removeprojectenv.go b/src/__tests__/mockserver/internal/sdk/models/operations/removeprojectenv.go index 7f6fcf3f..dfe5775e 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/removeprojectenv.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/removeprojectenv.go @@ -1036,21 +1036,21 @@ func (o *RemoveProjectEnvContentHintRedisURL3) GetStoreID() string { type RemoveProjectEnvContentHintUnion3Type string const ( - RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintRedisURL3 RemoveProjectEnvContentHintUnion3Type = "removeProjectEnv_contentHint_RedisURL_3" - RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintRedisRestAPIURL3 RemoveProjectEnvContentHintUnion3Type = "removeProjectEnv_contentHint_RedisRestAPIURL_3" - RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintRedisRestAPIToken3 RemoveProjectEnvContentHintUnion3Type = "removeProjectEnv_contentHint_RedisRestAPIToken_3" - RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3 RemoveProjectEnvContentHintUnion3Type = "removeProjectEnv_contentHint_RedisRestAPIReadOnlyToken_3" - RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintBlobReadWriteToken3 RemoveProjectEnvContentHintUnion3Type = "removeProjectEnv_contentHint_BlobReadWriteToken_3" - RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresURL3 RemoveProjectEnvContentHintUnion3Type = "removeProjectEnv_contentHint_PostgresURL_3" - RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresURLNonPooling3 RemoveProjectEnvContentHintUnion3Type = "removeProjectEnv_contentHint_PostgresURLNonPooling_3" - RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresPrismaURL3 RemoveProjectEnvContentHintUnion3Type = "removeProjectEnv_contentHint_PostgresPrismaURL_3" - RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresUser3 RemoveProjectEnvContentHintUnion3Type = "removeProjectEnv_contentHint_PostgresUser_3" - RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresHost3 RemoveProjectEnvContentHintUnion3Type = "removeProjectEnv_contentHint_PostgresHost_3" - RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresPassword3 RemoveProjectEnvContentHintUnion3Type = "removeProjectEnv_contentHint_PostgresPassword_3" - RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresDatabase3 RemoveProjectEnvContentHintUnion3Type = "removeProjectEnv_contentHint_PostgresDatabase_3" - RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresURLNoSsl3 RemoveProjectEnvContentHintUnion3Type = "removeProjectEnv_contentHint_PostgresURLNoSsl_3" - RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintIntegrationStoreSecret3 RemoveProjectEnvContentHintUnion3Type = "removeProjectEnv_contentHint_IntegrationStoreSecret_3" - RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintFlagsConnectionString3 RemoveProjectEnvContentHintUnion3Type = "removeProjectEnv_contentHint_FlagsConnectionString_3" + RemoveProjectEnvContentHintUnion3TypeRedisURL RemoveProjectEnvContentHintUnion3Type = "redis-url" + RemoveProjectEnvContentHintUnion3TypeRedisRestAPIURL RemoveProjectEnvContentHintUnion3Type = "redis-rest-api-url" + RemoveProjectEnvContentHintUnion3TypeRedisRestAPIToken RemoveProjectEnvContentHintUnion3Type = "redis-rest-api-token" + RemoveProjectEnvContentHintUnion3TypeRedisRestAPIReadOnlyToken RemoveProjectEnvContentHintUnion3Type = "redis-rest-api-read-only-token" + RemoveProjectEnvContentHintUnion3TypeBlobReadWriteToken RemoveProjectEnvContentHintUnion3Type = "blob-read-write-token" + RemoveProjectEnvContentHintUnion3TypePostgresURL RemoveProjectEnvContentHintUnion3Type = "postgres-url" + RemoveProjectEnvContentHintUnion3TypePostgresURLNonPooling RemoveProjectEnvContentHintUnion3Type = "postgres-url-non-pooling" + RemoveProjectEnvContentHintUnion3TypePostgresPrismaURL RemoveProjectEnvContentHintUnion3Type = "postgres-prisma-url" + RemoveProjectEnvContentHintUnion3TypePostgresUser RemoveProjectEnvContentHintUnion3Type = "postgres-user" + RemoveProjectEnvContentHintUnion3TypePostgresHost RemoveProjectEnvContentHintUnion3Type = "postgres-host" + RemoveProjectEnvContentHintUnion3TypePostgresPassword RemoveProjectEnvContentHintUnion3Type = "postgres-password" + RemoveProjectEnvContentHintUnion3TypePostgresDatabase RemoveProjectEnvContentHintUnion3Type = "postgres-database" + RemoveProjectEnvContentHintUnion3TypePostgresURLNoSsl RemoveProjectEnvContentHintUnion3Type = "postgres-url-no-ssl" + RemoveProjectEnvContentHintUnion3TypeIntegrationStoreSecret RemoveProjectEnvContentHintUnion3Type = "integration-store-secret" + RemoveProjectEnvContentHintUnion3TypeFlagsConnectionString RemoveProjectEnvContentHintUnion3Type = "flags-connection-string" ) type RemoveProjectEnvContentHintUnion3 struct { @@ -1073,245 +1073,332 @@ type RemoveProjectEnvContentHintUnion3 struct { Type RemoveProjectEnvContentHintUnion3Type } -func CreateRemoveProjectEnvContentHintUnion3RemoveProjectEnvContentHintRedisURL3(removeProjectEnvContentHintRedisURL3 RemoveProjectEnvContentHintRedisURL3) RemoveProjectEnvContentHintUnion3 { - typ := RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintRedisURL3 +func CreateRemoveProjectEnvContentHintUnion3RedisURL(redisURL RemoveProjectEnvContentHintRedisURL3) RemoveProjectEnvContentHintUnion3 { + typ := RemoveProjectEnvContentHintUnion3TypeRedisURL + + typStr := RemoveProjectEnvTypeRedisURL3(typ) + redisURL.Type = typStr return RemoveProjectEnvContentHintUnion3{ - RemoveProjectEnvContentHintRedisURL3: &removeProjectEnvContentHintRedisURL3, + RemoveProjectEnvContentHintRedisURL3: &redisURL, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion3RemoveProjectEnvContentHintRedisRestAPIURL3(removeProjectEnvContentHintRedisRestAPIURL3 RemoveProjectEnvContentHintRedisRestAPIURL3) RemoveProjectEnvContentHintUnion3 { - typ := RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintRedisRestAPIURL3 +func CreateRemoveProjectEnvContentHintUnion3RedisRestAPIURL(redisRestAPIURL RemoveProjectEnvContentHintRedisRestAPIURL3) RemoveProjectEnvContentHintUnion3 { + typ := RemoveProjectEnvContentHintUnion3TypeRedisRestAPIURL + + typStr := RemoveProjectEnvTypeRedisRestAPIURL3(typ) + redisRestAPIURL.Type = typStr return RemoveProjectEnvContentHintUnion3{ - RemoveProjectEnvContentHintRedisRestAPIURL3: &removeProjectEnvContentHintRedisRestAPIURL3, + RemoveProjectEnvContentHintRedisRestAPIURL3: &redisRestAPIURL, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion3RemoveProjectEnvContentHintRedisRestAPIToken3(removeProjectEnvContentHintRedisRestAPIToken3 RemoveProjectEnvContentHintRedisRestAPIToken3) RemoveProjectEnvContentHintUnion3 { - typ := RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintRedisRestAPIToken3 +func CreateRemoveProjectEnvContentHintUnion3RedisRestAPIToken(redisRestAPIToken RemoveProjectEnvContentHintRedisRestAPIToken3) RemoveProjectEnvContentHintUnion3 { + typ := RemoveProjectEnvContentHintUnion3TypeRedisRestAPIToken + + typStr := RemoveProjectEnvTypeRedisRestAPIToken3(typ) + redisRestAPIToken.Type = typStr return RemoveProjectEnvContentHintUnion3{ - RemoveProjectEnvContentHintRedisRestAPIToken3: &removeProjectEnvContentHintRedisRestAPIToken3, + RemoveProjectEnvContentHintRedisRestAPIToken3: &redisRestAPIToken, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion3RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3(removeProjectEnvContentHintRedisRestAPIReadOnlyToken3 RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3) RemoveProjectEnvContentHintUnion3 { - typ := RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3 +func CreateRemoveProjectEnvContentHintUnion3RedisRestAPIReadOnlyToken(redisRestAPIReadOnlyToken RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3) RemoveProjectEnvContentHintUnion3 { + typ := RemoveProjectEnvContentHintUnion3TypeRedisRestAPIReadOnlyToken + + typStr := RemoveProjectEnvTypeRedisRestAPIReadOnlyToken3(typ) + redisRestAPIReadOnlyToken.Type = typStr return RemoveProjectEnvContentHintUnion3{ - RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3: &removeProjectEnvContentHintRedisRestAPIReadOnlyToken3, + RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3: &redisRestAPIReadOnlyToken, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion3RemoveProjectEnvContentHintBlobReadWriteToken3(removeProjectEnvContentHintBlobReadWriteToken3 RemoveProjectEnvContentHintBlobReadWriteToken3) RemoveProjectEnvContentHintUnion3 { - typ := RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintBlobReadWriteToken3 +func CreateRemoveProjectEnvContentHintUnion3BlobReadWriteToken(blobReadWriteToken RemoveProjectEnvContentHintBlobReadWriteToken3) RemoveProjectEnvContentHintUnion3 { + typ := RemoveProjectEnvContentHintUnion3TypeBlobReadWriteToken + + typStr := RemoveProjectEnvTypeBlobReadWriteToken3(typ) + blobReadWriteToken.Type = typStr return RemoveProjectEnvContentHintUnion3{ - RemoveProjectEnvContentHintBlobReadWriteToken3: &removeProjectEnvContentHintBlobReadWriteToken3, + RemoveProjectEnvContentHintBlobReadWriteToken3: &blobReadWriteToken, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion3RemoveProjectEnvContentHintPostgresURL3(removeProjectEnvContentHintPostgresURL3 RemoveProjectEnvContentHintPostgresURL3) RemoveProjectEnvContentHintUnion3 { - typ := RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresURL3 +func CreateRemoveProjectEnvContentHintUnion3PostgresURL(postgresURL RemoveProjectEnvContentHintPostgresURL3) RemoveProjectEnvContentHintUnion3 { + typ := RemoveProjectEnvContentHintUnion3TypePostgresURL + + typStr := RemoveProjectEnvTypePostgresURL3(typ) + postgresURL.Type = typStr return RemoveProjectEnvContentHintUnion3{ - RemoveProjectEnvContentHintPostgresURL3: &removeProjectEnvContentHintPostgresURL3, + RemoveProjectEnvContentHintPostgresURL3: &postgresURL, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion3RemoveProjectEnvContentHintPostgresURLNonPooling3(removeProjectEnvContentHintPostgresURLNonPooling3 RemoveProjectEnvContentHintPostgresURLNonPooling3) RemoveProjectEnvContentHintUnion3 { - typ := RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresURLNonPooling3 +func CreateRemoveProjectEnvContentHintUnion3PostgresURLNonPooling(postgresURLNonPooling RemoveProjectEnvContentHintPostgresURLNonPooling3) RemoveProjectEnvContentHintUnion3 { + typ := RemoveProjectEnvContentHintUnion3TypePostgresURLNonPooling + + typStr := RemoveProjectEnvTypePostgresURLNonPooling3(typ) + postgresURLNonPooling.Type = typStr return RemoveProjectEnvContentHintUnion3{ - RemoveProjectEnvContentHintPostgresURLNonPooling3: &removeProjectEnvContentHintPostgresURLNonPooling3, + RemoveProjectEnvContentHintPostgresURLNonPooling3: &postgresURLNonPooling, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion3RemoveProjectEnvContentHintPostgresPrismaURL3(removeProjectEnvContentHintPostgresPrismaURL3 RemoveProjectEnvContentHintPostgresPrismaURL3) RemoveProjectEnvContentHintUnion3 { - typ := RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresPrismaURL3 +func CreateRemoveProjectEnvContentHintUnion3PostgresPrismaURL(postgresPrismaURL RemoveProjectEnvContentHintPostgresPrismaURL3) RemoveProjectEnvContentHintUnion3 { + typ := RemoveProjectEnvContentHintUnion3TypePostgresPrismaURL + + typStr := RemoveProjectEnvTypePostgresPrismaURL3(typ) + postgresPrismaURL.Type = typStr return RemoveProjectEnvContentHintUnion3{ - RemoveProjectEnvContentHintPostgresPrismaURL3: &removeProjectEnvContentHintPostgresPrismaURL3, + RemoveProjectEnvContentHintPostgresPrismaURL3: &postgresPrismaURL, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion3RemoveProjectEnvContentHintPostgresUser3(removeProjectEnvContentHintPostgresUser3 RemoveProjectEnvContentHintPostgresUser3) RemoveProjectEnvContentHintUnion3 { - typ := RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresUser3 +func CreateRemoveProjectEnvContentHintUnion3PostgresUser(postgresUser RemoveProjectEnvContentHintPostgresUser3) RemoveProjectEnvContentHintUnion3 { + typ := RemoveProjectEnvContentHintUnion3TypePostgresUser + + typStr := RemoveProjectEnvTypePostgresUser3(typ) + postgresUser.Type = typStr return RemoveProjectEnvContentHintUnion3{ - RemoveProjectEnvContentHintPostgresUser3: &removeProjectEnvContentHintPostgresUser3, + RemoveProjectEnvContentHintPostgresUser3: &postgresUser, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion3RemoveProjectEnvContentHintPostgresHost3(removeProjectEnvContentHintPostgresHost3 RemoveProjectEnvContentHintPostgresHost3) RemoveProjectEnvContentHintUnion3 { - typ := RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresHost3 +func CreateRemoveProjectEnvContentHintUnion3PostgresHost(postgresHost RemoveProjectEnvContentHintPostgresHost3) RemoveProjectEnvContentHintUnion3 { + typ := RemoveProjectEnvContentHintUnion3TypePostgresHost + + typStr := RemoveProjectEnvTypePostgresHost3(typ) + postgresHost.Type = typStr return RemoveProjectEnvContentHintUnion3{ - RemoveProjectEnvContentHintPostgresHost3: &removeProjectEnvContentHintPostgresHost3, + RemoveProjectEnvContentHintPostgresHost3: &postgresHost, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion3RemoveProjectEnvContentHintPostgresPassword3(removeProjectEnvContentHintPostgresPassword3 RemoveProjectEnvContentHintPostgresPassword3) RemoveProjectEnvContentHintUnion3 { - typ := RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresPassword3 +func CreateRemoveProjectEnvContentHintUnion3PostgresPassword(postgresPassword RemoveProjectEnvContentHintPostgresPassword3) RemoveProjectEnvContentHintUnion3 { + typ := RemoveProjectEnvContentHintUnion3TypePostgresPassword + + typStr := RemoveProjectEnvTypePostgresPassword3(typ) + postgresPassword.Type = typStr return RemoveProjectEnvContentHintUnion3{ - RemoveProjectEnvContentHintPostgresPassword3: &removeProjectEnvContentHintPostgresPassword3, + RemoveProjectEnvContentHintPostgresPassword3: &postgresPassword, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion3RemoveProjectEnvContentHintPostgresDatabase3(removeProjectEnvContentHintPostgresDatabase3 RemoveProjectEnvContentHintPostgresDatabase3) RemoveProjectEnvContentHintUnion3 { - typ := RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresDatabase3 +func CreateRemoveProjectEnvContentHintUnion3PostgresDatabase(postgresDatabase RemoveProjectEnvContentHintPostgresDatabase3) RemoveProjectEnvContentHintUnion3 { + typ := RemoveProjectEnvContentHintUnion3TypePostgresDatabase + + typStr := RemoveProjectEnvTypePostgresDatabase3(typ) + postgresDatabase.Type = typStr return RemoveProjectEnvContentHintUnion3{ - RemoveProjectEnvContentHintPostgresDatabase3: &removeProjectEnvContentHintPostgresDatabase3, + RemoveProjectEnvContentHintPostgresDatabase3: &postgresDatabase, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion3RemoveProjectEnvContentHintPostgresURLNoSsl3(removeProjectEnvContentHintPostgresURLNoSsl3 RemoveProjectEnvContentHintPostgresURLNoSsl3) RemoveProjectEnvContentHintUnion3 { - typ := RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresURLNoSsl3 +func CreateRemoveProjectEnvContentHintUnion3PostgresURLNoSsl(postgresURLNoSsl RemoveProjectEnvContentHintPostgresURLNoSsl3) RemoveProjectEnvContentHintUnion3 { + typ := RemoveProjectEnvContentHintUnion3TypePostgresURLNoSsl + + typStr := RemoveProjectEnvTypePostgresURLNoSsl3(typ) + postgresURLNoSsl.Type = typStr return RemoveProjectEnvContentHintUnion3{ - RemoveProjectEnvContentHintPostgresURLNoSsl3: &removeProjectEnvContentHintPostgresURLNoSsl3, + RemoveProjectEnvContentHintPostgresURLNoSsl3: &postgresURLNoSsl, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion3RemoveProjectEnvContentHintIntegrationStoreSecret3(removeProjectEnvContentHintIntegrationStoreSecret3 RemoveProjectEnvContentHintIntegrationStoreSecret3) RemoveProjectEnvContentHintUnion3 { - typ := RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintIntegrationStoreSecret3 +func CreateRemoveProjectEnvContentHintUnion3IntegrationStoreSecret(integrationStoreSecret RemoveProjectEnvContentHintIntegrationStoreSecret3) RemoveProjectEnvContentHintUnion3 { + typ := RemoveProjectEnvContentHintUnion3TypeIntegrationStoreSecret + + typStr := RemoveProjectEnvTypeIntegrationStoreSecret3(typ) + integrationStoreSecret.Type = typStr return RemoveProjectEnvContentHintUnion3{ - RemoveProjectEnvContentHintIntegrationStoreSecret3: &removeProjectEnvContentHintIntegrationStoreSecret3, + RemoveProjectEnvContentHintIntegrationStoreSecret3: &integrationStoreSecret, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion3RemoveProjectEnvContentHintFlagsConnectionString3(removeProjectEnvContentHintFlagsConnectionString3 RemoveProjectEnvContentHintFlagsConnectionString3) RemoveProjectEnvContentHintUnion3 { - typ := RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintFlagsConnectionString3 +func CreateRemoveProjectEnvContentHintUnion3FlagsConnectionString(flagsConnectionString RemoveProjectEnvContentHintFlagsConnectionString3) RemoveProjectEnvContentHintUnion3 { + typ := RemoveProjectEnvContentHintUnion3TypeFlagsConnectionString + + typStr := RemoveProjectEnvTypeFlagsConnectionString3(typ) + flagsConnectionString.Type = typStr return RemoveProjectEnvContentHintUnion3{ - RemoveProjectEnvContentHintFlagsConnectionString3: &removeProjectEnvContentHintFlagsConnectionString3, + RemoveProjectEnvContentHintFlagsConnectionString3: &flagsConnectionString, Type: typ, } } func (u *RemoveProjectEnvContentHintUnion3) UnmarshalJSON(data []byte) error { - var removeProjectEnvContentHintIntegrationStoreSecret3 RemoveProjectEnvContentHintIntegrationStoreSecret3 = RemoveProjectEnvContentHintIntegrationStoreSecret3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintIntegrationStoreSecret3, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintIntegrationStoreSecret3 = &removeProjectEnvContentHintIntegrationStoreSecret3 - u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintIntegrationStoreSecret3 - return nil + type discriminator struct { + Type string `json:"type"` } - var removeProjectEnvContentHintRedisURL3 RemoveProjectEnvContentHintRedisURL3 = RemoveProjectEnvContentHintRedisURL3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisURL3, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintRedisURL3 = &removeProjectEnvContentHintRedisURL3 - u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintRedisURL3 - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var removeProjectEnvContentHintRedisRestAPIURL3 RemoveProjectEnvContentHintRedisRestAPIURL3 = RemoveProjectEnvContentHintRedisRestAPIURL3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIURL3, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintRedisRestAPIURL3 = &removeProjectEnvContentHintRedisRestAPIURL3 - u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintRedisRestAPIURL3 + switch dis.Type { + case "redis-url": + removeProjectEnvContentHintRedisURL3 := new(RemoveProjectEnvContentHintRedisURL3) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisURL3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-url) type RemoveProjectEnvContentHintRedisURL3 within RemoveProjectEnvContentHintUnion3: %w", string(data), err) + } + + u.RemoveProjectEnvContentHintRedisURL3 = removeProjectEnvContentHintRedisURL3 + u.Type = RemoveProjectEnvContentHintUnion3TypeRedisURL return nil - } + case "redis-rest-api-url": + removeProjectEnvContentHintRedisRestAPIURL3 := new(RemoveProjectEnvContentHintRedisRestAPIURL3) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIURL3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-url) type RemoveProjectEnvContentHintRedisRestAPIURL3 within RemoveProjectEnvContentHintUnion3: %w", string(data), err) + } - var removeProjectEnvContentHintRedisRestAPIToken3 RemoveProjectEnvContentHintRedisRestAPIToken3 = RemoveProjectEnvContentHintRedisRestAPIToken3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIToken3, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintRedisRestAPIToken3 = &removeProjectEnvContentHintRedisRestAPIToken3 - u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintRedisRestAPIToken3 + u.RemoveProjectEnvContentHintRedisRestAPIURL3 = removeProjectEnvContentHintRedisRestAPIURL3 + u.Type = RemoveProjectEnvContentHintUnion3TypeRedisRestAPIURL return nil - } + case "redis-rest-api-token": + removeProjectEnvContentHintRedisRestAPIToken3 := new(RemoveProjectEnvContentHintRedisRestAPIToken3) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIToken3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-token) type RemoveProjectEnvContentHintRedisRestAPIToken3 within RemoveProjectEnvContentHintUnion3: %w", string(data), err) + } - var removeProjectEnvContentHintRedisRestAPIReadOnlyToken3 RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3 = RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIReadOnlyToken3, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3 = &removeProjectEnvContentHintRedisRestAPIReadOnlyToken3 - u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3 + u.RemoveProjectEnvContentHintRedisRestAPIToken3 = removeProjectEnvContentHintRedisRestAPIToken3 + u.Type = RemoveProjectEnvContentHintUnion3TypeRedisRestAPIToken return nil - } + case "redis-rest-api-read-only-token": + removeProjectEnvContentHintRedisRestAPIReadOnlyToken3 := new(RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIReadOnlyToken3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-read-only-token) type RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3 within RemoveProjectEnvContentHintUnion3: %w", string(data), err) + } - var removeProjectEnvContentHintBlobReadWriteToken3 RemoveProjectEnvContentHintBlobReadWriteToken3 = RemoveProjectEnvContentHintBlobReadWriteToken3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintBlobReadWriteToken3, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintBlobReadWriteToken3 = &removeProjectEnvContentHintBlobReadWriteToken3 - u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintBlobReadWriteToken3 + u.RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3 = removeProjectEnvContentHintRedisRestAPIReadOnlyToken3 + u.Type = RemoveProjectEnvContentHintUnion3TypeRedisRestAPIReadOnlyToken return nil - } + case "blob-read-write-token": + removeProjectEnvContentHintBlobReadWriteToken3 := new(RemoveProjectEnvContentHintBlobReadWriteToken3) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintBlobReadWriteToken3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == blob-read-write-token) type RemoveProjectEnvContentHintBlobReadWriteToken3 within RemoveProjectEnvContentHintUnion3: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresURL3 RemoveProjectEnvContentHintPostgresURL3 = RemoveProjectEnvContentHintPostgresURL3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURL3, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresURL3 = &removeProjectEnvContentHintPostgresURL3 - u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresURL3 + u.RemoveProjectEnvContentHintBlobReadWriteToken3 = removeProjectEnvContentHintBlobReadWriteToken3 + u.Type = RemoveProjectEnvContentHintUnion3TypeBlobReadWriteToken return nil - } + case "postgres-url": + removeProjectEnvContentHintPostgresURL3 := new(RemoveProjectEnvContentHintPostgresURL3) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURL3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url) type RemoveProjectEnvContentHintPostgresURL3 within RemoveProjectEnvContentHintUnion3: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresURLNonPooling3 RemoveProjectEnvContentHintPostgresURLNonPooling3 = RemoveProjectEnvContentHintPostgresURLNonPooling3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNonPooling3, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresURLNonPooling3 = &removeProjectEnvContentHintPostgresURLNonPooling3 - u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresURLNonPooling3 + u.RemoveProjectEnvContentHintPostgresURL3 = removeProjectEnvContentHintPostgresURL3 + u.Type = RemoveProjectEnvContentHintUnion3TypePostgresURL return nil - } + case "postgres-url-non-pooling": + removeProjectEnvContentHintPostgresURLNonPooling3 := new(RemoveProjectEnvContentHintPostgresURLNonPooling3) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNonPooling3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-non-pooling) type RemoveProjectEnvContentHintPostgresURLNonPooling3 within RemoveProjectEnvContentHintUnion3: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresPrismaURL3 RemoveProjectEnvContentHintPostgresPrismaURL3 = RemoveProjectEnvContentHintPostgresPrismaURL3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPrismaURL3, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresPrismaURL3 = &removeProjectEnvContentHintPostgresPrismaURL3 - u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresPrismaURL3 + u.RemoveProjectEnvContentHintPostgresURLNonPooling3 = removeProjectEnvContentHintPostgresURLNonPooling3 + u.Type = RemoveProjectEnvContentHintUnion3TypePostgresURLNonPooling return nil - } + case "postgres-prisma-url": + removeProjectEnvContentHintPostgresPrismaURL3 := new(RemoveProjectEnvContentHintPostgresPrismaURL3) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPrismaURL3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-prisma-url) type RemoveProjectEnvContentHintPostgresPrismaURL3 within RemoveProjectEnvContentHintUnion3: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresUser3 RemoveProjectEnvContentHintPostgresUser3 = RemoveProjectEnvContentHintPostgresUser3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresUser3, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresUser3 = &removeProjectEnvContentHintPostgresUser3 - u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresUser3 + u.RemoveProjectEnvContentHintPostgresPrismaURL3 = removeProjectEnvContentHintPostgresPrismaURL3 + u.Type = RemoveProjectEnvContentHintUnion3TypePostgresPrismaURL return nil - } + case "postgres-user": + removeProjectEnvContentHintPostgresUser3 := new(RemoveProjectEnvContentHintPostgresUser3) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresUser3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-user) type RemoveProjectEnvContentHintPostgresUser3 within RemoveProjectEnvContentHintUnion3: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresHost3 RemoveProjectEnvContentHintPostgresHost3 = RemoveProjectEnvContentHintPostgresHost3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresHost3, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresHost3 = &removeProjectEnvContentHintPostgresHost3 - u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresHost3 + u.RemoveProjectEnvContentHintPostgresUser3 = removeProjectEnvContentHintPostgresUser3 + u.Type = RemoveProjectEnvContentHintUnion3TypePostgresUser return nil - } + case "postgres-host": + removeProjectEnvContentHintPostgresHost3 := new(RemoveProjectEnvContentHintPostgresHost3) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresHost3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-host) type RemoveProjectEnvContentHintPostgresHost3 within RemoveProjectEnvContentHintUnion3: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresPassword3 RemoveProjectEnvContentHintPostgresPassword3 = RemoveProjectEnvContentHintPostgresPassword3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPassword3, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresPassword3 = &removeProjectEnvContentHintPostgresPassword3 - u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresPassword3 + u.RemoveProjectEnvContentHintPostgresHost3 = removeProjectEnvContentHintPostgresHost3 + u.Type = RemoveProjectEnvContentHintUnion3TypePostgresHost return nil - } + case "postgres-password": + removeProjectEnvContentHintPostgresPassword3 := new(RemoveProjectEnvContentHintPostgresPassword3) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPassword3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-password) type RemoveProjectEnvContentHintPostgresPassword3 within RemoveProjectEnvContentHintUnion3: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresDatabase3 RemoveProjectEnvContentHintPostgresDatabase3 = RemoveProjectEnvContentHintPostgresDatabase3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresDatabase3, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresDatabase3 = &removeProjectEnvContentHintPostgresDatabase3 - u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresDatabase3 + u.RemoveProjectEnvContentHintPostgresPassword3 = removeProjectEnvContentHintPostgresPassword3 + u.Type = RemoveProjectEnvContentHintUnion3TypePostgresPassword return nil - } + case "postgres-database": + removeProjectEnvContentHintPostgresDatabase3 := new(RemoveProjectEnvContentHintPostgresDatabase3) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresDatabase3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-database) type RemoveProjectEnvContentHintPostgresDatabase3 within RemoveProjectEnvContentHintUnion3: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresURLNoSsl3 RemoveProjectEnvContentHintPostgresURLNoSsl3 = RemoveProjectEnvContentHintPostgresURLNoSsl3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNoSsl3, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresURLNoSsl3 = &removeProjectEnvContentHintPostgresURLNoSsl3 - u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresURLNoSsl3 + u.RemoveProjectEnvContentHintPostgresDatabase3 = removeProjectEnvContentHintPostgresDatabase3 + u.Type = RemoveProjectEnvContentHintUnion3TypePostgresDatabase return nil - } + case "postgres-url-no-ssl": + removeProjectEnvContentHintPostgresURLNoSsl3 := new(RemoveProjectEnvContentHintPostgresURLNoSsl3) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNoSsl3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-no-ssl) type RemoveProjectEnvContentHintPostgresURLNoSsl3 within RemoveProjectEnvContentHintUnion3: %w", string(data), err) + } + + u.RemoveProjectEnvContentHintPostgresURLNoSsl3 = removeProjectEnvContentHintPostgresURLNoSsl3 + u.Type = RemoveProjectEnvContentHintUnion3TypePostgresURLNoSsl + return nil + case "integration-store-secret": + removeProjectEnvContentHintIntegrationStoreSecret3 := new(RemoveProjectEnvContentHintIntegrationStoreSecret3) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintIntegrationStoreSecret3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == integration-store-secret) type RemoveProjectEnvContentHintIntegrationStoreSecret3 within RemoveProjectEnvContentHintUnion3: %w", string(data), err) + } - var removeProjectEnvContentHintFlagsConnectionString3 RemoveProjectEnvContentHintFlagsConnectionString3 = RemoveProjectEnvContentHintFlagsConnectionString3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintFlagsConnectionString3, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintFlagsConnectionString3 = &removeProjectEnvContentHintFlagsConnectionString3 - u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintFlagsConnectionString3 + u.RemoveProjectEnvContentHintIntegrationStoreSecret3 = removeProjectEnvContentHintIntegrationStoreSecret3 + u.Type = RemoveProjectEnvContentHintUnion3TypeIntegrationStoreSecret + return nil + case "flags-connection-string": + removeProjectEnvContentHintFlagsConnectionString3 := new(RemoveProjectEnvContentHintFlagsConnectionString3) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintFlagsConnectionString3, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == flags-connection-string) type RemoveProjectEnvContentHintFlagsConnectionString3 within RemoveProjectEnvContentHintUnion3: %w", string(data), err) + } + + u.RemoveProjectEnvContentHintFlagsConnectionString3 = removeProjectEnvContentHintFlagsConnectionString3 + u.Type = RemoveProjectEnvContentHintUnion3TypeFlagsConnectionString return nil } @@ -1592,6 +1679,111 @@ func (o *RemoveProjectEnvResponseBody3) GetContentHint() *RemoveProjectEnvConten return o.ContentHint } +func (o *RemoveProjectEnvResponseBody3) GetContentHintRedisURL() *RemoveProjectEnvContentHintRedisURL3 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintRedisURL3 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody3) GetContentHintRedisRestAPIURL() *RemoveProjectEnvContentHintRedisRestAPIURL3 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintRedisRestAPIURL3 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody3) GetContentHintRedisRestAPIToken() *RemoveProjectEnvContentHintRedisRestAPIToken3 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintRedisRestAPIToken3 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody3) GetContentHintRedisRestAPIReadOnlyToken() *RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody3) GetContentHintBlobReadWriteToken() *RemoveProjectEnvContentHintBlobReadWriteToken3 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintBlobReadWriteToken3 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody3) GetContentHintPostgresURL() *RemoveProjectEnvContentHintPostgresURL3 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresURL3 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody3) GetContentHintPostgresURLNonPooling() *RemoveProjectEnvContentHintPostgresURLNonPooling3 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresURLNonPooling3 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody3) GetContentHintPostgresPrismaURL() *RemoveProjectEnvContentHintPostgresPrismaURL3 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresPrismaURL3 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody3) GetContentHintPostgresUser() *RemoveProjectEnvContentHintPostgresUser3 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresUser3 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody3) GetContentHintPostgresHost() *RemoveProjectEnvContentHintPostgresHost3 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresHost3 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody3) GetContentHintPostgresPassword() *RemoveProjectEnvContentHintPostgresPassword3 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresPassword3 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody3) GetContentHintPostgresDatabase() *RemoveProjectEnvContentHintPostgresDatabase3 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresDatabase3 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody3) GetContentHintPostgresURLNoSsl() *RemoveProjectEnvContentHintPostgresURLNoSsl3 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresURLNoSsl3 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody3) GetContentHintIntegrationStoreSecret() *RemoveProjectEnvContentHintIntegrationStoreSecret3 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintIntegrationStoreSecret3 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody3) GetContentHintFlagsConnectionString() *RemoveProjectEnvContentHintFlagsConnectionString3 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintFlagsConnectionString3 + } + return nil +} + func (o *RemoveProjectEnvResponseBody3) GetInternalContentHint() *RemoveProjectEnvInternalContentHint3 { if o == nil { return nil @@ -2591,21 +2783,21 @@ func (o *RemoveProjectEnvContentHintRedisURL2) GetStoreID() string { type RemoveProjectEnvContentHintUnion2Type string const ( - RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintRedisURL2 RemoveProjectEnvContentHintUnion2Type = "removeProjectEnv_contentHint_RedisURL_2" - RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintRedisRestAPIURL2 RemoveProjectEnvContentHintUnion2Type = "removeProjectEnv_contentHint_RedisRestAPIURL_2" - RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintRedisRestAPIToken2 RemoveProjectEnvContentHintUnion2Type = "removeProjectEnv_contentHint_RedisRestAPIToken_2" - RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2 RemoveProjectEnvContentHintUnion2Type = "removeProjectEnv_contentHint_RedisRestAPIReadOnlyToken_2" - RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintBlobReadWriteToken2 RemoveProjectEnvContentHintUnion2Type = "removeProjectEnv_contentHint_BlobReadWriteToken_2" - RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresURL2 RemoveProjectEnvContentHintUnion2Type = "removeProjectEnv_contentHint_PostgresURL_2" - RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresURLNonPooling2 RemoveProjectEnvContentHintUnion2Type = "removeProjectEnv_contentHint_PostgresURLNonPooling_2" - RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresPrismaURL2 RemoveProjectEnvContentHintUnion2Type = "removeProjectEnv_contentHint_PostgresPrismaURL_2" - RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresUser2 RemoveProjectEnvContentHintUnion2Type = "removeProjectEnv_contentHint_PostgresUser_2" - RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresHost2 RemoveProjectEnvContentHintUnion2Type = "removeProjectEnv_contentHint_PostgresHost_2" - RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresPassword2 RemoveProjectEnvContentHintUnion2Type = "removeProjectEnv_contentHint_PostgresPassword_2" - RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresDatabase2 RemoveProjectEnvContentHintUnion2Type = "removeProjectEnv_contentHint_PostgresDatabase_2" - RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresURLNoSsl2 RemoveProjectEnvContentHintUnion2Type = "removeProjectEnv_contentHint_PostgresURLNoSsl_2" - RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintIntegrationStoreSecret2 RemoveProjectEnvContentHintUnion2Type = "removeProjectEnv_contentHint_IntegrationStoreSecret_2" - RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintFlagsConnectionString2 RemoveProjectEnvContentHintUnion2Type = "removeProjectEnv_contentHint_FlagsConnectionString_2" + RemoveProjectEnvContentHintUnion2TypeRedisURL RemoveProjectEnvContentHintUnion2Type = "redis-url" + RemoveProjectEnvContentHintUnion2TypeRedisRestAPIURL RemoveProjectEnvContentHintUnion2Type = "redis-rest-api-url" + RemoveProjectEnvContentHintUnion2TypeRedisRestAPIToken RemoveProjectEnvContentHintUnion2Type = "redis-rest-api-token" + RemoveProjectEnvContentHintUnion2TypeRedisRestAPIReadOnlyToken RemoveProjectEnvContentHintUnion2Type = "redis-rest-api-read-only-token" + RemoveProjectEnvContentHintUnion2TypeBlobReadWriteToken RemoveProjectEnvContentHintUnion2Type = "blob-read-write-token" + RemoveProjectEnvContentHintUnion2TypePostgresURL RemoveProjectEnvContentHintUnion2Type = "postgres-url" + RemoveProjectEnvContentHintUnion2TypePostgresURLNonPooling RemoveProjectEnvContentHintUnion2Type = "postgres-url-non-pooling" + RemoveProjectEnvContentHintUnion2TypePostgresPrismaURL RemoveProjectEnvContentHintUnion2Type = "postgres-prisma-url" + RemoveProjectEnvContentHintUnion2TypePostgresUser RemoveProjectEnvContentHintUnion2Type = "postgres-user" + RemoveProjectEnvContentHintUnion2TypePostgresHost RemoveProjectEnvContentHintUnion2Type = "postgres-host" + RemoveProjectEnvContentHintUnion2TypePostgresPassword RemoveProjectEnvContentHintUnion2Type = "postgres-password" + RemoveProjectEnvContentHintUnion2TypePostgresDatabase RemoveProjectEnvContentHintUnion2Type = "postgres-database" + RemoveProjectEnvContentHintUnion2TypePostgresURLNoSsl RemoveProjectEnvContentHintUnion2Type = "postgres-url-no-ssl" + RemoveProjectEnvContentHintUnion2TypeIntegrationStoreSecret RemoveProjectEnvContentHintUnion2Type = "integration-store-secret" + RemoveProjectEnvContentHintUnion2TypeFlagsConnectionString RemoveProjectEnvContentHintUnion2Type = "flags-connection-string" ) type RemoveProjectEnvContentHintUnion2 struct { @@ -2628,245 +2820,332 @@ type RemoveProjectEnvContentHintUnion2 struct { Type RemoveProjectEnvContentHintUnion2Type } -func CreateRemoveProjectEnvContentHintUnion2RemoveProjectEnvContentHintRedisURL2(removeProjectEnvContentHintRedisURL2 RemoveProjectEnvContentHintRedisURL2) RemoveProjectEnvContentHintUnion2 { - typ := RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintRedisURL2 +func CreateRemoveProjectEnvContentHintUnion2RedisURL(redisURL RemoveProjectEnvContentHintRedisURL2) RemoveProjectEnvContentHintUnion2 { + typ := RemoveProjectEnvContentHintUnion2TypeRedisURL + + typStr := RemoveProjectEnvTypeRedisURL2(typ) + redisURL.Type = typStr return RemoveProjectEnvContentHintUnion2{ - RemoveProjectEnvContentHintRedisURL2: &removeProjectEnvContentHintRedisURL2, + RemoveProjectEnvContentHintRedisURL2: &redisURL, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion2RemoveProjectEnvContentHintRedisRestAPIURL2(removeProjectEnvContentHintRedisRestAPIURL2 RemoveProjectEnvContentHintRedisRestAPIURL2) RemoveProjectEnvContentHintUnion2 { - typ := RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintRedisRestAPIURL2 +func CreateRemoveProjectEnvContentHintUnion2RedisRestAPIURL(redisRestAPIURL RemoveProjectEnvContentHintRedisRestAPIURL2) RemoveProjectEnvContentHintUnion2 { + typ := RemoveProjectEnvContentHintUnion2TypeRedisRestAPIURL + + typStr := RemoveProjectEnvTypeRedisRestAPIURL2(typ) + redisRestAPIURL.Type = typStr return RemoveProjectEnvContentHintUnion2{ - RemoveProjectEnvContentHintRedisRestAPIURL2: &removeProjectEnvContentHintRedisRestAPIURL2, + RemoveProjectEnvContentHintRedisRestAPIURL2: &redisRestAPIURL, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion2RemoveProjectEnvContentHintRedisRestAPIToken2(removeProjectEnvContentHintRedisRestAPIToken2 RemoveProjectEnvContentHintRedisRestAPIToken2) RemoveProjectEnvContentHintUnion2 { - typ := RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintRedisRestAPIToken2 +func CreateRemoveProjectEnvContentHintUnion2RedisRestAPIToken(redisRestAPIToken RemoveProjectEnvContentHintRedisRestAPIToken2) RemoveProjectEnvContentHintUnion2 { + typ := RemoveProjectEnvContentHintUnion2TypeRedisRestAPIToken + + typStr := RemoveProjectEnvTypeRedisRestAPIToken2(typ) + redisRestAPIToken.Type = typStr return RemoveProjectEnvContentHintUnion2{ - RemoveProjectEnvContentHintRedisRestAPIToken2: &removeProjectEnvContentHintRedisRestAPIToken2, + RemoveProjectEnvContentHintRedisRestAPIToken2: &redisRestAPIToken, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion2RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2(removeProjectEnvContentHintRedisRestAPIReadOnlyToken2 RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2) RemoveProjectEnvContentHintUnion2 { - typ := RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2 +func CreateRemoveProjectEnvContentHintUnion2RedisRestAPIReadOnlyToken(redisRestAPIReadOnlyToken RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2) RemoveProjectEnvContentHintUnion2 { + typ := RemoveProjectEnvContentHintUnion2TypeRedisRestAPIReadOnlyToken + + typStr := RemoveProjectEnvTypeRedisRestAPIReadOnlyToken2(typ) + redisRestAPIReadOnlyToken.Type = typStr return RemoveProjectEnvContentHintUnion2{ - RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2: &removeProjectEnvContentHintRedisRestAPIReadOnlyToken2, + RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2: &redisRestAPIReadOnlyToken, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion2RemoveProjectEnvContentHintBlobReadWriteToken2(removeProjectEnvContentHintBlobReadWriteToken2 RemoveProjectEnvContentHintBlobReadWriteToken2) RemoveProjectEnvContentHintUnion2 { - typ := RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintBlobReadWriteToken2 +func CreateRemoveProjectEnvContentHintUnion2BlobReadWriteToken(blobReadWriteToken RemoveProjectEnvContentHintBlobReadWriteToken2) RemoveProjectEnvContentHintUnion2 { + typ := RemoveProjectEnvContentHintUnion2TypeBlobReadWriteToken + + typStr := RemoveProjectEnvTypeBlobReadWriteToken2(typ) + blobReadWriteToken.Type = typStr return RemoveProjectEnvContentHintUnion2{ - RemoveProjectEnvContentHintBlobReadWriteToken2: &removeProjectEnvContentHintBlobReadWriteToken2, + RemoveProjectEnvContentHintBlobReadWriteToken2: &blobReadWriteToken, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion2RemoveProjectEnvContentHintPostgresURL2(removeProjectEnvContentHintPostgresURL2 RemoveProjectEnvContentHintPostgresURL2) RemoveProjectEnvContentHintUnion2 { - typ := RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresURL2 +func CreateRemoveProjectEnvContentHintUnion2PostgresURL(postgresURL RemoveProjectEnvContentHintPostgresURL2) RemoveProjectEnvContentHintUnion2 { + typ := RemoveProjectEnvContentHintUnion2TypePostgresURL + + typStr := RemoveProjectEnvTypePostgresURL2(typ) + postgresURL.Type = typStr return RemoveProjectEnvContentHintUnion2{ - RemoveProjectEnvContentHintPostgresURL2: &removeProjectEnvContentHintPostgresURL2, + RemoveProjectEnvContentHintPostgresURL2: &postgresURL, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion2RemoveProjectEnvContentHintPostgresURLNonPooling2(removeProjectEnvContentHintPostgresURLNonPooling2 RemoveProjectEnvContentHintPostgresURLNonPooling2) RemoveProjectEnvContentHintUnion2 { - typ := RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresURLNonPooling2 +func CreateRemoveProjectEnvContentHintUnion2PostgresURLNonPooling(postgresURLNonPooling RemoveProjectEnvContentHintPostgresURLNonPooling2) RemoveProjectEnvContentHintUnion2 { + typ := RemoveProjectEnvContentHintUnion2TypePostgresURLNonPooling + + typStr := RemoveProjectEnvTypePostgresURLNonPooling2(typ) + postgresURLNonPooling.Type = typStr return RemoveProjectEnvContentHintUnion2{ - RemoveProjectEnvContentHintPostgresURLNonPooling2: &removeProjectEnvContentHintPostgresURLNonPooling2, + RemoveProjectEnvContentHintPostgresURLNonPooling2: &postgresURLNonPooling, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion2RemoveProjectEnvContentHintPostgresPrismaURL2(removeProjectEnvContentHintPostgresPrismaURL2 RemoveProjectEnvContentHintPostgresPrismaURL2) RemoveProjectEnvContentHintUnion2 { - typ := RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresPrismaURL2 +func CreateRemoveProjectEnvContentHintUnion2PostgresPrismaURL(postgresPrismaURL RemoveProjectEnvContentHintPostgresPrismaURL2) RemoveProjectEnvContentHintUnion2 { + typ := RemoveProjectEnvContentHintUnion2TypePostgresPrismaURL + + typStr := RemoveProjectEnvTypePostgresPrismaURL2(typ) + postgresPrismaURL.Type = typStr return RemoveProjectEnvContentHintUnion2{ - RemoveProjectEnvContentHintPostgresPrismaURL2: &removeProjectEnvContentHintPostgresPrismaURL2, + RemoveProjectEnvContentHintPostgresPrismaURL2: &postgresPrismaURL, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion2RemoveProjectEnvContentHintPostgresUser2(removeProjectEnvContentHintPostgresUser2 RemoveProjectEnvContentHintPostgresUser2) RemoveProjectEnvContentHintUnion2 { - typ := RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresUser2 +func CreateRemoveProjectEnvContentHintUnion2PostgresUser(postgresUser RemoveProjectEnvContentHintPostgresUser2) RemoveProjectEnvContentHintUnion2 { + typ := RemoveProjectEnvContentHintUnion2TypePostgresUser + + typStr := RemoveProjectEnvTypePostgresUser2(typ) + postgresUser.Type = typStr return RemoveProjectEnvContentHintUnion2{ - RemoveProjectEnvContentHintPostgresUser2: &removeProjectEnvContentHintPostgresUser2, + RemoveProjectEnvContentHintPostgresUser2: &postgresUser, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion2RemoveProjectEnvContentHintPostgresHost2(removeProjectEnvContentHintPostgresHost2 RemoveProjectEnvContentHintPostgresHost2) RemoveProjectEnvContentHintUnion2 { - typ := RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresHost2 +func CreateRemoveProjectEnvContentHintUnion2PostgresHost(postgresHost RemoveProjectEnvContentHintPostgresHost2) RemoveProjectEnvContentHintUnion2 { + typ := RemoveProjectEnvContentHintUnion2TypePostgresHost + + typStr := RemoveProjectEnvTypePostgresHost2(typ) + postgresHost.Type = typStr return RemoveProjectEnvContentHintUnion2{ - RemoveProjectEnvContentHintPostgresHost2: &removeProjectEnvContentHintPostgresHost2, + RemoveProjectEnvContentHintPostgresHost2: &postgresHost, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion2RemoveProjectEnvContentHintPostgresPassword2(removeProjectEnvContentHintPostgresPassword2 RemoveProjectEnvContentHintPostgresPassword2) RemoveProjectEnvContentHintUnion2 { - typ := RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresPassword2 +func CreateRemoveProjectEnvContentHintUnion2PostgresPassword(postgresPassword RemoveProjectEnvContentHintPostgresPassword2) RemoveProjectEnvContentHintUnion2 { + typ := RemoveProjectEnvContentHintUnion2TypePostgresPassword + + typStr := RemoveProjectEnvTypePostgresPassword2(typ) + postgresPassword.Type = typStr return RemoveProjectEnvContentHintUnion2{ - RemoveProjectEnvContentHintPostgresPassword2: &removeProjectEnvContentHintPostgresPassword2, + RemoveProjectEnvContentHintPostgresPassword2: &postgresPassword, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion2RemoveProjectEnvContentHintPostgresDatabase2(removeProjectEnvContentHintPostgresDatabase2 RemoveProjectEnvContentHintPostgresDatabase2) RemoveProjectEnvContentHintUnion2 { - typ := RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresDatabase2 +func CreateRemoveProjectEnvContentHintUnion2PostgresDatabase(postgresDatabase RemoveProjectEnvContentHintPostgresDatabase2) RemoveProjectEnvContentHintUnion2 { + typ := RemoveProjectEnvContentHintUnion2TypePostgresDatabase + + typStr := RemoveProjectEnvTypePostgresDatabase2(typ) + postgresDatabase.Type = typStr return RemoveProjectEnvContentHintUnion2{ - RemoveProjectEnvContentHintPostgresDatabase2: &removeProjectEnvContentHintPostgresDatabase2, + RemoveProjectEnvContentHintPostgresDatabase2: &postgresDatabase, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion2RemoveProjectEnvContentHintPostgresURLNoSsl2(removeProjectEnvContentHintPostgresURLNoSsl2 RemoveProjectEnvContentHintPostgresURLNoSsl2) RemoveProjectEnvContentHintUnion2 { - typ := RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresURLNoSsl2 +func CreateRemoveProjectEnvContentHintUnion2PostgresURLNoSsl(postgresURLNoSsl RemoveProjectEnvContentHintPostgresURLNoSsl2) RemoveProjectEnvContentHintUnion2 { + typ := RemoveProjectEnvContentHintUnion2TypePostgresURLNoSsl + + typStr := RemoveProjectEnvTypePostgresURLNoSsl2(typ) + postgresURLNoSsl.Type = typStr return RemoveProjectEnvContentHintUnion2{ - RemoveProjectEnvContentHintPostgresURLNoSsl2: &removeProjectEnvContentHintPostgresURLNoSsl2, + RemoveProjectEnvContentHintPostgresURLNoSsl2: &postgresURLNoSsl, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion2RemoveProjectEnvContentHintIntegrationStoreSecret2(removeProjectEnvContentHintIntegrationStoreSecret2 RemoveProjectEnvContentHintIntegrationStoreSecret2) RemoveProjectEnvContentHintUnion2 { - typ := RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintIntegrationStoreSecret2 +func CreateRemoveProjectEnvContentHintUnion2IntegrationStoreSecret(integrationStoreSecret RemoveProjectEnvContentHintIntegrationStoreSecret2) RemoveProjectEnvContentHintUnion2 { + typ := RemoveProjectEnvContentHintUnion2TypeIntegrationStoreSecret + + typStr := RemoveProjectEnvTypeIntegrationStoreSecret2(typ) + integrationStoreSecret.Type = typStr return RemoveProjectEnvContentHintUnion2{ - RemoveProjectEnvContentHintIntegrationStoreSecret2: &removeProjectEnvContentHintIntegrationStoreSecret2, + RemoveProjectEnvContentHintIntegrationStoreSecret2: &integrationStoreSecret, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion2RemoveProjectEnvContentHintFlagsConnectionString2(removeProjectEnvContentHintFlagsConnectionString2 RemoveProjectEnvContentHintFlagsConnectionString2) RemoveProjectEnvContentHintUnion2 { - typ := RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintFlagsConnectionString2 +func CreateRemoveProjectEnvContentHintUnion2FlagsConnectionString(flagsConnectionString RemoveProjectEnvContentHintFlagsConnectionString2) RemoveProjectEnvContentHintUnion2 { + typ := RemoveProjectEnvContentHintUnion2TypeFlagsConnectionString + + typStr := RemoveProjectEnvTypeFlagsConnectionString2(typ) + flagsConnectionString.Type = typStr return RemoveProjectEnvContentHintUnion2{ - RemoveProjectEnvContentHintFlagsConnectionString2: &removeProjectEnvContentHintFlagsConnectionString2, + RemoveProjectEnvContentHintFlagsConnectionString2: &flagsConnectionString, Type: typ, } } func (u *RemoveProjectEnvContentHintUnion2) UnmarshalJSON(data []byte) error { - var removeProjectEnvContentHintIntegrationStoreSecret2 RemoveProjectEnvContentHintIntegrationStoreSecret2 = RemoveProjectEnvContentHintIntegrationStoreSecret2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintIntegrationStoreSecret2, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintIntegrationStoreSecret2 = &removeProjectEnvContentHintIntegrationStoreSecret2 - u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintIntegrationStoreSecret2 - return nil + type discriminator struct { + Type string `json:"type"` } - var removeProjectEnvContentHintRedisURL2 RemoveProjectEnvContentHintRedisURL2 = RemoveProjectEnvContentHintRedisURL2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisURL2, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintRedisURL2 = &removeProjectEnvContentHintRedisURL2 - u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintRedisURL2 - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var removeProjectEnvContentHintRedisRestAPIURL2 RemoveProjectEnvContentHintRedisRestAPIURL2 = RemoveProjectEnvContentHintRedisRestAPIURL2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIURL2, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintRedisRestAPIURL2 = &removeProjectEnvContentHintRedisRestAPIURL2 - u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintRedisRestAPIURL2 + switch dis.Type { + case "redis-url": + removeProjectEnvContentHintRedisURL2 := new(RemoveProjectEnvContentHintRedisURL2) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisURL2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-url) type RemoveProjectEnvContentHintRedisURL2 within RemoveProjectEnvContentHintUnion2: %w", string(data), err) + } + + u.RemoveProjectEnvContentHintRedisURL2 = removeProjectEnvContentHintRedisURL2 + u.Type = RemoveProjectEnvContentHintUnion2TypeRedisURL return nil - } + case "redis-rest-api-url": + removeProjectEnvContentHintRedisRestAPIURL2 := new(RemoveProjectEnvContentHintRedisRestAPIURL2) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIURL2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-url) type RemoveProjectEnvContentHintRedisRestAPIURL2 within RemoveProjectEnvContentHintUnion2: %w", string(data), err) + } - var removeProjectEnvContentHintRedisRestAPIToken2 RemoveProjectEnvContentHintRedisRestAPIToken2 = RemoveProjectEnvContentHintRedisRestAPIToken2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIToken2, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintRedisRestAPIToken2 = &removeProjectEnvContentHintRedisRestAPIToken2 - u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintRedisRestAPIToken2 + u.RemoveProjectEnvContentHintRedisRestAPIURL2 = removeProjectEnvContentHintRedisRestAPIURL2 + u.Type = RemoveProjectEnvContentHintUnion2TypeRedisRestAPIURL return nil - } + case "redis-rest-api-token": + removeProjectEnvContentHintRedisRestAPIToken2 := new(RemoveProjectEnvContentHintRedisRestAPIToken2) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIToken2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-token) type RemoveProjectEnvContentHintRedisRestAPIToken2 within RemoveProjectEnvContentHintUnion2: %w", string(data), err) + } - var removeProjectEnvContentHintRedisRestAPIReadOnlyToken2 RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2 = RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIReadOnlyToken2, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2 = &removeProjectEnvContentHintRedisRestAPIReadOnlyToken2 - u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2 + u.RemoveProjectEnvContentHintRedisRestAPIToken2 = removeProjectEnvContentHintRedisRestAPIToken2 + u.Type = RemoveProjectEnvContentHintUnion2TypeRedisRestAPIToken return nil - } + case "redis-rest-api-read-only-token": + removeProjectEnvContentHintRedisRestAPIReadOnlyToken2 := new(RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIReadOnlyToken2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-read-only-token) type RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2 within RemoveProjectEnvContentHintUnion2: %w", string(data), err) + } - var removeProjectEnvContentHintBlobReadWriteToken2 RemoveProjectEnvContentHintBlobReadWriteToken2 = RemoveProjectEnvContentHintBlobReadWriteToken2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintBlobReadWriteToken2, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintBlobReadWriteToken2 = &removeProjectEnvContentHintBlobReadWriteToken2 - u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintBlobReadWriteToken2 + u.RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2 = removeProjectEnvContentHintRedisRestAPIReadOnlyToken2 + u.Type = RemoveProjectEnvContentHintUnion2TypeRedisRestAPIReadOnlyToken return nil - } + case "blob-read-write-token": + removeProjectEnvContentHintBlobReadWriteToken2 := new(RemoveProjectEnvContentHintBlobReadWriteToken2) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintBlobReadWriteToken2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == blob-read-write-token) type RemoveProjectEnvContentHintBlobReadWriteToken2 within RemoveProjectEnvContentHintUnion2: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresURL2 RemoveProjectEnvContentHintPostgresURL2 = RemoveProjectEnvContentHintPostgresURL2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURL2, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresURL2 = &removeProjectEnvContentHintPostgresURL2 - u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresURL2 + u.RemoveProjectEnvContentHintBlobReadWriteToken2 = removeProjectEnvContentHintBlobReadWriteToken2 + u.Type = RemoveProjectEnvContentHintUnion2TypeBlobReadWriteToken return nil - } + case "postgres-url": + removeProjectEnvContentHintPostgresURL2 := new(RemoveProjectEnvContentHintPostgresURL2) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURL2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url) type RemoveProjectEnvContentHintPostgresURL2 within RemoveProjectEnvContentHintUnion2: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresURLNonPooling2 RemoveProjectEnvContentHintPostgresURLNonPooling2 = RemoveProjectEnvContentHintPostgresURLNonPooling2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNonPooling2, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresURLNonPooling2 = &removeProjectEnvContentHintPostgresURLNonPooling2 - u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresURLNonPooling2 + u.RemoveProjectEnvContentHintPostgresURL2 = removeProjectEnvContentHintPostgresURL2 + u.Type = RemoveProjectEnvContentHintUnion2TypePostgresURL return nil - } + case "postgres-url-non-pooling": + removeProjectEnvContentHintPostgresURLNonPooling2 := new(RemoveProjectEnvContentHintPostgresURLNonPooling2) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNonPooling2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-non-pooling) type RemoveProjectEnvContentHintPostgresURLNonPooling2 within RemoveProjectEnvContentHintUnion2: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresPrismaURL2 RemoveProjectEnvContentHintPostgresPrismaURL2 = RemoveProjectEnvContentHintPostgresPrismaURL2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPrismaURL2, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresPrismaURL2 = &removeProjectEnvContentHintPostgresPrismaURL2 - u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresPrismaURL2 + u.RemoveProjectEnvContentHintPostgresURLNonPooling2 = removeProjectEnvContentHintPostgresURLNonPooling2 + u.Type = RemoveProjectEnvContentHintUnion2TypePostgresURLNonPooling return nil - } + case "postgres-prisma-url": + removeProjectEnvContentHintPostgresPrismaURL2 := new(RemoveProjectEnvContentHintPostgresPrismaURL2) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPrismaURL2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-prisma-url) type RemoveProjectEnvContentHintPostgresPrismaURL2 within RemoveProjectEnvContentHintUnion2: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresUser2 RemoveProjectEnvContentHintPostgresUser2 = RemoveProjectEnvContentHintPostgresUser2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresUser2, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresUser2 = &removeProjectEnvContentHintPostgresUser2 - u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresUser2 + u.RemoveProjectEnvContentHintPostgresPrismaURL2 = removeProjectEnvContentHintPostgresPrismaURL2 + u.Type = RemoveProjectEnvContentHintUnion2TypePostgresPrismaURL return nil - } + case "postgres-user": + removeProjectEnvContentHintPostgresUser2 := new(RemoveProjectEnvContentHintPostgresUser2) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresUser2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-user) type RemoveProjectEnvContentHintPostgresUser2 within RemoveProjectEnvContentHintUnion2: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresHost2 RemoveProjectEnvContentHintPostgresHost2 = RemoveProjectEnvContentHintPostgresHost2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresHost2, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresHost2 = &removeProjectEnvContentHintPostgresHost2 - u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresHost2 + u.RemoveProjectEnvContentHintPostgresUser2 = removeProjectEnvContentHintPostgresUser2 + u.Type = RemoveProjectEnvContentHintUnion2TypePostgresUser return nil - } + case "postgres-host": + removeProjectEnvContentHintPostgresHost2 := new(RemoveProjectEnvContentHintPostgresHost2) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresHost2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-host) type RemoveProjectEnvContentHintPostgresHost2 within RemoveProjectEnvContentHintUnion2: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresPassword2 RemoveProjectEnvContentHintPostgresPassword2 = RemoveProjectEnvContentHintPostgresPassword2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPassword2, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresPassword2 = &removeProjectEnvContentHintPostgresPassword2 - u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresPassword2 + u.RemoveProjectEnvContentHintPostgresHost2 = removeProjectEnvContentHintPostgresHost2 + u.Type = RemoveProjectEnvContentHintUnion2TypePostgresHost return nil - } + case "postgres-password": + removeProjectEnvContentHintPostgresPassword2 := new(RemoveProjectEnvContentHintPostgresPassword2) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPassword2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-password) type RemoveProjectEnvContentHintPostgresPassword2 within RemoveProjectEnvContentHintUnion2: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresDatabase2 RemoveProjectEnvContentHintPostgresDatabase2 = RemoveProjectEnvContentHintPostgresDatabase2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresDatabase2, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresDatabase2 = &removeProjectEnvContentHintPostgresDatabase2 - u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresDatabase2 + u.RemoveProjectEnvContentHintPostgresPassword2 = removeProjectEnvContentHintPostgresPassword2 + u.Type = RemoveProjectEnvContentHintUnion2TypePostgresPassword return nil - } + case "postgres-database": + removeProjectEnvContentHintPostgresDatabase2 := new(RemoveProjectEnvContentHintPostgresDatabase2) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresDatabase2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-database) type RemoveProjectEnvContentHintPostgresDatabase2 within RemoveProjectEnvContentHintUnion2: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresURLNoSsl2 RemoveProjectEnvContentHintPostgresURLNoSsl2 = RemoveProjectEnvContentHintPostgresURLNoSsl2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNoSsl2, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresURLNoSsl2 = &removeProjectEnvContentHintPostgresURLNoSsl2 - u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresURLNoSsl2 + u.RemoveProjectEnvContentHintPostgresDatabase2 = removeProjectEnvContentHintPostgresDatabase2 + u.Type = RemoveProjectEnvContentHintUnion2TypePostgresDatabase return nil - } + case "postgres-url-no-ssl": + removeProjectEnvContentHintPostgresURLNoSsl2 := new(RemoveProjectEnvContentHintPostgresURLNoSsl2) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNoSsl2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-no-ssl) type RemoveProjectEnvContentHintPostgresURLNoSsl2 within RemoveProjectEnvContentHintUnion2: %w", string(data), err) + } + + u.RemoveProjectEnvContentHintPostgresURLNoSsl2 = removeProjectEnvContentHintPostgresURLNoSsl2 + u.Type = RemoveProjectEnvContentHintUnion2TypePostgresURLNoSsl + return nil + case "integration-store-secret": + removeProjectEnvContentHintIntegrationStoreSecret2 := new(RemoveProjectEnvContentHintIntegrationStoreSecret2) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintIntegrationStoreSecret2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == integration-store-secret) type RemoveProjectEnvContentHintIntegrationStoreSecret2 within RemoveProjectEnvContentHintUnion2: %w", string(data), err) + } - var removeProjectEnvContentHintFlagsConnectionString2 RemoveProjectEnvContentHintFlagsConnectionString2 = RemoveProjectEnvContentHintFlagsConnectionString2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintFlagsConnectionString2, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintFlagsConnectionString2 = &removeProjectEnvContentHintFlagsConnectionString2 - u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintFlagsConnectionString2 + u.RemoveProjectEnvContentHintIntegrationStoreSecret2 = removeProjectEnvContentHintIntegrationStoreSecret2 + u.Type = RemoveProjectEnvContentHintUnion2TypeIntegrationStoreSecret + return nil + case "flags-connection-string": + removeProjectEnvContentHintFlagsConnectionString2 := new(RemoveProjectEnvContentHintFlagsConnectionString2) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintFlagsConnectionString2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == flags-connection-string) type RemoveProjectEnvContentHintFlagsConnectionString2 within RemoveProjectEnvContentHintUnion2: %w", string(data), err) + } + + u.RemoveProjectEnvContentHintFlagsConnectionString2 = removeProjectEnvContentHintFlagsConnectionString2 + u.Type = RemoveProjectEnvContentHintUnion2TypeFlagsConnectionString return nil } @@ -3155,6 +3434,111 @@ func (o *RemoveProjectEnvResponseBody2) GetContentHint() *RemoveProjectEnvConten return o.ContentHint } +func (o *RemoveProjectEnvResponseBody2) GetContentHintRedisURL() *RemoveProjectEnvContentHintRedisURL2 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintRedisURL2 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody2) GetContentHintRedisRestAPIURL() *RemoveProjectEnvContentHintRedisRestAPIURL2 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintRedisRestAPIURL2 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody2) GetContentHintRedisRestAPIToken() *RemoveProjectEnvContentHintRedisRestAPIToken2 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintRedisRestAPIToken2 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody2) GetContentHintRedisRestAPIReadOnlyToken() *RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody2) GetContentHintBlobReadWriteToken() *RemoveProjectEnvContentHintBlobReadWriteToken2 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintBlobReadWriteToken2 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody2) GetContentHintPostgresURL() *RemoveProjectEnvContentHintPostgresURL2 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresURL2 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody2) GetContentHintPostgresURLNonPooling() *RemoveProjectEnvContentHintPostgresURLNonPooling2 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresURLNonPooling2 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody2) GetContentHintPostgresPrismaURL() *RemoveProjectEnvContentHintPostgresPrismaURL2 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresPrismaURL2 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody2) GetContentHintPostgresUser() *RemoveProjectEnvContentHintPostgresUser2 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresUser2 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody2) GetContentHintPostgresHost() *RemoveProjectEnvContentHintPostgresHost2 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresHost2 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody2) GetContentHintPostgresPassword() *RemoveProjectEnvContentHintPostgresPassword2 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresPassword2 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody2) GetContentHintPostgresDatabase() *RemoveProjectEnvContentHintPostgresDatabase2 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresDatabase2 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody2) GetContentHintPostgresURLNoSsl() *RemoveProjectEnvContentHintPostgresURLNoSsl2 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresURLNoSsl2 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody2) GetContentHintIntegrationStoreSecret() *RemoveProjectEnvContentHintIntegrationStoreSecret2 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintIntegrationStoreSecret2 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody2) GetContentHintFlagsConnectionString() *RemoveProjectEnvContentHintFlagsConnectionString2 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintFlagsConnectionString2 + } + return nil +} + func (o *RemoveProjectEnvResponseBody2) GetInternalContentHint() *RemoveProjectEnvInternalContentHint2 { if o == nil { return nil @@ -4154,21 +4538,21 @@ func (o *RemoveProjectEnvContentHintRedisURL1) GetStoreID() string { type RemoveProjectEnvContentHintUnion1Type string const ( - RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintRedisURL1 RemoveProjectEnvContentHintUnion1Type = "removeProjectEnv_contentHint_RedisURL_1" - RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintRedisRestAPIURL1 RemoveProjectEnvContentHintUnion1Type = "removeProjectEnv_contentHint_RedisRestAPIURL_1" - RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintRedisRestAPIToken1 RemoveProjectEnvContentHintUnion1Type = "removeProjectEnv_contentHint_RedisRestAPIToken_1" - RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1 RemoveProjectEnvContentHintUnion1Type = "removeProjectEnv_contentHint_RedisRestAPIReadOnlyToken_1" - RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintBlobReadWriteToken1 RemoveProjectEnvContentHintUnion1Type = "removeProjectEnv_contentHint_BlobReadWriteToken_1" - RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresURL1 RemoveProjectEnvContentHintUnion1Type = "removeProjectEnv_contentHint_PostgresURL_1" - RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresURLNonPooling1 RemoveProjectEnvContentHintUnion1Type = "removeProjectEnv_contentHint_PostgresURLNonPooling_1" - RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresPrismaURL1 RemoveProjectEnvContentHintUnion1Type = "removeProjectEnv_contentHint_PostgresPrismaURL_1" - RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresUser1 RemoveProjectEnvContentHintUnion1Type = "removeProjectEnv_contentHint_PostgresUser_1" - RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresHost1 RemoveProjectEnvContentHintUnion1Type = "removeProjectEnv_contentHint_PostgresHost_1" - RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresPassword1 RemoveProjectEnvContentHintUnion1Type = "removeProjectEnv_contentHint_PostgresPassword_1" - RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresDatabase1 RemoveProjectEnvContentHintUnion1Type = "removeProjectEnv_contentHint_PostgresDatabase_1" - RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresURLNoSsl1 RemoveProjectEnvContentHintUnion1Type = "removeProjectEnv_contentHint_PostgresURLNoSsl_1" - RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintIntegrationStoreSecret1 RemoveProjectEnvContentHintUnion1Type = "removeProjectEnv_contentHint_IntegrationStoreSecret_1" - RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintFlagsConnectionString1 RemoveProjectEnvContentHintUnion1Type = "removeProjectEnv_contentHint_FlagsConnectionString_1" + RemoveProjectEnvContentHintUnion1TypeRedisURL RemoveProjectEnvContentHintUnion1Type = "redis-url" + RemoveProjectEnvContentHintUnion1TypeRedisRestAPIURL RemoveProjectEnvContentHintUnion1Type = "redis-rest-api-url" + RemoveProjectEnvContentHintUnion1TypeRedisRestAPIToken RemoveProjectEnvContentHintUnion1Type = "redis-rest-api-token" + RemoveProjectEnvContentHintUnion1TypeRedisRestAPIReadOnlyToken RemoveProjectEnvContentHintUnion1Type = "redis-rest-api-read-only-token" + RemoveProjectEnvContentHintUnion1TypeBlobReadWriteToken RemoveProjectEnvContentHintUnion1Type = "blob-read-write-token" + RemoveProjectEnvContentHintUnion1TypePostgresURL RemoveProjectEnvContentHintUnion1Type = "postgres-url" + RemoveProjectEnvContentHintUnion1TypePostgresURLNonPooling RemoveProjectEnvContentHintUnion1Type = "postgres-url-non-pooling" + RemoveProjectEnvContentHintUnion1TypePostgresPrismaURL RemoveProjectEnvContentHintUnion1Type = "postgres-prisma-url" + RemoveProjectEnvContentHintUnion1TypePostgresUser RemoveProjectEnvContentHintUnion1Type = "postgres-user" + RemoveProjectEnvContentHintUnion1TypePostgresHost RemoveProjectEnvContentHintUnion1Type = "postgres-host" + RemoveProjectEnvContentHintUnion1TypePostgresPassword RemoveProjectEnvContentHintUnion1Type = "postgres-password" + RemoveProjectEnvContentHintUnion1TypePostgresDatabase RemoveProjectEnvContentHintUnion1Type = "postgres-database" + RemoveProjectEnvContentHintUnion1TypePostgresURLNoSsl RemoveProjectEnvContentHintUnion1Type = "postgres-url-no-ssl" + RemoveProjectEnvContentHintUnion1TypeIntegrationStoreSecret RemoveProjectEnvContentHintUnion1Type = "integration-store-secret" + RemoveProjectEnvContentHintUnion1TypeFlagsConnectionString RemoveProjectEnvContentHintUnion1Type = "flags-connection-string" ) type RemoveProjectEnvContentHintUnion1 struct { @@ -4191,245 +4575,332 @@ type RemoveProjectEnvContentHintUnion1 struct { Type RemoveProjectEnvContentHintUnion1Type } -func CreateRemoveProjectEnvContentHintUnion1RemoveProjectEnvContentHintRedisURL1(removeProjectEnvContentHintRedisURL1 RemoveProjectEnvContentHintRedisURL1) RemoveProjectEnvContentHintUnion1 { - typ := RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintRedisURL1 +func CreateRemoveProjectEnvContentHintUnion1RedisURL(redisURL RemoveProjectEnvContentHintRedisURL1) RemoveProjectEnvContentHintUnion1 { + typ := RemoveProjectEnvContentHintUnion1TypeRedisURL + + typStr := RemoveProjectEnvTypeRedisURL1(typ) + redisURL.Type = typStr return RemoveProjectEnvContentHintUnion1{ - RemoveProjectEnvContentHintRedisURL1: &removeProjectEnvContentHintRedisURL1, + RemoveProjectEnvContentHintRedisURL1: &redisURL, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion1RemoveProjectEnvContentHintRedisRestAPIURL1(removeProjectEnvContentHintRedisRestAPIURL1 RemoveProjectEnvContentHintRedisRestAPIURL1) RemoveProjectEnvContentHintUnion1 { - typ := RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintRedisRestAPIURL1 +func CreateRemoveProjectEnvContentHintUnion1RedisRestAPIURL(redisRestAPIURL RemoveProjectEnvContentHintRedisRestAPIURL1) RemoveProjectEnvContentHintUnion1 { + typ := RemoveProjectEnvContentHintUnion1TypeRedisRestAPIURL + + typStr := RemoveProjectEnvTypeRedisRestAPIURL1(typ) + redisRestAPIURL.Type = typStr return RemoveProjectEnvContentHintUnion1{ - RemoveProjectEnvContentHintRedisRestAPIURL1: &removeProjectEnvContentHintRedisRestAPIURL1, + RemoveProjectEnvContentHintRedisRestAPIURL1: &redisRestAPIURL, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion1RemoveProjectEnvContentHintRedisRestAPIToken1(removeProjectEnvContentHintRedisRestAPIToken1 RemoveProjectEnvContentHintRedisRestAPIToken1) RemoveProjectEnvContentHintUnion1 { - typ := RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintRedisRestAPIToken1 +func CreateRemoveProjectEnvContentHintUnion1RedisRestAPIToken(redisRestAPIToken RemoveProjectEnvContentHintRedisRestAPIToken1) RemoveProjectEnvContentHintUnion1 { + typ := RemoveProjectEnvContentHintUnion1TypeRedisRestAPIToken + + typStr := RemoveProjectEnvTypeRedisRestAPIToken1(typ) + redisRestAPIToken.Type = typStr return RemoveProjectEnvContentHintUnion1{ - RemoveProjectEnvContentHintRedisRestAPIToken1: &removeProjectEnvContentHintRedisRestAPIToken1, + RemoveProjectEnvContentHintRedisRestAPIToken1: &redisRestAPIToken, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion1RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1(removeProjectEnvContentHintRedisRestAPIReadOnlyToken1 RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1) RemoveProjectEnvContentHintUnion1 { - typ := RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1 +func CreateRemoveProjectEnvContentHintUnion1RedisRestAPIReadOnlyToken(redisRestAPIReadOnlyToken RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1) RemoveProjectEnvContentHintUnion1 { + typ := RemoveProjectEnvContentHintUnion1TypeRedisRestAPIReadOnlyToken + + typStr := RemoveProjectEnvTypeRedisRestAPIReadOnlyToken1(typ) + redisRestAPIReadOnlyToken.Type = typStr return RemoveProjectEnvContentHintUnion1{ - RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1: &removeProjectEnvContentHintRedisRestAPIReadOnlyToken1, + RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1: &redisRestAPIReadOnlyToken, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion1RemoveProjectEnvContentHintBlobReadWriteToken1(removeProjectEnvContentHintBlobReadWriteToken1 RemoveProjectEnvContentHintBlobReadWriteToken1) RemoveProjectEnvContentHintUnion1 { - typ := RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintBlobReadWriteToken1 +func CreateRemoveProjectEnvContentHintUnion1BlobReadWriteToken(blobReadWriteToken RemoveProjectEnvContentHintBlobReadWriteToken1) RemoveProjectEnvContentHintUnion1 { + typ := RemoveProjectEnvContentHintUnion1TypeBlobReadWriteToken + + typStr := RemoveProjectEnvTypeBlobReadWriteToken1(typ) + blobReadWriteToken.Type = typStr return RemoveProjectEnvContentHintUnion1{ - RemoveProjectEnvContentHintBlobReadWriteToken1: &removeProjectEnvContentHintBlobReadWriteToken1, + RemoveProjectEnvContentHintBlobReadWriteToken1: &blobReadWriteToken, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion1RemoveProjectEnvContentHintPostgresURL1(removeProjectEnvContentHintPostgresURL1 RemoveProjectEnvContentHintPostgresURL1) RemoveProjectEnvContentHintUnion1 { - typ := RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresURL1 +func CreateRemoveProjectEnvContentHintUnion1PostgresURL(postgresURL RemoveProjectEnvContentHintPostgresURL1) RemoveProjectEnvContentHintUnion1 { + typ := RemoveProjectEnvContentHintUnion1TypePostgresURL + + typStr := RemoveProjectEnvTypePostgresURL1(typ) + postgresURL.Type = typStr return RemoveProjectEnvContentHintUnion1{ - RemoveProjectEnvContentHintPostgresURL1: &removeProjectEnvContentHintPostgresURL1, + RemoveProjectEnvContentHintPostgresURL1: &postgresURL, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion1RemoveProjectEnvContentHintPostgresURLNonPooling1(removeProjectEnvContentHintPostgresURLNonPooling1 RemoveProjectEnvContentHintPostgresURLNonPooling1) RemoveProjectEnvContentHintUnion1 { - typ := RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresURLNonPooling1 +func CreateRemoveProjectEnvContentHintUnion1PostgresURLNonPooling(postgresURLNonPooling RemoveProjectEnvContentHintPostgresURLNonPooling1) RemoveProjectEnvContentHintUnion1 { + typ := RemoveProjectEnvContentHintUnion1TypePostgresURLNonPooling + + typStr := RemoveProjectEnvTypePostgresURLNonPooling1(typ) + postgresURLNonPooling.Type = typStr return RemoveProjectEnvContentHintUnion1{ - RemoveProjectEnvContentHintPostgresURLNonPooling1: &removeProjectEnvContentHintPostgresURLNonPooling1, + RemoveProjectEnvContentHintPostgresURLNonPooling1: &postgresURLNonPooling, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion1RemoveProjectEnvContentHintPostgresPrismaURL1(removeProjectEnvContentHintPostgresPrismaURL1 RemoveProjectEnvContentHintPostgresPrismaURL1) RemoveProjectEnvContentHintUnion1 { - typ := RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresPrismaURL1 +func CreateRemoveProjectEnvContentHintUnion1PostgresPrismaURL(postgresPrismaURL RemoveProjectEnvContentHintPostgresPrismaURL1) RemoveProjectEnvContentHintUnion1 { + typ := RemoveProjectEnvContentHintUnion1TypePostgresPrismaURL + + typStr := RemoveProjectEnvTypePostgresPrismaURL1(typ) + postgresPrismaURL.Type = typStr return RemoveProjectEnvContentHintUnion1{ - RemoveProjectEnvContentHintPostgresPrismaURL1: &removeProjectEnvContentHintPostgresPrismaURL1, + RemoveProjectEnvContentHintPostgresPrismaURL1: &postgresPrismaURL, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion1RemoveProjectEnvContentHintPostgresUser1(removeProjectEnvContentHintPostgresUser1 RemoveProjectEnvContentHintPostgresUser1) RemoveProjectEnvContentHintUnion1 { - typ := RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresUser1 +func CreateRemoveProjectEnvContentHintUnion1PostgresUser(postgresUser RemoveProjectEnvContentHintPostgresUser1) RemoveProjectEnvContentHintUnion1 { + typ := RemoveProjectEnvContentHintUnion1TypePostgresUser + + typStr := RemoveProjectEnvTypePostgresUser1(typ) + postgresUser.Type = typStr return RemoveProjectEnvContentHintUnion1{ - RemoveProjectEnvContentHintPostgresUser1: &removeProjectEnvContentHintPostgresUser1, + RemoveProjectEnvContentHintPostgresUser1: &postgresUser, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion1RemoveProjectEnvContentHintPostgresHost1(removeProjectEnvContentHintPostgresHost1 RemoveProjectEnvContentHintPostgresHost1) RemoveProjectEnvContentHintUnion1 { - typ := RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresHost1 +func CreateRemoveProjectEnvContentHintUnion1PostgresHost(postgresHost RemoveProjectEnvContentHintPostgresHost1) RemoveProjectEnvContentHintUnion1 { + typ := RemoveProjectEnvContentHintUnion1TypePostgresHost + + typStr := RemoveProjectEnvTypePostgresHost1(typ) + postgresHost.Type = typStr return RemoveProjectEnvContentHintUnion1{ - RemoveProjectEnvContentHintPostgresHost1: &removeProjectEnvContentHintPostgresHost1, + RemoveProjectEnvContentHintPostgresHost1: &postgresHost, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion1RemoveProjectEnvContentHintPostgresPassword1(removeProjectEnvContentHintPostgresPassword1 RemoveProjectEnvContentHintPostgresPassword1) RemoveProjectEnvContentHintUnion1 { - typ := RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresPassword1 +func CreateRemoveProjectEnvContentHintUnion1PostgresPassword(postgresPassword RemoveProjectEnvContentHintPostgresPassword1) RemoveProjectEnvContentHintUnion1 { + typ := RemoveProjectEnvContentHintUnion1TypePostgresPassword + + typStr := RemoveProjectEnvTypePostgresPassword1(typ) + postgresPassword.Type = typStr return RemoveProjectEnvContentHintUnion1{ - RemoveProjectEnvContentHintPostgresPassword1: &removeProjectEnvContentHintPostgresPassword1, + RemoveProjectEnvContentHintPostgresPassword1: &postgresPassword, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion1RemoveProjectEnvContentHintPostgresDatabase1(removeProjectEnvContentHintPostgresDatabase1 RemoveProjectEnvContentHintPostgresDatabase1) RemoveProjectEnvContentHintUnion1 { - typ := RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresDatabase1 +func CreateRemoveProjectEnvContentHintUnion1PostgresDatabase(postgresDatabase RemoveProjectEnvContentHintPostgresDatabase1) RemoveProjectEnvContentHintUnion1 { + typ := RemoveProjectEnvContentHintUnion1TypePostgresDatabase + + typStr := RemoveProjectEnvTypePostgresDatabase1(typ) + postgresDatabase.Type = typStr return RemoveProjectEnvContentHintUnion1{ - RemoveProjectEnvContentHintPostgresDatabase1: &removeProjectEnvContentHintPostgresDatabase1, + RemoveProjectEnvContentHintPostgresDatabase1: &postgresDatabase, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion1RemoveProjectEnvContentHintPostgresURLNoSsl1(removeProjectEnvContentHintPostgresURLNoSsl1 RemoveProjectEnvContentHintPostgresURLNoSsl1) RemoveProjectEnvContentHintUnion1 { - typ := RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresURLNoSsl1 +func CreateRemoveProjectEnvContentHintUnion1PostgresURLNoSsl(postgresURLNoSsl RemoveProjectEnvContentHintPostgresURLNoSsl1) RemoveProjectEnvContentHintUnion1 { + typ := RemoveProjectEnvContentHintUnion1TypePostgresURLNoSsl + + typStr := RemoveProjectEnvTypePostgresURLNoSsl1(typ) + postgresURLNoSsl.Type = typStr return RemoveProjectEnvContentHintUnion1{ - RemoveProjectEnvContentHintPostgresURLNoSsl1: &removeProjectEnvContentHintPostgresURLNoSsl1, + RemoveProjectEnvContentHintPostgresURLNoSsl1: &postgresURLNoSsl, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion1RemoveProjectEnvContentHintIntegrationStoreSecret1(removeProjectEnvContentHintIntegrationStoreSecret1 RemoveProjectEnvContentHintIntegrationStoreSecret1) RemoveProjectEnvContentHintUnion1 { - typ := RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintIntegrationStoreSecret1 +func CreateRemoveProjectEnvContentHintUnion1IntegrationStoreSecret(integrationStoreSecret RemoveProjectEnvContentHintIntegrationStoreSecret1) RemoveProjectEnvContentHintUnion1 { + typ := RemoveProjectEnvContentHintUnion1TypeIntegrationStoreSecret + + typStr := RemoveProjectEnvTypeIntegrationStoreSecret1(typ) + integrationStoreSecret.Type = typStr return RemoveProjectEnvContentHintUnion1{ - RemoveProjectEnvContentHintIntegrationStoreSecret1: &removeProjectEnvContentHintIntegrationStoreSecret1, + RemoveProjectEnvContentHintIntegrationStoreSecret1: &integrationStoreSecret, Type: typ, } } -func CreateRemoveProjectEnvContentHintUnion1RemoveProjectEnvContentHintFlagsConnectionString1(removeProjectEnvContentHintFlagsConnectionString1 RemoveProjectEnvContentHintFlagsConnectionString1) RemoveProjectEnvContentHintUnion1 { - typ := RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintFlagsConnectionString1 +func CreateRemoveProjectEnvContentHintUnion1FlagsConnectionString(flagsConnectionString RemoveProjectEnvContentHintFlagsConnectionString1) RemoveProjectEnvContentHintUnion1 { + typ := RemoveProjectEnvContentHintUnion1TypeFlagsConnectionString + + typStr := RemoveProjectEnvTypeFlagsConnectionString1(typ) + flagsConnectionString.Type = typStr return RemoveProjectEnvContentHintUnion1{ - RemoveProjectEnvContentHintFlagsConnectionString1: &removeProjectEnvContentHintFlagsConnectionString1, + RemoveProjectEnvContentHintFlagsConnectionString1: &flagsConnectionString, Type: typ, } } func (u *RemoveProjectEnvContentHintUnion1) UnmarshalJSON(data []byte) error { - var removeProjectEnvContentHintIntegrationStoreSecret1 RemoveProjectEnvContentHintIntegrationStoreSecret1 = RemoveProjectEnvContentHintIntegrationStoreSecret1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintIntegrationStoreSecret1, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintIntegrationStoreSecret1 = &removeProjectEnvContentHintIntegrationStoreSecret1 - u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintIntegrationStoreSecret1 - return nil + type discriminator struct { + Type string `json:"type"` } - var removeProjectEnvContentHintRedisURL1 RemoveProjectEnvContentHintRedisURL1 = RemoveProjectEnvContentHintRedisURL1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisURL1, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintRedisURL1 = &removeProjectEnvContentHintRedisURL1 - u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintRedisURL1 - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var removeProjectEnvContentHintRedisRestAPIURL1 RemoveProjectEnvContentHintRedisRestAPIURL1 = RemoveProjectEnvContentHintRedisRestAPIURL1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIURL1, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintRedisRestAPIURL1 = &removeProjectEnvContentHintRedisRestAPIURL1 - u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintRedisRestAPIURL1 + switch dis.Type { + case "redis-url": + removeProjectEnvContentHintRedisURL1 := new(RemoveProjectEnvContentHintRedisURL1) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisURL1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-url) type RemoveProjectEnvContentHintRedisURL1 within RemoveProjectEnvContentHintUnion1: %w", string(data), err) + } + + u.RemoveProjectEnvContentHintRedisURL1 = removeProjectEnvContentHintRedisURL1 + u.Type = RemoveProjectEnvContentHintUnion1TypeRedisURL return nil - } + case "redis-rest-api-url": + removeProjectEnvContentHintRedisRestAPIURL1 := new(RemoveProjectEnvContentHintRedisRestAPIURL1) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIURL1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-url) type RemoveProjectEnvContentHintRedisRestAPIURL1 within RemoveProjectEnvContentHintUnion1: %w", string(data), err) + } - var removeProjectEnvContentHintRedisRestAPIToken1 RemoveProjectEnvContentHintRedisRestAPIToken1 = RemoveProjectEnvContentHintRedisRestAPIToken1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIToken1, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintRedisRestAPIToken1 = &removeProjectEnvContentHintRedisRestAPIToken1 - u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintRedisRestAPIToken1 + u.RemoveProjectEnvContentHintRedisRestAPIURL1 = removeProjectEnvContentHintRedisRestAPIURL1 + u.Type = RemoveProjectEnvContentHintUnion1TypeRedisRestAPIURL return nil - } + case "redis-rest-api-token": + removeProjectEnvContentHintRedisRestAPIToken1 := new(RemoveProjectEnvContentHintRedisRestAPIToken1) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIToken1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-token) type RemoveProjectEnvContentHintRedisRestAPIToken1 within RemoveProjectEnvContentHintUnion1: %w", string(data), err) + } - var removeProjectEnvContentHintRedisRestAPIReadOnlyToken1 RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1 = RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIReadOnlyToken1, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1 = &removeProjectEnvContentHintRedisRestAPIReadOnlyToken1 - u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1 + u.RemoveProjectEnvContentHintRedisRestAPIToken1 = removeProjectEnvContentHintRedisRestAPIToken1 + u.Type = RemoveProjectEnvContentHintUnion1TypeRedisRestAPIToken return nil - } + case "redis-rest-api-read-only-token": + removeProjectEnvContentHintRedisRestAPIReadOnlyToken1 := new(RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIReadOnlyToken1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-read-only-token) type RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1 within RemoveProjectEnvContentHintUnion1: %w", string(data), err) + } - var removeProjectEnvContentHintBlobReadWriteToken1 RemoveProjectEnvContentHintBlobReadWriteToken1 = RemoveProjectEnvContentHintBlobReadWriteToken1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintBlobReadWriteToken1, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintBlobReadWriteToken1 = &removeProjectEnvContentHintBlobReadWriteToken1 - u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintBlobReadWriteToken1 + u.RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1 = removeProjectEnvContentHintRedisRestAPIReadOnlyToken1 + u.Type = RemoveProjectEnvContentHintUnion1TypeRedisRestAPIReadOnlyToken return nil - } + case "blob-read-write-token": + removeProjectEnvContentHintBlobReadWriteToken1 := new(RemoveProjectEnvContentHintBlobReadWriteToken1) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintBlobReadWriteToken1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == blob-read-write-token) type RemoveProjectEnvContentHintBlobReadWriteToken1 within RemoveProjectEnvContentHintUnion1: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresURL1 RemoveProjectEnvContentHintPostgresURL1 = RemoveProjectEnvContentHintPostgresURL1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURL1, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresURL1 = &removeProjectEnvContentHintPostgresURL1 - u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresURL1 + u.RemoveProjectEnvContentHintBlobReadWriteToken1 = removeProjectEnvContentHintBlobReadWriteToken1 + u.Type = RemoveProjectEnvContentHintUnion1TypeBlobReadWriteToken return nil - } + case "postgres-url": + removeProjectEnvContentHintPostgresURL1 := new(RemoveProjectEnvContentHintPostgresURL1) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURL1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url) type RemoveProjectEnvContentHintPostgresURL1 within RemoveProjectEnvContentHintUnion1: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresURLNonPooling1 RemoveProjectEnvContentHintPostgresURLNonPooling1 = RemoveProjectEnvContentHintPostgresURLNonPooling1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNonPooling1, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresURLNonPooling1 = &removeProjectEnvContentHintPostgresURLNonPooling1 - u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresURLNonPooling1 + u.RemoveProjectEnvContentHintPostgresURL1 = removeProjectEnvContentHintPostgresURL1 + u.Type = RemoveProjectEnvContentHintUnion1TypePostgresURL return nil - } + case "postgres-url-non-pooling": + removeProjectEnvContentHintPostgresURLNonPooling1 := new(RemoveProjectEnvContentHintPostgresURLNonPooling1) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNonPooling1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-non-pooling) type RemoveProjectEnvContentHintPostgresURLNonPooling1 within RemoveProjectEnvContentHintUnion1: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresPrismaURL1 RemoveProjectEnvContentHintPostgresPrismaURL1 = RemoveProjectEnvContentHintPostgresPrismaURL1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPrismaURL1, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresPrismaURL1 = &removeProjectEnvContentHintPostgresPrismaURL1 - u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresPrismaURL1 + u.RemoveProjectEnvContentHintPostgresURLNonPooling1 = removeProjectEnvContentHintPostgresURLNonPooling1 + u.Type = RemoveProjectEnvContentHintUnion1TypePostgresURLNonPooling return nil - } + case "postgres-prisma-url": + removeProjectEnvContentHintPostgresPrismaURL1 := new(RemoveProjectEnvContentHintPostgresPrismaURL1) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPrismaURL1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-prisma-url) type RemoveProjectEnvContentHintPostgresPrismaURL1 within RemoveProjectEnvContentHintUnion1: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresUser1 RemoveProjectEnvContentHintPostgresUser1 = RemoveProjectEnvContentHintPostgresUser1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresUser1, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresUser1 = &removeProjectEnvContentHintPostgresUser1 - u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresUser1 + u.RemoveProjectEnvContentHintPostgresPrismaURL1 = removeProjectEnvContentHintPostgresPrismaURL1 + u.Type = RemoveProjectEnvContentHintUnion1TypePostgresPrismaURL return nil - } + case "postgres-user": + removeProjectEnvContentHintPostgresUser1 := new(RemoveProjectEnvContentHintPostgresUser1) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresUser1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-user) type RemoveProjectEnvContentHintPostgresUser1 within RemoveProjectEnvContentHintUnion1: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresHost1 RemoveProjectEnvContentHintPostgresHost1 = RemoveProjectEnvContentHintPostgresHost1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresHost1, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresHost1 = &removeProjectEnvContentHintPostgresHost1 - u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresHost1 + u.RemoveProjectEnvContentHintPostgresUser1 = removeProjectEnvContentHintPostgresUser1 + u.Type = RemoveProjectEnvContentHintUnion1TypePostgresUser return nil - } + case "postgres-host": + removeProjectEnvContentHintPostgresHost1 := new(RemoveProjectEnvContentHintPostgresHost1) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresHost1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-host) type RemoveProjectEnvContentHintPostgresHost1 within RemoveProjectEnvContentHintUnion1: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresPassword1 RemoveProjectEnvContentHintPostgresPassword1 = RemoveProjectEnvContentHintPostgresPassword1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPassword1, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresPassword1 = &removeProjectEnvContentHintPostgresPassword1 - u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresPassword1 + u.RemoveProjectEnvContentHintPostgresHost1 = removeProjectEnvContentHintPostgresHost1 + u.Type = RemoveProjectEnvContentHintUnion1TypePostgresHost return nil - } + case "postgres-password": + removeProjectEnvContentHintPostgresPassword1 := new(RemoveProjectEnvContentHintPostgresPassword1) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPassword1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-password) type RemoveProjectEnvContentHintPostgresPassword1 within RemoveProjectEnvContentHintUnion1: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresDatabase1 RemoveProjectEnvContentHintPostgresDatabase1 = RemoveProjectEnvContentHintPostgresDatabase1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresDatabase1, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresDatabase1 = &removeProjectEnvContentHintPostgresDatabase1 - u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresDatabase1 + u.RemoveProjectEnvContentHintPostgresPassword1 = removeProjectEnvContentHintPostgresPassword1 + u.Type = RemoveProjectEnvContentHintUnion1TypePostgresPassword return nil - } + case "postgres-database": + removeProjectEnvContentHintPostgresDatabase1 := new(RemoveProjectEnvContentHintPostgresDatabase1) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresDatabase1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-database) type RemoveProjectEnvContentHintPostgresDatabase1 within RemoveProjectEnvContentHintUnion1: %w", string(data), err) + } - var removeProjectEnvContentHintPostgresURLNoSsl1 RemoveProjectEnvContentHintPostgresURLNoSsl1 = RemoveProjectEnvContentHintPostgresURLNoSsl1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNoSsl1, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintPostgresURLNoSsl1 = &removeProjectEnvContentHintPostgresURLNoSsl1 - u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresURLNoSsl1 + u.RemoveProjectEnvContentHintPostgresDatabase1 = removeProjectEnvContentHintPostgresDatabase1 + u.Type = RemoveProjectEnvContentHintUnion1TypePostgresDatabase return nil - } + case "postgres-url-no-ssl": + removeProjectEnvContentHintPostgresURLNoSsl1 := new(RemoveProjectEnvContentHintPostgresURLNoSsl1) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNoSsl1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-no-ssl) type RemoveProjectEnvContentHintPostgresURLNoSsl1 within RemoveProjectEnvContentHintUnion1: %w", string(data), err) + } + + u.RemoveProjectEnvContentHintPostgresURLNoSsl1 = removeProjectEnvContentHintPostgresURLNoSsl1 + u.Type = RemoveProjectEnvContentHintUnion1TypePostgresURLNoSsl + return nil + case "integration-store-secret": + removeProjectEnvContentHintIntegrationStoreSecret1 := new(RemoveProjectEnvContentHintIntegrationStoreSecret1) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintIntegrationStoreSecret1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == integration-store-secret) type RemoveProjectEnvContentHintIntegrationStoreSecret1 within RemoveProjectEnvContentHintUnion1: %w", string(data), err) + } + + u.RemoveProjectEnvContentHintIntegrationStoreSecret1 = removeProjectEnvContentHintIntegrationStoreSecret1 + u.Type = RemoveProjectEnvContentHintUnion1TypeIntegrationStoreSecret + return nil + case "flags-connection-string": + removeProjectEnvContentHintFlagsConnectionString1 := new(RemoveProjectEnvContentHintFlagsConnectionString1) + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintFlagsConnectionString1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == flags-connection-string) type RemoveProjectEnvContentHintFlagsConnectionString1 within RemoveProjectEnvContentHintUnion1: %w", string(data), err) + } - var removeProjectEnvContentHintFlagsConnectionString1 RemoveProjectEnvContentHintFlagsConnectionString1 = RemoveProjectEnvContentHintFlagsConnectionString1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintFlagsConnectionString1, "", true, nil); err == nil { - u.RemoveProjectEnvContentHintFlagsConnectionString1 = &removeProjectEnvContentHintFlagsConnectionString1 - u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintFlagsConnectionString1 + u.RemoveProjectEnvContentHintFlagsConnectionString1 = removeProjectEnvContentHintFlagsConnectionString1 + u.Type = RemoveProjectEnvContentHintUnion1TypeFlagsConnectionString return nil } @@ -4710,6 +5181,111 @@ func (o *RemoveProjectEnvResponseBody1) GetContentHint() *RemoveProjectEnvConten return o.ContentHint } +func (o *RemoveProjectEnvResponseBody1) GetContentHintRedisURL() *RemoveProjectEnvContentHintRedisURL1 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintRedisURL1 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody1) GetContentHintRedisRestAPIURL() *RemoveProjectEnvContentHintRedisRestAPIURL1 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintRedisRestAPIURL1 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody1) GetContentHintRedisRestAPIToken() *RemoveProjectEnvContentHintRedisRestAPIToken1 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintRedisRestAPIToken1 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody1) GetContentHintRedisRestAPIReadOnlyToken() *RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody1) GetContentHintBlobReadWriteToken() *RemoveProjectEnvContentHintBlobReadWriteToken1 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintBlobReadWriteToken1 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody1) GetContentHintPostgresURL() *RemoveProjectEnvContentHintPostgresURL1 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresURL1 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody1) GetContentHintPostgresURLNonPooling() *RemoveProjectEnvContentHintPostgresURLNonPooling1 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresURLNonPooling1 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody1) GetContentHintPostgresPrismaURL() *RemoveProjectEnvContentHintPostgresPrismaURL1 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresPrismaURL1 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody1) GetContentHintPostgresUser() *RemoveProjectEnvContentHintPostgresUser1 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresUser1 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody1) GetContentHintPostgresHost() *RemoveProjectEnvContentHintPostgresHost1 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresHost1 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody1) GetContentHintPostgresPassword() *RemoveProjectEnvContentHintPostgresPassword1 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresPassword1 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody1) GetContentHintPostgresDatabase() *RemoveProjectEnvContentHintPostgresDatabase1 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresDatabase1 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody1) GetContentHintPostgresURLNoSsl() *RemoveProjectEnvContentHintPostgresURLNoSsl1 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintPostgresURLNoSsl1 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody1) GetContentHintIntegrationStoreSecret() *RemoveProjectEnvContentHintIntegrationStoreSecret1 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintIntegrationStoreSecret1 + } + return nil +} + +func (o *RemoveProjectEnvResponseBody1) GetContentHintFlagsConnectionString() *RemoveProjectEnvContentHintFlagsConnectionString1 { + if v := o.GetContentHint(); v != nil { + return v.RemoveProjectEnvContentHintFlagsConnectionString1 + } + return nil +} + func (o *RemoveProjectEnvResponseBody1) GetInternalContentHint() *RemoveProjectEnvInternalContentHint1 { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/updatedrain.go b/src/__tests__/mockserver/internal/sdk/models/operations/updatedrain.go index aec89144..1e11b077 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/updatedrain.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/updatedrain.go @@ -1926,10 +1926,10 @@ func (o *UpdateDrainDeliveryHTTP2) GetSecret() *UpdateDrainSecretUnion3 { type UpdateDrainDeliveryResponseUnion2Type string const ( - UpdateDrainDeliveryResponseUnion2TypeUpdateDrainDeliveryHTTP2 UpdateDrainDeliveryResponseUnion2Type = "updateDrain_delivery_HTTP_2" - UpdateDrainDeliveryResponseUnion2TypeUpdateDrainDeliveryOtlphttp2 UpdateDrainDeliveryResponseUnion2Type = "updateDrain_delivery_Otlphttp_2" - UpdateDrainDeliveryResponseUnion2TypeUpdateDrainDeliveryClickhouse2 UpdateDrainDeliveryResponseUnion2Type = "updateDrain_delivery_Clickhouse_2" - UpdateDrainDeliveryResponseUnion2TypeUpdateDrainDeliveryVercelOtelTracesDb2 UpdateDrainDeliveryResponseUnion2Type = "updateDrain_delivery_VercelOtelTracesDb_2" + UpdateDrainDeliveryResponseUnion2TypeHTTP UpdateDrainDeliveryResponseUnion2Type = "http" + UpdateDrainDeliveryResponseUnion2TypeOtlphttp UpdateDrainDeliveryResponseUnion2Type = "otlphttp" + UpdateDrainDeliveryResponseUnion2TypeClickhouse UpdateDrainDeliveryResponseUnion2Type = "clickhouse" + UpdateDrainDeliveryResponseUnion2TypeInternal UpdateDrainDeliveryResponseUnion2Type = "internal" ) type UpdateDrainDeliveryResponseUnion2 struct { @@ -1941,69 +1941,101 @@ type UpdateDrainDeliveryResponseUnion2 struct { Type UpdateDrainDeliveryResponseUnion2Type } -func CreateUpdateDrainDeliveryResponseUnion2UpdateDrainDeliveryHTTP2(updateDrainDeliveryHTTP2 UpdateDrainDeliveryHTTP2) UpdateDrainDeliveryResponseUnion2 { - typ := UpdateDrainDeliveryResponseUnion2TypeUpdateDrainDeliveryHTTP2 +func CreateUpdateDrainDeliveryResponseUnion2HTTP(http UpdateDrainDeliveryHTTP2) UpdateDrainDeliveryResponseUnion2 { + typ := UpdateDrainDeliveryResponseUnion2TypeHTTP + + typStr := UpdateDrainTypeHTTP2(typ) + http.Type = typStr return UpdateDrainDeliveryResponseUnion2{ - UpdateDrainDeliveryHTTP2: &updateDrainDeliveryHTTP2, + UpdateDrainDeliveryHTTP2: &http, Type: typ, } } -func CreateUpdateDrainDeliveryResponseUnion2UpdateDrainDeliveryOtlphttp2(updateDrainDeliveryOtlphttp2 UpdateDrainDeliveryOtlphttp2) UpdateDrainDeliveryResponseUnion2 { - typ := UpdateDrainDeliveryResponseUnion2TypeUpdateDrainDeliveryOtlphttp2 +func CreateUpdateDrainDeliveryResponseUnion2Otlphttp(otlphttp UpdateDrainDeliveryOtlphttp2) UpdateDrainDeliveryResponseUnion2 { + typ := UpdateDrainDeliveryResponseUnion2TypeOtlphttp + + typStr := UpdateDrainTypeOtlphttp2(typ) + otlphttp.Type = typStr return UpdateDrainDeliveryResponseUnion2{ - UpdateDrainDeliveryOtlphttp2: &updateDrainDeliveryOtlphttp2, + UpdateDrainDeliveryOtlphttp2: &otlphttp, Type: typ, } } -func CreateUpdateDrainDeliveryResponseUnion2UpdateDrainDeliveryClickhouse2(updateDrainDeliveryClickhouse2 UpdateDrainDeliveryClickhouse2) UpdateDrainDeliveryResponseUnion2 { - typ := UpdateDrainDeliveryResponseUnion2TypeUpdateDrainDeliveryClickhouse2 +func CreateUpdateDrainDeliveryResponseUnion2Clickhouse(clickhouse UpdateDrainDeliveryClickhouse2) UpdateDrainDeliveryResponseUnion2 { + typ := UpdateDrainDeliveryResponseUnion2TypeClickhouse + + typStr := UpdateDrainTypeClickhouse2(typ) + clickhouse.Type = typStr return UpdateDrainDeliveryResponseUnion2{ - UpdateDrainDeliveryClickhouse2: &updateDrainDeliveryClickhouse2, + UpdateDrainDeliveryClickhouse2: &clickhouse, Type: typ, } } -func CreateUpdateDrainDeliveryResponseUnion2UpdateDrainDeliveryVercelOtelTracesDb2(updateDrainDeliveryVercelOtelTracesDb2 UpdateDrainDeliveryVercelOtelTracesDb2) UpdateDrainDeliveryResponseUnion2 { - typ := UpdateDrainDeliveryResponseUnion2TypeUpdateDrainDeliveryVercelOtelTracesDb2 +func CreateUpdateDrainDeliveryResponseUnion2Internal(internal UpdateDrainDeliveryVercelOtelTracesDb2) UpdateDrainDeliveryResponseUnion2 { + typ := UpdateDrainDeliveryResponseUnion2TypeInternal + + typStr := UpdateDrainTypeInternal2(typ) + internal.Type = typStr return UpdateDrainDeliveryResponseUnion2{ - UpdateDrainDeliveryVercelOtelTracesDb2: &updateDrainDeliveryVercelOtelTracesDb2, + UpdateDrainDeliveryVercelOtelTracesDb2: &internal, Type: typ, } } func (u *UpdateDrainDeliveryResponseUnion2) UnmarshalJSON(data []byte) error { - var updateDrainDeliveryHTTP2 UpdateDrainDeliveryHTTP2 = UpdateDrainDeliveryHTTP2{} - if err := utils.UnmarshalJSON(data, &updateDrainDeliveryHTTP2, "", true, nil); err == nil { - u.UpdateDrainDeliveryHTTP2 = &updateDrainDeliveryHTTP2 - u.Type = UpdateDrainDeliveryResponseUnion2TypeUpdateDrainDeliveryHTTP2 - return nil + type discriminator struct { + Type string `json:"type"` } - var updateDrainDeliveryOtlphttp2 UpdateDrainDeliveryOtlphttp2 = UpdateDrainDeliveryOtlphttp2{} - if err := utils.UnmarshalJSON(data, &updateDrainDeliveryOtlphttp2, "", true, nil); err == nil { - u.UpdateDrainDeliveryOtlphttp2 = &updateDrainDeliveryOtlphttp2 - u.Type = UpdateDrainDeliveryResponseUnion2TypeUpdateDrainDeliveryOtlphttp2 - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var updateDrainDeliveryClickhouse2 UpdateDrainDeliveryClickhouse2 = UpdateDrainDeliveryClickhouse2{} - if err := utils.UnmarshalJSON(data, &updateDrainDeliveryClickhouse2, "", true, nil); err == nil { - u.UpdateDrainDeliveryClickhouse2 = &updateDrainDeliveryClickhouse2 - u.Type = UpdateDrainDeliveryResponseUnion2TypeUpdateDrainDeliveryClickhouse2 + switch dis.Type { + case "http": + updateDrainDeliveryHTTP2 := new(UpdateDrainDeliveryHTTP2) + if err := utils.UnmarshalJSON(data, &updateDrainDeliveryHTTP2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == http) type UpdateDrainDeliveryHTTP2 within UpdateDrainDeliveryResponseUnion2: %w", string(data), err) + } + + u.UpdateDrainDeliveryHTTP2 = updateDrainDeliveryHTTP2 + u.Type = UpdateDrainDeliveryResponseUnion2TypeHTTP return nil - } + case "otlphttp": + updateDrainDeliveryOtlphttp2 := new(UpdateDrainDeliveryOtlphttp2) + if err := utils.UnmarshalJSON(data, &updateDrainDeliveryOtlphttp2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == otlphttp) type UpdateDrainDeliveryOtlphttp2 within UpdateDrainDeliveryResponseUnion2: %w", string(data), err) + } + + u.UpdateDrainDeliveryOtlphttp2 = updateDrainDeliveryOtlphttp2 + u.Type = UpdateDrainDeliveryResponseUnion2TypeOtlphttp + return nil + case "clickhouse": + updateDrainDeliveryClickhouse2 := new(UpdateDrainDeliveryClickhouse2) + if err := utils.UnmarshalJSON(data, &updateDrainDeliveryClickhouse2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == clickhouse) type UpdateDrainDeliveryClickhouse2 within UpdateDrainDeliveryResponseUnion2: %w", string(data), err) + } + + u.UpdateDrainDeliveryClickhouse2 = updateDrainDeliveryClickhouse2 + u.Type = UpdateDrainDeliveryResponseUnion2TypeClickhouse + return nil + case "internal": + updateDrainDeliveryVercelOtelTracesDb2 := new(UpdateDrainDeliveryVercelOtelTracesDb2) + if err := utils.UnmarshalJSON(data, &updateDrainDeliveryVercelOtelTracesDb2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == internal) type UpdateDrainDeliveryVercelOtelTracesDb2 within UpdateDrainDeliveryResponseUnion2: %w", string(data), err) + } - var updateDrainDeliveryVercelOtelTracesDb2 UpdateDrainDeliveryVercelOtelTracesDb2 = UpdateDrainDeliveryVercelOtelTracesDb2{} - if err := utils.UnmarshalJSON(data, &updateDrainDeliveryVercelOtelTracesDb2, "", true, nil); err == nil { - u.UpdateDrainDeliveryVercelOtelTracesDb2 = &updateDrainDeliveryVercelOtelTracesDb2 - u.Type = UpdateDrainDeliveryResponseUnion2TypeUpdateDrainDeliveryVercelOtelTracesDb2 + u.UpdateDrainDeliveryVercelOtelTracesDb2 = updateDrainDeliveryVercelOtelTracesDb2 + u.Type = UpdateDrainDeliveryResponseUnion2TypeInternal return nil } @@ -2311,8 +2343,8 @@ func (o *UpdateDrainSourceSelfServed2) GetKind() UpdateDrainKindSelfServed2 { type UpdateDrainResponseBodySourceUnion2Type string const ( - UpdateDrainResponseBodySourceUnion2TypeUpdateDrainSourceSelfServed2 UpdateDrainResponseBodySourceUnion2Type = "updateDrain_source_SelfServed_2" - UpdateDrainResponseBodySourceUnion2TypeUpdateDrainSourceIntegration2 UpdateDrainResponseBodySourceUnion2Type = "updateDrain_source_Integration_2" + UpdateDrainResponseBodySourceUnion2TypeSelfServed UpdateDrainResponseBodySourceUnion2Type = "self-served" + UpdateDrainResponseBodySourceUnion2TypeIntegration UpdateDrainResponseBodySourceUnion2Type = "integration" ) type UpdateDrainResponseBodySourceUnion2 struct { @@ -2322,37 +2354,59 @@ type UpdateDrainResponseBodySourceUnion2 struct { Type UpdateDrainResponseBodySourceUnion2Type } -func CreateUpdateDrainResponseBodySourceUnion2UpdateDrainSourceSelfServed2(updateDrainSourceSelfServed2 UpdateDrainSourceSelfServed2) UpdateDrainResponseBodySourceUnion2 { - typ := UpdateDrainResponseBodySourceUnion2TypeUpdateDrainSourceSelfServed2 +func CreateUpdateDrainResponseBodySourceUnion2SelfServed(selfServed UpdateDrainSourceSelfServed2) UpdateDrainResponseBodySourceUnion2 { + typ := UpdateDrainResponseBodySourceUnion2TypeSelfServed + + typStr := UpdateDrainKindSelfServed2(typ) + selfServed.Kind = typStr return UpdateDrainResponseBodySourceUnion2{ - UpdateDrainSourceSelfServed2: &updateDrainSourceSelfServed2, + UpdateDrainSourceSelfServed2: &selfServed, Type: typ, } } -func CreateUpdateDrainResponseBodySourceUnion2UpdateDrainSourceIntegration2(updateDrainSourceIntegration2 UpdateDrainSourceIntegration2) UpdateDrainResponseBodySourceUnion2 { - typ := UpdateDrainResponseBodySourceUnion2TypeUpdateDrainSourceIntegration2 +func CreateUpdateDrainResponseBodySourceUnion2Integration(integration UpdateDrainSourceIntegration2) UpdateDrainResponseBodySourceUnion2 { + typ := UpdateDrainResponseBodySourceUnion2TypeIntegration + + typStr := UpdateDrainKindIntegration2(typ) + integration.Kind = typStr return UpdateDrainResponseBodySourceUnion2{ - UpdateDrainSourceIntegration2: &updateDrainSourceIntegration2, + UpdateDrainSourceIntegration2: &integration, Type: typ, } } func (u *UpdateDrainResponseBodySourceUnion2) UnmarshalJSON(data []byte) error { - var updateDrainSourceIntegration2 UpdateDrainSourceIntegration2 = UpdateDrainSourceIntegration2{} - if err := utils.UnmarshalJSON(data, &updateDrainSourceIntegration2, "", true, nil); err == nil { - u.UpdateDrainSourceIntegration2 = &updateDrainSourceIntegration2 - u.Type = UpdateDrainResponseBodySourceUnion2TypeUpdateDrainSourceIntegration2 - return nil + type discriminator struct { + Kind string `json:"kind"` } - var updateDrainSourceSelfServed2 UpdateDrainSourceSelfServed2 = UpdateDrainSourceSelfServed2{} - if err := utils.UnmarshalJSON(data, &updateDrainSourceSelfServed2, "", true, nil); err == nil { - u.UpdateDrainSourceSelfServed2 = &updateDrainSourceSelfServed2 - u.Type = UpdateDrainResponseBodySourceUnion2TypeUpdateDrainSourceSelfServed2 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Kind { + case "self-served": + updateDrainSourceSelfServed2 := new(UpdateDrainSourceSelfServed2) + if err := utils.UnmarshalJSON(data, &updateDrainSourceSelfServed2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == self-served) type UpdateDrainSourceSelfServed2 within UpdateDrainResponseBodySourceUnion2: %w", string(data), err) + } + + u.UpdateDrainSourceSelfServed2 = updateDrainSourceSelfServed2 + u.Type = UpdateDrainResponseBodySourceUnion2TypeSelfServed + return nil + case "integration": + updateDrainSourceIntegration2 := new(UpdateDrainSourceIntegration2) + if err := utils.UnmarshalJSON(data, &updateDrainSourceIntegration2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == integration) type UpdateDrainSourceIntegration2 within UpdateDrainResponseBodySourceUnion2: %w", string(data), err) + } + + u.UpdateDrainSourceIntegration2 = updateDrainSourceIntegration2 + u.Type = UpdateDrainResponseBodySourceUnion2TypeIntegration return nil } @@ -2660,8 +2714,8 @@ func (o *UpdateDrainFilterBasic2) GetDeployment() *UpdateDrainFilterV2Deployment type UpdateDrainFilterResponseUnion2Type string const ( - UpdateDrainFilterResponseUnion2TypeUpdateDrainFilterBasic2 UpdateDrainFilterResponseUnion2Type = "updateDrain_filter_Basic_2" - UpdateDrainFilterResponseUnion2TypeUpdateDrainFilterOdata2 UpdateDrainFilterResponseUnion2Type = "updateDrain_filter_Odata_2" + UpdateDrainFilterResponseUnion2TypeBasic UpdateDrainFilterResponseUnion2Type = "basic" + UpdateDrainFilterResponseUnion2TypeOdata UpdateDrainFilterResponseUnion2Type = "odata" ) type UpdateDrainFilterResponseUnion2 struct { @@ -2671,37 +2725,59 @@ type UpdateDrainFilterResponseUnion2 struct { Type UpdateDrainFilterResponseUnion2Type } -func CreateUpdateDrainFilterResponseUnion2UpdateDrainFilterBasic2(updateDrainFilterBasic2 UpdateDrainFilterBasic2) UpdateDrainFilterResponseUnion2 { - typ := UpdateDrainFilterResponseUnion2TypeUpdateDrainFilterBasic2 +func CreateUpdateDrainFilterResponseUnion2Basic(basic UpdateDrainFilterBasic2) UpdateDrainFilterResponseUnion2 { + typ := UpdateDrainFilterResponseUnion2TypeBasic + + typStr := UpdateDrainTypeBasic2(typ) + basic.Type = typStr return UpdateDrainFilterResponseUnion2{ - UpdateDrainFilterBasic2: &updateDrainFilterBasic2, + UpdateDrainFilterBasic2: &basic, Type: typ, } } -func CreateUpdateDrainFilterResponseUnion2UpdateDrainFilterOdata2(updateDrainFilterOdata2 UpdateDrainFilterOdata2) UpdateDrainFilterResponseUnion2 { - typ := UpdateDrainFilterResponseUnion2TypeUpdateDrainFilterOdata2 +func CreateUpdateDrainFilterResponseUnion2Odata(odata UpdateDrainFilterOdata2) UpdateDrainFilterResponseUnion2 { + typ := UpdateDrainFilterResponseUnion2TypeOdata + + typStr := UpdateDrainTypeOdata2(typ) + odata.Type = typStr return UpdateDrainFilterResponseUnion2{ - UpdateDrainFilterOdata2: &updateDrainFilterOdata2, + UpdateDrainFilterOdata2: &odata, Type: typ, } } func (u *UpdateDrainFilterResponseUnion2) UnmarshalJSON(data []byte) error { - var updateDrainFilterOdata2 UpdateDrainFilterOdata2 = UpdateDrainFilterOdata2{} - if err := utils.UnmarshalJSON(data, &updateDrainFilterOdata2, "", true, nil); err == nil { - u.UpdateDrainFilterOdata2 = &updateDrainFilterOdata2 - u.Type = UpdateDrainFilterResponseUnion2TypeUpdateDrainFilterOdata2 - return nil + type discriminator struct { + Type string `json:"type"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var updateDrainFilterBasic2 UpdateDrainFilterBasic2 = UpdateDrainFilterBasic2{} - if err := utils.UnmarshalJSON(data, &updateDrainFilterBasic2, "", true, nil); err == nil { - u.UpdateDrainFilterBasic2 = &updateDrainFilterBasic2 - u.Type = UpdateDrainFilterResponseUnion2TypeUpdateDrainFilterBasic2 + switch dis.Type { + case "basic": + updateDrainFilterBasic2 := new(UpdateDrainFilterBasic2) + if err := utils.UnmarshalJSON(data, &updateDrainFilterBasic2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == basic) type UpdateDrainFilterBasic2 within UpdateDrainFilterResponseUnion2: %w", string(data), err) + } + + u.UpdateDrainFilterBasic2 = updateDrainFilterBasic2 + u.Type = UpdateDrainFilterResponseUnion2TypeBasic + return nil + case "odata": + updateDrainFilterOdata2 := new(UpdateDrainFilterOdata2) + if err := utils.UnmarshalJSON(data, &updateDrainFilterOdata2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == odata) type UpdateDrainFilterOdata2 within UpdateDrainFilterResponseUnion2: %w", string(data), err) + } + + u.UpdateDrainFilterOdata2 = updateDrainFilterOdata2 + u.Type = UpdateDrainFilterResponseUnion2TypeOdata return nil } @@ -2750,6 +2826,14 @@ func (o *UpdateDrainFilterV2V22) GetFilter() UpdateDrainFilterResponseUnion2 { return o.Filter } +func (o *UpdateDrainFilterV2V22) GetFilterBasic() *UpdateDrainFilterBasic2 { + return o.GetFilter().UpdateDrainFilterBasic2 +} + +func (o *UpdateDrainFilterV2V22) GetFilterOdata() *UpdateDrainFilterOdata2 { + return o.GetFilter().UpdateDrainFilterOdata2 +} + type UpdateDrainVersionV12 string const ( @@ -2798,8 +2882,8 @@ func (o *UpdateDrainFilterV2V12) GetVersion() UpdateDrainVersionV12 { type UpdateDrainFilterV2Union2Type string const ( - UpdateDrainFilterV2Union2TypeUpdateDrainFilterV2V12 UpdateDrainFilterV2Union2Type = "updateDrain_filterV2_V1_2" - UpdateDrainFilterV2Union2TypeUpdateDrainFilterV2V22 UpdateDrainFilterV2Union2Type = "updateDrain_filterV2_V2_2" + UpdateDrainFilterV2Union2TypeV1 UpdateDrainFilterV2Union2Type = "v1" + UpdateDrainFilterV2Union2TypeV2 UpdateDrainFilterV2Union2Type = "v2" ) type UpdateDrainFilterV2Union2 struct { @@ -2809,37 +2893,59 @@ type UpdateDrainFilterV2Union2 struct { Type UpdateDrainFilterV2Union2Type } -func CreateUpdateDrainFilterV2Union2UpdateDrainFilterV2V12(updateDrainFilterV2V12 UpdateDrainFilterV2V12) UpdateDrainFilterV2Union2 { - typ := UpdateDrainFilterV2Union2TypeUpdateDrainFilterV2V12 +func CreateUpdateDrainFilterV2Union2V1(v1 UpdateDrainFilterV2V12) UpdateDrainFilterV2Union2 { + typ := UpdateDrainFilterV2Union2TypeV1 + + typStr := UpdateDrainVersionV12(typ) + v1.Version = typStr return UpdateDrainFilterV2Union2{ - UpdateDrainFilterV2V12: &updateDrainFilterV2V12, + UpdateDrainFilterV2V12: &v1, Type: typ, } } -func CreateUpdateDrainFilterV2Union2UpdateDrainFilterV2V22(updateDrainFilterV2V22 UpdateDrainFilterV2V22) UpdateDrainFilterV2Union2 { - typ := UpdateDrainFilterV2Union2TypeUpdateDrainFilterV2V22 +func CreateUpdateDrainFilterV2Union2V2(v2 UpdateDrainFilterV2V22) UpdateDrainFilterV2Union2 { + typ := UpdateDrainFilterV2Union2TypeV2 + + typStr := UpdateDrainVersionV22(typ) + v2.Version = typStr return UpdateDrainFilterV2Union2{ - UpdateDrainFilterV2V22: &updateDrainFilterV2V22, + UpdateDrainFilterV2V22: &v2, Type: typ, } } func (u *UpdateDrainFilterV2Union2) UnmarshalJSON(data []byte) error { - var updateDrainFilterV2V22 UpdateDrainFilterV2V22 = UpdateDrainFilterV2V22{} - if err := utils.UnmarshalJSON(data, &updateDrainFilterV2V22, "", true, nil); err == nil { - u.UpdateDrainFilterV2V22 = &updateDrainFilterV2V22 - u.Type = UpdateDrainFilterV2Union2TypeUpdateDrainFilterV2V22 - return nil + type discriminator struct { + Version string `json:"version"` } - var updateDrainFilterV2V12 UpdateDrainFilterV2V12 = UpdateDrainFilterV2V12{} - if err := utils.UnmarshalJSON(data, &updateDrainFilterV2V12, "", true, nil); err == nil { - u.UpdateDrainFilterV2V12 = &updateDrainFilterV2V12 - u.Type = UpdateDrainFilterV2Union2TypeUpdateDrainFilterV2V12 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Version { + case "v1": + updateDrainFilterV2V12 := new(UpdateDrainFilterV2V12) + if err := utils.UnmarshalJSON(data, &updateDrainFilterV2V12, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Version == v1) type UpdateDrainFilterV2V12 within UpdateDrainFilterV2Union2: %w", string(data), err) + } + + u.UpdateDrainFilterV2V12 = updateDrainFilterV2V12 + u.Type = UpdateDrainFilterV2Union2TypeV1 + return nil + case "v2": + updateDrainFilterV2V22 := new(UpdateDrainFilterV2V22) + if err := utils.UnmarshalJSON(data, &updateDrainFilterV2V22, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Version == v2) type UpdateDrainFilterV2V22 within UpdateDrainFilterV2Union2: %w", string(data), err) + } + + u.UpdateDrainFilterV2V22 = updateDrainFilterV2V22 + u.Type = UpdateDrainFilterV2Union2TypeV2 return nil } @@ -2959,8 +3065,8 @@ func (o *UpdateDrainProjectAccessAll) GetAccess() UpdateDrainAccessAll { type UpdateDrainProjectAccessUnionType string const ( - UpdateDrainProjectAccessUnionTypeUpdateDrainProjectAccessAll UpdateDrainProjectAccessUnionType = "updateDrain_projectAccess_All" - UpdateDrainProjectAccessUnionTypeUpdateDrainProjectAccessSome UpdateDrainProjectAccessUnionType = "updateDrain_projectAccess_Some" + UpdateDrainProjectAccessUnionTypeAll UpdateDrainProjectAccessUnionType = "all" + UpdateDrainProjectAccessUnionTypeSome UpdateDrainProjectAccessUnionType = "some" ) type UpdateDrainProjectAccessUnion struct { @@ -2970,37 +3076,59 @@ type UpdateDrainProjectAccessUnion struct { Type UpdateDrainProjectAccessUnionType } -func CreateUpdateDrainProjectAccessUnionUpdateDrainProjectAccessAll(updateDrainProjectAccessAll UpdateDrainProjectAccessAll) UpdateDrainProjectAccessUnion { - typ := UpdateDrainProjectAccessUnionTypeUpdateDrainProjectAccessAll +func CreateUpdateDrainProjectAccessUnionAll(all UpdateDrainProjectAccessAll) UpdateDrainProjectAccessUnion { + typ := UpdateDrainProjectAccessUnionTypeAll + + typStr := UpdateDrainAccessAll(typ) + all.Access = typStr return UpdateDrainProjectAccessUnion{ - UpdateDrainProjectAccessAll: &updateDrainProjectAccessAll, + UpdateDrainProjectAccessAll: &all, Type: typ, } } -func CreateUpdateDrainProjectAccessUnionUpdateDrainProjectAccessSome(updateDrainProjectAccessSome UpdateDrainProjectAccessSome) UpdateDrainProjectAccessUnion { - typ := UpdateDrainProjectAccessUnionTypeUpdateDrainProjectAccessSome +func CreateUpdateDrainProjectAccessUnionSome(some UpdateDrainProjectAccessSome) UpdateDrainProjectAccessUnion { + typ := UpdateDrainProjectAccessUnionTypeSome + + typStr := UpdateDrainAccessSome(typ) + some.Access = typStr return UpdateDrainProjectAccessUnion{ - UpdateDrainProjectAccessSome: &updateDrainProjectAccessSome, + UpdateDrainProjectAccessSome: &some, Type: typ, } } func (u *UpdateDrainProjectAccessUnion) UnmarshalJSON(data []byte) error { - var updateDrainProjectAccessSome UpdateDrainProjectAccessSome = UpdateDrainProjectAccessSome{} - if err := utils.UnmarshalJSON(data, &updateDrainProjectAccessSome, "", true, nil); err == nil { - u.UpdateDrainProjectAccessSome = &updateDrainProjectAccessSome - u.Type = UpdateDrainProjectAccessUnionTypeUpdateDrainProjectAccessSome - return nil + type discriminator struct { + Access string `json:"access"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var updateDrainProjectAccessAll UpdateDrainProjectAccessAll = UpdateDrainProjectAccessAll{} - if err := utils.UnmarshalJSON(data, &updateDrainProjectAccessAll, "", true, nil); err == nil { - u.UpdateDrainProjectAccessAll = &updateDrainProjectAccessAll - u.Type = UpdateDrainProjectAccessUnionTypeUpdateDrainProjectAccessAll + switch dis.Access { + case "all": + updateDrainProjectAccessAll := new(UpdateDrainProjectAccessAll) + if err := utils.UnmarshalJSON(data, &updateDrainProjectAccessAll, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Access == all) type UpdateDrainProjectAccessAll within UpdateDrainProjectAccessUnion: %w", string(data), err) + } + + u.UpdateDrainProjectAccessAll = updateDrainProjectAccessAll + u.Type = UpdateDrainProjectAccessUnionTypeAll + return nil + case "some": + updateDrainProjectAccessSome := new(UpdateDrainProjectAccessSome) + if err := utils.UnmarshalJSON(data, &updateDrainProjectAccessSome, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Access == some) type UpdateDrainProjectAccessSome within UpdateDrainProjectAccessUnion: %w", string(data), err) + } + + u.UpdateDrainProjectAccessSome = updateDrainProjectAccessSome + u.Type = UpdateDrainProjectAccessUnionTypeSome return nil } @@ -3111,6 +3239,34 @@ func (o *UpdateDrainResponseBody2) GetDelivery() *UpdateDrainDeliveryResponseUni return o.Delivery } +func (o *UpdateDrainResponseBody2) GetDeliveryHTTP() *UpdateDrainDeliveryHTTP2 { + if v := o.GetDelivery(); v != nil { + return v.UpdateDrainDeliveryHTTP2 + } + return nil +} + +func (o *UpdateDrainResponseBody2) GetDeliveryOtlphttp() *UpdateDrainDeliveryOtlphttp2 { + if v := o.GetDelivery(); v != nil { + return v.UpdateDrainDeliveryOtlphttp2 + } + return nil +} + +func (o *UpdateDrainResponseBody2) GetDeliveryClickhouse() *UpdateDrainDeliveryClickhouse2 { + if v := o.GetDelivery(); v != nil { + return v.UpdateDrainDeliveryClickhouse2 + } + return nil +} + +func (o *UpdateDrainResponseBody2) GetDeliveryInternal() *UpdateDrainDeliveryVercelOtelTracesDb2 { + if v := o.GetDelivery(); v != nil { + return v.UpdateDrainDeliveryVercelOtelTracesDb2 + } + return nil +} + func (o *UpdateDrainResponseBody2) GetSampling() []UpdateDrainSamplingResponse2 { if o == nil { return nil @@ -3167,6 +3323,14 @@ func (o *UpdateDrainResponseBody2) GetSource() UpdateDrainResponseBodySourceUnio return o.Source } +func (o *UpdateDrainResponseBody2) GetSourceSelfServed() *UpdateDrainSourceSelfServed2 { + return o.GetSource().UpdateDrainSourceSelfServed2 +} + +func (o *UpdateDrainResponseBody2) GetSourceIntegration() *UpdateDrainSourceIntegration2 { + return o.GetSource().UpdateDrainSourceIntegration2 +} + func (o *UpdateDrainResponseBody2) GetFilter() *string { if o == nil { return nil @@ -3181,6 +3345,20 @@ func (o *UpdateDrainResponseBody2) GetFilterV2() *UpdateDrainFilterV2Union2 { return o.FilterV2 } +func (o *UpdateDrainResponseBody2) GetFilterV2V1() *UpdateDrainFilterV2V12 { + if v := o.GetFilterV2(); v != nil { + return v.UpdateDrainFilterV2V12 + } + return nil +} + +func (o *UpdateDrainResponseBody2) GetFilterV2V2() *UpdateDrainFilterV2V22 { + if v := o.GetFilterV2(); v != nil { + return v.UpdateDrainFilterV2V22 + } + return nil +} + func (o *UpdateDrainResponseBody2) GetIntegrationIcon() *string { if o == nil { return nil @@ -3209,6 +3387,20 @@ func (o *UpdateDrainResponseBody2) GetProjectAccess() *UpdateDrainProjectAccessU return o.ProjectAccess } +func (o *UpdateDrainResponseBody2) GetProjectAccessAll() *UpdateDrainProjectAccessAll { + if v := o.GetProjectAccess(); v != nil { + return v.UpdateDrainProjectAccessAll + } + return nil +} + +func (o *UpdateDrainResponseBody2) GetProjectAccessSome() *UpdateDrainProjectAccessSome { + if v := o.GetProjectAccess(); v != nil { + return v.UpdateDrainProjectAccessSome + } + return nil +} + type UpdateDrainSchemasLog1 struct { } @@ -3929,10 +4121,10 @@ func (o *UpdateDrainDeliveryHTTP1) GetSecret() *UpdateDrainSecretUnion1 { type UpdateDrainDeliveryResponseUnion1Type string const ( - UpdateDrainDeliveryResponseUnion1TypeUpdateDrainDeliveryHTTP1 UpdateDrainDeliveryResponseUnion1Type = "updateDrain_delivery_HTTP_1" - UpdateDrainDeliveryResponseUnion1TypeUpdateDrainDeliveryOtlphttp1 UpdateDrainDeliveryResponseUnion1Type = "updateDrain_delivery_Otlphttp_1" - UpdateDrainDeliveryResponseUnion1TypeUpdateDrainDeliveryClickhouse1 UpdateDrainDeliveryResponseUnion1Type = "updateDrain_delivery_Clickhouse_1" - UpdateDrainDeliveryResponseUnion1TypeUpdateDrainDeliveryVercelOtelTracesDb1 UpdateDrainDeliveryResponseUnion1Type = "updateDrain_delivery_VercelOtelTracesDb_1" + UpdateDrainDeliveryResponseUnion1TypeHTTP UpdateDrainDeliveryResponseUnion1Type = "http" + UpdateDrainDeliveryResponseUnion1TypeOtlphttp UpdateDrainDeliveryResponseUnion1Type = "otlphttp" + UpdateDrainDeliveryResponseUnion1TypeClickhouse UpdateDrainDeliveryResponseUnion1Type = "clickhouse" + UpdateDrainDeliveryResponseUnion1TypeInternal UpdateDrainDeliveryResponseUnion1Type = "internal" ) type UpdateDrainDeliveryResponseUnion1 struct { @@ -3944,69 +4136,101 @@ type UpdateDrainDeliveryResponseUnion1 struct { Type UpdateDrainDeliveryResponseUnion1Type } -func CreateUpdateDrainDeliveryResponseUnion1UpdateDrainDeliveryHTTP1(updateDrainDeliveryHTTP1 UpdateDrainDeliveryHTTP1) UpdateDrainDeliveryResponseUnion1 { - typ := UpdateDrainDeliveryResponseUnion1TypeUpdateDrainDeliveryHTTP1 +func CreateUpdateDrainDeliveryResponseUnion1HTTP(http UpdateDrainDeliveryHTTP1) UpdateDrainDeliveryResponseUnion1 { + typ := UpdateDrainDeliveryResponseUnion1TypeHTTP + + typStr := UpdateDrainTypeHTTP1(typ) + http.Type = typStr return UpdateDrainDeliveryResponseUnion1{ - UpdateDrainDeliveryHTTP1: &updateDrainDeliveryHTTP1, + UpdateDrainDeliveryHTTP1: &http, Type: typ, } } -func CreateUpdateDrainDeliveryResponseUnion1UpdateDrainDeliveryOtlphttp1(updateDrainDeliveryOtlphttp1 UpdateDrainDeliveryOtlphttp1) UpdateDrainDeliveryResponseUnion1 { - typ := UpdateDrainDeliveryResponseUnion1TypeUpdateDrainDeliveryOtlphttp1 +func CreateUpdateDrainDeliveryResponseUnion1Otlphttp(otlphttp UpdateDrainDeliveryOtlphttp1) UpdateDrainDeliveryResponseUnion1 { + typ := UpdateDrainDeliveryResponseUnion1TypeOtlphttp + + typStr := UpdateDrainTypeOtlphttp1(typ) + otlphttp.Type = typStr return UpdateDrainDeliveryResponseUnion1{ - UpdateDrainDeliveryOtlphttp1: &updateDrainDeliveryOtlphttp1, + UpdateDrainDeliveryOtlphttp1: &otlphttp, Type: typ, } } -func CreateUpdateDrainDeliveryResponseUnion1UpdateDrainDeliveryClickhouse1(updateDrainDeliveryClickhouse1 UpdateDrainDeliveryClickhouse1) UpdateDrainDeliveryResponseUnion1 { - typ := UpdateDrainDeliveryResponseUnion1TypeUpdateDrainDeliveryClickhouse1 +func CreateUpdateDrainDeliveryResponseUnion1Clickhouse(clickhouse UpdateDrainDeliveryClickhouse1) UpdateDrainDeliveryResponseUnion1 { + typ := UpdateDrainDeliveryResponseUnion1TypeClickhouse + + typStr := UpdateDrainTypeClickhouse1(typ) + clickhouse.Type = typStr return UpdateDrainDeliveryResponseUnion1{ - UpdateDrainDeliveryClickhouse1: &updateDrainDeliveryClickhouse1, + UpdateDrainDeliveryClickhouse1: &clickhouse, Type: typ, } } -func CreateUpdateDrainDeliveryResponseUnion1UpdateDrainDeliveryVercelOtelTracesDb1(updateDrainDeliveryVercelOtelTracesDb1 UpdateDrainDeliveryVercelOtelTracesDb1) UpdateDrainDeliveryResponseUnion1 { - typ := UpdateDrainDeliveryResponseUnion1TypeUpdateDrainDeliveryVercelOtelTracesDb1 +func CreateUpdateDrainDeliveryResponseUnion1Internal(internal UpdateDrainDeliveryVercelOtelTracesDb1) UpdateDrainDeliveryResponseUnion1 { + typ := UpdateDrainDeliveryResponseUnion1TypeInternal + + typStr := UpdateDrainTypeInternal1(typ) + internal.Type = typStr return UpdateDrainDeliveryResponseUnion1{ - UpdateDrainDeliveryVercelOtelTracesDb1: &updateDrainDeliveryVercelOtelTracesDb1, + UpdateDrainDeliveryVercelOtelTracesDb1: &internal, Type: typ, } } func (u *UpdateDrainDeliveryResponseUnion1) UnmarshalJSON(data []byte) error { - var updateDrainDeliveryHTTP1 UpdateDrainDeliveryHTTP1 = UpdateDrainDeliveryHTTP1{} - if err := utils.UnmarshalJSON(data, &updateDrainDeliveryHTTP1, "", true, nil); err == nil { - u.UpdateDrainDeliveryHTTP1 = &updateDrainDeliveryHTTP1 - u.Type = UpdateDrainDeliveryResponseUnion1TypeUpdateDrainDeliveryHTTP1 - return nil + type discriminator struct { + Type string `json:"type"` } - var updateDrainDeliveryOtlphttp1 UpdateDrainDeliveryOtlphttp1 = UpdateDrainDeliveryOtlphttp1{} - if err := utils.UnmarshalJSON(data, &updateDrainDeliveryOtlphttp1, "", true, nil); err == nil { - u.UpdateDrainDeliveryOtlphttp1 = &updateDrainDeliveryOtlphttp1 - u.Type = UpdateDrainDeliveryResponseUnion1TypeUpdateDrainDeliveryOtlphttp1 - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var updateDrainDeliveryClickhouse1 UpdateDrainDeliveryClickhouse1 = UpdateDrainDeliveryClickhouse1{} - if err := utils.UnmarshalJSON(data, &updateDrainDeliveryClickhouse1, "", true, nil); err == nil { - u.UpdateDrainDeliveryClickhouse1 = &updateDrainDeliveryClickhouse1 - u.Type = UpdateDrainDeliveryResponseUnion1TypeUpdateDrainDeliveryClickhouse1 + switch dis.Type { + case "http": + updateDrainDeliveryHTTP1 := new(UpdateDrainDeliveryHTTP1) + if err := utils.UnmarshalJSON(data, &updateDrainDeliveryHTTP1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == http) type UpdateDrainDeliveryHTTP1 within UpdateDrainDeliveryResponseUnion1: %w", string(data), err) + } + + u.UpdateDrainDeliveryHTTP1 = updateDrainDeliveryHTTP1 + u.Type = UpdateDrainDeliveryResponseUnion1TypeHTTP return nil - } + case "otlphttp": + updateDrainDeliveryOtlphttp1 := new(UpdateDrainDeliveryOtlphttp1) + if err := utils.UnmarshalJSON(data, &updateDrainDeliveryOtlphttp1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == otlphttp) type UpdateDrainDeliveryOtlphttp1 within UpdateDrainDeliveryResponseUnion1: %w", string(data), err) + } + + u.UpdateDrainDeliveryOtlphttp1 = updateDrainDeliveryOtlphttp1 + u.Type = UpdateDrainDeliveryResponseUnion1TypeOtlphttp + return nil + case "clickhouse": + updateDrainDeliveryClickhouse1 := new(UpdateDrainDeliveryClickhouse1) + if err := utils.UnmarshalJSON(data, &updateDrainDeliveryClickhouse1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == clickhouse) type UpdateDrainDeliveryClickhouse1 within UpdateDrainDeliveryResponseUnion1: %w", string(data), err) + } - var updateDrainDeliveryVercelOtelTracesDb1 UpdateDrainDeliveryVercelOtelTracesDb1 = UpdateDrainDeliveryVercelOtelTracesDb1{} - if err := utils.UnmarshalJSON(data, &updateDrainDeliveryVercelOtelTracesDb1, "", true, nil); err == nil { - u.UpdateDrainDeliveryVercelOtelTracesDb1 = &updateDrainDeliveryVercelOtelTracesDb1 - u.Type = UpdateDrainDeliveryResponseUnion1TypeUpdateDrainDeliveryVercelOtelTracesDb1 + u.UpdateDrainDeliveryClickhouse1 = updateDrainDeliveryClickhouse1 + u.Type = UpdateDrainDeliveryResponseUnion1TypeClickhouse + return nil + case "internal": + updateDrainDeliveryVercelOtelTracesDb1 := new(UpdateDrainDeliveryVercelOtelTracesDb1) + if err := utils.UnmarshalJSON(data, &updateDrainDeliveryVercelOtelTracesDb1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == internal) type UpdateDrainDeliveryVercelOtelTracesDb1 within UpdateDrainDeliveryResponseUnion1: %w", string(data), err) + } + + u.UpdateDrainDeliveryVercelOtelTracesDb1 = updateDrainDeliveryVercelOtelTracesDb1 + u.Type = UpdateDrainDeliveryResponseUnion1TypeInternal return nil } @@ -4314,8 +4538,8 @@ func (o *UpdateDrainSourceSelfServed1) GetKind() UpdateDrainKindSelfServed1 { type UpdateDrainResponseBodySourceUnion1Type string const ( - UpdateDrainResponseBodySourceUnion1TypeUpdateDrainSourceSelfServed1 UpdateDrainResponseBodySourceUnion1Type = "updateDrain_source_SelfServed_1" - UpdateDrainResponseBodySourceUnion1TypeUpdateDrainSourceIntegration1 UpdateDrainResponseBodySourceUnion1Type = "updateDrain_source_Integration_1" + UpdateDrainResponseBodySourceUnion1TypeSelfServed UpdateDrainResponseBodySourceUnion1Type = "self-served" + UpdateDrainResponseBodySourceUnion1TypeIntegration UpdateDrainResponseBodySourceUnion1Type = "integration" ) type UpdateDrainResponseBodySourceUnion1 struct { @@ -4325,37 +4549,59 @@ type UpdateDrainResponseBodySourceUnion1 struct { Type UpdateDrainResponseBodySourceUnion1Type } -func CreateUpdateDrainResponseBodySourceUnion1UpdateDrainSourceSelfServed1(updateDrainSourceSelfServed1 UpdateDrainSourceSelfServed1) UpdateDrainResponseBodySourceUnion1 { - typ := UpdateDrainResponseBodySourceUnion1TypeUpdateDrainSourceSelfServed1 +func CreateUpdateDrainResponseBodySourceUnion1SelfServed(selfServed UpdateDrainSourceSelfServed1) UpdateDrainResponseBodySourceUnion1 { + typ := UpdateDrainResponseBodySourceUnion1TypeSelfServed + + typStr := UpdateDrainKindSelfServed1(typ) + selfServed.Kind = typStr return UpdateDrainResponseBodySourceUnion1{ - UpdateDrainSourceSelfServed1: &updateDrainSourceSelfServed1, + UpdateDrainSourceSelfServed1: &selfServed, Type: typ, } } -func CreateUpdateDrainResponseBodySourceUnion1UpdateDrainSourceIntegration1(updateDrainSourceIntegration1 UpdateDrainSourceIntegration1) UpdateDrainResponseBodySourceUnion1 { - typ := UpdateDrainResponseBodySourceUnion1TypeUpdateDrainSourceIntegration1 +func CreateUpdateDrainResponseBodySourceUnion1Integration(integration UpdateDrainSourceIntegration1) UpdateDrainResponseBodySourceUnion1 { + typ := UpdateDrainResponseBodySourceUnion1TypeIntegration + + typStr := UpdateDrainKindIntegration1(typ) + integration.Kind = typStr return UpdateDrainResponseBodySourceUnion1{ - UpdateDrainSourceIntegration1: &updateDrainSourceIntegration1, + UpdateDrainSourceIntegration1: &integration, Type: typ, } } func (u *UpdateDrainResponseBodySourceUnion1) UnmarshalJSON(data []byte) error { - var updateDrainSourceIntegration1 UpdateDrainSourceIntegration1 = UpdateDrainSourceIntegration1{} - if err := utils.UnmarshalJSON(data, &updateDrainSourceIntegration1, "", true, nil); err == nil { - u.UpdateDrainSourceIntegration1 = &updateDrainSourceIntegration1 - u.Type = UpdateDrainResponseBodySourceUnion1TypeUpdateDrainSourceIntegration1 - return nil + type discriminator struct { + Kind string `json:"kind"` } - var updateDrainSourceSelfServed1 UpdateDrainSourceSelfServed1 = UpdateDrainSourceSelfServed1{} - if err := utils.UnmarshalJSON(data, &updateDrainSourceSelfServed1, "", true, nil); err == nil { - u.UpdateDrainSourceSelfServed1 = &updateDrainSourceSelfServed1 - u.Type = UpdateDrainResponseBodySourceUnion1TypeUpdateDrainSourceSelfServed1 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Kind { + case "self-served": + updateDrainSourceSelfServed1 := new(UpdateDrainSourceSelfServed1) + if err := utils.UnmarshalJSON(data, &updateDrainSourceSelfServed1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == self-served) type UpdateDrainSourceSelfServed1 within UpdateDrainResponseBodySourceUnion1: %w", string(data), err) + } + + u.UpdateDrainSourceSelfServed1 = updateDrainSourceSelfServed1 + u.Type = UpdateDrainResponseBodySourceUnion1TypeSelfServed + return nil + case "integration": + updateDrainSourceIntegration1 := new(UpdateDrainSourceIntegration1) + if err := utils.UnmarshalJSON(data, &updateDrainSourceIntegration1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Kind == integration) type UpdateDrainSourceIntegration1 within UpdateDrainResponseBodySourceUnion1: %w", string(data), err) + } + + u.UpdateDrainSourceIntegration1 = updateDrainSourceIntegration1 + u.Type = UpdateDrainResponseBodySourceUnion1TypeIntegration return nil } @@ -4663,8 +4909,8 @@ func (o *UpdateDrainFilterBasic1) GetDeployment() *UpdateDrainFilterV2Deployment type UpdateDrainFilterResponseUnion1Type string const ( - UpdateDrainFilterResponseUnion1TypeUpdateDrainFilterBasic1 UpdateDrainFilterResponseUnion1Type = "updateDrain_filter_Basic_1" - UpdateDrainFilterResponseUnion1TypeUpdateDrainFilterOdata1 UpdateDrainFilterResponseUnion1Type = "updateDrain_filter_Odata_1" + UpdateDrainFilterResponseUnion1TypeBasic UpdateDrainFilterResponseUnion1Type = "basic" + UpdateDrainFilterResponseUnion1TypeOdata UpdateDrainFilterResponseUnion1Type = "odata" ) type UpdateDrainFilterResponseUnion1 struct { @@ -4674,37 +4920,59 @@ type UpdateDrainFilterResponseUnion1 struct { Type UpdateDrainFilterResponseUnion1Type } -func CreateUpdateDrainFilterResponseUnion1UpdateDrainFilterBasic1(updateDrainFilterBasic1 UpdateDrainFilterBasic1) UpdateDrainFilterResponseUnion1 { - typ := UpdateDrainFilterResponseUnion1TypeUpdateDrainFilterBasic1 +func CreateUpdateDrainFilterResponseUnion1Basic(basic UpdateDrainFilterBasic1) UpdateDrainFilterResponseUnion1 { + typ := UpdateDrainFilterResponseUnion1TypeBasic + + typStr := UpdateDrainTypeBasic1(typ) + basic.Type = typStr return UpdateDrainFilterResponseUnion1{ - UpdateDrainFilterBasic1: &updateDrainFilterBasic1, + UpdateDrainFilterBasic1: &basic, Type: typ, } } -func CreateUpdateDrainFilterResponseUnion1UpdateDrainFilterOdata1(updateDrainFilterOdata1 UpdateDrainFilterOdata1) UpdateDrainFilterResponseUnion1 { - typ := UpdateDrainFilterResponseUnion1TypeUpdateDrainFilterOdata1 +func CreateUpdateDrainFilterResponseUnion1Odata(odata UpdateDrainFilterOdata1) UpdateDrainFilterResponseUnion1 { + typ := UpdateDrainFilterResponseUnion1TypeOdata + + typStr := UpdateDrainTypeOdata1(typ) + odata.Type = typStr return UpdateDrainFilterResponseUnion1{ - UpdateDrainFilterOdata1: &updateDrainFilterOdata1, + UpdateDrainFilterOdata1: &odata, Type: typ, } } func (u *UpdateDrainFilterResponseUnion1) UnmarshalJSON(data []byte) error { - var updateDrainFilterOdata1 UpdateDrainFilterOdata1 = UpdateDrainFilterOdata1{} - if err := utils.UnmarshalJSON(data, &updateDrainFilterOdata1, "", true, nil); err == nil { - u.UpdateDrainFilterOdata1 = &updateDrainFilterOdata1 - u.Type = UpdateDrainFilterResponseUnion1TypeUpdateDrainFilterOdata1 - return nil + type discriminator struct { + Type string `json:"type"` } - var updateDrainFilterBasic1 UpdateDrainFilterBasic1 = UpdateDrainFilterBasic1{} - if err := utils.UnmarshalJSON(data, &updateDrainFilterBasic1, "", true, nil); err == nil { - u.UpdateDrainFilterBasic1 = &updateDrainFilterBasic1 - u.Type = UpdateDrainFilterResponseUnion1TypeUpdateDrainFilterBasic1 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Type { + case "basic": + updateDrainFilterBasic1 := new(UpdateDrainFilterBasic1) + if err := utils.UnmarshalJSON(data, &updateDrainFilterBasic1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == basic) type UpdateDrainFilterBasic1 within UpdateDrainFilterResponseUnion1: %w", string(data), err) + } + + u.UpdateDrainFilterBasic1 = updateDrainFilterBasic1 + u.Type = UpdateDrainFilterResponseUnion1TypeBasic + return nil + case "odata": + updateDrainFilterOdata1 := new(UpdateDrainFilterOdata1) + if err := utils.UnmarshalJSON(data, &updateDrainFilterOdata1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == odata) type UpdateDrainFilterOdata1 within UpdateDrainFilterResponseUnion1: %w", string(data), err) + } + + u.UpdateDrainFilterOdata1 = updateDrainFilterOdata1 + u.Type = UpdateDrainFilterResponseUnion1TypeOdata return nil } @@ -4753,6 +5021,14 @@ func (o *UpdateDrainFilterV2V21) GetFilter() UpdateDrainFilterResponseUnion1 { return o.Filter } +func (o *UpdateDrainFilterV2V21) GetFilterBasic() *UpdateDrainFilterBasic1 { + return o.GetFilter().UpdateDrainFilterBasic1 +} + +func (o *UpdateDrainFilterV2V21) GetFilterOdata() *UpdateDrainFilterOdata1 { + return o.GetFilter().UpdateDrainFilterOdata1 +} + type UpdateDrainVersionV11 string const ( @@ -4801,8 +5077,8 @@ func (o *UpdateDrainFilterV2V11) GetVersion() UpdateDrainVersionV11 { type UpdateDrainFilterV2Union1Type string const ( - UpdateDrainFilterV2Union1TypeUpdateDrainFilterV2V11 UpdateDrainFilterV2Union1Type = "updateDrain_filterV2_V1_1" - UpdateDrainFilterV2Union1TypeUpdateDrainFilterV2V21 UpdateDrainFilterV2Union1Type = "updateDrain_filterV2_V2_1" + UpdateDrainFilterV2Union1TypeV1 UpdateDrainFilterV2Union1Type = "v1" + UpdateDrainFilterV2Union1TypeV2 UpdateDrainFilterV2Union1Type = "v2" ) type UpdateDrainFilterV2Union1 struct { @@ -4812,37 +5088,59 @@ type UpdateDrainFilterV2Union1 struct { Type UpdateDrainFilterV2Union1Type } -func CreateUpdateDrainFilterV2Union1UpdateDrainFilterV2V11(updateDrainFilterV2V11 UpdateDrainFilterV2V11) UpdateDrainFilterV2Union1 { - typ := UpdateDrainFilterV2Union1TypeUpdateDrainFilterV2V11 +func CreateUpdateDrainFilterV2Union1V1(v1 UpdateDrainFilterV2V11) UpdateDrainFilterV2Union1 { + typ := UpdateDrainFilterV2Union1TypeV1 + + typStr := UpdateDrainVersionV11(typ) + v1.Version = typStr return UpdateDrainFilterV2Union1{ - UpdateDrainFilterV2V11: &updateDrainFilterV2V11, + UpdateDrainFilterV2V11: &v1, Type: typ, } } -func CreateUpdateDrainFilterV2Union1UpdateDrainFilterV2V21(updateDrainFilterV2V21 UpdateDrainFilterV2V21) UpdateDrainFilterV2Union1 { - typ := UpdateDrainFilterV2Union1TypeUpdateDrainFilterV2V21 +func CreateUpdateDrainFilterV2Union1V2(v2 UpdateDrainFilterV2V21) UpdateDrainFilterV2Union1 { + typ := UpdateDrainFilterV2Union1TypeV2 + + typStr := UpdateDrainVersionV21(typ) + v2.Version = typStr return UpdateDrainFilterV2Union1{ - UpdateDrainFilterV2V21: &updateDrainFilterV2V21, + UpdateDrainFilterV2V21: &v2, Type: typ, } } func (u *UpdateDrainFilterV2Union1) UnmarshalJSON(data []byte) error { - var updateDrainFilterV2V21 UpdateDrainFilterV2V21 = UpdateDrainFilterV2V21{} - if err := utils.UnmarshalJSON(data, &updateDrainFilterV2V21, "", true, nil); err == nil { - u.UpdateDrainFilterV2V21 = &updateDrainFilterV2V21 - u.Type = UpdateDrainFilterV2Union1TypeUpdateDrainFilterV2V21 - return nil + type discriminator struct { + Version string `json:"version"` } - var updateDrainFilterV2V11 UpdateDrainFilterV2V11 = UpdateDrainFilterV2V11{} - if err := utils.UnmarshalJSON(data, &updateDrainFilterV2V11, "", true, nil); err == nil { - u.UpdateDrainFilterV2V11 = &updateDrainFilterV2V11 - u.Type = UpdateDrainFilterV2Union1TypeUpdateDrainFilterV2V11 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Version { + case "v1": + updateDrainFilterV2V11 := new(UpdateDrainFilterV2V11) + if err := utils.UnmarshalJSON(data, &updateDrainFilterV2V11, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Version == v1) type UpdateDrainFilterV2V11 within UpdateDrainFilterV2Union1: %w", string(data), err) + } + + u.UpdateDrainFilterV2V11 = updateDrainFilterV2V11 + u.Type = UpdateDrainFilterV2Union1TypeV1 + return nil + case "v2": + updateDrainFilterV2V21 := new(UpdateDrainFilterV2V21) + if err := utils.UnmarshalJSON(data, &updateDrainFilterV2V21, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Version == v2) type UpdateDrainFilterV2V21 within UpdateDrainFilterV2Union1: %w", string(data), err) + } + + u.UpdateDrainFilterV2V21 = updateDrainFilterV2V21 + u.Type = UpdateDrainFilterV2Union1TypeV2 return nil } @@ -4949,6 +5247,34 @@ func (o *UpdateDrainResponseBody1) GetDelivery() *UpdateDrainDeliveryResponseUni return o.Delivery } +func (o *UpdateDrainResponseBody1) GetDeliveryHTTP() *UpdateDrainDeliveryHTTP1 { + if v := o.GetDelivery(); v != nil { + return v.UpdateDrainDeliveryHTTP1 + } + return nil +} + +func (o *UpdateDrainResponseBody1) GetDeliveryOtlphttp() *UpdateDrainDeliveryOtlphttp1 { + if v := o.GetDelivery(); v != nil { + return v.UpdateDrainDeliveryOtlphttp1 + } + return nil +} + +func (o *UpdateDrainResponseBody1) GetDeliveryClickhouse() *UpdateDrainDeliveryClickhouse1 { + if v := o.GetDelivery(); v != nil { + return v.UpdateDrainDeliveryClickhouse1 + } + return nil +} + +func (o *UpdateDrainResponseBody1) GetDeliveryInternal() *UpdateDrainDeliveryVercelOtelTracesDb1 { + if v := o.GetDelivery(); v != nil { + return v.UpdateDrainDeliveryVercelOtelTracesDb1 + } + return nil +} + func (o *UpdateDrainResponseBody1) GetSampling() []UpdateDrainSamplingResponse1 { if o == nil { return nil @@ -5005,6 +5331,14 @@ func (o *UpdateDrainResponseBody1) GetSource() UpdateDrainResponseBodySourceUnio return o.Source } +func (o *UpdateDrainResponseBody1) GetSourceSelfServed() *UpdateDrainSourceSelfServed1 { + return o.GetSource().UpdateDrainSourceSelfServed1 +} + +func (o *UpdateDrainResponseBody1) GetSourceIntegration() *UpdateDrainSourceIntegration1 { + return o.GetSource().UpdateDrainSourceIntegration1 +} + func (o *UpdateDrainResponseBody1) GetFilter() *string { if o == nil { return nil @@ -5019,6 +5353,20 @@ func (o *UpdateDrainResponseBody1) GetFilterV2() *UpdateDrainFilterV2Union1 { return o.FilterV2 } +func (o *UpdateDrainResponseBody1) GetFilterV2V1() *UpdateDrainFilterV2V11 { + if v := o.GetFilterV2(); v != nil { + return v.UpdateDrainFilterV2V11 + } + return nil +} + +func (o *UpdateDrainResponseBody1) GetFilterV2V2() *UpdateDrainFilterV2V21 { + if v := o.GetFilterV2(); v != nil { + return v.UpdateDrainFilterV2V21 + } + return nil +} + type UpdateDrainResponseBodyType string const ( diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/updateedgeconfig.go b/src/__tests__/mockserver/internal/sdk/models/operations/updateedgeconfig.go index 466bdf39..bf1827b7 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/updateedgeconfig.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/updateedgeconfig.go @@ -198,8 +198,8 @@ func (o *UpdateEdgeConfigPurposeFlags) GetProjectID() string { type UpdateEdgeConfigPurposeUnionType string const ( - UpdateEdgeConfigPurposeUnionTypeUpdateEdgeConfigPurposeFlags UpdateEdgeConfigPurposeUnionType = "updateEdgeConfig_purpose_Flags" - UpdateEdgeConfigPurposeUnionTypeUpdateEdgeConfigPurposeExperimentation UpdateEdgeConfigPurposeUnionType = "updateEdgeConfig_purpose_Experimentation" + UpdateEdgeConfigPurposeUnionTypeFlags UpdateEdgeConfigPurposeUnionType = "flags" + UpdateEdgeConfigPurposeUnionTypeExperimentation UpdateEdgeConfigPurposeUnionType = "experimentation" ) type UpdateEdgeConfigPurposeUnion struct { @@ -209,37 +209,59 @@ type UpdateEdgeConfigPurposeUnion struct { Type UpdateEdgeConfigPurposeUnionType } -func CreateUpdateEdgeConfigPurposeUnionUpdateEdgeConfigPurposeFlags(updateEdgeConfigPurposeFlags UpdateEdgeConfigPurposeFlags) UpdateEdgeConfigPurposeUnion { - typ := UpdateEdgeConfigPurposeUnionTypeUpdateEdgeConfigPurposeFlags +func CreateUpdateEdgeConfigPurposeUnionFlags(flags UpdateEdgeConfigPurposeFlags) UpdateEdgeConfigPurposeUnion { + typ := UpdateEdgeConfigPurposeUnionTypeFlags + + typStr := UpdateEdgeConfigTypeFlags(typ) + flags.Type = typStr return UpdateEdgeConfigPurposeUnion{ - UpdateEdgeConfigPurposeFlags: &updateEdgeConfigPurposeFlags, + UpdateEdgeConfigPurposeFlags: &flags, Type: typ, } } -func CreateUpdateEdgeConfigPurposeUnionUpdateEdgeConfigPurposeExperimentation(updateEdgeConfigPurposeExperimentation UpdateEdgeConfigPurposeExperimentation) UpdateEdgeConfigPurposeUnion { - typ := UpdateEdgeConfigPurposeUnionTypeUpdateEdgeConfigPurposeExperimentation +func CreateUpdateEdgeConfigPurposeUnionExperimentation(experimentation UpdateEdgeConfigPurposeExperimentation) UpdateEdgeConfigPurposeUnion { + typ := UpdateEdgeConfigPurposeUnionTypeExperimentation + + typStr := UpdateEdgeConfigTypeExperimentation(typ) + experimentation.Type = typStr return UpdateEdgeConfigPurposeUnion{ - UpdateEdgeConfigPurposeExperimentation: &updateEdgeConfigPurposeExperimentation, + UpdateEdgeConfigPurposeExperimentation: &experimentation, Type: typ, } } func (u *UpdateEdgeConfigPurposeUnion) UnmarshalJSON(data []byte) error { - var updateEdgeConfigPurposeFlags UpdateEdgeConfigPurposeFlags = UpdateEdgeConfigPurposeFlags{} - if err := utils.UnmarshalJSON(data, &updateEdgeConfigPurposeFlags, "", true, nil); err == nil { - u.UpdateEdgeConfigPurposeFlags = &updateEdgeConfigPurposeFlags - u.Type = UpdateEdgeConfigPurposeUnionTypeUpdateEdgeConfigPurposeFlags - return nil + type discriminator struct { + Type string `json:"type"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var updateEdgeConfigPurposeExperimentation UpdateEdgeConfigPurposeExperimentation = UpdateEdgeConfigPurposeExperimentation{} - if err := utils.UnmarshalJSON(data, &updateEdgeConfigPurposeExperimentation, "", true, nil); err == nil { - u.UpdateEdgeConfigPurposeExperimentation = &updateEdgeConfigPurposeExperimentation - u.Type = UpdateEdgeConfigPurposeUnionTypeUpdateEdgeConfigPurposeExperimentation + switch dis.Type { + case "flags": + updateEdgeConfigPurposeFlags := new(UpdateEdgeConfigPurposeFlags) + if err := utils.UnmarshalJSON(data, &updateEdgeConfigPurposeFlags, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == flags) type UpdateEdgeConfigPurposeFlags within UpdateEdgeConfigPurposeUnion: %w", string(data), err) + } + + u.UpdateEdgeConfigPurposeFlags = updateEdgeConfigPurposeFlags + u.Type = UpdateEdgeConfigPurposeUnionTypeFlags + return nil + case "experimentation": + updateEdgeConfigPurposeExperimentation := new(UpdateEdgeConfigPurposeExperimentation) + if err := utils.UnmarshalJSON(data, &updateEdgeConfigPurposeExperimentation, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == experimentation) type UpdateEdgeConfigPurposeExperimentation within UpdateEdgeConfigPurposeUnion: %w", string(data), err) + } + + u.UpdateEdgeConfigPurposeExperimentation = updateEdgeConfigPurposeExperimentation + u.Type = UpdateEdgeConfigPurposeUnionTypeExperimentation return nil } @@ -348,6 +370,20 @@ func (o *UpdateEdgeConfigResponseBody) GetPurpose() *UpdateEdgeConfigPurposeUnio return o.Purpose } +func (o *UpdateEdgeConfigResponseBody) GetPurposeFlags() *UpdateEdgeConfigPurposeFlags { + if v := o.GetPurpose(); v != nil { + return v.UpdateEdgeConfigPurposeFlags + } + return nil +} + +func (o *UpdateEdgeConfigResponseBody) GetPurposeExperimentation() *UpdateEdgeConfigPurposeExperimentation { + if v := o.GetPurpose(); v != nil { + return v.UpdateEdgeConfigPurposeExperimentation + } + return nil +} + func (o *UpdateEdgeConfigResponseBody) GetSyncedToDynamoAt() *float64 { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/updateproject.go b/src/__tests__/mockserver/internal/sdk/models/operations/updateproject.go index 22ea3bc7..af56d366 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/updateproject.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/updateproject.go @@ -2811,21 +2811,21 @@ func (o *UpdateProjectContentHintRedisURL) GetStoreID() string { type UpdateProjectContentHintUnionType string const ( - UpdateProjectContentHintUnionTypeUpdateProjectContentHintRedisURL UpdateProjectContentHintUnionType = "updateProject_contentHint_RedisURL" - UpdateProjectContentHintUnionTypeUpdateProjectContentHintRedisRestAPIURL UpdateProjectContentHintUnionType = "updateProject_contentHint_RedisRestAPIURL" - UpdateProjectContentHintUnionTypeUpdateProjectContentHintRedisRestAPIToken UpdateProjectContentHintUnionType = "updateProject_contentHint_RedisRestAPIToken" - UpdateProjectContentHintUnionTypeUpdateProjectContentHintRedisRestAPIReadOnlyToken UpdateProjectContentHintUnionType = "updateProject_contentHint_RedisRestAPIReadOnlyToken" - UpdateProjectContentHintUnionTypeUpdateProjectContentHintBlobReadWriteToken UpdateProjectContentHintUnionType = "updateProject_contentHint_BlobReadWriteToken" - UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresURL UpdateProjectContentHintUnionType = "updateProject_contentHint_PostgresURL" - UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresURLNonPooling UpdateProjectContentHintUnionType = "updateProject_contentHint_PostgresURLNonPooling" - UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresPrismaURL UpdateProjectContentHintUnionType = "updateProject_contentHint_PostgresPrismaURL" - UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresUser UpdateProjectContentHintUnionType = "updateProject_contentHint_PostgresUser" - UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresHost UpdateProjectContentHintUnionType = "updateProject_contentHint_PostgresHost" - UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresPassword UpdateProjectContentHintUnionType = "updateProject_contentHint_PostgresPassword" - UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresDatabase UpdateProjectContentHintUnionType = "updateProject_contentHint_PostgresDatabase" - UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresURLNoSsl UpdateProjectContentHintUnionType = "updateProject_contentHint_PostgresURLNoSsl" - UpdateProjectContentHintUnionTypeUpdateProjectContentHintIntegrationStoreSecret UpdateProjectContentHintUnionType = "updateProject_contentHint_IntegrationStoreSecret" - UpdateProjectContentHintUnionTypeUpdateProjectContentHintFlagsConnectionString UpdateProjectContentHintUnionType = "updateProject_contentHint_FlagsConnectionString" + UpdateProjectContentHintUnionTypeRedisURL UpdateProjectContentHintUnionType = "redis-url" + UpdateProjectContentHintUnionTypeRedisRestAPIURL UpdateProjectContentHintUnionType = "redis-rest-api-url" + UpdateProjectContentHintUnionTypeRedisRestAPIToken UpdateProjectContentHintUnionType = "redis-rest-api-token" + UpdateProjectContentHintUnionTypeRedisRestAPIReadOnlyToken UpdateProjectContentHintUnionType = "redis-rest-api-read-only-token" + UpdateProjectContentHintUnionTypeBlobReadWriteToken UpdateProjectContentHintUnionType = "blob-read-write-token" + UpdateProjectContentHintUnionTypePostgresURL UpdateProjectContentHintUnionType = "postgres-url" + UpdateProjectContentHintUnionTypePostgresURLNonPooling UpdateProjectContentHintUnionType = "postgres-url-non-pooling" + UpdateProjectContentHintUnionTypePostgresPrismaURL UpdateProjectContentHintUnionType = "postgres-prisma-url" + UpdateProjectContentHintUnionTypePostgresUser UpdateProjectContentHintUnionType = "postgres-user" + UpdateProjectContentHintUnionTypePostgresHost UpdateProjectContentHintUnionType = "postgres-host" + UpdateProjectContentHintUnionTypePostgresPassword UpdateProjectContentHintUnionType = "postgres-password" + UpdateProjectContentHintUnionTypePostgresDatabase UpdateProjectContentHintUnionType = "postgres-database" + UpdateProjectContentHintUnionTypePostgresURLNoSsl UpdateProjectContentHintUnionType = "postgres-url-no-ssl" + UpdateProjectContentHintUnionTypeIntegrationStoreSecret UpdateProjectContentHintUnionType = "integration-store-secret" + UpdateProjectContentHintUnionTypeFlagsConnectionString UpdateProjectContentHintUnionType = "flags-connection-string" ) type UpdateProjectContentHintUnion struct { @@ -2848,245 +2848,332 @@ type UpdateProjectContentHintUnion struct { Type UpdateProjectContentHintUnionType } -func CreateUpdateProjectContentHintUnionUpdateProjectContentHintRedisURL(updateProjectContentHintRedisURL UpdateProjectContentHintRedisURL) UpdateProjectContentHintUnion { - typ := UpdateProjectContentHintUnionTypeUpdateProjectContentHintRedisURL +func CreateUpdateProjectContentHintUnionRedisURL(redisURL UpdateProjectContentHintRedisURL) UpdateProjectContentHintUnion { + typ := UpdateProjectContentHintUnionTypeRedisURL + + typStr := UpdateProjectTypeRedisURL(typ) + redisURL.Type = typStr return UpdateProjectContentHintUnion{ - UpdateProjectContentHintRedisURL: &updateProjectContentHintRedisURL, + UpdateProjectContentHintRedisURL: &redisURL, Type: typ, } } -func CreateUpdateProjectContentHintUnionUpdateProjectContentHintRedisRestAPIURL(updateProjectContentHintRedisRestAPIURL UpdateProjectContentHintRedisRestAPIURL) UpdateProjectContentHintUnion { - typ := UpdateProjectContentHintUnionTypeUpdateProjectContentHintRedisRestAPIURL +func CreateUpdateProjectContentHintUnionRedisRestAPIURL(redisRestAPIURL UpdateProjectContentHintRedisRestAPIURL) UpdateProjectContentHintUnion { + typ := UpdateProjectContentHintUnionTypeRedisRestAPIURL + + typStr := UpdateProjectTypeRedisRestAPIURL(typ) + redisRestAPIURL.Type = typStr return UpdateProjectContentHintUnion{ - UpdateProjectContentHintRedisRestAPIURL: &updateProjectContentHintRedisRestAPIURL, + UpdateProjectContentHintRedisRestAPIURL: &redisRestAPIURL, Type: typ, } } -func CreateUpdateProjectContentHintUnionUpdateProjectContentHintRedisRestAPIToken(updateProjectContentHintRedisRestAPIToken UpdateProjectContentHintRedisRestAPIToken) UpdateProjectContentHintUnion { - typ := UpdateProjectContentHintUnionTypeUpdateProjectContentHintRedisRestAPIToken +func CreateUpdateProjectContentHintUnionRedisRestAPIToken(redisRestAPIToken UpdateProjectContentHintRedisRestAPIToken) UpdateProjectContentHintUnion { + typ := UpdateProjectContentHintUnionTypeRedisRestAPIToken + + typStr := UpdateProjectTypeRedisRestAPIToken(typ) + redisRestAPIToken.Type = typStr return UpdateProjectContentHintUnion{ - UpdateProjectContentHintRedisRestAPIToken: &updateProjectContentHintRedisRestAPIToken, + UpdateProjectContentHintRedisRestAPIToken: &redisRestAPIToken, Type: typ, } } -func CreateUpdateProjectContentHintUnionUpdateProjectContentHintRedisRestAPIReadOnlyToken(updateProjectContentHintRedisRestAPIReadOnlyToken UpdateProjectContentHintRedisRestAPIReadOnlyToken) UpdateProjectContentHintUnion { - typ := UpdateProjectContentHintUnionTypeUpdateProjectContentHintRedisRestAPIReadOnlyToken +func CreateUpdateProjectContentHintUnionRedisRestAPIReadOnlyToken(redisRestAPIReadOnlyToken UpdateProjectContentHintRedisRestAPIReadOnlyToken) UpdateProjectContentHintUnion { + typ := UpdateProjectContentHintUnionTypeRedisRestAPIReadOnlyToken + + typStr := UpdateProjectTypeRedisRestAPIReadOnlyToken(typ) + redisRestAPIReadOnlyToken.Type = typStr return UpdateProjectContentHintUnion{ - UpdateProjectContentHintRedisRestAPIReadOnlyToken: &updateProjectContentHintRedisRestAPIReadOnlyToken, + UpdateProjectContentHintRedisRestAPIReadOnlyToken: &redisRestAPIReadOnlyToken, Type: typ, } } -func CreateUpdateProjectContentHintUnionUpdateProjectContentHintBlobReadWriteToken(updateProjectContentHintBlobReadWriteToken UpdateProjectContentHintBlobReadWriteToken) UpdateProjectContentHintUnion { - typ := UpdateProjectContentHintUnionTypeUpdateProjectContentHintBlobReadWriteToken +func CreateUpdateProjectContentHintUnionBlobReadWriteToken(blobReadWriteToken UpdateProjectContentHintBlobReadWriteToken) UpdateProjectContentHintUnion { + typ := UpdateProjectContentHintUnionTypeBlobReadWriteToken + + typStr := UpdateProjectTypeBlobReadWriteToken(typ) + blobReadWriteToken.Type = typStr return UpdateProjectContentHintUnion{ - UpdateProjectContentHintBlobReadWriteToken: &updateProjectContentHintBlobReadWriteToken, + UpdateProjectContentHintBlobReadWriteToken: &blobReadWriteToken, Type: typ, } } -func CreateUpdateProjectContentHintUnionUpdateProjectContentHintPostgresURL(updateProjectContentHintPostgresURL UpdateProjectContentHintPostgresURL) UpdateProjectContentHintUnion { - typ := UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresURL +func CreateUpdateProjectContentHintUnionPostgresURL(postgresURL UpdateProjectContentHintPostgresURL) UpdateProjectContentHintUnion { + typ := UpdateProjectContentHintUnionTypePostgresURL + + typStr := UpdateProjectTypePostgresURL(typ) + postgresURL.Type = typStr return UpdateProjectContentHintUnion{ - UpdateProjectContentHintPostgresURL: &updateProjectContentHintPostgresURL, + UpdateProjectContentHintPostgresURL: &postgresURL, Type: typ, } } -func CreateUpdateProjectContentHintUnionUpdateProjectContentHintPostgresURLNonPooling(updateProjectContentHintPostgresURLNonPooling UpdateProjectContentHintPostgresURLNonPooling) UpdateProjectContentHintUnion { - typ := UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresURLNonPooling +func CreateUpdateProjectContentHintUnionPostgresURLNonPooling(postgresURLNonPooling UpdateProjectContentHintPostgresURLNonPooling) UpdateProjectContentHintUnion { + typ := UpdateProjectContentHintUnionTypePostgresURLNonPooling + + typStr := UpdateProjectTypePostgresURLNonPooling(typ) + postgresURLNonPooling.Type = typStr return UpdateProjectContentHintUnion{ - UpdateProjectContentHintPostgresURLNonPooling: &updateProjectContentHintPostgresURLNonPooling, + UpdateProjectContentHintPostgresURLNonPooling: &postgresURLNonPooling, Type: typ, } } -func CreateUpdateProjectContentHintUnionUpdateProjectContentHintPostgresPrismaURL(updateProjectContentHintPostgresPrismaURL UpdateProjectContentHintPostgresPrismaURL) UpdateProjectContentHintUnion { - typ := UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresPrismaURL +func CreateUpdateProjectContentHintUnionPostgresPrismaURL(postgresPrismaURL UpdateProjectContentHintPostgresPrismaURL) UpdateProjectContentHintUnion { + typ := UpdateProjectContentHintUnionTypePostgresPrismaURL + + typStr := UpdateProjectTypePostgresPrismaURL(typ) + postgresPrismaURL.Type = typStr return UpdateProjectContentHintUnion{ - UpdateProjectContentHintPostgresPrismaURL: &updateProjectContentHintPostgresPrismaURL, + UpdateProjectContentHintPostgresPrismaURL: &postgresPrismaURL, Type: typ, } } -func CreateUpdateProjectContentHintUnionUpdateProjectContentHintPostgresUser(updateProjectContentHintPostgresUser UpdateProjectContentHintPostgresUser) UpdateProjectContentHintUnion { - typ := UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresUser +func CreateUpdateProjectContentHintUnionPostgresUser(postgresUser UpdateProjectContentHintPostgresUser) UpdateProjectContentHintUnion { + typ := UpdateProjectContentHintUnionTypePostgresUser + + typStr := UpdateProjectTypePostgresUser(typ) + postgresUser.Type = typStr return UpdateProjectContentHintUnion{ - UpdateProjectContentHintPostgresUser: &updateProjectContentHintPostgresUser, + UpdateProjectContentHintPostgresUser: &postgresUser, Type: typ, } } -func CreateUpdateProjectContentHintUnionUpdateProjectContentHintPostgresHost(updateProjectContentHintPostgresHost UpdateProjectContentHintPostgresHost) UpdateProjectContentHintUnion { - typ := UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresHost +func CreateUpdateProjectContentHintUnionPostgresHost(postgresHost UpdateProjectContentHintPostgresHost) UpdateProjectContentHintUnion { + typ := UpdateProjectContentHintUnionTypePostgresHost + + typStr := UpdateProjectTypePostgresHost(typ) + postgresHost.Type = typStr return UpdateProjectContentHintUnion{ - UpdateProjectContentHintPostgresHost: &updateProjectContentHintPostgresHost, + UpdateProjectContentHintPostgresHost: &postgresHost, Type: typ, } } -func CreateUpdateProjectContentHintUnionUpdateProjectContentHintPostgresPassword(updateProjectContentHintPostgresPassword UpdateProjectContentHintPostgresPassword) UpdateProjectContentHintUnion { - typ := UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresPassword +func CreateUpdateProjectContentHintUnionPostgresPassword(postgresPassword UpdateProjectContentHintPostgresPassword) UpdateProjectContentHintUnion { + typ := UpdateProjectContentHintUnionTypePostgresPassword + + typStr := UpdateProjectTypePostgresPassword(typ) + postgresPassword.Type = typStr return UpdateProjectContentHintUnion{ - UpdateProjectContentHintPostgresPassword: &updateProjectContentHintPostgresPassword, + UpdateProjectContentHintPostgresPassword: &postgresPassword, Type: typ, } } -func CreateUpdateProjectContentHintUnionUpdateProjectContentHintPostgresDatabase(updateProjectContentHintPostgresDatabase UpdateProjectContentHintPostgresDatabase) UpdateProjectContentHintUnion { - typ := UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresDatabase +func CreateUpdateProjectContentHintUnionPostgresDatabase(postgresDatabase UpdateProjectContentHintPostgresDatabase) UpdateProjectContentHintUnion { + typ := UpdateProjectContentHintUnionTypePostgresDatabase + + typStr := UpdateProjectTypePostgresDatabase(typ) + postgresDatabase.Type = typStr return UpdateProjectContentHintUnion{ - UpdateProjectContentHintPostgresDatabase: &updateProjectContentHintPostgresDatabase, + UpdateProjectContentHintPostgresDatabase: &postgresDatabase, Type: typ, } } -func CreateUpdateProjectContentHintUnionUpdateProjectContentHintPostgresURLNoSsl(updateProjectContentHintPostgresURLNoSsl UpdateProjectContentHintPostgresURLNoSsl) UpdateProjectContentHintUnion { - typ := UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresURLNoSsl +func CreateUpdateProjectContentHintUnionPostgresURLNoSsl(postgresURLNoSsl UpdateProjectContentHintPostgresURLNoSsl) UpdateProjectContentHintUnion { + typ := UpdateProjectContentHintUnionTypePostgresURLNoSsl + + typStr := UpdateProjectTypePostgresURLNoSsl(typ) + postgresURLNoSsl.Type = typStr return UpdateProjectContentHintUnion{ - UpdateProjectContentHintPostgresURLNoSsl: &updateProjectContentHintPostgresURLNoSsl, + UpdateProjectContentHintPostgresURLNoSsl: &postgresURLNoSsl, Type: typ, } } -func CreateUpdateProjectContentHintUnionUpdateProjectContentHintIntegrationStoreSecret(updateProjectContentHintIntegrationStoreSecret UpdateProjectContentHintIntegrationStoreSecret) UpdateProjectContentHintUnion { - typ := UpdateProjectContentHintUnionTypeUpdateProjectContentHintIntegrationStoreSecret +func CreateUpdateProjectContentHintUnionIntegrationStoreSecret(integrationStoreSecret UpdateProjectContentHintIntegrationStoreSecret) UpdateProjectContentHintUnion { + typ := UpdateProjectContentHintUnionTypeIntegrationStoreSecret + + typStr := UpdateProjectTypeIntegrationStoreSecret(typ) + integrationStoreSecret.Type = typStr return UpdateProjectContentHintUnion{ - UpdateProjectContentHintIntegrationStoreSecret: &updateProjectContentHintIntegrationStoreSecret, + UpdateProjectContentHintIntegrationStoreSecret: &integrationStoreSecret, Type: typ, } } -func CreateUpdateProjectContentHintUnionUpdateProjectContentHintFlagsConnectionString(updateProjectContentHintFlagsConnectionString UpdateProjectContentHintFlagsConnectionString) UpdateProjectContentHintUnion { - typ := UpdateProjectContentHintUnionTypeUpdateProjectContentHintFlagsConnectionString +func CreateUpdateProjectContentHintUnionFlagsConnectionString(flagsConnectionString UpdateProjectContentHintFlagsConnectionString) UpdateProjectContentHintUnion { + typ := UpdateProjectContentHintUnionTypeFlagsConnectionString + + typStr := UpdateProjectTypeFlagsConnectionString(typ) + flagsConnectionString.Type = typStr return UpdateProjectContentHintUnion{ - UpdateProjectContentHintFlagsConnectionString: &updateProjectContentHintFlagsConnectionString, + UpdateProjectContentHintFlagsConnectionString: &flagsConnectionString, Type: typ, } } func (u *UpdateProjectContentHintUnion) UnmarshalJSON(data []byte) error { - var updateProjectContentHintIntegrationStoreSecret UpdateProjectContentHintIntegrationStoreSecret = UpdateProjectContentHintIntegrationStoreSecret{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintIntegrationStoreSecret, "", true, nil); err == nil { - u.UpdateProjectContentHintIntegrationStoreSecret = &updateProjectContentHintIntegrationStoreSecret - u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintIntegrationStoreSecret - return nil + type discriminator struct { + Type string `json:"type"` } - var updateProjectContentHintRedisURL UpdateProjectContentHintRedisURL = UpdateProjectContentHintRedisURL{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintRedisURL, "", true, nil); err == nil { - u.UpdateProjectContentHintRedisURL = &updateProjectContentHintRedisURL - u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintRedisURL - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var updateProjectContentHintRedisRestAPIURL UpdateProjectContentHintRedisRestAPIURL = UpdateProjectContentHintRedisRestAPIURL{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintRedisRestAPIURL, "", true, nil); err == nil { - u.UpdateProjectContentHintRedisRestAPIURL = &updateProjectContentHintRedisRestAPIURL - u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintRedisRestAPIURL + switch dis.Type { + case "redis-url": + updateProjectContentHintRedisURL := new(UpdateProjectContentHintRedisURL) + if err := utils.UnmarshalJSON(data, &updateProjectContentHintRedisURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-url) type UpdateProjectContentHintRedisURL within UpdateProjectContentHintUnion: %w", string(data), err) + } + + u.UpdateProjectContentHintRedisURL = updateProjectContentHintRedisURL + u.Type = UpdateProjectContentHintUnionTypeRedisURL return nil - } + case "redis-rest-api-url": + updateProjectContentHintRedisRestAPIURL := new(UpdateProjectContentHintRedisRestAPIURL) + if err := utils.UnmarshalJSON(data, &updateProjectContentHintRedisRestAPIURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-url) type UpdateProjectContentHintRedisRestAPIURL within UpdateProjectContentHintUnion: %w", string(data), err) + } - var updateProjectContentHintRedisRestAPIToken UpdateProjectContentHintRedisRestAPIToken = UpdateProjectContentHintRedisRestAPIToken{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintRedisRestAPIToken, "", true, nil); err == nil { - u.UpdateProjectContentHintRedisRestAPIToken = &updateProjectContentHintRedisRestAPIToken - u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintRedisRestAPIToken + u.UpdateProjectContentHintRedisRestAPIURL = updateProjectContentHintRedisRestAPIURL + u.Type = UpdateProjectContentHintUnionTypeRedisRestAPIURL return nil - } + case "redis-rest-api-token": + updateProjectContentHintRedisRestAPIToken := new(UpdateProjectContentHintRedisRestAPIToken) + if err := utils.UnmarshalJSON(data, &updateProjectContentHintRedisRestAPIToken, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-token) type UpdateProjectContentHintRedisRestAPIToken within UpdateProjectContentHintUnion: %w", string(data), err) + } - var updateProjectContentHintRedisRestAPIReadOnlyToken UpdateProjectContentHintRedisRestAPIReadOnlyToken = UpdateProjectContentHintRedisRestAPIReadOnlyToken{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintRedisRestAPIReadOnlyToken, "", true, nil); err == nil { - u.UpdateProjectContentHintRedisRestAPIReadOnlyToken = &updateProjectContentHintRedisRestAPIReadOnlyToken - u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintRedisRestAPIReadOnlyToken + u.UpdateProjectContentHintRedisRestAPIToken = updateProjectContentHintRedisRestAPIToken + u.Type = UpdateProjectContentHintUnionTypeRedisRestAPIToken return nil - } + case "redis-rest-api-read-only-token": + updateProjectContentHintRedisRestAPIReadOnlyToken := new(UpdateProjectContentHintRedisRestAPIReadOnlyToken) + if err := utils.UnmarshalJSON(data, &updateProjectContentHintRedisRestAPIReadOnlyToken, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-read-only-token) type UpdateProjectContentHintRedisRestAPIReadOnlyToken within UpdateProjectContentHintUnion: %w", string(data), err) + } - var updateProjectContentHintBlobReadWriteToken UpdateProjectContentHintBlobReadWriteToken = UpdateProjectContentHintBlobReadWriteToken{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintBlobReadWriteToken, "", true, nil); err == nil { - u.UpdateProjectContentHintBlobReadWriteToken = &updateProjectContentHintBlobReadWriteToken - u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintBlobReadWriteToken + u.UpdateProjectContentHintRedisRestAPIReadOnlyToken = updateProjectContentHintRedisRestAPIReadOnlyToken + u.Type = UpdateProjectContentHintUnionTypeRedisRestAPIReadOnlyToken return nil - } + case "blob-read-write-token": + updateProjectContentHintBlobReadWriteToken := new(UpdateProjectContentHintBlobReadWriteToken) + if err := utils.UnmarshalJSON(data, &updateProjectContentHintBlobReadWriteToken, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == blob-read-write-token) type UpdateProjectContentHintBlobReadWriteToken within UpdateProjectContentHintUnion: %w", string(data), err) + } - var updateProjectContentHintPostgresURL UpdateProjectContentHintPostgresURL = UpdateProjectContentHintPostgresURL{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresURL, "", true, nil); err == nil { - u.UpdateProjectContentHintPostgresURL = &updateProjectContentHintPostgresURL - u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresURL + u.UpdateProjectContentHintBlobReadWriteToken = updateProjectContentHintBlobReadWriteToken + u.Type = UpdateProjectContentHintUnionTypeBlobReadWriteToken return nil - } + case "postgres-url": + updateProjectContentHintPostgresURL := new(UpdateProjectContentHintPostgresURL) + if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url) type UpdateProjectContentHintPostgresURL within UpdateProjectContentHintUnion: %w", string(data), err) + } - var updateProjectContentHintPostgresURLNonPooling UpdateProjectContentHintPostgresURLNonPooling = UpdateProjectContentHintPostgresURLNonPooling{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresURLNonPooling, "", true, nil); err == nil { - u.UpdateProjectContentHintPostgresURLNonPooling = &updateProjectContentHintPostgresURLNonPooling - u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresURLNonPooling + u.UpdateProjectContentHintPostgresURL = updateProjectContentHintPostgresURL + u.Type = UpdateProjectContentHintUnionTypePostgresURL return nil - } + case "postgres-url-non-pooling": + updateProjectContentHintPostgresURLNonPooling := new(UpdateProjectContentHintPostgresURLNonPooling) + if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresURLNonPooling, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-non-pooling) type UpdateProjectContentHintPostgresURLNonPooling within UpdateProjectContentHintUnion: %w", string(data), err) + } - var updateProjectContentHintPostgresPrismaURL UpdateProjectContentHintPostgresPrismaURL = UpdateProjectContentHintPostgresPrismaURL{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresPrismaURL, "", true, nil); err == nil { - u.UpdateProjectContentHintPostgresPrismaURL = &updateProjectContentHintPostgresPrismaURL - u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresPrismaURL + u.UpdateProjectContentHintPostgresURLNonPooling = updateProjectContentHintPostgresURLNonPooling + u.Type = UpdateProjectContentHintUnionTypePostgresURLNonPooling return nil - } + case "postgres-prisma-url": + updateProjectContentHintPostgresPrismaURL := new(UpdateProjectContentHintPostgresPrismaURL) + if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresPrismaURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-prisma-url) type UpdateProjectContentHintPostgresPrismaURL within UpdateProjectContentHintUnion: %w", string(data), err) + } - var updateProjectContentHintPostgresUser UpdateProjectContentHintPostgresUser = UpdateProjectContentHintPostgresUser{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresUser, "", true, nil); err == nil { - u.UpdateProjectContentHintPostgresUser = &updateProjectContentHintPostgresUser - u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresUser + u.UpdateProjectContentHintPostgresPrismaURL = updateProjectContentHintPostgresPrismaURL + u.Type = UpdateProjectContentHintUnionTypePostgresPrismaURL return nil - } + case "postgres-user": + updateProjectContentHintPostgresUser := new(UpdateProjectContentHintPostgresUser) + if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresUser, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-user) type UpdateProjectContentHintPostgresUser within UpdateProjectContentHintUnion: %w", string(data), err) + } - var updateProjectContentHintPostgresHost UpdateProjectContentHintPostgresHost = UpdateProjectContentHintPostgresHost{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresHost, "", true, nil); err == nil { - u.UpdateProjectContentHintPostgresHost = &updateProjectContentHintPostgresHost - u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresHost + u.UpdateProjectContentHintPostgresUser = updateProjectContentHintPostgresUser + u.Type = UpdateProjectContentHintUnionTypePostgresUser return nil - } + case "postgres-host": + updateProjectContentHintPostgresHost := new(UpdateProjectContentHintPostgresHost) + if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresHost, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-host) type UpdateProjectContentHintPostgresHost within UpdateProjectContentHintUnion: %w", string(data), err) + } - var updateProjectContentHintPostgresPassword UpdateProjectContentHintPostgresPassword = UpdateProjectContentHintPostgresPassword{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresPassword, "", true, nil); err == nil { - u.UpdateProjectContentHintPostgresPassword = &updateProjectContentHintPostgresPassword - u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresPassword + u.UpdateProjectContentHintPostgresHost = updateProjectContentHintPostgresHost + u.Type = UpdateProjectContentHintUnionTypePostgresHost return nil - } + case "postgres-password": + updateProjectContentHintPostgresPassword := new(UpdateProjectContentHintPostgresPassword) + if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresPassword, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-password) type UpdateProjectContentHintPostgresPassword within UpdateProjectContentHintUnion: %w", string(data), err) + } - var updateProjectContentHintPostgresDatabase UpdateProjectContentHintPostgresDatabase = UpdateProjectContentHintPostgresDatabase{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresDatabase, "", true, nil); err == nil { - u.UpdateProjectContentHintPostgresDatabase = &updateProjectContentHintPostgresDatabase - u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresDatabase + u.UpdateProjectContentHintPostgresPassword = updateProjectContentHintPostgresPassword + u.Type = UpdateProjectContentHintUnionTypePostgresPassword return nil - } + case "postgres-database": + updateProjectContentHintPostgresDatabase := new(UpdateProjectContentHintPostgresDatabase) + if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresDatabase, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-database) type UpdateProjectContentHintPostgresDatabase within UpdateProjectContentHintUnion: %w", string(data), err) + } - var updateProjectContentHintPostgresURLNoSsl UpdateProjectContentHintPostgresURLNoSsl = UpdateProjectContentHintPostgresURLNoSsl{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresURLNoSsl, "", true, nil); err == nil { - u.UpdateProjectContentHintPostgresURLNoSsl = &updateProjectContentHintPostgresURLNoSsl - u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresURLNoSsl + u.UpdateProjectContentHintPostgresDatabase = updateProjectContentHintPostgresDatabase + u.Type = UpdateProjectContentHintUnionTypePostgresDatabase return nil - } + case "postgres-url-no-ssl": + updateProjectContentHintPostgresURLNoSsl := new(UpdateProjectContentHintPostgresURLNoSsl) + if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresURLNoSsl, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-no-ssl) type UpdateProjectContentHintPostgresURLNoSsl within UpdateProjectContentHintUnion: %w", string(data), err) + } + + u.UpdateProjectContentHintPostgresURLNoSsl = updateProjectContentHintPostgresURLNoSsl + u.Type = UpdateProjectContentHintUnionTypePostgresURLNoSsl + return nil + case "integration-store-secret": + updateProjectContentHintIntegrationStoreSecret := new(UpdateProjectContentHintIntegrationStoreSecret) + if err := utils.UnmarshalJSON(data, &updateProjectContentHintIntegrationStoreSecret, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == integration-store-secret) type UpdateProjectContentHintIntegrationStoreSecret within UpdateProjectContentHintUnion: %w", string(data), err) + } + + u.UpdateProjectContentHintIntegrationStoreSecret = updateProjectContentHintIntegrationStoreSecret + u.Type = UpdateProjectContentHintUnionTypeIntegrationStoreSecret + return nil + case "flags-connection-string": + updateProjectContentHintFlagsConnectionString := new(UpdateProjectContentHintFlagsConnectionString) + if err := utils.UnmarshalJSON(data, &updateProjectContentHintFlagsConnectionString, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == flags-connection-string) type UpdateProjectContentHintFlagsConnectionString within UpdateProjectContentHintUnion: %w", string(data), err) + } - var updateProjectContentHintFlagsConnectionString UpdateProjectContentHintFlagsConnectionString = UpdateProjectContentHintFlagsConnectionString{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintFlagsConnectionString, "", true, nil); err == nil { - u.UpdateProjectContentHintFlagsConnectionString = &updateProjectContentHintFlagsConnectionString - u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintFlagsConnectionString + u.UpdateProjectContentHintFlagsConnectionString = updateProjectContentHintFlagsConnectionString + u.Type = UpdateProjectContentHintUnionTypeFlagsConnectionString return nil } @@ -3345,6 +3432,111 @@ func (o *UpdateProjectEnv) GetContentHint() *UpdateProjectContentHintUnion { return o.ContentHint } +func (o *UpdateProjectEnv) GetContentHintRedisURL() *UpdateProjectContentHintRedisURL { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectContentHintRedisURL + } + return nil +} + +func (o *UpdateProjectEnv) GetContentHintRedisRestAPIURL() *UpdateProjectContentHintRedisRestAPIURL { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectContentHintRedisRestAPIURL + } + return nil +} + +func (o *UpdateProjectEnv) GetContentHintRedisRestAPIToken() *UpdateProjectContentHintRedisRestAPIToken { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectContentHintRedisRestAPIToken + } + return nil +} + +func (o *UpdateProjectEnv) GetContentHintRedisRestAPIReadOnlyToken() *UpdateProjectContentHintRedisRestAPIReadOnlyToken { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectContentHintRedisRestAPIReadOnlyToken + } + return nil +} + +func (o *UpdateProjectEnv) GetContentHintBlobReadWriteToken() *UpdateProjectContentHintBlobReadWriteToken { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectContentHintBlobReadWriteToken + } + return nil +} + +func (o *UpdateProjectEnv) GetContentHintPostgresURL() *UpdateProjectContentHintPostgresURL { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectContentHintPostgresURL + } + return nil +} + +func (o *UpdateProjectEnv) GetContentHintPostgresURLNonPooling() *UpdateProjectContentHintPostgresURLNonPooling { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectContentHintPostgresURLNonPooling + } + return nil +} + +func (o *UpdateProjectEnv) GetContentHintPostgresPrismaURL() *UpdateProjectContentHintPostgresPrismaURL { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectContentHintPostgresPrismaURL + } + return nil +} + +func (o *UpdateProjectEnv) GetContentHintPostgresUser() *UpdateProjectContentHintPostgresUser { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectContentHintPostgresUser + } + return nil +} + +func (o *UpdateProjectEnv) GetContentHintPostgresHost() *UpdateProjectContentHintPostgresHost { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectContentHintPostgresHost + } + return nil +} + +func (o *UpdateProjectEnv) GetContentHintPostgresPassword() *UpdateProjectContentHintPostgresPassword { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectContentHintPostgresPassword + } + return nil +} + +func (o *UpdateProjectEnv) GetContentHintPostgresDatabase() *UpdateProjectContentHintPostgresDatabase { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectContentHintPostgresDatabase + } + return nil +} + +func (o *UpdateProjectEnv) GetContentHintPostgresURLNoSsl() *UpdateProjectContentHintPostgresURLNoSsl { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectContentHintPostgresURLNoSsl + } + return nil +} + +func (o *UpdateProjectEnv) GetContentHintIntegrationStoreSecret() *UpdateProjectContentHintIntegrationStoreSecret { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectContentHintIntegrationStoreSecret + } + return nil +} + +func (o *UpdateProjectEnv) GetContentHintFlagsConnectionString() *UpdateProjectContentHintFlagsConnectionString { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectContentHintFlagsConnectionString + } + return nil +} + func (o *UpdateProjectEnv) GetInternalContentHint() *UpdateProjectInternalContentHint { if o == nil { return nil @@ -5099,11 +5291,11 @@ func (o *UpdateProjectLinkGithub) GetProductionBranch() string { type UpdateProjectLinkUnionType string const ( - UpdateProjectLinkUnionTypeUpdateProjectLinkGithub UpdateProjectLinkUnionType = "updateProject_link_Github" - UpdateProjectLinkUnionTypeUpdateProjectLinkGithubLimited UpdateProjectLinkUnionType = "updateProject_link_GithubLimited" - UpdateProjectLinkUnionTypeUpdateProjectLinkGithubCustomHost UpdateProjectLinkUnionType = "updateProject_link_GithubCustomHost" - UpdateProjectLinkUnionTypeUpdateProjectLinkGitlab UpdateProjectLinkUnionType = "updateProject_link_Gitlab" - UpdateProjectLinkUnionTypeUpdateProjectLinkBitbucket UpdateProjectLinkUnionType = "updateProject_link_Bitbucket" + UpdateProjectLinkUnionTypeGithub UpdateProjectLinkUnionType = "github" + UpdateProjectLinkUnionTypeGithubLimited UpdateProjectLinkUnionType = "github-limited" + UpdateProjectLinkUnionTypeGithubCustomHost UpdateProjectLinkUnionType = "github-custom-host" + UpdateProjectLinkUnionTypeGitlab UpdateProjectLinkUnionType = "gitlab" + UpdateProjectLinkUnionTypeBitbucket UpdateProjectLinkUnionType = "bitbucket" ) type UpdateProjectLinkUnion struct { @@ -5116,85 +5308,122 @@ type UpdateProjectLinkUnion struct { Type UpdateProjectLinkUnionType } -func CreateUpdateProjectLinkUnionUpdateProjectLinkGithub(updateProjectLinkGithub UpdateProjectLinkGithub) UpdateProjectLinkUnion { - typ := UpdateProjectLinkUnionTypeUpdateProjectLinkGithub +func CreateUpdateProjectLinkUnionGithub(github UpdateProjectLinkGithub) UpdateProjectLinkUnion { + typ := UpdateProjectLinkUnionTypeGithub + + typStr := UpdateProjectTypeGithub(typ) + github.Type = typStr return UpdateProjectLinkUnion{ - UpdateProjectLinkGithub: &updateProjectLinkGithub, + UpdateProjectLinkGithub: &github, Type: typ, } } -func CreateUpdateProjectLinkUnionUpdateProjectLinkGithubLimited(updateProjectLinkGithubLimited UpdateProjectLinkGithubLimited) UpdateProjectLinkUnion { - typ := UpdateProjectLinkUnionTypeUpdateProjectLinkGithubLimited +func CreateUpdateProjectLinkUnionGithubLimited(githubLimited UpdateProjectLinkGithubLimited) UpdateProjectLinkUnion { + typ := UpdateProjectLinkUnionTypeGithubLimited + + typStr := UpdateProjectTypeGithubLimited(typ) + githubLimited.Type = typStr return UpdateProjectLinkUnion{ - UpdateProjectLinkGithubLimited: &updateProjectLinkGithubLimited, + UpdateProjectLinkGithubLimited: &githubLimited, Type: typ, } } -func CreateUpdateProjectLinkUnionUpdateProjectLinkGithubCustomHost(updateProjectLinkGithubCustomHost UpdateProjectLinkGithubCustomHost) UpdateProjectLinkUnion { - typ := UpdateProjectLinkUnionTypeUpdateProjectLinkGithubCustomHost +func CreateUpdateProjectLinkUnionGithubCustomHost(githubCustomHost UpdateProjectLinkGithubCustomHost) UpdateProjectLinkUnion { + typ := UpdateProjectLinkUnionTypeGithubCustomHost + + typStr := UpdateProjectTypeGithubCustomHost(typ) + githubCustomHost.Type = typStr return UpdateProjectLinkUnion{ - UpdateProjectLinkGithubCustomHost: &updateProjectLinkGithubCustomHost, + UpdateProjectLinkGithubCustomHost: &githubCustomHost, Type: typ, } } -func CreateUpdateProjectLinkUnionUpdateProjectLinkGitlab(updateProjectLinkGitlab UpdateProjectLinkGitlab) UpdateProjectLinkUnion { - typ := UpdateProjectLinkUnionTypeUpdateProjectLinkGitlab +func CreateUpdateProjectLinkUnionGitlab(gitlab UpdateProjectLinkGitlab) UpdateProjectLinkUnion { + typ := UpdateProjectLinkUnionTypeGitlab + + typStr := UpdateProjectTypeGitlab(typ) + gitlab.Type = typStr return UpdateProjectLinkUnion{ - UpdateProjectLinkGitlab: &updateProjectLinkGitlab, + UpdateProjectLinkGitlab: &gitlab, Type: typ, } } -func CreateUpdateProjectLinkUnionUpdateProjectLinkBitbucket(updateProjectLinkBitbucket UpdateProjectLinkBitbucket) UpdateProjectLinkUnion { - typ := UpdateProjectLinkUnionTypeUpdateProjectLinkBitbucket +func CreateUpdateProjectLinkUnionBitbucket(bitbucket UpdateProjectLinkBitbucket) UpdateProjectLinkUnion { + typ := UpdateProjectLinkUnionTypeBitbucket + + typStr := UpdateProjectTypeBitbucket(typ) + bitbucket.Type = typStr return UpdateProjectLinkUnion{ - UpdateProjectLinkBitbucket: &updateProjectLinkBitbucket, + UpdateProjectLinkBitbucket: &bitbucket, Type: typ, } } func (u *UpdateProjectLinkUnion) UnmarshalJSON(data []byte) error { - var updateProjectLinkGitlab UpdateProjectLinkGitlab = UpdateProjectLinkGitlab{} - if err := utils.UnmarshalJSON(data, &updateProjectLinkGitlab, "", true, nil); err == nil { - u.UpdateProjectLinkGitlab = &updateProjectLinkGitlab - u.Type = UpdateProjectLinkUnionTypeUpdateProjectLinkGitlab - return nil + type discriminator struct { + Type string `json:"type"` } - var updateProjectLinkBitbucket UpdateProjectLinkBitbucket = UpdateProjectLinkBitbucket{} - if err := utils.UnmarshalJSON(data, &updateProjectLinkBitbucket, "", true, nil); err == nil { - u.UpdateProjectLinkBitbucket = &updateProjectLinkBitbucket - u.Type = UpdateProjectLinkUnionTypeUpdateProjectLinkBitbucket - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var updateProjectLinkGithubCustomHost UpdateProjectLinkGithubCustomHost = UpdateProjectLinkGithubCustomHost{} - if err := utils.UnmarshalJSON(data, &updateProjectLinkGithubCustomHost, "", true, nil); err == nil { - u.UpdateProjectLinkGithubCustomHost = &updateProjectLinkGithubCustomHost - u.Type = UpdateProjectLinkUnionTypeUpdateProjectLinkGithubCustomHost + switch dis.Type { + case "github": + updateProjectLinkGithub := new(UpdateProjectLinkGithub) + if err := utils.UnmarshalJSON(data, &updateProjectLinkGithub, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == github) type UpdateProjectLinkGithub within UpdateProjectLinkUnion: %w", string(data), err) + } + + u.UpdateProjectLinkGithub = updateProjectLinkGithub + u.Type = UpdateProjectLinkUnionTypeGithub return nil - } + case "github-limited": + updateProjectLinkGithubLimited := new(UpdateProjectLinkGithubLimited) + if err := utils.UnmarshalJSON(data, &updateProjectLinkGithubLimited, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == github-limited) type UpdateProjectLinkGithubLimited within UpdateProjectLinkUnion: %w", string(data), err) + } - var updateProjectLinkGithub UpdateProjectLinkGithub = UpdateProjectLinkGithub{} - if err := utils.UnmarshalJSON(data, &updateProjectLinkGithub, "", true, nil); err == nil { - u.UpdateProjectLinkGithub = &updateProjectLinkGithub - u.Type = UpdateProjectLinkUnionTypeUpdateProjectLinkGithub + u.UpdateProjectLinkGithubLimited = updateProjectLinkGithubLimited + u.Type = UpdateProjectLinkUnionTypeGithubLimited return nil - } + case "github-custom-host": + updateProjectLinkGithubCustomHost := new(UpdateProjectLinkGithubCustomHost) + if err := utils.UnmarshalJSON(data, &updateProjectLinkGithubCustomHost, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == github-custom-host) type UpdateProjectLinkGithubCustomHost within UpdateProjectLinkUnion: %w", string(data), err) + } + + u.UpdateProjectLinkGithubCustomHost = updateProjectLinkGithubCustomHost + u.Type = UpdateProjectLinkUnionTypeGithubCustomHost + return nil + case "gitlab": + updateProjectLinkGitlab := new(UpdateProjectLinkGitlab) + if err := utils.UnmarshalJSON(data, &updateProjectLinkGitlab, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == gitlab) type UpdateProjectLinkGitlab within UpdateProjectLinkUnion: %w", string(data), err) + } + + u.UpdateProjectLinkGitlab = updateProjectLinkGitlab + u.Type = UpdateProjectLinkUnionTypeGitlab + return nil + case "bitbucket": + updateProjectLinkBitbucket := new(UpdateProjectLinkBitbucket) + if err := utils.UnmarshalJSON(data, &updateProjectLinkBitbucket, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == bitbucket) type UpdateProjectLinkBitbucket within UpdateProjectLinkUnion: %w", string(data), err) + } - var updateProjectLinkGithubLimited UpdateProjectLinkGithubLimited = UpdateProjectLinkGithubLimited{} - if err := utils.UnmarshalJSON(data, &updateProjectLinkGithubLimited, "", true, nil); err == nil { - u.UpdateProjectLinkGithubLimited = &updateProjectLinkGithubLimited - u.Type = UpdateProjectLinkUnionTypeUpdateProjectLinkGithubLimited + u.UpdateProjectLinkBitbucket = updateProjectLinkBitbucket + u.Type = UpdateProjectLinkUnionTypeBitbucket return nil } @@ -8775,8 +9004,8 @@ func (o *UpdateProjectProtectionBypassIntegrationAutomationBypass) GetConfigurat type UpdateProjectProtectionBypassUnionType string const ( - UpdateProjectProtectionBypassUnionTypeUpdateProjectProtectionBypassIntegrationAutomationBypass UpdateProjectProtectionBypassUnionType = "updateProject_protectionBypass_IntegrationAutomationBypass" - UpdateProjectProtectionBypassUnionTypeUpdateProjectProtectionBypassAutomationBypass UpdateProjectProtectionBypassUnionType = "updateProject_protectionBypass_AutomationBypass" + UpdateProjectProtectionBypassUnionTypeIntegrationAutomationBypass UpdateProjectProtectionBypassUnionType = "integration-automation-bypass" + UpdateProjectProtectionBypassUnionTypeAutomationBypass UpdateProjectProtectionBypassUnionType = "automation-bypass" ) type UpdateProjectProtectionBypassUnion struct { @@ -8786,37 +9015,59 @@ type UpdateProjectProtectionBypassUnion struct { Type UpdateProjectProtectionBypassUnionType } -func CreateUpdateProjectProtectionBypassUnionUpdateProjectProtectionBypassIntegrationAutomationBypass(updateProjectProtectionBypassIntegrationAutomationBypass UpdateProjectProtectionBypassIntegrationAutomationBypass) UpdateProjectProtectionBypassUnion { - typ := UpdateProjectProtectionBypassUnionTypeUpdateProjectProtectionBypassIntegrationAutomationBypass +func CreateUpdateProjectProtectionBypassUnionIntegrationAutomationBypass(integrationAutomationBypass UpdateProjectProtectionBypassIntegrationAutomationBypass) UpdateProjectProtectionBypassUnion { + typ := UpdateProjectProtectionBypassUnionTypeIntegrationAutomationBypass + + typStr := UpdateProjectScopeIntegrationAutomationBypass(typ) + integrationAutomationBypass.Scope = typStr return UpdateProjectProtectionBypassUnion{ - UpdateProjectProtectionBypassIntegrationAutomationBypass: &updateProjectProtectionBypassIntegrationAutomationBypass, + UpdateProjectProtectionBypassIntegrationAutomationBypass: &integrationAutomationBypass, Type: typ, } } -func CreateUpdateProjectProtectionBypassUnionUpdateProjectProtectionBypassAutomationBypass(updateProjectProtectionBypassAutomationBypass UpdateProjectProtectionBypassAutomationBypass) UpdateProjectProtectionBypassUnion { - typ := UpdateProjectProtectionBypassUnionTypeUpdateProjectProtectionBypassAutomationBypass +func CreateUpdateProjectProtectionBypassUnionAutomationBypass(automationBypass UpdateProjectProtectionBypassAutomationBypass) UpdateProjectProtectionBypassUnion { + typ := UpdateProjectProtectionBypassUnionTypeAutomationBypass + + typStr := UpdateProjectScopeAutomationBypass(typ) + automationBypass.Scope = typStr return UpdateProjectProtectionBypassUnion{ - UpdateProjectProtectionBypassAutomationBypass: &updateProjectProtectionBypassAutomationBypass, + UpdateProjectProtectionBypassAutomationBypass: &automationBypass, Type: typ, } } func (u *UpdateProjectProtectionBypassUnion) UnmarshalJSON(data []byte) error { - var updateProjectProtectionBypassIntegrationAutomationBypass UpdateProjectProtectionBypassIntegrationAutomationBypass = UpdateProjectProtectionBypassIntegrationAutomationBypass{} - if err := utils.UnmarshalJSON(data, &updateProjectProtectionBypassIntegrationAutomationBypass, "", true, nil); err == nil { - u.UpdateProjectProtectionBypassIntegrationAutomationBypass = &updateProjectProtectionBypassIntegrationAutomationBypass - u.Type = UpdateProjectProtectionBypassUnionTypeUpdateProjectProtectionBypassIntegrationAutomationBypass - return nil + type discriminator struct { + Scope string `json:"scope"` } - var updateProjectProtectionBypassAutomationBypass UpdateProjectProtectionBypassAutomationBypass = UpdateProjectProtectionBypassAutomationBypass{} - if err := utils.UnmarshalJSON(data, &updateProjectProtectionBypassAutomationBypass, "", true, nil); err == nil { - u.UpdateProjectProtectionBypassAutomationBypass = &updateProjectProtectionBypassAutomationBypass - u.Type = UpdateProjectProtectionBypassUnionTypeUpdateProjectProtectionBypassAutomationBypass + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Scope { + case "integration-automation-bypass": + updateProjectProtectionBypassIntegrationAutomationBypass := new(UpdateProjectProtectionBypassIntegrationAutomationBypass) + if err := utils.UnmarshalJSON(data, &updateProjectProtectionBypassIntegrationAutomationBypass, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Scope == integration-automation-bypass) type UpdateProjectProtectionBypassIntegrationAutomationBypass within UpdateProjectProtectionBypassUnion: %w", string(data), err) + } + + u.UpdateProjectProtectionBypassIntegrationAutomationBypass = updateProjectProtectionBypassIntegrationAutomationBypass + u.Type = UpdateProjectProtectionBypassUnionTypeIntegrationAutomationBypass + return nil + case "automation-bypass": + updateProjectProtectionBypassAutomationBypass := new(UpdateProjectProtectionBypassAutomationBypass) + if err := utils.UnmarshalJSON(data, &updateProjectProtectionBypassAutomationBypass, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Scope == automation-bypass) type UpdateProjectProtectionBypassAutomationBypass within UpdateProjectProtectionBypassUnion: %w", string(data), err) + } + + u.UpdateProjectProtectionBypassAutomationBypass = updateProjectProtectionBypassAutomationBypass + u.Type = UpdateProjectProtectionBypassUnionTypeAutomationBypass return nil } @@ -9903,8 +10154,8 @@ func (o *UpdateProjectBlockHistoryHasXVercelIPCountry2) GetValue() UpdateProject type UpdateProjectBlockHistoryHasUnion2Type string const ( - UpdateProjectBlockHistoryHasUnion2TypeUpdateProjectBlockHistoryHasXVercelIPCountry2 UpdateProjectBlockHistoryHasUnion2Type = "updateProject_blockHistory_has_XVercelIPCountry_2" - UpdateProjectBlockHistoryHasUnion2TypeUpdateProjectBlockHistoryHasHost2 UpdateProjectBlockHistoryHasUnion2Type = "updateProject_blockHistory_has_Host_2" + UpdateProjectBlockHistoryHasUnion2TypeHeader UpdateProjectBlockHistoryHasUnion2Type = "header" + UpdateProjectBlockHistoryHasUnion2TypeHost UpdateProjectBlockHistoryHasUnion2Type = "host" ) type UpdateProjectBlockHistoryHasUnion2 struct { @@ -9914,37 +10165,59 @@ type UpdateProjectBlockHistoryHasUnion2 struct { Type UpdateProjectBlockHistoryHasUnion2Type } -func CreateUpdateProjectBlockHistoryHasUnion2UpdateProjectBlockHistoryHasXVercelIPCountry2(updateProjectBlockHistoryHasXVercelIPCountry2 UpdateProjectBlockHistoryHasXVercelIPCountry2) UpdateProjectBlockHistoryHasUnion2 { - typ := UpdateProjectBlockHistoryHasUnion2TypeUpdateProjectBlockHistoryHasXVercelIPCountry2 +func CreateUpdateProjectBlockHistoryHasUnion2Header(header UpdateProjectBlockHistoryHasXVercelIPCountry2) UpdateProjectBlockHistoryHasUnion2 { + typ := UpdateProjectBlockHistoryHasUnion2TypeHeader + + typStr := UpdateProjectBlockHistoryTypeHeader2(typ) + header.Type = typStr return UpdateProjectBlockHistoryHasUnion2{ - UpdateProjectBlockHistoryHasXVercelIPCountry2: &updateProjectBlockHistoryHasXVercelIPCountry2, + UpdateProjectBlockHistoryHasXVercelIPCountry2: &header, Type: typ, } } -func CreateUpdateProjectBlockHistoryHasUnion2UpdateProjectBlockHistoryHasHost2(updateProjectBlockHistoryHasHost2 UpdateProjectBlockHistoryHasHost2) UpdateProjectBlockHistoryHasUnion2 { - typ := UpdateProjectBlockHistoryHasUnion2TypeUpdateProjectBlockHistoryHasHost2 +func CreateUpdateProjectBlockHistoryHasUnion2Host(host UpdateProjectBlockHistoryHasHost2) UpdateProjectBlockHistoryHasUnion2 { + typ := UpdateProjectBlockHistoryHasUnion2TypeHost + + typStr := UpdateProjectBlockHistoryTypeHost2(typ) + host.Type = typStr return UpdateProjectBlockHistoryHasUnion2{ - UpdateProjectBlockHistoryHasHost2: &updateProjectBlockHistoryHasHost2, + UpdateProjectBlockHistoryHasHost2: &host, Type: typ, } } func (u *UpdateProjectBlockHistoryHasUnion2) UnmarshalJSON(data []byte) error { - var updateProjectBlockHistoryHasXVercelIPCountry2 UpdateProjectBlockHistoryHasXVercelIPCountry2 = UpdateProjectBlockHistoryHasXVercelIPCountry2{} - if err := utils.UnmarshalJSON(data, &updateProjectBlockHistoryHasXVercelIPCountry2, "", true, nil); err == nil { - u.UpdateProjectBlockHistoryHasXVercelIPCountry2 = &updateProjectBlockHistoryHasXVercelIPCountry2 - u.Type = UpdateProjectBlockHistoryHasUnion2TypeUpdateProjectBlockHistoryHasXVercelIPCountry2 - return nil + type discriminator struct { + Type string `json:"type"` } - var updateProjectBlockHistoryHasHost2 UpdateProjectBlockHistoryHasHost2 = UpdateProjectBlockHistoryHasHost2{} - if err := utils.UnmarshalJSON(data, &updateProjectBlockHistoryHasHost2, "", true, nil); err == nil { - u.UpdateProjectBlockHistoryHasHost2 = &updateProjectBlockHistoryHasHost2 - u.Type = UpdateProjectBlockHistoryHasUnion2TypeUpdateProjectBlockHistoryHasHost2 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Type { + case "header": + updateProjectBlockHistoryHasXVercelIPCountry2 := new(UpdateProjectBlockHistoryHasXVercelIPCountry2) + if err := utils.UnmarshalJSON(data, &updateProjectBlockHistoryHasXVercelIPCountry2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == header) type UpdateProjectBlockHistoryHasXVercelIPCountry2 within UpdateProjectBlockHistoryHasUnion2: %w", string(data), err) + } + + u.UpdateProjectBlockHistoryHasXVercelIPCountry2 = updateProjectBlockHistoryHasXVercelIPCountry2 + u.Type = UpdateProjectBlockHistoryHasUnion2TypeHeader + return nil + case "host": + updateProjectBlockHistoryHasHost2 := new(UpdateProjectBlockHistoryHasHost2) + if err := utils.UnmarshalJSON(data, &updateProjectBlockHistoryHasHost2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == host) type UpdateProjectBlockHistoryHasHost2 within UpdateProjectBlockHistoryHasUnion2: %w", string(data), err) + } + + u.UpdateProjectBlockHistoryHasHost2 = updateProjectBlockHistoryHasHost2 + u.Type = UpdateProjectBlockHistoryHasUnion2TypeHost return nil } @@ -10424,8 +10697,8 @@ func (o *UpdateProjectBlockHistoryHasXVercelIPCountry1) GetValue() UpdateProject type UpdateProjectBlockHistoryHasUnion1Type string const ( - UpdateProjectBlockHistoryHasUnion1TypeUpdateProjectBlockHistoryHasXVercelIPCountry1 UpdateProjectBlockHistoryHasUnion1Type = "updateProject_blockHistory_has_XVercelIPCountry_1" - UpdateProjectBlockHistoryHasUnion1TypeUpdateProjectBlockHistoryHasHost1 UpdateProjectBlockHistoryHasUnion1Type = "updateProject_blockHistory_has_Host_1" + UpdateProjectBlockHistoryHasUnion1TypeHeader UpdateProjectBlockHistoryHasUnion1Type = "header" + UpdateProjectBlockHistoryHasUnion1TypeHost UpdateProjectBlockHistoryHasUnion1Type = "host" ) type UpdateProjectBlockHistoryHasUnion1 struct { @@ -10435,37 +10708,59 @@ type UpdateProjectBlockHistoryHasUnion1 struct { Type UpdateProjectBlockHistoryHasUnion1Type } -func CreateUpdateProjectBlockHistoryHasUnion1UpdateProjectBlockHistoryHasXVercelIPCountry1(updateProjectBlockHistoryHasXVercelIPCountry1 UpdateProjectBlockHistoryHasXVercelIPCountry1) UpdateProjectBlockHistoryHasUnion1 { - typ := UpdateProjectBlockHistoryHasUnion1TypeUpdateProjectBlockHistoryHasXVercelIPCountry1 +func CreateUpdateProjectBlockHistoryHasUnion1Header(header UpdateProjectBlockHistoryHasXVercelIPCountry1) UpdateProjectBlockHistoryHasUnion1 { + typ := UpdateProjectBlockHistoryHasUnion1TypeHeader + + typStr := UpdateProjectBlockHistoryTypeHeader1(typ) + header.Type = typStr return UpdateProjectBlockHistoryHasUnion1{ - UpdateProjectBlockHistoryHasXVercelIPCountry1: &updateProjectBlockHistoryHasXVercelIPCountry1, + UpdateProjectBlockHistoryHasXVercelIPCountry1: &header, Type: typ, } } -func CreateUpdateProjectBlockHistoryHasUnion1UpdateProjectBlockHistoryHasHost1(updateProjectBlockHistoryHasHost1 UpdateProjectBlockHistoryHasHost1) UpdateProjectBlockHistoryHasUnion1 { - typ := UpdateProjectBlockHistoryHasUnion1TypeUpdateProjectBlockHistoryHasHost1 +func CreateUpdateProjectBlockHistoryHasUnion1Host(host UpdateProjectBlockHistoryHasHost1) UpdateProjectBlockHistoryHasUnion1 { + typ := UpdateProjectBlockHistoryHasUnion1TypeHost + + typStr := UpdateProjectBlockHistoryTypeHost1(typ) + host.Type = typStr return UpdateProjectBlockHistoryHasUnion1{ - UpdateProjectBlockHistoryHasHost1: &updateProjectBlockHistoryHasHost1, + UpdateProjectBlockHistoryHasHost1: &host, Type: typ, } } func (u *UpdateProjectBlockHistoryHasUnion1) UnmarshalJSON(data []byte) error { - var updateProjectBlockHistoryHasXVercelIPCountry1 UpdateProjectBlockHistoryHasXVercelIPCountry1 = UpdateProjectBlockHistoryHasXVercelIPCountry1{} - if err := utils.UnmarshalJSON(data, &updateProjectBlockHistoryHasXVercelIPCountry1, "", true, nil); err == nil { - u.UpdateProjectBlockHistoryHasXVercelIPCountry1 = &updateProjectBlockHistoryHasXVercelIPCountry1 - u.Type = UpdateProjectBlockHistoryHasUnion1TypeUpdateProjectBlockHistoryHasXVercelIPCountry1 - return nil + type discriminator struct { + Type string `json:"type"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var updateProjectBlockHistoryHasHost1 UpdateProjectBlockHistoryHasHost1 = UpdateProjectBlockHistoryHasHost1{} - if err := utils.UnmarshalJSON(data, &updateProjectBlockHistoryHasHost1, "", true, nil); err == nil { - u.UpdateProjectBlockHistoryHasHost1 = &updateProjectBlockHistoryHasHost1 - u.Type = UpdateProjectBlockHistoryHasUnion1TypeUpdateProjectBlockHistoryHasHost1 + switch dis.Type { + case "header": + updateProjectBlockHistoryHasXVercelIPCountry1 := new(UpdateProjectBlockHistoryHasXVercelIPCountry1) + if err := utils.UnmarshalJSON(data, &updateProjectBlockHistoryHasXVercelIPCountry1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == header) type UpdateProjectBlockHistoryHasXVercelIPCountry1 within UpdateProjectBlockHistoryHasUnion1: %w", string(data), err) + } + + u.UpdateProjectBlockHistoryHasXVercelIPCountry1 = updateProjectBlockHistoryHasXVercelIPCountry1 + u.Type = UpdateProjectBlockHistoryHasUnion1TypeHeader + return nil + case "host": + updateProjectBlockHistoryHasHost1 := new(UpdateProjectBlockHistoryHasHost1) + if err := utils.UnmarshalJSON(data, &updateProjectBlockHistoryHasHost1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == host) type UpdateProjectBlockHistoryHasHost1 within UpdateProjectBlockHistoryHasUnion1: %w", string(data), err) + } + + u.UpdateProjectBlockHistoryHasHost1 = updateProjectBlockHistoryHasHost1 + u.Type = UpdateProjectBlockHistoryHasUnion1TypeHost return nil } @@ -10927,10 +11222,10 @@ func (o *UpdateProjectBlockHistoryBlocked) GetIsCascading() *bool { type UpdateProjectBlockHistoryUnionType string const ( - UpdateProjectBlockHistoryUnionTypeUpdateProjectBlockHistoryBlocked UpdateProjectBlockHistoryUnionType = "updateProject_blockHistory_Blocked" - UpdateProjectBlockHistoryUnionTypeUpdateProjectBlockHistoryUnblocked UpdateProjectBlockHistoryUnionType = "updateProject_blockHistory_Unblocked" - UpdateProjectBlockHistoryUnionTypeUpdateProjectBlockHistoryRouteBlocked UpdateProjectBlockHistoryUnionType = "updateProject_blockHistory_RouteBlocked" - UpdateProjectBlockHistoryUnionTypeUpdateProjectBlockHistoryRouteUnblocked UpdateProjectBlockHistoryUnionType = "updateProject_blockHistory_RouteUnblocked" + UpdateProjectBlockHistoryUnionTypeBlocked UpdateProjectBlockHistoryUnionType = "blocked" + UpdateProjectBlockHistoryUnionTypeUnblocked UpdateProjectBlockHistoryUnionType = "unblocked" + UpdateProjectBlockHistoryUnionTypeRouteBlocked UpdateProjectBlockHistoryUnionType = "route-blocked" + UpdateProjectBlockHistoryUnionTypeRouteUnblocked UpdateProjectBlockHistoryUnionType = "route-unblocked" ) type UpdateProjectBlockHistoryUnion struct { @@ -10942,69 +11237,101 @@ type UpdateProjectBlockHistoryUnion struct { Type UpdateProjectBlockHistoryUnionType } -func CreateUpdateProjectBlockHistoryUnionUpdateProjectBlockHistoryBlocked(updateProjectBlockHistoryBlocked UpdateProjectBlockHistoryBlocked) UpdateProjectBlockHistoryUnion { - typ := UpdateProjectBlockHistoryUnionTypeUpdateProjectBlockHistoryBlocked +func CreateUpdateProjectBlockHistoryUnionBlocked(blocked UpdateProjectBlockHistoryBlocked) UpdateProjectBlockHistoryUnion { + typ := UpdateProjectBlockHistoryUnionTypeBlocked + + typStr := UpdateProjectBlockHistoryActionBlocked(typ) + blocked.Action = typStr return UpdateProjectBlockHistoryUnion{ - UpdateProjectBlockHistoryBlocked: &updateProjectBlockHistoryBlocked, + UpdateProjectBlockHistoryBlocked: &blocked, Type: typ, } } -func CreateUpdateProjectBlockHistoryUnionUpdateProjectBlockHistoryUnblocked(updateProjectBlockHistoryUnblocked UpdateProjectBlockHistoryUnblocked) UpdateProjectBlockHistoryUnion { - typ := UpdateProjectBlockHistoryUnionTypeUpdateProjectBlockHistoryUnblocked +func CreateUpdateProjectBlockHistoryUnionUnblocked(unblocked UpdateProjectBlockHistoryUnblocked) UpdateProjectBlockHistoryUnion { + typ := UpdateProjectBlockHistoryUnionTypeUnblocked + + typStr := UpdateProjectActionUnblocked(typ) + unblocked.Action = typStr return UpdateProjectBlockHistoryUnion{ - UpdateProjectBlockHistoryUnblocked: &updateProjectBlockHistoryUnblocked, + UpdateProjectBlockHistoryUnblocked: &unblocked, Type: typ, } } -func CreateUpdateProjectBlockHistoryUnionUpdateProjectBlockHistoryRouteBlocked(updateProjectBlockHistoryRouteBlocked UpdateProjectBlockHistoryRouteBlocked) UpdateProjectBlockHistoryUnion { - typ := UpdateProjectBlockHistoryUnionTypeUpdateProjectBlockHistoryRouteBlocked +func CreateUpdateProjectBlockHistoryUnionRouteBlocked(routeBlocked UpdateProjectBlockHistoryRouteBlocked) UpdateProjectBlockHistoryUnion { + typ := UpdateProjectBlockHistoryUnionTypeRouteBlocked + + typStr := UpdateProjectActionRouteBlocked(typ) + routeBlocked.Action = typStr return UpdateProjectBlockHistoryUnion{ - UpdateProjectBlockHistoryRouteBlocked: &updateProjectBlockHistoryRouteBlocked, + UpdateProjectBlockHistoryRouteBlocked: &routeBlocked, Type: typ, } } -func CreateUpdateProjectBlockHistoryUnionUpdateProjectBlockHistoryRouteUnblocked(updateProjectBlockHistoryRouteUnblocked UpdateProjectBlockHistoryRouteUnblocked) UpdateProjectBlockHistoryUnion { - typ := UpdateProjectBlockHistoryUnionTypeUpdateProjectBlockHistoryRouteUnblocked +func CreateUpdateProjectBlockHistoryUnionRouteUnblocked(routeUnblocked UpdateProjectBlockHistoryRouteUnblocked) UpdateProjectBlockHistoryUnion { + typ := UpdateProjectBlockHistoryUnionTypeRouteUnblocked + + typStr := UpdateProjectActionRouteUnblocked(typ) + routeUnblocked.Action = typStr return UpdateProjectBlockHistoryUnion{ - UpdateProjectBlockHistoryRouteUnblocked: &updateProjectBlockHistoryRouteUnblocked, + UpdateProjectBlockHistoryRouteUnblocked: &routeUnblocked, Type: typ, } } func (u *UpdateProjectBlockHistoryUnion) UnmarshalJSON(data []byte) error { - var updateProjectBlockHistoryBlocked UpdateProjectBlockHistoryBlocked = UpdateProjectBlockHistoryBlocked{} - if err := utils.UnmarshalJSON(data, &updateProjectBlockHistoryBlocked, "", true, nil); err == nil { - u.UpdateProjectBlockHistoryBlocked = &updateProjectBlockHistoryBlocked - u.Type = UpdateProjectBlockHistoryUnionTypeUpdateProjectBlockHistoryBlocked - return nil + type discriminator struct { + Action string `json:"action"` } - var updateProjectBlockHistoryRouteBlocked UpdateProjectBlockHistoryRouteBlocked = UpdateProjectBlockHistoryRouteBlocked{} - if err := utils.UnmarshalJSON(data, &updateProjectBlockHistoryRouteBlocked, "", true, nil); err == nil { - u.UpdateProjectBlockHistoryRouteBlocked = &updateProjectBlockHistoryRouteBlocked - u.Type = UpdateProjectBlockHistoryUnionTypeUpdateProjectBlockHistoryRouteBlocked - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var updateProjectBlockHistoryRouteUnblocked UpdateProjectBlockHistoryRouteUnblocked = UpdateProjectBlockHistoryRouteUnblocked{} - if err := utils.UnmarshalJSON(data, &updateProjectBlockHistoryRouteUnblocked, "", true, nil); err == nil { - u.UpdateProjectBlockHistoryRouteUnblocked = &updateProjectBlockHistoryRouteUnblocked - u.Type = UpdateProjectBlockHistoryUnionTypeUpdateProjectBlockHistoryRouteUnblocked + switch dis.Action { + case "blocked": + updateProjectBlockHistoryBlocked := new(UpdateProjectBlockHistoryBlocked) + if err := utils.UnmarshalJSON(data, &updateProjectBlockHistoryBlocked, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Action == blocked) type UpdateProjectBlockHistoryBlocked within UpdateProjectBlockHistoryUnion: %w", string(data), err) + } + + u.UpdateProjectBlockHistoryBlocked = updateProjectBlockHistoryBlocked + u.Type = UpdateProjectBlockHistoryUnionTypeBlocked return nil - } + case "unblocked": + updateProjectBlockHistoryUnblocked := new(UpdateProjectBlockHistoryUnblocked) + if err := utils.UnmarshalJSON(data, &updateProjectBlockHistoryUnblocked, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Action == unblocked) type UpdateProjectBlockHistoryUnblocked within UpdateProjectBlockHistoryUnion: %w", string(data), err) + } - var updateProjectBlockHistoryUnblocked UpdateProjectBlockHistoryUnblocked = UpdateProjectBlockHistoryUnblocked{} - if err := utils.UnmarshalJSON(data, &updateProjectBlockHistoryUnblocked, "", true, nil); err == nil { - u.UpdateProjectBlockHistoryUnblocked = &updateProjectBlockHistoryUnblocked - u.Type = UpdateProjectBlockHistoryUnionTypeUpdateProjectBlockHistoryUnblocked + u.UpdateProjectBlockHistoryUnblocked = updateProjectBlockHistoryUnblocked + u.Type = UpdateProjectBlockHistoryUnionTypeUnblocked + return nil + case "route-blocked": + updateProjectBlockHistoryRouteBlocked := new(UpdateProjectBlockHistoryRouteBlocked) + if err := utils.UnmarshalJSON(data, &updateProjectBlockHistoryRouteBlocked, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Action == route-blocked) type UpdateProjectBlockHistoryRouteBlocked within UpdateProjectBlockHistoryUnion: %w", string(data), err) + } + + u.UpdateProjectBlockHistoryRouteBlocked = updateProjectBlockHistoryRouteBlocked + u.Type = UpdateProjectBlockHistoryUnionTypeRouteBlocked + return nil + case "route-unblocked": + updateProjectBlockHistoryRouteUnblocked := new(UpdateProjectBlockHistoryRouteUnblocked) + if err := utils.UnmarshalJSON(data, &updateProjectBlockHistoryRouteUnblocked, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Action == route-unblocked) type UpdateProjectBlockHistoryRouteUnblocked within UpdateProjectBlockHistoryUnion: %w", string(data), err) + } + + u.UpdateProjectBlockHistoryRouteUnblocked = updateProjectBlockHistoryRouteUnblocked + u.Type = UpdateProjectBlockHistoryUnionTypeRouteUnblocked return nil } @@ -11266,8 +11593,8 @@ func (o *UpdateProjectInternalRouteHasXVercelIPCountry) GetValue() UpdateProject type UpdateProjectInternalRouteHasUnionType string const ( - UpdateProjectInternalRouteHasUnionTypeUpdateProjectInternalRouteHasXVercelIPCountry UpdateProjectInternalRouteHasUnionType = "updateProject_internalRoute_has_XVercelIPCountry" - UpdateProjectInternalRouteHasUnionTypeUpdateProjectInternalRouteHasHost UpdateProjectInternalRouteHasUnionType = "updateProject_internalRoute_has_Host" + UpdateProjectInternalRouteHasUnionTypeHeader UpdateProjectInternalRouteHasUnionType = "header" + UpdateProjectInternalRouteHasUnionTypeHost UpdateProjectInternalRouteHasUnionType = "host" ) type UpdateProjectInternalRouteHasUnion struct { @@ -11277,37 +11604,59 @@ type UpdateProjectInternalRouteHasUnion struct { Type UpdateProjectInternalRouteHasUnionType } -func CreateUpdateProjectInternalRouteHasUnionUpdateProjectInternalRouteHasXVercelIPCountry(updateProjectInternalRouteHasXVercelIPCountry UpdateProjectInternalRouteHasXVercelIPCountry) UpdateProjectInternalRouteHasUnion { - typ := UpdateProjectInternalRouteHasUnionTypeUpdateProjectInternalRouteHasXVercelIPCountry +func CreateUpdateProjectInternalRouteHasUnionHeader(header UpdateProjectInternalRouteHasXVercelIPCountry) UpdateProjectInternalRouteHasUnion { + typ := UpdateProjectInternalRouteHasUnionTypeHeader + + typStr := UpdateProjectInternalRouteTypeHeader(typ) + header.Type = typStr return UpdateProjectInternalRouteHasUnion{ - UpdateProjectInternalRouteHasXVercelIPCountry: &updateProjectInternalRouteHasXVercelIPCountry, + UpdateProjectInternalRouteHasXVercelIPCountry: &header, Type: typ, } } -func CreateUpdateProjectInternalRouteHasUnionUpdateProjectInternalRouteHasHost(updateProjectInternalRouteHasHost UpdateProjectInternalRouteHasHost) UpdateProjectInternalRouteHasUnion { - typ := UpdateProjectInternalRouteHasUnionTypeUpdateProjectInternalRouteHasHost +func CreateUpdateProjectInternalRouteHasUnionHost(host UpdateProjectInternalRouteHasHost) UpdateProjectInternalRouteHasUnion { + typ := UpdateProjectInternalRouteHasUnionTypeHost + + typStr := UpdateProjectInternalRouteTypeHost(typ) + host.Type = typStr return UpdateProjectInternalRouteHasUnion{ - UpdateProjectInternalRouteHasHost: &updateProjectInternalRouteHasHost, + UpdateProjectInternalRouteHasHost: &host, Type: typ, } } func (u *UpdateProjectInternalRouteHasUnion) UnmarshalJSON(data []byte) error { - var updateProjectInternalRouteHasXVercelIPCountry UpdateProjectInternalRouteHasXVercelIPCountry = UpdateProjectInternalRouteHasXVercelIPCountry{} - if err := utils.UnmarshalJSON(data, &updateProjectInternalRouteHasXVercelIPCountry, "", true, nil); err == nil { - u.UpdateProjectInternalRouteHasXVercelIPCountry = &updateProjectInternalRouteHasXVercelIPCountry - u.Type = UpdateProjectInternalRouteHasUnionTypeUpdateProjectInternalRouteHasXVercelIPCountry - return nil + type discriminator struct { + Type string `json:"type"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var updateProjectInternalRouteHasHost UpdateProjectInternalRouteHasHost = UpdateProjectInternalRouteHasHost{} - if err := utils.UnmarshalJSON(data, &updateProjectInternalRouteHasHost, "", true, nil); err == nil { - u.UpdateProjectInternalRouteHasHost = &updateProjectInternalRouteHasHost - u.Type = UpdateProjectInternalRouteHasUnionTypeUpdateProjectInternalRouteHasHost + switch dis.Type { + case "header": + updateProjectInternalRouteHasXVercelIPCountry := new(UpdateProjectInternalRouteHasXVercelIPCountry) + if err := utils.UnmarshalJSON(data, &updateProjectInternalRouteHasXVercelIPCountry, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == header) type UpdateProjectInternalRouteHasXVercelIPCountry within UpdateProjectInternalRouteHasUnion: %w", string(data), err) + } + + u.UpdateProjectInternalRouteHasXVercelIPCountry = updateProjectInternalRouteHasXVercelIPCountry + u.Type = UpdateProjectInternalRouteHasUnionTypeHeader + return nil + case "host": + updateProjectInternalRouteHasHost := new(UpdateProjectInternalRouteHasHost) + if err := utils.UnmarshalJSON(data, &updateProjectInternalRouteHasHost, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == host) type UpdateProjectInternalRouteHasHost within UpdateProjectInternalRouteHasUnion: %w", string(data), err) + } + + u.UpdateProjectInternalRouteHasHost = updateProjectInternalRouteHasHost + u.Type = UpdateProjectInternalRouteHasUnionTypeHost return nil } @@ -12162,6 +12511,41 @@ func (o *UpdateProjectResponseBody) GetLink() *UpdateProjectLinkUnion { return o.Link } +func (o *UpdateProjectResponseBody) GetLinkGithub() *UpdateProjectLinkGithub { + if v := o.GetLink(); v != nil { + return v.UpdateProjectLinkGithub + } + return nil +} + +func (o *UpdateProjectResponseBody) GetLinkGithubLimited() *UpdateProjectLinkGithubLimited { + if v := o.GetLink(); v != nil { + return v.UpdateProjectLinkGithubLimited + } + return nil +} + +func (o *UpdateProjectResponseBody) GetLinkGithubCustomHost() *UpdateProjectLinkGithubCustomHost { + if v := o.GetLink(); v != nil { + return v.UpdateProjectLinkGithubCustomHost + } + return nil +} + +func (o *UpdateProjectResponseBody) GetLinkGitlab() *UpdateProjectLinkGitlab { + if v := o.GetLink(); v != nil { + return v.UpdateProjectLinkGitlab + } + return nil +} + +func (o *UpdateProjectResponseBody) GetLinkBitbucket() *UpdateProjectLinkBitbucket { + if v := o.GetLink(); v != nil { + return v.UpdateProjectLinkBitbucket + } + return nil +} + func (o *UpdateProjectResponseBody) GetMicrofrontends() *UpdateProjectMicrofrontendsUnion { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/updateprojectdatacache.go b/src/__tests__/mockserver/internal/sdk/models/operations/updateprojectdatacache.go index 369f010f..8daf9773 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/updateprojectdatacache.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/updateprojectdatacache.go @@ -1475,21 +1475,21 @@ func (o *UpdateProjectDataCacheContentHintRedisURL) GetStoreID() string { type UpdateProjectDataCacheContentHintUnionType string const ( - UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintRedisURL UpdateProjectDataCacheContentHintUnionType = "updateProjectDataCache_contentHint_RedisURL" - UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintRedisRestAPIURL UpdateProjectDataCacheContentHintUnionType = "updateProjectDataCache_contentHint_RedisRestAPIURL" - UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintRedisRestAPIToken UpdateProjectDataCacheContentHintUnionType = "updateProjectDataCache_contentHint_RedisRestAPIToken" - UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken UpdateProjectDataCacheContentHintUnionType = "updateProjectDataCache_contentHint_RedisRestAPIReadOnlyToken" - UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintBlobReadWriteToken UpdateProjectDataCacheContentHintUnionType = "updateProjectDataCache_contentHint_BlobReadWriteToken" - UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresURL UpdateProjectDataCacheContentHintUnionType = "updateProjectDataCache_contentHint_PostgresURL" - UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresURLNonPooling UpdateProjectDataCacheContentHintUnionType = "updateProjectDataCache_contentHint_PostgresURLNonPooling" - UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresPrismaURL UpdateProjectDataCacheContentHintUnionType = "updateProjectDataCache_contentHint_PostgresPrismaURL" - UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresUser UpdateProjectDataCacheContentHintUnionType = "updateProjectDataCache_contentHint_PostgresUser" - UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresHost UpdateProjectDataCacheContentHintUnionType = "updateProjectDataCache_contentHint_PostgresHost" - UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresPassword UpdateProjectDataCacheContentHintUnionType = "updateProjectDataCache_contentHint_PostgresPassword" - UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresDatabase UpdateProjectDataCacheContentHintUnionType = "updateProjectDataCache_contentHint_PostgresDatabase" - UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresURLNoSsl UpdateProjectDataCacheContentHintUnionType = "updateProjectDataCache_contentHint_PostgresURLNoSsl" - UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintIntegrationStoreSecret UpdateProjectDataCacheContentHintUnionType = "updateProjectDataCache_contentHint_IntegrationStoreSecret" - UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintFlagsConnectionString UpdateProjectDataCacheContentHintUnionType = "updateProjectDataCache_contentHint_FlagsConnectionString" + UpdateProjectDataCacheContentHintUnionTypeRedisURL UpdateProjectDataCacheContentHintUnionType = "redis-url" + UpdateProjectDataCacheContentHintUnionTypeRedisRestAPIURL UpdateProjectDataCacheContentHintUnionType = "redis-rest-api-url" + UpdateProjectDataCacheContentHintUnionTypeRedisRestAPIToken UpdateProjectDataCacheContentHintUnionType = "redis-rest-api-token" + UpdateProjectDataCacheContentHintUnionTypeRedisRestAPIReadOnlyToken UpdateProjectDataCacheContentHintUnionType = "redis-rest-api-read-only-token" + UpdateProjectDataCacheContentHintUnionTypeBlobReadWriteToken UpdateProjectDataCacheContentHintUnionType = "blob-read-write-token" + UpdateProjectDataCacheContentHintUnionTypePostgresURL UpdateProjectDataCacheContentHintUnionType = "postgres-url" + UpdateProjectDataCacheContentHintUnionTypePostgresURLNonPooling UpdateProjectDataCacheContentHintUnionType = "postgres-url-non-pooling" + UpdateProjectDataCacheContentHintUnionTypePostgresPrismaURL UpdateProjectDataCacheContentHintUnionType = "postgres-prisma-url" + UpdateProjectDataCacheContentHintUnionTypePostgresUser UpdateProjectDataCacheContentHintUnionType = "postgres-user" + UpdateProjectDataCacheContentHintUnionTypePostgresHost UpdateProjectDataCacheContentHintUnionType = "postgres-host" + UpdateProjectDataCacheContentHintUnionTypePostgresPassword UpdateProjectDataCacheContentHintUnionType = "postgres-password" + UpdateProjectDataCacheContentHintUnionTypePostgresDatabase UpdateProjectDataCacheContentHintUnionType = "postgres-database" + UpdateProjectDataCacheContentHintUnionTypePostgresURLNoSsl UpdateProjectDataCacheContentHintUnionType = "postgres-url-no-ssl" + UpdateProjectDataCacheContentHintUnionTypeIntegrationStoreSecret UpdateProjectDataCacheContentHintUnionType = "integration-store-secret" + UpdateProjectDataCacheContentHintUnionTypeFlagsConnectionString UpdateProjectDataCacheContentHintUnionType = "flags-connection-string" ) type UpdateProjectDataCacheContentHintUnion struct { @@ -1512,245 +1512,332 @@ type UpdateProjectDataCacheContentHintUnion struct { Type UpdateProjectDataCacheContentHintUnionType } -func CreateUpdateProjectDataCacheContentHintUnionUpdateProjectDataCacheContentHintRedisURL(updateProjectDataCacheContentHintRedisURL UpdateProjectDataCacheContentHintRedisURL) UpdateProjectDataCacheContentHintUnion { - typ := UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintRedisURL +func CreateUpdateProjectDataCacheContentHintUnionRedisURL(redisURL UpdateProjectDataCacheContentHintRedisURL) UpdateProjectDataCacheContentHintUnion { + typ := UpdateProjectDataCacheContentHintUnionTypeRedisURL + + typStr := UpdateProjectDataCacheTypeRedisURL(typ) + redisURL.Type = typStr return UpdateProjectDataCacheContentHintUnion{ - UpdateProjectDataCacheContentHintRedisURL: &updateProjectDataCacheContentHintRedisURL, + UpdateProjectDataCacheContentHintRedisURL: &redisURL, Type: typ, } } -func CreateUpdateProjectDataCacheContentHintUnionUpdateProjectDataCacheContentHintRedisRestAPIURL(updateProjectDataCacheContentHintRedisRestAPIURL UpdateProjectDataCacheContentHintRedisRestAPIURL) UpdateProjectDataCacheContentHintUnion { - typ := UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintRedisRestAPIURL +func CreateUpdateProjectDataCacheContentHintUnionRedisRestAPIURL(redisRestAPIURL UpdateProjectDataCacheContentHintRedisRestAPIURL) UpdateProjectDataCacheContentHintUnion { + typ := UpdateProjectDataCacheContentHintUnionTypeRedisRestAPIURL + + typStr := UpdateProjectDataCacheTypeRedisRestAPIURL(typ) + redisRestAPIURL.Type = typStr return UpdateProjectDataCacheContentHintUnion{ - UpdateProjectDataCacheContentHintRedisRestAPIURL: &updateProjectDataCacheContentHintRedisRestAPIURL, + UpdateProjectDataCacheContentHintRedisRestAPIURL: &redisRestAPIURL, Type: typ, } } -func CreateUpdateProjectDataCacheContentHintUnionUpdateProjectDataCacheContentHintRedisRestAPIToken(updateProjectDataCacheContentHintRedisRestAPIToken UpdateProjectDataCacheContentHintRedisRestAPIToken) UpdateProjectDataCacheContentHintUnion { - typ := UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintRedisRestAPIToken +func CreateUpdateProjectDataCacheContentHintUnionRedisRestAPIToken(redisRestAPIToken UpdateProjectDataCacheContentHintRedisRestAPIToken) UpdateProjectDataCacheContentHintUnion { + typ := UpdateProjectDataCacheContentHintUnionTypeRedisRestAPIToken + + typStr := UpdateProjectDataCacheTypeRedisRestAPIToken(typ) + redisRestAPIToken.Type = typStr return UpdateProjectDataCacheContentHintUnion{ - UpdateProjectDataCacheContentHintRedisRestAPIToken: &updateProjectDataCacheContentHintRedisRestAPIToken, + UpdateProjectDataCacheContentHintRedisRestAPIToken: &redisRestAPIToken, Type: typ, } } -func CreateUpdateProjectDataCacheContentHintUnionUpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken(updateProjectDataCacheContentHintRedisRestAPIReadOnlyToken UpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken) UpdateProjectDataCacheContentHintUnion { - typ := UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken +func CreateUpdateProjectDataCacheContentHintUnionRedisRestAPIReadOnlyToken(redisRestAPIReadOnlyToken UpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken) UpdateProjectDataCacheContentHintUnion { + typ := UpdateProjectDataCacheContentHintUnionTypeRedisRestAPIReadOnlyToken + + typStr := UpdateProjectDataCacheTypeRedisRestAPIReadOnlyToken(typ) + redisRestAPIReadOnlyToken.Type = typStr return UpdateProjectDataCacheContentHintUnion{ - UpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken: &updateProjectDataCacheContentHintRedisRestAPIReadOnlyToken, + UpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken: &redisRestAPIReadOnlyToken, Type: typ, } } -func CreateUpdateProjectDataCacheContentHintUnionUpdateProjectDataCacheContentHintBlobReadWriteToken(updateProjectDataCacheContentHintBlobReadWriteToken UpdateProjectDataCacheContentHintBlobReadWriteToken) UpdateProjectDataCacheContentHintUnion { - typ := UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintBlobReadWriteToken +func CreateUpdateProjectDataCacheContentHintUnionBlobReadWriteToken(blobReadWriteToken UpdateProjectDataCacheContentHintBlobReadWriteToken) UpdateProjectDataCacheContentHintUnion { + typ := UpdateProjectDataCacheContentHintUnionTypeBlobReadWriteToken + + typStr := UpdateProjectDataCacheTypeBlobReadWriteToken(typ) + blobReadWriteToken.Type = typStr return UpdateProjectDataCacheContentHintUnion{ - UpdateProjectDataCacheContentHintBlobReadWriteToken: &updateProjectDataCacheContentHintBlobReadWriteToken, + UpdateProjectDataCacheContentHintBlobReadWriteToken: &blobReadWriteToken, Type: typ, } } -func CreateUpdateProjectDataCacheContentHintUnionUpdateProjectDataCacheContentHintPostgresURL(updateProjectDataCacheContentHintPostgresURL UpdateProjectDataCacheContentHintPostgresURL) UpdateProjectDataCacheContentHintUnion { - typ := UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresURL +func CreateUpdateProjectDataCacheContentHintUnionPostgresURL(postgresURL UpdateProjectDataCacheContentHintPostgresURL) UpdateProjectDataCacheContentHintUnion { + typ := UpdateProjectDataCacheContentHintUnionTypePostgresURL + + typStr := UpdateProjectDataCacheTypePostgresURL(typ) + postgresURL.Type = typStr return UpdateProjectDataCacheContentHintUnion{ - UpdateProjectDataCacheContentHintPostgresURL: &updateProjectDataCacheContentHintPostgresURL, + UpdateProjectDataCacheContentHintPostgresURL: &postgresURL, Type: typ, } } -func CreateUpdateProjectDataCacheContentHintUnionUpdateProjectDataCacheContentHintPostgresURLNonPooling(updateProjectDataCacheContentHintPostgresURLNonPooling UpdateProjectDataCacheContentHintPostgresURLNonPooling) UpdateProjectDataCacheContentHintUnion { - typ := UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresURLNonPooling +func CreateUpdateProjectDataCacheContentHintUnionPostgresURLNonPooling(postgresURLNonPooling UpdateProjectDataCacheContentHintPostgresURLNonPooling) UpdateProjectDataCacheContentHintUnion { + typ := UpdateProjectDataCacheContentHintUnionTypePostgresURLNonPooling + + typStr := UpdateProjectDataCacheTypePostgresURLNonPooling(typ) + postgresURLNonPooling.Type = typStr return UpdateProjectDataCacheContentHintUnion{ - UpdateProjectDataCacheContentHintPostgresURLNonPooling: &updateProjectDataCacheContentHintPostgresURLNonPooling, + UpdateProjectDataCacheContentHintPostgresURLNonPooling: &postgresURLNonPooling, Type: typ, } } -func CreateUpdateProjectDataCacheContentHintUnionUpdateProjectDataCacheContentHintPostgresPrismaURL(updateProjectDataCacheContentHintPostgresPrismaURL UpdateProjectDataCacheContentHintPostgresPrismaURL) UpdateProjectDataCacheContentHintUnion { - typ := UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresPrismaURL +func CreateUpdateProjectDataCacheContentHintUnionPostgresPrismaURL(postgresPrismaURL UpdateProjectDataCacheContentHintPostgresPrismaURL) UpdateProjectDataCacheContentHintUnion { + typ := UpdateProjectDataCacheContentHintUnionTypePostgresPrismaURL + + typStr := UpdateProjectDataCacheTypePostgresPrismaURL(typ) + postgresPrismaURL.Type = typStr return UpdateProjectDataCacheContentHintUnion{ - UpdateProjectDataCacheContentHintPostgresPrismaURL: &updateProjectDataCacheContentHintPostgresPrismaURL, + UpdateProjectDataCacheContentHintPostgresPrismaURL: &postgresPrismaURL, Type: typ, } } -func CreateUpdateProjectDataCacheContentHintUnionUpdateProjectDataCacheContentHintPostgresUser(updateProjectDataCacheContentHintPostgresUser UpdateProjectDataCacheContentHintPostgresUser) UpdateProjectDataCacheContentHintUnion { - typ := UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresUser +func CreateUpdateProjectDataCacheContentHintUnionPostgresUser(postgresUser UpdateProjectDataCacheContentHintPostgresUser) UpdateProjectDataCacheContentHintUnion { + typ := UpdateProjectDataCacheContentHintUnionTypePostgresUser + + typStr := UpdateProjectDataCacheTypePostgresUser(typ) + postgresUser.Type = typStr return UpdateProjectDataCacheContentHintUnion{ - UpdateProjectDataCacheContentHintPostgresUser: &updateProjectDataCacheContentHintPostgresUser, + UpdateProjectDataCacheContentHintPostgresUser: &postgresUser, Type: typ, } } -func CreateUpdateProjectDataCacheContentHintUnionUpdateProjectDataCacheContentHintPostgresHost(updateProjectDataCacheContentHintPostgresHost UpdateProjectDataCacheContentHintPostgresHost) UpdateProjectDataCacheContentHintUnion { - typ := UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresHost +func CreateUpdateProjectDataCacheContentHintUnionPostgresHost(postgresHost UpdateProjectDataCacheContentHintPostgresHost) UpdateProjectDataCacheContentHintUnion { + typ := UpdateProjectDataCacheContentHintUnionTypePostgresHost + + typStr := UpdateProjectDataCacheTypePostgresHost(typ) + postgresHost.Type = typStr return UpdateProjectDataCacheContentHintUnion{ - UpdateProjectDataCacheContentHintPostgresHost: &updateProjectDataCacheContentHintPostgresHost, + UpdateProjectDataCacheContentHintPostgresHost: &postgresHost, Type: typ, } } -func CreateUpdateProjectDataCacheContentHintUnionUpdateProjectDataCacheContentHintPostgresPassword(updateProjectDataCacheContentHintPostgresPassword UpdateProjectDataCacheContentHintPostgresPassword) UpdateProjectDataCacheContentHintUnion { - typ := UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresPassword +func CreateUpdateProjectDataCacheContentHintUnionPostgresPassword(postgresPassword UpdateProjectDataCacheContentHintPostgresPassword) UpdateProjectDataCacheContentHintUnion { + typ := UpdateProjectDataCacheContentHintUnionTypePostgresPassword + + typStr := UpdateProjectDataCacheTypePostgresPassword(typ) + postgresPassword.Type = typStr return UpdateProjectDataCacheContentHintUnion{ - UpdateProjectDataCacheContentHintPostgresPassword: &updateProjectDataCacheContentHintPostgresPassword, + UpdateProjectDataCacheContentHintPostgresPassword: &postgresPassword, Type: typ, } } -func CreateUpdateProjectDataCacheContentHintUnionUpdateProjectDataCacheContentHintPostgresDatabase(updateProjectDataCacheContentHintPostgresDatabase UpdateProjectDataCacheContentHintPostgresDatabase) UpdateProjectDataCacheContentHintUnion { - typ := UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresDatabase +func CreateUpdateProjectDataCacheContentHintUnionPostgresDatabase(postgresDatabase UpdateProjectDataCacheContentHintPostgresDatabase) UpdateProjectDataCacheContentHintUnion { + typ := UpdateProjectDataCacheContentHintUnionTypePostgresDatabase + + typStr := UpdateProjectDataCacheTypePostgresDatabase(typ) + postgresDatabase.Type = typStr return UpdateProjectDataCacheContentHintUnion{ - UpdateProjectDataCacheContentHintPostgresDatabase: &updateProjectDataCacheContentHintPostgresDatabase, + UpdateProjectDataCacheContentHintPostgresDatabase: &postgresDatabase, Type: typ, } } -func CreateUpdateProjectDataCacheContentHintUnionUpdateProjectDataCacheContentHintPostgresURLNoSsl(updateProjectDataCacheContentHintPostgresURLNoSsl UpdateProjectDataCacheContentHintPostgresURLNoSsl) UpdateProjectDataCacheContentHintUnion { - typ := UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresURLNoSsl +func CreateUpdateProjectDataCacheContentHintUnionPostgresURLNoSsl(postgresURLNoSsl UpdateProjectDataCacheContentHintPostgresURLNoSsl) UpdateProjectDataCacheContentHintUnion { + typ := UpdateProjectDataCacheContentHintUnionTypePostgresURLNoSsl + + typStr := UpdateProjectDataCacheTypePostgresURLNoSsl(typ) + postgresURLNoSsl.Type = typStr return UpdateProjectDataCacheContentHintUnion{ - UpdateProjectDataCacheContentHintPostgresURLNoSsl: &updateProjectDataCacheContentHintPostgresURLNoSsl, + UpdateProjectDataCacheContentHintPostgresURLNoSsl: &postgresURLNoSsl, Type: typ, } } -func CreateUpdateProjectDataCacheContentHintUnionUpdateProjectDataCacheContentHintIntegrationStoreSecret(updateProjectDataCacheContentHintIntegrationStoreSecret UpdateProjectDataCacheContentHintIntegrationStoreSecret) UpdateProjectDataCacheContentHintUnion { - typ := UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintIntegrationStoreSecret +func CreateUpdateProjectDataCacheContentHintUnionIntegrationStoreSecret(integrationStoreSecret UpdateProjectDataCacheContentHintIntegrationStoreSecret) UpdateProjectDataCacheContentHintUnion { + typ := UpdateProjectDataCacheContentHintUnionTypeIntegrationStoreSecret + + typStr := UpdateProjectDataCacheTypeIntegrationStoreSecret(typ) + integrationStoreSecret.Type = typStr return UpdateProjectDataCacheContentHintUnion{ - UpdateProjectDataCacheContentHintIntegrationStoreSecret: &updateProjectDataCacheContentHintIntegrationStoreSecret, + UpdateProjectDataCacheContentHintIntegrationStoreSecret: &integrationStoreSecret, Type: typ, } } -func CreateUpdateProjectDataCacheContentHintUnionUpdateProjectDataCacheContentHintFlagsConnectionString(updateProjectDataCacheContentHintFlagsConnectionString UpdateProjectDataCacheContentHintFlagsConnectionString) UpdateProjectDataCacheContentHintUnion { - typ := UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintFlagsConnectionString +func CreateUpdateProjectDataCacheContentHintUnionFlagsConnectionString(flagsConnectionString UpdateProjectDataCacheContentHintFlagsConnectionString) UpdateProjectDataCacheContentHintUnion { + typ := UpdateProjectDataCacheContentHintUnionTypeFlagsConnectionString + + typStr := UpdateProjectDataCacheTypeFlagsConnectionString(typ) + flagsConnectionString.Type = typStr return UpdateProjectDataCacheContentHintUnion{ - UpdateProjectDataCacheContentHintFlagsConnectionString: &updateProjectDataCacheContentHintFlagsConnectionString, + UpdateProjectDataCacheContentHintFlagsConnectionString: &flagsConnectionString, Type: typ, } } func (u *UpdateProjectDataCacheContentHintUnion) UnmarshalJSON(data []byte) error { - var updateProjectDataCacheContentHintIntegrationStoreSecret UpdateProjectDataCacheContentHintIntegrationStoreSecret = UpdateProjectDataCacheContentHintIntegrationStoreSecret{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintIntegrationStoreSecret, "", true, nil); err == nil { - u.UpdateProjectDataCacheContentHintIntegrationStoreSecret = &updateProjectDataCacheContentHintIntegrationStoreSecret - u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintIntegrationStoreSecret - return nil + type discriminator struct { + Type string `json:"type"` } - var updateProjectDataCacheContentHintRedisURL UpdateProjectDataCacheContentHintRedisURL = UpdateProjectDataCacheContentHintRedisURL{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintRedisURL, "", true, nil); err == nil { - u.UpdateProjectDataCacheContentHintRedisURL = &updateProjectDataCacheContentHintRedisURL - u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintRedisURL - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var updateProjectDataCacheContentHintRedisRestAPIURL UpdateProjectDataCacheContentHintRedisRestAPIURL = UpdateProjectDataCacheContentHintRedisRestAPIURL{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintRedisRestAPIURL, "", true, nil); err == nil { - u.UpdateProjectDataCacheContentHintRedisRestAPIURL = &updateProjectDataCacheContentHintRedisRestAPIURL - u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintRedisRestAPIURL + switch dis.Type { + case "redis-url": + updateProjectDataCacheContentHintRedisURL := new(UpdateProjectDataCacheContentHintRedisURL) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintRedisURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-url) type UpdateProjectDataCacheContentHintRedisURL within UpdateProjectDataCacheContentHintUnion: %w", string(data), err) + } + + u.UpdateProjectDataCacheContentHintRedisURL = updateProjectDataCacheContentHintRedisURL + u.Type = UpdateProjectDataCacheContentHintUnionTypeRedisURL return nil - } + case "redis-rest-api-url": + updateProjectDataCacheContentHintRedisRestAPIURL := new(UpdateProjectDataCacheContentHintRedisRestAPIURL) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintRedisRestAPIURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-url) type UpdateProjectDataCacheContentHintRedisRestAPIURL within UpdateProjectDataCacheContentHintUnion: %w", string(data), err) + } - var updateProjectDataCacheContentHintRedisRestAPIToken UpdateProjectDataCacheContentHintRedisRestAPIToken = UpdateProjectDataCacheContentHintRedisRestAPIToken{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintRedisRestAPIToken, "", true, nil); err == nil { - u.UpdateProjectDataCacheContentHintRedisRestAPIToken = &updateProjectDataCacheContentHintRedisRestAPIToken - u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintRedisRestAPIToken + u.UpdateProjectDataCacheContentHintRedisRestAPIURL = updateProjectDataCacheContentHintRedisRestAPIURL + u.Type = UpdateProjectDataCacheContentHintUnionTypeRedisRestAPIURL return nil - } + case "redis-rest-api-token": + updateProjectDataCacheContentHintRedisRestAPIToken := new(UpdateProjectDataCacheContentHintRedisRestAPIToken) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintRedisRestAPIToken, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-token) type UpdateProjectDataCacheContentHintRedisRestAPIToken within UpdateProjectDataCacheContentHintUnion: %w", string(data), err) + } - var updateProjectDataCacheContentHintRedisRestAPIReadOnlyToken UpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken = UpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintRedisRestAPIReadOnlyToken, "", true, nil); err == nil { - u.UpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken = &updateProjectDataCacheContentHintRedisRestAPIReadOnlyToken - u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken + u.UpdateProjectDataCacheContentHintRedisRestAPIToken = updateProjectDataCacheContentHintRedisRestAPIToken + u.Type = UpdateProjectDataCacheContentHintUnionTypeRedisRestAPIToken return nil - } + case "redis-rest-api-read-only-token": + updateProjectDataCacheContentHintRedisRestAPIReadOnlyToken := new(UpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintRedisRestAPIReadOnlyToken, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == redis-rest-api-read-only-token) type UpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken within UpdateProjectDataCacheContentHintUnion: %w", string(data), err) + } - var updateProjectDataCacheContentHintBlobReadWriteToken UpdateProjectDataCacheContentHintBlobReadWriteToken = UpdateProjectDataCacheContentHintBlobReadWriteToken{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintBlobReadWriteToken, "", true, nil); err == nil { - u.UpdateProjectDataCacheContentHintBlobReadWriteToken = &updateProjectDataCacheContentHintBlobReadWriteToken - u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintBlobReadWriteToken + u.UpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken = updateProjectDataCacheContentHintRedisRestAPIReadOnlyToken + u.Type = UpdateProjectDataCacheContentHintUnionTypeRedisRestAPIReadOnlyToken return nil - } + case "blob-read-write-token": + updateProjectDataCacheContentHintBlobReadWriteToken := new(UpdateProjectDataCacheContentHintBlobReadWriteToken) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintBlobReadWriteToken, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == blob-read-write-token) type UpdateProjectDataCacheContentHintBlobReadWriteToken within UpdateProjectDataCacheContentHintUnion: %w", string(data), err) + } - var updateProjectDataCacheContentHintPostgresURL UpdateProjectDataCacheContentHintPostgresURL = UpdateProjectDataCacheContentHintPostgresURL{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresURL, "", true, nil); err == nil { - u.UpdateProjectDataCacheContentHintPostgresURL = &updateProjectDataCacheContentHintPostgresURL - u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresURL + u.UpdateProjectDataCacheContentHintBlobReadWriteToken = updateProjectDataCacheContentHintBlobReadWriteToken + u.Type = UpdateProjectDataCacheContentHintUnionTypeBlobReadWriteToken return nil - } + case "postgres-url": + updateProjectDataCacheContentHintPostgresURL := new(UpdateProjectDataCacheContentHintPostgresURL) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url) type UpdateProjectDataCacheContentHintPostgresURL within UpdateProjectDataCacheContentHintUnion: %w", string(data), err) + } - var updateProjectDataCacheContentHintPostgresURLNonPooling UpdateProjectDataCacheContentHintPostgresURLNonPooling = UpdateProjectDataCacheContentHintPostgresURLNonPooling{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresURLNonPooling, "", true, nil); err == nil { - u.UpdateProjectDataCacheContentHintPostgresURLNonPooling = &updateProjectDataCacheContentHintPostgresURLNonPooling - u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresURLNonPooling + u.UpdateProjectDataCacheContentHintPostgresURL = updateProjectDataCacheContentHintPostgresURL + u.Type = UpdateProjectDataCacheContentHintUnionTypePostgresURL return nil - } + case "postgres-url-non-pooling": + updateProjectDataCacheContentHintPostgresURLNonPooling := new(UpdateProjectDataCacheContentHintPostgresURLNonPooling) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresURLNonPooling, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-non-pooling) type UpdateProjectDataCacheContentHintPostgresURLNonPooling within UpdateProjectDataCacheContentHintUnion: %w", string(data), err) + } - var updateProjectDataCacheContentHintPostgresPrismaURL UpdateProjectDataCacheContentHintPostgresPrismaURL = UpdateProjectDataCacheContentHintPostgresPrismaURL{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresPrismaURL, "", true, nil); err == nil { - u.UpdateProjectDataCacheContentHintPostgresPrismaURL = &updateProjectDataCacheContentHintPostgresPrismaURL - u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresPrismaURL + u.UpdateProjectDataCacheContentHintPostgresURLNonPooling = updateProjectDataCacheContentHintPostgresURLNonPooling + u.Type = UpdateProjectDataCacheContentHintUnionTypePostgresURLNonPooling return nil - } + case "postgres-prisma-url": + updateProjectDataCacheContentHintPostgresPrismaURL := new(UpdateProjectDataCacheContentHintPostgresPrismaURL) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresPrismaURL, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-prisma-url) type UpdateProjectDataCacheContentHintPostgresPrismaURL within UpdateProjectDataCacheContentHintUnion: %w", string(data), err) + } - var updateProjectDataCacheContentHintPostgresUser UpdateProjectDataCacheContentHintPostgresUser = UpdateProjectDataCacheContentHintPostgresUser{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresUser, "", true, nil); err == nil { - u.UpdateProjectDataCacheContentHintPostgresUser = &updateProjectDataCacheContentHintPostgresUser - u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresUser + u.UpdateProjectDataCacheContentHintPostgresPrismaURL = updateProjectDataCacheContentHintPostgresPrismaURL + u.Type = UpdateProjectDataCacheContentHintUnionTypePostgresPrismaURL return nil - } + case "postgres-user": + updateProjectDataCacheContentHintPostgresUser := new(UpdateProjectDataCacheContentHintPostgresUser) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresUser, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-user) type UpdateProjectDataCacheContentHintPostgresUser within UpdateProjectDataCacheContentHintUnion: %w", string(data), err) + } - var updateProjectDataCacheContentHintPostgresHost UpdateProjectDataCacheContentHintPostgresHost = UpdateProjectDataCacheContentHintPostgresHost{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresHost, "", true, nil); err == nil { - u.UpdateProjectDataCacheContentHintPostgresHost = &updateProjectDataCacheContentHintPostgresHost - u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresHost + u.UpdateProjectDataCacheContentHintPostgresUser = updateProjectDataCacheContentHintPostgresUser + u.Type = UpdateProjectDataCacheContentHintUnionTypePostgresUser return nil - } + case "postgres-host": + updateProjectDataCacheContentHintPostgresHost := new(UpdateProjectDataCacheContentHintPostgresHost) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresHost, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-host) type UpdateProjectDataCacheContentHintPostgresHost within UpdateProjectDataCacheContentHintUnion: %w", string(data), err) + } - var updateProjectDataCacheContentHintPostgresPassword UpdateProjectDataCacheContentHintPostgresPassword = UpdateProjectDataCacheContentHintPostgresPassword{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresPassword, "", true, nil); err == nil { - u.UpdateProjectDataCacheContentHintPostgresPassword = &updateProjectDataCacheContentHintPostgresPassword - u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresPassword + u.UpdateProjectDataCacheContentHintPostgresHost = updateProjectDataCacheContentHintPostgresHost + u.Type = UpdateProjectDataCacheContentHintUnionTypePostgresHost return nil - } + case "postgres-password": + updateProjectDataCacheContentHintPostgresPassword := new(UpdateProjectDataCacheContentHintPostgresPassword) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresPassword, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-password) type UpdateProjectDataCacheContentHintPostgresPassword within UpdateProjectDataCacheContentHintUnion: %w", string(data), err) + } - var updateProjectDataCacheContentHintPostgresDatabase UpdateProjectDataCacheContentHintPostgresDatabase = UpdateProjectDataCacheContentHintPostgresDatabase{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresDatabase, "", true, nil); err == nil { - u.UpdateProjectDataCacheContentHintPostgresDatabase = &updateProjectDataCacheContentHintPostgresDatabase - u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresDatabase + u.UpdateProjectDataCacheContentHintPostgresPassword = updateProjectDataCacheContentHintPostgresPassword + u.Type = UpdateProjectDataCacheContentHintUnionTypePostgresPassword return nil - } + case "postgres-database": + updateProjectDataCacheContentHintPostgresDatabase := new(UpdateProjectDataCacheContentHintPostgresDatabase) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresDatabase, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-database) type UpdateProjectDataCacheContentHintPostgresDatabase within UpdateProjectDataCacheContentHintUnion: %w", string(data), err) + } - var updateProjectDataCacheContentHintPostgresURLNoSsl UpdateProjectDataCacheContentHintPostgresURLNoSsl = UpdateProjectDataCacheContentHintPostgresURLNoSsl{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresURLNoSsl, "", true, nil); err == nil { - u.UpdateProjectDataCacheContentHintPostgresURLNoSsl = &updateProjectDataCacheContentHintPostgresURLNoSsl - u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresURLNoSsl + u.UpdateProjectDataCacheContentHintPostgresDatabase = updateProjectDataCacheContentHintPostgresDatabase + u.Type = UpdateProjectDataCacheContentHintUnionTypePostgresDatabase return nil - } + case "postgres-url-no-ssl": + updateProjectDataCacheContentHintPostgresURLNoSsl := new(UpdateProjectDataCacheContentHintPostgresURLNoSsl) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresURLNoSsl, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == postgres-url-no-ssl) type UpdateProjectDataCacheContentHintPostgresURLNoSsl within UpdateProjectDataCacheContentHintUnion: %w", string(data), err) + } + + u.UpdateProjectDataCacheContentHintPostgresURLNoSsl = updateProjectDataCacheContentHintPostgresURLNoSsl + u.Type = UpdateProjectDataCacheContentHintUnionTypePostgresURLNoSsl + return nil + case "integration-store-secret": + updateProjectDataCacheContentHintIntegrationStoreSecret := new(UpdateProjectDataCacheContentHintIntegrationStoreSecret) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintIntegrationStoreSecret, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == integration-store-secret) type UpdateProjectDataCacheContentHintIntegrationStoreSecret within UpdateProjectDataCacheContentHintUnion: %w", string(data), err) + } + + u.UpdateProjectDataCacheContentHintIntegrationStoreSecret = updateProjectDataCacheContentHintIntegrationStoreSecret + u.Type = UpdateProjectDataCacheContentHintUnionTypeIntegrationStoreSecret + return nil + case "flags-connection-string": + updateProjectDataCacheContentHintFlagsConnectionString := new(UpdateProjectDataCacheContentHintFlagsConnectionString) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintFlagsConnectionString, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == flags-connection-string) type UpdateProjectDataCacheContentHintFlagsConnectionString within UpdateProjectDataCacheContentHintUnion: %w", string(data), err) + } - var updateProjectDataCacheContentHintFlagsConnectionString UpdateProjectDataCacheContentHintFlagsConnectionString = UpdateProjectDataCacheContentHintFlagsConnectionString{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintFlagsConnectionString, "", true, nil); err == nil { - u.UpdateProjectDataCacheContentHintFlagsConnectionString = &updateProjectDataCacheContentHintFlagsConnectionString - u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintFlagsConnectionString + u.UpdateProjectDataCacheContentHintFlagsConnectionString = updateProjectDataCacheContentHintFlagsConnectionString + u.Type = UpdateProjectDataCacheContentHintUnionTypeFlagsConnectionString return nil } @@ -2009,6 +2096,111 @@ func (o *UpdateProjectDataCacheEnv) GetContentHint() *UpdateProjectDataCacheCont return o.ContentHint } +func (o *UpdateProjectDataCacheEnv) GetContentHintRedisURL() *UpdateProjectDataCacheContentHintRedisURL { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectDataCacheContentHintRedisURL + } + return nil +} + +func (o *UpdateProjectDataCacheEnv) GetContentHintRedisRestAPIURL() *UpdateProjectDataCacheContentHintRedisRestAPIURL { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectDataCacheContentHintRedisRestAPIURL + } + return nil +} + +func (o *UpdateProjectDataCacheEnv) GetContentHintRedisRestAPIToken() *UpdateProjectDataCacheContentHintRedisRestAPIToken { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectDataCacheContentHintRedisRestAPIToken + } + return nil +} + +func (o *UpdateProjectDataCacheEnv) GetContentHintRedisRestAPIReadOnlyToken() *UpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken + } + return nil +} + +func (o *UpdateProjectDataCacheEnv) GetContentHintBlobReadWriteToken() *UpdateProjectDataCacheContentHintBlobReadWriteToken { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectDataCacheContentHintBlobReadWriteToken + } + return nil +} + +func (o *UpdateProjectDataCacheEnv) GetContentHintPostgresURL() *UpdateProjectDataCacheContentHintPostgresURL { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectDataCacheContentHintPostgresURL + } + return nil +} + +func (o *UpdateProjectDataCacheEnv) GetContentHintPostgresURLNonPooling() *UpdateProjectDataCacheContentHintPostgresURLNonPooling { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectDataCacheContentHintPostgresURLNonPooling + } + return nil +} + +func (o *UpdateProjectDataCacheEnv) GetContentHintPostgresPrismaURL() *UpdateProjectDataCacheContentHintPostgresPrismaURL { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectDataCacheContentHintPostgresPrismaURL + } + return nil +} + +func (o *UpdateProjectDataCacheEnv) GetContentHintPostgresUser() *UpdateProjectDataCacheContentHintPostgresUser { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectDataCacheContentHintPostgresUser + } + return nil +} + +func (o *UpdateProjectDataCacheEnv) GetContentHintPostgresHost() *UpdateProjectDataCacheContentHintPostgresHost { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectDataCacheContentHintPostgresHost + } + return nil +} + +func (o *UpdateProjectDataCacheEnv) GetContentHintPostgresPassword() *UpdateProjectDataCacheContentHintPostgresPassword { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectDataCacheContentHintPostgresPassword + } + return nil +} + +func (o *UpdateProjectDataCacheEnv) GetContentHintPostgresDatabase() *UpdateProjectDataCacheContentHintPostgresDatabase { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectDataCacheContentHintPostgresDatabase + } + return nil +} + +func (o *UpdateProjectDataCacheEnv) GetContentHintPostgresURLNoSsl() *UpdateProjectDataCacheContentHintPostgresURLNoSsl { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectDataCacheContentHintPostgresURLNoSsl + } + return nil +} + +func (o *UpdateProjectDataCacheEnv) GetContentHintIntegrationStoreSecret() *UpdateProjectDataCacheContentHintIntegrationStoreSecret { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectDataCacheContentHintIntegrationStoreSecret + } + return nil +} + +func (o *UpdateProjectDataCacheEnv) GetContentHintFlagsConnectionString() *UpdateProjectDataCacheContentHintFlagsConnectionString { + if v := o.GetContentHint(); v != nil { + return v.UpdateProjectDataCacheContentHintFlagsConnectionString + } + return nil +} + func (o *UpdateProjectDataCacheEnv) GetInternalContentHint() *UpdateProjectDataCacheInternalContentHint { if o == nil { return nil @@ -3763,11 +3955,11 @@ func (o *UpdateProjectDataCacheLinkGithub) GetProductionBranch() string { type UpdateProjectDataCacheLinkUnionType string const ( - UpdateProjectDataCacheLinkUnionTypeUpdateProjectDataCacheLinkGithub UpdateProjectDataCacheLinkUnionType = "updateProjectDataCache_link_Github" - UpdateProjectDataCacheLinkUnionTypeUpdateProjectDataCacheLinkGithubLimited UpdateProjectDataCacheLinkUnionType = "updateProjectDataCache_link_GithubLimited" - UpdateProjectDataCacheLinkUnionTypeUpdateProjectDataCacheLinkGithubCustomHost UpdateProjectDataCacheLinkUnionType = "updateProjectDataCache_link_GithubCustomHost" - UpdateProjectDataCacheLinkUnionTypeUpdateProjectDataCacheLinkGitlab UpdateProjectDataCacheLinkUnionType = "updateProjectDataCache_link_Gitlab" - UpdateProjectDataCacheLinkUnionTypeUpdateProjectDataCacheLinkBitbucket UpdateProjectDataCacheLinkUnionType = "updateProjectDataCache_link_Bitbucket" + UpdateProjectDataCacheLinkUnionTypeGithub UpdateProjectDataCacheLinkUnionType = "github" + UpdateProjectDataCacheLinkUnionTypeGithubLimited UpdateProjectDataCacheLinkUnionType = "github-limited" + UpdateProjectDataCacheLinkUnionTypeGithubCustomHost UpdateProjectDataCacheLinkUnionType = "github-custom-host" + UpdateProjectDataCacheLinkUnionTypeGitlab UpdateProjectDataCacheLinkUnionType = "gitlab" + UpdateProjectDataCacheLinkUnionTypeBitbucket UpdateProjectDataCacheLinkUnionType = "bitbucket" ) type UpdateProjectDataCacheLinkUnion struct { @@ -3780,85 +3972,122 @@ type UpdateProjectDataCacheLinkUnion struct { Type UpdateProjectDataCacheLinkUnionType } -func CreateUpdateProjectDataCacheLinkUnionUpdateProjectDataCacheLinkGithub(updateProjectDataCacheLinkGithub UpdateProjectDataCacheLinkGithub) UpdateProjectDataCacheLinkUnion { - typ := UpdateProjectDataCacheLinkUnionTypeUpdateProjectDataCacheLinkGithub +func CreateUpdateProjectDataCacheLinkUnionGithub(github UpdateProjectDataCacheLinkGithub) UpdateProjectDataCacheLinkUnion { + typ := UpdateProjectDataCacheLinkUnionTypeGithub + + typStr := UpdateProjectDataCacheTypeGithub(typ) + github.Type = typStr return UpdateProjectDataCacheLinkUnion{ - UpdateProjectDataCacheLinkGithub: &updateProjectDataCacheLinkGithub, + UpdateProjectDataCacheLinkGithub: &github, Type: typ, } } -func CreateUpdateProjectDataCacheLinkUnionUpdateProjectDataCacheLinkGithubLimited(updateProjectDataCacheLinkGithubLimited UpdateProjectDataCacheLinkGithubLimited) UpdateProjectDataCacheLinkUnion { - typ := UpdateProjectDataCacheLinkUnionTypeUpdateProjectDataCacheLinkGithubLimited +func CreateUpdateProjectDataCacheLinkUnionGithubLimited(githubLimited UpdateProjectDataCacheLinkGithubLimited) UpdateProjectDataCacheLinkUnion { + typ := UpdateProjectDataCacheLinkUnionTypeGithubLimited + + typStr := UpdateProjectDataCacheTypeGithubLimited(typ) + githubLimited.Type = typStr return UpdateProjectDataCacheLinkUnion{ - UpdateProjectDataCacheLinkGithubLimited: &updateProjectDataCacheLinkGithubLimited, + UpdateProjectDataCacheLinkGithubLimited: &githubLimited, Type: typ, } } -func CreateUpdateProjectDataCacheLinkUnionUpdateProjectDataCacheLinkGithubCustomHost(updateProjectDataCacheLinkGithubCustomHost UpdateProjectDataCacheLinkGithubCustomHost) UpdateProjectDataCacheLinkUnion { - typ := UpdateProjectDataCacheLinkUnionTypeUpdateProjectDataCacheLinkGithubCustomHost +func CreateUpdateProjectDataCacheLinkUnionGithubCustomHost(githubCustomHost UpdateProjectDataCacheLinkGithubCustomHost) UpdateProjectDataCacheLinkUnion { + typ := UpdateProjectDataCacheLinkUnionTypeGithubCustomHost + + typStr := UpdateProjectDataCacheTypeGithubCustomHost(typ) + githubCustomHost.Type = typStr return UpdateProjectDataCacheLinkUnion{ - UpdateProjectDataCacheLinkGithubCustomHost: &updateProjectDataCacheLinkGithubCustomHost, + UpdateProjectDataCacheLinkGithubCustomHost: &githubCustomHost, Type: typ, } } -func CreateUpdateProjectDataCacheLinkUnionUpdateProjectDataCacheLinkGitlab(updateProjectDataCacheLinkGitlab UpdateProjectDataCacheLinkGitlab) UpdateProjectDataCacheLinkUnion { - typ := UpdateProjectDataCacheLinkUnionTypeUpdateProjectDataCacheLinkGitlab +func CreateUpdateProjectDataCacheLinkUnionGitlab(gitlab UpdateProjectDataCacheLinkGitlab) UpdateProjectDataCacheLinkUnion { + typ := UpdateProjectDataCacheLinkUnionTypeGitlab + + typStr := UpdateProjectDataCacheTypeGitlab(typ) + gitlab.Type = typStr return UpdateProjectDataCacheLinkUnion{ - UpdateProjectDataCacheLinkGitlab: &updateProjectDataCacheLinkGitlab, + UpdateProjectDataCacheLinkGitlab: &gitlab, Type: typ, } } -func CreateUpdateProjectDataCacheLinkUnionUpdateProjectDataCacheLinkBitbucket(updateProjectDataCacheLinkBitbucket UpdateProjectDataCacheLinkBitbucket) UpdateProjectDataCacheLinkUnion { - typ := UpdateProjectDataCacheLinkUnionTypeUpdateProjectDataCacheLinkBitbucket +func CreateUpdateProjectDataCacheLinkUnionBitbucket(bitbucket UpdateProjectDataCacheLinkBitbucket) UpdateProjectDataCacheLinkUnion { + typ := UpdateProjectDataCacheLinkUnionTypeBitbucket + + typStr := UpdateProjectDataCacheTypeBitbucket(typ) + bitbucket.Type = typStr return UpdateProjectDataCacheLinkUnion{ - UpdateProjectDataCacheLinkBitbucket: &updateProjectDataCacheLinkBitbucket, + UpdateProjectDataCacheLinkBitbucket: &bitbucket, Type: typ, } } func (u *UpdateProjectDataCacheLinkUnion) UnmarshalJSON(data []byte) error { - var updateProjectDataCacheLinkGitlab UpdateProjectDataCacheLinkGitlab = UpdateProjectDataCacheLinkGitlab{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheLinkGitlab, "", true, nil); err == nil { - u.UpdateProjectDataCacheLinkGitlab = &updateProjectDataCacheLinkGitlab - u.Type = UpdateProjectDataCacheLinkUnionTypeUpdateProjectDataCacheLinkGitlab - return nil + type discriminator struct { + Type string `json:"type"` } - var updateProjectDataCacheLinkBitbucket UpdateProjectDataCacheLinkBitbucket = UpdateProjectDataCacheLinkBitbucket{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheLinkBitbucket, "", true, nil); err == nil { - u.UpdateProjectDataCacheLinkBitbucket = &updateProjectDataCacheLinkBitbucket - u.Type = UpdateProjectDataCacheLinkUnionTypeUpdateProjectDataCacheLinkBitbucket - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var updateProjectDataCacheLinkGithubCustomHost UpdateProjectDataCacheLinkGithubCustomHost = UpdateProjectDataCacheLinkGithubCustomHost{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheLinkGithubCustomHost, "", true, nil); err == nil { - u.UpdateProjectDataCacheLinkGithubCustomHost = &updateProjectDataCacheLinkGithubCustomHost - u.Type = UpdateProjectDataCacheLinkUnionTypeUpdateProjectDataCacheLinkGithubCustomHost + switch dis.Type { + case "github": + updateProjectDataCacheLinkGithub := new(UpdateProjectDataCacheLinkGithub) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheLinkGithub, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == github) type UpdateProjectDataCacheLinkGithub within UpdateProjectDataCacheLinkUnion: %w", string(data), err) + } + + u.UpdateProjectDataCacheLinkGithub = updateProjectDataCacheLinkGithub + u.Type = UpdateProjectDataCacheLinkUnionTypeGithub return nil - } + case "github-limited": + updateProjectDataCacheLinkGithubLimited := new(UpdateProjectDataCacheLinkGithubLimited) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheLinkGithubLimited, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == github-limited) type UpdateProjectDataCacheLinkGithubLimited within UpdateProjectDataCacheLinkUnion: %w", string(data), err) + } - var updateProjectDataCacheLinkGithub UpdateProjectDataCacheLinkGithub = UpdateProjectDataCacheLinkGithub{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheLinkGithub, "", true, nil); err == nil { - u.UpdateProjectDataCacheLinkGithub = &updateProjectDataCacheLinkGithub - u.Type = UpdateProjectDataCacheLinkUnionTypeUpdateProjectDataCacheLinkGithub + u.UpdateProjectDataCacheLinkGithubLimited = updateProjectDataCacheLinkGithubLimited + u.Type = UpdateProjectDataCacheLinkUnionTypeGithubLimited return nil - } + case "github-custom-host": + updateProjectDataCacheLinkGithubCustomHost := new(UpdateProjectDataCacheLinkGithubCustomHost) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheLinkGithubCustomHost, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == github-custom-host) type UpdateProjectDataCacheLinkGithubCustomHost within UpdateProjectDataCacheLinkUnion: %w", string(data), err) + } + + u.UpdateProjectDataCacheLinkGithubCustomHost = updateProjectDataCacheLinkGithubCustomHost + u.Type = UpdateProjectDataCacheLinkUnionTypeGithubCustomHost + return nil + case "gitlab": + updateProjectDataCacheLinkGitlab := new(UpdateProjectDataCacheLinkGitlab) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheLinkGitlab, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == gitlab) type UpdateProjectDataCacheLinkGitlab within UpdateProjectDataCacheLinkUnion: %w", string(data), err) + } + + u.UpdateProjectDataCacheLinkGitlab = updateProjectDataCacheLinkGitlab + u.Type = UpdateProjectDataCacheLinkUnionTypeGitlab + return nil + case "bitbucket": + updateProjectDataCacheLinkBitbucket := new(UpdateProjectDataCacheLinkBitbucket) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheLinkBitbucket, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == bitbucket) type UpdateProjectDataCacheLinkBitbucket within UpdateProjectDataCacheLinkUnion: %w", string(data), err) + } - var updateProjectDataCacheLinkGithubLimited UpdateProjectDataCacheLinkGithubLimited = UpdateProjectDataCacheLinkGithubLimited{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheLinkGithubLimited, "", true, nil); err == nil { - u.UpdateProjectDataCacheLinkGithubLimited = &updateProjectDataCacheLinkGithubLimited - u.Type = UpdateProjectDataCacheLinkUnionTypeUpdateProjectDataCacheLinkGithubLimited + u.UpdateProjectDataCacheLinkBitbucket = updateProjectDataCacheLinkBitbucket + u.Type = UpdateProjectDataCacheLinkUnionTypeBitbucket return nil } @@ -7439,8 +7668,8 @@ func (o *UpdateProjectDataCacheProtectionBypassIntegrationAutomationBypass) GetC type UpdateProjectDataCacheProtectionBypassUnionType string const ( - UpdateProjectDataCacheProtectionBypassUnionTypeUpdateProjectDataCacheProtectionBypassIntegrationAutomationBypass UpdateProjectDataCacheProtectionBypassUnionType = "updateProjectDataCache_protectionBypass_IntegrationAutomationBypass" - UpdateProjectDataCacheProtectionBypassUnionTypeUpdateProjectDataCacheProtectionBypassAutomationBypass UpdateProjectDataCacheProtectionBypassUnionType = "updateProjectDataCache_protectionBypass_AutomationBypass" + UpdateProjectDataCacheProtectionBypassUnionTypeIntegrationAutomationBypass UpdateProjectDataCacheProtectionBypassUnionType = "integration-automation-bypass" + UpdateProjectDataCacheProtectionBypassUnionTypeAutomationBypass UpdateProjectDataCacheProtectionBypassUnionType = "automation-bypass" ) type UpdateProjectDataCacheProtectionBypassUnion struct { @@ -7450,37 +7679,59 @@ type UpdateProjectDataCacheProtectionBypassUnion struct { Type UpdateProjectDataCacheProtectionBypassUnionType } -func CreateUpdateProjectDataCacheProtectionBypassUnionUpdateProjectDataCacheProtectionBypassIntegrationAutomationBypass(updateProjectDataCacheProtectionBypassIntegrationAutomationBypass UpdateProjectDataCacheProtectionBypassIntegrationAutomationBypass) UpdateProjectDataCacheProtectionBypassUnion { - typ := UpdateProjectDataCacheProtectionBypassUnionTypeUpdateProjectDataCacheProtectionBypassIntegrationAutomationBypass +func CreateUpdateProjectDataCacheProtectionBypassUnionIntegrationAutomationBypass(integrationAutomationBypass UpdateProjectDataCacheProtectionBypassIntegrationAutomationBypass) UpdateProjectDataCacheProtectionBypassUnion { + typ := UpdateProjectDataCacheProtectionBypassUnionTypeIntegrationAutomationBypass + + typStr := UpdateProjectDataCacheScopeIntegrationAutomationBypass(typ) + integrationAutomationBypass.Scope = typStr return UpdateProjectDataCacheProtectionBypassUnion{ - UpdateProjectDataCacheProtectionBypassIntegrationAutomationBypass: &updateProjectDataCacheProtectionBypassIntegrationAutomationBypass, + UpdateProjectDataCacheProtectionBypassIntegrationAutomationBypass: &integrationAutomationBypass, Type: typ, } } -func CreateUpdateProjectDataCacheProtectionBypassUnionUpdateProjectDataCacheProtectionBypassAutomationBypass(updateProjectDataCacheProtectionBypassAutomationBypass UpdateProjectDataCacheProtectionBypassAutomationBypass) UpdateProjectDataCacheProtectionBypassUnion { - typ := UpdateProjectDataCacheProtectionBypassUnionTypeUpdateProjectDataCacheProtectionBypassAutomationBypass +func CreateUpdateProjectDataCacheProtectionBypassUnionAutomationBypass(automationBypass UpdateProjectDataCacheProtectionBypassAutomationBypass) UpdateProjectDataCacheProtectionBypassUnion { + typ := UpdateProjectDataCacheProtectionBypassUnionTypeAutomationBypass + + typStr := UpdateProjectDataCacheScopeAutomationBypass(typ) + automationBypass.Scope = typStr return UpdateProjectDataCacheProtectionBypassUnion{ - UpdateProjectDataCacheProtectionBypassAutomationBypass: &updateProjectDataCacheProtectionBypassAutomationBypass, + UpdateProjectDataCacheProtectionBypassAutomationBypass: &automationBypass, Type: typ, } } func (u *UpdateProjectDataCacheProtectionBypassUnion) UnmarshalJSON(data []byte) error { - var updateProjectDataCacheProtectionBypassIntegrationAutomationBypass UpdateProjectDataCacheProtectionBypassIntegrationAutomationBypass = UpdateProjectDataCacheProtectionBypassIntegrationAutomationBypass{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheProtectionBypassIntegrationAutomationBypass, "", true, nil); err == nil { - u.UpdateProjectDataCacheProtectionBypassIntegrationAutomationBypass = &updateProjectDataCacheProtectionBypassIntegrationAutomationBypass - u.Type = UpdateProjectDataCacheProtectionBypassUnionTypeUpdateProjectDataCacheProtectionBypassIntegrationAutomationBypass - return nil + type discriminator struct { + Scope string `json:"scope"` } - var updateProjectDataCacheProtectionBypassAutomationBypass UpdateProjectDataCacheProtectionBypassAutomationBypass = UpdateProjectDataCacheProtectionBypassAutomationBypass{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheProtectionBypassAutomationBypass, "", true, nil); err == nil { - u.UpdateProjectDataCacheProtectionBypassAutomationBypass = &updateProjectDataCacheProtectionBypassAutomationBypass - u.Type = UpdateProjectDataCacheProtectionBypassUnionTypeUpdateProjectDataCacheProtectionBypassAutomationBypass + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Scope { + case "integration-automation-bypass": + updateProjectDataCacheProtectionBypassIntegrationAutomationBypass := new(UpdateProjectDataCacheProtectionBypassIntegrationAutomationBypass) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheProtectionBypassIntegrationAutomationBypass, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Scope == integration-automation-bypass) type UpdateProjectDataCacheProtectionBypassIntegrationAutomationBypass within UpdateProjectDataCacheProtectionBypassUnion: %w", string(data), err) + } + + u.UpdateProjectDataCacheProtectionBypassIntegrationAutomationBypass = updateProjectDataCacheProtectionBypassIntegrationAutomationBypass + u.Type = UpdateProjectDataCacheProtectionBypassUnionTypeIntegrationAutomationBypass + return nil + case "automation-bypass": + updateProjectDataCacheProtectionBypassAutomationBypass := new(UpdateProjectDataCacheProtectionBypassAutomationBypass) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheProtectionBypassAutomationBypass, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Scope == automation-bypass) type UpdateProjectDataCacheProtectionBypassAutomationBypass within UpdateProjectDataCacheProtectionBypassUnion: %w", string(data), err) + } + + u.UpdateProjectDataCacheProtectionBypassAutomationBypass = updateProjectDataCacheProtectionBypassAutomationBypass + u.Type = UpdateProjectDataCacheProtectionBypassUnionTypeAutomationBypass return nil } @@ -8567,8 +8818,8 @@ func (o *UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry2) GetValue() Upda type UpdateProjectDataCacheBlockHistoryHasUnion2Type string const ( - UpdateProjectDataCacheBlockHistoryHasUnion2TypeUpdateProjectDataCacheBlockHistoryHasXVercelIPCountry2 UpdateProjectDataCacheBlockHistoryHasUnion2Type = "updateProjectDataCache_blockHistory_has_XVercelIPCountry_2" - UpdateProjectDataCacheBlockHistoryHasUnion2TypeUpdateProjectDataCacheBlockHistoryHasHost2 UpdateProjectDataCacheBlockHistoryHasUnion2Type = "updateProjectDataCache_blockHistory_has_Host_2" + UpdateProjectDataCacheBlockHistoryHasUnion2TypeHeader UpdateProjectDataCacheBlockHistoryHasUnion2Type = "header" + UpdateProjectDataCacheBlockHistoryHasUnion2TypeHost UpdateProjectDataCacheBlockHistoryHasUnion2Type = "host" ) type UpdateProjectDataCacheBlockHistoryHasUnion2 struct { @@ -8578,37 +8829,59 @@ type UpdateProjectDataCacheBlockHistoryHasUnion2 struct { Type UpdateProjectDataCacheBlockHistoryHasUnion2Type } -func CreateUpdateProjectDataCacheBlockHistoryHasUnion2UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry2(updateProjectDataCacheBlockHistoryHasXVercelIPCountry2 UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry2) UpdateProjectDataCacheBlockHistoryHasUnion2 { - typ := UpdateProjectDataCacheBlockHistoryHasUnion2TypeUpdateProjectDataCacheBlockHistoryHasXVercelIPCountry2 +func CreateUpdateProjectDataCacheBlockHistoryHasUnion2Header(header UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry2) UpdateProjectDataCacheBlockHistoryHasUnion2 { + typ := UpdateProjectDataCacheBlockHistoryHasUnion2TypeHeader + + typStr := UpdateProjectDataCacheBlockHistoryTypeHeader2(typ) + header.Type = typStr return UpdateProjectDataCacheBlockHistoryHasUnion2{ - UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry2: &updateProjectDataCacheBlockHistoryHasXVercelIPCountry2, + UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry2: &header, Type: typ, } } -func CreateUpdateProjectDataCacheBlockHistoryHasUnion2UpdateProjectDataCacheBlockHistoryHasHost2(updateProjectDataCacheBlockHistoryHasHost2 UpdateProjectDataCacheBlockHistoryHasHost2) UpdateProjectDataCacheBlockHistoryHasUnion2 { - typ := UpdateProjectDataCacheBlockHistoryHasUnion2TypeUpdateProjectDataCacheBlockHistoryHasHost2 +func CreateUpdateProjectDataCacheBlockHistoryHasUnion2Host(host UpdateProjectDataCacheBlockHistoryHasHost2) UpdateProjectDataCacheBlockHistoryHasUnion2 { + typ := UpdateProjectDataCacheBlockHistoryHasUnion2TypeHost + + typStr := UpdateProjectDataCacheBlockHistoryTypeHost2(typ) + host.Type = typStr return UpdateProjectDataCacheBlockHistoryHasUnion2{ - UpdateProjectDataCacheBlockHistoryHasHost2: &updateProjectDataCacheBlockHistoryHasHost2, + UpdateProjectDataCacheBlockHistoryHasHost2: &host, Type: typ, } } func (u *UpdateProjectDataCacheBlockHistoryHasUnion2) UnmarshalJSON(data []byte) error { - var updateProjectDataCacheBlockHistoryHasXVercelIPCountry2 UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry2 = UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry2{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheBlockHistoryHasXVercelIPCountry2, "", true, nil); err == nil { - u.UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry2 = &updateProjectDataCacheBlockHistoryHasXVercelIPCountry2 - u.Type = UpdateProjectDataCacheBlockHistoryHasUnion2TypeUpdateProjectDataCacheBlockHistoryHasXVercelIPCountry2 - return nil + type discriminator struct { + Type string `json:"type"` } - var updateProjectDataCacheBlockHistoryHasHost2 UpdateProjectDataCacheBlockHistoryHasHost2 = UpdateProjectDataCacheBlockHistoryHasHost2{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheBlockHistoryHasHost2, "", true, nil); err == nil { - u.UpdateProjectDataCacheBlockHistoryHasHost2 = &updateProjectDataCacheBlockHistoryHasHost2 - u.Type = UpdateProjectDataCacheBlockHistoryHasUnion2TypeUpdateProjectDataCacheBlockHistoryHasHost2 + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) + } + + switch dis.Type { + case "header": + updateProjectDataCacheBlockHistoryHasXVercelIPCountry2 := new(UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry2) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheBlockHistoryHasXVercelIPCountry2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == header) type UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry2 within UpdateProjectDataCacheBlockHistoryHasUnion2: %w", string(data), err) + } + + u.UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry2 = updateProjectDataCacheBlockHistoryHasXVercelIPCountry2 + u.Type = UpdateProjectDataCacheBlockHistoryHasUnion2TypeHeader + return nil + case "host": + updateProjectDataCacheBlockHistoryHasHost2 := new(UpdateProjectDataCacheBlockHistoryHasHost2) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheBlockHistoryHasHost2, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == host) type UpdateProjectDataCacheBlockHistoryHasHost2 within UpdateProjectDataCacheBlockHistoryHasUnion2: %w", string(data), err) + } + + u.UpdateProjectDataCacheBlockHistoryHasHost2 = updateProjectDataCacheBlockHistoryHasHost2 + u.Type = UpdateProjectDataCacheBlockHistoryHasUnion2TypeHost return nil } @@ -9088,8 +9361,8 @@ func (o *UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry1) GetValue() Upda type UpdateProjectDataCacheBlockHistoryHasUnion1Type string const ( - UpdateProjectDataCacheBlockHistoryHasUnion1TypeUpdateProjectDataCacheBlockHistoryHasXVercelIPCountry1 UpdateProjectDataCacheBlockHistoryHasUnion1Type = "updateProjectDataCache_blockHistory_has_XVercelIPCountry_1" - UpdateProjectDataCacheBlockHistoryHasUnion1TypeUpdateProjectDataCacheBlockHistoryHasHost1 UpdateProjectDataCacheBlockHistoryHasUnion1Type = "updateProjectDataCache_blockHistory_has_Host_1" + UpdateProjectDataCacheBlockHistoryHasUnion1TypeHeader UpdateProjectDataCacheBlockHistoryHasUnion1Type = "header" + UpdateProjectDataCacheBlockHistoryHasUnion1TypeHost UpdateProjectDataCacheBlockHistoryHasUnion1Type = "host" ) type UpdateProjectDataCacheBlockHistoryHasUnion1 struct { @@ -9099,37 +9372,59 @@ type UpdateProjectDataCacheBlockHistoryHasUnion1 struct { Type UpdateProjectDataCacheBlockHistoryHasUnion1Type } -func CreateUpdateProjectDataCacheBlockHistoryHasUnion1UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry1(updateProjectDataCacheBlockHistoryHasXVercelIPCountry1 UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry1) UpdateProjectDataCacheBlockHistoryHasUnion1 { - typ := UpdateProjectDataCacheBlockHistoryHasUnion1TypeUpdateProjectDataCacheBlockHistoryHasXVercelIPCountry1 +func CreateUpdateProjectDataCacheBlockHistoryHasUnion1Header(header UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry1) UpdateProjectDataCacheBlockHistoryHasUnion1 { + typ := UpdateProjectDataCacheBlockHistoryHasUnion1TypeHeader + + typStr := UpdateProjectDataCacheBlockHistoryTypeHeader1(typ) + header.Type = typStr return UpdateProjectDataCacheBlockHistoryHasUnion1{ - UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry1: &updateProjectDataCacheBlockHistoryHasXVercelIPCountry1, + UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry1: &header, Type: typ, } } -func CreateUpdateProjectDataCacheBlockHistoryHasUnion1UpdateProjectDataCacheBlockHistoryHasHost1(updateProjectDataCacheBlockHistoryHasHost1 UpdateProjectDataCacheBlockHistoryHasHost1) UpdateProjectDataCacheBlockHistoryHasUnion1 { - typ := UpdateProjectDataCacheBlockHistoryHasUnion1TypeUpdateProjectDataCacheBlockHistoryHasHost1 +func CreateUpdateProjectDataCacheBlockHistoryHasUnion1Host(host UpdateProjectDataCacheBlockHistoryHasHost1) UpdateProjectDataCacheBlockHistoryHasUnion1 { + typ := UpdateProjectDataCacheBlockHistoryHasUnion1TypeHost + + typStr := UpdateProjectDataCacheBlockHistoryTypeHost1(typ) + host.Type = typStr return UpdateProjectDataCacheBlockHistoryHasUnion1{ - UpdateProjectDataCacheBlockHistoryHasHost1: &updateProjectDataCacheBlockHistoryHasHost1, + UpdateProjectDataCacheBlockHistoryHasHost1: &host, Type: typ, } } func (u *UpdateProjectDataCacheBlockHistoryHasUnion1) UnmarshalJSON(data []byte) error { - var updateProjectDataCacheBlockHistoryHasXVercelIPCountry1 UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry1 = UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry1{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheBlockHistoryHasXVercelIPCountry1, "", true, nil); err == nil { - u.UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry1 = &updateProjectDataCacheBlockHistoryHasXVercelIPCountry1 - u.Type = UpdateProjectDataCacheBlockHistoryHasUnion1TypeUpdateProjectDataCacheBlockHistoryHasXVercelIPCountry1 - return nil + type discriminator struct { + Type string `json:"type"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var updateProjectDataCacheBlockHistoryHasHost1 UpdateProjectDataCacheBlockHistoryHasHost1 = UpdateProjectDataCacheBlockHistoryHasHost1{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheBlockHistoryHasHost1, "", true, nil); err == nil { - u.UpdateProjectDataCacheBlockHistoryHasHost1 = &updateProjectDataCacheBlockHistoryHasHost1 - u.Type = UpdateProjectDataCacheBlockHistoryHasUnion1TypeUpdateProjectDataCacheBlockHistoryHasHost1 + switch dis.Type { + case "header": + updateProjectDataCacheBlockHistoryHasXVercelIPCountry1 := new(UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry1) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheBlockHistoryHasXVercelIPCountry1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == header) type UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry1 within UpdateProjectDataCacheBlockHistoryHasUnion1: %w", string(data), err) + } + + u.UpdateProjectDataCacheBlockHistoryHasXVercelIPCountry1 = updateProjectDataCacheBlockHistoryHasXVercelIPCountry1 + u.Type = UpdateProjectDataCacheBlockHistoryHasUnion1TypeHeader + return nil + case "host": + updateProjectDataCacheBlockHistoryHasHost1 := new(UpdateProjectDataCacheBlockHistoryHasHost1) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheBlockHistoryHasHost1, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == host) type UpdateProjectDataCacheBlockHistoryHasHost1 within UpdateProjectDataCacheBlockHistoryHasUnion1: %w", string(data), err) + } + + u.UpdateProjectDataCacheBlockHistoryHasHost1 = updateProjectDataCacheBlockHistoryHasHost1 + u.Type = UpdateProjectDataCacheBlockHistoryHasUnion1TypeHost return nil } @@ -9591,10 +9886,10 @@ func (o *UpdateProjectDataCacheBlockHistoryBlocked) GetIsCascading() *bool { type UpdateProjectDataCacheBlockHistoryUnionType string const ( - UpdateProjectDataCacheBlockHistoryUnionTypeUpdateProjectDataCacheBlockHistoryBlocked UpdateProjectDataCacheBlockHistoryUnionType = "updateProjectDataCache_blockHistory_Blocked" - UpdateProjectDataCacheBlockHistoryUnionTypeUpdateProjectDataCacheBlockHistoryUnblocked UpdateProjectDataCacheBlockHistoryUnionType = "updateProjectDataCache_blockHistory_Unblocked" - UpdateProjectDataCacheBlockHistoryUnionTypeUpdateProjectDataCacheBlockHistoryRouteBlocked UpdateProjectDataCacheBlockHistoryUnionType = "updateProjectDataCache_blockHistory_RouteBlocked" - UpdateProjectDataCacheBlockHistoryUnionTypeUpdateProjectDataCacheBlockHistoryRouteUnblocked UpdateProjectDataCacheBlockHistoryUnionType = "updateProjectDataCache_blockHistory_RouteUnblocked" + UpdateProjectDataCacheBlockHistoryUnionTypeBlocked UpdateProjectDataCacheBlockHistoryUnionType = "blocked" + UpdateProjectDataCacheBlockHistoryUnionTypeUnblocked UpdateProjectDataCacheBlockHistoryUnionType = "unblocked" + UpdateProjectDataCacheBlockHistoryUnionTypeRouteBlocked UpdateProjectDataCacheBlockHistoryUnionType = "route-blocked" + UpdateProjectDataCacheBlockHistoryUnionTypeRouteUnblocked UpdateProjectDataCacheBlockHistoryUnionType = "route-unblocked" ) type UpdateProjectDataCacheBlockHistoryUnion struct { @@ -9606,69 +9901,101 @@ type UpdateProjectDataCacheBlockHistoryUnion struct { Type UpdateProjectDataCacheBlockHistoryUnionType } -func CreateUpdateProjectDataCacheBlockHistoryUnionUpdateProjectDataCacheBlockHistoryBlocked(updateProjectDataCacheBlockHistoryBlocked UpdateProjectDataCacheBlockHistoryBlocked) UpdateProjectDataCacheBlockHistoryUnion { - typ := UpdateProjectDataCacheBlockHistoryUnionTypeUpdateProjectDataCacheBlockHistoryBlocked +func CreateUpdateProjectDataCacheBlockHistoryUnionBlocked(blocked UpdateProjectDataCacheBlockHistoryBlocked) UpdateProjectDataCacheBlockHistoryUnion { + typ := UpdateProjectDataCacheBlockHistoryUnionTypeBlocked + + typStr := UpdateProjectDataCacheBlockHistoryActionBlocked(typ) + blocked.Action = typStr return UpdateProjectDataCacheBlockHistoryUnion{ - UpdateProjectDataCacheBlockHistoryBlocked: &updateProjectDataCacheBlockHistoryBlocked, + UpdateProjectDataCacheBlockHistoryBlocked: &blocked, Type: typ, } } -func CreateUpdateProjectDataCacheBlockHistoryUnionUpdateProjectDataCacheBlockHistoryUnblocked(updateProjectDataCacheBlockHistoryUnblocked UpdateProjectDataCacheBlockHistoryUnblocked) UpdateProjectDataCacheBlockHistoryUnion { - typ := UpdateProjectDataCacheBlockHistoryUnionTypeUpdateProjectDataCacheBlockHistoryUnblocked +func CreateUpdateProjectDataCacheBlockHistoryUnionUnblocked(unblocked UpdateProjectDataCacheBlockHistoryUnblocked) UpdateProjectDataCacheBlockHistoryUnion { + typ := UpdateProjectDataCacheBlockHistoryUnionTypeUnblocked + + typStr := UpdateProjectDataCacheActionUnblocked(typ) + unblocked.Action = typStr return UpdateProjectDataCacheBlockHistoryUnion{ - UpdateProjectDataCacheBlockHistoryUnblocked: &updateProjectDataCacheBlockHistoryUnblocked, + UpdateProjectDataCacheBlockHistoryUnblocked: &unblocked, Type: typ, } } -func CreateUpdateProjectDataCacheBlockHistoryUnionUpdateProjectDataCacheBlockHistoryRouteBlocked(updateProjectDataCacheBlockHistoryRouteBlocked UpdateProjectDataCacheBlockHistoryRouteBlocked) UpdateProjectDataCacheBlockHistoryUnion { - typ := UpdateProjectDataCacheBlockHistoryUnionTypeUpdateProjectDataCacheBlockHistoryRouteBlocked +func CreateUpdateProjectDataCacheBlockHistoryUnionRouteBlocked(routeBlocked UpdateProjectDataCacheBlockHistoryRouteBlocked) UpdateProjectDataCacheBlockHistoryUnion { + typ := UpdateProjectDataCacheBlockHistoryUnionTypeRouteBlocked + + typStr := UpdateProjectDataCacheActionRouteBlocked(typ) + routeBlocked.Action = typStr return UpdateProjectDataCacheBlockHistoryUnion{ - UpdateProjectDataCacheBlockHistoryRouteBlocked: &updateProjectDataCacheBlockHistoryRouteBlocked, + UpdateProjectDataCacheBlockHistoryRouteBlocked: &routeBlocked, Type: typ, } } -func CreateUpdateProjectDataCacheBlockHistoryUnionUpdateProjectDataCacheBlockHistoryRouteUnblocked(updateProjectDataCacheBlockHistoryRouteUnblocked UpdateProjectDataCacheBlockHistoryRouteUnblocked) UpdateProjectDataCacheBlockHistoryUnion { - typ := UpdateProjectDataCacheBlockHistoryUnionTypeUpdateProjectDataCacheBlockHistoryRouteUnblocked +func CreateUpdateProjectDataCacheBlockHistoryUnionRouteUnblocked(routeUnblocked UpdateProjectDataCacheBlockHistoryRouteUnblocked) UpdateProjectDataCacheBlockHistoryUnion { + typ := UpdateProjectDataCacheBlockHistoryUnionTypeRouteUnblocked + + typStr := UpdateProjectDataCacheActionRouteUnblocked(typ) + routeUnblocked.Action = typStr return UpdateProjectDataCacheBlockHistoryUnion{ - UpdateProjectDataCacheBlockHistoryRouteUnblocked: &updateProjectDataCacheBlockHistoryRouteUnblocked, + UpdateProjectDataCacheBlockHistoryRouteUnblocked: &routeUnblocked, Type: typ, } } func (u *UpdateProjectDataCacheBlockHistoryUnion) UnmarshalJSON(data []byte) error { - var updateProjectDataCacheBlockHistoryBlocked UpdateProjectDataCacheBlockHistoryBlocked = UpdateProjectDataCacheBlockHistoryBlocked{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheBlockHistoryBlocked, "", true, nil); err == nil { - u.UpdateProjectDataCacheBlockHistoryBlocked = &updateProjectDataCacheBlockHistoryBlocked - u.Type = UpdateProjectDataCacheBlockHistoryUnionTypeUpdateProjectDataCacheBlockHistoryBlocked - return nil + type discriminator struct { + Action string `json:"action"` } - var updateProjectDataCacheBlockHistoryRouteBlocked UpdateProjectDataCacheBlockHistoryRouteBlocked = UpdateProjectDataCacheBlockHistoryRouteBlocked{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheBlockHistoryRouteBlocked, "", true, nil); err == nil { - u.UpdateProjectDataCacheBlockHistoryRouteBlocked = &updateProjectDataCacheBlockHistoryRouteBlocked - u.Type = UpdateProjectDataCacheBlockHistoryUnionTypeUpdateProjectDataCacheBlockHistoryRouteBlocked - return nil + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var updateProjectDataCacheBlockHistoryRouteUnblocked UpdateProjectDataCacheBlockHistoryRouteUnblocked = UpdateProjectDataCacheBlockHistoryRouteUnblocked{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheBlockHistoryRouteUnblocked, "", true, nil); err == nil { - u.UpdateProjectDataCacheBlockHistoryRouteUnblocked = &updateProjectDataCacheBlockHistoryRouteUnblocked - u.Type = UpdateProjectDataCacheBlockHistoryUnionTypeUpdateProjectDataCacheBlockHistoryRouteUnblocked + switch dis.Action { + case "blocked": + updateProjectDataCacheBlockHistoryBlocked := new(UpdateProjectDataCacheBlockHistoryBlocked) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheBlockHistoryBlocked, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Action == blocked) type UpdateProjectDataCacheBlockHistoryBlocked within UpdateProjectDataCacheBlockHistoryUnion: %w", string(data), err) + } + + u.UpdateProjectDataCacheBlockHistoryBlocked = updateProjectDataCacheBlockHistoryBlocked + u.Type = UpdateProjectDataCacheBlockHistoryUnionTypeBlocked return nil - } + case "unblocked": + updateProjectDataCacheBlockHistoryUnblocked := new(UpdateProjectDataCacheBlockHistoryUnblocked) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheBlockHistoryUnblocked, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Action == unblocked) type UpdateProjectDataCacheBlockHistoryUnblocked within UpdateProjectDataCacheBlockHistoryUnion: %w", string(data), err) + } - var updateProjectDataCacheBlockHistoryUnblocked UpdateProjectDataCacheBlockHistoryUnblocked = UpdateProjectDataCacheBlockHistoryUnblocked{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheBlockHistoryUnblocked, "", true, nil); err == nil { - u.UpdateProjectDataCacheBlockHistoryUnblocked = &updateProjectDataCacheBlockHistoryUnblocked - u.Type = UpdateProjectDataCacheBlockHistoryUnionTypeUpdateProjectDataCacheBlockHistoryUnblocked + u.UpdateProjectDataCacheBlockHistoryUnblocked = updateProjectDataCacheBlockHistoryUnblocked + u.Type = UpdateProjectDataCacheBlockHistoryUnionTypeUnblocked + return nil + case "route-blocked": + updateProjectDataCacheBlockHistoryRouteBlocked := new(UpdateProjectDataCacheBlockHistoryRouteBlocked) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheBlockHistoryRouteBlocked, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Action == route-blocked) type UpdateProjectDataCacheBlockHistoryRouteBlocked within UpdateProjectDataCacheBlockHistoryUnion: %w", string(data), err) + } + + u.UpdateProjectDataCacheBlockHistoryRouteBlocked = updateProjectDataCacheBlockHistoryRouteBlocked + u.Type = UpdateProjectDataCacheBlockHistoryUnionTypeRouteBlocked + return nil + case "route-unblocked": + updateProjectDataCacheBlockHistoryRouteUnblocked := new(UpdateProjectDataCacheBlockHistoryRouteUnblocked) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheBlockHistoryRouteUnblocked, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Action == route-unblocked) type UpdateProjectDataCacheBlockHistoryRouteUnblocked within UpdateProjectDataCacheBlockHistoryUnion: %w", string(data), err) + } + + u.UpdateProjectDataCacheBlockHistoryRouteUnblocked = updateProjectDataCacheBlockHistoryRouteUnblocked + u.Type = UpdateProjectDataCacheBlockHistoryUnionTypeRouteUnblocked return nil } @@ -9930,8 +10257,8 @@ func (o *UpdateProjectDataCacheInternalRouteHasXVercelIPCountry) GetValue() Upda type UpdateProjectDataCacheInternalRouteHasUnionType string const ( - UpdateProjectDataCacheInternalRouteHasUnionTypeUpdateProjectDataCacheInternalRouteHasXVercelIPCountry UpdateProjectDataCacheInternalRouteHasUnionType = "updateProjectDataCache_internalRoute_has_XVercelIPCountry" - UpdateProjectDataCacheInternalRouteHasUnionTypeUpdateProjectDataCacheInternalRouteHasHost UpdateProjectDataCacheInternalRouteHasUnionType = "updateProjectDataCache_internalRoute_has_Host" + UpdateProjectDataCacheInternalRouteHasUnionTypeHeader UpdateProjectDataCacheInternalRouteHasUnionType = "header" + UpdateProjectDataCacheInternalRouteHasUnionTypeHost UpdateProjectDataCacheInternalRouteHasUnionType = "host" ) type UpdateProjectDataCacheInternalRouteHasUnion struct { @@ -9941,37 +10268,59 @@ type UpdateProjectDataCacheInternalRouteHasUnion struct { Type UpdateProjectDataCacheInternalRouteHasUnionType } -func CreateUpdateProjectDataCacheInternalRouteHasUnionUpdateProjectDataCacheInternalRouteHasXVercelIPCountry(updateProjectDataCacheInternalRouteHasXVercelIPCountry UpdateProjectDataCacheInternalRouteHasXVercelIPCountry) UpdateProjectDataCacheInternalRouteHasUnion { - typ := UpdateProjectDataCacheInternalRouteHasUnionTypeUpdateProjectDataCacheInternalRouteHasXVercelIPCountry +func CreateUpdateProjectDataCacheInternalRouteHasUnionHeader(header UpdateProjectDataCacheInternalRouteHasXVercelIPCountry) UpdateProjectDataCacheInternalRouteHasUnion { + typ := UpdateProjectDataCacheInternalRouteHasUnionTypeHeader + + typStr := UpdateProjectDataCacheInternalRouteTypeHeader(typ) + header.Type = typStr return UpdateProjectDataCacheInternalRouteHasUnion{ - UpdateProjectDataCacheInternalRouteHasXVercelIPCountry: &updateProjectDataCacheInternalRouteHasXVercelIPCountry, + UpdateProjectDataCacheInternalRouteHasXVercelIPCountry: &header, Type: typ, } } -func CreateUpdateProjectDataCacheInternalRouteHasUnionUpdateProjectDataCacheInternalRouteHasHost(updateProjectDataCacheInternalRouteHasHost UpdateProjectDataCacheInternalRouteHasHost) UpdateProjectDataCacheInternalRouteHasUnion { - typ := UpdateProjectDataCacheInternalRouteHasUnionTypeUpdateProjectDataCacheInternalRouteHasHost +func CreateUpdateProjectDataCacheInternalRouteHasUnionHost(host UpdateProjectDataCacheInternalRouteHasHost) UpdateProjectDataCacheInternalRouteHasUnion { + typ := UpdateProjectDataCacheInternalRouteHasUnionTypeHost + + typStr := UpdateProjectDataCacheInternalRouteTypeHost(typ) + host.Type = typStr return UpdateProjectDataCacheInternalRouteHasUnion{ - UpdateProjectDataCacheInternalRouteHasHost: &updateProjectDataCacheInternalRouteHasHost, + UpdateProjectDataCacheInternalRouteHasHost: &host, Type: typ, } } func (u *UpdateProjectDataCacheInternalRouteHasUnion) UnmarshalJSON(data []byte) error { - var updateProjectDataCacheInternalRouteHasXVercelIPCountry UpdateProjectDataCacheInternalRouteHasXVercelIPCountry = UpdateProjectDataCacheInternalRouteHasXVercelIPCountry{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheInternalRouteHasXVercelIPCountry, "", true, nil); err == nil { - u.UpdateProjectDataCacheInternalRouteHasXVercelIPCountry = &updateProjectDataCacheInternalRouteHasXVercelIPCountry - u.Type = UpdateProjectDataCacheInternalRouteHasUnionTypeUpdateProjectDataCacheInternalRouteHasXVercelIPCountry - return nil + type discriminator struct { + Type string `json:"type"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var updateProjectDataCacheInternalRouteHasHost UpdateProjectDataCacheInternalRouteHasHost = UpdateProjectDataCacheInternalRouteHasHost{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheInternalRouteHasHost, "", true, nil); err == nil { - u.UpdateProjectDataCacheInternalRouteHasHost = &updateProjectDataCacheInternalRouteHasHost - u.Type = UpdateProjectDataCacheInternalRouteHasUnionTypeUpdateProjectDataCacheInternalRouteHasHost + switch dis.Type { + case "header": + updateProjectDataCacheInternalRouteHasXVercelIPCountry := new(UpdateProjectDataCacheInternalRouteHasXVercelIPCountry) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheInternalRouteHasXVercelIPCountry, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == header) type UpdateProjectDataCacheInternalRouteHasXVercelIPCountry within UpdateProjectDataCacheInternalRouteHasUnion: %w", string(data), err) + } + + u.UpdateProjectDataCacheInternalRouteHasXVercelIPCountry = updateProjectDataCacheInternalRouteHasXVercelIPCountry + u.Type = UpdateProjectDataCacheInternalRouteHasUnionTypeHeader + return nil + case "host": + updateProjectDataCacheInternalRouteHasHost := new(UpdateProjectDataCacheInternalRouteHasHost) + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheInternalRouteHasHost, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Type == host) type UpdateProjectDataCacheInternalRouteHasHost within UpdateProjectDataCacheInternalRouteHasUnion: %w", string(data), err) + } + + u.UpdateProjectDataCacheInternalRouteHasHost = updateProjectDataCacheInternalRouteHasHost + u.Type = UpdateProjectDataCacheInternalRouteHasUnionTypeHost return nil } @@ -10825,6 +11174,41 @@ func (o *UpdateProjectDataCacheResponseBody) GetLink() *UpdateProjectDataCacheLi return o.Link } +func (o *UpdateProjectDataCacheResponseBody) GetLinkGithub() *UpdateProjectDataCacheLinkGithub { + if v := o.GetLink(); v != nil { + return v.UpdateProjectDataCacheLinkGithub + } + return nil +} + +func (o *UpdateProjectDataCacheResponseBody) GetLinkGithubLimited() *UpdateProjectDataCacheLinkGithubLimited { + if v := o.GetLink(); v != nil { + return v.UpdateProjectDataCacheLinkGithubLimited + } + return nil +} + +func (o *UpdateProjectDataCacheResponseBody) GetLinkGithubCustomHost() *UpdateProjectDataCacheLinkGithubCustomHost { + if v := o.GetLink(); v != nil { + return v.UpdateProjectDataCacheLinkGithubCustomHost + } + return nil +} + +func (o *UpdateProjectDataCacheResponseBody) GetLinkGitlab() *UpdateProjectDataCacheLinkGitlab { + if v := o.GetLink(); v != nil { + return v.UpdateProjectDataCacheLinkGitlab + } + return nil +} + +func (o *UpdateProjectDataCacheResponseBody) GetLinkBitbucket() *UpdateProjectDataCacheLinkBitbucket { + if v := o.GetLink(); v != nil { + return v.UpdateProjectDataCacheLinkBitbucket + } + return nil +} + func (o *UpdateProjectDataCacheResponseBody) GetMicrofrontends() *UpdateProjectDataCacheMicrofrontendsUnion { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/updateprojectprotectionbypass.go b/src/__tests__/mockserver/internal/sdk/models/operations/updateprojectprotectionbypass.go index 98f8284a..89550903 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/updateprojectprotectionbypass.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/updateprojectprotectionbypass.go @@ -245,8 +245,8 @@ func (o *UpdateProjectProtectionBypassProtectionBypassIntegrationAutomationBypas type UpdateProjectProtectionBypassProtectionBypassUnionType string const ( - UpdateProjectProtectionBypassProtectionBypassUnionTypeUpdateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass UpdateProjectProtectionBypassProtectionBypassUnionType = "updateProjectProtectionBypass_protectionBypass_IntegrationAutomationBypass" - UpdateProjectProtectionBypassProtectionBypassUnionTypeUpdateProjectProtectionBypassProtectionBypassAutomationBypass UpdateProjectProtectionBypassProtectionBypassUnionType = "updateProjectProtectionBypass_protectionBypass_AutomationBypass" + UpdateProjectProtectionBypassProtectionBypassUnionTypeIntegrationAutomationBypass UpdateProjectProtectionBypassProtectionBypassUnionType = "integration-automation-bypass" + UpdateProjectProtectionBypassProtectionBypassUnionTypeAutomationBypass UpdateProjectProtectionBypassProtectionBypassUnionType = "automation-bypass" ) type UpdateProjectProtectionBypassProtectionBypassUnion struct { @@ -256,37 +256,59 @@ type UpdateProjectProtectionBypassProtectionBypassUnion struct { Type UpdateProjectProtectionBypassProtectionBypassUnionType } -func CreateUpdateProjectProtectionBypassProtectionBypassUnionUpdateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass(updateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass UpdateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass) UpdateProjectProtectionBypassProtectionBypassUnion { - typ := UpdateProjectProtectionBypassProtectionBypassUnionTypeUpdateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass +func CreateUpdateProjectProtectionBypassProtectionBypassUnionIntegrationAutomationBypass(integrationAutomationBypass UpdateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass) UpdateProjectProtectionBypassProtectionBypassUnion { + typ := UpdateProjectProtectionBypassProtectionBypassUnionTypeIntegrationAutomationBypass + + typStr := UpdateProjectProtectionBypassScopeIntegrationAutomationBypass(typ) + integrationAutomationBypass.Scope = typStr return UpdateProjectProtectionBypassProtectionBypassUnion{ - UpdateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass: &updateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass, + UpdateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass: &integrationAutomationBypass, Type: typ, } } -func CreateUpdateProjectProtectionBypassProtectionBypassUnionUpdateProjectProtectionBypassProtectionBypassAutomationBypass(updateProjectProtectionBypassProtectionBypassAutomationBypass UpdateProjectProtectionBypassProtectionBypassAutomationBypass) UpdateProjectProtectionBypassProtectionBypassUnion { - typ := UpdateProjectProtectionBypassProtectionBypassUnionTypeUpdateProjectProtectionBypassProtectionBypassAutomationBypass +func CreateUpdateProjectProtectionBypassProtectionBypassUnionAutomationBypass(automationBypass UpdateProjectProtectionBypassProtectionBypassAutomationBypass) UpdateProjectProtectionBypassProtectionBypassUnion { + typ := UpdateProjectProtectionBypassProtectionBypassUnionTypeAutomationBypass + + typStr := UpdateProjectProtectionBypassScopeAutomationBypass(typ) + automationBypass.Scope = typStr return UpdateProjectProtectionBypassProtectionBypassUnion{ - UpdateProjectProtectionBypassProtectionBypassAutomationBypass: &updateProjectProtectionBypassProtectionBypassAutomationBypass, + UpdateProjectProtectionBypassProtectionBypassAutomationBypass: &automationBypass, Type: typ, } } func (u *UpdateProjectProtectionBypassProtectionBypassUnion) UnmarshalJSON(data []byte) error { - var updateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass UpdateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass = UpdateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass{} - if err := utils.UnmarshalJSON(data, &updateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass, "", true, nil); err == nil { - u.UpdateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass = &updateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass - u.Type = UpdateProjectProtectionBypassProtectionBypassUnionTypeUpdateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass - return nil + type discriminator struct { + Scope string `json:"scope"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var updateProjectProtectionBypassProtectionBypassAutomationBypass UpdateProjectProtectionBypassProtectionBypassAutomationBypass = UpdateProjectProtectionBypassProtectionBypassAutomationBypass{} - if err := utils.UnmarshalJSON(data, &updateProjectProtectionBypassProtectionBypassAutomationBypass, "", true, nil); err == nil { - u.UpdateProjectProtectionBypassProtectionBypassAutomationBypass = &updateProjectProtectionBypassProtectionBypassAutomationBypass - u.Type = UpdateProjectProtectionBypassProtectionBypassUnionTypeUpdateProjectProtectionBypassProtectionBypassAutomationBypass + switch dis.Scope { + case "integration-automation-bypass": + updateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass := new(UpdateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass) + if err := utils.UnmarshalJSON(data, &updateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Scope == integration-automation-bypass) type UpdateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass within UpdateProjectProtectionBypassProtectionBypassUnion: %w", string(data), err) + } + + u.UpdateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass = updateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass + u.Type = UpdateProjectProtectionBypassProtectionBypassUnionTypeIntegrationAutomationBypass + return nil + case "automation-bypass": + updateProjectProtectionBypassProtectionBypassAutomationBypass := new(UpdateProjectProtectionBypassProtectionBypassAutomationBypass) + if err := utils.UnmarshalJSON(data, &updateProjectProtectionBypassProtectionBypassAutomationBypass, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Scope == automation-bypass) type UpdateProjectProtectionBypassProtectionBypassAutomationBypass within UpdateProjectProtectionBypassProtectionBypassUnion: %w", string(data), err) + } + + u.UpdateProjectProtectionBypassProtectionBypassAutomationBypass = updateProjectProtectionBypassProtectionBypassAutomationBypass + u.Type = UpdateProjectProtectionBypassProtectionBypassUnionTypeAutomationBypass return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/buydomains.go b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/buydomains.go index b23e8665..9efbc2e7 100644 --- a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/buydomains.go +++ b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/buydomains.go @@ -13,8 +13,8 @@ import ( type BuyDomainsForbiddenType string const ( - BuyDomainsForbiddenTypeNotAuthorizedForScopeError BuyDomainsForbiddenType = "NotAuthorizedForScope_error" - BuyDomainsForbiddenTypeForbiddenError BuyDomainsForbiddenType = "Forbidden_error" + BuyDomainsForbiddenTypeNotAuthorizedForScope BuyDomainsForbiddenType = "not_authorized_for_scope" + BuyDomainsForbiddenTypeForbidden BuyDomainsForbiddenType = "forbidden" ) // BuyDomainsForbidden - NotAuthorizedForScope @@ -29,37 +29,53 @@ type BuyDomainsForbidden struct { var _ error = &BuyDomainsForbidden{} -func CreateBuyDomainsForbiddenNotAuthorizedForScopeError(notAuthorizedForScopeError NotAuthorizedForScopeError) BuyDomainsForbidden { - typ := BuyDomainsForbiddenTypeNotAuthorizedForScopeError +func CreateBuyDomainsForbiddenNotAuthorizedForScope(notAuthorizedForScope NotAuthorizedForScopeError) BuyDomainsForbidden { + typ := BuyDomainsForbiddenTypeNotAuthorizedForScope return BuyDomainsForbidden{ - NotAuthorizedForScopeError: ¬AuthorizedForScopeError, + NotAuthorizedForScopeError: ¬AuthorizedForScope, Type: typ, } } -func CreateBuyDomainsForbiddenForbiddenError(forbiddenError ForbiddenError) BuyDomainsForbidden { - typ := BuyDomainsForbiddenTypeForbiddenError +func CreateBuyDomainsForbiddenForbidden(forbidden ForbiddenError) BuyDomainsForbidden { + typ := BuyDomainsForbiddenTypeForbidden return BuyDomainsForbidden{ - ForbiddenError: &forbiddenError, + ForbiddenError: &forbidden, Type: typ, } } func (u *BuyDomainsForbidden) UnmarshalJSON(data []byte) error { - var notAuthorizedForScopeError NotAuthorizedForScopeError = NotAuthorizedForScopeError{} - if err := utils.UnmarshalJSON(data, ¬AuthorizedForScopeError, "", true, nil); err == nil { - u.NotAuthorizedForScopeError = ¬AuthorizedForScopeError - u.Type = BuyDomainsForbiddenTypeNotAuthorizedForScopeError - return nil + type discriminator struct { + Code string `json:"code"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var forbiddenError ForbiddenError = ForbiddenError{} - if err := utils.UnmarshalJSON(data, &forbiddenError, "", true, nil); err == nil { - u.ForbiddenError = &forbiddenError - u.Type = BuyDomainsForbiddenTypeForbiddenError + switch dis.Code { + case "not_authorized_for_scope": + notAuthorizedForScopeError := new(NotAuthorizedForScopeError) + if err := utils.UnmarshalJSON(data, ¬AuthorizedForScopeError, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == not_authorized_for_scope) type NotAuthorizedForScopeError within BuyDomainsForbidden: %w", string(data), err) + } + + u.NotAuthorizedForScopeError = notAuthorizedForScopeError + u.Type = BuyDomainsForbiddenTypeNotAuthorizedForScope + return nil + case "forbidden": + forbiddenError := new(ForbiddenError) + if err := utils.UnmarshalJSON(data, &forbiddenError, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == forbidden) type ForbiddenError within BuyDomainsForbidden: %w", string(data), err) + } + + u.ForbiddenError = forbiddenError + u.Type = BuyDomainsForbiddenTypeForbidden return nil } @@ -80,10 +96,10 @@ func (u BuyDomainsForbidden) MarshalJSON() ([]byte, error) { func (u BuyDomainsForbidden) Error() string { switch u.Type { - case BuyDomainsForbiddenTypeNotAuthorizedForScopeError: + case BuyDomainsForbiddenTypeNotAuthorizedForScope: data, _ := json.Marshal(u.NotAuthorizedForScopeError) return string(data) - case BuyDomainsForbiddenTypeForbiddenError: + case BuyDomainsForbiddenTypeForbidden: data, _ := json.Marshal(u.ForbiddenError) return string(data) default: diff --git a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/buysingledomain.go b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/buysingledomain.go index 8e2f1728..b5270de9 100644 --- a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/buysingledomain.go +++ b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/buysingledomain.go @@ -13,8 +13,8 @@ import ( type BuySingleDomainForbiddenType string const ( - BuySingleDomainForbiddenTypeNotAuthorizedForScopeError BuySingleDomainForbiddenType = "NotAuthorizedForScope_error" - BuySingleDomainForbiddenTypeForbiddenError BuySingleDomainForbiddenType = "Forbidden_error" + BuySingleDomainForbiddenTypeNotAuthorizedForScope BuySingleDomainForbiddenType = "not_authorized_for_scope" + BuySingleDomainForbiddenTypeForbidden BuySingleDomainForbiddenType = "forbidden" ) // BuySingleDomainForbidden - NotAuthorizedForScope @@ -29,37 +29,53 @@ type BuySingleDomainForbidden struct { var _ error = &BuySingleDomainForbidden{} -func CreateBuySingleDomainForbiddenNotAuthorizedForScopeError(notAuthorizedForScopeError NotAuthorizedForScopeError) BuySingleDomainForbidden { - typ := BuySingleDomainForbiddenTypeNotAuthorizedForScopeError +func CreateBuySingleDomainForbiddenNotAuthorizedForScope(notAuthorizedForScope NotAuthorizedForScopeError) BuySingleDomainForbidden { + typ := BuySingleDomainForbiddenTypeNotAuthorizedForScope return BuySingleDomainForbidden{ - NotAuthorizedForScopeError: ¬AuthorizedForScopeError, + NotAuthorizedForScopeError: ¬AuthorizedForScope, Type: typ, } } -func CreateBuySingleDomainForbiddenForbiddenError(forbiddenError ForbiddenError) BuySingleDomainForbidden { - typ := BuySingleDomainForbiddenTypeForbiddenError +func CreateBuySingleDomainForbiddenForbidden(forbidden ForbiddenError) BuySingleDomainForbidden { + typ := BuySingleDomainForbiddenTypeForbidden return BuySingleDomainForbidden{ - ForbiddenError: &forbiddenError, + ForbiddenError: &forbidden, Type: typ, } } func (u *BuySingleDomainForbidden) UnmarshalJSON(data []byte) error { - var notAuthorizedForScopeError NotAuthorizedForScopeError = NotAuthorizedForScopeError{} - if err := utils.UnmarshalJSON(data, ¬AuthorizedForScopeError, "", true, nil); err == nil { - u.NotAuthorizedForScopeError = ¬AuthorizedForScopeError - u.Type = BuySingleDomainForbiddenTypeNotAuthorizedForScopeError - return nil + type discriminator struct { + Code string `json:"code"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var forbiddenError ForbiddenError = ForbiddenError{} - if err := utils.UnmarshalJSON(data, &forbiddenError, "", true, nil); err == nil { - u.ForbiddenError = &forbiddenError - u.Type = BuySingleDomainForbiddenTypeForbiddenError + switch dis.Code { + case "not_authorized_for_scope": + notAuthorizedForScopeError := new(NotAuthorizedForScopeError) + if err := utils.UnmarshalJSON(data, ¬AuthorizedForScopeError, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == not_authorized_for_scope) type NotAuthorizedForScopeError within BuySingleDomainForbidden: %w", string(data), err) + } + + u.NotAuthorizedForScopeError = notAuthorizedForScopeError + u.Type = BuySingleDomainForbiddenTypeNotAuthorizedForScope + return nil + case "forbidden": + forbiddenError := new(ForbiddenError) + if err := utils.UnmarshalJSON(data, &forbiddenError, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == forbidden) type ForbiddenError within BuySingleDomainForbidden: %w", string(data), err) + } + + u.ForbiddenError = forbiddenError + u.Type = BuySingleDomainForbiddenTypeForbidden return nil } @@ -80,10 +96,10 @@ func (u BuySingleDomainForbidden) MarshalJSON() ([]byte, error) { func (u BuySingleDomainForbidden) Error() string { switch u.Type { - case BuySingleDomainForbiddenTypeNotAuthorizedForScopeError: + case BuySingleDomainForbiddenTypeNotAuthorizedForScope: data, _ := json.Marshal(u.NotAuthorizedForScopeError) return string(data) - case BuySingleDomainForbiddenTypeForbiddenError: + case BuySingleDomainForbiddenTypeForbidden: data, _ := json.Marshal(u.ForbiddenError) return string(data) default: diff --git a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/getdomainauthcode.go b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/getdomainauthcode.go index bef042b3..52bb6d3a 100644 --- a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/getdomainauthcode.go +++ b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/getdomainauthcode.go @@ -13,8 +13,8 @@ import ( type GetDomainAuthCodeForbiddenType string const ( - GetDomainAuthCodeForbiddenTypeNotAuthorizedForScopeError GetDomainAuthCodeForbiddenType = "NotAuthorizedForScope_error" - GetDomainAuthCodeForbiddenTypeForbiddenError GetDomainAuthCodeForbiddenType = "Forbidden_error" + GetDomainAuthCodeForbiddenTypeNotAuthorizedForScope GetDomainAuthCodeForbiddenType = "not_authorized_for_scope" + GetDomainAuthCodeForbiddenTypeForbidden GetDomainAuthCodeForbiddenType = "forbidden" ) // GetDomainAuthCodeForbidden - NotAuthorizedForScope @@ -29,37 +29,53 @@ type GetDomainAuthCodeForbidden struct { var _ error = &GetDomainAuthCodeForbidden{} -func CreateGetDomainAuthCodeForbiddenNotAuthorizedForScopeError(notAuthorizedForScopeError NotAuthorizedForScopeError) GetDomainAuthCodeForbidden { - typ := GetDomainAuthCodeForbiddenTypeNotAuthorizedForScopeError +func CreateGetDomainAuthCodeForbiddenNotAuthorizedForScope(notAuthorizedForScope NotAuthorizedForScopeError) GetDomainAuthCodeForbidden { + typ := GetDomainAuthCodeForbiddenTypeNotAuthorizedForScope return GetDomainAuthCodeForbidden{ - NotAuthorizedForScopeError: ¬AuthorizedForScopeError, + NotAuthorizedForScopeError: ¬AuthorizedForScope, Type: typ, } } -func CreateGetDomainAuthCodeForbiddenForbiddenError(forbiddenError ForbiddenError) GetDomainAuthCodeForbidden { - typ := GetDomainAuthCodeForbiddenTypeForbiddenError +func CreateGetDomainAuthCodeForbiddenForbidden(forbidden ForbiddenError) GetDomainAuthCodeForbidden { + typ := GetDomainAuthCodeForbiddenTypeForbidden return GetDomainAuthCodeForbidden{ - ForbiddenError: &forbiddenError, + ForbiddenError: &forbidden, Type: typ, } } func (u *GetDomainAuthCodeForbidden) UnmarshalJSON(data []byte) error { - var notAuthorizedForScopeError NotAuthorizedForScopeError = NotAuthorizedForScopeError{} - if err := utils.UnmarshalJSON(data, ¬AuthorizedForScopeError, "", true, nil); err == nil { - u.NotAuthorizedForScopeError = ¬AuthorizedForScopeError - u.Type = GetDomainAuthCodeForbiddenTypeNotAuthorizedForScopeError - return nil + type discriminator struct { + Code string `json:"code"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var forbiddenError ForbiddenError = ForbiddenError{} - if err := utils.UnmarshalJSON(data, &forbiddenError, "", true, nil); err == nil { - u.ForbiddenError = &forbiddenError - u.Type = GetDomainAuthCodeForbiddenTypeForbiddenError + switch dis.Code { + case "not_authorized_for_scope": + notAuthorizedForScopeError := new(NotAuthorizedForScopeError) + if err := utils.UnmarshalJSON(data, ¬AuthorizedForScopeError, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == not_authorized_for_scope) type NotAuthorizedForScopeError within GetDomainAuthCodeForbidden: %w", string(data), err) + } + + u.NotAuthorizedForScopeError = notAuthorizedForScopeError + u.Type = GetDomainAuthCodeForbiddenTypeNotAuthorizedForScope + return nil + case "forbidden": + forbiddenError := new(ForbiddenError) + if err := utils.UnmarshalJSON(data, &forbiddenError, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == forbidden) type ForbiddenError within GetDomainAuthCodeForbidden: %w", string(data), err) + } + + u.ForbiddenError = forbiddenError + u.Type = GetDomainAuthCodeForbiddenTypeForbidden return nil } @@ -80,10 +96,10 @@ func (u GetDomainAuthCodeForbidden) MarshalJSON() ([]byte, error) { func (u GetDomainAuthCodeForbidden) Error() string { switch u.Type { - case GetDomainAuthCodeForbiddenTypeNotAuthorizedForScopeError: + case GetDomainAuthCodeForbiddenTypeNotAuthorizedForScope: data, _ := json.Marshal(u.NotAuthorizedForScopeError) return string(data) - case GetDomainAuthCodeForbiddenTypeForbiddenError: + case GetDomainAuthCodeForbiddenTypeForbidden: data, _ := json.Marshal(u.ForbiddenError) return string(data) default: diff --git a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/getdomaintransferin.go b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/getdomaintransferin.go index 659bb475..6bf38912 100644 --- a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/getdomaintransferin.go +++ b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/getdomaintransferin.go @@ -13,8 +13,8 @@ import ( type GetDomainTransferInForbiddenType string const ( - GetDomainTransferInForbiddenTypeNotAuthorizedForScopeError GetDomainTransferInForbiddenType = "NotAuthorizedForScope_error" - GetDomainTransferInForbiddenTypeForbiddenError GetDomainTransferInForbiddenType = "Forbidden_error" + GetDomainTransferInForbiddenTypeNotAuthorizedForScope GetDomainTransferInForbiddenType = "not_authorized_for_scope" + GetDomainTransferInForbiddenTypeForbidden GetDomainTransferInForbiddenType = "forbidden" ) // GetDomainTransferInForbidden - NotAuthorizedForScope @@ -29,37 +29,53 @@ type GetDomainTransferInForbidden struct { var _ error = &GetDomainTransferInForbidden{} -func CreateGetDomainTransferInForbiddenNotAuthorizedForScopeError(notAuthorizedForScopeError NotAuthorizedForScopeError) GetDomainTransferInForbidden { - typ := GetDomainTransferInForbiddenTypeNotAuthorizedForScopeError +func CreateGetDomainTransferInForbiddenNotAuthorizedForScope(notAuthorizedForScope NotAuthorizedForScopeError) GetDomainTransferInForbidden { + typ := GetDomainTransferInForbiddenTypeNotAuthorizedForScope return GetDomainTransferInForbidden{ - NotAuthorizedForScopeError: ¬AuthorizedForScopeError, + NotAuthorizedForScopeError: ¬AuthorizedForScope, Type: typ, } } -func CreateGetDomainTransferInForbiddenForbiddenError(forbiddenError ForbiddenError) GetDomainTransferInForbidden { - typ := GetDomainTransferInForbiddenTypeForbiddenError +func CreateGetDomainTransferInForbiddenForbidden(forbidden ForbiddenError) GetDomainTransferInForbidden { + typ := GetDomainTransferInForbiddenTypeForbidden return GetDomainTransferInForbidden{ - ForbiddenError: &forbiddenError, + ForbiddenError: &forbidden, Type: typ, } } func (u *GetDomainTransferInForbidden) UnmarshalJSON(data []byte) error { - var notAuthorizedForScopeError NotAuthorizedForScopeError = NotAuthorizedForScopeError{} - if err := utils.UnmarshalJSON(data, ¬AuthorizedForScopeError, "", true, nil); err == nil { - u.NotAuthorizedForScopeError = ¬AuthorizedForScopeError - u.Type = GetDomainTransferInForbiddenTypeNotAuthorizedForScopeError - return nil + type discriminator struct { + Code string `json:"code"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var forbiddenError ForbiddenError = ForbiddenError{} - if err := utils.UnmarshalJSON(data, &forbiddenError, "", true, nil); err == nil { - u.ForbiddenError = &forbiddenError - u.Type = GetDomainTransferInForbiddenTypeForbiddenError + switch dis.Code { + case "not_authorized_for_scope": + notAuthorizedForScopeError := new(NotAuthorizedForScopeError) + if err := utils.UnmarshalJSON(data, ¬AuthorizedForScopeError, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == not_authorized_for_scope) type NotAuthorizedForScopeError within GetDomainTransferInForbidden: %w", string(data), err) + } + + u.NotAuthorizedForScopeError = notAuthorizedForScopeError + u.Type = GetDomainTransferInForbiddenTypeNotAuthorizedForScope + return nil + case "forbidden": + forbiddenError := new(ForbiddenError) + if err := utils.UnmarshalJSON(data, &forbiddenError, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == forbidden) type ForbiddenError within GetDomainTransferInForbidden: %w", string(data), err) + } + + u.ForbiddenError = forbiddenError + u.Type = GetDomainTransferInForbiddenTypeForbidden return nil } @@ -80,10 +96,10 @@ func (u GetDomainTransferInForbidden) MarshalJSON() ([]byte, error) { func (u GetDomainTransferInForbidden) Error() string { switch u.Type { - case GetDomainTransferInForbiddenTypeNotAuthorizedForScopeError: + case GetDomainTransferInForbiddenTypeNotAuthorizedForScope: data, _ := json.Marshal(u.NotAuthorizedForScopeError) return string(data) - case GetDomainTransferInForbiddenTypeForbiddenError: + case GetDomainTransferInForbiddenTypeForbidden: data, _ := json.Marshal(u.ForbiddenError) return string(data) default: diff --git a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/getorder.go b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/getorder.go index 875cda9d..578b7fd7 100644 --- a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/getorder.go +++ b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/getorder.go @@ -13,8 +13,8 @@ import ( type GetOrderForbiddenType string const ( - GetOrderForbiddenTypeNotAuthorizedForScopeError GetOrderForbiddenType = "NotAuthorizedForScope_error" - GetOrderForbiddenTypeForbiddenError GetOrderForbiddenType = "Forbidden_error" + GetOrderForbiddenTypeNotAuthorizedForScope GetOrderForbiddenType = "not_authorized_for_scope" + GetOrderForbiddenTypeForbidden GetOrderForbiddenType = "forbidden" ) // GetOrderForbidden - NotAuthorizedForScope @@ -29,37 +29,53 @@ type GetOrderForbidden struct { var _ error = &GetOrderForbidden{} -func CreateGetOrderForbiddenNotAuthorizedForScopeError(notAuthorizedForScopeError NotAuthorizedForScopeError) GetOrderForbidden { - typ := GetOrderForbiddenTypeNotAuthorizedForScopeError +func CreateGetOrderForbiddenNotAuthorizedForScope(notAuthorizedForScope NotAuthorizedForScopeError) GetOrderForbidden { + typ := GetOrderForbiddenTypeNotAuthorizedForScope return GetOrderForbidden{ - NotAuthorizedForScopeError: ¬AuthorizedForScopeError, + NotAuthorizedForScopeError: ¬AuthorizedForScope, Type: typ, } } -func CreateGetOrderForbiddenForbiddenError(forbiddenError ForbiddenError) GetOrderForbidden { - typ := GetOrderForbiddenTypeForbiddenError +func CreateGetOrderForbiddenForbidden(forbidden ForbiddenError) GetOrderForbidden { + typ := GetOrderForbiddenTypeForbidden return GetOrderForbidden{ - ForbiddenError: &forbiddenError, + ForbiddenError: &forbidden, Type: typ, } } func (u *GetOrderForbidden) UnmarshalJSON(data []byte) error { - var notAuthorizedForScopeError NotAuthorizedForScopeError = NotAuthorizedForScopeError{} - if err := utils.UnmarshalJSON(data, ¬AuthorizedForScopeError, "", true, nil); err == nil { - u.NotAuthorizedForScopeError = ¬AuthorizedForScopeError - u.Type = GetOrderForbiddenTypeNotAuthorizedForScopeError - return nil + type discriminator struct { + Code string `json:"code"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var forbiddenError ForbiddenError = ForbiddenError{} - if err := utils.UnmarshalJSON(data, &forbiddenError, "", true, nil); err == nil { - u.ForbiddenError = &forbiddenError - u.Type = GetOrderForbiddenTypeForbiddenError + switch dis.Code { + case "not_authorized_for_scope": + notAuthorizedForScopeError := new(NotAuthorizedForScopeError) + if err := utils.UnmarshalJSON(data, ¬AuthorizedForScopeError, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == not_authorized_for_scope) type NotAuthorizedForScopeError within GetOrderForbidden: %w", string(data), err) + } + + u.NotAuthorizedForScopeError = notAuthorizedForScopeError + u.Type = GetOrderForbiddenTypeNotAuthorizedForScope + return nil + case "forbidden": + forbiddenError := new(ForbiddenError) + if err := utils.UnmarshalJSON(data, &forbiddenError, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == forbidden) type ForbiddenError within GetOrderForbidden: %w", string(data), err) + } + + u.ForbiddenError = forbiddenError + u.Type = GetOrderForbiddenTypeForbidden return nil } @@ -80,10 +96,10 @@ func (u GetOrderForbidden) MarshalJSON() ([]byte, error) { func (u GetOrderForbidden) Error() string { switch u.Type { - case GetOrderForbiddenTypeNotAuthorizedForScopeError: + case GetOrderForbiddenTypeNotAuthorizedForScope: data, _ := json.Marshal(u.NotAuthorizedForScopeError) return string(data) - case GetOrderForbiddenTypeForbiddenError: + case GetOrderForbiddenTypeForbidden: data, _ := json.Marshal(u.ForbiddenError) return string(data) default: diff --git a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/renewdomain.go b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/renewdomain.go index c5a784bb..4741464c 100644 --- a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/renewdomain.go +++ b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/renewdomain.go @@ -13,8 +13,8 @@ import ( type RenewDomainForbiddenType string const ( - RenewDomainForbiddenTypeNotAuthorizedForScopeError RenewDomainForbiddenType = "NotAuthorizedForScope_error" - RenewDomainForbiddenTypeForbiddenError RenewDomainForbiddenType = "Forbidden_error" + RenewDomainForbiddenTypeNotAuthorizedForScope RenewDomainForbiddenType = "not_authorized_for_scope" + RenewDomainForbiddenTypeForbidden RenewDomainForbiddenType = "forbidden" ) // RenewDomainForbidden - NotAuthorizedForScope @@ -29,37 +29,53 @@ type RenewDomainForbidden struct { var _ error = &RenewDomainForbidden{} -func CreateRenewDomainForbiddenNotAuthorizedForScopeError(notAuthorizedForScopeError NotAuthorizedForScopeError) RenewDomainForbidden { - typ := RenewDomainForbiddenTypeNotAuthorizedForScopeError +func CreateRenewDomainForbiddenNotAuthorizedForScope(notAuthorizedForScope NotAuthorizedForScopeError) RenewDomainForbidden { + typ := RenewDomainForbiddenTypeNotAuthorizedForScope return RenewDomainForbidden{ - NotAuthorizedForScopeError: ¬AuthorizedForScopeError, + NotAuthorizedForScopeError: ¬AuthorizedForScope, Type: typ, } } -func CreateRenewDomainForbiddenForbiddenError(forbiddenError ForbiddenError) RenewDomainForbidden { - typ := RenewDomainForbiddenTypeForbiddenError +func CreateRenewDomainForbiddenForbidden(forbidden ForbiddenError) RenewDomainForbidden { + typ := RenewDomainForbiddenTypeForbidden return RenewDomainForbidden{ - ForbiddenError: &forbiddenError, + ForbiddenError: &forbidden, Type: typ, } } func (u *RenewDomainForbidden) UnmarshalJSON(data []byte) error { - var notAuthorizedForScopeError NotAuthorizedForScopeError = NotAuthorizedForScopeError{} - if err := utils.UnmarshalJSON(data, ¬AuthorizedForScopeError, "", true, nil); err == nil { - u.NotAuthorizedForScopeError = ¬AuthorizedForScopeError - u.Type = RenewDomainForbiddenTypeNotAuthorizedForScopeError - return nil + type discriminator struct { + Code string `json:"code"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var forbiddenError ForbiddenError = ForbiddenError{} - if err := utils.UnmarshalJSON(data, &forbiddenError, "", true, nil); err == nil { - u.ForbiddenError = &forbiddenError - u.Type = RenewDomainForbiddenTypeForbiddenError + switch dis.Code { + case "not_authorized_for_scope": + notAuthorizedForScopeError := new(NotAuthorizedForScopeError) + if err := utils.UnmarshalJSON(data, ¬AuthorizedForScopeError, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == not_authorized_for_scope) type NotAuthorizedForScopeError within RenewDomainForbidden: %w", string(data), err) + } + + u.NotAuthorizedForScopeError = notAuthorizedForScopeError + u.Type = RenewDomainForbiddenTypeNotAuthorizedForScope + return nil + case "forbidden": + forbiddenError := new(ForbiddenError) + if err := utils.UnmarshalJSON(data, &forbiddenError, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == forbidden) type ForbiddenError within RenewDomainForbidden: %w", string(data), err) + } + + u.ForbiddenError = forbiddenError + u.Type = RenewDomainForbiddenTypeForbidden return nil } @@ -80,10 +96,10 @@ func (u RenewDomainForbidden) MarshalJSON() ([]byte, error) { func (u RenewDomainForbidden) Error() string { switch u.Type { - case RenewDomainForbiddenTypeNotAuthorizedForScopeError: + case RenewDomainForbiddenTypeNotAuthorizedForScope: data, _ := json.Marshal(u.NotAuthorizedForScopeError) return string(data) - case RenewDomainForbiddenTypeForbiddenError: + case RenewDomainForbiddenTypeForbidden: data, _ := json.Marshal(u.ForbiddenError) return string(data) default: diff --git a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/transferindomain.go b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/transferindomain.go index 727df48e..6851496b 100644 --- a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/transferindomain.go +++ b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/transferindomain.go @@ -13,8 +13,8 @@ import ( type TransferInDomainForbiddenType string const ( - TransferInDomainForbiddenTypeNotAuthorizedForScopeError TransferInDomainForbiddenType = "NotAuthorizedForScope_error" - TransferInDomainForbiddenTypeForbiddenError TransferInDomainForbiddenType = "Forbidden_error" + TransferInDomainForbiddenTypeNotAuthorizedForScope TransferInDomainForbiddenType = "not_authorized_for_scope" + TransferInDomainForbiddenTypeForbidden TransferInDomainForbiddenType = "forbidden" ) // TransferInDomainForbidden - NotAuthorizedForScope @@ -29,37 +29,53 @@ type TransferInDomainForbidden struct { var _ error = &TransferInDomainForbidden{} -func CreateTransferInDomainForbiddenNotAuthorizedForScopeError(notAuthorizedForScopeError NotAuthorizedForScopeError) TransferInDomainForbidden { - typ := TransferInDomainForbiddenTypeNotAuthorizedForScopeError +func CreateTransferInDomainForbiddenNotAuthorizedForScope(notAuthorizedForScope NotAuthorizedForScopeError) TransferInDomainForbidden { + typ := TransferInDomainForbiddenTypeNotAuthorizedForScope return TransferInDomainForbidden{ - NotAuthorizedForScopeError: ¬AuthorizedForScopeError, + NotAuthorizedForScopeError: ¬AuthorizedForScope, Type: typ, } } -func CreateTransferInDomainForbiddenForbiddenError(forbiddenError ForbiddenError) TransferInDomainForbidden { - typ := TransferInDomainForbiddenTypeForbiddenError +func CreateTransferInDomainForbiddenForbidden(forbidden ForbiddenError) TransferInDomainForbidden { + typ := TransferInDomainForbiddenTypeForbidden return TransferInDomainForbidden{ - ForbiddenError: &forbiddenError, + ForbiddenError: &forbidden, Type: typ, } } func (u *TransferInDomainForbidden) UnmarshalJSON(data []byte) error { - var notAuthorizedForScopeError NotAuthorizedForScopeError = NotAuthorizedForScopeError{} - if err := utils.UnmarshalJSON(data, ¬AuthorizedForScopeError, "", true, nil); err == nil { - u.NotAuthorizedForScopeError = ¬AuthorizedForScopeError - u.Type = TransferInDomainForbiddenTypeNotAuthorizedForScopeError - return nil + type discriminator struct { + Code string `json:"code"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var forbiddenError ForbiddenError = ForbiddenError{} - if err := utils.UnmarshalJSON(data, &forbiddenError, "", true, nil); err == nil { - u.ForbiddenError = &forbiddenError - u.Type = TransferInDomainForbiddenTypeForbiddenError + switch dis.Code { + case "not_authorized_for_scope": + notAuthorizedForScopeError := new(NotAuthorizedForScopeError) + if err := utils.UnmarshalJSON(data, ¬AuthorizedForScopeError, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == not_authorized_for_scope) type NotAuthorizedForScopeError within TransferInDomainForbidden: %w", string(data), err) + } + + u.NotAuthorizedForScopeError = notAuthorizedForScopeError + u.Type = TransferInDomainForbiddenTypeNotAuthorizedForScope + return nil + case "forbidden": + forbiddenError := new(ForbiddenError) + if err := utils.UnmarshalJSON(data, &forbiddenError, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == forbidden) type ForbiddenError within TransferInDomainForbidden: %w", string(data), err) + } + + u.ForbiddenError = forbiddenError + u.Type = TransferInDomainForbiddenTypeForbidden return nil } @@ -80,10 +96,10 @@ func (u TransferInDomainForbidden) MarshalJSON() ([]byte, error) { func (u TransferInDomainForbidden) Error() string { switch u.Type { - case TransferInDomainForbiddenTypeNotAuthorizedForScopeError: + case TransferInDomainForbiddenTypeNotAuthorizedForScope: data, _ := json.Marshal(u.NotAuthorizedForScopeError) return string(data) - case TransferInDomainForbiddenTypeForbiddenError: + case TransferInDomainForbiddenTypeForbidden: data, _ := json.Marshal(u.ForbiddenError) return string(data) default: diff --git a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/updatedomainautorenew.go b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/updatedomainautorenew.go index 22e2c836..a74f6270 100644 --- a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/updatedomainautorenew.go +++ b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/updatedomainautorenew.go @@ -13,8 +13,8 @@ import ( type UpdateDomainAutoRenewForbiddenType string const ( - UpdateDomainAutoRenewForbiddenTypeNotAuthorizedForScopeError UpdateDomainAutoRenewForbiddenType = "NotAuthorizedForScope_error" - UpdateDomainAutoRenewForbiddenTypeForbiddenError UpdateDomainAutoRenewForbiddenType = "Forbidden_error" + UpdateDomainAutoRenewForbiddenTypeNotAuthorizedForScope UpdateDomainAutoRenewForbiddenType = "not_authorized_for_scope" + UpdateDomainAutoRenewForbiddenTypeForbidden UpdateDomainAutoRenewForbiddenType = "forbidden" ) // UpdateDomainAutoRenewForbidden - NotAuthorizedForScope @@ -29,37 +29,53 @@ type UpdateDomainAutoRenewForbidden struct { var _ error = &UpdateDomainAutoRenewForbidden{} -func CreateUpdateDomainAutoRenewForbiddenNotAuthorizedForScopeError(notAuthorizedForScopeError NotAuthorizedForScopeError) UpdateDomainAutoRenewForbidden { - typ := UpdateDomainAutoRenewForbiddenTypeNotAuthorizedForScopeError +func CreateUpdateDomainAutoRenewForbiddenNotAuthorizedForScope(notAuthorizedForScope NotAuthorizedForScopeError) UpdateDomainAutoRenewForbidden { + typ := UpdateDomainAutoRenewForbiddenTypeNotAuthorizedForScope return UpdateDomainAutoRenewForbidden{ - NotAuthorizedForScopeError: ¬AuthorizedForScopeError, + NotAuthorizedForScopeError: ¬AuthorizedForScope, Type: typ, } } -func CreateUpdateDomainAutoRenewForbiddenForbiddenError(forbiddenError ForbiddenError) UpdateDomainAutoRenewForbidden { - typ := UpdateDomainAutoRenewForbiddenTypeForbiddenError +func CreateUpdateDomainAutoRenewForbiddenForbidden(forbidden ForbiddenError) UpdateDomainAutoRenewForbidden { + typ := UpdateDomainAutoRenewForbiddenTypeForbidden return UpdateDomainAutoRenewForbidden{ - ForbiddenError: &forbiddenError, + ForbiddenError: &forbidden, Type: typ, } } func (u *UpdateDomainAutoRenewForbidden) UnmarshalJSON(data []byte) error { - var notAuthorizedForScopeError NotAuthorizedForScopeError = NotAuthorizedForScopeError{} - if err := utils.UnmarshalJSON(data, ¬AuthorizedForScopeError, "", true, nil); err == nil { - u.NotAuthorizedForScopeError = ¬AuthorizedForScopeError - u.Type = UpdateDomainAutoRenewForbiddenTypeNotAuthorizedForScopeError - return nil + type discriminator struct { + Code string `json:"code"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var forbiddenError ForbiddenError = ForbiddenError{} - if err := utils.UnmarshalJSON(data, &forbiddenError, "", true, nil); err == nil { - u.ForbiddenError = &forbiddenError - u.Type = UpdateDomainAutoRenewForbiddenTypeForbiddenError + switch dis.Code { + case "not_authorized_for_scope": + notAuthorizedForScopeError := new(NotAuthorizedForScopeError) + if err := utils.UnmarshalJSON(data, ¬AuthorizedForScopeError, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == not_authorized_for_scope) type NotAuthorizedForScopeError within UpdateDomainAutoRenewForbidden: %w", string(data), err) + } + + u.NotAuthorizedForScopeError = notAuthorizedForScopeError + u.Type = UpdateDomainAutoRenewForbiddenTypeNotAuthorizedForScope + return nil + case "forbidden": + forbiddenError := new(ForbiddenError) + if err := utils.UnmarshalJSON(data, &forbiddenError, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == forbidden) type ForbiddenError within UpdateDomainAutoRenewForbidden: %w", string(data), err) + } + + u.ForbiddenError = forbiddenError + u.Type = UpdateDomainAutoRenewForbiddenTypeForbidden return nil } @@ -80,10 +96,10 @@ func (u UpdateDomainAutoRenewForbidden) MarshalJSON() ([]byte, error) { func (u UpdateDomainAutoRenewForbidden) Error() string { switch u.Type { - case UpdateDomainAutoRenewForbiddenTypeNotAuthorizedForScopeError: + case UpdateDomainAutoRenewForbiddenTypeNotAuthorizedForScope: data, _ := json.Marshal(u.NotAuthorizedForScopeError) return string(data) - case UpdateDomainAutoRenewForbiddenTypeForbiddenError: + case UpdateDomainAutoRenewForbiddenTypeForbidden: data, _ := json.Marshal(u.ForbiddenError) return string(data) default: diff --git a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/updatedomainnameservers.go b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/updatedomainnameservers.go index 22dc0ed7..95fb5b6e 100644 --- a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/updatedomainnameservers.go +++ b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/updatedomainnameservers.go @@ -13,8 +13,8 @@ import ( type UpdateDomainNameserversForbiddenType string const ( - UpdateDomainNameserversForbiddenTypeNotAuthorizedForScopeError UpdateDomainNameserversForbiddenType = "NotAuthorizedForScope_error" - UpdateDomainNameserversForbiddenTypeForbiddenError UpdateDomainNameserversForbiddenType = "Forbidden_error" + UpdateDomainNameserversForbiddenTypeNotAuthorizedForScope UpdateDomainNameserversForbiddenType = "not_authorized_for_scope" + UpdateDomainNameserversForbiddenTypeForbidden UpdateDomainNameserversForbiddenType = "forbidden" ) // UpdateDomainNameserversForbidden - NotAuthorizedForScope @@ -29,37 +29,53 @@ type UpdateDomainNameserversForbidden struct { var _ error = &UpdateDomainNameserversForbidden{} -func CreateUpdateDomainNameserversForbiddenNotAuthorizedForScopeError(notAuthorizedForScopeError NotAuthorizedForScopeError) UpdateDomainNameserversForbidden { - typ := UpdateDomainNameserversForbiddenTypeNotAuthorizedForScopeError +func CreateUpdateDomainNameserversForbiddenNotAuthorizedForScope(notAuthorizedForScope NotAuthorizedForScopeError) UpdateDomainNameserversForbidden { + typ := UpdateDomainNameserversForbiddenTypeNotAuthorizedForScope return UpdateDomainNameserversForbidden{ - NotAuthorizedForScopeError: ¬AuthorizedForScopeError, + NotAuthorizedForScopeError: ¬AuthorizedForScope, Type: typ, } } -func CreateUpdateDomainNameserversForbiddenForbiddenError(forbiddenError ForbiddenError) UpdateDomainNameserversForbidden { - typ := UpdateDomainNameserversForbiddenTypeForbiddenError +func CreateUpdateDomainNameserversForbiddenForbidden(forbidden ForbiddenError) UpdateDomainNameserversForbidden { + typ := UpdateDomainNameserversForbiddenTypeForbidden return UpdateDomainNameserversForbidden{ - ForbiddenError: &forbiddenError, + ForbiddenError: &forbidden, Type: typ, } } func (u *UpdateDomainNameserversForbidden) UnmarshalJSON(data []byte) error { - var notAuthorizedForScopeError NotAuthorizedForScopeError = NotAuthorizedForScopeError{} - if err := utils.UnmarshalJSON(data, ¬AuthorizedForScopeError, "", true, nil); err == nil { - u.NotAuthorizedForScopeError = ¬AuthorizedForScopeError - u.Type = UpdateDomainNameserversForbiddenTypeNotAuthorizedForScopeError - return nil + type discriminator struct { + Code string `json:"code"` + } + + dis := new(discriminator) + if err := json.Unmarshal(data, &dis); err != nil { + return fmt.Errorf("could not unmarshal discriminator: %w", err) } - var forbiddenError ForbiddenError = ForbiddenError{} - if err := utils.UnmarshalJSON(data, &forbiddenError, "", true, nil); err == nil { - u.ForbiddenError = &forbiddenError - u.Type = UpdateDomainNameserversForbiddenTypeForbiddenError + switch dis.Code { + case "not_authorized_for_scope": + notAuthorizedForScopeError := new(NotAuthorizedForScopeError) + if err := utils.UnmarshalJSON(data, ¬AuthorizedForScopeError, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == not_authorized_for_scope) type NotAuthorizedForScopeError within UpdateDomainNameserversForbidden: %w", string(data), err) + } + + u.NotAuthorizedForScopeError = notAuthorizedForScopeError + u.Type = UpdateDomainNameserversForbiddenTypeNotAuthorizedForScope + return nil + case "forbidden": + forbiddenError := new(ForbiddenError) + if err := utils.UnmarshalJSON(data, &forbiddenError, "", true, nil); err != nil { + return fmt.Errorf("could not unmarshal `%s` into expected (Code == forbidden) type ForbiddenError within UpdateDomainNameserversForbidden: %w", string(data), err) + } + + u.ForbiddenError = forbiddenError + u.Type = UpdateDomainNameserversForbiddenTypeForbidden return nil } @@ -80,10 +96,10 @@ func (u UpdateDomainNameserversForbidden) MarshalJSON() ([]byte, error) { func (u UpdateDomainNameserversForbidden) Error() string { switch u.Type { - case UpdateDomainNameserversForbiddenTypeNotAuthorizedForScopeError: + case UpdateDomainNameserversForbiddenTypeNotAuthorizedForScope: data, _ := json.Marshal(u.NotAuthorizedForScopeError) return string(data) - case UpdateDomainNameserversForbiddenTypeForbiddenError: + case UpdateDomainNameserversForbiddenTypeForbidden: data, _ := json.Marshal(u.ForbiddenError) return string(data) default: diff --git a/src/__tests__/rollingrelease.test.ts b/src/__tests__/rollingrelease.test.ts index fd9b53ad..04591390 100644 --- a/src/__tests__/rollingrelease.test.ts +++ b/src/__tests__/rollingrelease.test.ts @@ -362,12 +362,13 @@ test("Rolling Release Get Rolling Release Billing Status", async () => { }); expect(result).toBeDefined(); expect(result).toEqual({ - availableSlots: 7151.9, + availableSlots: 8974.52, reason: "no_available_slots", message: "", enabledProjects: [ "", "", + "", ], }); }); diff --git a/src/__tests__/security.test.ts b/src/__tests__/security.test.ts index cc153ddd..47266906 100644 --- a/src/__tests__/security.test.ts +++ b/src/__tests__/security.test.ts @@ -318,17 +318,7 @@ test("Security Get Bypass Ip", async () => { }); expect(result).toBeDefined(); expect(result).toEqual({ - result: [ - { - ownerId: "", - id: "", - domain: "second-newsletter.name", - ip: "165.112.228.246", - createdAt: "1716245811354", - updatedAt: "1735671604252", - updatedAtHour: "", - }, - ], + result: [], }); }); diff --git a/src/lib/config.ts b/src/lib/config.ts index caab1480..d14a6b72 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -61,7 +61,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.0.1", - sdkVersion: "1.17.7", - genVersion: "2.760.2", - userAgent: "speakeasy-sdk/typescript 1.17.7 2.760.2 0.0.1 @vercel/sdk", + sdkVersion: "1.18.0", + genVersion: "2.768.0", + userAgent: "speakeasy-sdk/typescript 1.18.0 2.768.0 0.0.1 @vercel/sdk", } as const; diff --git a/src/lib/encodings.ts b/src/lib/encodings.ts index 25c9dcba..31cd3733 100644 --- a/src/lib/encodings.ts +++ b/src/lib/encodings.ts @@ -102,8 +102,9 @@ export function encodeLabel( }); encValue = mapped?.join("").slice(1); } else { - const k = - options?.explode && isPlainObject(value) ? `${encodeString(pk)}=` : ""; + const k = options?.explode && isPlainObject(value) + ? `${encodeString(pk)}=` + : ""; encValue = `${k}${encodeValue(pv)}`; } @@ -426,6 +427,7 @@ export function queryJoin(...args: (string | undefined)[]): string { type QueryEncoderOptions = { explode?: boolean; charEncoding?: "percent" | "none"; + allowEmptyValue?: string[]; }; type QueryEncoder = ( @@ -440,7 +442,7 @@ type BulkQueryEncoder = ( ) => string; export function queryEncoder(f: QueryEncoder): BulkQueryEncoder { - const bulkEncode = function ( + const bulkEncode = function( values: Record, options?: QueryEncoderOptions, ): string { @@ -450,7 +452,19 @@ export function queryEncoder(f: QueryEncoder): BulkQueryEncoder { charEncoding: options?.charEncoding ?? "percent", }; + const allowEmptySet = new Set(options?.allowEmptyValue ?? []); + const encoded = Object.entries(values).map(([key, value]) => { + if (allowEmptySet.has(key)) { + if ( + value === undefined + || value === null + || value === "" + || (Array.isArray(value) && value.length === 0) + ) { + return `${encodeURIComponent(key)}=`; + } + } return f(key, value, opts); }); return queryJoin(...encoded); diff --git a/src/mcp-server/mcp-server.ts b/src/mcp-server/mcp-server.ts index ed7ce3aa..9d77d633 100644 --- a/src/mcp-server/mcp-server.ts +++ b/src/mcp-server/mcp-server.ts @@ -19,7 +19,7 @@ const routes = buildRouteMap({ export const app = buildApplication(routes, { name: "mcp", versionInfo: { - currentVersion: "1.17.7", + currentVersion: "1.18.0", }, }); diff --git a/src/mcp-server/server.ts b/src/mcp-server/server.ts index 04271e63..ffdc3088 100644 --- a/src/mcp-server/server.ts +++ b/src/mcp-server/server.ts @@ -242,7 +242,7 @@ export function createMCPServer(deps: { }) { const server = new McpServer({ name: "Vercel", - version: "1.17.7", + version: "1.18.0", }); const client = new VercelCore({ diff --git a/src/models/authtoken.ts b/src/models/authtoken.ts index 5f487ea7..10919c5e 100644 --- a/src/models/authtoken.ts +++ b/src/models/authtoken.ts @@ -8,11 +8,6 @@ import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; -export const AuthTokenScopesType = { - Team: "team", -} as const; -export type AuthTokenScopesType = ClosedEnum; - export const AuthTokenScopesOrigin = { Saml: "saml", Github: "github", @@ -34,18 +29,13 @@ export type AuthTokenScopesOrigin = ClosedEnum; * The access scopes granted to the token. */ export type Scopes2 = { - type: AuthTokenScopesType; + type: "team"; teamId: string; origin?: AuthTokenScopesOrigin | undefined; createdAt: number; expiresAt?: number | undefined; }; -export const ScopesType = { - User: "user", -} as const; -export type ScopesType = ClosedEnum; - /** * Possible multi-factor origins */ @@ -88,14 +78,14 @@ export type ScopesOrigin = ClosedEnum; * The access scopes granted to the token. */ export type Scopes1 = { - type: ScopesType; + type: "user"; sudo?: Sudo | undefined; origin?: ScopesOrigin | undefined; createdAt: number; expiresAt?: number | undefined; }; -export type Scopes = Scopes2 | Scopes1; +export type Scopes = Scopes1 | Scopes2; /** * Authentication token metadata. @@ -120,7 +110,7 @@ export type AuthToken = { /** * The access scopes granted to the token. */ - scopes?: Array | undefined; + scopes?: Array | undefined; /** * Timestamp (in milliseconds) of when the token expires. */ @@ -135,15 +125,6 @@ export type AuthToken = { createdAt: number; }; -/** @internal */ -export const AuthTokenScopesType$inboundSchema: z.ZodNativeEnum< - typeof AuthTokenScopesType -> = z.nativeEnum(AuthTokenScopesType); -/** @internal */ -export const AuthTokenScopesType$outboundSchema: z.ZodNativeEnum< - typeof AuthTokenScopesType -> = AuthTokenScopesType$inboundSchema; - /** @internal */ export const AuthTokenScopesOrigin$inboundSchema: z.ZodNativeEnum< typeof AuthTokenScopesOrigin @@ -156,7 +137,7 @@ export const AuthTokenScopesOrigin$outboundSchema: z.ZodNativeEnum< /** @internal */ export const Scopes2$inboundSchema: z.ZodType = z.object({ - type: AuthTokenScopesType$inboundSchema, + type: z.literal("team"), teamId: z.string(), origin: AuthTokenScopesOrigin$inboundSchema.optional(), createdAt: z.number(), @@ -164,7 +145,7 @@ export const Scopes2$inboundSchema: z.ZodType = }); /** @internal */ export type Scopes2$Outbound = { - type: string; + type: "team"; teamId: string; origin?: string | undefined; createdAt: number; @@ -177,7 +158,7 @@ export const Scopes2$outboundSchema: z.ZodType< z.ZodTypeDef, Scopes2 > = z.object({ - type: AuthTokenScopesType$outboundSchema, + type: z.literal("team"), teamId: z.string(), origin: AuthTokenScopesOrigin$outboundSchema.optional(), createdAt: z.number(), @@ -197,13 +178,6 @@ export function scopes2FromJSON( ); } -/** @internal */ -export const ScopesType$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(ScopesType); -/** @internal */ -export const ScopesType$outboundSchema: z.ZodNativeEnum = - ScopesType$inboundSchema; - /** @internal */ export const AuthTokenScopes1Origin$inboundSchema: z.ZodNativeEnum< typeof AuthTokenScopes1Origin @@ -255,7 +229,7 @@ export const ScopesOrigin$outboundSchema: z.ZodNativeEnum = /** @internal */ export const Scopes1$inboundSchema: z.ZodType = z.object({ - type: ScopesType$inboundSchema, + type: z.literal("user"), sudo: z.lazy(() => Sudo$inboundSchema).optional(), origin: ScopesOrigin$inboundSchema.optional(), createdAt: z.number(), @@ -263,7 +237,7 @@ export const Scopes1$inboundSchema: z.ZodType = }); /** @internal */ export type Scopes1$Outbound = { - type: string; + type: "user"; sudo?: Sudo$Outbound | undefined; origin?: string | undefined; createdAt: number; @@ -276,7 +250,7 @@ export const Scopes1$outboundSchema: z.ZodType< z.ZodTypeDef, Scopes1 > = z.object({ - type: ScopesType$outboundSchema, + type: z.literal("user"), sudo: z.lazy(() => Sudo$outboundSchema).optional(), origin: ScopesOrigin$outboundSchema.optional(), createdAt: z.number(), @@ -299,11 +273,11 @@ export function scopes1FromJSON( /** @internal */ export const Scopes$inboundSchema: z.ZodType = z .union([ - z.lazy(() => Scopes2$inboundSchema), z.lazy(() => Scopes1$inboundSchema), + z.lazy(() => Scopes2$inboundSchema), ]); /** @internal */ -export type Scopes$Outbound = Scopes2$Outbound | Scopes1$Outbound; +export type Scopes$Outbound = Scopes1$Outbound | Scopes2$Outbound; /** @internal */ export const Scopes$outboundSchema: z.ZodType< @@ -311,8 +285,8 @@ export const Scopes$outboundSchema: z.ZodType< z.ZodTypeDef, Scopes > = z.union([ - z.lazy(() => Scopes2$outboundSchema), z.lazy(() => Scopes1$outboundSchema), + z.lazy(() => Scopes2$outboundSchema), ]); export function scopesToJSON(scopes: Scopes): string { @@ -340,8 +314,8 @@ export const AuthToken$inboundSchema: z.ZodType< origin: z.string().optional(), scopes: z.array( z.union([ - z.lazy(() => Scopes2$inboundSchema), z.lazy(() => Scopes1$inboundSchema), + z.lazy(() => Scopes2$inboundSchema), ]), ).optional(), expiresAt: z.number().optional(), @@ -354,7 +328,7 @@ export type AuthToken$Outbound = { name: string; type: string; origin?: string | undefined; - scopes?: Array | undefined; + scopes?: Array | undefined; expiresAt?: number | undefined; activeAt: number; createdAt: number; @@ -372,8 +346,8 @@ export const AuthToken$outboundSchema: z.ZodType< origin: z.string().optional(), scopes: z.array( z.union([ - z.lazy(() => Scopes2$outboundSchema), z.lazy(() => Scopes1$outboundSchema), + z.lazy(() => Scopes2$outboundSchema), ]), ).optional(), expiresAt: z.number().optional(), diff --git a/src/models/buydomainsop.ts b/src/models/buydomainsop.ts index adcaf427..88610ab3 100644 --- a/src/models/buydomainsop.ts +++ b/src/models/buydomainsop.ts @@ -171,7 +171,7 @@ export type BuyDomainsRequest = { * NotAuthorizedForScope */ export type BuyDomainsDomainsRegistrarResponseResponseBody = - | NotAuthorizedForScope + | (NotAuthorizedForScope & { code: "not_authorized_for_scope" }) | Forbidden; /** @@ -460,10 +460,15 @@ export const BuyDomainsDomainsRegistrarResponseResponseBody$inboundSchema: BuyDomainsDomainsRegistrarResponseResponseBody, z.ZodTypeDef, unknown - > = z.union([NotAuthorizedForScope$inboundSchema, Forbidden$inboundSchema]); + > = z.union([ + NotAuthorizedForScope$inboundSchema.and( + z.object({ code: z.literal("not_authorized_for_scope") }), + ), + Forbidden$inboundSchema, + ]); /** @internal */ export type BuyDomainsDomainsRegistrarResponseResponseBody$Outbound = - | NotAuthorizedForScope$Outbound + | (NotAuthorizedForScope$Outbound & { code: "not_authorized_for_scope" }) | Forbidden$Outbound; /** @internal */ @@ -472,7 +477,12 @@ export const BuyDomainsDomainsRegistrarResponseResponseBody$outboundSchema: BuyDomainsDomainsRegistrarResponseResponseBody$Outbound, z.ZodTypeDef, unknown - > = z.union([NotAuthorizedForScope$outboundSchema, Forbidden$outboundSchema]); + > = z.union([ + NotAuthorizedForScope$outboundSchema.and( + z.object({ code: z.literal("not_authorized_for_scope") }), + ), + Forbidden$outboundSchema, + ]); export function buyDomainsDomainsRegistrarResponseResponseBodyToJSON( buyDomainsDomainsRegistrarResponseResponseBody: diff --git a/src/models/buysingledomainop.ts b/src/models/buysingledomainop.ts index 6778a58f..0fbca64a 100644 --- a/src/models/buysingledomainop.ts +++ b/src/models/buysingledomainop.ts @@ -155,7 +155,7 @@ export type BuySingleDomainRequest = { * NotAuthorizedForScope */ export type BuySingleDomainDomainsRegistrarResponseResponseBody = - | NotAuthorizedForScope + | (NotAuthorizedForScope & { code: "not_authorized_for_scope" }) | Forbidden; /** @@ -404,10 +404,15 @@ export const BuySingleDomainDomainsRegistrarResponseResponseBody$inboundSchema: BuySingleDomainDomainsRegistrarResponseResponseBody, z.ZodTypeDef, unknown - > = z.union([NotAuthorizedForScope$inboundSchema, Forbidden$inboundSchema]); + > = z.union([ + NotAuthorizedForScope$inboundSchema.and( + z.object({ code: z.literal("not_authorized_for_scope") }), + ), + Forbidden$inboundSchema, + ]); /** @internal */ export type BuySingleDomainDomainsRegistrarResponseResponseBody$Outbound = - | NotAuthorizedForScope$Outbound + | (NotAuthorizedForScope$Outbound & { code: "not_authorized_for_scope" }) | Forbidden$Outbound; /** @internal */ @@ -416,7 +421,12 @@ export const BuySingleDomainDomainsRegistrarResponseResponseBody$outboundSchema: BuySingleDomainDomainsRegistrarResponseResponseBody$Outbound, z.ZodTypeDef, unknown - > = z.union([NotAuthorizedForScope$outboundSchema, Forbidden$outboundSchema]); + > = z.union([ + NotAuthorizedForScope$outboundSchema.and( + z.object({ code: z.literal("not_authorized_for_scope") }), + ), + Forbidden$outboundSchema, + ]); export function buySingleDomainDomainsRegistrarResponseResponseBodyToJSON( buySingleDomainDomainsRegistrarResponseResponseBody: diff --git a/src/models/canceldeploymentop.ts b/src/models/canceldeploymentop.ts index 653b099a..b5d32f6e 100644 --- a/src/models/canceldeploymentop.ts +++ b/src/models/canceldeploymentop.ts @@ -1010,13 +1010,6 @@ export type CancelDeploymentHas2 = { value?: string | CancelDeploymentValueDeployments2 | undefined; }; -export const CancelDeploymentHasType = { - Host: "host", -} as const; -export type CancelDeploymentHasType = ClosedEnum< - typeof CancelDeploymentHasType ->; - export type CancelDeploymentValueEq = string | number; export type CancelDeploymentValue2 = { @@ -1036,13 +1029,15 @@ export type CancelDeploymentValue2 = { export type CancelDeploymentHasValue = string | CancelDeploymentValue2; export type CancelDeploymentHas1 = { - type: CancelDeploymentHasType; + type: "host"; value: string | CancelDeploymentValue2; }; export type CancelDeploymentRoutesHas = | CancelDeploymentHas1 - | CancelDeploymentHas2; + | (CancelDeploymentHas2 & { type: "header" }) + | (CancelDeploymentHas2 & { type: "cookie" }) + | (CancelDeploymentHas2 & { type: "query" }); export const CancelDeploymentMissingDeploymentsType = { Header: "header", @@ -1079,13 +1074,6 @@ export type CancelDeploymentMissing2 = { value?: string | CancelDeploymentValueDeploymentsResponse2002 | undefined; }; -export const CancelDeploymentMissingType = { - Host: "host", -} as const; -export type CancelDeploymentMissingType = ClosedEnum< - typeof CancelDeploymentMissingType ->; - export type CancelDeploymentValueDeploymentsResponseEq = string | number; export type CancelDeploymentValueDeploymentsResponse2 = { @@ -1107,11 +1095,15 @@ export type CancelDeploymentMissingValue = | CancelDeploymentValueDeploymentsResponse2; export type CancelDeploymentMissing1 = { - type: CancelDeploymentMissingType; + type: "host"; value: string | CancelDeploymentValueDeploymentsResponse2; }; -export type RoutesMissing = CancelDeploymentMissing1 | CancelDeploymentMissing2; +export type RoutesMissing = + | CancelDeploymentMissing1 + | (CancelDeploymentMissing2 & { type: "header" }) + | (CancelDeploymentMissing2 & { type: "cookie" }) + | (CancelDeploymentMissing2 & { type: "query" }); export const CancelDeploymentRoutesAction = { Challenge: "challenge", @@ -1188,9 +1180,21 @@ export type CancelDeploymentRoutes1 = { check?: boolean | undefined; important?: boolean | undefined; status?: number | undefined; - has?: Array | undefined; + has?: + | Array< + | CancelDeploymentHas1 + | (CancelDeploymentHas2 & { type: "header" }) + | (CancelDeploymentHas2 & { type: "cookie" }) + | (CancelDeploymentHas2 & { type: "query" }) + > + | undefined; missing?: - | Array + | Array< + | CancelDeploymentMissing1 + | (CancelDeploymentMissing2 & { type: "header" }) + | (CancelDeploymentMissing2 & { type: "cookie" }) + | (CancelDeploymentMissing2 & { type: "query" }) + > | undefined; mitigate?: CancelDeploymentRoutesMitigate | undefined; transforms?: Array | undefined; @@ -1214,13 +1218,6 @@ export type CancelDeploymentRoutes = | CancelDeploymentRoutes1 | CancelDeploymentRoutes2; -export const CancelDeploymentGitRepoDeploymentsResponseType = { - Bitbucket: "bitbucket", -} as const; -export type CancelDeploymentGitRepoDeploymentsResponseType = ClosedEnum< - typeof CancelDeploymentGitRepoDeploymentsResponseType ->; - export const CancelDeploymentGitRepoDeploymentsResponseOwnerType = { Team: "team", User: "user", @@ -1233,7 +1230,7 @@ export type CancelDeploymentGitRepo3 = { owner: string; repoUuid: string; slug: string; - type: CancelDeploymentGitRepoDeploymentsResponseType; + type: "bitbucket"; workspaceUuid: string; path: string; defaultBranch: string; @@ -1242,13 +1239,6 @@ export type CancelDeploymentGitRepo3 = { ownerType: CancelDeploymentGitRepoDeploymentsResponseOwnerType; }; -export const CancelDeploymentGitRepoDeploymentsType = { - Github: "github", -} as const; -export type CancelDeploymentGitRepoDeploymentsType = ClosedEnum< - typeof CancelDeploymentGitRepoDeploymentsType ->; - export const CancelDeploymentGitRepoDeploymentsOwnerType = { Team: "team", User: "user", @@ -1261,7 +1251,7 @@ export type CancelDeploymentGitRepo2 = { org: string; repo: string; repoId: number; - type: CancelDeploymentGitRepoDeploymentsType; + type: "github"; repoOwnerId: number; path: string; defaultBranch: string; @@ -1270,13 +1260,6 @@ export type CancelDeploymentGitRepo2 = { ownerType: CancelDeploymentGitRepoDeploymentsOwnerType; }; -export const CancelDeploymentGitRepoType = { - Gitlab: "gitlab", -} as const; -export type CancelDeploymentGitRepoType = ClosedEnum< - typeof CancelDeploymentGitRepoType ->; - export const CancelDeploymentGitRepoOwnerType = { Team: "team", User: "user", @@ -1288,7 +1271,7 @@ export type CancelDeploymentGitRepoOwnerType = ClosedEnum< export type CancelDeploymentGitRepo1 = { namespace: string; projectId: number; - type: CancelDeploymentGitRepoType; + type: "gitlab"; url: string; path: string; defaultBranch: string; @@ -1298,9 +1281,9 @@ export type CancelDeploymentGitRepo1 = { }; export type CancelDeploymentGitRepo = + | CancelDeploymentGitRepo1 | CancelDeploymentGitRepo2 - | CancelDeploymentGitRepo3 - | CancelDeploymentGitRepo1; + | CancelDeploymentGitRepo3; /** * Flags defined in the Build Output API, used by this deployment. Primarily used by the Toolbar to know about the used flags. @@ -1630,9 +1613,9 @@ export type CancelDeploymentResponseBody = { > | null; gitRepo?: + | CancelDeploymentGitRepo1 | CancelDeploymentGitRepo2 | CancelDeploymentGitRepo3 - | CancelDeploymentGitRepo1 | null | undefined; flags?: CancelDeploymentFlags1 | Array | undefined; @@ -4861,15 +4844,6 @@ export function cancelDeploymentHas2FromJSON( ); } -/** @internal */ -export const CancelDeploymentHasType$inboundSchema: z.ZodNativeEnum< - typeof CancelDeploymentHasType -> = z.nativeEnum(CancelDeploymentHasType); -/** @internal */ -export const CancelDeploymentHasType$outboundSchema: z.ZodNativeEnum< - typeof CancelDeploymentHasType -> = CancelDeploymentHasType$inboundSchema; - /** @internal */ export const CancelDeploymentValueEq$inboundSchema: z.ZodType< CancelDeploymentValueEq, @@ -5013,7 +4987,7 @@ export const CancelDeploymentHas1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: CancelDeploymentHasType$inboundSchema, + type: z.literal("host"), value: z.union([ z.string(), z.lazy(() => CancelDeploymentValue2$inboundSchema), @@ -5021,7 +4995,7 @@ export const CancelDeploymentHas1$inboundSchema: z.ZodType< }); /** @internal */ export type CancelDeploymentHas1$Outbound = { - type: string; + type: "host"; value: string | CancelDeploymentValue2$Outbound; }; @@ -5031,7 +5005,7 @@ export const CancelDeploymentHas1$outboundSchema: z.ZodType< z.ZodTypeDef, CancelDeploymentHas1 > = z.object({ - type: CancelDeploymentHasType$outboundSchema, + type: z.literal("host"), value: z.union([ z.string(), z.lazy(() => CancelDeploymentValue2$outboundSchema), @@ -5062,12 +5036,22 @@ export const CancelDeploymentRoutesHas$inboundSchema: z.ZodType< unknown > = z.union([ z.lazy(() => CancelDeploymentHas1$inboundSchema), - z.lazy(() => CancelDeploymentHas2$inboundSchema), + z.lazy(() => CancelDeploymentHas2$inboundSchema).and( + z.object({ type: z.literal("header") }), + ), + z.lazy(() => CancelDeploymentHas2$inboundSchema).and( + z.object({ type: z.literal("cookie") }), + ), + z.lazy(() => CancelDeploymentHas2$inboundSchema).and( + z.object({ type: z.literal("query") }), + ), ]); /** @internal */ export type CancelDeploymentRoutesHas$Outbound = | CancelDeploymentHas1$Outbound - | CancelDeploymentHas2$Outbound; + | (CancelDeploymentHas2$Outbound & { type: "header" }) + | (CancelDeploymentHas2$Outbound & { type: "cookie" }) + | (CancelDeploymentHas2$Outbound & { type: "query" }); /** @internal */ export const CancelDeploymentRoutesHas$outboundSchema: z.ZodType< @@ -5076,7 +5060,15 @@ export const CancelDeploymentRoutesHas$outboundSchema: z.ZodType< CancelDeploymentRoutesHas > = z.union([ z.lazy(() => CancelDeploymentHas1$outboundSchema), - z.lazy(() => CancelDeploymentHas2$outboundSchema), + z.lazy(() => CancelDeploymentHas2$outboundSchema).and( + z.object({ type: z.literal("header") }), + ), + z.lazy(() => CancelDeploymentHas2$outboundSchema).and( + z.object({ type: z.literal("cookie") }), + ), + z.lazy(() => CancelDeploymentHas2$outboundSchema).and( + z.object({ type: z.literal("query") }), + ), ]); export function cancelDeploymentRoutesHasToJSON( @@ -5336,15 +5328,6 @@ export function cancelDeploymentMissing2FromJSON( ); } -/** @internal */ -export const CancelDeploymentMissingType$inboundSchema: z.ZodNativeEnum< - typeof CancelDeploymentMissingType -> = z.nativeEnum(CancelDeploymentMissingType); -/** @internal */ -export const CancelDeploymentMissingType$outboundSchema: z.ZodNativeEnum< - typeof CancelDeploymentMissingType -> = CancelDeploymentMissingType$inboundSchema; - /** @internal */ export const CancelDeploymentValueDeploymentsResponseEq$inboundSchema: z.ZodType = @@ -5516,7 +5499,7 @@ export const CancelDeploymentMissing1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: CancelDeploymentMissingType$inboundSchema, + type: z.literal("host"), value: z.union([ z.string(), z.lazy(() => CancelDeploymentValueDeploymentsResponse2$inboundSchema), @@ -5524,7 +5507,7 @@ export const CancelDeploymentMissing1$inboundSchema: z.ZodType< }); /** @internal */ export type CancelDeploymentMissing1$Outbound = { - type: string; + type: "host"; value: string | CancelDeploymentValueDeploymentsResponse2$Outbound; }; @@ -5534,7 +5517,7 @@ export const CancelDeploymentMissing1$outboundSchema: z.ZodType< z.ZodTypeDef, CancelDeploymentMissing1 > = z.object({ - type: CancelDeploymentMissingType$outboundSchema, + type: z.literal("host"), value: z.union([ z.string(), z.lazy(() => CancelDeploymentValueDeploymentsResponse2$outboundSchema), @@ -5565,12 +5548,22 @@ export const RoutesMissing$inboundSchema: z.ZodType< unknown > = z.union([ z.lazy(() => CancelDeploymentMissing1$inboundSchema), - z.lazy(() => CancelDeploymentMissing2$inboundSchema), + z.lazy(() => CancelDeploymentMissing2$inboundSchema).and( + z.object({ type: z.literal("header") }), + ), + z.lazy(() => CancelDeploymentMissing2$inboundSchema).and( + z.object({ type: z.literal("cookie") }), + ), + z.lazy(() => CancelDeploymentMissing2$inboundSchema).and( + z.object({ type: z.literal("query") }), + ), ]); /** @internal */ export type RoutesMissing$Outbound = | CancelDeploymentMissing1$Outbound - | CancelDeploymentMissing2$Outbound; + | (CancelDeploymentMissing2$Outbound & { type: "header" }) + | (CancelDeploymentMissing2$Outbound & { type: "cookie" }) + | (CancelDeploymentMissing2$Outbound & { type: "query" }); /** @internal */ export const RoutesMissing$outboundSchema: z.ZodType< @@ -5579,7 +5572,15 @@ export const RoutesMissing$outboundSchema: z.ZodType< RoutesMissing > = z.union([ z.lazy(() => CancelDeploymentMissing1$outboundSchema), - z.lazy(() => CancelDeploymentMissing2$outboundSchema), + z.lazy(() => CancelDeploymentMissing2$outboundSchema).and( + z.object({ type: z.literal("header") }), + ), + z.lazy(() => CancelDeploymentMissing2$outboundSchema).and( + z.object({ type: z.literal("cookie") }), + ), + z.lazy(() => CancelDeploymentMissing2$outboundSchema).and( + z.object({ type: z.literal("query") }), + ), ]); export function routesMissingToJSON(routesMissing: RoutesMissing): string { @@ -5973,13 +5974,29 @@ export const CancelDeploymentRoutes1$inboundSchema: z.ZodType< has: z.array( z.union([ z.lazy(() => CancelDeploymentHas1$inboundSchema), - z.lazy(() => CancelDeploymentHas2$inboundSchema), + z.lazy(() => + CancelDeploymentHas2$inboundSchema + ).and(z.object({ type: z.literal("header") })), + z.lazy(() => + CancelDeploymentHas2$inboundSchema + ).and(z.object({ type: z.literal("cookie") })), + z.lazy(() => + CancelDeploymentHas2$inboundSchema + ).and(z.object({ type: z.literal("query") })), ]), ).optional(), missing: z.array( z.union([ z.lazy(() => CancelDeploymentMissing1$inboundSchema), - z.lazy(() => CancelDeploymentMissing2$inboundSchema), + z.lazy(() => + CancelDeploymentMissing2$inboundSchema + ).and(z.object({ type: z.literal("header") })), + z.lazy(() => + CancelDeploymentMissing2$inboundSchema + ).and(z.object({ type: z.literal("cookie") })), + z.lazy(() => + CancelDeploymentMissing2$inboundSchema + ).and(z.object({ type: z.literal("query") })), ]), ).optional(), mitigate: z.lazy(() => CancelDeploymentRoutesMitigate$inboundSchema) @@ -6003,11 +6020,19 @@ export type CancelDeploymentRoutes1$Outbound = { important?: boolean | undefined; status?: number | undefined; has?: - | Array + | Array< + | CancelDeploymentHas1$Outbound + | (CancelDeploymentHas2$Outbound & { type: "header" }) + | (CancelDeploymentHas2$Outbound & { type: "cookie" }) + | (CancelDeploymentHas2$Outbound & { type: "query" }) + > | undefined; missing?: | Array< - CancelDeploymentMissing1$Outbound | CancelDeploymentMissing2$Outbound + | CancelDeploymentMissing1$Outbound + | (CancelDeploymentMissing2$Outbound & { type: "header" }) + | (CancelDeploymentMissing2$Outbound & { type: "cookie" }) + | (CancelDeploymentMissing2$Outbound & { type: "query" }) > | undefined; mitigate?: CancelDeploymentRoutesMitigate$Outbound | undefined; @@ -6037,13 +6062,29 @@ export const CancelDeploymentRoutes1$outboundSchema: z.ZodType< has: z.array( z.union([ z.lazy(() => CancelDeploymentHas1$outboundSchema), - z.lazy(() => CancelDeploymentHas2$outboundSchema), + z.lazy(() => + CancelDeploymentHas2$outboundSchema + ).and(z.object({ type: z.literal("header") })), + z.lazy(() => + CancelDeploymentHas2$outboundSchema + ).and(z.object({ type: z.literal("cookie") })), + z.lazy(() => + CancelDeploymentHas2$outboundSchema + ).and(z.object({ type: z.literal("query") })), ]), ).optional(), missing: z.array( z.union([ z.lazy(() => CancelDeploymentMissing1$outboundSchema), - z.lazy(() => CancelDeploymentMissing2$outboundSchema), + z.lazy(() => + CancelDeploymentMissing2$outboundSchema + ).and(z.object({ type: z.literal("header") })), + z.lazy(() => + CancelDeploymentMissing2$outboundSchema + ).and(z.object({ type: z.literal("cookie") })), + z.lazy(() => + CancelDeploymentMissing2$outboundSchema + ).and(z.object({ type: z.literal("query") })), ]), ).optional(), mitigate: z.lazy(() => CancelDeploymentRoutesMitigate$outboundSchema) @@ -6116,15 +6157,6 @@ export function cancelDeploymentRoutesFromJSON( ); } -/** @internal */ -export const CancelDeploymentGitRepoDeploymentsResponseType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(CancelDeploymentGitRepoDeploymentsResponseType); -/** @internal */ -export const CancelDeploymentGitRepoDeploymentsResponseType$outboundSchema: - z.ZodNativeEnum = - CancelDeploymentGitRepoDeploymentsResponseType$inboundSchema; - /** @internal */ export const CancelDeploymentGitRepoDeploymentsResponseOwnerType$inboundSchema: z.ZodNativeEnum = @@ -6143,7 +6175,7 @@ export const CancelDeploymentGitRepo3$inboundSchema: z.ZodType< owner: z.string(), repoUuid: z.string(), slug: z.string(), - type: CancelDeploymentGitRepoDeploymentsResponseType$inboundSchema, + type: z.literal("bitbucket"), workspaceUuid: z.string(), path: z.string(), defaultBranch: z.string(), @@ -6156,7 +6188,7 @@ export type CancelDeploymentGitRepo3$Outbound = { owner: string; repoUuid: string; slug: string; - type: string; + type: "bitbucket"; workspaceUuid: string; path: string; defaultBranch: string; @@ -6174,7 +6206,7 @@ export const CancelDeploymentGitRepo3$outboundSchema: z.ZodType< owner: z.string(), repoUuid: z.string(), slug: z.string(), - type: CancelDeploymentGitRepoDeploymentsResponseType$outboundSchema, + type: z.literal("bitbucket"), workspaceUuid: z.string(), path: z.string(), defaultBranch: z.string(), @@ -6200,16 +6232,6 @@ export function cancelDeploymentGitRepo3FromJSON( ); } -/** @internal */ -export const CancelDeploymentGitRepoDeploymentsType$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - CancelDeploymentGitRepoDeploymentsType, - ); -/** @internal */ -export const CancelDeploymentGitRepoDeploymentsType$outboundSchema: - z.ZodNativeEnum = - CancelDeploymentGitRepoDeploymentsType$inboundSchema; - /** @internal */ export const CancelDeploymentGitRepoDeploymentsOwnerType$inboundSchema: z.ZodNativeEnum = z @@ -6228,7 +6250,7 @@ export const CancelDeploymentGitRepo2$inboundSchema: z.ZodType< org: z.string(), repo: z.string(), repoId: z.number(), - type: CancelDeploymentGitRepoDeploymentsType$inboundSchema, + type: z.literal("github"), repoOwnerId: z.number(), path: z.string(), defaultBranch: z.string(), @@ -6241,7 +6263,7 @@ export type CancelDeploymentGitRepo2$Outbound = { org: string; repo: string; repoId: number; - type: string; + type: "github"; repoOwnerId: number; path: string; defaultBranch: string; @@ -6259,7 +6281,7 @@ export const CancelDeploymentGitRepo2$outboundSchema: z.ZodType< org: z.string(), repo: z.string(), repoId: z.number(), - type: CancelDeploymentGitRepoDeploymentsType$outboundSchema, + type: z.literal("github"), repoOwnerId: z.number(), path: z.string(), defaultBranch: z.string(), @@ -6285,15 +6307,6 @@ export function cancelDeploymentGitRepo2FromJSON( ); } -/** @internal */ -export const CancelDeploymentGitRepoType$inboundSchema: z.ZodNativeEnum< - typeof CancelDeploymentGitRepoType -> = z.nativeEnum(CancelDeploymentGitRepoType); -/** @internal */ -export const CancelDeploymentGitRepoType$outboundSchema: z.ZodNativeEnum< - typeof CancelDeploymentGitRepoType -> = CancelDeploymentGitRepoType$inboundSchema; - /** @internal */ export const CancelDeploymentGitRepoOwnerType$inboundSchema: z.ZodNativeEnum< typeof CancelDeploymentGitRepoOwnerType @@ -6311,7 +6324,7 @@ export const CancelDeploymentGitRepo1$inboundSchema: z.ZodType< > = z.object({ namespace: z.string(), projectId: z.number(), - type: CancelDeploymentGitRepoType$inboundSchema, + type: z.literal("gitlab"), url: z.string(), path: z.string(), defaultBranch: z.string(), @@ -6323,7 +6336,7 @@ export const CancelDeploymentGitRepo1$inboundSchema: z.ZodType< export type CancelDeploymentGitRepo1$Outbound = { namespace: string; projectId: number; - type: string; + type: "gitlab"; url: string; path: string; defaultBranch: string; @@ -6340,7 +6353,7 @@ export const CancelDeploymentGitRepo1$outboundSchema: z.ZodType< > = z.object({ namespace: z.string(), projectId: z.number(), - type: CancelDeploymentGitRepoType$outboundSchema, + type: z.literal("gitlab"), url: z.string(), path: z.string(), defaultBranch: z.string(), @@ -6372,15 +6385,15 @@ export const CancelDeploymentGitRepo$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ + z.lazy(() => CancelDeploymentGitRepo1$inboundSchema), z.lazy(() => CancelDeploymentGitRepo2$inboundSchema), z.lazy(() => CancelDeploymentGitRepo3$inboundSchema), - z.lazy(() => CancelDeploymentGitRepo1$inboundSchema), ]); /** @internal */ export type CancelDeploymentGitRepo$Outbound = + | CancelDeploymentGitRepo1$Outbound | CancelDeploymentGitRepo2$Outbound - | CancelDeploymentGitRepo3$Outbound - | CancelDeploymentGitRepo1$Outbound; + | CancelDeploymentGitRepo3$Outbound; /** @internal */ export const CancelDeploymentGitRepo$outboundSchema: z.ZodType< @@ -6388,9 +6401,9 @@ export const CancelDeploymentGitRepo$outboundSchema: z.ZodType< z.ZodTypeDef, CancelDeploymentGitRepo > = z.union([ + z.lazy(() => CancelDeploymentGitRepo1$outboundSchema), z.lazy(() => CancelDeploymentGitRepo2$outboundSchema), z.lazy(() => CancelDeploymentGitRepo3$outboundSchema), - z.lazy(() => CancelDeploymentGitRepo1$outboundSchema), ]); export function cancelDeploymentGitRepoToJSON( @@ -7072,9 +7085,9 @@ export const CancelDeploymentResponseBody$inboundSchema: z.ZodType< ), gitRepo: z.nullable( z.union([ + z.lazy(() => CancelDeploymentGitRepo1$inboundSchema), z.lazy(() => CancelDeploymentGitRepo2$inboundSchema), z.lazy(() => CancelDeploymentGitRepo3$inboundSchema), - z.lazy(() => CancelDeploymentGitRepo1$inboundSchema), ]), ).optional(), flags: z.union([ @@ -7198,9 +7211,9 @@ export type CancelDeploymentResponseBody$Outbound = { > | null; gitRepo?: + | CancelDeploymentGitRepo1$Outbound | CancelDeploymentGitRepo2$Outbound | CancelDeploymentGitRepo3$Outbound - | CancelDeploymentGitRepo1$Outbound | null | undefined; flags?: @@ -7339,9 +7352,9 @@ export const CancelDeploymentResponseBody$outboundSchema: z.ZodType< ), gitRepo: z.nullable( z.union([ + z.lazy(() => CancelDeploymentGitRepo1$outboundSchema), z.lazy(() => CancelDeploymentGitRepo2$outboundSchema), z.lazy(() => CancelDeploymentGitRepo3$outboundSchema), - z.lazy(() => CancelDeploymentGitRepo1$outboundSchema), ]), ).optional(), flags: z.union([ diff --git a/src/models/createdeploymentop.ts b/src/models/createdeploymentop.ts index 642ead10..ebf76123 100644 --- a/src/models/createdeploymentop.ts +++ b/src/models/createdeploymentop.ts @@ -1434,13 +1434,6 @@ export type CreateDeploymentHas2 = { value?: string | CreateDeploymentValue2 | undefined; }; -export const CreateDeploymentHasType = { - Host: "host", -} as const; -export type CreateDeploymentHasType = ClosedEnum< - typeof CreateDeploymentHasType ->; - export type Eq = string | number; export type CreateDeploymentValueDeploymentsResponse2002 = { @@ -1462,11 +1455,15 @@ export type CreateDeploymentHasValue = | CreateDeploymentValueDeploymentsResponse2002; export type CreateDeploymentHas1 = { - type: CreateDeploymentHasType; + type: "host"; value: string | CreateDeploymentValueDeploymentsResponse2002; }; -export type RoutesHas = CreateDeploymentHas1 | CreateDeploymentHas2; +export type RoutesHas = + | CreateDeploymentHas1 + | (CreateDeploymentHas2 & { type: "header" }) + | (CreateDeploymentHas2 & { type: "cookie" }) + | (CreateDeploymentHas2 & { type: "query" }); export const CreateDeploymentMissingType = { Header: "header", @@ -1503,11 +1500,6 @@ export type Missing2 = { value?: string | CreateDeploymentValueDeploymentsResponse2 | undefined; }; -export const MissingType = { - Host: "host", -} as const; -export type MissingType = ClosedEnum; - export type CreateDeploymentValueEq = string | number; export type CreateDeploymentValueDeployments2 = { @@ -1527,11 +1519,15 @@ export type CreateDeploymentValueDeployments2 = { export type MissingValue = string | CreateDeploymentValueDeployments2; export type Missing1 = { - type: MissingType; + type: "host"; value: string | CreateDeploymentValueDeployments2; }; -export type Missing = Missing1 | Missing2; +export type Missing = + | Missing1 + | (Missing2 & { type: "header" }) + | (Missing2 & { type: "cookie" }) + | (Missing2 & { type: "query" }); export const RoutesAction = { Challenge: "challenge", @@ -1606,8 +1602,22 @@ export type Routes1 = { check?: boolean | undefined; important?: boolean | undefined; status?: number | undefined; - has?: Array | undefined; - missing?: Array | undefined; + has?: + | Array< + | CreateDeploymentHas1 + | (CreateDeploymentHas2 & { type: "header" }) + | (CreateDeploymentHas2 & { type: "cookie" }) + | (CreateDeploymentHas2 & { type: "query" }) + > + | undefined; + missing?: + | Array< + | Missing1 + | (Missing2 & { type: "header" }) + | (Missing2 & { type: "cookie" }) + | (Missing2 & { type: "query" }) + > + | undefined; mitigate?: RoutesMitigate | undefined; transforms?: Array | undefined; locale?: Locale | undefined; @@ -1627,13 +1637,6 @@ export type Routes1 = { export type Routes = Routes3 | Routes1 | Routes2; -export const CreateDeploymentGitRepoDeploymentsType = { - Bitbucket: "bitbucket", -} as const; -export type CreateDeploymentGitRepoDeploymentsType = ClosedEnum< - typeof CreateDeploymentGitRepoDeploymentsType ->; - export const CreateDeploymentGitRepoOwnerType = { Team: "team", User: "user", @@ -1646,7 +1649,7 @@ export type GitRepo3 = { owner: string; repoUuid: string; slug: string; - type: CreateDeploymentGitRepoDeploymentsType; + type: "bitbucket"; workspaceUuid: string; path: string; defaultBranch: string; @@ -1655,13 +1658,6 @@ export type GitRepo3 = { ownerType: CreateDeploymentGitRepoOwnerType; }; -export const CreateDeploymentGitRepoType = { - Github: "github", -} as const; -export type CreateDeploymentGitRepoType = ClosedEnum< - typeof CreateDeploymentGitRepoType ->; - export const GitRepoOwnerType = { Team: "team", User: "user", @@ -1672,7 +1668,7 @@ export type GitRepo2 = { org: string; repo: string; repoId: number; - type: CreateDeploymentGitRepoType; + type: "github"; repoOwnerId: number; path: string; defaultBranch: string; @@ -1681,11 +1677,6 @@ export type GitRepo2 = { ownerType: GitRepoOwnerType; }; -export const GitRepoType = { - Gitlab: "gitlab", -} as const; -export type GitRepoType = ClosedEnum; - export const OwnerType = { Team: "team", User: "user", @@ -1695,7 +1686,7 @@ export type OwnerType = ClosedEnum; export type GitRepo1 = { namespace: string; projectId: number; - type: GitRepoType; + type: "gitlab"; url: string; path: string; defaultBranch: string; @@ -1704,7 +1695,7 @@ export type GitRepo1 = { ownerType: OwnerType; }; -export type GitRepo = GitRepo2 | GitRepo3 | GitRepo1; +export type GitRepo = GitRepo1 | GitRepo2 | GitRepo3; /** * Flags defined in the Build Output API, used by this deployment. Primarily used by the Toolbar to know about the used flags. @@ -2016,7 +2007,7 @@ export type CreateDeploymentResponseBody = { */ passiveConnectConfigurationId?: string | undefined; routes: Array | null; - gitRepo?: GitRepo2 | GitRepo3 | GitRepo1 | null | undefined; + gitRepo?: GitRepo1 | GitRepo2 | GitRepo3 | null | undefined; flags?: Flags1 | Array | undefined; microfrontends?: | CreateDeploymentMicrofrontends2 @@ -6060,15 +6051,6 @@ export function createDeploymentHas2FromJSON( ); } -/** @internal */ -export const CreateDeploymentHasType$inboundSchema: z.ZodNativeEnum< - typeof CreateDeploymentHasType -> = z.nativeEnum(CreateDeploymentHasType); -/** @internal */ -export const CreateDeploymentHasType$outboundSchema: z.ZodNativeEnum< - typeof CreateDeploymentHasType -> = CreateDeploymentHasType$inboundSchema; - /** @internal */ export const Eq$inboundSchema: z.ZodType = z.union([ z.string(), @@ -6221,7 +6203,7 @@ export const CreateDeploymentHas1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: CreateDeploymentHasType$inboundSchema, + type: z.literal("host"), value: z.union([ z.string(), z.lazy(() => CreateDeploymentValueDeploymentsResponse2002$inboundSchema), @@ -6229,7 +6211,7 @@ export const CreateDeploymentHas1$inboundSchema: z.ZodType< }); /** @internal */ export type CreateDeploymentHas1$Outbound = { - type: string; + type: "host"; value: string | CreateDeploymentValueDeploymentsResponse2002$Outbound; }; @@ -6239,7 +6221,7 @@ export const CreateDeploymentHas1$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDeploymentHas1 > = z.object({ - type: CreateDeploymentHasType$outboundSchema, + type: z.literal("host"), value: z.union([ z.string(), z.lazy(() => CreateDeploymentValueDeploymentsResponse2002$outboundSchema), @@ -6270,12 +6252,22 @@ export const RoutesHas$inboundSchema: z.ZodType< unknown > = z.union([ z.lazy(() => CreateDeploymentHas1$inboundSchema), - z.lazy(() => CreateDeploymentHas2$inboundSchema), + z.lazy(() => CreateDeploymentHas2$inboundSchema).and( + z.object({ type: z.literal("header") }), + ), + z.lazy(() => CreateDeploymentHas2$inboundSchema).and( + z.object({ type: z.literal("cookie") }), + ), + z.lazy(() => CreateDeploymentHas2$inboundSchema).and( + z.object({ type: z.literal("query") }), + ), ]); /** @internal */ export type RoutesHas$Outbound = | CreateDeploymentHas1$Outbound - | CreateDeploymentHas2$Outbound; + | (CreateDeploymentHas2$Outbound & { type: "header" }) + | (CreateDeploymentHas2$Outbound & { type: "cookie" }) + | (CreateDeploymentHas2$Outbound & { type: "query" }); /** @internal */ export const RoutesHas$outboundSchema: z.ZodType< @@ -6284,7 +6276,15 @@ export const RoutesHas$outboundSchema: z.ZodType< RoutesHas > = z.union([ z.lazy(() => CreateDeploymentHas1$outboundSchema), - z.lazy(() => CreateDeploymentHas2$outboundSchema), + z.lazy(() => CreateDeploymentHas2$outboundSchema).and( + z.object({ type: z.literal("header") }), + ), + z.lazy(() => CreateDeploymentHas2$outboundSchema).and( + z.object({ type: z.literal("cookie") }), + ), + z.lazy(() => CreateDeploymentHas2$outboundSchema).and( + z.object({ type: z.literal("query") }), + ), ]); export function routesHasToJSON(routesHas: RoutesHas): string { @@ -6517,13 +6517,6 @@ export function missing2FromJSON( ); } -/** @internal */ -export const MissingType$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(MissingType); -/** @internal */ -export const MissingType$outboundSchema: z.ZodNativeEnum = - MissingType$inboundSchema; - /** @internal */ export const CreateDeploymentValueEq$inboundSchema: z.ZodType< CreateDeploymentValueEq, @@ -6671,7 +6664,7 @@ export const Missing1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: MissingType$inboundSchema, + type: z.literal("host"), value: z.union([ z.string(), z.lazy(() => CreateDeploymentValueDeployments2$inboundSchema), @@ -6679,7 +6672,7 @@ export const Missing1$inboundSchema: z.ZodType< }); /** @internal */ export type Missing1$Outbound = { - type: string; + type: "host"; value: string | CreateDeploymentValueDeployments2$Outbound; }; @@ -6689,7 +6682,7 @@ export const Missing1$outboundSchema: z.ZodType< z.ZodTypeDef, Missing1 > = z.object({ - type: MissingType$outboundSchema, + type: z.literal("host"), value: z.union([ z.string(), z.lazy(() => CreateDeploymentValueDeployments2$outboundSchema), @@ -6713,10 +6706,22 @@ export function missing1FromJSON( export const Missing$inboundSchema: z.ZodType = z.union([ z.lazy(() => Missing1$inboundSchema), - z.lazy(() => Missing2$inboundSchema), + z.lazy(() => Missing2$inboundSchema).and( + z.object({ type: z.literal("header") }), + ), + z.lazy(() => Missing2$inboundSchema).and( + z.object({ type: z.literal("cookie") }), + ), + z.lazy(() => Missing2$inboundSchema).and( + z.object({ type: z.literal("query") }), + ), ]); /** @internal */ -export type Missing$Outbound = Missing1$Outbound | Missing2$Outbound; +export type Missing$Outbound = + | Missing1$Outbound + | (Missing2$Outbound & { type: "header" }) + | (Missing2$Outbound & { type: "cookie" }) + | (Missing2$Outbound & { type: "query" }); /** @internal */ export const Missing$outboundSchema: z.ZodType< @@ -6725,7 +6730,15 @@ export const Missing$outboundSchema: z.ZodType< Missing > = z.union([ z.lazy(() => Missing1$outboundSchema), - z.lazy(() => Missing2$outboundSchema), + z.lazy(() => Missing2$outboundSchema).and( + z.object({ type: z.literal("header") }), + ), + z.lazy(() => Missing2$outboundSchema).and( + z.object({ type: z.literal("cookie") }), + ), + z.lazy(() => Missing2$outboundSchema).and( + z.object({ type: z.literal("query") }), + ), ]); export function missingToJSON(missing: Missing): string { @@ -7072,13 +7085,29 @@ export const Routes1$inboundSchema: z.ZodType = has: z.array( z.union([ z.lazy(() => CreateDeploymentHas1$inboundSchema), - z.lazy(() => CreateDeploymentHas2$inboundSchema), + z.lazy(() => + CreateDeploymentHas2$inboundSchema + ).and(z.object({ type: z.literal("header") })), + z.lazy(() => + CreateDeploymentHas2$inboundSchema + ).and(z.object({ type: z.literal("cookie") })), + z.lazy(() => + CreateDeploymentHas2$inboundSchema + ).and(z.object({ type: z.literal("query") })), ]), ).optional(), missing: z.array( z.union([ z.lazy(() => Missing1$inboundSchema), - z.lazy(() => Missing2$inboundSchema), + z.lazy(() => + Missing2$inboundSchema + ).and(z.object({ type: z.literal("header") })), + z.lazy(() => + Missing2$inboundSchema + ).and(z.object({ type: z.literal("cookie") })), + z.lazy(() => + Missing2$inboundSchema + ).and(z.object({ type: z.literal("query") })), ]), ).optional(), mitigate: z.lazy(() => RoutesMitigate$inboundSchema).optional(), @@ -7103,9 +7132,21 @@ export type Routes1$Outbound = { important?: boolean | undefined; status?: number | undefined; has?: - | Array + | Array< + | CreateDeploymentHas1$Outbound + | (CreateDeploymentHas2$Outbound & { type: "header" }) + | (CreateDeploymentHas2$Outbound & { type: "cookie" }) + | (CreateDeploymentHas2$Outbound & { type: "query" }) + > + | undefined; + missing?: + | Array< + | Missing1$Outbound + | (Missing2$Outbound & { type: "header" }) + | (Missing2$Outbound & { type: "cookie" }) + | (Missing2$Outbound & { type: "query" }) + > | undefined; - missing?: Array | undefined; mitigate?: RoutesMitigate$Outbound | undefined; transforms?: Array | undefined; locale?: Locale$Outbound | undefined; @@ -7133,13 +7174,29 @@ export const Routes1$outboundSchema: z.ZodType< has: z.array( z.union([ z.lazy(() => CreateDeploymentHas1$outboundSchema), - z.lazy(() => CreateDeploymentHas2$outboundSchema), + z.lazy(() => + CreateDeploymentHas2$outboundSchema + ).and(z.object({ type: z.literal("header") })), + z.lazy(() => + CreateDeploymentHas2$outboundSchema + ).and(z.object({ type: z.literal("cookie") })), + z.lazy(() => + CreateDeploymentHas2$outboundSchema + ).and(z.object({ type: z.literal("query") })), ]), ).optional(), missing: z.array( z.union([ z.lazy(() => Missing1$outboundSchema), - z.lazy(() => Missing2$outboundSchema), + z.lazy(() => + Missing2$outboundSchema + ).and(z.object({ type: z.literal("header") })), + z.lazy(() => + Missing2$outboundSchema + ).and(z.object({ type: z.literal("cookie") })), + z.lazy(() => + Missing2$outboundSchema + ).and(z.object({ type: z.literal("query") })), ]), ).optional(), mitigate: z.lazy(() => RoutesMitigate$outboundSchema).optional(), @@ -7202,16 +7259,6 @@ export function routesFromJSON( ); } -/** @internal */ -export const CreateDeploymentGitRepoDeploymentsType$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - CreateDeploymentGitRepoDeploymentsType, - ); -/** @internal */ -export const CreateDeploymentGitRepoDeploymentsType$outboundSchema: - z.ZodNativeEnum = - CreateDeploymentGitRepoDeploymentsType$inboundSchema; - /** @internal */ export const CreateDeploymentGitRepoOwnerType$inboundSchema: z.ZodNativeEnum< typeof CreateDeploymentGitRepoOwnerType @@ -7230,7 +7277,7 @@ export const GitRepo3$inboundSchema: z.ZodType< owner: z.string(), repoUuid: z.string(), slug: z.string(), - type: CreateDeploymentGitRepoDeploymentsType$inboundSchema, + type: z.literal("bitbucket"), workspaceUuid: z.string(), path: z.string(), defaultBranch: z.string(), @@ -7243,7 +7290,7 @@ export type GitRepo3$Outbound = { owner: string; repoUuid: string; slug: string; - type: string; + type: "bitbucket"; workspaceUuid: string; path: string; defaultBranch: string; @@ -7261,7 +7308,7 @@ export const GitRepo3$outboundSchema: z.ZodType< owner: z.string(), repoUuid: z.string(), slug: z.string(), - type: CreateDeploymentGitRepoDeploymentsType$outboundSchema, + type: z.literal("bitbucket"), workspaceUuid: z.string(), path: z.string(), defaultBranch: z.string(), @@ -7283,15 +7330,6 @@ export function gitRepo3FromJSON( ); } -/** @internal */ -export const CreateDeploymentGitRepoType$inboundSchema: z.ZodNativeEnum< - typeof CreateDeploymentGitRepoType -> = z.nativeEnum(CreateDeploymentGitRepoType); -/** @internal */ -export const CreateDeploymentGitRepoType$outboundSchema: z.ZodNativeEnum< - typeof CreateDeploymentGitRepoType -> = CreateDeploymentGitRepoType$inboundSchema; - /** @internal */ export const GitRepoOwnerType$inboundSchema: z.ZodNativeEnum< typeof GitRepoOwnerType @@ -7310,7 +7348,7 @@ export const GitRepo2$inboundSchema: z.ZodType< org: z.string(), repo: z.string(), repoId: z.number(), - type: CreateDeploymentGitRepoType$inboundSchema, + type: z.literal("github"), repoOwnerId: z.number(), path: z.string(), defaultBranch: z.string(), @@ -7323,7 +7361,7 @@ export type GitRepo2$Outbound = { org: string; repo: string; repoId: number; - type: string; + type: "github"; repoOwnerId: number; path: string; defaultBranch: string; @@ -7341,7 +7379,7 @@ export const GitRepo2$outboundSchema: z.ZodType< org: z.string(), repo: z.string(), repoId: z.number(), - type: CreateDeploymentGitRepoType$outboundSchema, + type: z.literal("github"), repoOwnerId: z.number(), path: z.string(), defaultBranch: z.string(), @@ -7363,13 +7401,6 @@ export function gitRepo2FromJSON( ); } -/** @internal */ -export const GitRepoType$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(GitRepoType); -/** @internal */ -export const GitRepoType$outboundSchema: z.ZodNativeEnum = - GitRepoType$inboundSchema; - /** @internal */ export const OwnerType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(OwnerType); @@ -7385,7 +7416,7 @@ export const GitRepo1$inboundSchema: z.ZodType< > = z.object({ namespace: z.string(), projectId: z.number(), - type: GitRepoType$inboundSchema, + type: z.literal("gitlab"), url: z.string(), path: z.string(), defaultBranch: z.string(), @@ -7397,7 +7428,7 @@ export const GitRepo1$inboundSchema: z.ZodType< export type GitRepo1$Outbound = { namespace: string; projectId: number; - type: string; + type: "gitlab"; url: string; path: string; defaultBranch: string; @@ -7414,7 +7445,7 @@ export const GitRepo1$outboundSchema: z.ZodType< > = z.object({ namespace: z.string(), projectId: z.number(), - type: GitRepoType$outboundSchema, + type: z.literal("gitlab"), url: z.string(), path: z.string(), defaultBranch: z.string(), @@ -7439,15 +7470,15 @@ export function gitRepo1FromJSON( /** @internal */ export const GitRepo$inboundSchema: z.ZodType = z.union([ + z.lazy(() => GitRepo1$inboundSchema), z.lazy(() => GitRepo2$inboundSchema), z.lazy(() => GitRepo3$inboundSchema), - z.lazy(() => GitRepo1$inboundSchema), ]); /** @internal */ export type GitRepo$Outbound = + | GitRepo1$Outbound | GitRepo2$Outbound - | GitRepo3$Outbound - | GitRepo1$Outbound; + | GitRepo3$Outbound; /** @internal */ export const GitRepo$outboundSchema: z.ZodType< @@ -7455,9 +7486,9 @@ export const GitRepo$outboundSchema: z.ZodType< z.ZodTypeDef, GitRepo > = z.union([ + z.lazy(() => GitRepo1$outboundSchema), z.lazy(() => GitRepo2$outboundSchema), z.lazy(() => GitRepo3$outboundSchema), - z.lazy(() => GitRepo1$outboundSchema), ]); export function gitRepoToJSON(gitRepo: GitRepo): string { @@ -8078,9 +8109,9 @@ export const CreateDeploymentResponseBody$inboundSchema: z.ZodType< ), gitRepo: z.nullable( z.union([ + z.lazy(() => GitRepo1$inboundSchema), z.lazy(() => GitRepo2$inboundSchema), z.lazy(() => GitRepo3$inboundSchema), - z.lazy(() => GitRepo1$inboundSchema), ]), ).optional(), flags: z.union([ @@ -8195,9 +8226,9 @@ export type CreateDeploymentResponseBody$Outbound = { passiveConnectConfigurationId?: string | undefined; routes: Array | null; gitRepo?: + | GitRepo1$Outbound | GitRepo2$Outbound | GitRepo3$Outbound - | GitRepo1$Outbound | null | undefined; flags?: Flags1$Outbound | Array | undefined; @@ -8325,9 +8356,9 @@ export const CreateDeploymentResponseBody$outboundSchema: z.ZodType< ), gitRepo: z.nullable( z.union([ + z.lazy(() => GitRepo1$outboundSchema), z.lazy(() => GitRepo2$outboundSchema), z.lazy(() => GitRepo3$outboundSchema), - z.lazy(() => GitRepo1$outboundSchema), ]), ).optional(), flags: z.union([ diff --git a/src/models/createdrainop.ts b/src/models/createdrainop.ts index bf3174b2..c8bb25db 100644 --- a/src/models/createdrainop.ts +++ b/src/models/createdrainop.ts @@ -207,15 +207,6 @@ export type CreateDrainResponseBodySchemas = { speedInsights?: CreateDrainResponseBodyDrainsSpeedInsights | undefined; }; -export const CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type = - { - Internal: "internal", - } as const; -export type CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type = - ClosedEnum< - typeof CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type - >; - export const CreateDrainDeliveryTarget = { VercelOtelTracesDb: "vercel-otel-traces-db", } as const; @@ -224,31 +215,16 @@ export type CreateDrainDeliveryTarget = ClosedEnum< >; export type CreateDrainDelivery4 = { - type: CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type; + type: "internal"; target: CreateDrainDeliveryTarget; }; -export const CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType = - { - Clickhouse: "clickhouse", - } as const; -export type CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType = - ClosedEnum< - typeof CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType - >; - export type CreateDrainDelivery3 = { - type: CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType; + type: "clickhouse"; endpoint: string; table: string; }; -export const CreateDrainDeliveryDrainsResponse200ApplicationJSONType = { - Otlphttp: "otlphttp", -} as const; -export type CreateDrainDeliveryDrainsResponse200ApplicationJSONType = - ClosedEnum; - export type CreateDrainDeliveryEndpoint = { traces: string; }; @@ -278,20 +254,13 @@ export type CreateDrainDeliveryDrainsSecret = | string; export type CreateDrainDeliveryDrains2 = { - type: CreateDrainDeliveryDrainsResponse200ApplicationJSONType; + type: "otlphttp"; endpoint: CreateDrainDeliveryEndpoint; encoding: CreateDrainDeliveryDrainsResponse200ApplicationJSONEncoding; headers: { [k: string]: string }; secret?: CreateDrainSecretDrainsResponse2 | string | undefined; }; -export const CreateDrainDeliveryDrainsResponse200Type = { - Http: "http", -} as const; -export type CreateDrainDeliveryDrainsResponse200Type = ClosedEnum< - typeof CreateDrainDeliveryDrainsResponse200Type ->; - export const CreateDrainDeliveryDrainsResponse200Encoding = { Json: "json", Ndjson: "ndjson", @@ -322,7 +291,7 @@ export type CreateDrainSecretDrains2 = { export type CreateDrainDeliverySecret = CreateDrainSecretDrains2 | string; export type CreateDrainDeliveryDrains1 = { - type: CreateDrainDeliveryDrainsResponse200Type; + type: "http"; endpoint: string; encoding: CreateDrainDeliveryDrainsResponse200Encoding; compression?: CreateDrainDeliveryCompression | undefined; @@ -377,60 +346,27 @@ export type ResponseBodyDisabledReason = ClosedEnum< typeof ResponseBodyDisabledReason >; -export const CreateDrainSourceDrainsKind = { - Integration: "integration", -} as const; -export type CreateDrainSourceDrainsKind = ClosedEnum< - typeof CreateDrainSourceDrainsKind ->; - export type CreateDrainSourceDrains2 = { - kind: CreateDrainSourceDrainsKind; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; integrationConfigurationId: string; }; -export const CreateDrainSourceKind = { - SelfServed: "self-served", -} as const; -export type CreateDrainSourceKind = ClosedEnum; - export type CreateDrainSourceDrains1 = { - kind: CreateDrainSourceKind; + kind: "self-served"; }; export type CreateDrainResponseBodyDrainsSource = - | CreateDrainSourceDrains2 - | CreateDrainSourceDrains1; - -export const CreateDrainFilterV2DrainsVersion = { - V2: "v2", -} as const; -export type CreateDrainFilterV2DrainsVersion = ClosedEnum< - typeof CreateDrainFilterV2DrainsVersion ->; - -export const CreateDrainFilterDrainsResponseType = { - Odata: "odata", -} as const; -export type CreateDrainFilterDrainsResponseType = ClosedEnum< - typeof CreateDrainFilterDrainsResponseType ->; + | CreateDrainSourceDrains1 + | CreateDrainSourceDrains2; export type CreateDrainFilterDrainsResponse2 = { - type: CreateDrainFilterDrainsResponseType; + type: "odata"; text: string; }; -export const CreateDrainFilterDrainsType = { - Basic: "basic", -} as const; -export type CreateDrainFilterDrainsType = ClosedEnum< - typeof CreateDrainFilterDrainsType ->; - export type CreateDrainFilterDrainsResponseProject = { ids?: Array | undefined; }; @@ -466,56 +402,37 @@ export type CreateDrainFilterDrainsResponseDeployment = { }; export type CreateDrainFilterDrains1 = { - type: CreateDrainFilterDrainsType; + type: "basic"; project?: CreateDrainFilterDrainsResponseProject | undefined; log?: CreateDrainFilterLog | undefined; deployment?: CreateDrainFilterDrainsResponseDeployment | undefined; }; export type CreateDrainFilterV2Filter = - | CreateDrainFilterDrainsResponse2 - | CreateDrainFilterDrains1; + | CreateDrainFilterDrains1 + | CreateDrainFilterDrainsResponse2; export type CreateDrainFilterV22 = { - version: CreateDrainFilterV2DrainsVersion; - filter: CreateDrainFilterDrainsResponse2 | CreateDrainFilterDrains1; + version: "v2"; + filter: CreateDrainFilterDrains1 | CreateDrainFilterDrainsResponse2; }; -export const CreateDrainFilterV2Version = { - V1: "v1", -} as const; -export type CreateDrainFilterV2Version = ClosedEnum< - typeof CreateDrainFilterV2Version ->; - export type CreateDrainFilterV21 = { - version: CreateDrainFilterV2Version; + version: "v1"; }; -export type ResponseBodyFilterV2 = CreateDrainFilterV22 | CreateDrainFilterV21; - -export const ProjectAccessAccess = { - Some: "some", -} as const; -export type ProjectAccessAccess = ClosedEnum; +export type ResponseBodyFilterV2 = CreateDrainFilterV21 | CreateDrainFilterV22; export type ProjectAccess2 = { - access: ProjectAccessAccess; + access: "some"; projectIds: Array; }; -export const CreateDrainProjectAccessAccess = { - All: "all", -} as const; -export type CreateDrainProjectAccessAccess = ClosedEnum< - typeof CreateDrainProjectAccessAccess ->; - export type ProjectAccess1 = { - access: CreateDrainProjectAccessAccess; + access: "all"; }; -export type ProjectAccess = ProjectAccess2 | ProjectAccess1; +export type ProjectAccess = ProjectAccess1 | ProjectAccess2; export type CreateDrainResponseBody2 = { id: string; @@ -538,13 +455,13 @@ export type CreateDrainResponseBody2 = { disabledReason?: ResponseBodyDisabledReason | undefined; disabledBy?: string | undefined; firstErrorTimestamp?: number | undefined; - source: CreateDrainSourceDrains2 | CreateDrainSourceDrains1; + source: CreateDrainSourceDrains1 | CreateDrainSourceDrains2; filter?: string | undefined; - filterV2?: CreateDrainFilterV22 | CreateDrainFilterV21 | undefined; + filterV2?: CreateDrainFilterV21 | CreateDrainFilterV22 | undefined; integrationIcon?: string | undefined; integrationConfigurationUri?: string | undefined; integrationWebsite?: string | undefined; - projectAccess?: ProjectAccess2 | ProjectAccess1 | undefined; + projectAccess?: ProjectAccess1 | ProjectAccess2 | undefined; }; export type ResponseBodyLog = {}; @@ -562,43 +479,22 @@ export type ResponseBodySchemas = { speedInsights?: CreateDrainResponseBodySpeedInsights | undefined; }; -export const CreateDrainDeliveryDrainsResponseType = { - Internal: "internal", -} as const; -export type CreateDrainDeliveryDrainsResponseType = ClosedEnum< - typeof CreateDrainDeliveryDrainsResponseType ->; - export const DeliveryTarget = { VercelOtelTracesDb: "vercel-otel-traces-db", } as const; export type DeliveryTarget = ClosedEnum; export type Delivery4 = { - type: CreateDrainDeliveryDrainsResponseType; + type: "internal"; target: DeliveryTarget; }; -export const CreateDrainDeliveryDrainsType = { - Clickhouse: "clickhouse", -} as const; -export type CreateDrainDeliveryDrainsType = ClosedEnum< - typeof CreateDrainDeliveryDrainsType ->; - export type Delivery3 = { - type: CreateDrainDeliveryDrainsType; + type: "clickhouse"; endpoint: string; table: string; }; -export const CreateDrainDeliveryType = { - Otlphttp: "otlphttp", -} as const; -export type CreateDrainDeliveryType = ClosedEnum< - typeof CreateDrainDeliveryType ->; - export type CreateDrainDeliveryDrainsEndpoint = { traces: string; }; @@ -623,18 +519,13 @@ export type CreateDrainSecret2 = { export type DeliverySecret = CreateDrainSecret2 | string; export type CreateDrainDelivery2 = { - type: CreateDrainDeliveryType; + type: "otlphttp"; endpoint: CreateDrainDeliveryDrainsEndpoint; encoding: CreateDrainDeliveryDrainsResponseEncoding; headers: { [k: string]: string }; secret?: CreateDrainSecret2 | string | undefined; }; -export const DeliveryType = { - Http: "http", -} as const; -export type DeliveryType = ClosedEnum; - export const CreateDrainDeliveryDrainsEncoding = { Json: "json", Ndjson: "ndjson", @@ -663,7 +554,7 @@ export type Secret2 = { export type Secret = Secret2 | string; export type CreateDrainDelivery1 = { - type: DeliveryType; + type: "http"; endpoint: string; encoding: CreateDrainDeliveryDrainsEncoding; compression?: CreateDrainDeliveryDrainsCompression | undefined; @@ -714,56 +605,27 @@ export const DisabledReason = { } as const; export type DisabledReason = ClosedEnum; -export const CreateDrainSourceDrainsResponse200Kind = { - Integration: "integration", -} as const; -export type CreateDrainSourceDrainsResponse200Kind = ClosedEnum< - typeof CreateDrainSourceDrainsResponse200Kind ->; - export type CreateDrainSource2 = { - kind: CreateDrainSourceDrainsResponse200Kind; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; integrationConfigurationId: string; }; -export const CreateDrainSourceDrainsResponseKind = { - SelfServed: "self-served", -} as const; -export type CreateDrainSourceDrainsResponseKind = ClosedEnum< - typeof CreateDrainSourceDrainsResponseKind ->; - export type CreateDrainSource1 = { - kind: CreateDrainSourceDrainsResponseKind; + kind: "self-served"; }; export type CreateDrainResponseBodySource = - | CreateDrainSource2 - | CreateDrainSource1; - -export const FilterV2Version = { - V2: "v2", -} as const; -export type FilterV2Version = ClosedEnum; - -export const CreateDrainFilterType = { - Odata: "odata", -} as const; -export type CreateDrainFilterType = ClosedEnum; + | CreateDrainSource1 + | CreateDrainSource2; export type CreateDrainFilterDrains2 = { - type: CreateDrainFilterType; + type: "odata"; text: string; }; -export const FilterType = { - Basic: "basic", -} as const; -export type FilterType = ClosedEnum; - export type CreateDrainFilterDrainsProject = { ids?: Array | undefined; }; @@ -799,31 +661,24 @@ export type CreateDrainFilterDrainsDeployment = { }; export type CreateDrainFilter1 = { - type: FilterType; + type: "basic"; project?: CreateDrainFilterDrainsProject | undefined; log?: CreateDrainFilterDrainsLog | undefined; deployment?: CreateDrainFilterDrainsDeployment | undefined; }; -export type FilterV2Filter = CreateDrainFilterDrains2 | CreateDrainFilter1; +export type FilterV2Filter = CreateDrainFilter1 | CreateDrainFilterDrains2; export type FilterV22 = { - version: FilterV2Version; - filter: CreateDrainFilterDrains2 | CreateDrainFilter1; + version: "v2"; + filter: CreateDrainFilter1 | CreateDrainFilterDrains2; }; -export const CreateDrainFilterV2DrainsResponseVersion = { - V1: "v1", -} as const; -export type CreateDrainFilterV2DrainsResponseVersion = ClosedEnum< - typeof CreateDrainFilterV2DrainsResponseVersion ->; - export type FilterV21 = { - version: CreateDrainFilterV2DrainsResponseVersion; + version: "v1"; }; -export type FilterV2 = FilterV22 | FilterV21; +export type FilterV2 = FilterV21 | FilterV22; export type CreateDrainResponseBody1 = { id: string; @@ -846,9 +701,9 @@ export type CreateDrainResponseBody1 = { disabledReason?: DisabledReason | undefined; disabledBy?: string | undefined; firstErrorTimestamp?: number | undefined; - source: CreateDrainSource2 | CreateDrainSource1; + source: CreateDrainSource1 | CreateDrainSource2; filter?: string | undefined; - filterV2?: FilterV22 | FilterV21 | undefined; + filterV2?: FilterV21 | FilterV22 | undefined; }; export type CreateDrainResponseBody = @@ -2078,20 +1933,6 @@ export function createDrainResponseBodySchemasFromJSON( ); } -/** @internal */ -export const CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type - > = z.nativeEnum( - CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type, - ); -/** @internal */ -export const CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type - > = - CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type$inboundSchema; - /** @internal */ export const CreateDrainDeliveryTarget$inboundSchema: z.ZodNativeEnum< typeof CreateDrainDeliveryTarget @@ -2107,13 +1948,12 @@ export const CreateDrainDelivery4$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: - CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type$inboundSchema, + type: z.literal("internal"), target: CreateDrainDeliveryTarget$inboundSchema, }); /** @internal */ export type CreateDrainDelivery4$Outbound = { - type: string; + type: "internal"; target: string; }; @@ -2123,8 +1963,7 @@ export const CreateDrainDelivery4$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDrainDelivery4 > = z.object({ - type: - CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type$outboundSchema, + type: z.literal("internal"), target: CreateDrainDeliveryTarget$outboundSchema, }); @@ -2145,34 +1984,19 @@ export function createDrainDelivery4FromJSON( ); } -/** @internal */ -export const CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType$inboundSchema: - z.ZodNativeEnum< - typeof CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType - > = z.nativeEnum( - CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType, - ); -/** @internal */ -export const CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType$outboundSchema: - z.ZodNativeEnum< - typeof CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType - > = - CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType$inboundSchema; - /** @internal */ export const CreateDrainDelivery3$inboundSchema: z.ZodType< CreateDrainDelivery3, z.ZodTypeDef, unknown > = z.object({ - type: - CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType$inboundSchema, + type: z.literal("clickhouse"), endpoint: z.string(), table: z.string(), }); /** @internal */ export type CreateDrainDelivery3$Outbound = { - type: string; + type: "clickhouse"; endpoint: string; table: string; }; @@ -2183,8 +2007,7 @@ export const CreateDrainDelivery3$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDrainDelivery3 > = z.object({ - type: - CreateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType$outboundSchema, + type: z.literal("clickhouse"), endpoint: z.string(), table: z.string(), }); @@ -2206,17 +2029,6 @@ export function createDrainDelivery3FromJSON( ); } -/** @internal */ -export const CreateDrainDeliveryDrainsResponse200ApplicationJSONType$inboundSchema: - z.ZodNativeEnum< - typeof CreateDrainDeliveryDrainsResponse200ApplicationJSONType - > = z.nativeEnum(CreateDrainDeliveryDrainsResponse200ApplicationJSONType); -/** @internal */ -export const CreateDrainDeliveryDrainsResponse200ApplicationJSONType$outboundSchema: - z.ZodNativeEnum< - typeof CreateDrainDeliveryDrainsResponse200ApplicationJSONType - > = CreateDrainDeliveryDrainsResponse200ApplicationJSONType$inboundSchema; - /** @internal */ export const CreateDrainDeliveryEndpoint$inboundSchema: z.ZodType< CreateDrainDeliveryEndpoint, @@ -2368,7 +2180,7 @@ export const CreateDrainDeliveryDrains2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: CreateDrainDeliveryDrainsResponse200ApplicationJSONType$inboundSchema, + type: z.literal("otlphttp"), endpoint: z.lazy(() => CreateDrainDeliveryEndpoint$inboundSchema), encoding: CreateDrainDeliveryDrainsResponse200ApplicationJSONEncoding$inboundSchema, @@ -2380,7 +2192,7 @@ export const CreateDrainDeliveryDrains2$inboundSchema: z.ZodType< }); /** @internal */ export type CreateDrainDeliveryDrains2$Outbound = { - type: string; + type: "otlphttp"; endpoint: CreateDrainDeliveryEndpoint$Outbound; encoding: string; headers: { [k: string]: string }; @@ -2393,7 +2205,7 @@ export const CreateDrainDeliveryDrains2$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDrainDeliveryDrains2 > = z.object({ - type: CreateDrainDeliveryDrainsResponse200ApplicationJSONType$outboundSchema, + type: z.literal("otlphttp"), endpoint: z.lazy(() => CreateDrainDeliveryEndpoint$outboundSchema), encoding: CreateDrainDeliveryDrainsResponse200ApplicationJSONEncoding$outboundSchema, @@ -2421,15 +2233,6 @@ export function createDrainDeliveryDrains2FromJSON( ); } -/** @internal */ -export const CreateDrainDeliveryDrainsResponse200Type$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(CreateDrainDeliveryDrainsResponse200Type); -/** @internal */ -export const CreateDrainDeliveryDrainsResponse200Type$outboundSchema: - z.ZodNativeEnum = - CreateDrainDeliveryDrainsResponse200Type$inboundSchema; - /** @internal */ export const CreateDrainDeliveryDrainsResponse200Encoding$inboundSchema: z.ZodNativeEnum = z @@ -2540,7 +2343,7 @@ export const CreateDrainDeliveryDrains1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: CreateDrainDeliveryDrainsResponse200Type$inboundSchema, + type: z.literal("http"), endpoint: z.string(), encoding: CreateDrainDeliveryDrainsResponse200Encoding$inboundSchema, compression: CreateDrainDeliveryCompression$inboundSchema.optional(), @@ -2552,7 +2355,7 @@ export const CreateDrainDeliveryDrains1$inboundSchema: z.ZodType< }); /** @internal */ export type CreateDrainDeliveryDrains1$Outbound = { - type: string; + type: "http"; endpoint: string; encoding: string; compression?: string | undefined; @@ -2566,7 +2369,7 @@ export const CreateDrainDeliveryDrains1$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDrainDeliveryDrains1 > = z.object({ - type: CreateDrainDeliveryDrainsResponse200Type$outboundSchema, + type: z.literal("http"), endpoint: z.string(), encoding: CreateDrainDeliveryDrainsResponse200Encoding$outboundSchema, compression: CreateDrainDeliveryCompression$outboundSchema.optional(), @@ -2729,22 +2532,13 @@ export const ResponseBodyDisabledReason$outboundSchema: z.ZodNativeEnum< typeof ResponseBodyDisabledReason > = ResponseBodyDisabledReason$inboundSchema; -/** @internal */ -export const CreateDrainSourceDrainsKind$inboundSchema: z.ZodNativeEnum< - typeof CreateDrainSourceDrainsKind -> = z.nativeEnum(CreateDrainSourceDrainsKind); -/** @internal */ -export const CreateDrainSourceDrainsKind$outboundSchema: z.ZodNativeEnum< - typeof CreateDrainSourceDrainsKind -> = CreateDrainSourceDrainsKind$inboundSchema; - /** @internal */ export const CreateDrainSourceDrains2$inboundSchema: z.ZodType< CreateDrainSourceDrains2, z.ZodTypeDef, unknown > = z.object({ - kind: CreateDrainSourceDrainsKind$inboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -2752,7 +2546,7 @@ export const CreateDrainSourceDrains2$inboundSchema: z.ZodType< }); /** @internal */ export type CreateDrainSourceDrains2$Outbound = { - kind: string; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; @@ -2765,7 +2559,7 @@ export const CreateDrainSourceDrains2$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDrainSourceDrains2 > = z.object({ - kind: CreateDrainSourceDrainsKind$outboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -2789,26 +2583,17 @@ export function createDrainSourceDrains2FromJSON( ); } -/** @internal */ -export const CreateDrainSourceKind$inboundSchema: z.ZodNativeEnum< - typeof CreateDrainSourceKind -> = z.nativeEnum(CreateDrainSourceKind); -/** @internal */ -export const CreateDrainSourceKind$outboundSchema: z.ZodNativeEnum< - typeof CreateDrainSourceKind -> = CreateDrainSourceKind$inboundSchema; - /** @internal */ export const CreateDrainSourceDrains1$inboundSchema: z.ZodType< CreateDrainSourceDrains1, z.ZodTypeDef, unknown > = z.object({ - kind: CreateDrainSourceKind$inboundSchema, + kind: z.literal("self-served"), }); /** @internal */ export type CreateDrainSourceDrains1$Outbound = { - kind: string; + kind: "self-served"; }; /** @internal */ @@ -2817,7 +2602,7 @@ export const CreateDrainSourceDrains1$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDrainSourceDrains1 > = z.object({ - kind: CreateDrainSourceKind$outboundSchema, + kind: z.literal("self-served"), }); export function createDrainSourceDrains1ToJSON( @@ -2843,13 +2628,13 @@ export const CreateDrainResponseBodyDrainsSource$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => CreateDrainSourceDrains2$inboundSchema), z.lazy(() => CreateDrainSourceDrains1$inboundSchema), + z.lazy(() => CreateDrainSourceDrains2$inboundSchema), ]); /** @internal */ export type CreateDrainResponseBodyDrainsSource$Outbound = - | CreateDrainSourceDrains2$Outbound - | CreateDrainSourceDrains1$Outbound; + | CreateDrainSourceDrains1$Outbound + | CreateDrainSourceDrains2$Outbound; /** @internal */ export const CreateDrainResponseBodyDrainsSource$outboundSchema: z.ZodType< @@ -2857,8 +2642,8 @@ export const CreateDrainResponseBodyDrainsSource$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDrainResponseBodyDrainsSource > = z.union([ - z.lazy(() => CreateDrainSourceDrains2$outboundSchema), z.lazy(() => CreateDrainSourceDrains1$outboundSchema), + z.lazy(() => CreateDrainSourceDrains2$outboundSchema), ]); export function createDrainResponseBodyDrainsSourceToJSON( @@ -2881,36 +2666,18 @@ export function createDrainResponseBodyDrainsSourceFromJSON( ); } -/** @internal */ -export const CreateDrainFilterV2DrainsVersion$inboundSchema: z.ZodNativeEnum< - typeof CreateDrainFilterV2DrainsVersion -> = z.nativeEnum(CreateDrainFilterV2DrainsVersion); -/** @internal */ -export const CreateDrainFilterV2DrainsVersion$outboundSchema: z.ZodNativeEnum< - typeof CreateDrainFilterV2DrainsVersion -> = CreateDrainFilterV2DrainsVersion$inboundSchema; - -/** @internal */ -export const CreateDrainFilterDrainsResponseType$inboundSchema: z.ZodNativeEnum< - typeof CreateDrainFilterDrainsResponseType -> = z.nativeEnum(CreateDrainFilterDrainsResponseType); -/** @internal */ -export const CreateDrainFilterDrainsResponseType$outboundSchema: - z.ZodNativeEnum = - CreateDrainFilterDrainsResponseType$inboundSchema; - /** @internal */ export const CreateDrainFilterDrainsResponse2$inboundSchema: z.ZodType< CreateDrainFilterDrainsResponse2, z.ZodTypeDef, unknown > = z.object({ - type: CreateDrainFilterDrainsResponseType$inboundSchema, + type: z.literal("odata"), text: z.string(), }); /** @internal */ export type CreateDrainFilterDrainsResponse2$Outbound = { - type: string; + type: "odata"; text: string; }; @@ -2920,7 +2687,7 @@ export const CreateDrainFilterDrainsResponse2$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDrainFilterDrainsResponse2 > = z.object({ - type: CreateDrainFilterDrainsResponseType$outboundSchema, + type: z.literal("odata"), text: z.string(), }); @@ -2943,15 +2710,6 @@ export function createDrainFilterDrainsResponse2FromJSON( ); } -/** @internal */ -export const CreateDrainFilterDrainsType$inboundSchema: z.ZodNativeEnum< - typeof CreateDrainFilterDrainsType -> = z.nativeEnum(CreateDrainFilterDrainsType); -/** @internal */ -export const CreateDrainFilterDrainsType$outboundSchema: z.ZodNativeEnum< - typeof CreateDrainFilterDrainsType -> = CreateDrainFilterDrainsType$inboundSchema; - /** @internal */ export const CreateDrainFilterDrainsResponseProject$inboundSchema: z.ZodType< CreateDrainFilterDrainsResponseProject, @@ -3120,7 +2878,7 @@ export const CreateDrainFilterDrains1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: CreateDrainFilterDrainsType$inboundSchema, + type: z.literal("basic"), project: z.lazy(() => CreateDrainFilterDrainsResponseProject$inboundSchema) .optional(), log: z.lazy(() => CreateDrainFilterLog$inboundSchema).optional(), @@ -3130,7 +2888,7 @@ export const CreateDrainFilterDrains1$inboundSchema: z.ZodType< }); /** @internal */ export type CreateDrainFilterDrains1$Outbound = { - type: string; + type: "basic"; project?: CreateDrainFilterDrainsResponseProject$Outbound | undefined; log?: CreateDrainFilterLog$Outbound | undefined; deployment?: CreateDrainFilterDrainsResponseDeployment$Outbound | undefined; @@ -3142,7 +2900,7 @@ export const CreateDrainFilterDrains1$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDrainFilterDrains1 > = z.object({ - type: CreateDrainFilterDrainsType$outboundSchema, + type: z.literal("basic"), project: z.lazy(() => CreateDrainFilterDrainsResponseProject$outboundSchema) .optional(), log: z.lazy(() => CreateDrainFilterLog$outboundSchema).optional(), @@ -3174,13 +2932,13 @@ export const CreateDrainFilterV2Filter$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => CreateDrainFilterDrainsResponse2$inboundSchema), z.lazy(() => CreateDrainFilterDrains1$inboundSchema), + z.lazy(() => CreateDrainFilterDrainsResponse2$inboundSchema), ]); /** @internal */ export type CreateDrainFilterV2Filter$Outbound = - | CreateDrainFilterDrainsResponse2$Outbound - | CreateDrainFilterDrains1$Outbound; + | CreateDrainFilterDrains1$Outbound + | CreateDrainFilterDrainsResponse2$Outbound; /** @internal */ export const CreateDrainFilterV2Filter$outboundSchema: z.ZodType< @@ -3188,8 +2946,8 @@ export const CreateDrainFilterV2Filter$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDrainFilterV2Filter > = z.union([ - z.lazy(() => CreateDrainFilterDrainsResponse2$outboundSchema), z.lazy(() => CreateDrainFilterDrains1$outboundSchema), + z.lazy(() => CreateDrainFilterDrainsResponse2$outboundSchema), ]); export function createDrainFilterV2FilterToJSON( @@ -3215,18 +2973,18 @@ export const CreateDrainFilterV22$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - version: CreateDrainFilterV2DrainsVersion$inboundSchema, + version: z.literal("v2"), filter: z.union([ - z.lazy(() => CreateDrainFilterDrainsResponse2$inboundSchema), z.lazy(() => CreateDrainFilterDrains1$inboundSchema), + z.lazy(() => CreateDrainFilterDrainsResponse2$inboundSchema), ]), }); /** @internal */ export type CreateDrainFilterV22$Outbound = { - version: string; + version: "v2"; filter: - | CreateDrainFilterDrainsResponse2$Outbound - | CreateDrainFilterDrains1$Outbound; + | CreateDrainFilterDrains1$Outbound + | CreateDrainFilterDrainsResponse2$Outbound; }; /** @internal */ @@ -3235,10 +2993,10 @@ export const CreateDrainFilterV22$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDrainFilterV22 > = z.object({ - version: CreateDrainFilterV2DrainsVersion$outboundSchema, + version: z.literal("v2"), filter: z.union([ - z.lazy(() => CreateDrainFilterDrainsResponse2$outboundSchema), z.lazy(() => CreateDrainFilterDrains1$outboundSchema), + z.lazy(() => CreateDrainFilterDrainsResponse2$outboundSchema), ]), }); @@ -3259,26 +3017,17 @@ export function createDrainFilterV22FromJSON( ); } -/** @internal */ -export const CreateDrainFilterV2Version$inboundSchema: z.ZodNativeEnum< - typeof CreateDrainFilterV2Version -> = z.nativeEnum(CreateDrainFilterV2Version); -/** @internal */ -export const CreateDrainFilterV2Version$outboundSchema: z.ZodNativeEnum< - typeof CreateDrainFilterV2Version -> = CreateDrainFilterV2Version$inboundSchema; - /** @internal */ export const CreateDrainFilterV21$inboundSchema: z.ZodType< CreateDrainFilterV21, z.ZodTypeDef, unknown > = z.object({ - version: CreateDrainFilterV2Version$inboundSchema, + version: z.literal("v1"), }); /** @internal */ export type CreateDrainFilterV21$Outbound = { - version: string; + version: "v1"; }; /** @internal */ @@ -3287,7 +3036,7 @@ export const CreateDrainFilterV21$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDrainFilterV21 > = z.object({ - version: CreateDrainFilterV2Version$outboundSchema, + version: z.literal("v1"), }); export function createDrainFilterV21ToJSON( @@ -3313,13 +3062,13 @@ export const ResponseBodyFilterV2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => CreateDrainFilterV22$inboundSchema), z.lazy(() => CreateDrainFilterV21$inboundSchema), + z.lazy(() => CreateDrainFilterV22$inboundSchema), ]); /** @internal */ export type ResponseBodyFilterV2$Outbound = - | CreateDrainFilterV22$Outbound - | CreateDrainFilterV21$Outbound; + | CreateDrainFilterV21$Outbound + | CreateDrainFilterV22$Outbound; /** @internal */ export const ResponseBodyFilterV2$outboundSchema: z.ZodType< @@ -3327,8 +3076,8 @@ export const ResponseBodyFilterV2$outboundSchema: z.ZodType< z.ZodTypeDef, ResponseBodyFilterV2 > = z.union([ - z.lazy(() => CreateDrainFilterV22$outboundSchema), z.lazy(() => CreateDrainFilterV21$outboundSchema), + z.lazy(() => CreateDrainFilterV22$outboundSchema), ]); export function responseBodyFilterV2ToJSON( @@ -3348,27 +3097,18 @@ export function responseBodyFilterV2FromJSON( ); } -/** @internal */ -export const ProjectAccessAccess$inboundSchema: z.ZodNativeEnum< - typeof ProjectAccessAccess -> = z.nativeEnum(ProjectAccessAccess); -/** @internal */ -export const ProjectAccessAccess$outboundSchema: z.ZodNativeEnum< - typeof ProjectAccessAccess -> = ProjectAccessAccess$inboundSchema; - /** @internal */ export const ProjectAccess2$inboundSchema: z.ZodType< ProjectAccess2, z.ZodTypeDef, unknown > = z.object({ - access: ProjectAccessAccess$inboundSchema, + access: z.literal("some"), projectIds: z.array(z.string()), }); /** @internal */ export type ProjectAccess2$Outbound = { - access: string; + access: "some"; projectIds: Array; }; @@ -3378,7 +3118,7 @@ export const ProjectAccess2$outboundSchema: z.ZodType< z.ZodTypeDef, ProjectAccess2 > = z.object({ - access: ProjectAccessAccess$outboundSchema, + access: z.literal("some"), projectIds: z.array(z.string()), }); @@ -3395,26 +3135,17 @@ export function projectAccess2FromJSON( ); } -/** @internal */ -export const CreateDrainProjectAccessAccess$inboundSchema: z.ZodNativeEnum< - typeof CreateDrainProjectAccessAccess -> = z.nativeEnum(CreateDrainProjectAccessAccess); -/** @internal */ -export const CreateDrainProjectAccessAccess$outboundSchema: z.ZodNativeEnum< - typeof CreateDrainProjectAccessAccess -> = CreateDrainProjectAccessAccess$inboundSchema; - /** @internal */ export const ProjectAccess1$inboundSchema: z.ZodType< ProjectAccess1, z.ZodTypeDef, unknown > = z.object({ - access: CreateDrainProjectAccessAccess$inboundSchema, + access: z.literal("all"), }); /** @internal */ export type ProjectAccess1$Outbound = { - access: string; + access: "all"; }; /** @internal */ @@ -3423,7 +3154,7 @@ export const ProjectAccess1$outboundSchema: z.ZodType< z.ZodTypeDef, ProjectAccess1 > = z.object({ - access: CreateDrainProjectAccessAccess$outboundSchema, + access: z.literal("all"), }); export function projectAccess1ToJSON(projectAccess1: ProjectAccess1): string { @@ -3445,13 +3176,13 @@ export const ProjectAccess$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => ProjectAccess2$inboundSchema), z.lazy(() => ProjectAccess1$inboundSchema), + z.lazy(() => ProjectAccess2$inboundSchema), ]); /** @internal */ export type ProjectAccess$Outbound = - | ProjectAccess2$Outbound - | ProjectAccess1$Outbound; + | ProjectAccess1$Outbound + | ProjectAccess2$Outbound; /** @internal */ export const ProjectAccess$outboundSchema: z.ZodType< @@ -3459,8 +3190,8 @@ export const ProjectAccess$outboundSchema: z.ZodType< z.ZodTypeDef, ProjectAccess > = z.union([ - z.lazy(() => ProjectAccess2$outboundSchema), z.lazy(() => ProjectAccess1$outboundSchema), + z.lazy(() => ProjectAccess2$outboundSchema), ]); export function projectAccessToJSON(projectAccess: ProjectAccess): string { @@ -3505,20 +3236,20 @@ export const CreateDrainResponseBody2$inboundSchema: z.ZodType< disabledBy: z.string().optional(), firstErrorTimestamp: z.number().optional(), source: z.union([ - z.lazy(() => CreateDrainSourceDrains2$inboundSchema), z.lazy(() => CreateDrainSourceDrains1$inboundSchema), + z.lazy(() => CreateDrainSourceDrains2$inboundSchema), ]), filter: z.string().optional(), filterV2: z.union([ - z.lazy(() => CreateDrainFilterV22$inboundSchema), z.lazy(() => CreateDrainFilterV21$inboundSchema), + z.lazy(() => CreateDrainFilterV22$inboundSchema), ]).optional(), integrationIcon: z.string().optional(), integrationConfigurationUri: z.string().optional(), integrationWebsite: z.string().optional(), projectAccess: z.union([ - z.lazy(() => ProjectAccess2$inboundSchema), z.lazy(() => ProjectAccess1$inboundSchema), + z.lazy(() => ProjectAccess2$inboundSchema), ]).optional(), }); /** @internal */ @@ -3543,16 +3274,16 @@ export type CreateDrainResponseBody2$Outbound = { disabledReason?: string | undefined; disabledBy?: string | undefined; firstErrorTimestamp?: number | undefined; - source: CreateDrainSourceDrains2$Outbound | CreateDrainSourceDrains1$Outbound; + source: CreateDrainSourceDrains1$Outbound | CreateDrainSourceDrains2$Outbound; filter?: string | undefined; filterV2?: - | CreateDrainFilterV22$Outbound | CreateDrainFilterV21$Outbound + | CreateDrainFilterV22$Outbound | undefined; integrationIcon?: string | undefined; integrationConfigurationUri?: string | undefined; integrationWebsite?: string | undefined; - projectAccess?: ProjectAccess2$Outbound | ProjectAccess1$Outbound | undefined; + projectAccess?: ProjectAccess1$Outbound | ProjectAccess2$Outbound | undefined; }; /** @internal */ @@ -3585,20 +3316,20 @@ export const CreateDrainResponseBody2$outboundSchema: z.ZodType< disabledBy: z.string().optional(), firstErrorTimestamp: z.number().optional(), source: z.union([ - z.lazy(() => CreateDrainSourceDrains2$outboundSchema), z.lazy(() => CreateDrainSourceDrains1$outboundSchema), + z.lazy(() => CreateDrainSourceDrains2$outboundSchema), ]), filter: z.string().optional(), filterV2: z.union([ - z.lazy(() => CreateDrainFilterV22$outboundSchema), z.lazy(() => CreateDrainFilterV21$outboundSchema), + z.lazy(() => CreateDrainFilterV22$outboundSchema), ]).optional(), integrationIcon: z.string().optional(), integrationConfigurationUri: z.string().optional(), integrationWebsite: z.string().optional(), projectAccess: z.union([ - z.lazy(() => ProjectAccess2$outboundSchema), z.lazy(() => ProjectAccess1$outboundSchema), + z.lazy(() => ProjectAccess2$outboundSchema), ]).optional(), }); @@ -3805,16 +3536,6 @@ export function responseBodySchemasFromJSON( ); } -/** @internal */ -export const CreateDrainDeliveryDrainsResponseType$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - CreateDrainDeliveryDrainsResponseType, - ); -/** @internal */ -export const CreateDrainDeliveryDrainsResponseType$outboundSchema: - z.ZodNativeEnum = - CreateDrainDeliveryDrainsResponseType$inboundSchema; - /** @internal */ export const DeliveryTarget$inboundSchema: z.ZodNativeEnum< typeof DeliveryTarget @@ -3830,12 +3551,12 @@ export const Delivery4$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: CreateDrainDeliveryDrainsResponseType$inboundSchema, + type: z.literal("internal"), target: DeliveryTarget$inboundSchema, }); /** @internal */ export type Delivery4$Outbound = { - type: string; + type: "internal"; target: string; }; @@ -3845,7 +3566,7 @@ export const Delivery4$outboundSchema: z.ZodType< z.ZodTypeDef, Delivery4 > = z.object({ - type: CreateDrainDeliveryDrainsResponseType$outboundSchema, + type: z.literal("internal"), target: DeliveryTarget$outboundSchema, }); @@ -3862,28 +3583,19 @@ export function delivery4FromJSON( ); } -/** @internal */ -export const CreateDrainDeliveryDrainsType$inboundSchema: z.ZodNativeEnum< - typeof CreateDrainDeliveryDrainsType -> = z.nativeEnum(CreateDrainDeliveryDrainsType); -/** @internal */ -export const CreateDrainDeliveryDrainsType$outboundSchema: z.ZodNativeEnum< - typeof CreateDrainDeliveryDrainsType -> = CreateDrainDeliveryDrainsType$inboundSchema; - /** @internal */ export const Delivery3$inboundSchema: z.ZodType< Delivery3, z.ZodTypeDef, unknown > = z.object({ - type: CreateDrainDeliveryDrainsType$inboundSchema, + type: z.literal("clickhouse"), endpoint: z.string(), table: z.string(), }); /** @internal */ export type Delivery3$Outbound = { - type: string; + type: "clickhouse"; endpoint: string; table: string; }; @@ -3894,7 +3606,7 @@ export const Delivery3$outboundSchema: z.ZodType< z.ZodTypeDef, Delivery3 > = z.object({ - type: CreateDrainDeliveryDrainsType$outboundSchema, + type: z.literal("clickhouse"), endpoint: z.string(), table: z.string(), }); @@ -3912,15 +3624,6 @@ export function delivery3FromJSON( ); } -/** @internal */ -export const CreateDrainDeliveryType$inboundSchema: z.ZodNativeEnum< - typeof CreateDrainDeliveryType -> = z.nativeEnum(CreateDrainDeliveryType); -/** @internal */ -export const CreateDrainDeliveryType$outboundSchema: z.ZodNativeEnum< - typeof CreateDrainDeliveryType -> = CreateDrainDeliveryType$inboundSchema; - /** @internal */ export const CreateDrainDeliveryDrainsEndpoint$inboundSchema: z.ZodType< CreateDrainDeliveryDrainsEndpoint, @@ -4054,7 +3757,7 @@ export const CreateDrainDelivery2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: CreateDrainDeliveryType$inboundSchema, + type: z.literal("otlphttp"), endpoint: z.lazy(() => CreateDrainDeliveryDrainsEndpoint$inboundSchema), encoding: CreateDrainDeliveryDrainsResponseEncoding$inboundSchema, headers: z.record(z.string()), @@ -4063,7 +3766,7 @@ export const CreateDrainDelivery2$inboundSchema: z.ZodType< }); /** @internal */ export type CreateDrainDelivery2$Outbound = { - type: string; + type: "otlphttp"; endpoint: CreateDrainDeliveryDrainsEndpoint$Outbound; encoding: string; headers: { [k: string]: string }; @@ -4076,7 +3779,7 @@ export const CreateDrainDelivery2$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDrainDelivery2 > = z.object({ - type: CreateDrainDeliveryType$outboundSchema, + type: z.literal("otlphttp"), endpoint: z.lazy(() => CreateDrainDeliveryDrainsEndpoint$outboundSchema), encoding: CreateDrainDeliveryDrainsResponseEncoding$outboundSchema, headers: z.record(z.string()), @@ -4101,13 +3804,6 @@ export function createDrainDelivery2FromJSON( ); } -/** @internal */ -export const DeliveryType$inboundSchema: z.ZodNativeEnum = - z.nativeEnum(DeliveryType); -/** @internal */ -export const DeliveryType$outboundSchema: z.ZodNativeEnum = - DeliveryType$inboundSchema; - /** @internal */ export const CreateDrainDeliveryDrainsEncoding$inboundSchema: z.ZodNativeEnum< typeof CreateDrainDeliveryDrainsEncoding @@ -4198,7 +3894,7 @@ export const CreateDrainDelivery1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: DeliveryType$inboundSchema, + type: z.literal("http"), endpoint: z.string(), encoding: CreateDrainDeliveryDrainsEncoding$inboundSchema, compression: CreateDrainDeliveryDrainsCompression$inboundSchema.optional(), @@ -4207,7 +3903,7 @@ export const CreateDrainDelivery1$inboundSchema: z.ZodType< }); /** @internal */ export type CreateDrainDelivery1$Outbound = { - type: string; + type: "http"; endpoint: string; encoding: string; compression?: string | undefined; @@ -4221,7 +3917,7 @@ export const CreateDrainDelivery1$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDrainDelivery1 > = z.object({ - type: DeliveryType$outboundSchema, + type: z.literal("http"), endpoint: z.string(), encoding: CreateDrainDeliveryDrainsEncoding$outboundSchema, compression: CreateDrainDeliveryDrainsCompression$outboundSchema.optional(), @@ -4378,23 +4074,13 @@ export const DisabledReason$outboundSchema: z.ZodNativeEnum< typeof DisabledReason > = DisabledReason$inboundSchema; -/** @internal */ -export const CreateDrainSourceDrainsResponse200Kind$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - CreateDrainSourceDrainsResponse200Kind, - ); -/** @internal */ -export const CreateDrainSourceDrainsResponse200Kind$outboundSchema: - z.ZodNativeEnum = - CreateDrainSourceDrainsResponse200Kind$inboundSchema; - /** @internal */ export const CreateDrainSource2$inboundSchema: z.ZodType< CreateDrainSource2, z.ZodTypeDef, unknown > = z.object({ - kind: CreateDrainSourceDrainsResponse200Kind$inboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -4402,7 +4088,7 @@ export const CreateDrainSource2$inboundSchema: z.ZodType< }); /** @internal */ export type CreateDrainSource2$Outbound = { - kind: string; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; @@ -4415,7 +4101,7 @@ export const CreateDrainSource2$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDrainSource2 > = z.object({ - kind: CreateDrainSourceDrainsResponse200Kind$outboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -4439,26 +4125,17 @@ export function createDrainSource2FromJSON( ); } -/** @internal */ -export const CreateDrainSourceDrainsResponseKind$inboundSchema: z.ZodNativeEnum< - typeof CreateDrainSourceDrainsResponseKind -> = z.nativeEnum(CreateDrainSourceDrainsResponseKind); -/** @internal */ -export const CreateDrainSourceDrainsResponseKind$outboundSchema: - z.ZodNativeEnum = - CreateDrainSourceDrainsResponseKind$inboundSchema; - /** @internal */ export const CreateDrainSource1$inboundSchema: z.ZodType< CreateDrainSource1, z.ZodTypeDef, unknown > = z.object({ - kind: CreateDrainSourceDrainsResponseKind$inboundSchema, + kind: z.literal("self-served"), }); /** @internal */ export type CreateDrainSource1$Outbound = { - kind: string; + kind: "self-served"; }; /** @internal */ @@ -4467,7 +4144,7 @@ export const CreateDrainSource1$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDrainSource1 > = z.object({ - kind: CreateDrainSourceDrainsResponseKind$outboundSchema, + kind: z.literal("self-served"), }); export function createDrainSource1ToJSON( @@ -4493,13 +4170,13 @@ export const CreateDrainResponseBodySource$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => CreateDrainSource2$inboundSchema), z.lazy(() => CreateDrainSource1$inboundSchema), + z.lazy(() => CreateDrainSource2$inboundSchema), ]); /** @internal */ export type CreateDrainResponseBodySource$Outbound = - | CreateDrainSource2$Outbound - | CreateDrainSource1$Outbound; + | CreateDrainSource1$Outbound + | CreateDrainSource2$Outbound; /** @internal */ export const CreateDrainResponseBodySource$outboundSchema: z.ZodType< @@ -4507,8 +4184,8 @@ export const CreateDrainResponseBodySource$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDrainResponseBodySource > = z.union([ - z.lazy(() => CreateDrainSource2$outboundSchema), z.lazy(() => CreateDrainSource1$outboundSchema), + z.lazy(() => CreateDrainSource2$outboundSchema), ]); export function createDrainResponseBodySourceToJSON( @@ -4530,36 +4207,18 @@ export function createDrainResponseBodySourceFromJSON( ); } -/** @internal */ -export const FilterV2Version$inboundSchema: z.ZodNativeEnum< - typeof FilterV2Version -> = z.nativeEnum(FilterV2Version); -/** @internal */ -export const FilterV2Version$outboundSchema: z.ZodNativeEnum< - typeof FilterV2Version -> = FilterV2Version$inboundSchema; - -/** @internal */ -export const CreateDrainFilterType$inboundSchema: z.ZodNativeEnum< - typeof CreateDrainFilterType -> = z.nativeEnum(CreateDrainFilterType); -/** @internal */ -export const CreateDrainFilterType$outboundSchema: z.ZodNativeEnum< - typeof CreateDrainFilterType -> = CreateDrainFilterType$inboundSchema; - /** @internal */ export const CreateDrainFilterDrains2$inboundSchema: z.ZodType< CreateDrainFilterDrains2, z.ZodTypeDef, unknown > = z.object({ - type: CreateDrainFilterType$inboundSchema, + type: z.literal("odata"), text: z.string(), }); /** @internal */ export type CreateDrainFilterDrains2$Outbound = { - type: string; + type: "odata"; text: string; }; @@ -4569,7 +4228,7 @@ export const CreateDrainFilterDrains2$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDrainFilterDrains2 > = z.object({ - type: CreateDrainFilterType$outboundSchema, + type: z.literal("odata"), text: z.string(), }); @@ -4590,13 +4249,6 @@ export function createDrainFilterDrains2FromJSON( ); } -/** @internal */ -export const FilterType$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(FilterType); -/** @internal */ -export const FilterType$outboundSchema: z.ZodNativeEnum = - FilterType$inboundSchema; - /** @internal */ export const CreateDrainFilterDrainsProject$inboundSchema: z.ZodType< CreateDrainFilterDrainsProject, @@ -4754,7 +4406,7 @@ export const CreateDrainFilter1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: FilterType$inboundSchema, + type: z.literal("basic"), project: z.lazy(() => CreateDrainFilterDrainsProject$inboundSchema) .optional(), log: z.lazy(() => CreateDrainFilterDrainsLog$inboundSchema).optional(), @@ -4763,7 +4415,7 @@ export const CreateDrainFilter1$inboundSchema: z.ZodType< }); /** @internal */ export type CreateDrainFilter1$Outbound = { - type: string; + type: "basic"; project?: CreateDrainFilterDrainsProject$Outbound | undefined; log?: CreateDrainFilterDrainsLog$Outbound | undefined; deployment?: CreateDrainFilterDrainsDeployment$Outbound | undefined; @@ -4775,7 +4427,7 @@ export const CreateDrainFilter1$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDrainFilter1 > = z.object({ - type: FilterType$outboundSchema, + type: z.literal("basic"), project: z.lazy(() => CreateDrainFilterDrainsProject$outboundSchema) .optional(), log: z.lazy(() => CreateDrainFilterDrainsLog$outboundSchema).optional(), @@ -4806,13 +4458,13 @@ export const FilterV2Filter$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => CreateDrainFilterDrains2$inboundSchema), z.lazy(() => CreateDrainFilter1$inboundSchema), + z.lazy(() => CreateDrainFilterDrains2$inboundSchema), ]); /** @internal */ export type FilterV2Filter$Outbound = - | CreateDrainFilterDrains2$Outbound - | CreateDrainFilter1$Outbound; + | CreateDrainFilter1$Outbound + | CreateDrainFilterDrains2$Outbound; /** @internal */ export const FilterV2Filter$outboundSchema: z.ZodType< @@ -4820,8 +4472,8 @@ export const FilterV2Filter$outboundSchema: z.ZodType< z.ZodTypeDef, FilterV2Filter > = z.union([ - z.lazy(() => CreateDrainFilterDrains2$outboundSchema), z.lazy(() => CreateDrainFilter1$outboundSchema), + z.lazy(() => CreateDrainFilterDrains2$outboundSchema), ]); export function filterV2FilterToJSON(filterV2Filter: FilterV2Filter): string { @@ -4843,16 +4495,16 @@ export const FilterV22$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - version: FilterV2Version$inboundSchema, + version: z.literal("v2"), filter: z.union([ - z.lazy(() => CreateDrainFilterDrains2$inboundSchema), z.lazy(() => CreateDrainFilter1$inboundSchema), + z.lazy(() => CreateDrainFilterDrains2$inboundSchema), ]), }); /** @internal */ export type FilterV22$Outbound = { - version: string; - filter: CreateDrainFilterDrains2$Outbound | CreateDrainFilter1$Outbound; + version: "v2"; + filter: CreateDrainFilter1$Outbound | CreateDrainFilterDrains2$Outbound; }; /** @internal */ @@ -4861,10 +4513,10 @@ export const FilterV22$outboundSchema: z.ZodType< z.ZodTypeDef, FilterV22 > = z.object({ - version: FilterV2Version$outboundSchema, + version: z.literal("v2"), filter: z.union([ - z.lazy(() => CreateDrainFilterDrains2$outboundSchema), z.lazy(() => CreateDrainFilter1$outboundSchema), + z.lazy(() => CreateDrainFilterDrains2$outboundSchema), ]), }); @@ -4881,26 +4533,17 @@ export function filterV22FromJSON( ); } -/** @internal */ -export const CreateDrainFilterV2DrainsResponseVersion$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(CreateDrainFilterV2DrainsResponseVersion); -/** @internal */ -export const CreateDrainFilterV2DrainsResponseVersion$outboundSchema: - z.ZodNativeEnum = - CreateDrainFilterV2DrainsResponseVersion$inboundSchema; - /** @internal */ export const FilterV21$inboundSchema: z.ZodType< FilterV21, z.ZodTypeDef, unknown > = z.object({ - version: CreateDrainFilterV2DrainsResponseVersion$inboundSchema, + version: z.literal("v1"), }); /** @internal */ export type FilterV21$Outbound = { - version: string; + version: "v1"; }; /** @internal */ @@ -4909,7 +4552,7 @@ export const FilterV21$outboundSchema: z.ZodType< z.ZodTypeDef, FilterV21 > = z.object({ - version: CreateDrainFilterV2DrainsResponseVersion$outboundSchema, + version: z.literal("v1"), }); export function filterV21ToJSON(filterV21: FilterV21): string { @@ -4931,11 +4574,11 @@ export const FilterV2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => FilterV22$inboundSchema), z.lazy(() => FilterV21$inboundSchema), + z.lazy(() => FilterV22$inboundSchema), ]); /** @internal */ -export type FilterV2$Outbound = FilterV22$Outbound | FilterV21$Outbound; +export type FilterV2$Outbound = FilterV21$Outbound | FilterV22$Outbound; /** @internal */ export const FilterV2$outboundSchema: z.ZodType< @@ -4943,8 +4586,8 @@ export const FilterV2$outboundSchema: z.ZodType< z.ZodTypeDef, FilterV2 > = z.union([ - z.lazy(() => FilterV22$outboundSchema), z.lazy(() => FilterV21$outboundSchema), + z.lazy(() => FilterV22$outboundSchema), ]); export function filterV2ToJSON(filterV2: FilterV2): string { @@ -4988,13 +4631,13 @@ export const CreateDrainResponseBody1$inboundSchema: z.ZodType< disabledBy: z.string().optional(), firstErrorTimestamp: z.number().optional(), source: z.union([ - z.lazy(() => CreateDrainSource2$inboundSchema), z.lazy(() => CreateDrainSource1$inboundSchema), + z.lazy(() => CreateDrainSource2$inboundSchema), ]), filter: z.string().optional(), filterV2: z.union([ - z.lazy(() => FilterV22$inboundSchema), z.lazy(() => FilterV21$inboundSchema), + z.lazy(() => FilterV22$inboundSchema), ]).optional(), }); /** @internal */ @@ -5019,9 +4662,9 @@ export type CreateDrainResponseBody1$Outbound = { disabledReason?: string | undefined; disabledBy?: string | undefined; firstErrorTimestamp?: number | undefined; - source: CreateDrainSource2$Outbound | CreateDrainSource1$Outbound; + source: CreateDrainSource1$Outbound | CreateDrainSource2$Outbound; filter?: string | undefined; - filterV2?: FilterV22$Outbound | FilterV21$Outbound | undefined; + filterV2?: FilterV21$Outbound | FilterV22$Outbound | undefined; }; /** @internal */ @@ -5052,13 +4695,13 @@ export const CreateDrainResponseBody1$outboundSchema: z.ZodType< disabledBy: z.string().optional(), firstErrorTimestamp: z.number().optional(), source: z.union([ - z.lazy(() => CreateDrainSource2$outboundSchema), z.lazy(() => CreateDrainSource1$outboundSchema), + z.lazy(() => CreateDrainSource2$outboundSchema), ]), filter: z.string().optional(), filterV2: z.union([ - z.lazy(() => FilterV22$outboundSchema), z.lazy(() => FilterV21$outboundSchema), + z.lazy(() => FilterV22$outboundSchema), ]).optional(), }); diff --git a/src/models/createedgeconfigop.ts b/src/models/createedgeconfigop.ts index 10f6d14f..bd0fa0a5 100644 --- a/src/models/createedgeconfigop.ts +++ b/src/models/createedgeconfigop.ts @@ -5,7 +5,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; -import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; @@ -37,25 +36,13 @@ export type CreateEdgeConfigTransfer = { export type CreateEdgeConfigSchema = {}; -export const CreateEdgeConfigPurposeType = { - Experimentation: "experimentation", -} as const; -export type CreateEdgeConfigPurposeType = ClosedEnum< - typeof CreateEdgeConfigPurposeType ->; - export type Purpose2 = { - type: CreateEdgeConfigPurposeType; + type: "experimentation"; resourceId: string; }; -export const PurposeType = { - Flags: "flags", -} as const; -export type PurposeType = ClosedEnum; - export type Purpose1 = { - type: PurposeType; + type: "flags"; projectId: string; }; @@ -264,27 +251,18 @@ export function createEdgeConfigSchemaFromJSON( ); } -/** @internal */ -export const CreateEdgeConfigPurposeType$inboundSchema: z.ZodNativeEnum< - typeof CreateEdgeConfigPurposeType -> = z.nativeEnum(CreateEdgeConfigPurposeType); -/** @internal */ -export const CreateEdgeConfigPurposeType$outboundSchema: z.ZodNativeEnum< - typeof CreateEdgeConfigPurposeType -> = CreateEdgeConfigPurposeType$inboundSchema; - /** @internal */ export const Purpose2$inboundSchema: z.ZodType< Purpose2, z.ZodTypeDef, unknown > = z.object({ - type: CreateEdgeConfigPurposeType$inboundSchema, + type: z.literal("experimentation"), resourceId: z.string(), }); /** @internal */ export type Purpose2$Outbound = { - type: string; + type: "experimentation"; resourceId: string; }; @@ -294,7 +272,7 @@ export const Purpose2$outboundSchema: z.ZodType< z.ZodTypeDef, Purpose2 > = z.object({ - type: CreateEdgeConfigPurposeType$outboundSchema, + type: z.literal("experimentation"), resourceId: z.string(), }); @@ -311,25 +289,18 @@ export function purpose2FromJSON( ); } -/** @internal */ -export const PurposeType$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(PurposeType); -/** @internal */ -export const PurposeType$outboundSchema: z.ZodNativeEnum = - PurposeType$inboundSchema; - /** @internal */ export const Purpose1$inboundSchema: z.ZodType< Purpose1, z.ZodTypeDef, unknown > = z.object({ - type: PurposeType$inboundSchema, + type: z.literal("flags"), projectId: z.string(), }); /** @internal */ export type Purpose1$Outbound = { - type: string; + type: "flags"; projectId: string; }; @@ -339,7 +310,7 @@ export const Purpose1$outboundSchema: z.ZodType< z.ZodTypeDef, Purpose1 > = z.object({ - type: PurposeType$outboundSchema, + type: z.literal("flags"), projectId: z.string(), }); diff --git a/src/models/createeventop.ts b/src/models/createeventop.ts index dc26f255..73f5a233 100644 --- a/src/models/createeventop.ts +++ b/src/models/createeventop.ts @@ -5,17 +5,11 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; -import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; -export const CreateEventEventType = { - ResourceUpdated: "resource.updated", -} as const; -export type CreateEventEventType = ClosedEnum; - export type Event2 = { - type: CreateEventEventType; + type: "resource.updated"; /** * Partner-provided product slug or id */ @@ -26,23 +20,18 @@ export type Event2 = { resourceId: string; }; -export const EventType = { - InstallationUpdated: "installation.updated", -} as const; -export type EventType = ClosedEnum; - export type Event1 = { - type: EventType; + type: "installation.updated"; /** * The installation-level billing plan ID */ billingPlanId?: string | undefined; }; -export type CreateEventEvent = Event2 | Event1; +export type CreateEventEvent = Event1 | Event2; export type CreateEventRequestBody = { - event: Event2 | Event1; + event: Event1 | Event2; }; export type CreateEventRequest = { @@ -50,25 +39,16 @@ export type CreateEventRequest = { requestBody: CreateEventRequestBody; }; -/** @internal */ -export const CreateEventEventType$inboundSchema: z.ZodNativeEnum< - typeof CreateEventEventType -> = z.nativeEnum(CreateEventEventType); -/** @internal */ -export const CreateEventEventType$outboundSchema: z.ZodNativeEnum< - typeof CreateEventEventType -> = CreateEventEventType$inboundSchema; - /** @internal */ export const Event2$inboundSchema: z.ZodType = z .object({ - type: CreateEventEventType$inboundSchema, + type: z.literal("resource.updated"), productId: z.string().optional(), resourceId: z.string(), }); /** @internal */ export type Event2$Outbound = { - type: string; + type: "resource.updated"; productId?: string | undefined; resourceId: string; }; @@ -79,7 +59,7 @@ export const Event2$outboundSchema: z.ZodType< z.ZodTypeDef, Event2 > = z.object({ - type: CreateEventEventType$outboundSchema, + type: z.literal("resource.updated"), productId: z.string().optional(), resourceId: z.string(), }); @@ -97,22 +77,15 @@ export function event2FromJSON( ); } -/** @internal */ -export const EventType$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(EventType); -/** @internal */ -export const EventType$outboundSchema: z.ZodNativeEnum = - EventType$inboundSchema; - /** @internal */ export const Event1$inboundSchema: z.ZodType = z .object({ - type: EventType$inboundSchema, + type: z.literal("installation.updated"), billingPlanId: z.string().optional(), }); /** @internal */ export type Event1$Outbound = { - type: string; + type: "installation.updated"; billingPlanId?: string | undefined; }; @@ -122,7 +95,7 @@ export const Event1$outboundSchema: z.ZodType< z.ZodTypeDef, Event1 > = z.object({ - type: EventType$outboundSchema, + type: z.literal("installation.updated"), billingPlanId: z.string().optional(), }); @@ -145,11 +118,11 @@ export const CreateEventEvent$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => Event2$inboundSchema), z.lazy(() => Event1$inboundSchema), + z.lazy(() => Event2$inboundSchema), ]); /** @internal */ -export type CreateEventEvent$Outbound = Event2$Outbound | Event1$Outbound; +export type CreateEventEvent$Outbound = Event1$Outbound | Event2$Outbound; /** @internal */ export const CreateEventEvent$outboundSchema: z.ZodType< @@ -157,8 +130,8 @@ export const CreateEventEvent$outboundSchema: z.ZodType< z.ZodTypeDef, CreateEventEvent > = z.union([ - z.lazy(() => Event2$outboundSchema), z.lazy(() => Event1$outboundSchema), + z.lazy(() => Event2$outboundSchema), ]); export function createEventEventToJSON( @@ -185,13 +158,13 @@ export const CreateEventRequestBody$inboundSchema: z.ZodType< unknown > = z.object({ event: z.union([ - z.lazy(() => Event2$inboundSchema), z.lazy(() => Event1$inboundSchema), + z.lazy(() => Event2$inboundSchema), ]), }); /** @internal */ export type CreateEventRequestBody$Outbound = { - event: Event2$Outbound | Event1$Outbound; + event: Event1$Outbound | Event2$Outbound; }; /** @internal */ @@ -201,8 +174,8 @@ export const CreateEventRequestBody$outboundSchema: z.ZodType< CreateEventRequestBody > = z.object({ event: z.union([ - z.lazy(() => Event2$outboundSchema), z.lazy(() => Event1$outboundSchema), + z.lazy(() => Event2$outboundSchema), ]), }); diff --git a/src/models/createlogdrainop.ts b/src/models/createlogdrainop.ts index 74e0dc73..98dd2d88 100644 --- a/src/models/createlogdrainop.ts +++ b/src/models/createlogdrainop.ts @@ -141,35 +141,21 @@ export type CreateLogDrainLogDrainsEnvironments = ClosedEnum< typeof CreateLogDrainLogDrainsEnvironments >; -export const CreateLogDrainSourceLogDrainsKind = { - Integration: "integration", -} as const; -export type CreateLogDrainSourceLogDrainsKind = ClosedEnum< - typeof CreateLogDrainSourceLogDrainsKind ->; - export type CreateLogDrainSource2 = { - kind: CreateLogDrainSourceLogDrainsKind; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; integrationConfigurationId: string; }; -export const CreateLogDrainSourceKind = { - SelfServed: "self-served", -} as const; -export type CreateLogDrainSourceKind = ClosedEnum< - typeof CreateLogDrainSourceKind ->; - export type CreateLogDrainSource1 = { - kind: CreateLogDrainSourceKind; + kind: "self-served"; }; export type CreateLogDrainSource = - | CreateLogDrainSource2 - | CreateLogDrainSource1; + | CreateLogDrainSource1 + | CreateLogDrainSource2; /** * The log drain was successfully created @@ -236,7 +222,7 @@ export type CreateLogDrainResponseBody = { * The sampling rate of log drain */ samplingRate?: number | undefined; - source: CreateLogDrainSource2 | CreateLogDrainSource1; + source: CreateLogDrainSource1 | CreateLogDrainSource2; }; /** @internal */ @@ -416,22 +402,13 @@ export const CreateLogDrainLogDrainsEnvironments$outboundSchema: z.ZodNativeEnum = CreateLogDrainLogDrainsEnvironments$inboundSchema; -/** @internal */ -export const CreateLogDrainSourceLogDrainsKind$inboundSchema: z.ZodNativeEnum< - typeof CreateLogDrainSourceLogDrainsKind -> = z.nativeEnum(CreateLogDrainSourceLogDrainsKind); -/** @internal */ -export const CreateLogDrainSourceLogDrainsKind$outboundSchema: z.ZodNativeEnum< - typeof CreateLogDrainSourceLogDrainsKind -> = CreateLogDrainSourceLogDrainsKind$inboundSchema; - /** @internal */ export const CreateLogDrainSource2$inboundSchema: z.ZodType< CreateLogDrainSource2, z.ZodTypeDef, unknown > = z.object({ - kind: CreateLogDrainSourceLogDrainsKind$inboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -439,7 +416,7 @@ export const CreateLogDrainSource2$inboundSchema: z.ZodType< }); /** @internal */ export type CreateLogDrainSource2$Outbound = { - kind: string; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; @@ -452,7 +429,7 @@ export const CreateLogDrainSource2$outboundSchema: z.ZodType< z.ZodTypeDef, CreateLogDrainSource2 > = z.object({ - kind: CreateLogDrainSourceLogDrainsKind$outboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -476,26 +453,17 @@ export function createLogDrainSource2FromJSON( ); } -/** @internal */ -export const CreateLogDrainSourceKind$inboundSchema: z.ZodNativeEnum< - typeof CreateLogDrainSourceKind -> = z.nativeEnum(CreateLogDrainSourceKind); -/** @internal */ -export const CreateLogDrainSourceKind$outboundSchema: z.ZodNativeEnum< - typeof CreateLogDrainSourceKind -> = CreateLogDrainSourceKind$inboundSchema; - /** @internal */ export const CreateLogDrainSource1$inboundSchema: z.ZodType< CreateLogDrainSource1, z.ZodTypeDef, unknown > = z.object({ - kind: CreateLogDrainSourceKind$inboundSchema, + kind: z.literal("self-served"), }); /** @internal */ export type CreateLogDrainSource1$Outbound = { - kind: string; + kind: "self-served"; }; /** @internal */ @@ -504,7 +472,7 @@ export const CreateLogDrainSource1$outboundSchema: z.ZodType< z.ZodTypeDef, CreateLogDrainSource1 > = z.object({ - kind: CreateLogDrainSourceKind$outboundSchema, + kind: z.literal("self-served"), }); export function createLogDrainSource1ToJSON( @@ -530,13 +498,13 @@ export const CreateLogDrainSource$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => CreateLogDrainSource2$inboundSchema), z.lazy(() => CreateLogDrainSource1$inboundSchema), + z.lazy(() => CreateLogDrainSource2$inboundSchema), ]); /** @internal */ export type CreateLogDrainSource$Outbound = - | CreateLogDrainSource2$Outbound - | CreateLogDrainSource1$Outbound; + | CreateLogDrainSource1$Outbound + | CreateLogDrainSource2$Outbound; /** @internal */ export const CreateLogDrainSource$outboundSchema: z.ZodType< @@ -544,8 +512,8 @@ export const CreateLogDrainSource$outboundSchema: z.ZodType< z.ZodTypeDef, CreateLogDrainSource > = z.union([ - z.lazy(() => CreateLogDrainSource2$outboundSchema), z.lazy(() => CreateLogDrainSource1$outboundSchema), + z.lazy(() => CreateLogDrainSource2$outboundSchema), ]); export function createLogDrainSourceToJSON( @@ -590,8 +558,8 @@ export const CreateLogDrainResponseBody$inboundSchema: z.ZodType< branch: z.string().optional(), samplingRate: z.number().optional(), source: z.union([ - z.lazy(() => CreateLogDrainSource2$inboundSchema), z.lazy(() => CreateLogDrainSource1$inboundSchema), + z.lazy(() => CreateLogDrainSource2$inboundSchema), ]), }); /** @internal */ @@ -612,7 +580,7 @@ export type CreateLogDrainResponseBody$Outbound = { environments?: Array | undefined; branch?: string | undefined; samplingRate?: number | undefined; - source: CreateLogDrainSource2$Outbound | CreateLogDrainSource1$Outbound; + source: CreateLogDrainSource1$Outbound | CreateLogDrainSource2$Outbound; }; /** @internal */ @@ -640,8 +608,8 @@ export const CreateLogDrainResponseBody$outboundSchema: z.ZodType< branch: z.string().optional(), samplingRate: z.number().optional(), source: z.union([ - z.lazy(() => CreateLogDrainSource2$outboundSchema), z.lazy(() => CreateLogDrainSource1$outboundSchema), + z.lazy(() => CreateLogDrainSource2$outboundSchema), ]), }); diff --git a/src/models/createprojectenvop.ts b/src/models/createprojectenvop.ts index 771ea683..d750e5f6 100644 --- a/src/models/createprojectenvop.ts +++ b/src/models/createprojectenvop.ts @@ -280,236 +280,85 @@ export type CreateProjectEnvCreatedType = ClosedEnum< typeof CreateProjectEnvCreatedType >; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated215Type = - { - FlagsConnectionString: "flags-connection-string", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated215Type = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated215Type - >; - export type CreateProjectEnvContentHintProjects15 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated215Type; + type: "flags-connection-string"; projectId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated214Type = - { - IntegrationStoreSecret: "integration-store-secret", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated214Type = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated214Type - >; - export type CreateProjectEnvContentHintProjects14 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated214Type; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; integrationConfigurationId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated213Type = - { - PostgresUrlNoSsl: "postgres-url-no-ssl", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated213Type = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated213Type - >; - export type CreateProjectEnvContentHintProjects13 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated213Type; + type: "postgres-url-no-ssl"; storeId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated212Type = - { - PostgresDatabase: "postgres-database", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated212Type = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated212Type - >; - export type CreateProjectEnvContentHintProjects12 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated212Type; + type: "postgres-database"; storeId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated211Type = - { - PostgresPassword: "postgres-password", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated211Type = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated211Type - >; - export type CreateProjectEnvContentHintProjects11 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated211Type; + type: "postgres-password"; storeId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated210Type = - { - PostgresHost: "postgres-host", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated210Type = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated210Type - >; - export type CreateProjectEnvContentHintProjects10 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated210Type; + type: "postgres-host"; storeId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated29Type = - { - PostgresUser: "postgres-user", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated29Type = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated29Type - >; - export type CreateProjectEnvContentHintProjects9 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated29Type; + type: "postgres-user"; storeId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated28Type = - { - PostgresPrismaUrl: "postgres-prisma-url", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated28Type = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated28Type - >; - export type CreateProjectEnvContentHintProjects8 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated28Type; + type: "postgres-prisma-url"; storeId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated27Type = - { - PostgresUrlNonPooling: "postgres-url-non-pooling", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated27Type = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated27Type - >; - export type CreateProjectEnvContentHintProjects7 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated27Type; + type: "postgres-url-non-pooling"; storeId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated26Type = - { - PostgresUrl: "postgres-url", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated26Type = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated26Type - >; - export type CreateProjectEnvContentHintProjects6 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated26Type; + type: "postgres-url"; storeId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated25Type = - { - BlobReadWriteToken: "blob-read-write-token", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated25Type = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated25Type - >; - export type CreateProjectEnvContentHintProjects5 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated25Type; + type: "blob-read-write-token"; storeId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated24Type = - { - RedisRestApiReadOnlyToken: "redis-rest-api-read-only-token", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated24Type = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated24Type - >; - export type CreateProjectEnvContentHintProjects4 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated24Type; + type: "redis-rest-api-read-only-token"; storeId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated23Type = - { - RedisRestApiToken: "redis-rest-api-token", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated23Type = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated23Type - >; - export type CreateProjectEnvContentHintProjects3 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated23Type; + type: "redis-rest-api-token"; storeId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated22Type = - { - RedisRestApiUrl: "redis-rest-api-url", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated22Type = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated22Type - >; - export type CreateProjectEnvContentHintProjects2 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated22Type; + type: "redis-rest-api-url"; storeId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated2Type = - { - RedisUrl: "redis-url", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated2Type = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated2Type - >; - export type CreateProjectEnvContentHintProjects1 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated2Type; + type: "redis-url"; storeId: string; }; export type CreateProjectEnvCreatedContentHint = - | CreateProjectEnvContentHintProjects14 | CreateProjectEnvContentHintProjects1 | CreateProjectEnvContentHintProjects2 | CreateProjectEnvContentHintProjects3 @@ -523,6 +372,7 @@ export type CreateProjectEnvCreatedContentHint = | CreateProjectEnvContentHintProjects11 | CreateProjectEnvContentHintProjects12 | CreateProjectEnvContentHintProjects13 + | CreateProjectEnvContentHintProjects14 | CreateProjectEnvContentHintProjects15; export const CreateProjectEnvCreatedProjectsResponseType = { @@ -564,7 +414,6 @@ export type Created2 = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | CreateProjectEnvContentHintProjects14 | CreateProjectEnvContentHintProjects1 | CreateProjectEnvContentHintProjects2 | CreateProjectEnvContentHintProjects3 @@ -578,6 +427,7 @@ export type Created2 = { | CreateProjectEnvContentHintProjects11 | CreateProjectEnvContentHintProjects12 | CreateProjectEnvContentHintProjects13 + | CreateProjectEnvContentHintProjects14 | CreateProjectEnvContentHintProjects15 | null | undefined; @@ -624,223 +474,85 @@ export const CreatedType = { } as const; export type CreatedType = ClosedEnum; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated115Type = - { - FlagsConnectionString: "flags-connection-string", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated115Type = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated115Type - >; - export type CreateProjectEnvContentHint15 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated115Type; + type: "flags-connection-string"; projectId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated114Type = - { - IntegrationStoreSecret: "integration-store-secret", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated114Type = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated114Type - >; - export type CreateProjectEnvContentHint14 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated114Type; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; integrationConfigurationId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated113Type = - { - PostgresUrlNoSsl: "postgres-url-no-ssl", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated113Type = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated113Type - >; - export type CreateProjectEnvContentHint13 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated113Type; + type: "postgres-url-no-ssl"; storeId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated112Type = - { - PostgresDatabase: "postgres-database", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated112Type = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated112Type - >; - export type CreateProjectEnvContentHint12 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated112Type; + type: "postgres-database"; storeId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated111Type = - { - PostgresPassword: "postgres-password", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated111Type = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated111Type - >; - export type CreateProjectEnvContentHint11 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated111Type; + type: "postgres-password"; storeId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated110Type = - { - PostgresHost: "postgres-host", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated110Type = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated110Type - >; - export type CreateProjectEnvContentHint10 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated110Type; + type: "postgres-host"; storeId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated19Type = - { - PostgresUser: "postgres-user", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated19Type = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated19Type - >; - export type CreateProjectEnvContentHint9 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated19Type; + type: "postgres-user"; storeId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated1Type = - { - PostgresPrismaUrl: "postgres-prisma-url", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated1Type = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated1Type - >; - export type CreateProjectEnvContentHint8 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated1Type; + type: "postgres-prisma-url"; storeId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreatedType = - { - PostgresUrlNonPooling: "postgres-url-non-pooling", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreatedType = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreatedType - >; - export type CreateProjectEnvContentHint7 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreatedType; + type: "postgres-url-non-pooling"; storeId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyType = - { - PostgresUrl: "postgres-url", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyType = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyType - >; - export type CreateProjectEnvContentHint6 = { - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyType; + type: "postgres-url"; storeId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONType = - { - BlobReadWriteToken: "blob-read-write-token", - } as const; -export type CreateProjectEnvContentHintProjectsResponse201ApplicationJSONType = - ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONType - >; - export type CreateProjectEnvContentHint5 = { - type: CreateProjectEnvContentHintProjectsResponse201ApplicationJSONType; + type: "blob-read-write-token"; storeId: string; }; -export const CreateProjectEnvContentHintProjectsResponse201Type = { - RedisRestApiReadOnlyToken: "redis-rest-api-read-only-token", -} as const; -export type CreateProjectEnvContentHintProjectsResponse201Type = ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponse201Type ->; - export type CreateProjectEnvContentHint4 = { - type: CreateProjectEnvContentHintProjectsResponse201Type; + type: "redis-rest-api-read-only-token"; storeId: string; }; -export const CreateProjectEnvContentHintProjectsResponseType = { - RedisRestApiToken: "redis-rest-api-token", -} as const; -export type CreateProjectEnvContentHintProjectsResponseType = ClosedEnum< - typeof CreateProjectEnvContentHintProjectsResponseType ->; - export type CreateProjectEnvContentHint3 = { - type: CreateProjectEnvContentHintProjectsResponseType; + type: "redis-rest-api-token"; storeId: string; }; -export const CreateProjectEnvContentHintProjectsType = { - RedisRestApiUrl: "redis-rest-api-url", -} as const; -export type CreateProjectEnvContentHintProjectsType = ClosedEnum< - typeof CreateProjectEnvContentHintProjectsType ->; - export type CreateProjectEnvContentHint2 = { - type: CreateProjectEnvContentHintProjectsType; + type: "redis-rest-api-url"; storeId: string; }; -export const CreateProjectEnvContentHintType = { - RedisUrl: "redis-url", -} as const; -export type CreateProjectEnvContentHintType = ClosedEnum< - typeof CreateProjectEnvContentHintType ->; - export type CreateProjectEnvContentHint1 = { - type: CreateProjectEnvContentHintType; + type: "redis-url"; storeId: string; }; export type CreatedContentHint = - | CreateProjectEnvContentHint14 | CreateProjectEnvContentHint1 | CreateProjectEnvContentHint2 | CreateProjectEnvContentHint3 @@ -854,6 +566,7 @@ export type CreatedContentHint = | CreateProjectEnvContentHint11 | CreateProjectEnvContentHint12 | CreateProjectEnvContentHint13 + | CreateProjectEnvContentHint14 | CreateProjectEnvContentHint15; export const CreateProjectEnvCreatedProjectsType = { @@ -895,7 +608,6 @@ export type Created1 = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | CreateProjectEnvContentHint14 | CreateProjectEnvContentHint1 | CreateProjectEnvContentHint2 | CreateProjectEnvContentHint3 @@ -909,6 +621,7 @@ export type Created1 = { | CreateProjectEnvContentHint11 | CreateProjectEnvContentHint12 | CreateProjectEnvContentHint13 + | CreateProjectEnvContentHint14 | CreateProjectEnvContentHint15 | null | undefined; @@ -1544,33 +1257,18 @@ export const CreateProjectEnvCreatedType$outboundSchema: z.ZodNativeEnum< typeof CreateProjectEnvCreatedType > = CreateProjectEnvCreatedType$inboundSchema; -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated215Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated215Type - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated215Type, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated215Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated215Type - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated215Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHintProjects15$inboundSchema: z.ZodType< CreateProjectEnvContentHintProjects15, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated215Type$inboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHintProjects15$Outbound = { - type: string; + type: "flags-connection-string"; projectId: string; }; @@ -1580,8 +1278,7 @@ export const CreateProjectEnvContentHintProjects15$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHintProjects15 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated215Type$outboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); @@ -1605,28 +1302,13 @@ export function createProjectEnvContentHintProjects15FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated214Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated214Type - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated214Type, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated214Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated214Type - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated214Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHintProjects14$inboundSchema: z.ZodType< CreateProjectEnvContentHintProjects14, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated214Type$inboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -1634,7 +1316,7 @@ export const CreateProjectEnvContentHintProjects14$inboundSchema: z.ZodType< }); /** @internal */ export type CreateProjectEnvContentHintProjects14$Outbound = { - type: string; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; @@ -1647,8 +1329,7 @@ export const CreateProjectEnvContentHintProjects14$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHintProjects14 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated214Type$outboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -1675,33 +1356,18 @@ export function createProjectEnvContentHintProjects14FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated213Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated213Type - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated213Type, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated213Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated213Type - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated213Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHintProjects13$inboundSchema: z.ZodType< CreateProjectEnvContentHintProjects13, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated213Type$inboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHintProjects13$Outbound = { - type: string; + type: "postgres-url-no-ssl"; storeId: string; }; @@ -1711,8 +1377,7 @@ export const CreateProjectEnvContentHintProjects13$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHintProjects13 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated213Type$outboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); @@ -1736,33 +1401,18 @@ export function createProjectEnvContentHintProjects13FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated212Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated212Type - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated212Type, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated212Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated212Type - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated212Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHintProjects12$inboundSchema: z.ZodType< CreateProjectEnvContentHintProjects12, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated212Type$inboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHintProjects12$Outbound = { - type: string; + type: "postgres-database"; storeId: string; }; @@ -1772,8 +1422,7 @@ export const CreateProjectEnvContentHintProjects12$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHintProjects12 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated212Type$outboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); @@ -1797,33 +1446,18 @@ export function createProjectEnvContentHintProjects12FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated211Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated211Type - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated211Type, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated211Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated211Type - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated211Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHintProjects11$inboundSchema: z.ZodType< CreateProjectEnvContentHintProjects11, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated211Type$inboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHintProjects11$Outbound = { - type: string; + type: "postgres-password"; storeId: string; }; @@ -1833,8 +1467,7 @@ export const CreateProjectEnvContentHintProjects11$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHintProjects11 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated211Type$outboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); @@ -1858,33 +1491,18 @@ export function createProjectEnvContentHintProjects11FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated210Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated210Type - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated210Type, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated210Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated210Type - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated210Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHintProjects10$inboundSchema: z.ZodType< CreateProjectEnvContentHintProjects10, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated210Type$inboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHintProjects10$Outbound = { - type: string; + type: "postgres-host"; storeId: string; }; @@ -1894,8 +1512,7 @@ export const CreateProjectEnvContentHintProjects10$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHintProjects10 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated210Type$outboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); @@ -1919,33 +1536,18 @@ export function createProjectEnvContentHintProjects10FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated29Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated29Type - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated29Type, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated29Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated29Type - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated29Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHintProjects9$inboundSchema: z.ZodType< CreateProjectEnvContentHintProjects9, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated29Type$inboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHintProjects9$Outbound = { - type: string; + type: "postgres-user"; storeId: string; }; @@ -1955,8 +1557,7 @@ export const CreateProjectEnvContentHintProjects9$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHintProjects9 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated29Type$outboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); @@ -1980,33 +1581,18 @@ export function createProjectEnvContentHintProjects9FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated28Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated28Type - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated28Type, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated28Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated28Type - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated28Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHintProjects8$inboundSchema: z.ZodType< CreateProjectEnvContentHintProjects8, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated28Type$inboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHintProjects8$Outbound = { - type: string; + type: "postgres-prisma-url"; storeId: string; }; @@ -2016,8 +1602,7 @@ export const CreateProjectEnvContentHintProjects8$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHintProjects8 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated28Type$outboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); @@ -2041,33 +1626,18 @@ export function createProjectEnvContentHintProjects8FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated27Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated27Type - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated27Type, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated27Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated27Type - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated27Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHintProjects7$inboundSchema: z.ZodType< CreateProjectEnvContentHintProjects7, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated27Type$inboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHintProjects7$Outbound = { - type: string; + type: "postgres-url-non-pooling"; storeId: string; }; @@ -2077,8 +1647,7 @@ export const CreateProjectEnvContentHintProjects7$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHintProjects7 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated27Type$outboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); @@ -2102,33 +1671,18 @@ export function createProjectEnvContentHintProjects7FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated26Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated26Type - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated26Type, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated26Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated26Type - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated26Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHintProjects6$inboundSchema: z.ZodType< CreateProjectEnvContentHintProjects6, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated26Type$inboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHintProjects6$Outbound = { - type: string; + type: "postgres-url"; storeId: string; }; @@ -2138,8 +1692,7 @@ export const CreateProjectEnvContentHintProjects6$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHintProjects6 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated26Type$outboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); @@ -2163,33 +1716,18 @@ export function createProjectEnvContentHintProjects6FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated25Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated25Type - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated25Type, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated25Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated25Type - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated25Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHintProjects5$inboundSchema: z.ZodType< CreateProjectEnvContentHintProjects5, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated25Type$inboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHintProjects5$Outbound = { - type: string; + type: "blob-read-write-token"; storeId: string; }; @@ -2199,8 +1737,7 @@ export const CreateProjectEnvContentHintProjects5$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHintProjects5 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated25Type$outboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); @@ -2224,33 +1761,18 @@ export function createProjectEnvContentHintProjects5FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated24Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated24Type - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated24Type, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated24Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated24Type - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated24Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHintProjects4$inboundSchema: z.ZodType< CreateProjectEnvContentHintProjects4, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated24Type$inboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHintProjects4$Outbound = { - type: string; + type: "redis-rest-api-read-only-token"; storeId: string; }; @@ -2260,8 +1782,7 @@ export const CreateProjectEnvContentHintProjects4$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHintProjects4 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated24Type$outboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); @@ -2285,33 +1806,18 @@ export function createProjectEnvContentHintProjects4FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated23Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated23Type - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated23Type, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated23Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated23Type - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated23Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHintProjects3$inboundSchema: z.ZodType< CreateProjectEnvContentHintProjects3, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated23Type$inboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHintProjects3$Outbound = { - type: string; + type: "redis-rest-api-token"; storeId: string; }; @@ -2321,8 +1827,7 @@ export const CreateProjectEnvContentHintProjects3$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHintProjects3 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated23Type$outboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); @@ -2346,33 +1851,18 @@ export function createProjectEnvContentHintProjects3FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated22Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated22Type - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated22Type, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated22Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated22Type - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated22Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHintProjects2$inboundSchema: z.ZodType< CreateProjectEnvContentHintProjects2, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated22Type$inboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHintProjects2$Outbound = { - type: string; + type: "redis-rest-api-url"; storeId: string; }; @@ -2382,8 +1872,7 @@ export const CreateProjectEnvContentHintProjects2$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHintProjects2 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated22Type$outboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); @@ -2407,33 +1896,18 @@ export function createProjectEnvContentHintProjects2FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated2Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated2Type - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated2Type, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated2Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated2Type - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated2Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHintProjects1$inboundSchema: z.ZodType< CreateProjectEnvContentHintProjects1, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated2Type$inboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHintProjects1$Outbound = { - type: string; + type: "redis-url"; storeId: string; }; @@ -2443,8 +1917,7 @@ export const CreateProjectEnvContentHintProjects1$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHintProjects1 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated2Type$outboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); @@ -2474,7 +1947,6 @@ export const CreateProjectEnvCreatedContentHint$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => CreateProjectEnvContentHintProjects14$inboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects1$inboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects2$inboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects3$inboundSchema), @@ -2488,11 +1960,11 @@ export const CreateProjectEnvCreatedContentHint$inboundSchema: z.ZodType< z.lazy(() => CreateProjectEnvContentHintProjects11$inboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects12$inboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects13$inboundSchema), + z.lazy(() => CreateProjectEnvContentHintProjects14$inboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects15$inboundSchema), ]); /** @internal */ export type CreateProjectEnvCreatedContentHint$Outbound = - | CreateProjectEnvContentHintProjects14$Outbound | CreateProjectEnvContentHintProjects1$Outbound | CreateProjectEnvContentHintProjects2$Outbound | CreateProjectEnvContentHintProjects3$Outbound @@ -2506,6 +1978,7 @@ export type CreateProjectEnvCreatedContentHint$Outbound = | CreateProjectEnvContentHintProjects11$Outbound | CreateProjectEnvContentHintProjects12$Outbound | CreateProjectEnvContentHintProjects13$Outbound + | CreateProjectEnvContentHintProjects14$Outbound | CreateProjectEnvContentHintProjects15$Outbound; /** @internal */ @@ -2514,7 +1987,6 @@ export const CreateProjectEnvCreatedContentHint$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvCreatedContentHint > = z.union([ - z.lazy(() => CreateProjectEnvContentHintProjects14$outboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects1$outboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects2$outboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects3$outboundSchema), @@ -2528,6 +2000,7 @@ export const CreateProjectEnvCreatedContentHint$outboundSchema: z.ZodType< z.lazy(() => CreateProjectEnvContentHintProjects11$outboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects12$outboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects13$outboundSchema), + z.lazy(() => CreateProjectEnvContentHintProjects14$outboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects15$outboundSchema), ]); @@ -2637,7 +2110,6 @@ export const Created2$inboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => CreateProjectEnvContentHintProjects14$inboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects1$inboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects2$inboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects3$inboundSchema), @@ -2651,6 +2123,7 @@ export const Created2$inboundSchema: z.ZodType< z.lazy(() => CreateProjectEnvContentHintProjects11$inboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects12$inboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects13$inboundSchema), + z.lazy(() => CreateProjectEnvContentHintProjects14$inboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects15$inboundSchema), ]), ).optional(), @@ -2680,7 +2153,6 @@ export type Created2$Outbound = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | CreateProjectEnvContentHintProjects14$Outbound | CreateProjectEnvContentHintProjects1$Outbound | CreateProjectEnvContentHintProjects2$Outbound | CreateProjectEnvContentHintProjects3$Outbound @@ -2694,6 +2166,7 @@ export type Created2$Outbound = { | CreateProjectEnvContentHintProjects11$Outbound | CreateProjectEnvContentHintProjects12$Outbound | CreateProjectEnvContentHintProjects13$Outbound + | CreateProjectEnvContentHintProjects14$Outbound | CreateProjectEnvContentHintProjects15$Outbound | null | undefined; @@ -2733,7 +2206,6 @@ export const Created2$outboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => CreateProjectEnvContentHintProjects14$outboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects1$outboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects2$outboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects3$outboundSchema), @@ -2747,6 +2219,7 @@ export const Created2$outboundSchema: z.ZodType< z.lazy(() => CreateProjectEnvContentHintProjects11$outboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects12$outboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects13$outboundSchema), + z.lazy(() => CreateProjectEnvContentHintProjects14$outboundSchema), z.lazy(() => CreateProjectEnvContentHintProjects15$outboundSchema), ]), ).optional(), @@ -2831,33 +2304,18 @@ export const CreatedType$inboundSchema: z.ZodNativeEnum = z export const CreatedType$outboundSchema: z.ZodNativeEnum = CreatedType$inboundSchema; -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated115Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated115Type - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated115Type, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated115Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated115Type - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated115Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHint15$inboundSchema: z.ZodType< CreateProjectEnvContentHint15, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated115Type$inboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHint15$Outbound = { - type: string; + type: "flags-connection-string"; projectId: string; }; @@ -2867,8 +2325,7 @@ export const CreateProjectEnvContentHint15$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHint15 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated115Type$outboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); @@ -2891,28 +2348,13 @@ export function createProjectEnvContentHint15FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated114Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated114Type - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated114Type, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated114Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated114Type - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated114Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHint14$inboundSchema: z.ZodType< CreateProjectEnvContentHint14, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated114Type$inboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -2920,7 +2362,7 @@ export const CreateProjectEnvContentHint14$inboundSchema: z.ZodType< }); /** @internal */ export type CreateProjectEnvContentHint14$Outbound = { - type: string; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; @@ -2933,8 +2375,7 @@ export const CreateProjectEnvContentHint14$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHint14 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated114Type$outboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -2960,33 +2401,18 @@ export function createProjectEnvContentHint14FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated113Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated113Type - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated113Type, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated113Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated113Type - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated113Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHint13$inboundSchema: z.ZodType< CreateProjectEnvContentHint13, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated113Type$inboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHint13$Outbound = { - type: string; + type: "postgres-url-no-ssl"; storeId: string; }; @@ -2996,8 +2422,7 @@ export const CreateProjectEnvContentHint13$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHint13 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated113Type$outboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); @@ -3020,33 +2445,18 @@ export function createProjectEnvContentHint13FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated112Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated112Type - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated112Type, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated112Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated112Type - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated112Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHint12$inboundSchema: z.ZodType< CreateProjectEnvContentHint12, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated112Type$inboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHint12$Outbound = { - type: string; + type: "postgres-database"; storeId: string; }; @@ -3056,8 +2466,7 @@ export const CreateProjectEnvContentHint12$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHint12 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated112Type$outboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); @@ -3080,33 +2489,18 @@ export function createProjectEnvContentHint12FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated111Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated111Type - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated111Type, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated111Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated111Type - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated111Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHint11$inboundSchema: z.ZodType< CreateProjectEnvContentHint11, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated111Type$inboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHint11$Outbound = { - type: string; + type: "postgres-password"; storeId: string; }; @@ -3116,8 +2510,7 @@ export const CreateProjectEnvContentHint11$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHint11 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated111Type$outboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); @@ -3140,33 +2533,18 @@ export function createProjectEnvContentHint11FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated110Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated110Type - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated110Type, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated110Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated110Type - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated110Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHint10$inboundSchema: z.ZodType< CreateProjectEnvContentHint10, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated110Type$inboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHint10$Outbound = { - type: string; + type: "postgres-host"; storeId: string; }; @@ -3176,8 +2554,7 @@ export const CreateProjectEnvContentHint10$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHint10 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated110Type$outboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); @@ -3200,33 +2577,18 @@ export function createProjectEnvContentHint10FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated19Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated19Type - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated19Type, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated19Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated19Type - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated19Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHint9$inboundSchema: z.ZodType< CreateProjectEnvContentHint9, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated19Type$inboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHint9$Outbound = { - type: string; + type: "postgres-user"; storeId: string; }; @@ -3236,8 +2598,7 @@ export const CreateProjectEnvContentHint9$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHint9 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated19Type$outboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); @@ -3260,33 +2621,18 @@ export function createProjectEnvContentHint9FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated1Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated1Type - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated1Type, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated1Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated1Type - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated1Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHint8$inboundSchema: z.ZodType< CreateProjectEnvContentHint8, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated1Type$inboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHint8$Outbound = { - type: string; + type: "postgres-prisma-url"; storeId: string; }; @@ -3296,8 +2642,7 @@ export const CreateProjectEnvContentHint8$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHint8 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreated1Type$outboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); @@ -3320,33 +2665,18 @@ export function createProjectEnvContentHint8FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreatedType$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreatedType - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreatedType, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreatedType$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreatedType - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreatedType$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHint7$inboundSchema: z.ZodType< CreateProjectEnvContentHint7, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreatedType$inboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHint7$Outbound = { - type: string; + type: "postgres-url-non-pooling"; storeId: string; }; @@ -3356,8 +2686,7 @@ export const CreateProjectEnvContentHint7$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHint7 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyCreatedType$outboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); @@ -3380,33 +2709,18 @@ export function createProjectEnvContentHint7FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyType$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyType - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyType, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyType$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyType - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyType$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHint6$inboundSchema: z.ZodType< CreateProjectEnvContentHint6, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyType$inboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHint6$Outbound = { - type: string; + type: "postgres-url"; storeId: string; }; @@ -3416,8 +2730,7 @@ export const CreateProjectEnvContentHint6$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHint6 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONResponseBodyType$outboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); @@ -3440,33 +2753,18 @@ export function createProjectEnvContentHint6FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONType$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONType - > = z.nativeEnum( - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONType, - ); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201ApplicationJSONType$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectEnvContentHintProjectsResponse201ApplicationJSONType - > = - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONType$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHint5$inboundSchema: z.ZodType< CreateProjectEnvContentHint5, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONType$inboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHint5$Outbound = { - type: string; + type: "blob-read-write-token"; storeId: string; }; @@ -3476,8 +2774,7 @@ export const CreateProjectEnvContentHint5$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHint5 > = z.object({ - type: - CreateProjectEnvContentHintProjectsResponse201ApplicationJSONType$outboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); @@ -3500,27 +2797,18 @@ export function createProjectEnvContentHint5FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201Type$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(CreateProjectEnvContentHintProjectsResponse201Type); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponse201Type$outboundSchema: - z.ZodNativeEnum = - CreateProjectEnvContentHintProjectsResponse201Type$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHint4$inboundSchema: z.ZodType< CreateProjectEnvContentHint4, z.ZodTypeDef, unknown > = z.object({ - type: CreateProjectEnvContentHintProjectsResponse201Type$inboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHint4$Outbound = { - type: string; + type: "redis-rest-api-read-only-token"; storeId: string; }; @@ -3530,7 +2818,7 @@ export const CreateProjectEnvContentHint4$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHint4 > = z.object({ - type: CreateProjectEnvContentHintProjectsResponse201Type$outboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); @@ -3553,27 +2841,18 @@ export function createProjectEnvContentHint4FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponseType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(CreateProjectEnvContentHintProjectsResponseType); -/** @internal */ -export const CreateProjectEnvContentHintProjectsResponseType$outboundSchema: - z.ZodNativeEnum = - CreateProjectEnvContentHintProjectsResponseType$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHint3$inboundSchema: z.ZodType< CreateProjectEnvContentHint3, z.ZodTypeDef, unknown > = z.object({ - type: CreateProjectEnvContentHintProjectsResponseType$inboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHint3$Outbound = { - type: string; + type: "redis-rest-api-token"; storeId: string; }; @@ -3583,7 +2862,7 @@ export const CreateProjectEnvContentHint3$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHint3 > = z.object({ - type: CreateProjectEnvContentHintProjectsResponseType$outboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); @@ -3606,27 +2885,18 @@ export function createProjectEnvContentHint3FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintProjectsType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(CreateProjectEnvContentHintProjectsType); -/** @internal */ -export const CreateProjectEnvContentHintProjectsType$outboundSchema: - z.ZodNativeEnum = - CreateProjectEnvContentHintProjectsType$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHint2$inboundSchema: z.ZodType< CreateProjectEnvContentHint2, z.ZodTypeDef, unknown > = z.object({ - type: CreateProjectEnvContentHintProjectsType$inboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHint2$Outbound = { - type: string; + type: "redis-rest-api-url"; storeId: string; }; @@ -3636,7 +2906,7 @@ export const CreateProjectEnvContentHint2$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHint2 > = z.object({ - type: CreateProjectEnvContentHintProjectsType$outboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); @@ -3659,27 +2929,18 @@ export function createProjectEnvContentHint2FromJSON( ); } -/** @internal */ -export const CreateProjectEnvContentHintType$inboundSchema: z.ZodNativeEnum< - typeof CreateProjectEnvContentHintType -> = z.nativeEnum(CreateProjectEnvContentHintType); -/** @internal */ -export const CreateProjectEnvContentHintType$outboundSchema: z.ZodNativeEnum< - typeof CreateProjectEnvContentHintType -> = CreateProjectEnvContentHintType$inboundSchema; - /** @internal */ export const CreateProjectEnvContentHint1$inboundSchema: z.ZodType< CreateProjectEnvContentHint1, z.ZodTypeDef, unknown > = z.object({ - type: CreateProjectEnvContentHintType$inboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); /** @internal */ export type CreateProjectEnvContentHint1$Outbound = { - type: string; + type: "redis-url"; storeId: string; }; @@ -3689,7 +2950,7 @@ export const CreateProjectEnvContentHint1$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectEnvContentHint1 > = z.object({ - type: CreateProjectEnvContentHintType$outboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); @@ -3718,7 +2979,6 @@ export const CreatedContentHint$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => CreateProjectEnvContentHint14$inboundSchema), z.lazy(() => CreateProjectEnvContentHint1$inboundSchema), z.lazy(() => CreateProjectEnvContentHint2$inboundSchema), z.lazy(() => CreateProjectEnvContentHint3$inboundSchema), @@ -3732,11 +2992,11 @@ export const CreatedContentHint$inboundSchema: z.ZodType< z.lazy(() => CreateProjectEnvContentHint11$inboundSchema), z.lazy(() => CreateProjectEnvContentHint12$inboundSchema), z.lazy(() => CreateProjectEnvContentHint13$inboundSchema), + z.lazy(() => CreateProjectEnvContentHint14$inboundSchema), z.lazy(() => CreateProjectEnvContentHint15$inboundSchema), ]); /** @internal */ export type CreatedContentHint$Outbound = - | CreateProjectEnvContentHint14$Outbound | CreateProjectEnvContentHint1$Outbound | CreateProjectEnvContentHint2$Outbound | CreateProjectEnvContentHint3$Outbound @@ -3750,6 +3010,7 @@ export type CreatedContentHint$Outbound = | CreateProjectEnvContentHint11$Outbound | CreateProjectEnvContentHint12$Outbound | CreateProjectEnvContentHint13$Outbound + | CreateProjectEnvContentHint14$Outbound | CreateProjectEnvContentHint15$Outbound; /** @internal */ @@ -3758,7 +3019,6 @@ export const CreatedContentHint$outboundSchema: z.ZodType< z.ZodTypeDef, CreatedContentHint > = z.union([ - z.lazy(() => CreateProjectEnvContentHint14$outboundSchema), z.lazy(() => CreateProjectEnvContentHint1$outboundSchema), z.lazy(() => CreateProjectEnvContentHint2$outboundSchema), z.lazy(() => CreateProjectEnvContentHint3$outboundSchema), @@ -3772,6 +3032,7 @@ export const CreatedContentHint$outboundSchema: z.ZodType< z.lazy(() => CreateProjectEnvContentHint11$outboundSchema), z.lazy(() => CreateProjectEnvContentHint12$outboundSchema), z.lazy(() => CreateProjectEnvContentHint13$outboundSchema), + z.lazy(() => CreateProjectEnvContentHint14$outboundSchema), z.lazy(() => CreateProjectEnvContentHint15$outboundSchema), ]); @@ -3870,7 +3131,6 @@ export const Created1$inboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => CreateProjectEnvContentHint14$inboundSchema), z.lazy(() => CreateProjectEnvContentHint1$inboundSchema), z.lazy(() => CreateProjectEnvContentHint2$inboundSchema), z.lazy(() => CreateProjectEnvContentHint3$inboundSchema), @@ -3884,6 +3144,7 @@ export const Created1$inboundSchema: z.ZodType< z.lazy(() => CreateProjectEnvContentHint11$inboundSchema), z.lazy(() => CreateProjectEnvContentHint12$inboundSchema), z.lazy(() => CreateProjectEnvContentHint13$inboundSchema), + z.lazy(() => CreateProjectEnvContentHint14$inboundSchema), z.lazy(() => CreateProjectEnvContentHint15$inboundSchema), ]), ).optional(), @@ -3913,7 +3174,6 @@ export type Created1$Outbound = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | CreateProjectEnvContentHint14$Outbound | CreateProjectEnvContentHint1$Outbound | CreateProjectEnvContentHint2$Outbound | CreateProjectEnvContentHint3$Outbound @@ -3927,6 +3187,7 @@ export type Created1$Outbound = { | CreateProjectEnvContentHint11$Outbound | CreateProjectEnvContentHint12$Outbound | CreateProjectEnvContentHint13$Outbound + | CreateProjectEnvContentHint14$Outbound | CreateProjectEnvContentHint15$Outbound | null | undefined; @@ -3963,7 +3224,6 @@ export const Created1$outboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => CreateProjectEnvContentHint14$outboundSchema), z.lazy(() => CreateProjectEnvContentHint1$outboundSchema), z.lazy(() => CreateProjectEnvContentHint2$outboundSchema), z.lazy(() => CreateProjectEnvContentHint3$outboundSchema), @@ -3977,6 +3237,7 @@ export const Created1$outboundSchema: z.ZodType< z.lazy(() => CreateProjectEnvContentHint11$outboundSchema), z.lazy(() => CreateProjectEnvContentHint12$outboundSchema), z.lazy(() => CreateProjectEnvContentHint13$outboundSchema), + z.lazy(() => CreateProjectEnvContentHint14$outboundSchema), z.lazy(() => CreateProjectEnvContentHint15$outboundSchema), ]), ).optional(), diff --git a/src/models/createprojectop.ts b/src/models/createprojectop.ts index 5114eae4..220add04 100644 --- a/src/models/createprojectop.ts +++ b/src/models/createprojectop.ts @@ -482,222 +482,85 @@ export type CreateProjectProjectsResponseType = ClosedEnum< typeof CreateProjectProjectsResponseType >; -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type = - { - FlagsConnectionString: "flags-connection-string", - } as const; -export type CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type = - ClosedEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type - >; - export type CreateProjectContentHint15 = { - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type; + type: "flags-connection-string"; projectId: string; }; -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type = - { - IntegrationStoreSecret: "integration-store-secret", - } as const; -export type CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type = - ClosedEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type - >; - export type CreateProjectContentHint14 = { - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; integrationConfigurationId: string; }; -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type = - { - PostgresUrlNoSsl: "postgres-url-no-ssl", - } as const; -export type CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type = - ClosedEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type - >; - export type CreateProjectContentHint13 = { - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type; + type: "postgres-url-no-ssl"; storeId: string; }; -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type = - { - PostgresDatabase: "postgres-database", - } as const; -export type CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type = - ClosedEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type - >; - export type CreateProjectContentHint12 = { - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type; + type: "postgres-database"; storeId: string; }; -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type = - { - PostgresPassword: "postgres-password", - } as const; -export type CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type = - ClosedEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type - >; - export type CreateProjectContentHint11 = { - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type; + type: "postgres-password"; storeId: string; }; -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type = - { - PostgresHost: "postgres-host", - } as const; -export type CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type = - ClosedEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type - >; - export type CreateProjectContentHint10 = { - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type; + type: "postgres-host"; storeId: string; }; -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type = - { - PostgresUser: "postgres-user", - } as const; -export type CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type = - ClosedEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type - >; - export type CreateProjectContentHint9 = { - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type; + type: "postgres-user"; storeId: string; }; -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type = - { - PostgresPrismaUrl: "postgres-prisma-url", - } as const; -export type CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type = - ClosedEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type - >; - export type CreateProjectContentHint8 = { - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type; + type: "postgres-prisma-url"; storeId: string; }; -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType = - { - PostgresUrlNonPooling: "postgres-url-non-pooling", - } as const; -export type CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType = - ClosedEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType - >; - export type CreateProjectContentHint7 = { - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType; + type: "postgres-url-non-pooling"; storeId: string; }; -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType = - { - PostgresUrl: "postgres-url", - } as const; -export type CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType = - ClosedEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType - >; - export type CreateProjectContentHint6 = { - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType; + type: "postgres-url"; storeId: string; }; -export const CreateProjectContentHintProjectsResponse200ApplicationJSONType = { - BlobReadWriteToken: "blob-read-write-token", -} as const; -export type CreateProjectContentHintProjectsResponse200ApplicationJSONType = - ClosedEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONType - >; - export type CreateProjectContentHint5 = { - type: CreateProjectContentHintProjectsResponse200ApplicationJSONType; + type: "blob-read-write-token"; storeId: string; }; -export const CreateProjectContentHintProjectsResponse200Type = { - RedisRestApiReadOnlyToken: "redis-rest-api-read-only-token", -} as const; -export type CreateProjectContentHintProjectsResponse200Type = ClosedEnum< - typeof CreateProjectContentHintProjectsResponse200Type ->; - export type CreateProjectContentHint4 = { - type: CreateProjectContentHintProjectsResponse200Type; + type: "redis-rest-api-read-only-token"; storeId: string; }; -export const CreateProjectContentHintProjectsResponseType = { - RedisRestApiToken: "redis-rest-api-token", -} as const; -export type CreateProjectContentHintProjectsResponseType = ClosedEnum< - typeof CreateProjectContentHintProjectsResponseType ->; - export type CreateProjectContentHint3 = { - type: CreateProjectContentHintProjectsResponseType; + type: "redis-rest-api-token"; storeId: string; }; -export const CreateProjectContentHintProjectsType = { - RedisRestApiUrl: "redis-rest-api-url", -} as const; -export type CreateProjectContentHintProjectsType = ClosedEnum< - typeof CreateProjectContentHintProjectsType ->; - export type CreateProjectContentHint2 = { - type: CreateProjectContentHintProjectsType; + type: "redis-rest-api-url"; storeId: string; }; -export const CreateProjectContentHintType = { - RedisUrl: "redis-url", -} as const; -export type CreateProjectContentHintType = ClosedEnum< - typeof CreateProjectContentHintType ->; - export type CreateProjectContentHint1 = { - type: CreateProjectContentHintType; + type: "redis-url"; storeId: string; }; export type CreateProjectContentHint = - | CreateProjectContentHint14 | CreateProjectContentHint1 | CreateProjectContentHint2 | CreateProjectContentHint3 @@ -711,6 +574,7 @@ export type CreateProjectContentHint = | CreateProjectContentHint11 | CreateProjectContentHint12 | CreateProjectContentHint13 + | CreateProjectContentHint14 | CreateProjectContentHint15; export const CreateProjectProjectsResponse200ApplicationJSONResponseBodyEnvType = @@ -754,7 +618,6 @@ export type CreateProjectEnv = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | CreateProjectContentHint14 | CreateProjectContentHint1 | CreateProjectContentHint2 | CreateProjectContentHint3 @@ -768,6 +631,7 @@ export type CreateProjectEnv = { | CreateProjectContentHint11 | CreateProjectContentHint12 | CreateProjectContentHint13 + | CreateProjectContentHint14 | CreateProjectContentHint15 | null | undefined; @@ -1128,12 +992,6 @@ export type CreateProjectLatestDeployments = { withCache?: boolean | undefined; }; -export const CreateProjectLinkProjectsResponse200ApplicationJSONType = { - Bitbucket: "bitbucket", -} as const; -export type CreateProjectLinkProjectsResponse200ApplicationJSONType = - ClosedEnum; - export type CreateProjectLinkProjectsResponse200ApplicationJSONDeployHooks = { createdAt?: number | undefined; id: string; @@ -1146,7 +1004,7 @@ export type CreateProjectLink5 = { name: string; slug: string; owner: string; - type: CreateProjectLinkProjectsResponse200ApplicationJSONType; + type: "bitbucket"; uuid: string; workspaceUuid: string; createdAt?: number | undefined; @@ -1159,13 +1017,6 @@ export type CreateProjectLink5 = { productionBranch: string; }; -export const CreateProjectLinkProjectsResponse200Type = { - Gitlab: "gitlab", -} as const; -export type CreateProjectLinkProjectsResponse200Type = ClosedEnum< - typeof CreateProjectLinkProjectsResponse200Type ->; - export type CreateProjectLinkProjectsResponse200DeployHooks = { createdAt?: number | undefined; id: string; @@ -1184,7 +1035,7 @@ export type CreateProjectLink4 = { */ projectOwnerId?: number | undefined; projectUrl: string; - type: CreateProjectLinkProjectsResponse200Type; + type: "gitlab"; createdAt?: number | undefined; deployHooks: Array; gitCredentialId: string; @@ -1193,13 +1044,6 @@ export type CreateProjectLink4 = { productionBranch: string; }; -export const CreateProjectLinkProjectsResponseType = { - GithubCustomHost: "github-custom-host", -} as const; -export type CreateProjectLinkProjectsResponseType = ClosedEnum< - typeof CreateProjectLinkProjectsResponseType ->; - export type CreateProjectLinkProjectsResponseDeployHooks = { createdAt?: number | undefined; id: string; @@ -1216,7 +1060,7 @@ export type CreateProjectLink3 = { repoOwnerId?: number | undefined; repo?: string | undefined; repoId?: number | undefined; - type: CreateProjectLinkProjectsResponseType; + type: "github-custom-host"; host: string; createdAt?: number | undefined; deployHooks: Array; @@ -1226,13 +1070,6 @@ export type CreateProjectLink3 = { productionBranch: string; }; -export const CreateProjectLinkProjectsType = { - GithubLimited: "github-limited", -} as const; -export type CreateProjectLinkProjectsType = ClosedEnum< - typeof CreateProjectLinkProjectsType ->; - export type CreateProjectLinkProjectsDeployHooks = { createdAt?: number | undefined; id: string; @@ -1242,7 +1079,7 @@ export type CreateProjectLinkProjectsDeployHooks = { }; export type CreateProjectLink2 = { - type: CreateProjectLinkProjectsType; + type: "github-limited"; repo?: string | undefined; repoId?: number | undefined; createdAt?: number | undefined; @@ -1258,11 +1095,6 @@ export type CreateProjectLink2 = { productionBranch: string; }; -export const CreateProjectLinkType = { - Github: "github", -} as const; -export type CreateProjectLinkType = ClosedEnum; - export type CreateProjectLinkDeployHooks = { createdAt?: number | undefined; id: string; @@ -1279,7 +1111,7 @@ export type CreateProjectLink1 = { repoOwnerId?: number | undefined; repo?: string | undefined; repoId?: number | undefined; - type: CreateProjectLinkType; + type: "github"; createdAt?: number | undefined; deployHooks: Array; gitCredentialId: string; @@ -1289,11 +1121,11 @@ export type CreateProjectLink1 = { }; export type CreateProjectLink = - | CreateProjectLink4 - | CreateProjectLink5 - | CreateProjectLink3 | CreateProjectLink1 - | CreateProjectLink2; + | CreateProjectLink2 + | CreateProjectLink3 + | CreateProjectLink4 + | CreateProjectLink5; export type CreateProjectMicrofrontends3 = { updatedAt: number; @@ -1947,30 +1779,16 @@ export type CreateProjectLastAliasRequest = { CreateProjectProjectsResponse200ApplicationJSONResponseBodyLastAliasRequestType; }; -export const CreateProjectProtectionBypassProjectsScope = { - AutomationBypass: "automation-bypass", -} as const; -export type CreateProjectProtectionBypassProjectsScope = ClosedEnum< - typeof CreateProjectProtectionBypassProjectsScope ->; - export type CreateProjectProtectionBypass2 = { createdAt: number; createdBy: string; - scope: CreateProjectProtectionBypassProjectsScope; + scope: "automation-bypass"; }; -export const CreateProjectProtectionBypassScope = { - IntegrationAutomationBypass: "integration-automation-bypass", -} as const; -export type CreateProjectProtectionBypassScope = ClosedEnum< - typeof CreateProjectProtectionBypassScope ->; - export type CreateProjectProtectionBypass1 = { createdAt: number; createdBy: string; - scope: CreateProjectProtectionBypassScope; + scope: "integration-automation-bypass"; integrationId: string; configurationId: string; }; @@ -2201,36 +2019,15 @@ export type CreateProjectBlock = { isCascading?: boolean | undefined; }; -export const CreateProjectBlockHistoryProjectsResponse200Action = { - RouteUnblocked: "route-unblocked", -} as const; -export type CreateProjectBlockHistoryProjectsResponse200Action = ClosedEnum< - typeof CreateProjectBlockHistoryProjectsResponse200Action ->; - -export const CreateProjectHasProjectsResponse200Type = { - Host: "host", -} as const; -export type CreateProjectHasProjectsResponse200Type = ClosedEnum< - typeof CreateProjectHasProjectsResponse200Type ->; - export type CreateProjectHasProjectsResponse200Value = { eq: string; }; export type CreateProjectHasProjects2 = { - type: CreateProjectHasProjectsResponse200Type; + type: "host"; value: CreateProjectHasProjectsResponse200Value; }; -export const CreateProjectHasProjectsResponseType = { - Header: "header", -} as const; -export type CreateProjectHasProjectsResponseType = ClosedEnum< - typeof CreateProjectHasProjectsResponseType ->; - export const CreateProjectHasProjectsKey = { XVercelIpCountry: "x-vercel-ip-country", } as const; @@ -2243,7 +2040,7 @@ export type CreateProjectHasProjectsResponseValue = { }; export type CreateProjectHasProjects1 = { - type: CreateProjectHasProjectsResponseType; + type: "header"; key: CreateProjectHasProjectsKey; value: CreateProjectHasProjectsResponseValue; }; @@ -2279,7 +2076,7 @@ export type CreateProjectBlockHistoryProjectsRoute = | CreateProjectRouteProjects2; export type CreateProjectBlockHistory4 = { - action: CreateProjectBlockHistoryProjectsResponse200Action; + action: "route-unblocked"; route: CreateProjectRouteProjects1 | CreateProjectRouteProjects2; statusCode?: number | undefined; createdAt: number; @@ -2289,39 +2086,16 @@ export type CreateProjectBlockHistory4 = { isCascading?: boolean | undefined; }; -export const CreateProjectBlockHistoryProjectsResponseAction = { - RouteBlocked: "route-blocked", -} as const; -export type CreateProjectBlockHistoryProjectsResponseAction = ClosedEnum< - typeof CreateProjectBlockHistoryProjectsResponseAction ->; - -export const CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyType = - { - Host: "host", - } as const; -export type CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyType = - ClosedEnum< - typeof CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyType - >; - export type CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyValue = { eq: string; }; export type CreateProjectHasProjectsResponse2 = { - type: CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyType; + type: "host"; value: CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyValue; }; -export const CreateProjectHasProjectsResponse200ApplicationJSONType = { - Header: "header", -} as const; -export type CreateProjectHasProjectsResponse200ApplicationJSONType = ClosedEnum< - typeof CreateProjectHasProjectsResponse200ApplicationJSONType ->; - export const CreateProjectHasKey = { XVercelIpCountry: "x-vercel-ip-country", } as const; @@ -2332,7 +2106,7 @@ export type CreateProjectHasProjectsResponse200ApplicationJSONValue = { }; export type CreateProjectHasProjectsResponse1 = { - type: CreateProjectHasProjectsResponse200ApplicationJSONType; + type: "header"; key: CreateProjectHasKey; value: CreateProjectHasProjectsResponse200ApplicationJSONValue; }; @@ -2370,7 +2144,7 @@ export type CreateProjectBlockHistoryRoute = | CreateProjectRoute2; export type CreateProjectBlockHistory3 = { - action: CreateProjectBlockHistoryProjectsResponseAction; + action: "route-blocked"; route: CreateProjectRoute1 | CreateProjectRoute2; reason: string; createdAt: number; @@ -2380,15 +2154,8 @@ export type CreateProjectBlockHistory3 = { isCascading?: boolean | undefined; }; -export const CreateProjectBlockHistoryProjectsAction = { - Unblocked: "unblocked", -} as const; -export type CreateProjectBlockHistoryProjectsAction = ClosedEnum< - typeof CreateProjectBlockHistoryProjectsAction ->; - export type CreateProjectBlockHistory2 = { - action: CreateProjectBlockHistoryProjectsAction; + action: "unblocked"; createdAt: number; caseId?: string | undefined; actor?: string | undefined; @@ -2396,15 +2163,8 @@ export type CreateProjectBlockHistory2 = { isCascading?: boolean | undefined; }; -export const CreateProjectBlockHistoryAction = { - Blocked: "blocked", -} as const; -export type CreateProjectBlockHistoryAction = ClosedEnum< - typeof CreateProjectBlockHistoryAction ->; - export type CreateProjectBlockHistory1 = { - action: CreateProjectBlockHistoryAction; + action: "blocked"; reason: string; statusCode: number; createdAt: number; @@ -2416,9 +2176,9 @@ export type CreateProjectBlockHistory1 = { export type CreateProjectBlockHistory = | CreateProjectBlockHistory1 + | CreateProjectBlockHistory2 | CreateProjectBlockHistory3 - | CreateProjectBlockHistory4 - | CreateProjectBlockHistory2; + | CreateProjectBlockHistory4; export type CreateProjectAbuse = { scanner?: string | undefined; @@ -2428,35 +2188,23 @@ export type CreateProjectAbuse = { blockHistory?: | Array< | CreateProjectBlockHistory1 + | CreateProjectBlockHistory2 | CreateProjectBlockHistory3 | CreateProjectBlockHistory4 - | CreateProjectBlockHistory2 > | undefined; interstitial?: boolean | undefined; }; -export const CreateProjectHasProjectsType = { - Host: "host", -} as const; -export type CreateProjectHasProjectsType = ClosedEnum< - typeof CreateProjectHasProjectsType ->; - export type CreateProjectHasProjectsValue = { eq: string; }; export type CreateProjectHas2 = { - type: CreateProjectHasProjectsType; + type: "host"; value: CreateProjectHasProjectsValue; }; -export const CreateProjectHasType = { - Header: "header", -} as const; -export type CreateProjectHasType = ClosedEnum; - export const HasKey = { XVercelIpCountry: "x-vercel-ip-country", } as const; @@ -2467,7 +2215,7 @@ export type CreateProjectHasValue = { }; export type CreateProjectHas1 = { - type: CreateProjectHasType; + type: "header"; key: HasKey; value: CreateProjectHasValue; }; @@ -2568,11 +2316,11 @@ export type CreateProjectResponseBody = { ipBuckets?: Array | undefined; latestDeployments?: Array | undefined; link?: - | CreateProjectLink4 - | CreateProjectLink5 - | CreateProjectLink3 | CreateProjectLink1 | CreateProjectLink2 + | CreateProjectLink3 + | CreateProjectLink4 + | CreateProjectLink5 | undefined; microfrontends?: | CreateProjectMicrofrontends1 @@ -3667,33 +3415,18 @@ export const CreateProjectProjectsResponseType$outboundSchema: z.ZodNativeEnum< typeof CreateProjectProjectsResponseType > = CreateProjectProjectsResponseType$inboundSchema; -/** @internal */ -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type - > = z.nativeEnum( - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type, - ); -/** @internal */ -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type - > = - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type$inboundSchema; - /** @internal */ export const CreateProjectContentHint15$inboundSchema: z.ZodType< CreateProjectContentHint15, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type$inboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); /** @internal */ export type CreateProjectContentHint15$Outbound = { - type: string; + type: "flags-connection-string"; projectId: string; }; @@ -3703,8 +3436,7 @@ export const CreateProjectContentHint15$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectContentHint15 > = z.object({ - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type$outboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); @@ -3725,28 +3457,13 @@ export function createProjectContentHint15FromJSON( ); } -/** @internal */ -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type - > = z.nativeEnum( - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type, - ); -/** @internal */ -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type - > = - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type$inboundSchema; - /** @internal */ export const CreateProjectContentHint14$inboundSchema: z.ZodType< CreateProjectContentHint14, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type$inboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -3754,7 +3471,7 @@ export const CreateProjectContentHint14$inboundSchema: z.ZodType< }); /** @internal */ export type CreateProjectContentHint14$Outbound = { - type: string; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; @@ -3767,8 +3484,7 @@ export const CreateProjectContentHint14$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectContentHint14 > = z.object({ - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type$outboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -3792,33 +3508,18 @@ export function createProjectContentHint14FromJSON( ); } -/** @internal */ -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type - > = z.nativeEnum( - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type, - ); -/** @internal */ -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type - > = - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type$inboundSchema; - /** @internal */ export const CreateProjectContentHint13$inboundSchema: z.ZodType< CreateProjectContentHint13, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type$inboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); /** @internal */ export type CreateProjectContentHint13$Outbound = { - type: string; + type: "postgres-url-no-ssl"; storeId: string; }; @@ -3828,8 +3529,7 @@ export const CreateProjectContentHint13$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectContentHint13 > = z.object({ - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type$outboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); @@ -3850,33 +3550,18 @@ export function createProjectContentHint13FromJSON( ); } -/** @internal */ -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type - > = z.nativeEnum( - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type, - ); -/** @internal */ -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type - > = - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type$inboundSchema; - /** @internal */ export const CreateProjectContentHint12$inboundSchema: z.ZodType< CreateProjectContentHint12, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type$inboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); /** @internal */ export type CreateProjectContentHint12$Outbound = { - type: string; + type: "postgres-database"; storeId: string; }; @@ -3886,8 +3571,7 @@ export const CreateProjectContentHint12$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectContentHint12 > = z.object({ - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type$outboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); @@ -3908,33 +3592,18 @@ export function createProjectContentHint12FromJSON( ); } -/** @internal */ -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type - > = z.nativeEnum( - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type, - ); -/** @internal */ -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type - > = - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type$inboundSchema; - /** @internal */ export const CreateProjectContentHint11$inboundSchema: z.ZodType< CreateProjectContentHint11, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type$inboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); /** @internal */ export type CreateProjectContentHint11$Outbound = { - type: string; + type: "postgres-password"; storeId: string; }; @@ -3944,8 +3613,7 @@ export const CreateProjectContentHint11$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectContentHint11 > = z.object({ - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type$outboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); @@ -3966,33 +3634,18 @@ export function createProjectContentHint11FromJSON( ); } -/** @internal */ -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type - > = z.nativeEnum( - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type, - ); -/** @internal */ -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type - > = - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type$inboundSchema; - /** @internal */ export const CreateProjectContentHint10$inboundSchema: z.ZodType< CreateProjectContentHint10, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type$inboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); /** @internal */ export type CreateProjectContentHint10$Outbound = { - type: string; + type: "postgres-host"; storeId: string; }; @@ -4002,8 +3655,7 @@ export const CreateProjectContentHint10$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectContentHint10 > = z.object({ - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type$outboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); @@ -4024,33 +3676,18 @@ export function createProjectContentHint10FromJSON( ); } -/** @internal */ -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type - > = z.nativeEnum( - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type, - ); -/** @internal */ -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type - > = - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type$inboundSchema; - /** @internal */ export const CreateProjectContentHint9$inboundSchema: z.ZodType< CreateProjectContentHint9, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type$inboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); /** @internal */ export type CreateProjectContentHint9$Outbound = { - type: string; + type: "postgres-user"; storeId: string; }; @@ -4060,8 +3697,7 @@ export const CreateProjectContentHint9$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectContentHint9 > = z.object({ - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type$outboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); @@ -4082,33 +3718,18 @@ export function createProjectContentHint9FromJSON( ); } -/** @internal */ -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type - > = z.nativeEnum( - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type, - ); -/** @internal */ -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type - > = - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type$inboundSchema; - /** @internal */ export const CreateProjectContentHint8$inboundSchema: z.ZodType< CreateProjectContentHint8, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type$inboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); /** @internal */ export type CreateProjectContentHint8$Outbound = { - type: string; + type: "postgres-prisma-url"; storeId: string; }; @@ -4118,8 +3739,7 @@ export const CreateProjectContentHint8$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectContentHint8 > = z.object({ - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type$outboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); @@ -4140,33 +3760,18 @@ export function createProjectContentHint8FromJSON( ); } -/** @internal */ -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType - > = z.nativeEnum( - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType, - ); -/** @internal */ -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType - > = - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType$inboundSchema; - /** @internal */ export const CreateProjectContentHint7$inboundSchema: z.ZodType< CreateProjectContentHint7, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType$inboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); /** @internal */ export type CreateProjectContentHint7$Outbound = { - type: string; + type: "postgres-url-non-pooling"; storeId: string; }; @@ -4176,8 +3781,7 @@ export const CreateProjectContentHint7$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectContentHint7 > = z.object({ - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType$outboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); @@ -4198,33 +3802,18 @@ export function createProjectContentHint7FromJSON( ); } -/** @internal */ -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType - > = z.nativeEnum( - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType, - ); -/** @internal */ -export const CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType - > = - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema; - /** @internal */ export const CreateProjectContentHint6$inboundSchema: z.ZodType< CreateProjectContentHint6, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); /** @internal */ export type CreateProjectContentHint6$Outbound = { - type: string; + type: "postgres-url"; storeId: string; }; @@ -4234,8 +3823,7 @@ export const CreateProjectContentHint6$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectContentHint6 > = z.object({ - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); @@ -4256,33 +3844,18 @@ export function createProjectContentHint6FromJSON( ); } -/** @internal */ -export const CreateProjectContentHintProjectsResponse200ApplicationJSONType$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONType - > = z.nativeEnum( - CreateProjectContentHintProjectsResponse200ApplicationJSONType, - ); -/** @internal */ -export const CreateProjectContentHintProjectsResponse200ApplicationJSONType$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectContentHintProjectsResponse200ApplicationJSONType - > = - CreateProjectContentHintProjectsResponse200ApplicationJSONType$inboundSchema; - /** @internal */ export const CreateProjectContentHint5$inboundSchema: z.ZodType< CreateProjectContentHint5, z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONType$inboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); /** @internal */ export type CreateProjectContentHint5$Outbound = { - type: string; + type: "blob-read-write-token"; storeId: string; }; @@ -4292,8 +3865,7 @@ export const CreateProjectContentHint5$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectContentHint5 > = z.object({ - type: - CreateProjectContentHintProjectsResponse200ApplicationJSONType$outboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); @@ -4314,27 +3886,18 @@ export function createProjectContentHint5FromJSON( ); } -/** @internal */ -export const CreateProjectContentHintProjectsResponse200Type$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(CreateProjectContentHintProjectsResponse200Type); -/** @internal */ -export const CreateProjectContentHintProjectsResponse200Type$outboundSchema: - z.ZodNativeEnum = - CreateProjectContentHintProjectsResponse200Type$inboundSchema; - /** @internal */ export const CreateProjectContentHint4$inboundSchema: z.ZodType< CreateProjectContentHint4, z.ZodTypeDef, unknown > = z.object({ - type: CreateProjectContentHintProjectsResponse200Type$inboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); /** @internal */ export type CreateProjectContentHint4$Outbound = { - type: string; + type: "redis-rest-api-read-only-token"; storeId: string; }; @@ -4344,7 +3907,7 @@ export const CreateProjectContentHint4$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectContentHint4 > = z.object({ - type: CreateProjectContentHintProjectsResponse200Type$outboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); @@ -4365,27 +3928,18 @@ export function createProjectContentHint4FromJSON( ); } -/** @internal */ -export const CreateProjectContentHintProjectsResponseType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(CreateProjectContentHintProjectsResponseType); -/** @internal */ -export const CreateProjectContentHintProjectsResponseType$outboundSchema: - z.ZodNativeEnum = - CreateProjectContentHintProjectsResponseType$inboundSchema; - /** @internal */ export const CreateProjectContentHint3$inboundSchema: z.ZodType< CreateProjectContentHint3, z.ZodTypeDef, unknown > = z.object({ - type: CreateProjectContentHintProjectsResponseType$inboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); /** @internal */ export type CreateProjectContentHint3$Outbound = { - type: string; + type: "redis-rest-api-token"; storeId: string; }; @@ -4395,7 +3949,7 @@ export const CreateProjectContentHint3$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectContentHint3 > = z.object({ - type: CreateProjectContentHintProjectsResponseType$outboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); @@ -4416,28 +3970,18 @@ export function createProjectContentHint3FromJSON( ); } -/** @internal */ -export const CreateProjectContentHintProjectsType$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - CreateProjectContentHintProjectsType, - ); -/** @internal */ -export const CreateProjectContentHintProjectsType$outboundSchema: - z.ZodNativeEnum = - CreateProjectContentHintProjectsType$inboundSchema; - /** @internal */ export const CreateProjectContentHint2$inboundSchema: z.ZodType< CreateProjectContentHint2, z.ZodTypeDef, unknown > = z.object({ - type: CreateProjectContentHintProjectsType$inboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); /** @internal */ export type CreateProjectContentHint2$Outbound = { - type: string; + type: "redis-rest-api-url"; storeId: string; }; @@ -4447,7 +3991,7 @@ export const CreateProjectContentHint2$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectContentHint2 > = z.object({ - type: CreateProjectContentHintProjectsType$outboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); @@ -4468,27 +4012,18 @@ export function createProjectContentHint2FromJSON( ); } -/** @internal */ -export const CreateProjectContentHintType$inboundSchema: z.ZodNativeEnum< - typeof CreateProjectContentHintType -> = z.nativeEnum(CreateProjectContentHintType); -/** @internal */ -export const CreateProjectContentHintType$outboundSchema: z.ZodNativeEnum< - typeof CreateProjectContentHintType -> = CreateProjectContentHintType$inboundSchema; - /** @internal */ export const CreateProjectContentHint1$inboundSchema: z.ZodType< CreateProjectContentHint1, z.ZodTypeDef, unknown > = z.object({ - type: CreateProjectContentHintType$inboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); /** @internal */ export type CreateProjectContentHint1$Outbound = { - type: string; + type: "redis-url"; storeId: string; }; @@ -4498,7 +4033,7 @@ export const CreateProjectContentHint1$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectContentHint1 > = z.object({ - type: CreateProjectContentHintType$outboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); @@ -4525,7 +4060,6 @@ export const CreateProjectContentHint$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => CreateProjectContentHint14$inboundSchema), z.lazy(() => CreateProjectContentHint1$inboundSchema), z.lazy(() => CreateProjectContentHint2$inboundSchema), z.lazy(() => CreateProjectContentHint3$inboundSchema), @@ -4539,11 +4073,11 @@ export const CreateProjectContentHint$inboundSchema: z.ZodType< z.lazy(() => CreateProjectContentHint11$inboundSchema), z.lazy(() => CreateProjectContentHint12$inboundSchema), z.lazy(() => CreateProjectContentHint13$inboundSchema), + z.lazy(() => CreateProjectContentHint14$inboundSchema), z.lazy(() => CreateProjectContentHint15$inboundSchema), ]); /** @internal */ export type CreateProjectContentHint$Outbound = - | CreateProjectContentHint14$Outbound | CreateProjectContentHint1$Outbound | CreateProjectContentHint2$Outbound | CreateProjectContentHint3$Outbound @@ -4557,6 +4091,7 @@ export type CreateProjectContentHint$Outbound = | CreateProjectContentHint11$Outbound | CreateProjectContentHint12$Outbound | CreateProjectContentHint13$Outbound + | CreateProjectContentHint14$Outbound | CreateProjectContentHint15$Outbound; /** @internal */ @@ -4565,7 +4100,6 @@ export const CreateProjectContentHint$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectContentHint > = z.union([ - z.lazy(() => CreateProjectContentHint14$outboundSchema), z.lazy(() => CreateProjectContentHint1$outboundSchema), z.lazy(() => CreateProjectContentHint2$outboundSchema), z.lazy(() => CreateProjectContentHint3$outboundSchema), @@ -4579,6 +4113,7 @@ export const CreateProjectContentHint$outboundSchema: z.ZodType< z.lazy(() => CreateProjectContentHint11$outboundSchema), z.lazy(() => CreateProjectContentHint12$outboundSchema), z.lazy(() => CreateProjectContentHint13$outboundSchema), + z.lazy(() => CreateProjectContentHint14$outboundSchema), z.lazy(() => CreateProjectContentHint15$outboundSchema), ]); @@ -4686,7 +4221,6 @@ export const CreateProjectEnv$inboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => CreateProjectContentHint14$inboundSchema), z.lazy(() => CreateProjectContentHint1$inboundSchema), z.lazy(() => CreateProjectContentHint2$inboundSchema), z.lazy(() => CreateProjectContentHint3$inboundSchema), @@ -4700,6 +4234,7 @@ export const CreateProjectEnv$inboundSchema: z.ZodType< z.lazy(() => CreateProjectContentHint11$inboundSchema), z.lazy(() => CreateProjectContentHint12$inboundSchema), z.lazy(() => CreateProjectContentHint13$inboundSchema), + z.lazy(() => CreateProjectContentHint14$inboundSchema), z.lazy(() => CreateProjectContentHint15$inboundSchema), ]), ).optional(), @@ -4728,7 +4263,6 @@ export type CreateProjectEnv$Outbound = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | CreateProjectContentHint14$Outbound | CreateProjectContentHint1$Outbound | CreateProjectContentHint2$Outbound | CreateProjectContentHint3$Outbound @@ -4742,6 +4276,7 @@ export type CreateProjectEnv$Outbound = { | CreateProjectContentHint11$Outbound | CreateProjectContentHint12$Outbound | CreateProjectContentHint13$Outbound + | CreateProjectContentHint14$Outbound | CreateProjectContentHint15$Outbound | null | undefined; @@ -4780,7 +4315,6 @@ export const CreateProjectEnv$outboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => CreateProjectContentHint14$outboundSchema), z.lazy(() => CreateProjectContentHint1$outboundSchema), z.lazy(() => CreateProjectContentHint2$outboundSchema), z.lazy(() => CreateProjectContentHint3$outboundSchema), @@ -4794,6 +4328,7 @@ export const CreateProjectEnv$outboundSchema: z.ZodType< z.lazy(() => CreateProjectContentHint11$outboundSchema), z.lazy(() => CreateProjectContentHint12$outboundSchema), z.lazy(() => CreateProjectContentHint13$outboundSchema), + z.lazy(() => CreateProjectContentHint14$outboundSchema), z.lazy(() => CreateProjectContentHint15$outboundSchema), ]), ).optional(), @@ -5643,17 +5178,6 @@ export function createProjectLatestDeploymentsFromJSON( ); } -/** @internal */ -export const CreateProjectLinkProjectsResponse200ApplicationJSONType$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectLinkProjectsResponse200ApplicationJSONType - > = z.nativeEnum(CreateProjectLinkProjectsResponse200ApplicationJSONType); -/** @internal */ -export const CreateProjectLinkProjectsResponse200ApplicationJSONType$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectLinkProjectsResponse200ApplicationJSONType - > = CreateProjectLinkProjectsResponse200ApplicationJSONType$inboundSchema; - /** @internal */ export const CreateProjectLinkProjectsResponse200ApplicationJSONDeployHooks$inboundSchema: z.ZodType< @@ -5724,7 +5248,7 @@ export const CreateProjectLink5$inboundSchema: z.ZodType< name: z.string(), slug: z.string(), owner: z.string(), - type: CreateProjectLinkProjectsResponse200ApplicationJSONType$inboundSchema, + type: z.literal("bitbucket"), uuid: z.string(), workspaceUuid: z.string(), createdAt: z.number().optional(), @@ -5743,7 +5267,7 @@ export type CreateProjectLink5$Outbound = { name: string; slug: string; owner: string; - type: string; + type: "bitbucket"; uuid: string; workspaceUuid: string; createdAt?: number | undefined; @@ -5765,7 +5289,7 @@ export const CreateProjectLink5$outboundSchema: z.ZodType< name: z.string(), slug: z.string(), owner: z.string(), - type: CreateProjectLinkProjectsResponse200ApplicationJSONType$outboundSchema, + type: z.literal("bitbucket"), uuid: z.string(), workspaceUuid: z.string(), createdAt: z.number().optional(), @@ -5797,15 +5321,6 @@ export function createProjectLink5FromJSON( ); } -/** @internal */ -export const CreateProjectLinkProjectsResponse200Type$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(CreateProjectLinkProjectsResponse200Type); -/** @internal */ -export const CreateProjectLinkProjectsResponse200Type$outboundSchema: - z.ZodNativeEnum = - CreateProjectLinkProjectsResponse200Type$inboundSchema; - /** @internal */ export const CreateProjectLinkProjectsResponse200DeployHooks$inboundSchema: z.ZodType< @@ -5880,7 +5395,7 @@ export const CreateProjectLink4$inboundSchema: z.ZodType< projectNamespace: z.string(), projectOwnerId: z.number().optional(), projectUrl: z.string(), - type: CreateProjectLinkProjectsResponse200Type$inboundSchema, + type: z.literal("gitlab"), createdAt: z.number().optional(), deployHooks: z.array( z.lazy(() => CreateProjectLinkProjectsResponse200DeployHooks$inboundSchema), @@ -5898,7 +5413,7 @@ export type CreateProjectLink4$Outbound = { projectNamespace: string; projectOwnerId?: number | undefined; projectUrl: string; - type: string; + type: "gitlab"; createdAt?: number | undefined; deployHooks: Array; gitCredentialId: string; @@ -5919,7 +5434,7 @@ export const CreateProjectLink4$outboundSchema: z.ZodType< projectNamespace: z.string(), projectOwnerId: z.number().optional(), projectUrl: z.string(), - type: CreateProjectLinkProjectsResponse200Type$outboundSchema, + type: z.literal("gitlab"), createdAt: z.number().optional(), deployHooks: z.array( z.lazy(() => @@ -5949,16 +5464,6 @@ export function createProjectLink4FromJSON( ); } -/** @internal */ -export const CreateProjectLinkProjectsResponseType$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - CreateProjectLinkProjectsResponseType, - ); -/** @internal */ -export const CreateProjectLinkProjectsResponseType$outboundSchema: - z.ZodNativeEnum = - CreateProjectLinkProjectsResponseType$inboundSchema; - /** @internal */ export const CreateProjectLinkProjectsResponseDeployHooks$inboundSchema: z.ZodType< @@ -6031,7 +5536,7 @@ export const CreateProjectLink3$inboundSchema: z.ZodType< repoOwnerId: z.number().optional(), repo: z.string().optional(), repoId: z.number().optional(), - type: CreateProjectLinkProjectsResponseType$inboundSchema, + type: z.literal("github-custom-host"), host: z.string(), createdAt: z.number().optional(), deployHooks: z.array( @@ -6048,7 +5553,7 @@ export type CreateProjectLink3$Outbound = { repoOwnerId?: number | undefined; repo?: string | undefined; repoId?: number | undefined; - type: string; + type: "github-custom-host"; host: string; createdAt?: number | undefined; deployHooks: Array; @@ -6068,7 +5573,7 @@ export const CreateProjectLink3$outboundSchema: z.ZodType< repoOwnerId: z.number().optional(), repo: z.string().optional(), repoId: z.number().optional(), - type: CreateProjectLinkProjectsResponseType$outboundSchema, + type: z.literal("github-custom-host"), host: z.string(), createdAt: z.number().optional(), deployHooks: z.array( @@ -6097,15 +5602,6 @@ export function createProjectLink3FromJSON( ); } -/** @internal */ -export const CreateProjectLinkProjectsType$inboundSchema: z.ZodNativeEnum< - typeof CreateProjectLinkProjectsType -> = z.nativeEnum(CreateProjectLinkProjectsType); -/** @internal */ -export const CreateProjectLinkProjectsType$outboundSchema: z.ZodNativeEnum< - typeof CreateProjectLinkProjectsType -> = CreateProjectLinkProjectsType$inboundSchema; - /** @internal */ export const CreateProjectLinkProjectsDeployHooks$inboundSchema: z.ZodType< CreateProjectLinkProjectsDeployHooks, @@ -6166,7 +5662,7 @@ export const CreateProjectLink2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: CreateProjectLinkProjectsType$inboundSchema, + type: z.literal("github-limited"), repo: z.string().optional(), repoId: z.number().optional(), createdAt: z.number().optional(), @@ -6182,7 +5678,7 @@ export const CreateProjectLink2$inboundSchema: z.ZodType< }); /** @internal */ export type CreateProjectLink2$Outbound = { - type: string; + type: "github-limited"; repo?: string | undefined; repoId?: number | undefined; createdAt?: number | undefined; @@ -6201,7 +5697,7 @@ export const CreateProjectLink2$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectLink2 > = z.object({ - type: CreateProjectLinkProjectsType$outboundSchema, + type: z.literal("github-limited"), repo: z.string().optional(), repoId: z.number().optional(), createdAt: z.number().optional(), @@ -6233,15 +5729,6 @@ export function createProjectLink2FromJSON( ); } -/** @internal */ -export const CreateProjectLinkType$inboundSchema: z.ZodNativeEnum< - typeof CreateProjectLinkType -> = z.nativeEnum(CreateProjectLinkType); -/** @internal */ -export const CreateProjectLinkType$outboundSchema: z.ZodNativeEnum< - typeof CreateProjectLinkType -> = CreateProjectLinkType$inboundSchema; - /** @internal */ export const CreateProjectLinkDeployHooks$inboundSchema: z.ZodType< CreateProjectLinkDeployHooks, @@ -6305,7 +5792,7 @@ export const CreateProjectLink1$inboundSchema: z.ZodType< repoOwnerId: z.number().optional(), repo: z.string().optional(), repoId: z.number().optional(), - type: CreateProjectLinkType$inboundSchema, + type: z.literal("github"), createdAt: z.number().optional(), deployHooks: z.array( z.lazy(() => CreateProjectLinkDeployHooks$inboundSchema), @@ -6321,7 +5808,7 @@ export type CreateProjectLink1$Outbound = { repoOwnerId?: number | undefined; repo?: string | undefined; repoId?: number | undefined; - type: string; + type: "github"; createdAt?: number | undefined; deployHooks: Array; gitCredentialId: string; @@ -6340,7 +5827,7 @@ export const CreateProjectLink1$outboundSchema: z.ZodType< repoOwnerId: z.number().optional(), repo: z.string().optional(), repoId: z.number().optional(), - type: CreateProjectLinkType$outboundSchema, + type: z.literal("github"), createdAt: z.number().optional(), deployHooks: z.array( z.lazy(() => CreateProjectLinkDeployHooks$outboundSchema), @@ -6374,19 +5861,19 @@ export const CreateProjectLink$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => CreateProjectLink4$inboundSchema), - z.lazy(() => CreateProjectLink5$inboundSchema), - z.lazy(() => CreateProjectLink3$inboundSchema), z.lazy(() => CreateProjectLink1$inboundSchema), z.lazy(() => CreateProjectLink2$inboundSchema), + z.lazy(() => CreateProjectLink3$inboundSchema), + z.lazy(() => CreateProjectLink4$inboundSchema), + z.lazy(() => CreateProjectLink5$inboundSchema), ]); /** @internal */ export type CreateProjectLink$Outbound = - | CreateProjectLink4$Outbound - | CreateProjectLink5$Outbound - | CreateProjectLink3$Outbound | CreateProjectLink1$Outbound - | CreateProjectLink2$Outbound; + | CreateProjectLink2$Outbound + | CreateProjectLink3$Outbound + | CreateProjectLink4$Outbound + | CreateProjectLink5$Outbound; /** @internal */ export const CreateProjectLink$outboundSchema: z.ZodType< @@ -6394,11 +5881,11 @@ export const CreateProjectLink$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectLink > = z.union([ - z.lazy(() => CreateProjectLink4$outboundSchema), - z.lazy(() => CreateProjectLink5$outboundSchema), - z.lazy(() => CreateProjectLink3$outboundSchema), z.lazy(() => CreateProjectLink1$outboundSchema), z.lazy(() => CreateProjectLink2$outboundSchema), + z.lazy(() => CreateProjectLink3$outboundSchema), + z.lazy(() => CreateProjectLink4$outboundSchema), + z.lazy(() => CreateProjectLink5$outboundSchema), ]); export function createProjectLinkToJSON( @@ -8553,15 +8040,6 @@ export function createProjectLastAliasRequestFromJSON( ); } -/** @internal */ -export const CreateProjectProtectionBypassProjectsScope$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(CreateProjectProtectionBypassProjectsScope); -/** @internal */ -export const CreateProjectProtectionBypassProjectsScope$outboundSchema: - z.ZodNativeEnum = - CreateProjectProtectionBypassProjectsScope$inboundSchema; - /** @internal */ export const CreateProjectProtectionBypass2$inboundSchema: z.ZodType< CreateProjectProtectionBypass2, @@ -8570,13 +8048,13 @@ export const CreateProjectProtectionBypass2$inboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: CreateProjectProtectionBypassProjectsScope$inboundSchema, + scope: z.literal("automation-bypass"), }); /** @internal */ export type CreateProjectProtectionBypass2$Outbound = { createdAt: number; createdBy: string; - scope: string; + scope: "automation-bypass"; }; /** @internal */ @@ -8587,7 +8065,7 @@ export const CreateProjectProtectionBypass2$outboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: CreateProjectProtectionBypassProjectsScope$outboundSchema, + scope: z.literal("automation-bypass"), }); export function createProjectProtectionBypass2ToJSON( @@ -8609,15 +8087,6 @@ export function createProjectProtectionBypass2FromJSON( ); } -/** @internal */ -export const CreateProjectProtectionBypassScope$inboundSchema: z.ZodNativeEnum< - typeof CreateProjectProtectionBypassScope -> = z.nativeEnum(CreateProjectProtectionBypassScope); -/** @internal */ -export const CreateProjectProtectionBypassScope$outboundSchema: z.ZodNativeEnum< - typeof CreateProjectProtectionBypassScope -> = CreateProjectProtectionBypassScope$inboundSchema; - /** @internal */ export const CreateProjectProtectionBypass1$inboundSchema: z.ZodType< CreateProjectProtectionBypass1, @@ -8626,7 +8095,7 @@ export const CreateProjectProtectionBypass1$inboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: CreateProjectProtectionBypassScope$inboundSchema, + scope: z.literal("integration-automation-bypass"), integrationId: z.string(), configurationId: z.string(), }); @@ -8634,7 +8103,7 @@ export const CreateProjectProtectionBypass1$inboundSchema: z.ZodType< export type CreateProjectProtectionBypass1$Outbound = { createdAt: number; createdBy: string; - scope: string; + scope: "integration-automation-bypass"; integrationId: string; configurationId: string; }; @@ -8647,7 +8116,7 @@ export const CreateProjectProtectionBypass1$outboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: CreateProjectProtectionBypassScope$outboundSchema, + scope: z.literal("integration-automation-bypass"), integrationId: z.string(), configurationId: z.string(), }); @@ -9568,24 +9037,6 @@ export function createProjectBlockFromJSON( ); } -/** @internal */ -export const CreateProjectBlockHistoryProjectsResponse200Action$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(CreateProjectBlockHistoryProjectsResponse200Action); -/** @internal */ -export const CreateProjectBlockHistoryProjectsResponse200Action$outboundSchema: - z.ZodNativeEnum = - CreateProjectBlockHistoryProjectsResponse200Action$inboundSchema; - -/** @internal */ -export const CreateProjectHasProjectsResponse200Type$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(CreateProjectHasProjectsResponse200Type); -/** @internal */ -export const CreateProjectHasProjectsResponse200Type$outboundSchema: - z.ZodNativeEnum = - CreateProjectHasProjectsResponse200Type$inboundSchema; - /** @internal */ export const CreateProjectHasProjectsResponse200Value$inboundSchema: z.ZodType< CreateProjectHasProjectsResponse200Value, @@ -9640,12 +9091,12 @@ export const CreateProjectHasProjects2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: CreateProjectHasProjectsResponse200Type$inboundSchema, + type: z.literal("host"), value: z.lazy(() => CreateProjectHasProjectsResponse200Value$inboundSchema), }); /** @internal */ export type CreateProjectHasProjects2$Outbound = { - type: string; + type: "host"; value: CreateProjectHasProjectsResponse200Value$Outbound; }; @@ -9655,7 +9106,7 @@ export const CreateProjectHasProjects2$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectHasProjects2 > = z.object({ - type: CreateProjectHasProjectsResponse200Type$outboundSchema, + type: z.literal("host"), value: z.lazy(() => CreateProjectHasProjectsResponse200Value$outboundSchema), }); @@ -9676,16 +9127,6 @@ export function createProjectHasProjects2FromJSON( ); } -/** @internal */ -export const CreateProjectHasProjectsResponseType$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - CreateProjectHasProjectsResponseType, - ); -/** @internal */ -export const CreateProjectHasProjectsResponseType$outboundSchema: - z.ZodNativeEnum = - CreateProjectHasProjectsResponseType$inboundSchema; - /** @internal */ export const CreateProjectHasProjectsKey$inboundSchema: z.ZodNativeEnum< typeof CreateProjectHasProjectsKey @@ -9743,13 +9184,13 @@ export const CreateProjectHasProjects1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: CreateProjectHasProjectsResponseType$inboundSchema, + type: z.literal("header"), key: CreateProjectHasProjectsKey$inboundSchema, value: z.lazy(() => CreateProjectHasProjectsResponseValue$inboundSchema), }); /** @internal */ export type CreateProjectHasProjects1$Outbound = { - type: string; + type: "header"; key: string; value: CreateProjectHasProjectsResponseValue$Outbound; }; @@ -9760,7 +9201,7 @@ export const CreateProjectHasProjects1$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectHasProjects1 > = z.object({ - type: CreateProjectHasProjectsResponseType$outboundSchema, + type: z.literal("header"), key: CreateProjectHasProjectsKey$outboundSchema, value: z.lazy(() => CreateProjectHasProjectsResponseValue$outboundSchema), }); @@ -10030,7 +9471,7 @@ export const CreateProjectBlockHistory4$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - action: CreateProjectBlockHistoryProjectsResponse200Action$inboundSchema, + action: z.literal("route-unblocked"), route: z.union([ z.lazy(() => CreateProjectRouteProjects1$inboundSchema), z.lazy(() => CreateProjectRouteProjects2$inboundSchema), @@ -10044,7 +9485,7 @@ export const CreateProjectBlockHistory4$inboundSchema: z.ZodType< }); /** @internal */ export type CreateProjectBlockHistory4$Outbound = { - action: string; + action: "route-unblocked"; route: | CreateProjectRouteProjects1$Outbound | CreateProjectRouteProjects2$Outbound; @@ -10062,7 +9503,7 @@ export const CreateProjectBlockHistory4$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectBlockHistory4 > = z.object({ - action: CreateProjectBlockHistoryProjectsResponse200Action$outboundSchema, + action: z.literal("route-unblocked"), route: z.union([ z.lazy(() => CreateProjectRouteProjects1$outboundSchema), z.lazy(() => CreateProjectRouteProjects2$outboundSchema), @@ -10092,29 +9533,6 @@ export function createProjectBlockHistory4FromJSON( ); } -/** @internal */ -export const CreateProjectBlockHistoryProjectsResponseAction$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(CreateProjectBlockHistoryProjectsResponseAction); -/** @internal */ -export const CreateProjectBlockHistoryProjectsResponseAction$outboundSchema: - z.ZodNativeEnum = - CreateProjectBlockHistoryProjectsResponseAction$inboundSchema; - -/** @internal */ -export const CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyType - > = z.nativeEnum( - CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyType, - ); -/** @internal */ -export const CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyType - > = - CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema; - /** @internal */ export const CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyValue$inboundSchema: z.ZodType< @@ -10172,15 +9590,14 @@ export const CreateProjectHasProjectsResponse2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: - CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema, + type: z.literal("host"), value: z.lazy(() => CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyValue$inboundSchema ), }); /** @internal */ export type CreateProjectHasProjectsResponse2$Outbound = { - type: string; + type: "host"; value: CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyValue$Outbound; }; @@ -10191,8 +9608,7 @@ export const CreateProjectHasProjectsResponse2$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectHasProjectsResponse2 > = z.object({ - type: - CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema, + type: z.literal("host"), value: z.lazy(() => CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyValue$outboundSchema ), @@ -10217,17 +9633,6 @@ export function createProjectHasProjectsResponse2FromJSON( ); } -/** @internal */ -export const CreateProjectHasProjectsResponse200ApplicationJSONType$inboundSchema: - z.ZodNativeEnum< - typeof CreateProjectHasProjectsResponse200ApplicationJSONType - > = z.nativeEnum(CreateProjectHasProjectsResponse200ApplicationJSONType); -/** @internal */ -export const CreateProjectHasProjectsResponse200ApplicationJSONType$outboundSchema: - z.ZodNativeEnum< - typeof CreateProjectHasProjectsResponse200ApplicationJSONType - > = CreateProjectHasProjectsResponse200ApplicationJSONType$inboundSchema; - /** @internal */ export const CreateProjectHasKey$inboundSchema: z.ZodNativeEnum< typeof CreateProjectHasKey @@ -10291,7 +9696,7 @@ export const CreateProjectHasProjectsResponse1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: CreateProjectHasProjectsResponse200ApplicationJSONType$inboundSchema, + type: z.literal("header"), key: CreateProjectHasKey$inboundSchema, value: z.lazy(() => CreateProjectHasProjectsResponse200ApplicationJSONValue$inboundSchema @@ -10299,7 +9704,7 @@ export const CreateProjectHasProjectsResponse1$inboundSchema: z.ZodType< }); /** @internal */ export type CreateProjectHasProjectsResponse1$Outbound = { - type: string; + type: "header"; key: string; value: CreateProjectHasProjectsResponse200ApplicationJSONValue$Outbound; }; @@ -10310,7 +9715,7 @@ export const CreateProjectHasProjectsResponse1$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectHasProjectsResponse1 > = z.object({ - type: CreateProjectHasProjectsResponse200ApplicationJSONType$outboundSchema, + type: z.literal("header"), key: CreateProjectHasKey$outboundSchema, value: z.lazy(() => CreateProjectHasProjectsResponse200ApplicationJSONValue$outboundSchema @@ -10574,7 +9979,7 @@ export const CreateProjectBlockHistory3$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - action: CreateProjectBlockHistoryProjectsResponseAction$inboundSchema, + action: z.literal("route-blocked"), route: z.union([ z.lazy(() => CreateProjectRoute1$inboundSchema), z.lazy(() => CreateProjectRoute2$inboundSchema), @@ -10588,7 +9993,7 @@ export const CreateProjectBlockHistory3$inboundSchema: z.ZodType< }); /** @internal */ export type CreateProjectBlockHistory3$Outbound = { - action: string; + action: "route-blocked"; route: CreateProjectRoute1$Outbound | CreateProjectRoute2$Outbound; reason: string; createdAt: number; @@ -10604,7 +10009,7 @@ export const CreateProjectBlockHistory3$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectBlockHistory3 > = z.object({ - action: CreateProjectBlockHistoryProjectsResponseAction$outboundSchema, + action: z.literal("route-blocked"), route: z.union([ z.lazy(() => CreateProjectRoute1$outboundSchema), z.lazy(() => CreateProjectRoute2$outboundSchema), @@ -10634,22 +10039,13 @@ export function createProjectBlockHistory3FromJSON( ); } -/** @internal */ -export const CreateProjectBlockHistoryProjectsAction$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(CreateProjectBlockHistoryProjectsAction); -/** @internal */ -export const CreateProjectBlockHistoryProjectsAction$outboundSchema: - z.ZodNativeEnum = - CreateProjectBlockHistoryProjectsAction$inboundSchema; - /** @internal */ export const CreateProjectBlockHistory2$inboundSchema: z.ZodType< CreateProjectBlockHistory2, z.ZodTypeDef, unknown > = z.object({ - action: CreateProjectBlockHistoryProjectsAction$inboundSchema, + action: z.literal("unblocked"), createdAt: z.number(), caseId: z.string().optional(), actor: z.string().optional(), @@ -10658,7 +10054,7 @@ export const CreateProjectBlockHistory2$inboundSchema: z.ZodType< }); /** @internal */ export type CreateProjectBlockHistory2$Outbound = { - action: string; + action: "unblocked"; createdAt: number; caseId?: string | undefined; actor?: string | undefined; @@ -10672,7 +10068,7 @@ export const CreateProjectBlockHistory2$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectBlockHistory2 > = z.object({ - action: CreateProjectBlockHistoryProjectsAction$outboundSchema, + action: z.literal("unblocked"), createdAt: z.number(), caseId: z.string().optional(), actor: z.string().optional(), @@ -10697,22 +10093,13 @@ export function createProjectBlockHistory2FromJSON( ); } -/** @internal */ -export const CreateProjectBlockHistoryAction$inboundSchema: z.ZodNativeEnum< - typeof CreateProjectBlockHistoryAction -> = z.nativeEnum(CreateProjectBlockHistoryAction); -/** @internal */ -export const CreateProjectBlockHistoryAction$outboundSchema: z.ZodNativeEnum< - typeof CreateProjectBlockHistoryAction -> = CreateProjectBlockHistoryAction$inboundSchema; - /** @internal */ export const CreateProjectBlockHistory1$inboundSchema: z.ZodType< CreateProjectBlockHistory1, z.ZodTypeDef, unknown > = z.object({ - action: CreateProjectBlockHistoryAction$inboundSchema, + action: z.literal("blocked"), reason: z.string(), statusCode: z.number(), createdAt: z.number(), @@ -10723,7 +10110,7 @@ export const CreateProjectBlockHistory1$inboundSchema: z.ZodType< }); /** @internal */ export type CreateProjectBlockHistory1$Outbound = { - action: string; + action: "blocked"; reason: string; statusCode: number; createdAt: number; @@ -10739,7 +10126,7 @@ export const CreateProjectBlockHistory1$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectBlockHistory1 > = z.object({ - action: CreateProjectBlockHistoryAction$outboundSchema, + action: z.literal("blocked"), reason: z.string(), statusCode: z.number(), createdAt: z.number(), @@ -10773,16 +10160,16 @@ export const CreateProjectBlockHistory$inboundSchema: z.ZodType< unknown > = z.union([ z.lazy(() => CreateProjectBlockHistory1$inboundSchema), + z.lazy(() => CreateProjectBlockHistory2$inboundSchema), z.lazy(() => CreateProjectBlockHistory3$inboundSchema), z.lazy(() => CreateProjectBlockHistory4$inboundSchema), - z.lazy(() => CreateProjectBlockHistory2$inboundSchema), ]); /** @internal */ export type CreateProjectBlockHistory$Outbound = | CreateProjectBlockHistory1$Outbound + | CreateProjectBlockHistory2$Outbound | CreateProjectBlockHistory3$Outbound - | CreateProjectBlockHistory4$Outbound - | CreateProjectBlockHistory2$Outbound; + | CreateProjectBlockHistory4$Outbound; /** @internal */ export const CreateProjectBlockHistory$outboundSchema: z.ZodType< @@ -10791,9 +10178,9 @@ export const CreateProjectBlockHistory$outboundSchema: z.ZodType< CreateProjectBlockHistory > = z.union([ z.lazy(() => CreateProjectBlockHistory1$outboundSchema), + z.lazy(() => CreateProjectBlockHistory2$outboundSchema), z.lazy(() => CreateProjectBlockHistory3$outboundSchema), z.lazy(() => CreateProjectBlockHistory4$outboundSchema), - z.lazy(() => CreateProjectBlockHistory2$outboundSchema), ]); export function createProjectBlockHistoryToJSON( @@ -10826,9 +10213,9 @@ export const CreateProjectAbuse$inboundSchema: z.ZodType< blockHistory: z.array( z.union([ z.lazy(() => CreateProjectBlockHistory1$inboundSchema), + z.lazy(() => CreateProjectBlockHistory2$inboundSchema), z.lazy(() => CreateProjectBlockHistory3$inboundSchema), z.lazy(() => CreateProjectBlockHistory4$inboundSchema), - z.lazy(() => CreateProjectBlockHistory2$inboundSchema), ]), ).optional(), interstitial: z.boolean().optional(), @@ -10842,9 +10229,9 @@ export type CreateProjectAbuse$Outbound = { blockHistory?: | Array< | CreateProjectBlockHistory1$Outbound + | CreateProjectBlockHistory2$Outbound | CreateProjectBlockHistory3$Outbound | CreateProjectBlockHistory4$Outbound - | CreateProjectBlockHistory2$Outbound > | undefined; interstitial?: boolean | undefined; @@ -10863,9 +10250,9 @@ export const CreateProjectAbuse$outboundSchema: z.ZodType< blockHistory: z.array( z.union([ z.lazy(() => CreateProjectBlockHistory1$outboundSchema), + z.lazy(() => CreateProjectBlockHistory2$outboundSchema), z.lazy(() => CreateProjectBlockHistory3$outboundSchema), z.lazy(() => CreateProjectBlockHistory4$outboundSchema), - z.lazy(() => CreateProjectBlockHistory2$outboundSchema), ]), ).optional(), interstitial: z.boolean().optional(), @@ -10888,15 +10275,6 @@ export function createProjectAbuseFromJSON( ); } -/** @internal */ -export const CreateProjectHasProjectsType$inboundSchema: z.ZodNativeEnum< - typeof CreateProjectHasProjectsType -> = z.nativeEnum(CreateProjectHasProjectsType); -/** @internal */ -export const CreateProjectHasProjectsType$outboundSchema: z.ZodNativeEnum< - typeof CreateProjectHasProjectsType -> = CreateProjectHasProjectsType$inboundSchema; - /** @internal */ export const CreateProjectHasProjectsValue$inboundSchema: z.ZodType< CreateProjectHasProjectsValue, @@ -10944,12 +10322,12 @@ export const CreateProjectHas2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: CreateProjectHasProjectsType$inboundSchema, + type: z.literal("host"), value: z.lazy(() => CreateProjectHasProjectsValue$inboundSchema), }); /** @internal */ export type CreateProjectHas2$Outbound = { - type: string; + type: "host"; value: CreateProjectHasProjectsValue$Outbound; }; @@ -10959,7 +10337,7 @@ export const CreateProjectHas2$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectHas2 > = z.object({ - type: CreateProjectHasProjectsType$outboundSchema, + type: z.literal("host"), value: z.lazy(() => CreateProjectHasProjectsValue$outboundSchema), }); @@ -10980,15 +10358,6 @@ export function createProjectHas2FromJSON( ); } -/** @internal */ -export const CreateProjectHasType$inboundSchema: z.ZodNativeEnum< - typeof CreateProjectHasType -> = z.nativeEnum(CreateProjectHasType); -/** @internal */ -export const CreateProjectHasType$outboundSchema: z.ZodNativeEnum< - typeof CreateProjectHasType -> = CreateProjectHasType$inboundSchema; - /** @internal */ export const HasKey$inboundSchema: z.ZodNativeEnum = z .nativeEnum(HasKey); @@ -11041,13 +10410,13 @@ export const CreateProjectHas1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: CreateProjectHasType$inboundSchema, + type: z.literal("header"), key: HasKey$inboundSchema, value: z.lazy(() => CreateProjectHasValue$inboundSchema), }); /** @internal */ export type CreateProjectHas1$Outbound = { - type: string; + type: "header"; key: string; value: CreateProjectHasValue$Outbound; }; @@ -11058,7 +10427,7 @@ export const CreateProjectHas1$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectHas1 > = z.object({ - type: CreateProjectHasType$outboundSchema, + type: z.literal("header"), key: HasKey$outboundSchema, value: z.lazy(() => CreateProjectHasValue$outboundSchema), }); @@ -11587,11 +10956,11 @@ export const CreateProjectResponseBody$inboundSchema: z.ZodType< z.lazy(() => CreateProjectLatestDeployments$inboundSchema), ).optional(), link: z.union([ - z.lazy(() => CreateProjectLink4$inboundSchema), - z.lazy(() => CreateProjectLink5$inboundSchema), - z.lazy(() => CreateProjectLink3$inboundSchema), z.lazy(() => CreateProjectLink1$inboundSchema), z.lazy(() => CreateProjectLink2$inboundSchema), + z.lazy(() => CreateProjectLink3$inboundSchema), + z.lazy(() => CreateProjectLink4$inboundSchema), + z.lazy(() => CreateProjectLink5$inboundSchema), ]).optional(), microfrontends: z.union([ z.lazy(() => CreateProjectMicrofrontends1$inboundSchema), @@ -11730,11 +11099,11 @@ export type CreateProjectResponseBody$Outbound = { | Array | undefined; link?: - | CreateProjectLink4$Outbound - | CreateProjectLink5$Outbound - | CreateProjectLink3$Outbound | CreateProjectLink1$Outbound | CreateProjectLink2$Outbound + | CreateProjectLink3$Outbound + | CreateProjectLink4$Outbound + | CreateProjectLink5$Outbound | undefined; microfrontends?: | CreateProjectMicrofrontends1$Outbound @@ -11860,11 +11229,11 @@ export const CreateProjectResponseBody$outboundSchema: z.ZodType< z.lazy(() => CreateProjectLatestDeployments$outboundSchema), ).optional(), link: z.union([ - z.lazy(() => CreateProjectLink4$outboundSchema), - z.lazy(() => CreateProjectLink5$outboundSchema), - z.lazy(() => CreateProjectLink3$outboundSchema), z.lazy(() => CreateProjectLink1$outboundSchema), z.lazy(() => CreateProjectLink2$outboundSchema), + z.lazy(() => CreateProjectLink3$outboundSchema), + z.lazy(() => CreateProjectLink4$outboundSchema), + z.lazy(() => CreateProjectLink5$outboundSchema), ]).optional(), microfrontends: z.union([ z.lazy(() => CreateProjectMicrofrontends1$outboundSchema), diff --git a/src/models/editprojectenvop.ts b/src/models/editprojectenvop.ts index 6558961d..5e96c911 100644 --- a/src/models/editprojectenvop.ts +++ b/src/models/editprojectenvop.ts @@ -106,222 +106,85 @@ export type EditProjectEnvResponseBodyType = ClosedEnum< typeof EditProjectEnvResponseBodyType >; -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type = - { - FlagsConnectionString: "flags-connection-string", - } as const; -export type EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type = - ClosedEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type - >; - export type EditProjectEnvContentHint15 = { - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type; + type: "flags-connection-string"; projectId: string; }; -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type = - { - IntegrationStoreSecret: "integration-store-secret", - } as const; -export type EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type = - ClosedEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type - >; - export type EditProjectEnvContentHint14 = { - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; integrationConfigurationId: string; }; -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type = - { - PostgresUrlNoSsl: "postgres-url-no-ssl", - } as const; -export type EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type = - ClosedEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type - >; - export type EditProjectEnvContentHint13 = { - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type; + type: "postgres-url-no-ssl"; storeId: string; }; -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type = - { - PostgresDatabase: "postgres-database", - } as const; -export type EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type = - ClosedEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type - >; - export type EditProjectEnvContentHint12 = { - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type; + type: "postgres-database"; storeId: string; }; -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type = - { - PostgresPassword: "postgres-password", - } as const; -export type EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type = - ClosedEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type - >; - export type EditProjectEnvContentHint11 = { - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type; + type: "postgres-password"; storeId: string; }; -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type = - { - PostgresHost: "postgres-host", - } as const; -export type EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type = - ClosedEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type - >; - export type EditProjectEnvContentHint10 = { - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type; + type: "postgres-host"; storeId: string; }; -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type = - { - PostgresUser: "postgres-user", - } as const; -export type EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type = - ClosedEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type - >; - export type EditProjectEnvContentHint9 = { - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type; + type: "postgres-user"; storeId: string; }; -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type = - { - PostgresPrismaUrl: "postgres-prisma-url", - } as const; -export type EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type = - ClosedEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type - >; - export type EditProjectEnvContentHint8 = { - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type; + type: "postgres-prisma-url"; storeId: string; }; -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type = - { - PostgresUrlNonPooling: "postgres-url-non-pooling", - } as const; -export type EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type = - ClosedEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type - >; - export type EditProjectEnvContentHint7 = { - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type; + type: "postgres-url-non-pooling"; storeId: string; }; -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType = - { - PostgresUrl: "postgres-url", - } as const; -export type EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType = - ClosedEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType - >; - export type EditProjectEnvContentHint6 = { - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType; + type: "postgres-url"; storeId: string; }; -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONType = { - BlobReadWriteToken: "blob-read-write-token", -} as const; -export type EditProjectEnvContentHintProjectsResponse200ApplicationJSONType = - ClosedEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONType - >; - export type EditProjectEnvContentHint5 = { - type: EditProjectEnvContentHintProjectsResponse200ApplicationJSONType; + type: "blob-read-write-token"; storeId: string; }; -export const EditProjectEnvContentHintProjectsResponse200Type = { - RedisRestApiReadOnlyToken: "redis-rest-api-read-only-token", -} as const; -export type EditProjectEnvContentHintProjectsResponse200Type = ClosedEnum< - typeof EditProjectEnvContentHintProjectsResponse200Type ->; - export type EditProjectEnvContentHint4 = { - type: EditProjectEnvContentHintProjectsResponse200Type; + type: "redis-rest-api-read-only-token"; storeId: string; }; -export const EditProjectEnvContentHintProjectsResponseType = { - RedisRestApiToken: "redis-rest-api-token", -} as const; -export type EditProjectEnvContentHintProjectsResponseType = ClosedEnum< - typeof EditProjectEnvContentHintProjectsResponseType ->; - export type EditProjectEnvContentHint3 = { - type: EditProjectEnvContentHintProjectsResponseType; + type: "redis-rest-api-token"; storeId: string; }; -export const EditProjectEnvContentHintProjectsType = { - RedisRestApiUrl: "redis-rest-api-url", -} as const; -export type EditProjectEnvContentHintProjectsType = ClosedEnum< - typeof EditProjectEnvContentHintProjectsType ->; - export type EditProjectEnvContentHint2 = { - type: EditProjectEnvContentHintProjectsType; + type: "redis-rest-api-url"; storeId: string; }; -export const EditProjectEnvContentHintType = { - RedisUrl: "redis-url", -} as const; -export type EditProjectEnvContentHintType = ClosedEnum< - typeof EditProjectEnvContentHintType ->; - export type EditProjectEnvContentHint1 = { - type: EditProjectEnvContentHintType; + type: "redis-url"; storeId: string; }; export type EditProjectEnvResponseBodyContentHint = - | EditProjectEnvContentHint14 | EditProjectEnvContentHint1 | EditProjectEnvContentHint2 | EditProjectEnvContentHint3 @@ -335,6 +198,7 @@ export type EditProjectEnvResponseBodyContentHint = | EditProjectEnvContentHint11 | EditProjectEnvContentHint12 | EditProjectEnvContentHint13 + | EditProjectEnvContentHint14 | EditProjectEnvContentHint15; export const EditProjectEnvResponseBodyProjectsType = { @@ -375,7 +239,6 @@ export type EditProjectEnvResponseBody1 = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | EditProjectEnvContentHint14 | EditProjectEnvContentHint1 | EditProjectEnvContentHint2 | EditProjectEnvContentHint3 @@ -389,6 +252,7 @@ export type EditProjectEnvResponseBody1 = { | EditProjectEnvContentHint11 | EditProjectEnvContentHint12 | EditProjectEnvContentHint13 + | EditProjectEnvContentHint14 | EditProjectEnvContentHint15 | null | undefined; @@ -632,33 +496,18 @@ export const EditProjectEnvResponseBodyType$outboundSchema: z.ZodNativeEnum< typeof EditProjectEnvResponseBodyType > = EditProjectEnvResponseBodyType$inboundSchema; -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type$inboundSchema: - z.ZodNativeEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type - > = z.nativeEnum( - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type, - ); -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type$outboundSchema: - z.ZodNativeEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type - > = - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type$inboundSchema; - /** @internal */ export const EditProjectEnvContentHint15$inboundSchema: z.ZodType< EditProjectEnvContentHint15, z.ZodTypeDef, unknown > = z.object({ - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type$inboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); /** @internal */ export type EditProjectEnvContentHint15$Outbound = { - type: string; + type: "flags-connection-string"; projectId: string; }; @@ -668,8 +517,7 @@ export const EditProjectEnvContentHint15$outboundSchema: z.ZodType< z.ZodTypeDef, EditProjectEnvContentHint15 > = z.object({ - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type$outboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); @@ -692,28 +540,13 @@ export function editProjectEnvContentHint15FromJSON( ); } -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type$inboundSchema: - z.ZodNativeEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type - > = z.nativeEnum( - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type, - ); -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type$outboundSchema: - z.ZodNativeEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type - > = - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type$inboundSchema; - /** @internal */ export const EditProjectEnvContentHint14$inboundSchema: z.ZodType< EditProjectEnvContentHint14, z.ZodTypeDef, unknown > = z.object({ - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type$inboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -721,7 +554,7 @@ export const EditProjectEnvContentHint14$inboundSchema: z.ZodType< }); /** @internal */ export type EditProjectEnvContentHint14$Outbound = { - type: string; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; @@ -734,8 +567,7 @@ export const EditProjectEnvContentHint14$outboundSchema: z.ZodType< z.ZodTypeDef, EditProjectEnvContentHint14 > = z.object({ - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type$outboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -761,33 +593,18 @@ export function editProjectEnvContentHint14FromJSON( ); } -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type$inboundSchema: - z.ZodNativeEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type - > = z.nativeEnum( - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type, - ); -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type$outboundSchema: - z.ZodNativeEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type - > = - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type$inboundSchema; - /** @internal */ export const EditProjectEnvContentHint13$inboundSchema: z.ZodType< EditProjectEnvContentHint13, z.ZodTypeDef, unknown > = z.object({ - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type$inboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); /** @internal */ export type EditProjectEnvContentHint13$Outbound = { - type: string; + type: "postgres-url-no-ssl"; storeId: string; }; @@ -797,8 +614,7 @@ export const EditProjectEnvContentHint13$outboundSchema: z.ZodType< z.ZodTypeDef, EditProjectEnvContentHint13 > = z.object({ - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type$outboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); @@ -821,33 +637,18 @@ export function editProjectEnvContentHint13FromJSON( ); } -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type$inboundSchema: - z.ZodNativeEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type - > = z.nativeEnum( - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type, - ); -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type$outboundSchema: - z.ZodNativeEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type - > = - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type$inboundSchema; - /** @internal */ export const EditProjectEnvContentHint12$inboundSchema: z.ZodType< EditProjectEnvContentHint12, z.ZodTypeDef, unknown > = z.object({ - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type$inboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); /** @internal */ export type EditProjectEnvContentHint12$Outbound = { - type: string; + type: "postgres-database"; storeId: string; }; @@ -857,8 +658,7 @@ export const EditProjectEnvContentHint12$outboundSchema: z.ZodType< z.ZodTypeDef, EditProjectEnvContentHint12 > = z.object({ - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type$outboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); @@ -881,33 +681,18 @@ export function editProjectEnvContentHint12FromJSON( ); } -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type$inboundSchema: - z.ZodNativeEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type - > = z.nativeEnum( - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type, - ); -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type$outboundSchema: - z.ZodNativeEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type - > = - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type$inboundSchema; - /** @internal */ export const EditProjectEnvContentHint11$inboundSchema: z.ZodType< EditProjectEnvContentHint11, z.ZodTypeDef, unknown > = z.object({ - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type$inboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); /** @internal */ export type EditProjectEnvContentHint11$Outbound = { - type: string; + type: "postgres-password"; storeId: string; }; @@ -917,8 +702,7 @@ export const EditProjectEnvContentHint11$outboundSchema: z.ZodType< z.ZodTypeDef, EditProjectEnvContentHint11 > = z.object({ - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type$outboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); @@ -941,33 +725,18 @@ export function editProjectEnvContentHint11FromJSON( ); } -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type$inboundSchema: - z.ZodNativeEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type - > = z.nativeEnum( - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type, - ); -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type$outboundSchema: - z.ZodNativeEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type - > = - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type$inboundSchema; - /** @internal */ export const EditProjectEnvContentHint10$inboundSchema: z.ZodType< EditProjectEnvContentHint10, z.ZodTypeDef, unknown > = z.object({ - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type$inboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); /** @internal */ export type EditProjectEnvContentHint10$Outbound = { - type: string; + type: "postgres-host"; storeId: string; }; @@ -977,8 +746,7 @@ export const EditProjectEnvContentHint10$outboundSchema: z.ZodType< z.ZodTypeDef, EditProjectEnvContentHint10 > = z.object({ - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type$outboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); @@ -1001,33 +769,18 @@ export function editProjectEnvContentHint10FromJSON( ); } -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type$inboundSchema: - z.ZodNativeEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type - > = z.nativeEnum( - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type, - ); -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type$outboundSchema: - z.ZodNativeEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type - > = - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type$inboundSchema; - /** @internal */ export const EditProjectEnvContentHint9$inboundSchema: z.ZodType< EditProjectEnvContentHint9, z.ZodTypeDef, unknown > = z.object({ - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type$inboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); /** @internal */ export type EditProjectEnvContentHint9$Outbound = { - type: string; + type: "postgres-user"; storeId: string; }; @@ -1037,8 +790,7 @@ export const EditProjectEnvContentHint9$outboundSchema: z.ZodType< z.ZodTypeDef, EditProjectEnvContentHint9 > = z.object({ - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type$outboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); @@ -1059,33 +811,18 @@ export function editProjectEnvContentHint9FromJSON( ); } -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type$inboundSchema: - z.ZodNativeEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type - > = z.nativeEnum( - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type, - ); -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type$outboundSchema: - z.ZodNativeEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type - > = - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type$inboundSchema; - /** @internal */ export const EditProjectEnvContentHint8$inboundSchema: z.ZodType< EditProjectEnvContentHint8, z.ZodTypeDef, unknown > = z.object({ - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type$inboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); /** @internal */ export type EditProjectEnvContentHint8$Outbound = { - type: string; + type: "postgres-prisma-url"; storeId: string; }; @@ -1095,8 +832,7 @@ export const EditProjectEnvContentHint8$outboundSchema: z.ZodType< z.ZodTypeDef, EditProjectEnvContentHint8 > = z.object({ - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type$outboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); @@ -1117,33 +853,18 @@ export function editProjectEnvContentHint8FromJSON( ); } -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type$inboundSchema: - z.ZodNativeEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type - > = z.nativeEnum( - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type, - ); -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type$outboundSchema: - z.ZodNativeEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type - > = - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type$inboundSchema; - /** @internal */ export const EditProjectEnvContentHint7$inboundSchema: z.ZodType< EditProjectEnvContentHint7, z.ZodTypeDef, unknown > = z.object({ - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type$inboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); /** @internal */ export type EditProjectEnvContentHint7$Outbound = { - type: string; + type: "postgres-url-non-pooling"; storeId: string; }; @@ -1153,8 +874,7 @@ export const EditProjectEnvContentHint7$outboundSchema: z.ZodType< z.ZodTypeDef, EditProjectEnvContentHint7 > = z.object({ - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type$outboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); @@ -1175,33 +895,18 @@ export function editProjectEnvContentHint7FromJSON( ); } -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema: - z.ZodNativeEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType - > = z.nativeEnum( - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType, - ); -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema: - z.ZodNativeEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType - > = - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema; - /** @internal */ export const EditProjectEnvContentHint6$inboundSchema: z.ZodType< EditProjectEnvContentHint6, z.ZodTypeDef, unknown > = z.object({ - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); /** @internal */ export type EditProjectEnvContentHint6$Outbound = { - type: string; + type: "postgres-url"; storeId: string; }; @@ -1211,8 +916,7 @@ export const EditProjectEnvContentHint6$outboundSchema: z.ZodType< z.ZodTypeDef, EditProjectEnvContentHint6 > = z.object({ - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); @@ -1233,33 +937,18 @@ export function editProjectEnvContentHint6FromJSON( ); } -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONType$inboundSchema: - z.ZodNativeEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONType - > = z.nativeEnum( - EditProjectEnvContentHintProjectsResponse200ApplicationJSONType, - ); -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200ApplicationJSONType$outboundSchema: - z.ZodNativeEnum< - typeof EditProjectEnvContentHintProjectsResponse200ApplicationJSONType - > = - EditProjectEnvContentHintProjectsResponse200ApplicationJSONType$inboundSchema; - /** @internal */ export const EditProjectEnvContentHint5$inboundSchema: z.ZodType< EditProjectEnvContentHint5, z.ZodTypeDef, unknown > = z.object({ - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONType$inboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); /** @internal */ export type EditProjectEnvContentHint5$Outbound = { - type: string; + type: "blob-read-write-token"; storeId: string; }; @@ -1269,8 +958,7 @@ export const EditProjectEnvContentHint5$outboundSchema: z.ZodType< z.ZodTypeDef, EditProjectEnvContentHint5 > = z.object({ - type: - EditProjectEnvContentHintProjectsResponse200ApplicationJSONType$outboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); @@ -1291,27 +979,18 @@ export function editProjectEnvContentHint5FromJSON( ); } -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200Type$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(EditProjectEnvContentHintProjectsResponse200Type); -/** @internal */ -export const EditProjectEnvContentHintProjectsResponse200Type$outboundSchema: - z.ZodNativeEnum = - EditProjectEnvContentHintProjectsResponse200Type$inboundSchema; - /** @internal */ export const EditProjectEnvContentHint4$inboundSchema: z.ZodType< EditProjectEnvContentHint4, z.ZodTypeDef, unknown > = z.object({ - type: EditProjectEnvContentHintProjectsResponse200Type$inboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); /** @internal */ export type EditProjectEnvContentHint4$Outbound = { - type: string; + type: "redis-rest-api-read-only-token"; storeId: string; }; @@ -1321,7 +1000,7 @@ export const EditProjectEnvContentHint4$outboundSchema: z.ZodType< z.ZodTypeDef, EditProjectEnvContentHint4 > = z.object({ - type: EditProjectEnvContentHintProjectsResponse200Type$outboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); @@ -1342,27 +1021,18 @@ export function editProjectEnvContentHint4FromJSON( ); } -/** @internal */ -export const EditProjectEnvContentHintProjectsResponseType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(EditProjectEnvContentHintProjectsResponseType); -/** @internal */ -export const EditProjectEnvContentHintProjectsResponseType$outboundSchema: - z.ZodNativeEnum = - EditProjectEnvContentHintProjectsResponseType$inboundSchema; - /** @internal */ export const EditProjectEnvContentHint3$inboundSchema: z.ZodType< EditProjectEnvContentHint3, z.ZodTypeDef, unknown > = z.object({ - type: EditProjectEnvContentHintProjectsResponseType$inboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); /** @internal */ export type EditProjectEnvContentHint3$Outbound = { - type: string; + type: "redis-rest-api-token"; storeId: string; }; @@ -1372,7 +1042,7 @@ export const EditProjectEnvContentHint3$outboundSchema: z.ZodType< z.ZodTypeDef, EditProjectEnvContentHint3 > = z.object({ - type: EditProjectEnvContentHintProjectsResponseType$outboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); @@ -1393,28 +1063,18 @@ export function editProjectEnvContentHint3FromJSON( ); } -/** @internal */ -export const EditProjectEnvContentHintProjectsType$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - EditProjectEnvContentHintProjectsType, - ); -/** @internal */ -export const EditProjectEnvContentHintProjectsType$outboundSchema: - z.ZodNativeEnum = - EditProjectEnvContentHintProjectsType$inboundSchema; - /** @internal */ export const EditProjectEnvContentHint2$inboundSchema: z.ZodType< EditProjectEnvContentHint2, z.ZodTypeDef, unknown > = z.object({ - type: EditProjectEnvContentHintProjectsType$inboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); /** @internal */ export type EditProjectEnvContentHint2$Outbound = { - type: string; + type: "redis-rest-api-url"; storeId: string; }; @@ -1424,7 +1084,7 @@ export const EditProjectEnvContentHint2$outboundSchema: z.ZodType< z.ZodTypeDef, EditProjectEnvContentHint2 > = z.object({ - type: EditProjectEnvContentHintProjectsType$outboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); @@ -1445,27 +1105,18 @@ export function editProjectEnvContentHint2FromJSON( ); } -/** @internal */ -export const EditProjectEnvContentHintType$inboundSchema: z.ZodNativeEnum< - typeof EditProjectEnvContentHintType -> = z.nativeEnum(EditProjectEnvContentHintType); -/** @internal */ -export const EditProjectEnvContentHintType$outboundSchema: z.ZodNativeEnum< - typeof EditProjectEnvContentHintType -> = EditProjectEnvContentHintType$inboundSchema; - /** @internal */ export const EditProjectEnvContentHint1$inboundSchema: z.ZodType< EditProjectEnvContentHint1, z.ZodTypeDef, unknown > = z.object({ - type: EditProjectEnvContentHintType$inboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); /** @internal */ export type EditProjectEnvContentHint1$Outbound = { - type: string; + type: "redis-url"; storeId: string; }; @@ -1475,7 +1126,7 @@ export const EditProjectEnvContentHint1$outboundSchema: z.ZodType< z.ZodTypeDef, EditProjectEnvContentHint1 > = z.object({ - type: EditProjectEnvContentHintType$outboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); @@ -1502,7 +1153,6 @@ export const EditProjectEnvResponseBodyContentHint$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => EditProjectEnvContentHint14$inboundSchema), z.lazy(() => EditProjectEnvContentHint1$inboundSchema), z.lazy(() => EditProjectEnvContentHint2$inboundSchema), z.lazy(() => EditProjectEnvContentHint3$inboundSchema), @@ -1516,11 +1166,11 @@ export const EditProjectEnvResponseBodyContentHint$inboundSchema: z.ZodType< z.lazy(() => EditProjectEnvContentHint11$inboundSchema), z.lazy(() => EditProjectEnvContentHint12$inboundSchema), z.lazy(() => EditProjectEnvContentHint13$inboundSchema), + z.lazy(() => EditProjectEnvContentHint14$inboundSchema), z.lazy(() => EditProjectEnvContentHint15$inboundSchema), ]); /** @internal */ export type EditProjectEnvResponseBodyContentHint$Outbound = - | EditProjectEnvContentHint14$Outbound | EditProjectEnvContentHint1$Outbound | EditProjectEnvContentHint2$Outbound | EditProjectEnvContentHint3$Outbound @@ -1534,6 +1184,7 @@ export type EditProjectEnvResponseBodyContentHint$Outbound = | EditProjectEnvContentHint11$Outbound | EditProjectEnvContentHint12$Outbound | EditProjectEnvContentHint13$Outbound + | EditProjectEnvContentHint14$Outbound | EditProjectEnvContentHint15$Outbound; /** @internal */ @@ -1542,7 +1193,6 @@ export const EditProjectEnvResponseBodyContentHint$outboundSchema: z.ZodType< z.ZodTypeDef, EditProjectEnvResponseBodyContentHint > = z.union([ - z.lazy(() => EditProjectEnvContentHint14$outboundSchema), z.lazy(() => EditProjectEnvContentHint1$outboundSchema), z.lazy(() => EditProjectEnvContentHint2$outboundSchema), z.lazy(() => EditProjectEnvContentHint3$outboundSchema), @@ -1556,6 +1206,7 @@ export const EditProjectEnvResponseBodyContentHint$outboundSchema: z.ZodType< z.lazy(() => EditProjectEnvContentHint11$outboundSchema), z.lazy(() => EditProjectEnvContentHint12$outboundSchema), z.lazy(() => EditProjectEnvContentHint13$outboundSchema), + z.lazy(() => EditProjectEnvContentHint14$outboundSchema), z.lazy(() => EditProjectEnvContentHint15$outboundSchema), ]); @@ -1666,7 +1317,6 @@ export const EditProjectEnvResponseBody1$inboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => EditProjectEnvContentHint14$inboundSchema), z.lazy(() => EditProjectEnvContentHint1$inboundSchema), z.lazy(() => EditProjectEnvContentHint2$inboundSchema), z.lazy(() => EditProjectEnvContentHint3$inboundSchema), @@ -1680,6 +1330,7 @@ export const EditProjectEnvResponseBody1$inboundSchema: z.ZodType< z.lazy(() => EditProjectEnvContentHint11$inboundSchema), z.lazy(() => EditProjectEnvContentHint12$inboundSchema), z.lazy(() => EditProjectEnvContentHint13$inboundSchema), + z.lazy(() => EditProjectEnvContentHint14$inboundSchema), z.lazy(() => EditProjectEnvContentHint15$inboundSchema), ]), ).optional(), @@ -1707,7 +1358,6 @@ export type EditProjectEnvResponseBody1$Outbound = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | EditProjectEnvContentHint14$Outbound | EditProjectEnvContentHint1$Outbound | EditProjectEnvContentHint2$Outbound | EditProjectEnvContentHint3$Outbound @@ -1721,6 +1371,7 @@ export type EditProjectEnvResponseBody1$Outbound = { | EditProjectEnvContentHint11$Outbound | EditProjectEnvContentHint12$Outbound | EditProjectEnvContentHint13$Outbound + | EditProjectEnvContentHint14$Outbound | EditProjectEnvContentHint15$Outbound | null | undefined; @@ -1756,7 +1407,6 @@ export const EditProjectEnvResponseBody1$outboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => EditProjectEnvContentHint14$outboundSchema), z.lazy(() => EditProjectEnvContentHint1$outboundSchema), z.lazy(() => EditProjectEnvContentHint2$outboundSchema), z.lazy(() => EditProjectEnvContentHint3$outboundSchema), @@ -1770,6 +1420,7 @@ export const EditProjectEnvResponseBody1$outboundSchema: z.ZodType< z.lazy(() => EditProjectEnvContentHint11$outboundSchema), z.lazy(() => EditProjectEnvContentHint12$outboundSchema), z.lazy(() => EditProjectEnvContentHint13$outboundSchema), + z.lazy(() => EditProjectEnvContentHint14$outboundSchema), z.lazy(() => EditProjectEnvContentHint15$outboundSchema), ]), ).optional(), diff --git a/src/models/filterprojectenvsop.ts b/src/models/filterprojectenvsop.ts index 34b9c7d3..1d7e25ea 100644 --- a/src/models/filterprojectenvsop.ts +++ b/src/models/filterprojectenvsop.ts @@ -98,236 +98,85 @@ export type FilterProjectEnvsResponseBodyProjectsResponse200Type = ClosedEnum< typeof FilterProjectEnvsResponseBodyProjectsResponse200Type >; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs15Type = - { - FlagsConnectionString: "flags-connection-string", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs15Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs15Type - >; - export type FilterProjectEnvsContentHintProjectsResponse15 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs15Type; + type: "flags-connection-string"; projectId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs14Type = - { - IntegrationStoreSecret: "integration-store-secret", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs14Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs14Type - >; - export type FilterProjectEnvsContentHintProjectsResponse14 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs14Type; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; integrationConfigurationId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs13Type = - { - PostgresUrlNoSsl: "postgres-url-no-ssl", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs13Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs13Type - >; - export type FilterProjectEnvsContentHintProjectsResponse13 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs13Type; + type: "postgres-url-no-ssl"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs12Type = - { - PostgresDatabase: "postgres-database", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs12Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs12Type - >; - export type FilterProjectEnvsContentHintProjectsResponse12 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs12Type; + type: "postgres-database"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs11Type = - { - PostgresPassword: "postgres-password", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs11Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs11Type - >; - export type FilterProjectEnvsContentHintProjectsResponse11 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs11Type; + type: "postgres-password"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs10Type = - { - PostgresHost: "postgres-host", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs10Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs10Type - >; - export type FilterProjectEnvsContentHintProjectsResponse10 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs10Type; + type: "postgres-host"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs9Type = - { - PostgresUser: "postgres-user", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs9Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs9Type - >; - export type FilterProjectEnvsContentHintProjectsResponse9 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs9Type; + type: "postgres-user"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs8Type = - { - PostgresPrismaUrl: "postgres-prisma-url", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs8Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs8Type - >; - export type FilterProjectEnvsContentHintProjectsResponse8 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs8Type; + type: "postgres-prisma-url"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs7Type = - { - PostgresUrlNonPooling: "postgres-url-non-pooling", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs7Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs7Type - >; - export type FilterProjectEnvsContentHintProjectsResponse7 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs7Type; + type: "postgres-url-non-pooling"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs6Type = - { - PostgresUrl: "postgres-url", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs6Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs6Type - >; - export type FilterProjectEnvsContentHintProjectsResponse6 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs6Type; + type: "postgres-url"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs5Type = - { - BlobReadWriteToken: "blob-read-write-token", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs5Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs5Type - >; - export type FilterProjectEnvsContentHintProjectsResponse5 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs5Type; + type: "blob-read-write-token"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs4Type = - { - RedisRestApiReadOnlyToken: "redis-rest-api-read-only-token", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs4Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs4Type - >; - export type FilterProjectEnvsContentHintProjectsResponse4 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs4Type; + type: "redis-rest-api-read-only-token"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs3Type = - { - RedisRestApiToken: "redis-rest-api-token", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs3Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs3Type - >; - export type FilterProjectEnvsContentHintProjectsResponse3 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs3Type; + type: "redis-rest-api-token"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3EnvsType = - { - RedisRestApiUrl: "redis-rest-api-url", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3EnvsType = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3EnvsType - >; - export type FilterProjectEnvsContentHintProjectsResponse2 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3EnvsType; + type: "redis-rest-api-url"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Type = - { - RedisUrl: "redis-url", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Type - >; - export type FilterProjectEnvsContentHintProjectsResponse1 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Type; + type: "redis-url"; storeId: string; }; export type FilterProjectEnvsResponseBodyProjectsContentHint = - | FilterProjectEnvsContentHintProjectsResponse14 | FilterProjectEnvsContentHintProjectsResponse1 | FilterProjectEnvsContentHintProjectsResponse2 | FilterProjectEnvsContentHintProjectsResponse3 @@ -341,6 +190,7 @@ export type FilterProjectEnvsResponseBodyProjectsContentHint = | FilterProjectEnvsContentHintProjectsResponse11 | FilterProjectEnvsContentHintProjectsResponse12 | FilterProjectEnvsContentHintProjectsResponse13 + | FilterProjectEnvsContentHintProjectsResponse14 | FilterProjectEnvsContentHintProjectsResponse15; export const FilterProjectEnvsResponseBodyProjectsResponse200ApplicationJson3Type = @@ -387,7 +237,6 @@ export type ResponseBodyEnvs = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | FilterProjectEnvsContentHintProjectsResponse14 | FilterProjectEnvsContentHintProjectsResponse1 | FilterProjectEnvsContentHintProjectsResponse2 | FilterProjectEnvsContentHintProjectsResponse3 @@ -401,6 +250,7 @@ export type ResponseBodyEnvs = { | FilterProjectEnvsContentHintProjectsResponse11 | FilterProjectEnvsContentHintProjectsResponse12 | FilterProjectEnvsContentHintProjectsResponse13 + | FilterProjectEnvsContentHintProjectsResponse14 | FilterProjectEnvsContentHintProjectsResponse15 | null | undefined; @@ -456,236 +306,85 @@ export type FilterProjectEnvsResponseBodyProjectsResponseType = ClosedEnum< typeof FilterProjectEnvsResponseBodyProjectsResponseType >; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs15Type = - { - FlagsConnectionString: "flags-connection-string", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs15Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs15Type - >; - export type FilterProjectEnvsContentHintProjects15 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs15Type; + type: "flags-connection-string"; projectId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs14Type = - { - IntegrationStoreSecret: "integration-store-secret", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs14Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs14Type - >; - export type FilterProjectEnvsContentHintProjects14 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs14Type; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; integrationConfigurationId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs13Type = - { - PostgresUrlNoSsl: "postgres-url-no-ssl", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs13Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs13Type - >; - export type FilterProjectEnvsContentHintProjects13 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs13Type; + type: "postgres-url-no-ssl"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs12Type = - { - PostgresDatabase: "postgres-database", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs12Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs12Type - >; - export type FilterProjectEnvsContentHintProjects12 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs12Type; + type: "postgres-database"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs11Type = - { - PostgresPassword: "postgres-password", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs11Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs11Type - >; - export type FilterProjectEnvsContentHintProjects11 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs11Type; + type: "postgres-password"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs10Type = - { - PostgresHost: "postgres-host", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs10Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs10Type - >; - export type FilterProjectEnvsContentHintProjects10 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs10Type; + type: "postgres-host"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs9Type = - { - PostgresUser: "postgres-user", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs9Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs9Type - >; - export type FilterProjectEnvsContentHintProjects9 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs9Type; + type: "postgres-user"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs8Type = - { - PostgresPrismaUrl: "postgres-prisma-url", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs8Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs8Type - >; - export type FilterProjectEnvsContentHintProjects8 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs8Type; + type: "postgres-prisma-url"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs7Type = - { - PostgresUrlNonPooling: "postgres-url-non-pooling", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs7Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs7Type - >; - export type FilterProjectEnvsContentHintProjects7 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs7Type; + type: "postgres-url-non-pooling"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs6Type = - { - PostgresUrl: "postgres-url", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs6Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs6Type - >; - export type FilterProjectEnvsContentHintProjects6 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs6Type; + type: "postgres-url"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs5Type = - { - BlobReadWriteToken: "blob-read-write-token", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs5Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs5Type - >; - export type FilterProjectEnvsContentHintProjects5 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs5Type; + type: "blob-read-write-token"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs4Type = - { - RedisRestApiReadOnlyToken: "redis-rest-api-read-only-token", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs4Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs4Type - >; - export type FilterProjectEnvsContentHintProjects4 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs4Type; + type: "redis-rest-api-read-only-token"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs3Type = - { - RedisRestApiToken: "redis-rest-api-token", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs3Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs3Type - >; - export type FilterProjectEnvsContentHintProjects3 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs3Type; + type: "redis-rest-api-token"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2EnvsType = - { - RedisRestApiUrl: "redis-rest-api-url", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2EnvsType = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2EnvsType - >; - export type FilterProjectEnvsContentHintProjects2 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2EnvsType; + type: "redis-rest-api-url"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Type = - { - RedisUrl: "redis-url", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Type - >; - export type FilterProjectEnvsContentHintProjects1 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Type; + type: "redis-url"; storeId: string; }; export type FilterProjectEnvsResponseBodyContentHint = - | FilterProjectEnvsContentHintProjects14 | FilterProjectEnvsContentHintProjects1 | FilterProjectEnvsContentHintProjects2 | FilterProjectEnvsContentHintProjects3 @@ -699,6 +398,7 @@ export type FilterProjectEnvsResponseBodyContentHint = | FilterProjectEnvsContentHintProjects11 | FilterProjectEnvsContentHintProjects12 | FilterProjectEnvsContentHintProjects13 + | FilterProjectEnvsContentHintProjects14 | FilterProjectEnvsContentHintProjects15; export const FilterProjectEnvsResponseBodyProjectsResponse200ApplicationJSONType = @@ -745,7 +445,6 @@ export type Envs = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | FilterProjectEnvsContentHintProjects14 | FilterProjectEnvsContentHintProjects1 | FilterProjectEnvsContentHintProjects2 | FilterProjectEnvsContentHintProjects3 @@ -759,6 +458,7 @@ export type Envs = { | FilterProjectEnvsContentHintProjects11 | FilterProjectEnvsContentHintProjects12 | FilterProjectEnvsContentHintProjects13 + | FilterProjectEnvsContentHintProjects14 | FilterProjectEnvsContentHintProjects15 | null | undefined; @@ -815,223 +515,85 @@ export type FilterProjectEnvsResponseBodyType = ClosedEnum< typeof FilterProjectEnvsResponseBodyType >; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody115Type = - { - FlagsConnectionString: "flags-connection-string", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody115Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody115Type - >; - export type FilterProjectEnvsContentHint15 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody115Type; + type: "flags-connection-string"; projectId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody114Type = - { - IntegrationStoreSecret: "integration-store-secret", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody114Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody114Type - >; - export type FilterProjectEnvsContentHint14 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody114Type; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; integrationConfigurationId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody113Type = - { - PostgresUrlNoSsl: "postgres-url-no-ssl", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody113Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody113Type - >; - export type FilterProjectEnvsContentHint13 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody113Type; + type: "postgres-url-no-ssl"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody112Type = - { - PostgresDatabase: "postgres-database", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody112Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody112Type - >; - export type FilterProjectEnvsContentHint12 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody112Type; + type: "postgres-database"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody111Type = - { - PostgresPassword: "postgres-password", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody111Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody111Type - >; - export type FilterProjectEnvsContentHint11 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody111Type; + type: "postgres-password"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody110Type = - { - PostgresHost: "postgres-host", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody110Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody110Type - >; - export type FilterProjectEnvsContentHint10 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody110Type; + type: "postgres-host"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody19Type = - { - PostgresUser: "postgres-user", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody19Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody19Type - >; - export type FilterProjectEnvsContentHint9 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody19Type; + type: "postgres-user"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody18Type = - { - PostgresPrismaUrl: "postgres-prisma-url", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody18Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody18Type - >; - export type FilterProjectEnvsContentHint8 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody18Type; + type: "postgres-prisma-url"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody1Type = - { - PostgresUrlNonPooling: "postgres-url-non-pooling", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody1Type = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody1Type - >; - export type FilterProjectEnvsContentHint7 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody1Type; + type: "postgres-url-non-pooling"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBodyType = - { - PostgresUrl: "postgres-url", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBodyType = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBodyType - >; - export type FilterProjectEnvsContentHint6 = { - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBodyType; + type: "postgres-url"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONType = - { - BlobReadWriteToken: "blob-read-write-token", - } as const; -export type FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONType = - ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONType - >; - export type FilterProjectEnvsContentHint5 = { - type: FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONType; + type: "blob-read-write-token"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponse200Type = { - RedisRestApiReadOnlyToken: "redis-rest-api-read-only-token", -} as const; -export type FilterProjectEnvsContentHintProjectsResponse200Type = ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200Type ->; - export type FilterProjectEnvsContentHint4 = { - type: FilterProjectEnvsContentHintProjectsResponse200Type; + type: "redis-rest-api-read-only-token"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsResponseType = { - RedisRestApiToken: "redis-rest-api-token", -} as const; -export type FilterProjectEnvsContentHintProjectsResponseType = ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsResponseType ->; - export type FilterProjectEnvsContentHint3 = { - type: FilterProjectEnvsContentHintProjectsResponseType; + type: "redis-rest-api-token"; storeId: string; }; -export const FilterProjectEnvsContentHintProjectsType = { - RedisRestApiUrl: "redis-rest-api-url", -} as const; -export type FilterProjectEnvsContentHintProjectsType = ClosedEnum< - typeof FilterProjectEnvsContentHintProjectsType ->; - export type FilterProjectEnvsContentHint2 = { - type: FilterProjectEnvsContentHintProjectsType; + type: "redis-rest-api-url"; storeId: string; }; -export const FilterProjectEnvsContentHintType = { - RedisUrl: "redis-url", -} as const; -export type FilterProjectEnvsContentHintType = ClosedEnum< - typeof FilterProjectEnvsContentHintType ->; - export type FilterProjectEnvsContentHint1 = { - type: FilterProjectEnvsContentHintType; + type: "redis-url"; storeId: string; }; export type ResponseBodyContentHint = - | FilterProjectEnvsContentHint14 | FilterProjectEnvsContentHint1 | FilterProjectEnvsContentHint2 | FilterProjectEnvsContentHint3 @@ -1045,6 +607,7 @@ export type ResponseBodyContentHint = | FilterProjectEnvsContentHint11 | FilterProjectEnvsContentHint12 | FilterProjectEnvsContentHint13 + | FilterProjectEnvsContentHint14 | FilterProjectEnvsContentHint15; export const FilterProjectEnvsResponseBodyProjectsType = { @@ -1089,7 +652,6 @@ export type FilterProjectEnvsResponseBody1 = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | FilterProjectEnvsContentHint14 | FilterProjectEnvsContentHint1 | FilterProjectEnvsContentHint2 | FilterProjectEnvsContentHint3 @@ -1103,6 +665,7 @@ export type FilterProjectEnvsResponseBody1 = { | FilterProjectEnvsContentHint11 | FilterProjectEnvsContentHint12 | FilterProjectEnvsContentHint13 + | FilterProjectEnvsContentHint14 | FilterProjectEnvsContentHint15 | null | undefined; @@ -1269,20 +832,6 @@ export const FilterProjectEnvsResponseBodyProjectsResponse200Type$outboundSchema z.ZodNativeEnum = FilterProjectEnvsResponseBodyProjectsResponse200Type$inboundSchema; -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs15Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs15Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs15Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs15Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs15Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs15Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjectsResponse15$inboundSchema: z.ZodType< @@ -1290,13 +839,12 @@ export const FilterProjectEnvsContentHintProjectsResponse15$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs15Type$inboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjectsResponse15$Outbound = { - type: string; + type: "flags-connection-string"; projectId: string; }; @@ -1307,8 +855,7 @@ export const FilterProjectEnvsContentHintProjectsResponse15$outboundSchema: z.ZodTypeDef, FilterProjectEnvsContentHintProjectsResponse15 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs15Type$outboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); @@ -1338,20 +885,6 @@ export function filterProjectEnvsContentHintProjectsResponse15FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs14Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs14Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs14Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs14Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs14Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs14Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjectsResponse14$inboundSchema: z.ZodType< @@ -1359,8 +892,7 @@ export const FilterProjectEnvsContentHintProjectsResponse14$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs14Type$inboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -1368,7 +900,7 @@ export const FilterProjectEnvsContentHintProjectsResponse14$inboundSchema: }); /** @internal */ export type FilterProjectEnvsContentHintProjectsResponse14$Outbound = { - type: string; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; @@ -1382,8 +914,7 @@ export const FilterProjectEnvsContentHintProjectsResponse14$outboundSchema: z.ZodTypeDef, FilterProjectEnvsContentHintProjectsResponse14 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs14Type$outboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -1416,20 +947,6 @@ export function filterProjectEnvsContentHintProjectsResponse14FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs13Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs13Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs13Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs13Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs13Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs13Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjectsResponse13$inboundSchema: z.ZodType< @@ -1437,13 +954,12 @@ export const FilterProjectEnvsContentHintProjectsResponse13$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs13Type$inboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjectsResponse13$Outbound = { - type: string; + type: "postgres-url-no-ssl"; storeId: string; }; @@ -1454,8 +970,7 @@ export const FilterProjectEnvsContentHintProjectsResponse13$outboundSchema: z.ZodTypeDef, FilterProjectEnvsContentHintProjectsResponse13 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs13Type$outboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); @@ -1485,20 +1000,6 @@ export function filterProjectEnvsContentHintProjectsResponse13FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs12Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs12Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs12Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs12Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs12Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs12Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjectsResponse12$inboundSchema: z.ZodType< @@ -1506,13 +1007,12 @@ export const FilterProjectEnvsContentHintProjectsResponse12$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs12Type$inboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjectsResponse12$Outbound = { - type: string; + type: "postgres-database"; storeId: string; }; @@ -1523,8 +1023,7 @@ export const FilterProjectEnvsContentHintProjectsResponse12$outboundSchema: z.ZodTypeDef, FilterProjectEnvsContentHintProjectsResponse12 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs12Type$outboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); @@ -1554,20 +1053,6 @@ export function filterProjectEnvsContentHintProjectsResponse12FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs11Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs11Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs11Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs11Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs11Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs11Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjectsResponse11$inboundSchema: z.ZodType< @@ -1575,13 +1060,12 @@ export const FilterProjectEnvsContentHintProjectsResponse11$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs11Type$inboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjectsResponse11$Outbound = { - type: string; + type: "postgres-password"; storeId: string; }; @@ -1592,8 +1076,7 @@ export const FilterProjectEnvsContentHintProjectsResponse11$outboundSchema: z.ZodTypeDef, FilterProjectEnvsContentHintProjectsResponse11 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs11Type$outboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); @@ -1623,20 +1106,6 @@ export function filterProjectEnvsContentHintProjectsResponse11FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs10Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs10Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs10Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs10Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs10Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs10Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjectsResponse10$inboundSchema: z.ZodType< @@ -1644,13 +1113,12 @@ export const FilterProjectEnvsContentHintProjectsResponse10$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs10Type$inboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjectsResponse10$Outbound = { - type: string; + type: "postgres-host"; storeId: string; }; @@ -1661,8 +1129,7 @@ export const FilterProjectEnvsContentHintProjectsResponse10$outboundSchema: z.ZodTypeDef, FilterProjectEnvsContentHintProjectsResponse10 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs10Type$outboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); @@ -1692,20 +1159,6 @@ export function filterProjectEnvsContentHintProjectsResponse10FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs9Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs9Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs9Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs9Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs9Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs9Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjectsResponse9$inboundSchema: z.ZodType< @@ -1713,13 +1166,12 @@ export const FilterProjectEnvsContentHintProjectsResponse9$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs9Type$inboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjectsResponse9$Outbound = { - type: string; + type: "postgres-user"; storeId: string; }; @@ -1730,8 +1182,7 @@ export const FilterProjectEnvsContentHintProjectsResponse9$outboundSchema: z.ZodTypeDef, FilterProjectEnvsContentHintProjectsResponse9 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs9Type$outboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); @@ -1761,20 +1212,6 @@ export function filterProjectEnvsContentHintProjectsResponse9FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs8Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs8Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs8Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs8Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs8Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs8Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjectsResponse8$inboundSchema: z.ZodType< @@ -1782,13 +1219,12 @@ export const FilterProjectEnvsContentHintProjectsResponse8$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs8Type$inboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjectsResponse8$Outbound = { - type: string; + type: "postgres-prisma-url"; storeId: string; }; @@ -1799,8 +1235,7 @@ export const FilterProjectEnvsContentHintProjectsResponse8$outboundSchema: z.ZodTypeDef, FilterProjectEnvsContentHintProjectsResponse8 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs8Type$outboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); @@ -1830,20 +1265,6 @@ export function filterProjectEnvsContentHintProjectsResponse8FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs7Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs7Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs7Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs7Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs7Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs7Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjectsResponse7$inboundSchema: z.ZodType< @@ -1851,13 +1272,12 @@ export const FilterProjectEnvsContentHintProjectsResponse7$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs7Type$inboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjectsResponse7$Outbound = { - type: string; + type: "postgres-url-non-pooling"; storeId: string; }; @@ -1868,8 +1288,7 @@ export const FilterProjectEnvsContentHintProjectsResponse7$outboundSchema: z.ZodTypeDef, FilterProjectEnvsContentHintProjectsResponse7 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs7Type$outboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); @@ -1899,20 +1318,6 @@ export function filterProjectEnvsContentHintProjectsResponse7FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs6Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs6Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs6Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs6Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs6Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs6Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjectsResponse6$inboundSchema: z.ZodType< @@ -1920,13 +1325,12 @@ export const FilterProjectEnvsContentHintProjectsResponse6$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs6Type$inboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjectsResponse6$Outbound = { - type: string; + type: "postgres-url"; storeId: string; }; @@ -1937,8 +1341,7 @@ export const FilterProjectEnvsContentHintProjectsResponse6$outboundSchema: z.ZodTypeDef, FilterProjectEnvsContentHintProjectsResponse6 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs6Type$outboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); @@ -1968,20 +1371,6 @@ export function filterProjectEnvsContentHintProjectsResponse6FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs5Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs5Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs5Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs5Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs5Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs5Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjectsResponse5$inboundSchema: z.ZodType< @@ -1989,13 +1378,12 @@ export const FilterProjectEnvsContentHintProjectsResponse5$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs5Type$inboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjectsResponse5$Outbound = { - type: string; + type: "blob-read-write-token"; storeId: string; }; @@ -2006,8 +1394,7 @@ export const FilterProjectEnvsContentHintProjectsResponse5$outboundSchema: z.ZodTypeDef, FilterProjectEnvsContentHintProjectsResponse5 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs5Type$outboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); @@ -2037,20 +1424,6 @@ export function filterProjectEnvsContentHintProjectsResponse5FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs4Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs4Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs4Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs4Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs4Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs4Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjectsResponse4$inboundSchema: z.ZodType< @@ -2058,13 +1431,12 @@ export const FilterProjectEnvsContentHintProjectsResponse4$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs4Type$inboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjectsResponse4$Outbound = { - type: string; + type: "redis-rest-api-read-only-token"; storeId: string; }; @@ -2075,8 +1447,7 @@ export const FilterProjectEnvsContentHintProjectsResponse4$outboundSchema: z.ZodTypeDef, FilterProjectEnvsContentHintProjectsResponse4 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs4Type$outboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); @@ -2106,20 +1477,6 @@ export function filterProjectEnvsContentHintProjectsResponse4FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs3Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs3Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs3Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs3Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs3Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs3Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjectsResponse3$inboundSchema: z.ZodType< @@ -2127,13 +1484,12 @@ export const FilterProjectEnvsContentHintProjectsResponse3$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs3Type$inboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjectsResponse3$Outbound = { - type: string; + type: "redis-rest-api-token"; storeId: string; }; @@ -2144,8 +1500,7 @@ export const FilterProjectEnvsContentHintProjectsResponse3$outboundSchema: z.ZodTypeDef, FilterProjectEnvsContentHintProjectsResponse3 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Envs3Type$outboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); @@ -2175,20 +1530,6 @@ export function filterProjectEnvsContentHintProjectsResponse3FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3EnvsType$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3EnvsType - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3EnvsType, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3EnvsType$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3EnvsType - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3EnvsType$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjectsResponse2$inboundSchema: z.ZodType< @@ -2196,13 +1537,12 @@ export const FilterProjectEnvsContentHintProjectsResponse2$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3EnvsType$inboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjectsResponse2$Outbound = { - type: string; + type: "redis-rest-api-url"; storeId: string; }; @@ -2213,8 +1553,7 @@ export const FilterProjectEnvsContentHintProjectsResponse2$outboundSchema: z.ZodTypeDef, FilterProjectEnvsContentHintProjectsResponse2 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3EnvsType$outboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); @@ -2244,20 +1583,6 @@ export function filterProjectEnvsContentHintProjectsResponse2FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjectsResponse1$inboundSchema: z.ZodType< @@ -2265,13 +1590,12 @@ export const FilterProjectEnvsContentHintProjectsResponse1$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Type$inboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjectsResponse1$Outbound = { - type: string; + type: "redis-url"; storeId: string; }; @@ -2282,8 +1606,7 @@ export const FilterProjectEnvsContentHintProjectsResponse1$outboundSchema: z.ZodTypeDef, FilterProjectEnvsContentHintProjectsResponse1 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody3Type$outboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); @@ -2320,7 +1643,6 @@ export const FilterProjectEnvsResponseBodyProjectsContentHint$inboundSchema: z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => FilterProjectEnvsContentHintProjectsResponse14$inboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjectsResponse1$inboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjectsResponse2$inboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjectsResponse3$inboundSchema), @@ -2334,11 +1656,11 @@ export const FilterProjectEnvsResponseBodyProjectsContentHint$inboundSchema: z.lazy(() => FilterProjectEnvsContentHintProjectsResponse11$inboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjectsResponse12$inboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjectsResponse13$inboundSchema), + z.lazy(() => FilterProjectEnvsContentHintProjectsResponse14$inboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjectsResponse15$inboundSchema), ]); /** @internal */ export type FilterProjectEnvsResponseBodyProjectsContentHint$Outbound = - | FilterProjectEnvsContentHintProjectsResponse14$Outbound | FilterProjectEnvsContentHintProjectsResponse1$Outbound | FilterProjectEnvsContentHintProjectsResponse2$Outbound | FilterProjectEnvsContentHintProjectsResponse3$Outbound @@ -2352,6 +1674,7 @@ export type FilterProjectEnvsResponseBodyProjectsContentHint$Outbound = | FilterProjectEnvsContentHintProjectsResponse11$Outbound | FilterProjectEnvsContentHintProjectsResponse12$Outbound | FilterProjectEnvsContentHintProjectsResponse13$Outbound + | FilterProjectEnvsContentHintProjectsResponse14$Outbound | FilterProjectEnvsContentHintProjectsResponse15$Outbound; /** @internal */ @@ -2361,7 +1684,6 @@ export const FilterProjectEnvsResponseBodyProjectsContentHint$outboundSchema: z.ZodTypeDef, FilterProjectEnvsResponseBodyProjectsContentHint > = z.union([ - z.lazy(() => FilterProjectEnvsContentHintProjectsResponse14$outboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjectsResponse1$outboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjectsResponse2$outboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjectsResponse3$outboundSchema), @@ -2375,6 +1697,7 @@ export const FilterProjectEnvsResponseBodyProjectsContentHint$outboundSchema: z.lazy(() => FilterProjectEnvsContentHintProjectsResponse11$outboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjectsResponse12$outboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjectsResponse13$outboundSchema), + z.lazy(() => FilterProjectEnvsContentHintProjectsResponse14$outboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjectsResponse15$outboundSchema), ]); @@ -2499,11 +1822,10 @@ export const ResponseBodyEnvs$inboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ + z.lazy(() => FilterProjectEnvsContentHintProjectsResponse1$inboundSchema), z.lazy(() => - FilterProjectEnvsContentHintProjectsResponse14$inboundSchema + FilterProjectEnvsContentHintProjectsResponse2$inboundSchema ), - z.lazy(() => FilterProjectEnvsContentHintProjectsResponse1$inboundSchema), - z.lazy(() => FilterProjectEnvsContentHintProjectsResponse2$inboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjectsResponse3$inboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjectsResponse4$inboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjectsResponse5$inboundSchema), @@ -2523,6 +1845,9 @@ export const ResponseBodyEnvs$inboundSchema: z.ZodType< z.lazy(() => FilterProjectEnvsContentHintProjectsResponse13$inboundSchema ), + z.lazy(() => + FilterProjectEnvsContentHintProjectsResponse14$inboundSchema + ), z.lazy(() => FilterProjectEnvsContentHintProjectsResponse15$inboundSchema ), @@ -2556,7 +1881,6 @@ export type ResponseBodyEnvs$Outbound = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | FilterProjectEnvsContentHintProjectsResponse14$Outbound | FilterProjectEnvsContentHintProjectsResponse1$Outbound | FilterProjectEnvsContentHintProjectsResponse2$Outbound | FilterProjectEnvsContentHintProjectsResponse3$Outbound @@ -2570,6 +1894,7 @@ export type ResponseBodyEnvs$Outbound = { | FilterProjectEnvsContentHintProjectsResponse11$Outbound | FilterProjectEnvsContentHintProjectsResponse12$Outbound | FilterProjectEnvsContentHintProjectsResponse13$Outbound + | FilterProjectEnvsContentHintProjectsResponse14$Outbound | FilterProjectEnvsContentHintProjectsResponse15$Outbound | null | undefined; @@ -2609,9 +1934,6 @@ export const ResponseBodyEnvs$outboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => - FilterProjectEnvsContentHintProjectsResponse14$outboundSchema - ), z.lazy(() => FilterProjectEnvsContentHintProjectsResponse1$outboundSchema ), @@ -2651,6 +1973,9 @@ export const ResponseBodyEnvs$outboundSchema: z.ZodType< z.lazy(() => FilterProjectEnvsContentHintProjectsResponse13$outboundSchema ), + z.lazy(() => + FilterProjectEnvsContentHintProjectsResponse14$outboundSchema + ), z.lazy(() => FilterProjectEnvsContentHintProjectsResponse15$outboundSchema ), @@ -2803,33 +2128,18 @@ export const FilterProjectEnvsResponseBodyProjectsResponseType$outboundSchema: z.ZodNativeEnum = FilterProjectEnvsResponseBodyProjectsResponseType$inboundSchema; -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs15Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs15Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs15Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs15Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs15Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs15Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjects15$inboundSchema: z.ZodType< FilterProjectEnvsContentHintProjects15, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs15Type$inboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjects15$Outbound = { - type: string; + type: "flags-connection-string"; projectId: string; }; @@ -2839,8 +2149,7 @@ export const FilterProjectEnvsContentHintProjects15$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHintProjects15 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs15Type$outboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); @@ -2865,28 +2174,13 @@ export function filterProjectEnvsContentHintProjects15FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs14Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs14Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs14Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs14Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs14Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs14Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjects14$inboundSchema: z.ZodType< FilterProjectEnvsContentHintProjects14, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs14Type$inboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -2894,7 +2188,7 @@ export const FilterProjectEnvsContentHintProjects14$inboundSchema: z.ZodType< }); /** @internal */ export type FilterProjectEnvsContentHintProjects14$Outbound = { - type: string; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; @@ -2907,8 +2201,7 @@ export const FilterProjectEnvsContentHintProjects14$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHintProjects14 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs14Type$outboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -2936,33 +2229,18 @@ export function filterProjectEnvsContentHintProjects14FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs13Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs13Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs13Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs13Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs13Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs13Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjects13$inboundSchema: z.ZodType< FilterProjectEnvsContentHintProjects13, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs13Type$inboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjects13$Outbound = { - type: string; + type: "postgres-url-no-ssl"; storeId: string; }; @@ -2972,8 +2250,7 @@ export const FilterProjectEnvsContentHintProjects13$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHintProjects13 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs13Type$outboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); @@ -2998,33 +2275,18 @@ export function filterProjectEnvsContentHintProjects13FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs12Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs12Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs12Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs12Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs12Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs12Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjects12$inboundSchema: z.ZodType< FilterProjectEnvsContentHintProjects12, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs12Type$inboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjects12$Outbound = { - type: string; + type: "postgres-database"; storeId: string; }; @@ -3034,8 +2296,7 @@ export const FilterProjectEnvsContentHintProjects12$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHintProjects12 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs12Type$outboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); @@ -3060,33 +2321,18 @@ export function filterProjectEnvsContentHintProjects12FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs11Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs11Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs11Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs11Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs11Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs11Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjects11$inboundSchema: z.ZodType< FilterProjectEnvsContentHintProjects11, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs11Type$inboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjects11$Outbound = { - type: string; + type: "postgres-password"; storeId: string; }; @@ -3096,8 +2342,7 @@ export const FilterProjectEnvsContentHintProjects11$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHintProjects11 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs11Type$outboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); @@ -3122,33 +2367,18 @@ export function filterProjectEnvsContentHintProjects11FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs10Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs10Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs10Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs10Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs10Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs10Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjects10$inboundSchema: z.ZodType< FilterProjectEnvsContentHintProjects10, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs10Type$inboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjects10$Outbound = { - type: string; + type: "postgres-host"; storeId: string; }; @@ -3158,8 +2388,7 @@ export const FilterProjectEnvsContentHintProjects10$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHintProjects10 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs10Type$outboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); @@ -3184,33 +2413,18 @@ export function filterProjectEnvsContentHintProjects10FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs9Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs9Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs9Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs9Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs9Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs9Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjects9$inboundSchema: z.ZodType< FilterProjectEnvsContentHintProjects9, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs9Type$inboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjects9$Outbound = { - type: string; + type: "postgres-user"; storeId: string; }; @@ -3220,8 +2434,7 @@ export const FilterProjectEnvsContentHintProjects9$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHintProjects9 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs9Type$outboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); @@ -3245,33 +2458,18 @@ export function filterProjectEnvsContentHintProjects9FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs8Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs8Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs8Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs8Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs8Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs8Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjects8$inboundSchema: z.ZodType< FilterProjectEnvsContentHintProjects8, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs8Type$inboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjects8$Outbound = { - type: string; + type: "postgres-prisma-url"; storeId: string; }; @@ -3281,8 +2479,7 @@ export const FilterProjectEnvsContentHintProjects8$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHintProjects8 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs8Type$outboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); @@ -3306,33 +2503,18 @@ export function filterProjectEnvsContentHintProjects8FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs7Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs7Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs7Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs7Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs7Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs7Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjects7$inboundSchema: z.ZodType< FilterProjectEnvsContentHintProjects7, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs7Type$inboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjects7$Outbound = { - type: string; + type: "postgres-url-non-pooling"; storeId: string; }; @@ -3342,8 +2524,7 @@ export const FilterProjectEnvsContentHintProjects7$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHintProjects7 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs7Type$outboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); @@ -3367,33 +2548,18 @@ export function filterProjectEnvsContentHintProjects7FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs6Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs6Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs6Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs6Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs6Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs6Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjects6$inboundSchema: z.ZodType< FilterProjectEnvsContentHintProjects6, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs6Type$inboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjects6$Outbound = { - type: string; + type: "postgres-url"; storeId: string; }; @@ -3403,8 +2569,7 @@ export const FilterProjectEnvsContentHintProjects6$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHintProjects6 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs6Type$outboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); @@ -3428,33 +2593,18 @@ export function filterProjectEnvsContentHintProjects6FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs5Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs5Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs5Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs5Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs5Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs5Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjects5$inboundSchema: z.ZodType< FilterProjectEnvsContentHintProjects5, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs5Type$inboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjects5$Outbound = { - type: string; + type: "blob-read-write-token"; storeId: string; }; @@ -3464,8 +2614,7 @@ export const FilterProjectEnvsContentHintProjects5$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHintProjects5 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs5Type$outboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); @@ -3489,33 +2638,18 @@ export function filterProjectEnvsContentHintProjects5FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs4Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs4Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs4Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs4Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs4Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs4Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjects4$inboundSchema: z.ZodType< FilterProjectEnvsContentHintProjects4, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs4Type$inboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjects4$Outbound = { - type: string; + type: "redis-rest-api-read-only-token"; storeId: string; }; @@ -3525,8 +2659,7 @@ export const FilterProjectEnvsContentHintProjects4$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHintProjects4 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs4Type$outboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); @@ -3550,33 +2683,18 @@ export function filterProjectEnvsContentHintProjects4FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs3Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs3Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs3Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs3Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs3Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs3Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjects3$inboundSchema: z.ZodType< FilterProjectEnvsContentHintProjects3, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs3Type$inboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjects3$Outbound = { - type: string; + type: "redis-rest-api-token"; storeId: string; }; @@ -3586,8 +2704,7 @@ export const FilterProjectEnvsContentHintProjects3$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHintProjects3 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Envs3Type$outboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); @@ -3611,33 +2728,18 @@ export function filterProjectEnvsContentHintProjects3FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2EnvsType$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2EnvsType - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2EnvsType, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2EnvsType$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2EnvsType - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2EnvsType$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjects2$inboundSchema: z.ZodType< FilterProjectEnvsContentHintProjects2, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2EnvsType$inboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjects2$Outbound = { - type: string; + type: "redis-rest-api-url"; storeId: string; }; @@ -3647,8 +2749,7 @@ export const FilterProjectEnvsContentHintProjects2$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHintProjects2 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2EnvsType$outboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); @@ -3672,33 +2773,18 @@ export function filterProjectEnvsContentHintProjects2FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHintProjects1$inboundSchema: z.ZodType< FilterProjectEnvsContentHintProjects1, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Type$inboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHintProjects1$Outbound = { - type: string; + type: "redis-url"; storeId: string; }; @@ -3708,8 +2794,7 @@ export const FilterProjectEnvsContentHintProjects1$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHintProjects1 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody2Type$outboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); @@ -3739,7 +2824,6 @@ export const FilterProjectEnvsResponseBodyContentHint$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => FilterProjectEnvsContentHintProjects14$inboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects1$inboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects2$inboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects3$inboundSchema), @@ -3753,11 +2837,11 @@ export const FilterProjectEnvsResponseBodyContentHint$inboundSchema: z.ZodType< z.lazy(() => FilterProjectEnvsContentHintProjects11$inboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects12$inboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects13$inboundSchema), + z.lazy(() => FilterProjectEnvsContentHintProjects14$inboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects15$inboundSchema), ]); /** @internal */ export type FilterProjectEnvsResponseBodyContentHint$Outbound = - | FilterProjectEnvsContentHintProjects14$Outbound | FilterProjectEnvsContentHintProjects1$Outbound | FilterProjectEnvsContentHintProjects2$Outbound | FilterProjectEnvsContentHintProjects3$Outbound @@ -3771,6 +2855,7 @@ export type FilterProjectEnvsResponseBodyContentHint$Outbound = | FilterProjectEnvsContentHintProjects11$Outbound | FilterProjectEnvsContentHintProjects12$Outbound | FilterProjectEnvsContentHintProjects13$Outbound + | FilterProjectEnvsContentHintProjects14$Outbound | FilterProjectEnvsContentHintProjects15$Outbound; /** @internal */ @@ -3779,7 +2864,6 @@ export const FilterProjectEnvsResponseBodyContentHint$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsResponseBodyContentHint > = z.union([ - z.lazy(() => FilterProjectEnvsContentHintProjects14$outboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects1$outboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects2$outboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects3$outboundSchema), @@ -3793,6 +2877,7 @@ export const FilterProjectEnvsResponseBodyContentHint$outboundSchema: z.ZodType< z.lazy(() => FilterProjectEnvsContentHintProjects11$outboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects12$outboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects13$outboundSchema), + z.lazy(() => FilterProjectEnvsContentHintProjects14$outboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects15$outboundSchema), ]); @@ -3915,7 +3000,6 @@ export const Envs$inboundSchema: z.ZodType = z edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => FilterProjectEnvsContentHintProjects14$inboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects1$inboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects2$inboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects3$inboundSchema), @@ -3929,6 +3013,7 @@ export const Envs$inboundSchema: z.ZodType = z z.lazy(() => FilterProjectEnvsContentHintProjects11$inboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects12$inboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects13$inboundSchema), + z.lazy(() => FilterProjectEnvsContentHintProjects14$inboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects15$inboundSchema), ]), ).optional(), @@ -3960,7 +3045,6 @@ export type Envs$Outbound = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | FilterProjectEnvsContentHintProjects14$Outbound | FilterProjectEnvsContentHintProjects1$Outbound | FilterProjectEnvsContentHintProjects2$Outbound | FilterProjectEnvsContentHintProjects3$Outbound @@ -3974,6 +3058,7 @@ export type Envs$Outbound = { | FilterProjectEnvsContentHintProjects11$Outbound | FilterProjectEnvsContentHintProjects12$Outbound | FilterProjectEnvsContentHintProjects13$Outbound + | FilterProjectEnvsContentHintProjects14$Outbound | FilterProjectEnvsContentHintProjects15$Outbound | null | undefined; @@ -4010,7 +3095,6 @@ export const Envs$outboundSchema: z.ZodType = edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => FilterProjectEnvsContentHintProjects14$outboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects1$outboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects2$outboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects3$outboundSchema), @@ -4024,6 +3108,7 @@ export const Envs$outboundSchema: z.ZodType = z.lazy(() => FilterProjectEnvsContentHintProjects11$outboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects12$outboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects13$outboundSchema), + z.lazy(() => FilterProjectEnvsContentHintProjects14$outboundSchema), z.lazy(() => FilterProjectEnvsContentHintProjects15$outboundSchema), ]), ).optional(), @@ -4165,33 +3250,18 @@ export const FilterProjectEnvsResponseBodyType$outboundSchema: z.ZodNativeEnum< typeof FilterProjectEnvsResponseBodyType > = FilterProjectEnvsResponseBodyType$inboundSchema; -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody115Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody115Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody115Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody115Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody115Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody115Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHint15$inboundSchema: z.ZodType< FilterProjectEnvsContentHint15, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody115Type$inboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHint15$Outbound = { - type: string; + type: "flags-connection-string"; projectId: string; }; @@ -4201,8 +3271,7 @@ export const FilterProjectEnvsContentHint15$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHint15 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody115Type$outboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); @@ -4225,28 +3294,13 @@ export function filterProjectEnvsContentHint15FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody114Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody114Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody114Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody114Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody114Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody114Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHint14$inboundSchema: z.ZodType< FilterProjectEnvsContentHint14, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody114Type$inboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -4254,7 +3308,7 @@ export const FilterProjectEnvsContentHint14$inboundSchema: z.ZodType< }); /** @internal */ export type FilterProjectEnvsContentHint14$Outbound = { - type: string; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; @@ -4267,8 +3321,7 @@ export const FilterProjectEnvsContentHint14$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHint14 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody114Type$outboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -4294,33 +3347,18 @@ export function filterProjectEnvsContentHint14FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody113Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody113Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody113Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody113Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody113Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody113Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHint13$inboundSchema: z.ZodType< FilterProjectEnvsContentHint13, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody113Type$inboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHint13$Outbound = { - type: string; + type: "postgres-url-no-ssl"; storeId: string; }; @@ -4330,8 +3368,7 @@ export const FilterProjectEnvsContentHint13$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHint13 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody113Type$outboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); @@ -4354,33 +3391,18 @@ export function filterProjectEnvsContentHint13FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody112Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody112Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody112Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody112Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody112Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody112Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHint12$inboundSchema: z.ZodType< FilterProjectEnvsContentHint12, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody112Type$inboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHint12$Outbound = { - type: string; + type: "postgres-database"; storeId: string; }; @@ -4390,8 +3412,7 @@ export const FilterProjectEnvsContentHint12$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHint12 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody112Type$outboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); @@ -4414,33 +3435,18 @@ export function filterProjectEnvsContentHint12FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody111Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody111Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody111Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody111Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody111Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody111Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHint11$inboundSchema: z.ZodType< FilterProjectEnvsContentHint11, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody111Type$inboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHint11$Outbound = { - type: string; + type: "postgres-password"; storeId: string; }; @@ -4450,8 +3456,7 @@ export const FilterProjectEnvsContentHint11$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHint11 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody111Type$outboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); @@ -4474,33 +3479,18 @@ export function filterProjectEnvsContentHint11FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody110Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody110Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody110Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody110Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody110Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody110Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHint10$inboundSchema: z.ZodType< FilterProjectEnvsContentHint10, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody110Type$inboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHint10$Outbound = { - type: string; + type: "postgres-host"; storeId: string; }; @@ -4510,8 +3500,7 @@ export const FilterProjectEnvsContentHint10$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHint10 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody110Type$outboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); @@ -4534,33 +3523,18 @@ export function filterProjectEnvsContentHint10FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody19Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody19Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody19Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody19Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody19Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody19Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHint9$inboundSchema: z.ZodType< FilterProjectEnvsContentHint9, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody19Type$inboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHint9$Outbound = { - type: string; + type: "postgres-user"; storeId: string; }; @@ -4570,8 +3544,7 @@ export const FilterProjectEnvsContentHint9$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHint9 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody19Type$outboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); @@ -4594,33 +3567,18 @@ export function filterProjectEnvsContentHint9FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody18Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody18Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody18Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody18Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody18Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody18Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHint8$inboundSchema: z.ZodType< FilterProjectEnvsContentHint8, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody18Type$inboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHint8$Outbound = { - type: string; + type: "postgres-prisma-url"; storeId: string; }; @@ -4630,8 +3588,7 @@ export const FilterProjectEnvsContentHint8$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHint8 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody18Type$outboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); @@ -4654,33 +3611,18 @@ export function filterProjectEnvsContentHint8FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody1Type$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody1Type - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody1Type, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody1Type$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody1Type - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody1Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHint7$inboundSchema: z.ZodType< FilterProjectEnvsContentHint7, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody1Type$inboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHint7$Outbound = { - type: string; + type: "postgres-url-non-pooling"; storeId: string; }; @@ -4690,8 +3632,7 @@ export const FilterProjectEnvsContentHint7$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHint7 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBody1Type$outboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); @@ -4714,33 +3655,18 @@ export function filterProjectEnvsContentHint7FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBodyType - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBodyType, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBodyType - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHint6$inboundSchema: z.ZodType< FilterProjectEnvsContentHint6, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHint6$Outbound = { - type: string; + type: "postgres-url"; storeId: string; }; @@ -4750,8 +3676,7 @@ export const FilterProjectEnvsContentHint6$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHint6 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); @@ -4774,33 +3699,18 @@ export function filterProjectEnvsContentHint6FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONType$inboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONType - > = z.nativeEnum( - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONType, - ); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONType$outboundSchema: - z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONType - > = - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONType$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHint5$inboundSchema: z.ZodType< FilterProjectEnvsContentHint5, z.ZodTypeDef, unknown > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONType$inboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHint5$Outbound = { - type: string; + type: "blob-read-write-token"; storeId: string; }; @@ -4810,8 +3720,7 @@ export const FilterProjectEnvsContentHint5$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHint5 > = z.object({ - type: - FilterProjectEnvsContentHintProjectsResponse200ApplicationJSONType$outboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); @@ -4834,27 +3743,18 @@ export function filterProjectEnvsContentHint5FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200Type$inboundSchema: - z.ZodNativeEnum = - z.nativeEnum(FilterProjectEnvsContentHintProjectsResponse200Type); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponse200Type$outboundSchema: - z.ZodNativeEnum = - FilterProjectEnvsContentHintProjectsResponse200Type$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHint4$inboundSchema: z.ZodType< FilterProjectEnvsContentHint4, z.ZodTypeDef, unknown > = z.object({ - type: FilterProjectEnvsContentHintProjectsResponse200Type$inboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHint4$Outbound = { - type: string; + type: "redis-rest-api-read-only-token"; storeId: string; }; @@ -4864,7 +3764,7 @@ export const FilterProjectEnvsContentHint4$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHint4 > = z.object({ - type: FilterProjectEnvsContentHintProjectsResponse200Type$outboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); @@ -4887,27 +3787,18 @@ export function filterProjectEnvsContentHint4FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponseType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(FilterProjectEnvsContentHintProjectsResponseType); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsResponseType$outboundSchema: - z.ZodNativeEnum = - FilterProjectEnvsContentHintProjectsResponseType$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHint3$inboundSchema: z.ZodType< FilterProjectEnvsContentHint3, z.ZodTypeDef, unknown > = z.object({ - type: FilterProjectEnvsContentHintProjectsResponseType$inboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHint3$Outbound = { - type: string; + type: "redis-rest-api-token"; storeId: string; }; @@ -4917,7 +3808,7 @@ export const FilterProjectEnvsContentHint3$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHint3 > = z.object({ - type: FilterProjectEnvsContentHintProjectsResponseType$outboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); @@ -4940,27 +3831,18 @@ export function filterProjectEnvsContentHint3FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintProjectsType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(FilterProjectEnvsContentHintProjectsType); -/** @internal */ -export const FilterProjectEnvsContentHintProjectsType$outboundSchema: - z.ZodNativeEnum = - FilterProjectEnvsContentHintProjectsType$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHint2$inboundSchema: z.ZodType< FilterProjectEnvsContentHint2, z.ZodTypeDef, unknown > = z.object({ - type: FilterProjectEnvsContentHintProjectsType$inboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHint2$Outbound = { - type: string; + type: "redis-rest-api-url"; storeId: string; }; @@ -4970,7 +3852,7 @@ export const FilterProjectEnvsContentHint2$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHint2 > = z.object({ - type: FilterProjectEnvsContentHintProjectsType$outboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); @@ -4993,27 +3875,18 @@ export function filterProjectEnvsContentHint2FromJSON( ); } -/** @internal */ -export const FilterProjectEnvsContentHintType$inboundSchema: z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintType -> = z.nativeEnum(FilterProjectEnvsContentHintType); -/** @internal */ -export const FilterProjectEnvsContentHintType$outboundSchema: z.ZodNativeEnum< - typeof FilterProjectEnvsContentHintType -> = FilterProjectEnvsContentHintType$inboundSchema; - /** @internal */ export const FilterProjectEnvsContentHint1$inboundSchema: z.ZodType< FilterProjectEnvsContentHint1, z.ZodTypeDef, unknown > = z.object({ - type: FilterProjectEnvsContentHintType$inboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); /** @internal */ export type FilterProjectEnvsContentHint1$Outbound = { - type: string; + type: "redis-url"; storeId: string; }; @@ -5023,7 +3896,7 @@ export const FilterProjectEnvsContentHint1$outboundSchema: z.ZodType< z.ZodTypeDef, FilterProjectEnvsContentHint1 > = z.object({ - type: FilterProjectEnvsContentHintType$outboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); @@ -5052,7 +3925,6 @@ export const ResponseBodyContentHint$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => FilterProjectEnvsContentHint14$inboundSchema), z.lazy(() => FilterProjectEnvsContentHint1$inboundSchema), z.lazy(() => FilterProjectEnvsContentHint2$inboundSchema), z.lazy(() => FilterProjectEnvsContentHint3$inboundSchema), @@ -5066,11 +3938,11 @@ export const ResponseBodyContentHint$inboundSchema: z.ZodType< z.lazy(() => FilterProjectEnvsContentHint11$inboundSchema), z.lazy(() => FilterProjectEnvsContentHint12$inboundSchema), z.lazy(() => FilterProjectEnvsContentHint13$inboundSchema), + z.lazy(() => FilterProjectEnvsContentHint14$inboundSchema), z.lazy(() => FilterProjectEnvsContentHint15$inboundSchema), ]); /** @internal */ export type ResponseBodyContentHint$Outbound = - | FilterProjectEnvsContentHint14$Outbound | FilterProjectEnvsContentHint1$Outbound | FilterProjectEnvsContentHint2$Outbound | FilterProjectEnvsContentHint3$Outbound @@ -5084,6 +3956,7 @@ export type ResponseBodyContentHint$Outbound = | FilterProjectEnvsContentHint11$Outbound | FilterProjectEnvsContentHint12$Outbound | FilterProjectEnvsContentHint13$Outbound + | FilterProjectEnvsContentHint14$Outbound | FilterProjectEnvsContentHint15$Outbound; /** @internal */ @@ -5092,7 +3965,6 @@ export const ResponseBodyContentHint$outboundSchema: z.ZodType< z.ZodTypeDef, ResponseBodyContentHint > = z.union([ - z.lazy(() => FilterProjectEnvsContentHint14$outboundSchema), z.lazy(() => FilterProjectEnvsContentHint1$outboundSchema), z.lazy(() => FilterProjectEnvsContentHint2$outboundSchema), z.lazy(() => FilterProjectEnvsContentHint3$outboundSchema), @@ -5106,6 +3978,7 @@ export const ResponseBodyContentHint$outboundSchema: z.ZodType< z.lazy(() => FilterProjectEnvsContentHint11$outboundSchema), z.lazy(() => FilterProjectEnvsContentHint12$outboundSchema), z.lazy(() => FilterProjectEnvsContentHint13$outboundSchema), + z.lazy(() => FilterProjectEnvsContentHint14$outboundSchema), z.lazy(() => FilterProjectEnvsContentHint15$outboundSchema), ]); @@ -5206,7 +4079,6 @@ export const FilterProjectEnvsResponseBody1$inboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => FilterProjectEnvsContentHint14$inboundSchema), z.lazy(() => FilterProjectEnvsContentHint1$inboundSchema), z.lazy(() => FilterProjectEnvsContentHint2$inboundSchema), z.lazy(() => FilterProjectEnvsContentHint3$inboundSchema), @@ -5220,6 +4092,7 @@ export const FilterProjectEnvsResponseBody1$inboundSchema: z.ZodType< z.lazy(() => FilterProjectEnvsContentHint11$inboundSchema), z.lazy(() => FilterProjectEnvsContentHint12$inboundSchema), z.lazy(() => FilterProjectEnvsContentHint13$inboundSchema), + z.lazy(() => FilterProjectEnvsContentHint14$inboundSchema), z.lazy(() => FilterProjectEnvsContentHint15$inboundSchema), ]), ).optional(), @@ -5249,7 +4122,6 @@ export type FilterProjectEnvsResponseBody1$Outbound = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | FilterProjectEnvsContentHint14$Outbound | FilterProjectEnvsContentHint1$Outbound | FilterProjectEnvsContentHint2$Outbound | FilterProjectEnvsContentHint3$Outbound @@ -5263,6 +4135,7 @@ export type FilterProjectEnvsResponseBody1$Outbound = { | FilterProjectEnvsContentHint11$Outbound | FilterProjectEnvsContentHint12$Outbound | FilterProjectEnvsContentHint13$Outbound + | FilterProjectEnvsContentHint14$Outbound | FilterProjectEnvsContentHint15$Outbound | null | undefined; @@ -5302,7 +4175,6 @@ export const FilterProjectEnvsResponseBody1$outboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => FilterProjectEnvsContentHint14$outboundSchema), z.lazy(() => FilterProjectEnvsContentHint1$outboundSchema), z.lazy(() => FilterProjectEnvsContentHint2$outboundSchema), z.lazy(() => FilterProjectEnvsContentHint3$outboundSchema), @@ -5316,6 +4188,7 @@ export const FilterProjectEnvsResponseBody1$outboundSchema: z.ZodType< z.lazy(() => FilterProjectEnvsContentHint11$outboundSchema), z.lazy(() => FilterProjectEnvsContentHint12$outboundSchema), z.lazy(() => FilterProjectEnvsContentHint13$outboundSchema), + z.lazy(() => FilterProjectEnvsContentHint14$outboundSchema), z.lazy(() => FilterProjectEnvsContentHint15$outboundSchema), ]), ).optional(), diff --git a/src/models/forbidden.ts b/src/models/forbidden.ts index 880657d0..1ead67b5 100644 --- a/src/models/forbidden.ts +++ b/src/models/forbidden.ts @@ -3,23 +3,17 @@ */ import * as z from "zod/v3"; -import { ClosedEnum } from "../types/enums.js"; import { VercelError } from "./vercelerror.js"; -export const ForbiddenCode = { - Forbidden: "forbidden", -} as const; -export type ForbiddenCode = ClosedEnum; - export type ForbiddenData = { status: number; - code: ForbiddenCode; + code: "forbidden"; message: string; }; export class Forbidden extends VercelError { status: number; - code: ForbiddenCode; + code: "forbidden"; /** The original data that was passed to this error instance. */ data$: ForbiddenData; @@ -38,15 +32,6 @@ export class Forbidden extends VercelError { } } -/** @internal */ -export const ForbiddenCode$inboundSchema: z.ZodNativeEnum< - typeof ForbiddenCode -> = z.nativeEnum(ForbiddenCode); -/** @internal */ -export const ForbiddenCode$outboundSchema: z.ZodNativeEnum< - typeof ForbiddenCode -> = ForbiddenCode$inboundSchema; - /** @internal */ export const Forbidden$inboundSchema: z.ZodType< Forbidden, @@ -54,7 +39,7 @@ export const Forbidden$inboundSchema: z.ZodType< unknown > = z.object({ status: z.number(), - code: ForbiddenCode$inboundSchema, + code: z.literal("forbidden"), message: z.string(), request$: z.instanceof(Request), response$: z.instanceof(Response), @@ -71,7 +56,7 @@ export const Forbidden$inboundSchema: z.ZodType< /** @internal */ export type Forbidden$Outbound = { status: number; - code: string; + code: "forbidden"; message: string; }; @@ -84,6 +69,6 @@ export const Forbidden$outboundSchema: z.ZodType< .transform(v => v.data$) .pipe(z.object({ status: z.number(), - code: ForbiddenCode$outboundSchema, + code: z.literal("forbidden"), message: z.string(), })); diff --git a/src/models/getaliasop.ts b/src/models/getaliasop.ts index 7a4e74e8..fc7a268e 100644 --- a/src/models/getaliasop.ts +++ b/src/models/getaliasop.ts @@ -75,13 +75,6 @@ export type GetAliasDeployment = { meta?: string | undefined; }; -export const GetAliasProtectionBypassAliasesResponse200Scope = { - EmailInvite: "email_invite", -} as const; -export type GetAliasProtectionBypassAliasesResponse200Scope = ClosedEnum< - typeof GetAliasProtectionBypassAliasesResponse200Scope ->; - /** * The protection bypass for the alias */ @@ -89,23 +82,16 @@ export type ProtectionBypass4 = { createdAt: number; lastUpdatedAt: number; lastUpdatedBy: string; - scope: GetAliasProtectionBypassAliasesResponse200Scope; + scope: "email_invite"; }; -export const GetAliasProtectionBypassAliasesResponseScope = { - AliasProtectionOverride: "alias-protection-override", -} as const; -export type GetAliasProtectionBypassAliasesResponseScope = ClosedEnum< - typeof GetAliasProtectionBypassAliasesResponseScope ->; - /** * The protection bypass for the alias */ export type ProtectionBypass3 = { createdAt: number; createdBy: string; - scope: GetAliasProtectionBypassAliasesResponseScope; + scope: "alias-protection-override"; }; export const ProtectionBypassAccess = { @@ -114,13 +100,6 @@ export const ProtectionBypassAccess = { } as const; export type ProtectionBypassAccess = ClosedEnum; -export const GetAliasProtectionBypassAliasesScope = { - User: "user", -} as const; -export type GetAliasProtectionBypassAliasesScope = ClosedEnum< - typeof GetAliasProtectionBypassAliasesScope ->; - /** * The protection bypass for the alias */ @@ -129,31 +108,24 @@ export type GetAliasProtectionBypass2 = { lastUpdatedAt: number; lastUpdatedBy: string; access: ProtectionBypassAccess; - scope: GetAliasProtectionBypassAliasesScope; + scope: "user"; }; -export const GetAliasProtectionBypassScope = { - ShareableLink: "shareable-link", -} as const; -export type GetAliasProtectionBypassScope = ClosedEnum< - typeof GetAliasProtectionBypassScope ->; - /** * The protection bypass for the alias */ export type GetAliasProtectionBypass1 = { createdAt: number; createdBy: string; - scope: GetAliasProtectionBypassScope; + scope: "shareable-link"; expires?: number | undefined; }; export type GetAliasProtectionBypass = - | GetAliasProtectionBypass2 - | ProtectionBypass4 | GetAliasProtectionBypass1 - | ProtectionBypass3; + | GetAliasProtectionBypass2 + | ProtectionBypass3 + | ProtectionBypass4; export type DefaultApp = { projectId: string; @@ -288,10 +260,10 @@ export type GetAliasResponseBody = { */ protectionBypass?: { [k: string]: - | GetAliasProtectionBypass2 - | ProtectionBypass4 | GetAliasProtectionBypass1 - | ProtectionBypass3; + | GetAliasProtectionBypass2 + | ProtectionBypass3 + | ProtectionBypass4; } | undefined; /** * The microfrontends for the alias including the routing configuration @@ -442,15 +414,6 @@ export function getAliasDeploymentFromJSON( ); } -/** @internal */ -export const GetAliasProtectionBypassAliasesResponse200Scope$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetAliasProtectionBypassAliasesResponse200Scope); -/** @internal */ -export const GetAliasProtectionBypassAliasesResponse200Scope$outboundSchema: - z.ZodNativeEnum = - GetAliasProtectionBypassAliasesResponse200Scope$inboundSchema; - /** @internal */ export const ProtectionBypass4$inboundSchema: z.ZodType< ProtectionBypass4, @@ -460,14 +423,14 @@ export const ProtectionBypass4$inboundSchema: z.ZodType< createdAt: z.number(), lastUpdatedAt: z.number(), lastUpdatedBy: z.string(), - scope: GetAliasProtectionBypassAliasesResponse200Scope$inboundSchema, + scope: z.literal("email_invite"), }); /** @internal */ export type ProtectionBypass4$Outbound = { createdAt: number; lastUpdatedAt: number; lastUpdatedBy: string; - scope: string; + scope: "email_invite"; }; /** @internal */ @@ -479,7 +442,7 @@ export const ProtectionBypass4$outboundSchema: z.ZodType< createdAt: z.number(), lastUpdatedAt: z.number(), lastUpdatedBy: z.string(), - scope: GetAliasProtectionBypassAliasesResponse200Scope$outboundSchema, + scope: z.literal("email_invite"), }); export function protectionBypass4ToJSON( @@ -499,15 +462,6 @@ export function protectionBypass4FromJSON( ); } -/** @internal */ -export const GetAliasProtectionBypassAliasesResponseScope$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetAliasProtectionBypassAliasesResponseScope); -/** @internal */ -export const GetAliasProtectionBypassAliasesResponseScope$outboundSchema: - z.ZodNativeEnum = - GetAliasProtectionBypassAliasesResponseScope$inboundSchema; - /** @internal */ export const ProtectionBypass3$inboundSchema: z.ZodType< ProtectionBypass3, @@ -516,13 +470,13 @@ export const ProtectionBypass3$inboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: GetAliasProtectionBypassAliasesResponseScope$inboundSchema, + scope: z.literal("alias-protection-override"), }); /** @internal */ export type ProtectionBypass3$Outbound = { createdAt: number; createdBy: string; - scope: string; + scope: "alias-protection-override"; }; /** @internal */ @@ -533,7 +487,7 @@ export const ProtectionBypass3$outboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: GetAliasProtectionBypassAliasesResponseScope$outboundSchema, + scope: z.literal("alias-protection-override"), }); export function protectionBypass3ToJSON( @@ -562,16 +516,6 @@ export const ProtectionBypassAccess$outboundSchema: z.ZodNativeEnum< typeof ProtectionBypassAccess > = ProtectionBypassAccess$inboundSchema; -/** @internal */ -export const GetAliasProtectionBypassAliasesScope$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - GetAliasProtectionBypassAliasesScope, - ); -/** @internal */ -export const GetAliasProtectionBypassAliasesScope$outboundSchema: - z.ZodNativeEnum = - GetAliasProtectionBypassAliasesScope$inboundSchema; - /** @internal */ export const GetAliasProtectionBypass2$inboundSchema: z.ZodType< GetAliasProtectionBypass2, @@ -582,7 +526,7 @@ export const GetAliasProtectionBypass2$inboundSchema: z.ZodType< lastUpdatedAt: z.number(), lastUpdatedBy: z.string(), access: ProtectionBypassAccess$inboundSchema, - scope: GetAliasProtectionBypassAliasesScope$inboundSchema, + scope: z.literal("user"), }); /** @internal */ export type GetAliasProtectionBypass2$Outbound = { @@ -590,7 +534,7 @@ export type GetAliasProtectionBypass2$Outbound = { lastUpdatedAt: number; lastUpdatedBy: string; access: string; - scope: string; + scope: "user"; }; /** @internal */ @@ -603,7 +547,7 @@ export const GetAliasProtectionBypass2$outboundSchema: z.ZodType< lastUpdatedAt: z.number(), lastUpdatedBy: z.string(), access: ProtectionBypassAccess$outboundSchema, - scope: GetAliasProtectionBypassAliasesScope$outboundSchema, + scope: z.literal("user"), }); export function getAliasProtectionBypass2ToJSON( @@ -623,15 +567,6 @@ export function getAliasProtectionBypass2FromJSON( ); } -/** @internal */ -export const GetAliasProtectionBypassScope$inboundSchema: z.ZodNativeEnum< - typeof GetAliasProtectionBypassScope -> = z.nativeEnum(GetAliasProtectionBypassScope); -/** @internal */ -export const GetAliasProtectionBypassScope$outboundSchema: z.ZodNativeEnum< - typeof GetAliasProtectionBypassScope -> = GetAliasProtectionBypassScope$inboundSchema; - /** @internal */ export const GetAliasProtectionBypass1$inboundSchema: z.ZodType< GetAliasProtectionBypass1, @@ -640,14 +575,14 @@ export const GetAliasProtectionBypass1$inboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: GetAliasProtectionBypassScope$inboundSchema, + scope: z.literal("shareable-link"), expires: z.number().optional(), }); /** @internal */ export type GetAliasProtectionBypass1$Outbound = { createdAt: number; createdBy: string; - scope: string; + scope: "shareable-link"; expires?: number | undefined; }; @@ -659,7 +594,7 @@ export const GetAliasProtectionBypass1$outboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: GetAliasProtectionBypassScope$outboundSchema, + scope: z.literal("shareable-link"), expires: z.number().optional(), }); @@ -686,17 +621,17 @@ export const GetAliasProtectionBypass$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetAliasProtectionBypass2$inboundSchema), - z.lazy(() => ProtectionBypass4$inboundSchema), z.lazy(() => GetAliasProtectionBypass1$inboundSchema), + z.lazy(() => GetAliasProtectionBypass2$inboundSchema), z.lazy(() => ProtectionBypass3$inboundSchema), + z.lazy(() => ProtectionBypass4$inboundSchema), ]); /** @internal */ export type GetAliasProtectionBypass$Outbound = - | GetAliasProtectionBypass2$Outbound - | ProtectionBypass4$Outbound | GetAliasProtectionBypass1$Outbound - | ProtectionBypass3$Outbound; + | GetAliasProtectionBypass2$Outbound + | ProtectionBypass3$Outbound + | ProtectionBypass4$Outbound; /** @internal */ export const GetAliasProtectionBypass$outboundSchema: z.ZodType< @@ -704,10 +639,10 @@ export const GetAliasProtectionBypass$outboundSchema: z.ZodType< z.ZodTypeDef, GetAliasProtectionBypass > = z.union([ - z.lazy(() => GetAliasProtectionBypass2$outboundSchema), - z.lazy(() => ProtectionBypass4$outboundSchema), z.lazy(() => GetAliasProtectionBypass1$outboundSchema), + z.lazy(() => GetAliasProtectionBypass2$outboundSchema), z.lazy(() => ProtectionBypass3$outboundSchema), + z.lazy(() => ProtectionBypass4$outboundSchema), ]); export function getAliasProtectionBypassToJSON( @@ -1004,10 +939,10 @@ export const GetAliasResponseBody$inboundSchema: z.ZodType< updatedAt: z.number().optional(), protectionBypass: z.record( z.union([ - z.lazy(() => GetAliasProtectionBypass2$inboundSchema), - z.lazy(() => ProtectionBypass4$inboundSchema), z.lazy(() => GetAliasProtectionBypass1$inboundSchema), + z.lazy(() => GetAliasProtectionBypass2$inboundSchema), z.lazy(() => ProtectionBypass3$inboundSchema), + z.lazy(() => ProtectionBypass4$inboundSchema), ]), ).optional(), microfrontends: z.lazy(() => GetAliasMicrofrontends$inboundSchema).optional(), @@ -1028,10 +963,10 @@ export type GetAliasResponseBody$Outbound = { updatedAt?: number | undefined; protectionBypass?: { [k: string]: - | GetAliasProtectionBypass2$Outbound - | ProtectionBypass4$Outbound | GetAliasProtectionBypass1$Outbound - | ProtectionBypass3$Outbound; + | GetAliasProtectionBypass2$Outbound + | ProtectionBypass3$Outbound + | ProtectionBypass4$Outbound; } | undefined; microfrontends?: GetAliasMicrofrontends$Outbound | undefined; }; @@ -1056,10 +991,10 @@ export const GetAliasResponseBody$outboundSchema: z.ZodType< updatedAt: z.number().optional(), protectionBypass: z.record( z.union([ - z.lazy(() => GetAliasProtectionBypass2$outboundSchema), - z.lazy(() => ProtectionBypass4$outboundSchema), z.lazy(() => GetAliasProtectionBypass1$outboundSchema), + z.lazy(() => GetAliasProtectionBypass2$outboundSchema), z.lazy(() => ProtectionBypass3$outboundSchema), + z.lazy(() => ProtectionBypass4$outboundSchema), ]), ).optional(), microfrontends: z.lazy(() => GetAliasMicrofrontends$outboundSchema) diff --git a/src/models/getalllogdrainsop.ts b/src/models/getalllogdrainsop.ts index b0f2a618..28216e3d 100644 --- a/src/models/getalllogdrainsop.ts +++ b/src/models/getalllogdrainsop.ts @@ -118,15 +118,6 @@ export type GetAllLogDrainsDrainsLogDrainsSchemas = { speedInsights?: GetAllLogDrainsDrainsSpeedInsights | undefined; }; -export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type = - { - Internal: "internal", - } as const; -export type GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type = - ClosedEnum< - typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type - >; - export const GetAllLogDrainsDeliveryTarget = { VercelOtelTracesDb: "vercel-otel-traces-db", } as const; @@ -135,35 +126,16 @@ export type GetAllLogDrainsDeliveryTarget = ClosedEnum< >; export type GetAllLogDrainsDelivery4 = { - type: - GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type; + type: "internal"; target: GetAllLogDrainsDeliveryTarget; }; -export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType = - { - Clickhouse: "clickhouse", - } as const; -export type GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType = - ClosedEnum< - typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType - >; - export type GetAllLogDrainsDelivery3 = { - type: - GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType; + type: "clickhouse"; endpoint: string; table: string; }; -export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType = { - Otlphttp: "otlphttp", -} as const; -export type GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType = - ClosedEnum< - typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType - >; - export type GetAllLogDrainsDeliveryLogDrainsEndpoint = { traces: string; }; @@ -192,20 +164,13 @@ export type GetAllLogDrainsDeliveryLogDrainsSecret = | string; export type GetAllLogDrainsDelivery2 = { - type: GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType; + type: "otlphttp"; endpoint: GetAllLogDrainsDeliveryLogDrainsEndpoint; encoding: GetAllLogDrainsDeliveryLogDrainsResponseEncoding; headers: { [k: string]: string }; secret?: GetAllLogDrainsSecretLogDrainsResponse2 | string | undefined; }; -export const GetAllLogDrainsDeliveryLogDrainsResponse200Type = { - Http: "http", -} as const; -export type GetAllLogDrainsDeliveryLogDrainsResponse200Type = ClosedEnum< - typeof GetAllLogDrainsDeliveryLogDrainsResponse200Type ->; - export const GetAllLogDrainsDeliveryLogDrainsEncoding = { Json: "json", Ndjson: "ndjson", @@ -238,7 +203,7 @@ export type GetAllLogDrainsDeliverySecret = | string; export type GetAllLogDrainsDelivery1 = { - type: GetAllLogDrainsDeliveryLogDrainsResponse200Type; + type: "http"; endpoint: string; encoding: GetAllLogDrainsDeliveryLogDrainsEncoding; compression?: GetAllLogDrainsDeliveryLogDrainsCompression | undefined; @@ -293,62 +258,27 @@ export type GetAllLogDrainsDrainsLogDrainsDisabledReason = ClosedEnum< typeof GetAllLogDrainsDrainsLogDrainsDisabledReason >; -export const GetAllLogDrainsSourceLogDrainsKind = { - Integration: "integration", -} as const; -export type GetAllLogDrainsSourceLogDrainsKind = ClosedEnum< - typeof GetAllLogDrainsSourceLogDrainsKind ->; - export type GetAllLogDrainsSource2 = { - kind: GetAllLogDrainsSourceLogDrainsKind; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; integrationConfigurationId: string; }; -export const GetAllLogDrainsSourceKind = { - SelfServed: "self-served", -} as const; -export type GetAllLogDrainsSourceKind = ClosedEnum< - typeof GetAllLogDrainsSourceKind ->; - export type GetAllLogDrainsSource1 = { - kind: GetAllLogDrainsSourceKind; + kind: "self-served"; }; export type GetAllLogDrainsDrainsSource = - | GetAllLogDrainsSource2 - | GetAllLogDrainsSource1; - -export const GetAllLogDrainsFilterV2LogDrainsVersion = { - V2: "v2", -} as const; -export type GetAllLogDrainsFilterV2LogDrainsVersion = ClosedEnum< - typeof GetAllLogDrainsFilterV2LogDrainsVersion ->; - -export const GetAllLogDrainsFilterLogDrainsResponseType = { - Odata: "odata", -} as const; -export type GetAllLogDrainsFilterLogDrainsResponseType = ClosedEnum< - typeof GetAllLogDrainsFilterLogDrainsResponseType ->; + | GetAllLogDrainsSource1 + | GetAllLogDrainsSource2; export type GetAllLogDrainsFilter2 = { - type: GetAllLogDrainsFilterLogDrainsResponseType; + type: "odata"; text: string; }; -export const GetAllLogDrainsFilterLogDrainsType = { - Basic: "basic", -} as const; -export type GetAllLogDrainsFilterLogDrainsType = ClosedEnum< - typeof GetAllLogDrainsFilterLogDrainsType ->; - export type GetAllLogDrainsFilterProject = { ids?: Array | undefined; }; @@ -384,62 +314,41 @@ export type GetAllLogDrainsFilterLogDrainsDeployment = { }; export type GetAllLogDrainsFilter1 = { - type: GetAllLogDrainsFilterLogDrainsType; + type: "basic"; project?: GetAllLogDrainsFilterProject | undefined; log?: GetAllLogDrainsFilterLog | undefined; deployment?: GetAllLogDrainsFilterLogDrainsDeployment | undefined; }; export type GetAllLogDrainsFilterV2LogDrainsFilter = - | GetAllLogDrainsFilter2 - | GetAllLogDrainsFilter1; + | GetAllLogDrainsFilter1 + | GetAllLogDrainsFilter2; export type GetAllLogDrainsFilterV22 = { - version: GetAllLogDrainsFilterV2LogDrainsVersion; - filter: GetAllLogDrainsFilter2 | GetAllLogDrainsFilter1; + version: "v2"; + filter: GetAllLogDrainsFilter1 | GetAllLogDrainsFilter2; }; -export const GetAllLogDrainsFilterV2Version = { - V1: "v1", -} as const; -export type GetAllLogDrainsFilterV2Version = ClosedEnum< - typeof GetAllLogDrainsFilterV2Version ->; - export type GetAllLogDrainsFilterV21 = { - version: GetAllLogDrainsFilterV2Version; + version: "v1"; }; export type GetAllLogDrainsDrainsLogDrainsFilterV2 = - | GetAllLogDrainsFilterV22 - | GetAllLogDrainsFilterV21; - -export const GetAllLogDrainsProjectAccessLogDrainsAccess = { - Some: "some", -} as const; -export type GetAllLogDrainsProjectAccessLogDrainsAccess = ClosedEnum< - typeof GetAllLogDrainsProjectAccessLogDrainsAccess ->; + | GetAllLogDrainsFilterV21 + | GetAllLogDrainsFilterV22; export type GetAllLogDrainsProjectAccess2 = { - access: GetAllLogDrainsProjectAccessLogDrainsAccess; + access: "some"; projectIds: Array; }; -export const GetAllLogDrainsProjectAccessAccess = { - All: "all", -} as const; -export type GetAllLogDrainsProjectAccessAccess = ClosedEnum< - typeof GetAllLogDrainsProjectAccessAccess ->; - export type GetAllLogDrainsProjectAccess1 = { - access: GetAllLogDrainsProjectAccessAccess; + access: "all"; }; export type GetAllLogDrainsDrainsProjectAccess = - | GetAllLogDrainsProjectAccess2 - | GetAllLogDrainsProjectAccess1; + | GetAllLogDrainsProjectAccess1 + | GetAllLogDrainsProjectAccess2; export type GetAllLogDrainsDrains2 = { id: string; @@ -462,15 +371,15 @@ export type GetAllLogDrainsDrains2 = { disabledReason?: GetAllLogDrainsDrainsLogDrainsDisabledReason | undefined; disabledBy?: string | undefined; firstErrorTimestamp?: number | undefined; - source: GetAllLogDrainsSource2 | GetAllLogDrainsSource1; + source: GetAllLogDrainsSource1 | GetAllLogDrainsSource2; filter?: string | undefined; - filterV2?: GetAllLogDrainsFilterV22 | GetAllLogDrainsFilterV21 | undefined; + filterV2?: GetAllLogDrainsFilterV21 | GetAllLogDrainsFilterV22 | undefined; integrationIcon?: string | undefined; integrationConfigurationUri?: string | undefined; integrationWebsite?: string | undefined; projectAccess?: - | GetAllLogDrainsProjectAccess2 | GetAllLogDrainsProjectAccess1 + | GetAllLogDrainsProjectAccess2 | undefined; }; @@ -489,13 +398,6 @@ export type GetAllLogDrainsDrainsSchemas = { speedInsights?: GetAllLogDrainsDrainsLogDrainsSpeedInsights | undefined; }; -export const GetAllLogDrainsDeliveryLogDrainsResponseType = { - Internal: "internal", -} as const; -export type GetAllLogDrainsDeliveryLogDrainsResponseType = ClosedEnum< - typeof GetAllLogDrainsDeliveryLogDrainsResponseType ->; - export const GetAllLogDrainsDeliveryLogDrainsTarget = { VercelOtelTracesDb: "vercel-otel-traces-db", } as const; @@ -504,30 +406,16 @@ export type GetAllLogDrainsDeliveryLogDrainsTarget = ClosedEnum< >; export type GetAllLogDrainsDeliveryLogDrains4 = { - type: GetAllLogDrainsDeliveryLogDrainsResponseType; + type: "internal"; target: GetAllLogDrainsDeliveryLogDrainsTarget; }; -export const GetAllLogDrainsDeliveryLogDrainsType = { - Clickhouse: "clickhouse", -} as const; -export type GetAllLogDrainsDeliveryLogDrainsType = ClosedEnum< - typeof GetAllLogDrainsDeliveryLogDrainsType ->; - export type GetAllLogDrainsDeliveryLogDrains3 = { - type: GetAllLogDrainsDeliveryLogDrainsType; + type: "clickhouse"; endpoint: string; table: string; }; -export const GetAllLogDrainsDeliveryType = { - Otlphttp: "otlphttp", -} as const; -export type GetAllLogDrainsDeliveryType = ClosedEnum< - typeof GetAllLogDrainsDeliveryType ->; - export type GetAllLogDrainsDeliveryEndpoint = { traces: string; }; @@ -556,22 +444,13 @@ export type GetAllLogDrainsDeliveryLogDrainsResponse200Secret = | string; export type GetAllLogDrainsDeliveryLogDrains2 = { - type: GetAllLogDrainsDeliveryType; + type: "otlphttp"; endpoint: GetAllLogDrainsDeliveryEndpoint; encoding: GetAllLogDrainsDeliveryEncoding; headers: { [k: string]: string }; secret?: GetAllLogDrainsSecret2 | string | undefined; }; -export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType = - { - Http: "http", - } as const; -export type GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType = - ClosedEnum< - typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType - >; - export const GetAllLogDrainsDeliveryLogDrainsResponse200Encoding = { Json: "json", Ndjson: "ndjson", @@ -604,8 +483,7 @@ export type GetAllLogDrainsDeliveryLogDrainsResponseSecret = | string; export type GetAllLogDrainsDeliveryLogDrains1 = { - type: - GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType; + type: "http"; endpoint: string; encoding: GetAllLogDrainsDeliveryLogDrainsResponse200Encoding; compression?: GetAllLogDrainsDeliveryCompression | undefined; @@ -660,62 +538,27 @@ export type GetAllLogDrainsDrainsDisabledReason = ClosedEnum< typeof GetAllLogDrainsDrainsDisabledReason >; -export const GetAllLogDrainsSourceLogDrainsResponse200Kind = { - Integration: "integration", -} as const; -export type GetAllLogDrainsSourceLogDrainsResponse200Kind = ClosedEnum< - typeof GetAllLogDrainsSourceLogDrainsResponse200Kind ->; - export type GetAllLogDrainsSourceLogDrains2 = { - kind: GetAllLogDrainsSourceLogDrainsResponse200Kind; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; integrationConfigurationId: string; }; -export const GetAllLogDrainsSourceLogDrainsResponseKind = { - SelfServed: "self-served", -} as const; -export type GetAllLogDrainsSourceLogDrainsResponseKind = ClosedEnum< - typeof GetAllLogDrainsSourceLogDrainsResponseKind ->; - export type GetAllLogDrainsSourceLogDrains1 = { - kind: GetAllLogDrainsSourceLogDrainsResponseKind; + kind: "self-served"; }; export type GetAllLogDrainsDrainsLogDrainsSource = - | GetAllLogDrainsSourceLogDrains2 - | GetAllLogDrainsSourceLogDrains1; - -export const GetAllLogDrainsFilterV2LogDrainsResponse200Version = { - V2: "v2", -} as const; -export type GetAllLogDrainsFilterV2LogDrainsResponse200Version = ClosedEnum< - typeof GetAllLogDrainsFilterV2LogDrainsResponse200Version ->; - -export const GetAllLogDrainsFilterType = { - Odata: "odata", -} as const; -export type GetAllLogDrainsFilterType = ClosedEnum< - typeof GetAllLogDrainsFilterType ->; + | GetAllLogDrainsSourceLogDrains1 + | GetAllLogDrainsSourceLogDrains2; export type GetAllLogDrainsFilterLogDrains2 = { - type: GetAllLogDrainsFilterType; + type: "odata"; text: string; }; -export const GetAllLogDrainsFilterLogDrainsResponse200Type = { - Basic: "basic", -} as const; -export type GetAllLogDrainsFilterLogDrainsResponse200Type = ClosedEnum< - typeof GetAllLogDrainsFilterLogDrainsResponse200Type ->; - export type GetAllLogDrainsFilterLogDrainsProject = { ids?: Array | undefined; }; @@ -751,35 +594,28 @@ export type GetAllLogDrainsFilterDeployment = { }; export type GetAllLogDrainsFilterLogDrains1 = { - type: GetAllLogDrainsFilterLogDrainsResponse200Type; + type: "basic"; project?: GetAllLogDrainsFilterLogDrainsProject | undefined; log?: GetAllLogDrainsFilterLogDrainsLog | undefined; deployment?: GetAllLogDrainsFilterDeployment | undefined; }; export type GetAllLogDrainsFilterV2Filter = - | GetAllLogDrainsFilterLogDrains2 - | GetAllLogDrainsFilterLogDrains1; + | GetAllLogDrainsFilterLogDrains1 + | GetAllLogDrainsFilterLogDrains2; export type GetAllLogDrainsFilterV2LogDrains2 = { - version: GetAllLogDrainsFilterV2LogDrainsResponse200Version; - filter: GetAllLogDrainsFilterLogDrains2 | GetAllLogDrainsFilterLogDrains1; + version: "v2"; + filter: GetAllLogDrainsFilterLogDrains1 | GetAllLogDrainsFilterLogDrains2; }; -export const GetAllLogDrainsFilterV2LogDrainsResponseVersion = { - V1: "v1", -} as const; -export type GetAllLogDrainsFilterV2LogDrainsResponseVersion = ClosedEnum< - typeof GetAllLogDrainsFilterV2LogDrainsResponseVersion ->; - export type GetAllLogDrainsFilterV2LogDrains1 = { - version: GetAllLogDrainsFilterV2LogDrainsResponseVersion; + version: "v1"; }; export type GetAllLogDrainsDrainsFilterV2 = - | GetAllLogDrainsFilterV2LogDrains2 - | GetAllLogDrainsFilterV2LogDrains1; + | GetAllLogDrainsFilterV2LogDrains1 + | GetAllLogDrainsFilterV2LogDrains2; export type GetAllLogDrainsDrains1 = { id: string; @@ -802,11 +638,11 @@ export type GetAllLogDrainsDrains1 = { disabledReason?: GetAllLogDrainsDrainsDisabledReason | undefined; disabledBy?: string | undefined; firstErrorTimestamp?: number | undefined; - source: GetAllLogDrainsSourceLogDrains2 | GetAllLogDrainsSourceLogDrains1; + source: GetAllLogDrainsSourceLogDrains1 | GetAllLogDrainsSourceLogDrains2; filter?: string | undefined; filterV2?: - | GetAllLogDrainsFilterV2LogDrains2 | GetAllLogDrainsFilterV2LogDrains1 + | GetAllLogDrainsFilterV2LogDrains2 | undefined; }; @@ -1209,20 +1045,6 @@ export function getAllLogDrainsDrainsLogDrainsSchemasFromJSON( ); } -/** @internal */ -export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type$inboundSchema: - z.ZodNativeEnum< - typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type - > = z.nativeEnum( - GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type, - ); -/** @internal */ -export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type$outboundSchema: - z.ZodNativeEnum< - typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type - > = - GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type$inboundSchema; - /** @internal */ export const GetAllLogDrainsDeliveryTarget$inboundSchema: z.ZodNativeEnum< typeof GetAllLogDrainsDeliveryTarget @@ -1238,13 +1060,12 @@ export const GetAllLogDrainsDelivery4$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: - GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type$inboundSchema, + type: z.literal("internal"), target: GetAllLogDrainsDeliveryTarget$inboundSchema, }); /** @internal */ export type GetAllLogDrainsDelivery4$Outbound = { - type: string; + type: "internal"; target: string; }; @@ -1254,8 +1075,7 @@ export const GetAllLogDrainsDelivery4$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsDelivery4 > = z.object({ - type: - GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1Type$outboundSchema, + type: z.literal("internal"), target: GetAllLogDrainsDeliveryTarget$outboundSchema, }); @@ -1276,34 +1096,19 @@ export function getAllLogDrainsDelivery4FromJSON( ); } -/** @internal */ -export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType$inboundSchema: - z.ZodNativeEnum< - typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType - > = z.nativeEnum( - GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType, - ); -/** @internal */ -export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType$outboundSchema: - z.ZodNativeEnum< - typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType - > = - GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType$inboundSchema; - /** @internal */ export const GetAllLogDrainsDelivery3$inboundSchema: z.ZodType< GetAllLogDrainsDelivery3, z.ZodTypeDef, unknown > = z.object({ - type: - GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType$inboundSchema, + type: z.literal("clickhouse"), endpoint: z.string(), table: z.string(), }); /** @internal */ export type GetAllLogDrainsDelivery3$Outbound = { - type: string; + type: "clickhouse"; endpoint: string; table: string; }; @@ -1314,8 +1119,7 @@ export const GetAllLogDrainsDelivery3$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsDelivery3 > = z.object({ - type: - GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBodyType$outboundSchema, + type: z.literal("clickhouse"), endpoint: z.string(), table: z.string(), }); @@ -1337,20 +1141,6 @@ export function getAllLogDrainsDelivery3FromJSON( ); } -/** @internal */ -export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType$inboundSchema: - z.ZodNativeEnum< - typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType - > = z.nativeEnum( - GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType, - ); -/** @internal */ -export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType$outboundSchema: - z.ZodNativeEnum< - typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType - > = - GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType$inboundSchema; - /** @internal */ export const GetAllLogDrainsDeliveryLogDrainsEndpoint$inboundSchema: z.ZodType< GetAllLogDrainsDeliveryLogDrainsEndpoint, @@ -1516,8 +1306,7 @@ export const GetAllLogDrainsDelivery2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: - GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType$inboundSchema, + type: z.literal("otlphttp"), endpoint: z.lazy(() => GetAllLogDrainsDeliveryLogDrainsEndpoint$inboundSchema ), @@ -1530,7 +1319,7 @@ export const GetAllLogDrainsDelivery2$inboundSchema: z.ZodType< }); /** @internal */ export type GetAllLogDrainsDelivery2$Outbound = { - type: string; + type: "otlphttp"; endpoint: GetAllLogDrainsDeliveryLogDrainsEndpoint$Outbound; encoding: string; headers: { [k: string]: string }; @@ -1546,8 +1335,7 @@ export const GetAllLogDrainsDelivery2$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsDelivery2 > = z.object({ - type: - GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONType$outboundSchema, + type: z.literal("otlphttp"), endpoint: z.lazy(() => GetAllLogDrainsDeliveryLogDrainsEndpoint$outboundSchema ), @@ -1576,15 +1364,6 @@ export function getAllLogDrainsDelivery2FromJSON( ); } -/** @internal */ -export const GetAllLogDrainsDeliveryLogDrainsResponse200Type$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetAllLogDrainsDeliveryLogDrainsResponse200Type); -/** @internal */ -export const GetAllLogDrainsDeliveryLogDrainsResponse200Type$outboundSchema: - z.ZodNativeEnum = - GetAllLogDrainsDeliveryLogDrainsResponse200Type$inboundSchema; - /** @internal */ export const GetAllLogDrainsDeliveryLogDrainsEncoding$inboundSchema: z.ZodNativeEnum = z @@ -1702,7 +1481,7 @@ export const GetAllLogDrainsDelivery1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetAllLogDrainsDeliveryLogDrainsResponse200Type$inboundSchema, + type: z.literal("http"), endpoint: z.string(), encoding: GetAllLogDrainsDeliveryLogDrainsEncoding$inboundSchema, compression: GetAllLogDrainsDeliveryLogDrainsCompression$inboundSchema @@ -1715,7 +1494,7 @@ export const GetAllLogDrainsDelivery1$inboundSchema: z.ZodType< }); /** @internal */ export type GetAllLogDrainsDelivery1$Outbound = { - type: string; + type: "http"; endpoint: string; encoding: string; compression?: string | undefined; @@ -1729,7 +1508,7 @@ export const GetAllLogDrainsDelivery1$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsDelivery1 > = z.object({ - type: GetAllLogDrainsDeliveryLogDrainsResponse200Type$outboundSchema, + type: z.literal("http"), endpoint: z.string(), encoding: GetAllLogDrainsDeliveryLogDrainsEncoding$outboundSchema, compression: GetAllLogDrainsDeliveryLogDrainsCompression$outboundSchema @@ -1897,22 +1676,13 @@ export const GetAllLogDrainsDrainsLogDrainsDisabledReason$outboundSchema: z.ZodNativeEnum = GetAllLogDrainsDrainsLogDrainsDisabledReason$inboundSchema; -/** @internal */ -export const GetAllLogDrainsSourceLogDrainsKind$inboundSchema: z.ZodNativeEnum< - typeof GetAllLogDrainsSourceLogDrainsKind -> = z.nativeEnum(GetAllLogDrainsSourceLogDrainsKind); -/** @internal */ -export const GetAllLogDrainsSourceLogDrainsKind$outboundSchema: z.ZodNativeEnum< - typeof GetAllLogDrainsSourceLogDrainsKind -> = GetAllLogDrainsSourceLogDrainsKind$inboundSchema; - /** @internal */ export const GetAllLogDrainsSource2$inboundSchema: z.ZodType< GetAllLogDrainsSource2, z.ZodTypeDef, unknown > = z.object({ - kind: GetAllLogDrainsSourceLogDrainsKind$inboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -1920,7 +1690,7 @@ export const GetAllLogDrainsSource2$inboundSchema: z.ZodType< }); /** @internal */ export type GetAllLogDrainsSource2$Outbound = { - kind: string; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; @@ -1933,7 +1703,7 @@ export const GetAllLogDrainsSource2$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsSource2 > = z.object({ - kind: GetAllLogDrainsSourceLogDrainsKind$outboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -1957,26 +1727,17 @@ export function getAllLogDrainsSource2FromJSON( ); } -/** @internal */ -export const GetAllLogDrainsSourceKind$inboundSchema: z.ZodNativeEnum< - typeof GetAllLogDrainsSourceKind -> = z.nativeEnum(GetAllLogDrainsSourceKind); -/** @internal */ -export const GetAllLogDrainsSourceKind$outboundSchema: z.ZodNativeEnum< - typeof GetAllLogDrainsSourceKind -> = GetAllLogDrainsSourceKind$inboundSchema; - /** @internal */ export const GetAllLogDrainsSource1$inboundSchema: z.ZodType< GetAllLogDrainsSource1, z.ZodTypeDef, unknown > = z.object({ - kind: GetAllLogDrainsSourceKind$inboundSchema, + kind: z.literal("self-served"), }); /** @internal */ export type GetAllLogDrainsSource1$Outbound = { - kind: string; + kind: "self-served"; }; /** @internal */ @@ -1985,7 +1746,7 @@ export const GetAllLogDrainsSource1$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsSource1 > = z.object({ - kind: GetAllLogDrainsSourceKind$outboundSchema, + kind: z.literal("self-served"), }); export function getAllLogDrainsSource1ToJSON( @@ -2011,13 +1772,13 @@ export const GetAllLogDrainsDrainsSource$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetAllLogDrainsSource2$inboundSchema), z.lazy(() => GetAllLogDrainsSource1$inboundSchema), + z.lazy(() => GetAllLogDrainsSource2$inboundSchema), ]); /** @internal */ export type GetAllLogDrainsDrainsSource$Outbound = - | GetAllLogDrainsSource2$Outbound - | GetAllLogDrainsSource1$Outbound; + | GetAllLogDrainsSource1$Outbound + | GetAllLogDrainsSource2$Outbound; /** @internal */ export const GetAllLogDrainsDrainsSource$outboundSchema: z.ZodType< @@ -2025,8 +1786,8 @@ export const GetAllLogDrainsDrainsSource$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsDrainsSource > = z.union([ - z.lazy(() => GetAllLogDrainsSource2$outboundSchema), z.lazy(() => GetAllLogDrainsSource1$outboundSchema), + z.lazy(() => GetAllLogDrainsSource2$outboundSchema), ]); export function getAllLogDrainsDrainsSourceToJSON( @@ -2048,36 +1809,18 @@ export function getAllLogDrainsDrainsSourceFromJSON( ); } -/** @internal */ -export const GetAllLogDrainsFilterV2LogDrainsVersion$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetAllLogDrainsFilterV2LogDrainsVersion); -/** @internal */ -export const GetAllLogDrainsFilterV2LogDrainsVersion$outboundSchema: - z.ZodNativeEnum = - GetAllLogDrainsFilterV2LogDrainsVersion$inboundSchema; - -/** @internal */ -export const GetAllLogDrainsFilterLogDrainsResponseType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetAllLogDrainsFilterLogDrainsResponseType); -/** @internal */ -export const GetAllLogDrainsFilterLogDrainsResponseType$outboundSchema: - z.ZodNativeEnum = - GetAllLogDrainsFilterLogDrainsResponseType$inboundSchema; - /** @internal */ export const GetAllLogDrainsFilter2$inboundSchema: z.ZodType< GetAllLogDrainsFilter2, z.ZodTypeDef, unknown > = z.object({ - type: GetAllLogDrainsFilterLogDrainsResponseType$inboundSchema, + type: z.literal("odata"), text: z.string(), }); /** @internal */ export type GetAllLogDrainsFilter2$Outbound = { - type: string; + type: "odata"; text: string; }; @@ -2087,7 +1830,7 @@ export const GetAllLogDrainsFilter2$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsFilter2 > = z.object({ - type: GetAllLogDrainsFilterLogDrainsResponseType$outboundSchema, + type: z.literal("odata"), text: z.string(), }); @@ -2108,15 +1851,6 @@ export function getAllLogDrainsFilter2FromJSON( ); } -/** @internal */ -export const GetAllLogDrainsFilterLogDrainsType$inboundSchema: z.ZodNativeEnum< - typeof GetAllLogDrainsFilterLogDrainsType -> = z.nativeEnum(GetAllLogDrainsFilterLogDrainsType); -/** @internal */ -export const GetAllLogDrainsFilterLogDrainsType$outboundSchema: z.ZodNativeEnum< - typeof GetAllLogDrainsFilterLogDrainsType -> = GetAllLogDrainsFilterLogDrainsType$inboundSchema; - /** @internal */ export const GetAllLogDrainsFilterProject$inboundSchema: z.ZodType< GetAllLogDrainsFilterProject, @@ -2287,7 +2021,7 @@ export const GetAllLogDrainsFilter1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetAllLogDrainsFilterLogDrainsType$inboundSchema, + type: z.literal("basic"), project: z.lazy(() => GetAllLogDrainsFilterProject$inboundSchema).optional(), log: z.lazy(() => GetAllLogDrainsFilterLog$inboundSchema).optional(), deployment: z.lazy(() => @@ -2296,7 +2030,7 @@ export const GetAllLogDrainsFilter1$inboundSchema: z.ZodType< }); /** @internal */ export type GetAllLogDrainsFilter1$Outbound = { - type: string; + type: "basic"; project?: GetAllLogDrainsFilterProject$Outbound | undefined; log?: GetAllLogDrainsFilterLog$Outbound | undefined; deployment?: GetAllLogDrainsFilterLogDrainsDeployment$Outbound | undefined; @@ -2308,7 +2042,7 @@ export const GetAllLogDrainsFilter1$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsFilter1 > = z.object({ - type: GetAllLogDrainsFilterLogDrainsType$outboundSchema, + type: z.literal("basic"), project: z.lazy(() => GetAllLogDrainsFilterProject$outboundSchema).optional(), log: z.lazy(() => GetAllLogDrainsFilterLog$outboundSchema).optional(), deployment: z.lazy(() => @@ -2339,13 +2073,13 @@ export const GetAllLogDrainsFilterV2LogDrainsFilter$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetAllLogDrainsFilter2$inboundSchema), z.lazy(() => GetAllLogDrainsFilter1$inboundSchema), + z.lazy(() => GetAllLogDrainsFilter2$inboundSchema), ]); /** @internal */ export type GetAllLogDrainsFilterV2LogDrainsFilter$Outbound = - | GetAllLogDrainsFilter2$Outbound - | GetAllLogDrainsFilter1$Outbound; + | GetAllLogDrainsFilter1$Outbound + | GetAllLogDrainsFilter2$Outbound; /** @internal */ export const GetAllLogDrainsFilterV2LogDrainsFilter$outboundSchema: z.ZodType< @@ -2353,8 +2087,8 @@ export const GetAllLogDrainsFilterV2LogDrainsFilter$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsFilterV2LogDrainsFilter > = z.union([ - z.lazy(() => GetAllLogDrainsFilter2$outboundSchema), z.lazy(() => GetAllLogDrainsFilter1$outboundSchema), + z.lazy(() => GetAllLogDrainsFilter2$outboundSchema), ]); export function getAllLogDrainsFilterV2LogDrainsFilterToJSON( @@ -2384,16 +2118,16 @@ export const GetAllLogDrainsFilterV22$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - version: GetAllLogDrainsFilterV2LogDrainsVersion$inboundSchema, + version: z.literal("v2"), filter: z.union([ - z.lazy(() => GetAllLogDrainsFilter2$inboundSchema), z.lazy(() => GetAllLogDrainsFilter1$inboundSchema), + z.lazy(() => GetAllLogDrainsFilter2$inboundSchema), ]), }); /** @internal */ export type GetAllLogDrainsFilterV22$Outbound = { - version: string; - filter: GetAllLogDrainsFilter2$Outbound | GetAllLogDrainsFilter1$Outbound; + version: "v2"; + filter: GetAllLogDrainsFilter1$Outbound | GetAllLogDrainsFilter2$Outbound; }; /** @internal */ @@ -2402,10 +2136,10 @@ export const GetAllLogDrainsFilterV22$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsFilterV22 > = z.object({ - version: GetAllLogDrainsFilterV2LogDrainsVersion$outboundSchema, + version: z.literal("v2"), filter: z.union([ - z.lazy(() => GetAllLogDrainsFilter2$outboundSchema), z.lazy(() => GetAllLogDrainsFilter1$outboundSchema), + z.lazy(() => GetAllLogDrainsFilter2$outboundSchema), ]), }); @@ -2426,26 +2160,17 @@ export function getAllLogDrainsFilterV22FromJSON( ); } -/** @internal */ -export const GetAllLogDrainsFilterV2Version$inboundSchema: z.ZodNativeEnum< - typeof GetAllLogDrainsFilterV2Version -> = z.nativeEnum(GetAllLogDrainsFilterV2Version); -/** @internal */ -export const GetAllLogDrainsFilterV2Version$outboundSchema: z.ZodNativeEnum< - typeof GetAllLogDrainsFilterV2Version -> = GetAllLogDrainsFilterV2Version$inboundSchema; - /** @internal */ export const GetAllLogDrainsFilterV21$inboundSchema: z.ZodType< GetAllLogDrainsFilterV21, z.ZodTypeDef, unknown > = z.object({ - version: GetAllLogDrainsFilterV2Version$inboundSchema, + version: z.literal("v1"), }); /** @internal */ export type GetAllLogDrainsFilterV21$Outbound = { - version: string; + version: "v1"; }; /** @internal */ @@ -2454,7 +2179,7 @@ export const GetAllLogDrainsFilterV21$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsFilterV21 > = z.object({ - version: GetAllLogDrainsFilterV2Version$outboundSchema, + version: z.literal("v1"), }); export function getAllLogDrainsFilterV21ToJSON( @@ -2480,13 +2205,13 @@ export const GetAllLogDrainsDrainsLogDrainsFilterV2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetAllLogDrainsFilterV22$inboundSchema), z.lazy(() => GetAllLogDrainsFilterV21$inboundSchema), + z.lazy(() => GetAllLogDrainsFilterV22$inboundSchema), ]); /** @internal */ export type GetAllLogDrainsDrainsLogDrainsFilterV2$Outbound = - | GetAllLogDrainsFilterV22$Outbound - | GetAllLogDrainsFilterV21$Outbound; + | GetAllLogDrainsFilterV21$Outbound + | GetAllLogDrainsFilterV22$Outbound; /** @internal */ export const GetAllLogDrainsDrainsLogDrainsFilterV2$outboundSchema: z.ZodType< @@ -2494,8 +2219,8 @@ export const GetAllLogDrainsDrainsLogDrainsFilterV2$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsDrainsLogDrainsFilterV2 > = z.union([ - z.lazy(() => GetAllLogDrainsFilterV22$outboundSchema), z.lazy(() => GetAllLogDrainsFilterV21$outboundSchema), + z.lazy(() => GetAllLogDrainsFilterV22$outboundSchema), ]); export function getAllLogDrainsDrainsLogDrainsFilterV2ToJSON( @@ -2519,27 +2244,18 @@ export function getAllLogDrainsDrainsLogDrainsFilterV2FromJSON( ); } -/** @internal */ -export const GetAllLogDrainsProjectAccessLogDrainsAccess$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetAllLogDrainsProjectAccessLogDrainsAccess); -/** @internal */ -export const GetAllLogDrainsProjectAccessLogDrainsAccess$outboundSchema: - z.ZodNativeEnum = - GetAllLogDrainsProjectAccessLogDrainsAccess$inboundSchema; - /** @internal */ export const GetAllLogDrainsProjectAccess2$inboundSchema: z.ZodType< GetAllLogDrainsProjectAccess2, z.ZodTypeDef, unknown > = z.object({ - access: GetAllLogDrainsProjectAccessLogDrainsAccess$inboundSchema, + access: z.literal("some"), projectIds: z.array(z.string()), }); /** @internal */ export type GetAllLogDrainsProjectAccess2$Outbound = { - access: string; + access: "some"; projectIds: Array; }; @@ -2549,7 +2265,7 @@ export const GetAllLogDrainsProjectAccess2$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsProjectAccess2 > = z.object({ - access: GetAllLogDrainsProjectAccessLogDrainsAccess$outboundSchema, + access: z.literal("some"), projectIds: z.array(z.string()), }); @@ -2572,26 +2288,17 @@ export function getAllLogDrainsProjectAccess2FromJSON( ); } -/** @internal */ -export const GetAllLogDrainsProjectAccessAccess$inboundSchema: z.ZodNativeEnum< - typeof GetAllLogDrainsProjectAccessAccess -> = z.nativeEnum(GetAllLogDrainsProjectAccessAccess); -/** @internal */ -export const GetAllLogDrainsProjectAccessAccess$outboundSchema: z.ZodNativeEnum< - typeof GetAllLogDrainsProjectAccessAccess -> = GetAllLogDrainsProjectAccessAccess$inboundSchema; - /** @internal */ export const GetAllLogDrainsProjectAccess1$inboundSchema: z.ZodType< GetAllLogDrainsProjectAccess1, z.ZodTypeDef, unknown > = z.object({ - access: GetAllLogDrainsProjectAccessAccess$inboundSchema, + access: z.literal("all"), }); /** @internal */ export type GetAllLogDrainsProjectAccess1$Outbound = { - access: string; + access: "all"; }; /** @internal */ @@ -2600,7 +2307,7 @@ export const GetAllLogDrainsProjectAccess1$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsProjectAccess1 > = z.object({ - access: GetAllLogDrainsProjectAccessAccess$outboundSchema, + access: z.literal("all"), }); export function getAllLogDrainsProjectAccess1ToJSON( @@ -2628,13 +2335,13 @@ export const GetAllLogDrainsDrainsProjectAccess$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetAllLogDrainsProjectAccess2$inboundSchema), z.lazy(() => GetAllLogDrainsProjectAccess1$inboundSchema), + z.lazy(() => GetAllLogDrainsProjectAccess2$inboundSchema), ]); /** @internal */ export type GetAllLogDrainsDrainsProjectAccess$Outbound = - | GetAllLogDrainsProjectAccess2$Outbound - | GetAllLogDrainsProjectAccess1$Outbound; + | GetAllLogDrainsProjectAccess1$Outbound + | GetAllLogDrainsProjectAccess2$Outbound; /** @internal */ export const GetAllLogDrainsDrainsProjectAccess$outboundSchema: z.ZodType< @@ -2642,8 +2349,8 @@ export const GetAllLogDrainsDrainsProjectAccess$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsDrainsProjectAccess > = z.union([ - z.lazy(() => GetAllLogDrainsProjectAccess2$outboundSchema), z.lazy(() => GetAllLogDrainsProjectAccess1$outboundSchema), + z.lazy(() => GetAllLogDrainsProjectAccess2$outboundSchema), ]); export function getAllLogDrainsDrainsProjectAccessToJSON( @@ -2697,20 +2404,20 @@ export const GetAllLogDrainsDrains2$inboundSchema: z.ZodType< disabledBy: z.string().optional(), firstErrorTimestamp: z.number().optional(), source: z.union([ - z.lazy(() => GetAllLogDrainsSource2$inboundSchema), z.lazy(() => GetAllLogDrainsSource1$inboundSchema), + z.lazy(() => GetAllLogDrainsSource2$inboundSchema), ]), filter: z.string().optional(), filterV2: z.union([ - z.lazy(() => GetAllLogDrainsFilterV22$inboundSchema), z.lazy(() => GetAllLogDrainsFilterV21$inboundSchema), + z.lazy(() => GetAllLogDrainsFilterV22$inboundSchema), ]).optional(), integrationIcon: z.string().optional(), integrationConfigurationUri: z.string().optional(), integrationWebsite: z.string().optional(), projectAccess: z.union([ - z.lazy(() => GetAllLogDrainsProjectAccess2$inboundSchema), z.lazy(() => GetAllLogDrainsProjectAccess1$inboundSchema), + z.lazy(() => GetAllLogDrainsProjectAccess2$inboundSchema), ]).optional(), }); /** @internal */ @@ -2735,18 +2442,18 @@ export type GetAllLogDrainsDrains2$Outbound = { disabledReason?: string | undefined; disabledBy?: string | undefined; firstErrorTimestamp?: number | undefined; - source: GetAllLogDrainsSource2$Outbound | GetAllLogDrainsSource1$Outbound; + source: GetAllLogDrainsSource1$Outbound | GetAllLogDrainsSource2$Outbound; filter?: string | undefined; filterV2?: - | GetAllLogDrainsFilterV22$Outbound | GetAllLogDrainsFilterV21$Outbound + | GetAllLogDrainsFilterV22$Outbound | undefined; integrationIcon?: string | undefined; integrationConfigurationUri?: string | undefined; integrationWebsite?: string | undefined; projectAccess?: - | GetAllLogDrainsProjectAccess2$Outbound | GetAllLogDrainsProjectAccess1$Outbound + | GetAllLogDrainsProjectAccess2$Outbound | undefined; }; @@ -2781,20 +2488,20 @@ export const GetAllLogDrainsDrains2$outboundSchema: z.ZodType< disabledBy: z.string().optional(), firstErrorTimestamp: z.number().optional(), source: z.union([ - z.lazy(() => GetAllLogDrainsSource2$outboundSchema), z.lazy(() => GetAllLogDrainsSource1$outboundSchema), + z.lazy(() => GetAllLogDrainsSource2$outboundSchema), ]), filter: z.string().optional(), filterV2: z.union([ - z.lazy(() => GetAllLogDrainsFilterV22$outboundSchema), z.lazy(() => GetAllLogDrainsFilterV21$outboundSchema), + z.lazy(() => GetAllLogDrainsFilterV22$outboundSchema), ]).optional(), integrationIcon: z.string().optional(), integrationConfigurationUri: z.string().optional(), integrationWebsite: z.string().optional(), projectAccess: z.union([ - z.lazy(() => GetAllLogDrainsProjectAccess2$outboundSchema), z.lazy(() => GetAllLogDrainsProjectAccess1$outboundSchema), + z.lazy(() => GetAllLogDrainsProjectAccess2$outboundSchema), ]).optional(), }); @@ -3034,15 +2741,6 @@ export function getAllLogDrainsDrainsSchemasFromJSON( ); } -/** @internal */ -export const GetAllLogDrainsDeliveryLogDrainsResponseType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetAllLogDrainsDeliveryLogDrainsResponseType); -/** @internal */ -export const GetAllLogDrainsDeliveryLogDrainsResponseType$outboundSchema: - z.ZodNativeEnum = - GetAllLogDrainsDeliveryLogDrainsResponseType$inboundSchema; - /** @internal */ export const GetAllLogDrainsDeliveryLogDrainsTarget$inboundSchema: z.ZodNativeEnum = z.nativeEnum( @@ -3059,12 +2757,12 @@ export const GetAllLogDrainsDeliveryLogDrains4$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetAllLogDrainsDeliveryLogDrainsResponseType$inboundSchema, + type: z.literal("internal"), target: GetAllLogDrainsDeliveryLogDrainsTarget$inboundSchema, }); /** @internal */ export type GetAllLogDrainsDeliveryLogDrains4$Outbound = { - type: string; + type: "internal"; target: string; }; @@ -3074,7 +2772,7 @@ export const GetAllLogDrainsDeliveryLogDrains4$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsDeliveryLogDrains4 > = z.object({ - type: GetAllLogDrainsDeliveryLogDrainsResponseType$outboundSchema, + type: z.literal("internal"), target: GetAllLogDrainsDeliveryLogDrainsTarget$outboundSchema, }); @@ -3097,29 +2795,19 @@ export function getAllLogDrainsDeliveryLogDrains4FromJSON( ); } -/** @internal */ -export const GetAllLogDrainsDeliveryLogDrainsType$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - GetAllLogDrainsDeliveryLogDrainsType, - ); -/** @internal */ -export const GetAllLogDrainsDeliveryLogDrainsType$outboundSchema: - z.ZodNativeEnum = - GetAllLogDrainsDeliveryLogDrainsType$inboundSchema; - /** @internal */ export const GetAllLogDrainsDeliveryLogDrains3$inboundSchema: z.ZodType< GetAllLogDrainsDeliveryLogDrains3, z.ZodTypeDef, unknown > = z.object({ - type: GetAllLogDrainsDeliveryLogDrainsType$inboundSchema, + type: z.literal("clickhouse"), endpoint: z.string(), table: z.string(), }); /** @internal */ export type GetAllLogDrainsDeliveryLogDrains3$Outbound = { - type: string; + type: "clickhouse"; endpoint: string; table: string; }; @@ -3130,7 +2818,7 @@ export const GetAllLogDrainsDeliveryLogDrains3$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsDeliveryLogDrains3 > = z.object({ - type: GetAllLogDrainsDeliveryLogDrainsType$outboundSchema, + type: z.literal("clickhouse"), endpoint: z.string(), table: z.string(), }); @@ -3154,15 +2842,6 @@ export function getAllLogDrainsDeliveryLogDrains3FromJSON( ); } -/** @internal */ -export const GetAllLogDrainsDeliveryType$inboundSchema: z.ZodNativeEnum< - typeof GetAllLogDrainsDeliveryType -> = z.nativeEnum(GetAllLogDrainsDeliveryType); -/** @internal */ -export const GetAllLogDrainsDeliveryType$outboundSchema: z.ZodNativeEnum< - typeof GetAllLogDrainsDeliveryType -> = GetAllLogDrainsDeliveryType$inboundSchema; - /** @internal */ export const GetAllLogDrainsDeliveryEndpoint$inboundSchema: z.ZodType< GetAllLogDrainsDeliveryEndpoint, @@ -3316,7 +2995,7 @@ export const GetAllLogDrainsDeliveryLogDrains2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetAllLogDrainsDeliveryType$inboundSchema, + type: z.literal("otlphttp"), endpoint: z.lazy(() => GetAllLogDrainsDeliveryEndpoint$inboundSchema), encoding: GetAllLogDrainsDeliveryEncoding$inboundSchema, headers: z.record(z.string()), @@ -3327,7 +3006,7 @@ export const GetAllLogDrainsDeliveryLogDrains2$inboundSchema: z.ZodType< }); /** @internal */ export type GetAllLogDrainsDeliveryLogDrains2$Outbound = { - type: string; + type: "otlphttp"; endpoint: GetAllLogDrainsDeliveryEndpoint$Outbound; encoding: string; headers: { [k: string]: string }; @@ -3340,7 +3019,7 @@ export const GetAllLogDrainsDeliveryLogDrains2$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsDeliveryLogDrains2 > = z.object({ - type: GetAllLogDrainsDeliveryType$outboundSchema, + type: z.literal("otlphttp"), endpoint: z.lazy(() => GetAllLogDrainsDeliveryEndpoint$outboundSchema), encoding: GetAllLogDrainsDeliveryEncoding$outboundSchema, headers: z.record(z.string()), @@ -3369,20 +3048,6 @@ export function getAllLogDrainsDeliveryLogDrains2FromJSON( ); } -/** @internal */ -export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType$inboundSchema: - z.ZodNativeEnum< - typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType - > = z.nativeEnum( - GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType, - ); -/** @internal */ -export const GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType$outboundSchema: - z.ZodNativeEnum< - typeof GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType - > = - GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType$inboundSchema; - /** @internal */ export const GetAllLogDrainsDeliveryLogDrainsResponse200Encoding$inboundSchema: z.ZodNativeEnum = @@ -3515,8 +3180,7 @@ export const GetAllLogDrainsDeliveryLogDrains1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: - GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType$inboundSchema, + type: z.literal("http"), endpoint: z.string(), encoding: GetAllLogDrainsDeliveryLogDrainsResponse200Encoding$inboundSchema, compression: GetAllLogDrainsDeliveryCompression$inboundSchema.optional(), @@ -3528,7 +3192,7 @@ export const GetAllLogDrainsDeliveryLogDrains1$inboundSchema: z.ZodType< }); /** @internal */ export type GetAllLogDrainsDeliveryLogDrains1$Outbound = { - type: string; + type: "http"; endpoint: string; encoding: string; compression?: string | undefined; @@ -3545,8 +3209,7 @@ export const GetAllLogDrainsDeliveryLogDrains1$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsDeliveryLogDrains1 > = z.object({ - type: - GetAllLogDrainsDeliveryLogDrainsResponse200ApplicationJSONResponseBody1DrainsType$outboundSchema, + type: z.literal("http"), endpoint: z.string(), encoding: GetAllLogDrainsDeliveryLogDrainsResponse200Encoding$outboundSchema, compression: GetAllLogDrainsDeliveryCompression$outboundSchema.optional(), @@ -3712,22 +3375,13 @@ export const GetAllLogDrainsDrainsDisabledReason$outboundSchema: z.ZodNativeEnum = GetAllLogDrainsDrainsDisabledReason$inboundSchema; -/** @internal */ -export const GetAllLogDrainsSourceLogDrainsResponse200Kind$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetAllLogDrainsSourceLogDrainsResponse200Kind); -/** @internal */ -export const GetAllLogDrainsSourceLogDrainsResponse200Kind$outboundSchema: - z.ZodNativeEnum = - GetAllLogDrainsSourceLogDrainsResponse200Kind$inboundSchema; - /** @internal */ export const GetAllLogDrainsSourceLogDrains2$inboundSchema: z.ZodType< GetAllLogDrainsSourceLogDrains2, z.ZodTypeDef, unknown > = z.object({ - kind: GetAllLogDrainsSourceLogDrainsResponse200Kind$inboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -3735,7 +3389,7 @@ export const GetAllLogDrainsSourceLogDrains2$inboundSchema: z.ZodType< }); /** @internal */ export type GetAllLogDrainsSourceLogDrains2$Outbound = { - kind: string; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; @@ -3748,7 +3402,7 @@ export const GetAllLogDrainsSourceLogDrains2$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsSourceLogDrains2 > = z.object({ - kind: GetAllLogDrainsSourceLogDrainsResponse200Kind$outboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -3774,26 +3428,17 @@ export function getAllLogDrainsSourceLogDrains2FromJSON( ); } -/** @internal */ -export const GetAllLogDrainsSourceLogDrainsResponseKind$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetAllLogDrainsSourceLogDrainsResponseKind); -/** @internal */ -export const GetAllLogDrainsSourceLogDrainsResponseKind$outboundSchema: - z.ZodNativeEnum = - GetAllLogDrainsSourceLogDrainsResponseKind$inboundSchema; - /** @internal */ export const GetAllLogDrainsSourceLogDrains1$inboundSchema: z.ZodType< GetAllLogDrainsSourceLogDrains1, z.ZodTypeDef, unknown > = z.object({ - kind: GetAllLogDrainsSourceLogDrainsResponseKind$inboundSchema, + kind: z.literal("self-served"), }); /** @internal */ export type GetAllLogDrainsSourceLogDrains1$Outbound = { - kind: string; + kind: "self-served"; }; /** @internal */ @@ -3802,7 +3447,7 @@ export const GetAllLogDrainsSourceLogDrains1$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsSourceLogDrains1 > = z.object({ - kind: GetAllLogDrainsSourceLogDrainsResponseKind$outboundSchema, + kind: z.literal("self-served"), }); export function getAllLogDrainsSourceLogDrains1ToJSON( @@ -3830,13 +3475,13 @@ export const GetAllLogDrainsDrainsLogDrainsSource$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetAllLogDrainsSourceLogDrains2$inboundSchema), z.lazy(() => GetAllLogDrainsSourceLogDrains1$inboundSchema), + z.lazy(() => GetAllLogDrainsSourceLogDrains2$inboundSchema), ]); /** @internal */ export type GetAllLogDrainsDrainsLogDrainsSource$Outbound = - | GetAllLogDrainsSourceLogDrains2$Outbound - | GetAllLogDrainsSourceLogDrains1$Outbound; + | GetAllLogDrainsSourceLogDrains1$Outbound + | GetAllLogDrainsSourceLogDrains2$Outbound; /** @internal */ export const GetAllLogDrainsDrainsLogDrainsSource$outboundSchema: z.ZodType< @@ -3844,8 +3489,8 @@ export const GetAllLogDrainsDrainsLogDrainsSource$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsDrainsLogDrainsSource > = z.union([ - z.lazy(() => GetAllLogDrainsSourceLogDrains2$outboundSchema), z.lazy(() => GetAllLogDrainsSourceLogDrains1$outboundSchema), + z.lazy(() => GetAllLogDrainsSourceLogDrains2$outboundSchema), ]); export function getAllLogDrainsDrainsLogDrainsSourceToJSON( @@ -3868,36 +3513,18 @@ export function getAllLogDrainsDrainsLogDrainsSourceFromJSON( ); } -/** @internal */ -export const GetAllLogDrainsFilterV2LogDrainsResponse200Version$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetAllLogDrainsFilterV2LogDrainsResponse200Version); -/** @internal */ -export const GetAllLogDrainsFilterV2LogDrainsResponse200Version$outboundSchema: - z.ZodNativeEnum = - GetAllLogDrainsFilterV2LogDrainsResponse200Version$inboundSchema; - -/** @internal */ -export const GetAllLogDrainsFilterType$inboundSchema: z.ZodNativeEnum< - typeof GetAllLogDrainsFilterType -> = z.nativeEnum(GetAllLogDrainsFilterType); -/** @internal */ -export const GetAllLogDrainsFilterType$outboundSchema: z.ZodNativeEnum< - typeof GetAllLogDrainsFilterType -> = GetAllLogDrainsFilterType$inboundSchema; - /** @internal */ export const GetAllLogDrainsFilterLogDrains2$inboundSchema: z.ZodType< GetAllLogDrainsFilterLogDrains2, z.ZodTypeDef, unknown > = z.object({ - type: GetAllLogDrainsFilterType$inboundSchema, + type: z.literal("odata"), text: z.string(), }); /** @internal */ export type GetAllLogDrainsFilterLogDrains2$Outbound = { - type: string; + type: "odata"; text: string; }; @@ -3907,7 +3534,7 @@ export const GetAllLogDrainsFilterLogDrains2$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsFilterLogDrains2 > = z.object({ - type: GetAllLogDrainsFilterType$outboundSchema, + type: z.literal("odata"), text: z.string(), }); @@ -3930,15 +3557,6 @@ export function getAllLogDrainsFilterLogDrains2FromJSON( ); } -/** @internal */ -export const GetAllLogDrainsFilterLogDrainsResponse200Type$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetAllLogDrainsFilterLogDrainsResponse200Type); -/** @internal */ -export const GetAllLogDrainsFilterLogDrainsResponse200Type$outboundSchema: - z.ZodNativeEnum = - GetAllLogDrainsFilterLogDrainsResponse200Type$inboundSchema; - /** @internal */ export const GetAllLogDrainsFilterLogDrainsProject$inboundSchema: z.ZodType< GetAllLogDrainsFilterLogDrainsProject, @@ -4100,7 +3718,7 @@ export const GetAllLogDrainsFilterLogDrains1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetAllLogDrainsFilterLogDrainsResponse200Type$inboundSchema, + type: z.literal("basic"), project: z.lazy(() => GetAllLogDrainsFilterLogDrainsProject$inboundSchema) .optional(), log: z.lazy(() => GetAllLogDrainsFilterLogDrainsLog$inboundSchema).optional(), @@ -4109,7 +3727,7 @@ export const GetAllLogDrainsFilterLogDrains1$inboundSchema: z.ZodType< }); /** @internal */ export type GetAllLogDrainsFilterLogDrains1$Outbound = { - type: string; + type: "basic"; project?: GetAllLogDrainsFilterLogDrainsProject$Outbound | undefined; log?: GetAllLogDrainsFilterLogDrainsLog$Outbound | undefined; deployment?: GetAllLogDrainsFilterDeployment$Outbound | undefined; @@ -4121,7 +3739,7 @@ export const GetAllLogDrainsFilterLogDrains1$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsFilterLogDrains1 > = z.object({ - type: GetAllLogDrainsFilterLogDrainsResponse200Type$outboundSchema, + type: z.literal("basic"), project: z.lazy(() => GetAllLogDrainsFilterLogDrainsProject$outboundSchema) .optional(), log: z.lazy(() => GetAllLogDrainsFilterLogDrainsLog$outboundSchema) @@ -4155,13 +3773,13 @@ export const GetAllLogDrainsFilterV2Filter$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetAllLogDrainsFilterLogDrains2$inboundSchema), z.lazy(() => GetAllLogDrainsFilterLogDrains1$inboundSchema), + z.lazy(() => GetAllLogDrainsFilterLogDrains2$inboundSchema), ]); /** @internal */ export type GetAllLogDrainsFilterV2Filter$Outbound = - | GetAllLogDrainsFilterLogDrains2$Outbound - | GetAllLogDrainsFilterLogDrains1$Outbound; + | GetAllLogDrainsFilterLogDrains1$Outbound + | GetAllLogDrainsFilterLogDrains2$Outbound; /** @internal */ export const GetAllLogDrainsFilterV2Filter$outboundSchema: z.ZodType< @@ -4169,8 +3787,8 @@ export const GetAllLogDrainsFilterV2Filter$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsFilterV2Filter > = z.union([ - z.lazy(() => GetAllLogDrainsFilterLogDrains2$outboundSchema), z.lazy(() => GetAllLogDrainsFilterLogDrains1$outboundSchema), + z.lazy(() => GetAllLogDrainsFilterLogDrains2$outboundSchema), ]); export function getAllLogDrainsFilterV2FilterToJSON( @@ -4198,18 +3816,18 @@ export const GetAllLogDrainsFilterV2LogDrains2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - version: GetAllLogDrainsFilterV2LogDrainsResponse200Version$inboundSchema, + version: z.literal("v2"), filter: z.union([ - z.lazy(() => GetAllLogDrainsFilterLogDrains2$inboundSchema), z.lazy(() => GetAllLogDrainsFilterLogDrains1$inboundSchema), + z.lazy(() => GetAllLogDrainsFilterLogDrains2$inboundSchema), ]), }); /** @internal */ export type GetAllLogDrainsFilterV2LogDrains2$Outbound = { - version: string; + version: "v2"; filter: - | GetAllLogDrainsFilterLogDrains2$Outbound - | GetAllLogDrainsFilterLogDrains1$Outbound; + | GetAllLogDrainsFilterLogDrains1$Outbound + | GetAllLogDrainsFilterLogDrains2$Outbound; }; /** @internal */ @@ -4218,10 +3836,10 @@ export const GetAllLogDrainsFilterV2LogDrains2$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsFilterV2LogDrains2 > = z.object({ - version: GetAllLogDrainsFilterV2LogDrainsResponse200Version$outboundSchema, + version: z.literal("v2"), filter: z.union([ - z.lazy(() => GetAllLogDrainsFilterLogDrains2$outboundSchema), z.lazy(() => GetAllLogDrainsFilterLogDrains1$outboundSchema), + z.lazy(() => GetAllLogDrainsFilterLogDrains2$outboundSchema), ]), }); @@ -4244,26 +3862,17 @@ export function getAllLogDrainsFilterV2LogDrains2FromJSON( ); } -/** @internal */ -export const GetAllLogDrainsFilterV2LogDrainsResponseVersion$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetAllLogDrainsFilterV2LogDrainsResponseVersion); -/** @internal */ -export const GetAllLogDrainsFilterV2LogDrainsResponseVersion$outboundSchema: - z.ZodNativeEnum = - GetAllLogDrainsFilterV2LogDrainsResponseVersion$inboundSchema; - /** @internal */ export const GetAllLogDrainsFilterV2LogDrains1$inboundSchema: z.ZodType< GetAllLogDrainsFilterV2LogDrains1, z.ZodTypeDef, unknown > = z.object({ - version: GetAllLogDrainsFilterV2LogDrainsResponseVersion$inboundSchema, + version: z.literal("v1"), }); /** @internal */ export type GetAllLogDrainsFilterV2LogDrains1$Outbound = { - version: string; + version: "v1"; }; /** @internal */ @@ -4272,7 +3881,7 @@ export const GetAllLogDrainsFilterV2LogDrains1$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsFilterV2LogDrains1 > = z.object({ - version: GetAllLogDrainsFilterV2LogDrainsResponseVersion$outboundSchema, + version: z.literal("v1"), }); export function getAllLogDrainsFilterV2LogDrains1ToJSON( @@ -4300,13 +3909,13 @@ export const GetAllLogDrainsDrainsFilterV2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetAllLogDrainsFilterV2LogDrains2$inboundSchema), z.lazy(() => GetAllLogDrainsFilterV2LogDrains1$inboundSchema), + z.lazy(() => GetAllLogDrainsFilterV2LogDrains2$inboundSchema), ]); /** @internal */ export type GetAllLogDrainsDrainsFilterV2$Outbound = - | GetAllLogDrainsFilterV2LogDrains2$Outbound - | GetAllLogDrainsFilterV2LogDrains1$Outbound; + | GetAllLogDrainsFilterV2LogDrains1$Outbound + | GetAllLogDrainsFilterV2LogDrains2$Outbound; /** @internal */ export const GetAllLogDrainsDrainsFilterV2$outboundSchema: z.ZodType< @@ -4314,8 +3923,8 @@ export const GetAllLogDrainsDrainsFilterV2$outboundSchema: z.ZodType< z.ZodTypeDef, GetAllLogDrainsDrainsFilterV2 > = z.union([ - z.lazy(() => GetAllLogDrainsFilterV2LogDrains2$outboundSchema), z.lazy(() => GetAllLogDrainsFilterV2LogDrains1$outboundSchema), + z.lazy(() => GetAllLogDrainsFilterV2LogDrains2$outboundSchema), ]); export function getAllLogDrainsDrainsFilterV2ToJSON( @@ -4365,13 +3974,13 @@ export const GetAllLogDrainsDrains1$inboundSchema: z.ZodType< disabledBy: z.string().optional(), firstErrorTimestamp: z.number().optional(), source: z.union([ - z.lazy(() => GetAllLogDrainsSourceLogDrains2$inboundSchema), z.lazy(() => GetAllLogDrainsSourceLogDrains1$inboundSchema), + z.lazy(() => GetAllLogDrainsSourceLogDrains2$inboundSchema), ]), filter: z.string().optional(), filterV2: z.union([ - z.lazy(() => GetAllLogDrainsFilterV2LogDrains2$inboundSchema), z.lazy(() => GetAllLogDrainsFilterV2LogDrains1$inboundSchema), + z.lazy(() => GetAllLogDrainsFilterV2LogDrains2$inboundSchema), ]).optional(), }); /** @internal */ @@ -4397,12 +4006,12 @@ export type GetAllLogDrainsDrains1$Outbound = { disabledBy?: string | undefined; firstErrorTimestamp?: number | undefined; source: - | GetAllLogDrainsSourceLogDrains2$Outbound - | GetAllLogDrainsSourceLogDrains1$Outbound; + | GetAllLogDrainsSourceLogDrains1$Outbound + | GetAllLogDrainsSourceLogDrains2$Outbound; filter?: string | undefined; filterV2?: - | GetAllLogDrainsFilterV2LogDrains2$Outbound | GetAllLogDrainsFilterV2LogDrains1$Outbound + | GetAllLogDrainsFilterV2LogDrains2$Outbound | undefined; }; @@ -4434,13 +4043,13 @@ export const GetAllLogDrainsDrains1$outboundSchema: z.ZodType< disabledBy: z.string().optional(), firstErrorTimestamp: z.number().optional(), source: z.union([ - z.lazy(() => GetAllLogDrainsSourceLogDrains2$outboundSchema), z.lazy(() => GetAllLogDrainsSourceLogDrains1$outboundSchema), + z.lazy(() => GetAllLogDrainsSourceLogDrains2$outboundSchema), ]), filter: z.string().optional(), filterV2: z.union([ - z.lazy(() => GetAllLogDrainsFilterV2LogDrains2$outboundSchema), z.lazy(() => GetAllLogDrainsFilterV2LogDrains1$outboundSchema), + z.lazy(() => GetAllLogDrainsFilterV2LogDrains2$outboundSchema), ]).optional(), }); diff --git a/src/models/getconfigurationop.ts b/src/models/getconfigurationop.ts index 70bff423..5a8ea54a 100644 --- a/src/models/getconfigurationop.ts +++ b/src/models/getconfigurationop.ts @@ -176,20 +176,13 @@ export type ResponseBodyNotification = { href?: string | undefined; }; -export const GetConfigurationTransferRequestKind = { - TransferFromMarketplace: "transfer-from-marketplace", -} as const; -export type GetConfigurationTransferRequestKind = ClosedEnum< - typeof GetConfigurationTransferRequestKind ->; - export type TransferRequestRequester = { name: string; email?: string | undefined; }; export type TransferRequest2 = { - kind: GetConfigurationTransferRequestKind; + kind: "transfer-from-marketplace"; requestId: string; transferId: string; requester: TransferRequestRequester; @@ -202,11 +195,6 @@ export type TransferRequest2 = { authorizationId?: string | undefined; }; -export const TransferRequestKind = { - TransferToMarketplace: "transfer-to-marketplace", -} as const; -export type TransferRequestKind = ClosedEnum; - export const TransferRequestType = { Subscription: "subscription", Prepayment: "prepayment", @@ -235,7 +223,7 @@ export type Requester = { }; export type TransferRequest1 = { - kind: TransferRequestKind; + kind: "transfer-to-marketplace"; metadata?: { [k: string]: any } | undefined; billingPlan?: TransferRequestBillingPlan | undefined; requestId: string; @@ -638,15 +626,6 @@ export function responseBodyNotificationFromJSON( ); } -/** @internal */ -export const GetConfigurationTransferRequestKind$inboundSchema: z.ZodNativeEnum< - typeof GetConfigurationTransferRequestKind -> = z.nativeEnum(GetConfigurationTransferRequestKind); -/** @internal */ -export const GetConfigurationTransferRequestKind$outboundSchema: - z.ZodNativeEnum = - GetConfigurationTransferRequestKind$inboundSchema; - /** @internal */ export const TransferRequestRequester$inboundSchema: z.ZodType< TransferRequestRequester, @@ -695,7 +674,7 @@ export const TransferRequest2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - kind: GetConfigurationTransferRequestKind$inboundSchema, + kind: z.literal("transfer-from-marketplace"), requestId: z.string(), transferId: z.string(), requester: z.lazy(() => TransferRequestRequester$inboundSchema), @@ -709,7 +688,7 @@ export const TransferRequest2$inboundSchema: z.ZodType< }); /** @internal */ export type TransferRequest2$Outbound = { - kind: string; + kind: "transfer-from-marketplace"; requestId: string; transferId: string; requester: TransferRequestRequester$Outbound; @@ -728,7 +707,7 @@ export const TransferRequest2$outboundSchema: z.ZodType< z.ZodTypeDef, TransferRequest2 > = z.object({ - kind: GetConfigurationTransferRequestKind$outboundSchema, + kind: z.literal("transfer-from-marketplace"), requestId: z.string(), transferId: z.string(), requester: z.lazy(() => TransferRequestRequester$outboundSchema), @@ -758,15 +737,6 @@ export function transferRequest2FromJSON( ); } -/** @internal */ -export const TransferRequestKind$inboundSchema: z.ZodNativeEnum< - typeof TransferRequestKind -> = z.nativeEnum(TransferRequestKind); -/** @internal */ -export const TransferRequestKind$outboundSchema: z.ZodNativeEnum< - typeof TransferRequestKind -> = TransferRequestKind$inboundSchema; - /** @internal */ export const TransferRequestType$inboundSchema: z.ZodNativeEnum< typeof TransferRequestType @@ -886,7 +856,7 @@ export const TransferRequest1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - kind: TransferRequestKind$inboundSchema, + kind: z.literal("transfer-to-marketplace"), metadata: z.record(z.any()).optional(), billingPlan: z.lazy(() => TransferRequestBillingPlan$inboundSchema) .optional(), @@ -903,7 +873,7 @@ export const TransferRequest1$inboundSchema: z.ZodType< }); /** @internal */ export type TransferRequest1$Outbound = { - kind: string; + kind: "transfer-to-marketplace"; metadata?: { [k: string]: any } | undefined; billingPlan?: TransferRequestBillingPlan$Outbound | undefined; requestId: string; @@ -924,7 +894,7 @@ export const TransferRequest1$outboundSchema: z.ZodType< z.ZodTypeDef, TransferRequest1 > = z.object({ - kind: TransferRequestKind$outboundSchema, + kind: z.literal("transfer-to-marketplace"), metadata: z.record(z.any()).optional(), billingPlan: z.lazy(() => TransferRequestBillingPlan$outboundSchema) .optional(), diff --git a/src/models/getdeploymentop.ts b/src/models/getdeploymentop.ts index 092e4a1c..ffed50d1 100644 --- a/src/models/getdeploymentop.ts +++ b/src/models/getdeploymentop.ts @@ -1835,11 +1835,6 @@ export type GetDeploymentHas2 = { value?: string | GetDeploymentValue2 | undefined; }; -export const GetDeploymentHasType = { - Host: "host", -} as const; -export type GetDeploymentHasType = ClosedEnum; - export type GetDeploymentValueDeploymentsResponseEq = string | number; export type GetDeploymentValueDeploymentsResponse2002 = { @@ -1861,11 +1856,15 @@ export type GetDeploymentHasValue = | GetDeploymentValueDeploymentsResponse2002; export type GetDeploymentHas1 = { - type: GetDeploymentHasType; + type: "host"; value: string | GetDeploymentValueDeploymentsResponse2002; }; -export type GetDeploymentRoutesHas = GetDeploymentHas1 | GetDeploymentHas2; +export type GetDeploymentRoutesHas = + | GetDeploymentHas1 + | (GetDeploymentHas2 & { type: "header" }) + | (GetDeploymentHas2 & { type: "cookie" }) + | (GetDeploymentHas2 & { type: "query" }); export const GetDeploymentMissingType = { Header: "header", @@ -1902,13 +1901,6 @@ export type GetDeploymentMissing2 = { value?: string | GetDeploymentValueDeploymentsResponse2 | undefined; }; -export const GetDeploymentMissingDeploymentsType = { - Host: "host", -} as const; -export type GetDeploymentMissingDeploymentsType = ClosedEnum< - typeof GetDeploymentMissingDeploymentsType ->; - export type GetDeploymentValueEq = string | number; export type GetDeploymentValueDeployments2 = { @@ -1930,13 +1922,15 @@ export type GetDeploymentMissingDeploymentsValue = | GetDeploymentValueDeployments2; export type GetDeploymentMissing1 = { - type: GetDeploymentMissingDeploymentsType; + type: "host"; value: string | GetDeploymentValueDeployments2; }; export type GetDeploymentRoutesMissing = | GetDeploymentMissing1 - | GetDeploymentMissing2; + | (GetDeploymentMissing2 & { type: "header" }) + | (GetDeploymentMissing2 & { type: "cookie" }) + | (GetDeploymentMissing2 & { type: "query" }); export const GetDeploymentRoutesAction = { Challenge: "challenge", @@ -2013,8 +2007,22 @@ export type GetDeploymentRoutes1 = { check?: boolean | undefined; important?: boolean | undefined; status?: number | undefined; - has?: Array | undefined; - missing?: Array | undefined; + has?: + | Array< + | GetDeploymentHas1 + | (GetDeploymentHas2 & { type: "header" }) + | (GetDeploymentHas2 & { type: "cookie" }) + | (GetDeploymentHas2 & { type: "query" }) + > + | undefined; + missing?: + | Array< + | GetDeploymentMissing1 + | (GetDeploymentMissing2 & { type: "header" }) + | (GetDeploymentMissing2 & { type: "cookie" }) + | (GetDeploymentMissing2 & { type: "query" }) + > + | undefined; mitigate?: GetDeploymentRoutesMitigate | undefined; transforms?: Array | undefined; locale?: GetDeploymentRoutesLocale | undefined; @@ -2037,13 +2045,6 @@ export type ResponseBodyRoutes = | GetDeploymentRoutes1 | GetDeploymentRoutes2; -export const GetDeploymentGitRepoDeploymentsType = { - Bitbucket: "bitbucket", -} as const; -export type GetDeploymentGitRepoDeploymentsType = ClosedEnum< - typeof GetDeploymentGitRepoDeploymentsType ->; - export const GetDeploymentGitRepoOwnerType = { Team: "team", User: "user", @@ -2056,7 +2057,7 @@ export type GetDeploymentGitRepo3 = { owner: string; repoUuid: string; slug: string; - type: GetDeploymentGitRepoDeploymentsType; + type: "bitbucket"; workspaceUuid: string; path: string; defaultBranch: string; @@ -2065,13 +2066,6 @@ export type GetDeploymentGitRepo3 = { ownerType: GetDeploymentGitRepoOwnerType; }; -export const GetDeploymentGitRepoType = { - Github: "github", -} as const; -export type GetDeploymentGitRepoType = ClosedEnum< - typeof GetDeploymentGitRepoType ->; - export const GetDeploymentGitRepoDeploymentsResponseOwnerType = { Team: "team", User: "user", @@ -2084,7 +2078,7 @@ export type GetDeploymentGitRepo2 = { org: string; repo: string; repoId: number; - type: GetDeploymentGitRepoType; + type: "github"; repoOwnerId: number; path: string; defaultBranch: string; @@ -2093,13 +2087,6 @@ export type GetDeploymentGitRepo2 = { ownerType: GetDeploymentGitRepoDeploymentsResponseOwnerType; }; -export const GetDeploymentGitRepoDeploymentsResponseType = { - Gitlab: "gitlab", -} as const; -export type GetDeploymentGitRepoDeploymentsResponseType = ClosedEnum< - typeof GetDeploymentGitRepoDeploymentsResponseType ->; - export const GetDeploymentGitRepoDeploymentsOwnerType = { Team: "team", User: "user", @@ -2111,7 +2098,7 @@ export type GetDeploymentGitRepoDeploymentsOwnerType = ClosedEnum< export type GetDeploymentGitRepo1 = { namespace: string; projectId: number; - type: GetDeploymentGitRepoDeploymentsResponseType; + type: "gitlab"; url: string; path: string; defaultBranch: string; @@ -2121,9 +2108,9 @@ export type GetDeploymentGitRepo1 = { }; export type ResponseBodyGitRepo = + | GetDeploymentGitRepo1 | GetDeploymentGitRepo2 - | GetDeploymentGitRepo3 - | GetDeploymentGitRepo1; + | GetDeploymentGitRepo3; /** * Flags defined in the Build Output API, used by this deployment. Primarily used by the Toolbar to know about the used flags. @@ -2451,9 +2438,9 @@ export type GetDeploymentResponseBody1 = { | Array | null; gitRepo?: + | GetDeploymentGitRepo1 | GetDeploymentGitRepo2 | GetDeploymentGitRepo3 - | GetDeploymentGitRepo1 | null | undefined; flags?: GetDeploymentFlags1 | Array | undefined; @@ -8255,15 +8242,6 @@ export function getDeploymentHas2FromJSON( ); } -/** @internal */ -export const GetDeploymentHasType$inboundSchema: z.ZodNativeEnum< - typeof GetDeploymentHasType -> = z.nativeEnum(GetDeploymentHasType); -/** @internal */ -export const GetDeploymentHasType$outboundSchema: z.ZodNativeEnum< - typeof GetDeploymentHasType -> = GetDeploymentHasType$inboundSchema; - /** @internal */ export const GetDeploymentValueDeploymentsResponseEq$inboundSchema: z.ZodType< GetDeploymentValueDeploymentsResponseEq, @@ -8432,7 +8410,7 @@ export const GetDeploymentHas1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetDeploymentHasType$inboundSchema, + type: z.literal("host"), value: z.union([ z.string(), z.lazy(() => GetDeploymentValueDeploymentsResponse2002$inboundSchema), @@ -8440,7 +8418,7 @@ export const GetDeploymentHas1$inboundSchema: z.ZodType< }); /** @internal */ export type GetDeploymentHas1$Outbound = { - type: string; + type: "host"; value: string | GetDeploymentValueDeploymentsResponse2002$Outbound; }; @@ -8450,7 +8428,7 @@ export const GetDeploymentHas1$outboundSchema: z.ZodType< z.ZodTypeDef, GetDeploymentHas1 > = z.object({ - type: GetDeploymentHasType$outboundSchema, + type: z.literal("host"), value: z.union([ z.string(), z.lazy(() => GetDeploymentValueDeploymentsResponse2002$outboundSchema), @@ -8481,12 +8459,22 @@ export const GetDeploymentRoutesHas$inboundSchema: z.ZodType< unknown > = z.union([ z.lazy(() => GetDeploymentHas1$inboundSchema), - z.lazy(() => GetDeploymentHas2$inboundSchema), + z.lazy(() => GetDeploymentHas2$inboundSchema).and( + z.object({ type: z.literal("header") }), + ), + z.lazy(() => GetDeploymentHas2$inboundSchema).and( + z.object({ type: z.literal("cookie") }), + ), + z.lazy(() => GetDeploymentHas2$inboundSchema).and( + z.object({ type: z.literal("query") }), + ), ]); /** @internal */ export type GetDeploymentRoutesHas$Outbound = | GetDeploymentHas1$Outbound - | GetDeploymentHas2$Outbound; + | (GetDeploymentHas2$Outbound & { type: "header" }) + | (GetDeploymentHas2$Outbound & { type: "cookie" }) + | (GetDeploymentHas2$Outbound & { type: "query" }); /** @internal */ export const GetDeploymentRoutesHas$outboundSchema: z.ZodType< @@ -8495,7 +8483,15 @@ export const GetDeploymentRoutesHas$outboundSchema: z.ZodType< GetDeploymentRoutesHas > = z.union([ z.lazy(() => GetDeploymentHas1$outboundSchema), - z.lazy(() => GetDeploymentHas2$outboundSchema), + z.lazy(() => GetDeploymentHas2$outboundSchema).and( + z.object({ type: z.literal("header") }), + ), + z.lazy(() => GetDeploymentHas2$outboundSchema).and( + z.object({ type: z.literal("cookie") }), + ), + z.lazy(() => GetDeploymentHas2$outboundSchema).and( + z.object({ type: z.literal("query") }), + ), ]); export function getDeploymentRoutesHasToJSON( @@ -8724,15 +8720,6 @@ export function getDeploymentMissing2FromJSON( ); } -/** @internal */ -export const GetDeploymentMissingDeploymentsType$inboundSchema: z.ZodNativeEnum< - typeof GetDeploymentMissingDeploymentsType -> = z.nativeEnum(GetDeploymentMissingDeploymentsType); -/** @internal */ -export const GetDeploymentMissingDeploymentsType$outboundSchema: - z.ZodNativeEnum = - GetDeploymentMissingDeploymentsType$inboundSchema; - /** @internal */ export const GetDeploymentValueEq$inboundSchema: z.ZodType< GetDeploymentValueEq, @@ -8887,7 +8874,7 @@ export const GetDeploymentMissing1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetDeploymentMissingDeploymentsType$inboundSchema, + type: z.literal("host"), value: z.union([ z.string(), z.lazy(() => GetDeploymentValueDeployments2$inboundSchema), @@ -8895,7 +8882,7 @@ export const GetDeploymentMissing1$inboundSchema: z.ZodType< }); /** @internal */ export type GetDeploymentMissing1$Outbound = { - type: string; + type: "host"; value: string | GetDeploymentValueDeployments2$Outbound; }; @@ -8905,7 +8892,7 @@ export const GetDeploymentMissing1$outboundSchema: z.ZodType< z.ZodTypeDef, GetDeploymentMissing1 > = z.object({ - type: GetDeploymentMissingDeploymentsType$outboundSchema, + type: z.literal("host"), value: z.union([ z.string(), z.lazy(() => GetDeploymentValueDeployments2$outboundSchema), @@ -8936,12 +8923,22 @@ export const GetDeploymentRoutesMissing$inboundSchema: z.ZodType< unknown > = z.union([ z.lazy(() => GetDeploymentMissing1$inboundSchema), - z.lazy(() => GetDeploymentMissing2$inboundSchema), + z.lazy(() => GetDeploymentMissing2$inboundSchema).and( + z.object({ type: z.literal("header") }), + ), + z.lazy(() => GetDeploymentMissing2$inboundSchema).and( + z.object({ type: z.literal("cookie") }), + ), + z.lazy(() => GetDeploymentMissing2$inboundSchema).and( + z.object({ type: z.literal("query") }), + ), ]); /** @internal */ export type GetDeploymentRoutesMissing$Outbound = | GetDeploymentMissing1$Outbound - | GetDeploymentMissing2$Outbound; + | (GetDeploymentMissing2$Outbound & { type: "header" }) + | (GetDeploymentMissing2$Outbound & { type: "cookie" }) + | (GetDeploymentMissing2$Outbound & { type: "query" }); /** @internal */ export const GetDeploymentRoutesMissing$outboundSchema: z.ZodType< @@ -8950,7 +8947,15 @@ export const GetDeploymentRoutesMissing$outboundSchema: z.ZodType< GetDeploymentRoutesMissing > = z.union([ z.lazy(() => GetDeploymentMissing1$outboundSchema), - z.lazy(() => GetDeploymentMissing2$outboundSchema), + z.lazy(() => GetDeploymentMissing2$outboundSchema).and( + z.object({ type: z.literal("header") }), + ), + z.lazy(() => GetDeploymentMissing2$outboundSchema).and( + z.object({ type: z.literal("cookie") }), + ), + z.lazy(() => GetDeploymentMissing2$outboundSchema).and( + z.object({ type: z.literal("query") }), + ), ]); export function getDeploymentRoutesMissingToJSON( @@ -9358,13 +9363,29 @@ export const GetDeploymentRoutes1$inboundSchema: z.ZodType< has: z.array( z.union([ z.lazy(() => GetDeploymentHas1$inboundSchema), - z.lazy(() => GetDeploymentHas2$inboundSchema), + z.lazy(() => + GetDeploymentHas2$inboundSchema + ).and(z.object({ type: z.literal("header") })), + z.lazy(() => + GetDeploymentHas2$inboundSchema + ).and(z.object({ type: z.literal("cookie") })), + z.lazy(() => + GetDeploymentHas2$inboundSchema + ).and(z.object({ type: z.literal("query") })), ]), ).optional(), missing: z.array( z.union([ z.lazy(() => GetDeploymentMissing1$inboundSchema), - z.lazy(() => GetDeploymentMissing2$inboundSchema), + z.lazy(() => + GetDeploymentMissing2$inboundSchema + ).and(z.object({ type: z.literal("header") })), + z.lazy(() => + GetDeploymentMissing2$inboundSchema + ).and(z.object({ type: z.literal("cookie") })), + z.lazy(() => + GetDeploymentMissing2$inboundSchema + ).and(z.object({ type: z.literal("query") })), ]), ).optional(), mitigate: z.lazy(() => GetDeploymentRoutesMitigate$inboundSchema).optional(), @@ -9388,10 +9409,20 @@ export type GetDeploymentRoutes1$Outbound = { important?: boolean | undefined; status?: number | undefined; has?: - | Array + | Array< + | GetDeploymentHas1$Outbound + | (GetDeploymentHas2$Outbound & { type: "header" }) + | (GetDeploymentHas2$Outbound & { type: "cookie" }) + | (GetDeploymentHas2$Outbound & { type: "query" }) + > | undefined; missing?: - | Array + | Array< + | GetDeploymentMissing1$Outbound + | (GetDeploymentMissing2$Outbound & { type: "header" }) + | (GetDeploymentMissing2$Outbound & { type: "cookie" }) + | (GetDeploymentMissing2$Outbound & { type: "query" }) + > | undefined; mitigate?: GetDeploymentRoutesMitigate$Outbound | undefined; transforms?: Array | undefined; @@ -9420,13 +9451,29 @@ export const GetDeploymentRoutes1$outboundSchema: z.ZodType< has: z.array( z.union([ z.lazy(() => GetDeploymentHas1$outboundSchema), - z.lazy(() => GetDeploymentHas2$outboundSchema), + z.lazy(() => + GetDeploymentHas2$outboundSchema + ).and(z.object({ type: z.literal("header") })), + z.lazy(() => + GetDeploymentHas2$outboundSchema + ).and(z.object({ type: z.literal("cookie") })), + z.lazy(() => + GetDeploymentHas2$outboundSchema + ).and(z.object({ type: z.literal("query") })), ]), ).optional(), missing: z.array( z.union([ z.lazy(() => GetDeploymentMissing1$outboundSchema), - z.lazy(() => GetDeploymentMissing2$outboundSchema), + z.lazy(() => + GetDeploymentMissing2$outboundSchema + ).and(z.object({ type: z.literal("header") })), + z.lazy(() => + GetDeploymentMissing2$outboundSchema + ).and(z.object({ type: z.literal("cookie") })), + z.lazy(() => + GetDeploymentMissing2$outboundSchema + ).and(z.object({ type: z.literal("query") })), ]), ).optional(), mitigate: z.lazy(() => GetDeploymentRoutesMitigate$outboundSchema).optional(), @@ -9500,15 +9547,6 @@ export function responseBodyRoutesFromJSON( ); } -/** @internal */ -export const GetDeploymentGitRepoDeploymentsType$inboundSchema: z.ZodNativeEnum< - typeof GetDeploymentGitRepoDeploymentsType -> = z.nativeEnum(GetDeploymentGitRepoDeploymentsType); -/** @internal */ -export const GetDeploymentGitRepoDeploymentsType$outboundSchema: - z.ZodNativeEnum = - GetDeploymentGitRepoDeploymentsType$inboundSchema; - /** @internal */ export const GetDeploymentGitRepoOwnerType$inboundSchema: z.ZodNativeEnum< typeof GetDeploymentGitRepoOwnerType @@ -9527,7 +9565,7 @@ export const GetDeploymentGitRepo3$inboundSchema: z.ZodType< owner: z.string(), repoUuid: z.string(), slug: z.string(), - type: GetDeploymentGitRepoDeploymentsType$inboundSchema, + type: z.literal("bitbucket"), workspaceUuid: z.string(), path: z.string(), defaultBranch: z.string(), @@ -9540,7 +9578,7 @@ export type GetDeploymentGitRepo3$Outbound = { owner: string; repoUuid: string; slug: string; - type: string; + type: "bitbucket"; workspaceUuid: string; path: string; defaultBranch: string; @@ -9558,7 +9596,7 @@ export const GetDeploymentGitRepo3$outboundSchema: z.ZodType< owner: z.string(), repoUuid: z.string(), slug: z.string(), - type: GetDeploymentGitRepoDeploymentsType$outboundSchema, + type: z.literal("bitbucket"), workspaceUuid: z.string(), path: z.string(), defaultBranch: z.string(), @@ -9584,15 +9622,6 @@ export function getDeploymentGitRepo3FromJSON( ); } -/** @internal */ -export const GetDeploymentGitRepoType$inboundSchema: z.ZodNativeEnum< - typeof GetDeploymentGitRepoType -> = z.nativeEnum(GetDeploymentGitRepoType); -/** @internal */ -export const GetDeploymentGitRepoType$outboundSchema: z.ZodNativeEnum< - typeof GetDeploymentGitRepoType -> = GetDeploymentGitRepoType$inboundSchema; - /** @internal */ export const GetDeploymentGitRepoDeploymentsResponseOwnerType$inboundSchema: z.ZodNativeEnum = z @@ -9611,7 +9640,7 @@ export const GetDeploymentGitRepo2$inboundSchema: z.ZodType< org: z.string(), repo: z.string(), repoId: z.number(), - type: GetDeploymentGitRepoType$inboundSchema, + type: z.literal("github"), repoOwnerId: z.number(), path: z.string(), defaultBranch: z.string(), @@ -9624,7 +9653,7 @@ export type GetDeploymentGitRepo2$Outbound = { org: string; repo: string; repoId: number; - type: string; + type: "github"; repoOwnerId: number; path: string; defaultBranch: string; @@ -9642,7 +9671,7 @@ export const GetDeploymentGitRepo2$outboundSchema: z.ZodType< org: z.string(), repo: z.string(), repoId: z.number(), - type: GetDeploymentGitRepoType$outboundSchema, + type: z.literal("github"), repoOwnerId: z.number(), path: z.string(), defaultBranch: z.string(), @@ -9668,15 +9697,6 @@ export function getDeploymentGitRepo2FromJSON( ); } -/** @internal */ -export const GetDeploymentGitRepoDeploymentsResponseType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetDeploymentGitRepoDeploymentsResponseType); -/** @internal */ -export const GetDeploymentGitRepoDeploymentsResponseType$outboundSchema: - z.ZodNativeEnum = - GetDeploymentGitRepoDeploymentsResponseType$inboundSchema; - /** @internal */ export const GetDeploymentGitRepoDeploymentsOwnerType$inboundSchema: z.ZodNativeEnum = z @@ -9694,7 +9714,7 @@ export const GetDeploymentGitRepo1$inboundSchema: z.ZodType< > = z.object({ namespace: z.string(), projectId: z.number(), - type: GetDeploymentGitRepoDeploymentsResponseType$inboundSchema, + type: z.literal("gitlab"), url: z.string(), path: z.string(), defaultBranch: z.string(), @@ -9706,7 +9726,7 @@ export const GetDeploymentGitRepo1$inboundSchema: z.ZodType< export type GetDeploymentGitRepo1$Outbound = { namespace: string; projectId: number; - type: string; + type: "gitlab"; url: string; path: string; defaultBranch: string; @@ -9723,7 +9743,7 @@ export const GetDeploymentGitRepo1$outboundSchema: z.ZodType< > = z.object({ namespace: z.string(), projectId: z.number(), - type: GetDeploymentGitRepoDeploymentsResponseType$outboundSchema, + type: z.literal("gitlab"), url: z.string(), path: z.string(), defaultBranch: z.string(), @@ -9755,15 +9775,15 @@ export const ResponseBodyGitRepo$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ + z.lazy(() => GetDeploymentGitRepo1$inboundSchema), z.lazy(() => GetDeploymentGitRepo2$inboundSchema), z.lazy(() => GetDeploymentGitRepo3$inboundSchema), - z.lazy(() => GetDeploymentGitRepo1$inboundSchema), ]); /** @internal */ export type ResponseBodyGitRepo$Outbound = + | GetDeploymentGitRepo1$Outbound | GetDeploymentGitRepo2$Outbound - | GetDeploymentGitRepo3$Outbound - | GetDeploymentGitRepo1$Outbound; + | GetDeploymentGitRepo3$Outbound; /** @internal */ export const ResponseBodyGitRepo$outboundSchema: z.ZodType< @@ -9771,9 +9791,9 @@ export const ResponseBodyGitRepo$outboundSchema: z.ZodType< z.ZodTypeDef, ResponseBodyGitRepo > = z.union([ + z.lazy(() => GetDeploymentGitRepo1$outboundSchema), z.lazy(() => GetDeploymentGitRepo2$outboundSchema), z.lazy(() => GetDeploymentGitRepo3$outboundSchema), - z.lazy(() => GetDeploymentGitRepo1$outboundSchema), ]); export function responseBodyGitRepoToJSON( @@ -10455,9 +10475,9 @@ export const GetDeploymentResponseBody1$inboundSchema: z.ZodType< ), gitRepo: z.nullable( z.union([ + z.lazy(() => GetDeploymentGitRepo1$inboundSchema), z.lazy(() => GetDeploymentGitRepo2$inboundSchema), z.lazy(() => GetDeploymentGitRepo3$inboundSchema), - z.lazy(() => GetDeploymentGitRepo1$inboundSchema), ]), ).optional(), flags: z.union([ @@ -10584,9 +10604,9 @@ export type GetDeploymentResponseBody1$Outbound = { > | null; gitRepo?: + | GetDeploymentGitRepo1$Outbound | GetDeploymentGitRepo2$Outbound | GetDeploymentGitRepo3$Outbound - | GetDeploymentGitRepo1$Outbound | null | undefined; flags?: @@ -10724,9 +10744,9 @@ export const GetDeploymentResponseBody1$outboundSchema: z.ZodType< ), gitRepo: z.nullable( z.union([ + z.lazy(() => GetDeploymentGitRepo1$outboundSchema), z.lazy(() => GetDeploymentGitRepo2$outboundSchema), z.lazy(() => GetDeploymentGitRepo3$outboundSchema), - z.lazy(() => GetDeploymentGitRepo1$outboundSchema), ]), ).optional(), flags: z.union([ diff --git a/src/models/getdomainauthcodeop.ts b/src/models/getdomainauthcodeop.ts index 2531868a..85c85881 100644 --- a/src/models/getdomainauthcodeop.ts +++ b/src/models/getdomainauthcodeop.ts @@ -40,7 +40,7 @@ export type GetDomainAuthCodeRequest = { * NotAuthorizedForScope */ export type GetDomainAuthCodeDomainsRegistrarResponseResponseBody = - | NotAuthorizedForScope + | (NotAuthorizedForScope & { code: "not_authorized_for_scope" }) | Forbidden; /** @@ -105,10 +105,15 @@ export const GetDomainAuthCodeDomainsRegistrarResponseResponseBody$inboundSchema GetDomainAuthCodeDomainsRegistrarResponseResponseBody, z.ZodTypeDef, unknown - > = z.union([NotAuthorizedForScope$inboundSchema, Forbidden$inboundSchema]); + > = z.union([ + NotAuthorizedForScope$inboundSchema.and( + z.object({ code: z.literal("not_authorized_for_scope") }), + ), + Forbidden$inboundSchema, + ]); /** @internal */ export type GetDomainAuthCodeDomainsRegistrarResponseResponseBody$Outbound = - | NotAuthorizedForScope$Outbound + | (NotAuthorizedForScope$Outbound & { code: "not_authorized_for_scope" }) | Forbidden$Outbound; /** @internal */ @@ -117,7 +122,12 @@ export const GetDomainAuthCodeDomainsRegistrarResponseResponseBody$outboundSchem GetDomainAuthCodeDomainsRegistrarResponseResponseBody$Outbound, z.ZodTypeDef, unknown - > = z.union([NotAuthorizedForScope$outboundSchema, Forbidden$outboundSchema]); + > = z.union([ + NotAuthorizedForScope$outboundSchema.and( + z.object({ code: z.literal("not_authorized_for_scope") }), + ), + Forbidden$outboundSchema, + ]); export function getDomainAuthCodeDomainsRegistrarResponseResponseBodyToJSON( getDomainAuthCodeDomainsRegistrarResponseResponseBody: diff --git a/src/models/getdomaintransferinop.ts b/src/models/getdomaintransferinop.ts index ffe3ffab..4bdbe649 100644 --- a/src/models/getdomaintransferinop.ts +++ b/src/models/getdomaintransferinop.ts @@ -29,7 +29,7 @@ export type GetDomainTransferInRequest = { * NotAuthorizedForScope */ export type GetDomainTransferInDomainsRegistrarResponseBody = - | NotAuthorizedForScope + | (NotAuthorizedForScope & { code: "not_authorized_for_scope" }) | Forbidden; export const GetDomainTransferInStatus = { @@ -105,10 +105,15 @@ export const GetDomainTransferInDomainsRegistrarResponseBody$inboundSchema: GetDomainTransferInDomainsRegistrarResponseBody, z.ZodTypeDef, unknown - > = z.union([NotAuthorizedForScope$inboundSchema, Forbidden$inboundSchema]); + > = z.union([ + NotAuthorizedForScope$inboundSchema.and( + z.object({ code: z.literal("not_authorized_for_scope") }), + ), + Forbidden$inboundSchema, + ]); /** @internal */ export type GetDomainTransferInDomainsRegistrarResponseBody$Outbound = - | NotAuthorizedForScope$Outbound + | (NotAuthorizedForScope$Outbound & { code: "not_authorized_for_scope" }) | Forbidden$Outbound; /** @internal */ @@ -117,7 +122,12 @@ export const GetDomainTransferInDomainsRegistrarResponseBody$outboundSchema: GetDomainTransferInDomainsRegistrarResponseBody$Outbound, z.ZodTypeDef, unknown - > = z.union([NotAuthorizedForScope$outboundSchema, Forbidden$outboundSchema]); + > = z.union([ + NotAuthorizedForScope$outboundSchema.and( + z.object({ code: z.literal("not_authorized_for_scope") }), + ), + Forbidden$outboundSchema, + ]); export function getDomainTransferInDomainsRegistrarResponseBodyToJSON( getDomainTransferInDomainsRegistrarResponseBody: diff --git a/src/models/getdrainop.ts b/src/models/getdrainop.ts index 7338b82d..5fcc90c4 100644 --- a/src/models/getdrainop.ts +++ b/src/models/getdrainop.ts @@ -36,15 +36,6 @@ export type GetDrainResponseBodyDrainsSchemas = { speedInsights?: GetDrainResponseBodyDrainsSpeedInsights | undefined; }; -export const GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type = - { - Internal: "internal", - } as const; -export type GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type = - ClosedEnum< - typeof GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type - >; - export const GetDrainDeliveryDrainsTarget = { VercelOtelTracesDb: "vercel-otel-traces-db", } as const; @@ -53,34 +44,16 @@ export type GetDrainDeliveryDrainsTarget = ClosedEnum< >; export type GetDrainDeliveryDrains4 = { - type: GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type; + type: "internal"; target: GetDrainDeliveryDrainsTarget; }; -export const GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type = - { - Clickhouse: "clickhouse", - } as const; -export type GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type = - ClosedEnum< - typeof GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type - >; - export type GetDrainDeliveryDrains3 = { - type: GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type; + type: "clickhouse"; endpoint: string; table: string; }; -export const GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType = - { - Otlphttp: "otlphttp", - } as const; -export type GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType = - ClosedEnum< - typeof GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType - >; - export type GetDrainDeliveryDrainsEndpoint = { traces: string; }; @@ -109,20 +82,13 @@ export type GetDrainDeliveryDrainsResponse200Secret = | string; export type GetDrainDeliveryDrains2 = { - type: GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType; + type: "otlphttp"; endpoint: GetDrainDeliveryDrainsEndpoint; encoding: GetDrainDeliveryDrainsResponse200Encoding; headers: { [k: string]: string }; secret?: GetDrainSecretDrainsResponse2002 | string | undefined; }; -export const GetDrainDeliveryDrainsResponse200ApplicationJSONType = { - Http: "http", -} as const; -export type GetDrainDeliveryDrainsResponse200ApplicationJSONType = ClosedEnum< - typeof GetDrainDeliveryDrainsResponse200ApplicationJSONType ->; - export const GetDrainDeliveryDrainsResponseEncoding = { Json: "json", Ndjson: "ndjson", @@ -155,7 +121,7 @@ export type GetDrainDeliveryDrainsResponseSecret = | string; export type GetDrainDeliveryDrains1 = { - type: GetDrainDeliveryDrainsResponse200ApplicationJSONType; + type: "http"; endpoint: string; encoding: GetDrainDeliveryDrainsResponseEncoding; compression?: GetDrainDeliveryDrainsCompression | undefined; @@ -210,62 +176,27 @@ export type GetDrainResponseBodyDrainsDisabledReason = ClosedEnum< typeof GetDrainResponseBodyDrainsDisabledReason >; -export const GetDrainSourceDrainsResponse200Kind = { - Integration: "integration", -} as const; -export type GetDrainSourceDrainsResponse200Kind = ClosedEnum< - typeof GetDrainSourceDrainsResponse200Kind ->; - export type GetDrainSourceDrains2 = { - kind: GetDrainSourceDrainsResponse200Kind; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; integrationConfigurationId: string; }; -export const GetDrainSourceDrainsResponseKind = { - SelfServed: "self-served", -} as const; -export type GetDrainSourceDrainsResponseKind = ClosedEnum< - typeof GetDrainSourceDrainsResponseKind ->; - export type GetDrainSourceDrains1 = { - kind: GetDrainSourceDrainsResponseKind; + kind: "self-served"; }; export type GetDrainResponseBodyDrainsSource = - | GetDrainSourceDrains2 - | GetDrainSourceDrains1; - -export const GetDrainFilterV2DrainsResponse200Version = { - V2: "v2", -} as const; -export type GetDrainFilterV2DrainsResponse200Version = ClosedEnum< - typeof GetDrainFilterV2DrainsResponse200Version ->; - -export const GetDrainFilterDrainsResponse200Type = { - Odata: "odata", -} as const; -export type GetDrainFilterDrainsResponse200Type = ClosedEnum< - typeof GetDrainFilterDrainsResponse200Type ->; + | GetDrainSourceDrains1 + | GetDrainSourceDrains2; export type GetDrainFilterDrains2 = { - type: GetDrainFilterDrainsResponse200Type; + type: "odata"; text: string; }; -export const GetDrainFilterDrainsResponseType = { - Basic: "basic", -} as const; -export type GetDrainFilterDrainsResponseType = ClosedEnum< - typeof GetDrainFilterDrainsResponseType ->; - export type GetDrainFilterDrainsProject = { ids?: Array | undefined; }; @@ -301,62 +232,41 @@ export type GetDrainFilterDrainsDeployment = { }; export type GetDrainFilterDrains1 = { - type: GetDrainFilterDrainsResponseType; + type: "basic"; project?: GetDrainFilterDrainsProject | undefined; log?: GetDrainFilterDrainsLog | undefined; deployment?: GetDrainFilterDrainsDeployment | undefined; }; export type GetDrainFilterV2DrainsFilter = - | GetDrainFilterDrains2 - | GetDrainFilterDrains1; + | GetDrainFilterDrains1 + | GetDrainFilterDrains2; export type GetDrainFilterV2Drains2 = { - version: GetDrainFilterV2DrainsResponse200Version; - filter: GetDrainFilterDrains2 | GetDrainFilterDrains1; + version: "v2"; + filter: GetDrainFilterDrains1 | GetDrainFilterDrains2; }; -export const GetDrainFilterV2DrainsResponseVersion = { - V1: "v1", -} as const; -export type GetDrainFilterV2DrainsResponseVersion = ClosedEnum< - typeof GetDrainFilterV2DrainsResponseVersion ->; - export type GetDrainFilterV2Drains1 = { - version: GetDrainFilterV2DrainsResponseVersion; + version: "v1"; }; export type GetDrainResponseBodyDrainsFilterV2 = - | GetDrainFilterV2Drains2 - | GetDrainFilterV2Drains1; - -export const GetDrainProjectAccessDrainsAccess = { - Some: "some", -} as const; -export type GetDrainProjectAccessDrainsAccess = ClosedEnum< - typeof GetDrainProjectAccessDrainsAccess ->; + | GetDrainFilterV2Drains1 + | GetDrainFilterV2Drains2; export type GetDrainProjectAccess2 = { - access: GetDrainProjectAccessDrainsAccess; + access: "some"; projectIds: Array; }; -export const GetDrainProjectAccessAccess = { - All: "all", -} as const; -export type GetDrainProjectAccessAccess = ClosedEnum< - typeof GetDrainProjectAccessAccess ->; - export type GetDrainProjectAccess1 = { - access: GetDrainProjectAccessAccess; + access: "all"; }; export type ResponseBodyProjectAccess = - | GetDrainProjectAccess2 - | GetDrainProjectAccess1; + | GetDrainProjectAccess1 + | GetDrainProjectAccess2; export type GetDrainResponseBody2 = { id: string; @@ -379,13 +289,13 @@ export type GetDrainResponseBody2 = { disabledReason?: GetDrainResponseBodyDrainsDisabledReason | undefined; disabledBy?: string | undefined; firstErrorTimestamp?: number | undefined; - source: GetDrainSourceDrains2 | GetDrainSourceDrains1; + source: GetDrainSourceDrains1 | GetDrainSourceDrains2; filter?: string | undefined; - filterV2?: GetDrainFilterV2Drains2 | GetDrainFilterV2Drains1 | undefined; + filterV2?: GetDrainFilterV2Drains1 | GetDrainFilterV2Drains2 | undefined; integrationIcon?: string | undefined; integrationConfigurationUri?: string | undefined; integrationWebsite?: string | undefined; - projectAccess?: GetDrainProjectAccess2 | GetDrainProjectAccess1 | undefined; + projectAccess?: GetDrainProjectAccess1 | GetDrainProjectAccess2 | undefined; }; export type GetDrainResponseBodyLog = {}; @@ -403,43 +313,22 @@ export type GetDrainResponseBodySchemas = { speedInsights?: GetDrainResponseBodySpeedInsights | undefined; }; -export const GetDrainDeliveryDrainsResponse200Type = { - Internal: "internal", -} as const; -export type GetDrainDeliveryDrainsResponse200Type = ClosedEnum< - typeof GetDrainDeliveryDrainsResponse200Type ->; - export const GetDrainDeliveryTarget = { VercelOtelTracesDb: "vercel-otel-traces-db", } as const; export type GetDrainDeliveryTarget = ClosedEnum; export type GetDrainDelivery4 = { - type: GetDrainDeliveryDrainsResponse200Type; + type: "internal"; target: GetDrainDeliveryTarget; }; -export const GetDrainDeliveryDrainsResponseType = { - Clickhouse: "clickhouse", -} as const; -export type GetDrainDeliveryDrainsResponseType = ClosedEnum< - typeof GetDrainDeliveryDrainsResponseType ->; - export type GetDrainDelivery3 = { - type: GetDrainDeliveryDrainsResponseType; + type: "clickhouse"; endpoint: string; table: string; }; -export const GetDrainDeliveryDrainsType = { - Otlphttp: "otlphttp", -} as const; -export type GetDrainDeliveryDrainsType = ClosedEnum< - typeof GetDrainDeliveryDrainsType ->; - export type GetDrainDeliveryEndpoint = { traces: string; }; @@ -466,18 +355,13 @@ export type GetDrainSecretDrains2 = { export type GetDrainDeliveryDrainsSecret = GetDrainSecretDrains2 | string; export type GetDrainDelivery2 = { - type: GetDrainDeliveryDrainsType; + type: "otlphttp"; endpoint: GetDrainDeliveryEndpoint; encoding: GetDrainDeliveryDrainsEncoding; headers: { [k: string]: string }; secret?: GetDrainSecretDrains2 | string | undefined; }; -export const GetDrainDeliveryType = { - Http: "http", -} as const; -export type GetDrainDeliveryType = ClosedEnum; - export const GetDrainDeliveryEncoding = { Json: "json", Ndjson: "ndjson", @@ -506,7 +390,7 @@ export type GetDrainSecret2 = { export type GetDrainDeliverySecret = GetDrainSecret2 | string; export type GetDrainDelivery1 = { - type: GetDrainDeliveryType; + type: "http"; endpoint: string; encoding: GetDrainDeliveryEncoding; compression?: GetDrainDeliveryCompression | undefined; @@ -561,56 +445,25 @@ export type GetDrainResponseBodyDisabledReason = ClosedEnum< typeof GetDrainResponseBodyDisabledReason >; -export const GetDrainSourceDrainsKind = { - Integration: "integration", -} as const; -export type GetDrainSourceDrainsKind = ClosedEnum< - typeof GetDrainSourceDrainsKind ->; - export type GetDrainSource2 = { - kind: GetDrainSourceDrainsKind; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; integrationConfigurationId: string; }; -export const GetDrainSourceKind = { - SelfServed: "self-served", -} as const; -export type GetDrainSourceKind = ClosedEnum; - export type GetDrainSource1 = { - kind: GetDrainSourceKind; + kind: "self-served"; }; -export type GetDrainResponseBodySource = GetDrainSource2 | GetDrainSource1; - -export const GetDrainFilterV2DrainsVersion = { - V2: "v2", -} as const; -export type GetDrainFilterV2DrainsVersion = ClosedEnum< - typeof GetDrainFilterV2DrainsVersion ->; - -export const GetDrainFilterDrainsType = { - Odata: "odata", -} as const; -export type GetDrainFilterDrainsType = ClosedEnum< - typeof GetDrainFilterDrainsType ->; +export type GetDrainResponseBodySource = GetDrainSource1 | GetDrainSource2; export type GetDrainFilter2 = { - type: GetDrainFilterDrainsType; + type: "odata"; text: string; }; -export const GetDrainFilterType = { - Basic: "basic", -} as const; -export type GetDrainFilterType = ClosedEnum; - export type GetDrainFilterProject = { ids?: Array | undefined; }; @@ -644,33 +497,26 @@ export type GetDrainFilterDeployment = { }; export type GetDrainFilter1 = { - type: GetDrainFilterType; + type: "basic"; project?: GetDrainFilterProject | undefined; log?: GetDrainFilterLog | undefined; deployment?: GetDrainFilterDeployment | undefined; }; -export type GetDrainFilterV2Filter = GetDrainFilter2 | GetDrainFilter1; +export type GetDrainFilterV2Filter = GetDrainFilter1 | GetDrainFilter2; export type GetDrainFilterV22 = { - version: GetDrainFilterV2DrainsVersion; - filter: GetDrainFilter2 | GetDrainFilter1; + version: "v2"; + filter: GetDrainFilter1 | GetDrainFilter2; }; -export const GetDrainFilterV2Version = { - V1: "v1", -} as const; -export type GetDrainFilterV2Version = ClosedEnum< - typeof GetDrainFilterV2Version ->; - export type GetDrainFilterV21 = { - version: GetDrainFilterV2Version; + version: "v1"; }; export type GetDrainResponseBodyFilterV2 = - | GetDrainFilterV22 - | GetDrainFilterV21; + | GetDrainFilterV21 + | GetDrainFilterV22; export type GetDrainResponseBody1 = { id: string; @@ -693,9 +539,9 @@ export type GetDrainResponseBody1 = { disabledReason?: GetDrainResponseBodyDisabledReason | undefined; disabledBy?: string | undefined; firstErrorTimestamp?: number | undefined; - source: GetDrainSource2 | GetDrainSource1; + source: GetDrainSource1 | GetDrainSource2; filter?: string | undefined; - filterV2?: GetDrainFilterV22 | GetDrainFilterV21 | undefined; + filterV2?: GetDrainFilterV21 | GetDrainFilterV22 | undefined; }; export type GetDrainResponseBody = @@ -958,20 +804,6 @@ export function getDrainResponseBodyDrainsSchemasFromJSON( ); } -/** @internal */ -export const GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type$inboundSchema: - z.ZodNativeEnum< - typeof GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type - > = z.nativeEnum( - GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type, - ); -/** @internal */ -export const GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type$outboundSchema: - z.ZodNativeEnum< - typeof GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type - > = - GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type$inboundSchema; - /** @internal */ export const GetDrainDeliveryDrainsTarget$inboundSchema: z.ZodNativeEnum< typeof GetDrainDeliveryDrainsTarget @@ -987,13 +819,12 @@ export const GetDrainDeliveryDrains4$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: - GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type$inboundSchema, + type: z.literal("internal"), target: GetDrainDeliveryDrainsTarget$inboundSchema, }); /** @internal */ export type GetDrainDeliveryDrains4$Outbound = { - type: string; + type: "internal"; target: string; }; @@ -1003,8 +834,7 @@ export const GetDrainDeliveryDrains4$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainDeliveryDrains4 > = z.object({ - type: - GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type$outboundSchema, + type: z.literal("internal"), target: GetDrainDeliveryDrainsTarget$outboundSchema, }); @@ -1025,34 +855,19 @@ export function getDrainDeliveryDrains4FromJSON( ); } -/** @internal */ -export const GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type$inboundSchema: - z.ZodNativeEnum< - typeof GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type - > = z.nativeEnum( - GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type, - ); -/** @internal */ -export const GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type$outboundSchema: - z.ZodNativeEnum< - typeof GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type - > = - GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type$inboundSchema; - /** @internal */ export const GetDrainDeliveryDrains3$inboundSchema: z.ZodType< GetDrainDeliveryDrains3, z.ZodTypeDef, unknown > = z.object({ - type: - GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type$inboundSchema, + type: z.literal("clickhouse"), endpoint: z.string(), table: z.string(), }); /** @internal */ export type GetDrainDeliveryDrains3$Outbound = { - type: string; + type: "clickhouse"; endpoint: string; table: string; }; @@ -1063,8 +878,7 @@ export const GetDrainDeliveryDrains3$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainDeliveryDrains3 > = z.object({ - type: - GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type$outboundSchema, + type: z.literal("clickhouse"), endpoint: z.string(), table: z.string(), }); @@ -1086,20 +900,6 @@ export function getDrainDeliveryDrains3FromJSON( ); } -/** @internal */ -export const GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType$inboundSchema: - z.ZodNativeEnum< - typeof GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType - > = z.nativeEnum( - GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType, - ); -/** @internal */ -export const GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType$outboundSchema: - z.ZodNativeEnum< - typeof GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType - > = - GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType$inboundSchema; - /** @internal */ export const GetDrainDeliveryDrainsEndpoint$inboundSchema: z.ZodType< GetDrainDeliveryDrainsEndpoint, @@ -1256,8 +1056,7 @@ export const GetDrainDeliveryDrains2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: - GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType$inboundSchema, + type: z.literal("otlphttp"), endpoint: z.lazy(() => GetDrainDeliveryDrainsEndpoint$inboundSchema), encoding: GetDrainDeliveryDrainsResponse200Encoding$inboundSchema, headers: z.record(z.string()), @@ -1268,7 +1067,7 @@ export const GetDrainDeliveryDrains2$inboundSchema: z.ZodType< }); /** @internal */ export type GetDrainDeliveryDrains2$Outbound = { - type: string; + type: "otlphttp"; endpoint: GetDrainDeliveryDrainsEndpoint$Outbound; encoding: string; headers: { [k: string]: string }; @@ -1281,8 +1080,7 @@ export const GetDrainDeliveryDrains2$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainDeliveryDrains2 > = z.object({ - type: - GetDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType$outboundSchema, + type: z.literal("otlphttp"), endpoint: z.lazy(() => GetDrainDeliveryDrainsEndpoint$outboundSchema), encoding: GetDrainDeliveryDrainsResponse200Encoding$outboundSchema, headers: z.record(z.string()), @@ -1309,15 +1107,6 @@ export function getDrainDeliveryDrains2FromJSON( ); } -/** @internal */ -export const GetDrainDeliveryDrainsResponse200ApplicationJSONType$inboundSchema: - z.ZodNativeEnum = - z.nativeEnum(GetDrainDeliveryDrainsResponse200ApplicationJSONType); -/** @internal */ -export const GetDrainDeliveryDrainsResponse200ApplicationJSONType$outboundSchema: - z.ZodNativeEnum = - GetDrainDeliveryDrainsResponse200ApplicationJSONType$inboundSchema; - /** @internal */ export const GetDrainDeliveryDrainsResponseEncoding$inboundSchema: z.ZodNativeEnum = z.nativeEnum( @@ -1437,7 +1226,7 @@ export const GetDrainDeliveryDrains1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetDrainDeliveryDrainsResponse200ApplicationJSONType$inboundSchema, + type: z.literal("http"), endpoint: z.string(), encoding: GetDrainDeliveryDrainsResponseEncoding$inboundSchema, compression: GetDrainDeliveryDrainsCompression$inboundSchema.optional(), @@ -1449,7 +1238,7 @@ export const GetDrainDeliveryDrains1$inboundSchema: z.ZodType< }); /** @internal */ export type GetDrainDeliveryDrains1$Outbound = { - type: string; + type: "http"; endpoint: string; encoding: string; compression?: string | undefined; @@ -1463,7 +1252,7 @@ export const GetDrainDeliveryDrains1$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainDeliveryDrains1 > = z.object({ - type: GetDrainDeliveryDrainsResponse200ApplicationJSONType$outboundSchema, + type: z.literal("http"), endpoint: z.string(), encoding: GetDrainDeliveryDrainsResponseEncoding$outboundSchema, compression: GetDrainDeliveryDrainsCompression$outboundSchema.optional(), @@ -1628,22 +1417,13 @@ export const GetDrainResponseBodyDrainsDisabledReason$outboundSchema: z.ZodNativeEnum = GetDrainResponseBodyDrainsDisabledReason$inboundSchema; -/** @internal */ -export const GetDrainSourceDrainsResponse200Kind$inboundSchema: z.ZodNativeEnum< - typeof GetDrainSourceDrainsResponse200Kind -> = z.nativeEnum(GetDrainSourceDrainsResponse200Kind); -/** @internal */ -export const GetDrainSourceDrainsResponse200Kind$outboundSchema: - z.ZodNativeEnum = - GetDrainSourceDrainsResponse200Kind$inboundSchema; - /** @internal */ export const GetDrainSourceDrains2$inboundSchema: z.ZodType< GetDrainSourceDrains2, z.ZodTypeDef, unknown > = z.object({ - kind: GetDrainSourceDrainsResponse200Kind$inboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -1651,7 +1431,7 @@ export const GetDrainSourceDrains2$inboundSchema: z.ZodType< }); /** @internal */ export type GetDrainSourceDrains2$Outbound = { - kind: string; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; @@ -1664,7 +1444,7 @@ export const GetDrainSourceDrains2$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainSourceDrains2 > = z.object({ - kind: GetDrainSourceDrainsResponse200Kind$outboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -1688,26 +1468,17 @@ export function getDrainSourceDrains2FromJSON( ); } -/** @internal */ -export const GetDrainSourceDrainsResponseKind$inboundSchema: z.ZodNativeEnum< - typeof GetDrainSourceDrainsResponseKind -> = z.nativeEnum(GetDrainSourceDrainsResponseKind); -/** @internal */ -export const GetDrainSourceDrainsResponseKind$outboundSchema: z.ZodNativeEnum< - typeof GetDrainSourceDrainsResponseKind -> = GetDrainSourceDrainsResponseKind$inboundSchema; - /** @internal */ export const GetDrainSourceDrains1$inboundSchema: z.ZodType< GetDrainSourceDrains1, z.ZodTypeDef, unknown > = z.object({ - kind: GetDrainSourceDrainsResponseKind$inboundSchema, + kind: z.literal("self-served"), }); /** @internal */ export type GetDrainSourceDrains1$Outbound = { - kind: string; + kind: "self-served"; }; /** @internal */ @@ -1716,7 +1487,7 @@ export const GetDrainSourceDrains1$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainSourceDrains1 > = z.object({ - kind: GetDrainSourceDrainsResponseKind$outboundSchema, + kind: z.literal("self-served"), }); export function getDrainSourceDrains1ToJSON( @@ -1742,13 +1513,13 @@ export const GetDrainResponseBodyDrainsSource$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetDrainSourceDrains2$inboundSchema), z.lazy(() => GetDrainSourceDrains1$inboundSchema), + z.lazy(() => GetDrainSourceDrains2$inboundSchema), ]); /** @internal */ export type GetDrainResponseBodyDrainsSource$Outbound = - | GetDrainSourceDrains2$Outbound - | GetDrainSourceDrains1$Outbound; + | GetDrainSourceDrains1$Outbound + | GetDrainSourceDrains2$Outbound; /** @internal */ export const GetDrainResponseBodyDrainsSource$outboundSchema: z.ZodType< @@ -1756,8 +1527,8 @@ export const GetDrainResponseBodyDrainsSource$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainResponseBodyDrainsSource > = z.union([ - z.lazy(() => GetDrainSourceDrains2$outboundSchema), z.lazy(() => GetDrainSourceDrains1$outboundSchema), + z.lazy(() => GetDrainSourceDrains2$outboundSchema), ]); export function getDrainResponseBodyDrainsSourceToJSON( @@ -1779,36 +1550,18 @@ export function getDrainResponseBodyDrainsSourceFromJSON( ); } -/** @internal */ -export const GetDrainFilterV2DrainsResponse200Version$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetDrainFilterV2DrainsResponse200Version); -/** @internal */ -export const GetDrainFilterV2DrainsResponse200Version$outboundSchema: - z.ZodNativeEnum = - GetDrainFilterV2DrainsResponse200Version$inboundSchema; - -/** @internal */ -export const GetDrainFilterDrainsResponse200Type$inboundSchema: z.ZodNativeEnum< - typeof GetDrainFilterDrainsResponse200Type -> = z.nativeEnum(GetDrainFilterDrainsResponse200Type); -/** @internal */ -export const GetDrainFilterDrainsResponse200Type$outboundSchema: - z.ZodNativeEnum = - GetDrainFilterDrainsResponse200Type$inboundSchema; - /** @internal */ export const GetDrainFilterDrains2$inboundSchema: z.ZodType< GetDrainFilterDrains2, z.ZodTypeDef, unknown > = z.object({ - type: GetDrainFilterDrainsResponse200Type$inboundSchema, + type: z.literal("odata"), text: z.string(), }); /** @internal */ export type GetDrainFilterDrains2$Outbound = { - type: string; + type: "odata"; text: string; }; @@ -1818,7 +1571,7 @@ export const GetDrainFilterDrains2$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainFilterDrains2 > = z.object({ - type: GetDrainFilterDrainsResponse200Type$outboundSchema, + type: z.literal("odata"), text: z.string(), }); @@ -1839,15 +1592,6 @@ export function getDrainFilterDrains2FromJSON( ); } -/** @internal */ -export const GetDrainFilterDrainsResponseType$inboundSchema: z.ZodNativeEnum< - typeof GetDrainFilterDrainsResponseType -> = z.nativeEnum(GetDrainFilterDrainsResponseType); -/** @internal */ -export const GetDrainFilterDrainsResponseType$outboundSchema: z.ZodNativeEnum< - typeof GetDrainFilterDrainsResponseType -> = GetDrainFilterDrainsResponseType$inboundSchema; - /** @internal */ export const GetDrainFilterDrainsProject$inboundSchema: z.ZodType< GetDrainFilterDrainsProject, @@ -2006,7 +1750,7 @@ export const GetDrainFilterDrains1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetDrainFilterDrainsResponseType$inboundSchema, + type: z.literal("basic"), project: z.lazy(() => GetDrainFilterDrainsProject$inboundSchema).optional(), log: z.lazy(() => GetDrainFilterDrainsLog$inboundSchema).optional(), deployment: z.lazy(() => GetDrainFilterDrainsDeployment$inboundSchema) @@ -2014,7 +1758,7 @@ export const GetDrainFilterDrains1$inboundSchema: z.ZodType< }); /** @internal */ export type GetDrainFilterDrains1$Outbound = { - type: string; + type: "basic"; project?: GetDrainFilterDrainsProject$Outbound | undefined; log?: GetDrainFilterDrainsLog$Outbound | undefined; deployment?: GetDrainFilterDrainsDeployment$Outbound | undefined; @@ -2026,7 +1770,7 @@ export const GetDrainFilterDrains1$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainFilterDrains1 > = z.object({ - type: GetDrainFilterDrainsResponseType$outboundSchema, + type: z.literal("basic"), project: z.lazy(() => GetDrainFilterDrainsProject$outboundSchema).optional(), log: z.lazy(() => GetDrainFilterDrainsLog$outboundSchema).optional(), deployment: z.lazy(() => GetDrainFilterDrainsDeployment$outboundSchema) @@ -2056,13 +1800,13 @@ export const GetDrainFilterV2DrainsFilter$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetDrainFilterDrains2$inboundSchema), z.lazy(() => GetDrainFilterDrains1$inboundSchema), + z.lazy(() => GetDrainFilterDrains2$inboundSchema), ]); /** @internal */ export type GetDrainFilterV2DrainsFilter$Outbound = - | GetDrainFilterDrains2$Outbound - | GetDrainFilterDrains1$Outbound; + | GetDrainFilterDrains1$Outbound + | GetDrainFilterDrains2$Outbound; /** @internal */ export const GetDrainFilterV2DrainsFilter$outboundSchema: z.ZodType< @@ -2070,8 +1814,8 @@ export const GetDrainFilterV2DrainsFilter$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainFilterV2DrainsFilter > = z.union([ - z.lazy(() => GetDrainFilterDrains2$outboundSchema), z.lazy(() => GetDrainFilterDrains1$outboundSchema), + z.lazy(() => GetDrainFilterDrains2$outboundSchema), ]); export function getDrainFilterV2DrainsFilterToJSON( @@ -2099,16 +1843,16 @@ export const GetDrainFilterV2Drains2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - version: GetDrainFilterV2DrainsResponse200Version$inboundSchema, + version: z.literal("v2"), filter: z.union([ - z.lazy(() => GetDrainFilterDrains2$inboundSchema), z.lazy(() => GetDrainFilterDrains1$inboundSchema), + z.lazy(() => GetDrainFilterDrains2$inboundSchema), ]), }); /** @internal */ export type GetDrainFilterV2Drains2$Outbound = { - version: string; - filter: GetDrainFilterDrains2$Outbound | GetDrainFilterDrains1$Outbound; + version: "v2"; + filter: GetDrainFilterDrains1$Outbound | GetDrainFilterDrains2$Outbound; }; /** @internal */ @@ -2117,10 +1861,10 @@ export const GetDrainFilterV2Drains2$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainFilterV2Drains2 > = z.object({ - version: GetDrainFilterV2DrainsResponse200Version$outboundSchema, + version: z.literal("v2"), filter: z.union([ - z.lazy(() => GetDrainFilterDrains2$outboundSchema), z.lazy(() => GetDrainFilterDrains1$outboundSchema), + z.lazy(() => GetDrainFilterDrains2$outboundSchema), ]), }); @@ -2141,27 +1885,17 @@ export function getDrainFilterV2Drains2FromJSON( ); } -/** @internal */ -export const GetDrainFilterV2DrainsResponseVersion$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - GetDrainFilterV2DrainsResponseVersion, - ); -/** @internal */ -export const GetDrainFilterV2DrainsResponseVersion$outboundSchema: - z.ZodNativeEnum = - GetDrainFilterV2DrainsResponseVersion$inboundSchema; - /** @internal */ export const GetDrainFilterV2Drains1$inboundSchema: z.ZodType< GetDrainFilterV2Drains1, z.ZodTypeDef, unknown > = z.object({ - version: GetDrainFilterV2DrainsResponseVersion$inboundSchema, + version: z.literal("v1"), }); /** @internal */ export type GetDrainFilterV2Drains1$Outbound = { - version: string; + version: "v1"; }; /** @internal */ @@ -2170,7 +1904,7 @@ export const GetDrainFilterV2Drains1$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainFilterV2Drains1 > = z.object({ - version: GetDrainFilterV2DrainsResponseVersion$outboundSchema, + version: z.literal("v1"), }); export function getDrainFilterV2Drains1ToJSON( @@ -2196,13 +1930,13 @@ export const GetDrainResponseBodyDrainsFilterV2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetDrainFilterV2Drains2$inboundSchema), z.lazy(() => GetDrainFilterV2Drains1$inboundSchema), + z.lazy(() => GetDrainFilterV2Drains2$inboundSchema), ]); /** @internal */ export type GetDrainResponseBodyDrainsFilterV2$Outbound = - | GetDrainFilterV2Drains2$Outbound - | GetDrainFilterV2Drains1$Outbound; + | GetDrainFilterV2Drains1$Outbound + | GetDrainFilterV2Drains2$Outbound; /** @internal */ export const GetDrainResponseBodyDrainsFilterV2$outboundSchema: z.ZodType< @@ -2210,8 +1944,8 @@ export const GetDrainResponseBodyDrainsFilterV2$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainResponseBodyDrainsFilterV2 > = z.union([ - z.lazy(() => GetDrainFilterV2Drains2$outboundSchema), z.lazy(() => GetDrainFilterV2Drains1$outboundSchema), + z.lazy(() => GetDrainFilterV2Drains2$outboundSchema), ]); export function getDrainResponseBodyDrainsFilterV2ToJSON( @@ -2234,27 +1968,18 @@ export function getDrainResponseBodyDrainsFilterV2FromJSON( ); } -/** @internal */ -export const GetDrainProjectAccessDrainsAccess$inboundSchema: z.ZodNativeEnum< - typeof GetDrainProjectAccessDrainsAccess -> = z.nativeEnum(GetDrainProjectAccessDrainsAccess); -/** @internal */ -export const GetDrainProjectAccessDrainsAccess$outboundSchema: z.ZodNativeEnum< - typeof GetDrainProjectAccessDrainsAccess -> = GetDrainProjectAccessDrainsAccess$inboundSchema; - /** @internal */ export const GetDrainProjectAccess2$inboundSchema: z.ZodType< GetDrainProjectAccess2, z.ZodTypeDef, unknown > = z.object({ - access: GetDrainProjectAccessDrainsAccess$inboundSchema, + access: z.literal("some"), projectIds: z.array(z.string()), }); /** @internal */ export type GetDrainProjectAccess2$Outbound = { - access: string; + access: "some"; projectIds: Array; }; @@ -2264,7 +1989,7 @@ export const GetDrainProjectAccess2$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainProjectAccess2 > = z.object({ - access: GetDrainProjectAccessDrainsAccess$outboundSchema, + access: z.literal("some"), projectIds: z.array(z.string()), }); @@ -2285,26 +2010,17 @@ export function getDrainProjectAccess2FromJSON( ); } -/** @internal */ -export const GetDrainProjectAccessAccess$inboundSchema: z.ZodNativeEnum< - typeof GetDrainProjectAccessAccess -> = z.nativeEnum(GetDrainProjectAccessAccess); -/** @internal */ -export const GetDrainProjectAccessAccess$outboundSchema: z.ZodNativeEnum< - typeof GetDrainProjectAccessAccess -> = GetDrainProjectAccessAccess$inboundSchema; - /** @internal */ export const GetDrainProjectAccess1$inboundSchema: z.ZodType< GetDrainProjectAccess1, z.ZodTypeDef, unknown > = z.object({ - access: GetDrainProjectAccessAccess$inboundSchema, + access: z.literal("all"), }); /** @internal */ export type GetDrainProjectAccess1$Outbound = { - access: string; + access: "all"; }; /** @internal */ @@ -2313,7 +2029,7 @@ export const GetDrainProjectAccess1$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainProjectAccess1 > = z.object({ - access: GetDrainProjectAccessAccess$outboundSchema, + access: z.literal("all"), }); export function getDrainProjectAccess1ToJSON( @@ -2339,13 +2055,13 @@ export const ResponseBodyProjectAccess$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetDrainProjectAccess2$inboundSchema), z.lazy(() => GetDrainProjectAccess1$inboundSchema), + z.lazy(() => GetDrainProjectAccess2$inboundSchema), ]); /** @internal */ export type ResponseBodyProjectAccess$Outbound = - | GetDrainProjectAccess2$Outbound - | GetDrainProjectAccess1$Outbound; + | GetDrainProjectAccess1$Outbound + | GetDrainProjectAccess2$Outbound; /** @internal */ export const ResponseBodyProjectAccess$outboundSchema: z.ZodType< @@ -2353,8 +2069,8 @@ export const ResponseBodyProjectAccess$outboundSchema: z.ZodType< z.ZodTypeDef, ResponseBodyProjectAccess > = z.union([ - z.lazy(() => GetDrainProjectAccess2$outboundSchema), z.lazy(() => GetDrainProjectAccess1$outboundSchema), + z.lazy(() => GetDrainProjectAccess2$outboundSchema), ]); export function responseBodyProjectAccessToJSON( @@ -2405,20 +2121,20 @@ export const GetDrainResponseBody2$inboundSchema: z.ZodType< disabledBy: z.string().optional(), firstErrorTimestamp: z.number().optional(), source: z.union([ - z.lazy(() => GetDrainSourceDrains2$inboundSchema), z.lazy(() => GetDrainSourceDrains1$inboundSchema), + z.lazy(() => GetDrainSourceDrains2$inboundSchema), ]), filter: z.string().optional(), filterV2: z.union([ - z.lazy(() => GetDrainFilterV2Drains2$inboundSchema), z.lazy(() => GetDrainFilterV2Drains1$inboundSchema), + z.lazy(() => GetDrainFilterV2Drains2$inboundSchema), ]).optional(), integrationIcon: z.string().optional(), integrationConfigurationUri: z.string().optional(), integrationWebsite: z.string().optional(), projectAccess: z.union([ - z.lazy(() => GetDrainProjectAccess2$inboundSchema), z.lazy(() => GetDrainProjectAccess1$inboundSchema), + z.lazy(() => GetDrainProjectAccess2$inboundSchema), ]).optional(), }); /** @internal */ @@ -2443,18 +2159,18 @@ export type GetDrainResponseBody2$Outbound = { disabledReason?: string | undefined; disabledBy?: string | undefined; firstErrorTimestamp?: number | undefined; - source: GetDrainSourceDrains2$Outbound | GetDrainSourceDrains1$Outbound; + source: GetDrainSourceDrains1$Outbound | GetDrainSourceDrains2$Outbound; filter?: string | undefined; filterV2?: - | GetDrainFilterV2Drains2$Outbound | GetDrainFilterV2Drains1$Outbound + | GetDrainFilterV2Drains2$Outbound | undefined; integrationIcon?: string | undefined; integrationConfigurationUri?: string | undefined; integrationWebsite?: string | undefined; projectAccess?: - | GetDrainProjectAccess2$Outbound | GetDrainProjectAccess1$Outbound + | GetDrainProjectAccess2$Outbound | undefined; }; @@ -2489,20 +2205,20 @@ export const GetDrainResponseBody2$outboundSchema: z.ZodType< disabledBy: z.string().optional(), firstErrorTimestamp: z.number().optional(), source: z.union([ - z.lazy(() => GetDrainSourceDrains2$outboundSchema), z.lazy(() => GetDrainSourceDrains1$outboundSchema), + z.lazy(() => GetDrainSourceDrains2$outboundSchema), ]), filter: z.string().optional(), filterV2: z.union([ - z.lazy(() => GetDrainFilterV2Drains2$outboundSchema), z.lazy(() => GetDrainFilterV2Drains1$outboundSchema), + z.lazy(() => GetDrainFilterV2Drains2$outboundSchema), ]).optional(), integrationIcon: z.string().optional(), integrationConfigurationUri: z.string().optional(), integrationWebsite: z.string().optional(), projectAccess: z.union([ - z.lazy(() => GetDrainProjectAccess2$outboundSchema), z.lazy(() => GetDrainProjectAccess1$outboundSchema), + z.lazy(() => GetDrainProjectAccess2$outboundSchema), ]).optional(), }); @@ -2721,16 +2437,6 @@ export function getDrainResponseBodySchemasFromJSON( ); } -/** @internal */ -export const GetDrainDeliveryDrainsResponse200Type$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - GetDrainDeliveryDrainsResponse200Type, - ); -/** @internal */ -export const GetDrainDeliveryDrainsResponse200Type$outboundSchema: - z.ZodNativeEnum = - GetDrainDeliveryDrainsResponse200Type$inboundSchema; - /** @internal */ export const GetDrainDeliveryTarget$inboundSchema: z.ZodNativeEnum< typeof GetDrainDeliveryTarget @@ -2746,12 +2452,12 @@ export const GetDrainDelivery4$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetDrainDeliveryDrainsResponse200Type$inboundSchema, + type: z.literal("internal"), target: GetDrainDeliveryTarget$inboundSchema, }); /** @internal */ export type GetDrainDelivery4$Outbound = { - type: string; + type: "internal"; target: string; }; @@ -2761,7 +2467,7 @@ export const GetDrainDelivery4$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainDelivery4 > = z.object({ - type: GetDrainDeliveryDrainsResponse200Type$outboundSchema, + type: z.literal("internal"), target: GetDrainDeliveryTarget$outboundSchema, }); @@ -2782,28 +2488,19 @@ export function getDrainDelivery4FromJSON( ); } -/** @internal */ -export const GetDrainDeliveryDrainsResponseType$inboundSchema: z.ZodNativeEnum< - typeof GetDrainDeliveryDrainsResponseType -> = z.nativeEnum(GetDrainDeliveryDrainsResponseType); -/** @internal */ -export const GetDrainDeliveryDrainsResponseType$outboundSchema: z.ZodNativeEnum< - typeof GetDrainDeliveryDrainsResponseType -> = GetDrainDeliveryDrainsResponseType$inboundSchema; - /** @internal */ export const GetDrainDelivery3$inboundSchema: z.ZodType< GetDrainDelivery3, z.ZodTypeDef, unknown > = z.object({ - type: GetDrainDeliveryDrainsResponseType$inboundSchema, + type: z.literal("clickhouse"), endpoint: z.string(), table: z.string(), }); /** @internal */ export type GetDrainDelivery3$Outbound = { - type: string; + type: "clickhouse"; endpoint: string; table: string; }; @@ -2814,7 +2511,7 @@ export const GetDrainDelivery3$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainDelivery3 > = z.object({ - type: GetDrainDeliveryDrainsResponseType$outboundSchema, + type: z.literal("clickhouse"), endpoint: z.string(), table: z.string(), }); @@ -2836,15 +2533,6 @@ export function getDrainDelivery3FromJSON( ); } -/** @internal */ -export const GetDrainDeliveryDrainsType$inboundSchema: z.ZodNativeEnum< - typeof GetDrainDeliveryDrainsType -> = z.nativeEnum(GetDrainDeliveryDrainsType); -/** @internal */ -export const GetDrainDeliveryDrainsType$outboundSchema: z.ZodNativeEnum< - typeof GetDrainDeliveryDrainsType -> = GetDrainDeliveryDrainsType$inboundSchema; - /** @internal */ export const GetDrainDeliveryEndpoint$inboundSchema: z.ZodType< GetDrainDeliveryEndpoint, @@ -2984,7 +2672,7 @@ export const GetDrainDelivery2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetDrainDeliveryDrainsType$inboundSchema, + type: z.literal("otlphttp"), endpoint: z.lazy(() => GetDrainDeliveryEndpoint$inboundSchema), encoding: GetDrainDeliveryDrainsEncoding$inboundSchema, headers: z.record(z.string()), @@ -2995,7 +2683,7 @@ export const GetDrainDelivery2$inboundSchema: z.ZodType< }); /** @internal */ export type GetDrainDelivery2$Outbound = { - type: string; + type: "otlphttp"; endpoint: GetDrainDeliveryEndpoint$Outbound; encoding: string; headers: { [k: string]: string }; @@ -3008,7 +2696,7 @@ export const GetDrainDelivery2$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainDelivery2 > = z.object({ - type: GetDrainDeliveryDrainsType$outboundSchema, + type: z.literal("otlphttp"), endpoint: z.lazy(() => GetDrainDeliveryEndpoint$outboundSchema), encoding: GetDrainDeliveryDrainsEncoding$outboundSchema, headers: z.record(z.string()), @@ -3035,15 +2723,6 @@ export function getDrainDelivery2FromJSON( ); } -/** @internal */ -export const GetDrainDeliveryType$inboundSchema: z.ZodNativeEnum< - typeof GetDrainDeliveryType -> = z.nativeEnum(GetDrainDeliveryType); -/** @internal */ -export const GetDrainDeliveryType$outboundSchema: z.ZodNativeEnum< - typeof GetDrainDeliveryType -> = GetDrainDeliveryType$inboundSchema; - /** @internal */ export const GetDrainDeliveryEncoding$inboundSchema: z.ZodNativeEnum< typeof GetDrainDeliveryEncoding @@ -3147,7 +2826,7 @@ export const GetDrainDelivery1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetDrainDeliveryType$inboundSchema, + type: z.literal("http"), endpoint: z.string(), encoding: GetDrainDeliveryEncoding$inboundSchema, compression: GetDrainDeliveryCompression$inboundSchema.optional(), @@ -3157,7 +2836,7 @@ export const GetDrainDelivery1$inboundSchema: z.ZodType< }); /** @internal */ export type GetDrainDelivery1$Outbound = { - type: string; + type: "http"; endpoint: string; encoding: string; compression?: string | undefined; @@ -3171,7 +2850,7 @@ export const GetDrainDelivery1$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainDelivery1 > = z.object({ - type: GetDrainDeliveryType$outboundSchema, + type: z.literal("http"), endpoint: z.string(), encoding: GetDrainDeliveryEncoding$outboundSchema, compression: GetDrainDeliveryCompression$outboundSchema.optional(), @@ -3332,22 +3011,13 @@ export const GetDrainResponseBodyDisabledReason$outboundSchema: z.ZodNativeEnum< typeof GetDrainResponseBodyDisabledReason > = GetDrainResponseBodyDisabledReason$inboundSchema; -/** @internal */ -export const GetDrainSourceDrainsKind$inboundSchema: z.ZodNativeEnum< - typeof GetDrainSourceDrainsKind -> = z.nativeEnum(GetDrainSourceDrainsKind); -/** @internal */ -export const GetDrainSourceDrainsKind$outboundSchema: z.ZodNativeEnum< - typeof GetDrainSourceDrainsKind -> = GetDrainSourceDrainsKind$inboundSchema; - /** @internal */ export const GetDrainSource2$inboundSchema: z.ZodType< GetDrainSource2, z.ZodTypeDef, unknown > = z.object({ - kind: GetDrainSourceDrainsKind$inboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -3355,7 +3025,7 @@ export const GetDrainSource2$inboundSchema: z.ZodType< }); /** @internal */ export type GetDrainSource2$Outbound = { - kind: string; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; @@ -3368,7 +3038,7 @@ export const GetDrainSource2$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainSource2 > = z.object({ - kind: GetDrainSourceDrainsKind$outboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -3390,26 +3060,17 @@ export function getDrainSource2FromJSON( ); } -/** @internal */ -export const GetDrainSourceKind$inboundSchema: z.ZodNativeEnum< - typeof GetDrainSourceKind -> = z.nativeEnum(GetDrainSourceKind); -/** @internal */ -export const GetDrainSourceKind$outboundSchema: z.ZodNativeEnum< - typeof GetDrainSourceKind -> = GetDrainSourceKind$inboundSchema; - /** @internal */ export const GetDrainSource1$inboundSchema: z.ZodType< GetDrainSource1, z.ZodTypeDef, unknown > = z.object({ - kind: GetDrainSourceKind$inboundSchema, + kind: z.literal("self-served"), }); /** @internal */ export type GetDrainSource1$Outbound = { - kind: string; + kind: "self-served"; }; /** @internal */ @@ -3418,7 +3079,7 @@ export const GetDrainSource1$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainSource1 > = z.object({ - kind: GetDrainSourceKind$outboundSchema, + kind: z.literal("self-served"), }); export function getDrainSource1ToJSON( @@ -3442,13 +3103,13 @@ export const GetDrainResponseBodySource$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetDrainSource2$inboundSchema), z.lazy(() => GetDrainSource1$inboundSchema), + z.lazy(() => GetDrainSource2$inboundSchema), ]); /** @internal */ export type GetDrainResponseBodySource$Outbound = - | GetDrainSource2$Outbound - | GetDrainSource1$Outbound; + | GetDrainSource1$Outbound + | GetDrainSource2$Outbound; /** @internal */ export const GetDrainResponseBodySource$outboundSchema: z.ZodType< @@ -3456,8 +3117,8 @@ export const GetDrainResponseBodySource$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainResponseBodySource > = z.union([ - z.lazy(() => GetDrainSource2$outboundSchema), z.lazy(() => GetDrainSource1$outboundSchema), + z.lazy(() => GetDrainSource2$outboundSchema), ]); export function getDrainResponseBodySourceToJSON( @@ -3477,36 +3138,18 @@ export function getDrainResponseBodySourceFromJSON( ); } -/** @internal */ -export const GetDrainFilterV2DrainsVersion$inboundSchema: z.ZodNativeEnum< - typeof GetDrainFilterV2DrainsVersion -> = z.nativeEnum(GetDrainFilterV2DrainsVersion); -/** @internal */ -export const GetDrainFilterV2DrainsVersion$outboundSchema: z.ZodNativeEnum< - typeof GetDrainFilterV2DrainsVersion -> = GetDrainFilterV2DrainsVersion$inboundSchema; - -/** @internal */ -export const GetDrainFilterDrainsType$inboundSchema: z.ZodNativeEnum< - typeof GetDrainFilterDrainsType -> = z.nativeEnum(GetDrainFilterDrainsType); -/** @internal */ -export const GetDrainFilterDrainsType$outboundSchema: z.ZodNativeEnum< - typeof GetDrainFilterDrainsType -> = GetDrainFilterDrainsType$inboundSchema; - /** @internal */ export const GetDrainFilter2$inboundSchema: z.ZodType< GetDrainFilter2, z.ZodTypeDef, unknown > = z.object({ - type: GetDrainFilterDrainsType$inboundSchema, + type: z.literal("odata"), text: z.string(), }); /** @internal */ export type GetDrainFilter2$Outbound = { - type: string; + type: "odata"; text: string; }; @@ -3516,7 +3159,7 @@ export const GetDrainFilter2$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainFilter2 > = z.object({ - type: GetDrainFilterDrainsType$outboundSchema, + type: z.literal("odata"), text: z.string(), }); @@ -3535,15 +3178,6 @@ export function getDrainFilter2FromJSON( ); } -/** @internal */ -export const GetDrainFilterType$inboundSchema: z.ZodNativeEnum< - typeof GetDrainFilterType -> = z.nativeEnum(GetDrainFilterType); -/** @internal */ -export const GetDrainFilterType$outboundSchema: z.ZodNativeEnum< - typeof GetDrainFilterType -> = GetDrainFilterType$inboundSchema; - /** @internal */ export const GetDrainFilterProject$inboundSchema: z.ZodType< GetDrainFilterProject, @@ -3696,14 +3330,14 @@ export const GetDrainFilter1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetDrainFilterType$inboundSchema, + type: z.literal("basic"), project: z.lazy(() => GetDrainFilterProject$inboundSchema).optional(), log: z.lazy(() => GetDrainFilterLog$inboundSchema).optional(), deployment: z.lazy(() => GetDrainFilterDeployment$inboundSchema).optional(), }); /** @internal */ export type GetDrainFilter1$Outbound = { - type: string; + type: "basic"; project?: GetDrainFilterProject$Outbound | undefined; log?: GetDrainFilterLog$Outbound | undefined; deployment?: GetDrainFilterDeployment$Outbound | undefined; @@ -3715,7 +3349,7 @@ export const GetDrainFilter1$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainFilter1 > = z.object({ - type: GetDrainFilterType$outboundSchema, + type: z.literal("basic"), project: z.lazy(() => GetDrainFilterProject$outboundSchema).optional(), log: z.lazy(() => GetDrainFilterLog$outboundSchema).optional(), deployment: z.lazy(() => GetDrainFilterDeployment$outboundSchema).optional(), @@ -3742,13 +3376,13 @@ export const GetDrainFilterV2Filter$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetDrainFilter2$inboundSchema), z.lazy(() => GetDrainFilter1$inboundSchema), + z.lazy(() => GetDrainFilter2$inboundSchema), ]); /** @internal */ export type GetDrainFilterV2Filter$Outbound = - | GetDrainFilter2$Outbound - | GetDrainFilter1$Outbound; + | GetDrainFilter1$Outbound + | GetDrainFilter2$Outbound; /** @internal */ export const GetDrainFilterV2Filter$outboundSchema: z.ZodType< @@ -3756,8 +3390,8 @@ export const GetDrainFilterV2Filter$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainFilterV2Filter > = z.union([ - z.lazy(() => GetDrainFilter2$outboundSchema), z.lazy(() => GetDrainFilter1$outboundSchema), + z.lazy(() => GetDrainFilter2$outboundSchema), ]); export function getDrainFilterV2FilterToJSON( @@ -3783,16 +3417,16 @@ export const GetDrainFilterV22$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - version: GetDrainFilterV2DrainsVersion$inboundSchema, + version: z.literal("v2"), filter: z.union([ - z.lazy(() => GetDrainFilter2$inboundSchema), z.lazy(() => GetDrainFilter1$inboundSchema), + z.lazy(() => GetDrainFilter2$inboundSchema), ]), }); /** @internal */ export type GetDrainFilterV22$Outbound = { - version: string; - filter: GetDrainFilter2$Outbound | GetDrainFilter1$Outbound; + version: "v2"; + filter: GetDrainFilter1$Outbound | GetDrainFilter2$Outbound; }; /** @internal */ @@ -3801,10 +3435,10 @@ export const GetDrainFilterV22$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainFilterV22 > = z.object({ - version: GetDrainFilterV2DrainsVersion$outboundSchema, + version: z.literal("v2"), filter: z.union([ - z.lazy(() => GetDrainFilter2$outboundSchema), z.lazy(() => GetDrainFilter1$outboundSchema), + z.lazy(() => GetDrainFilter2$outboundSchema), ]), }); @@ -3825,26 +3459,17 @@ export function getDrainFilterV22FromJSON( ); } -/** @internal */ -export const GetDrainFilterV2Version$inboundSchema: z.ZodNativeEnum< - typeof GetDrainFilterV2Version -> = z.nativeEnum(GetDrainFilterV2Version); -/** @internal */ -export const GetDrainFilterV2Version$outboundSchema: z.ZodNativeEnum< - typeof GetDrainFilterV2Version -> = GetDrainFilterV2Version$inboundSchema; - /** @internal */ export const GetDrainFilterV21$inboundSchema: z.ZodType< GetDrainFilterV21, z.ZodTypeDef, unknown > = z.object({ - version: GetDrainFilterV2Version$inboundSchema, + version: z.literal("v1"), }); /** @internal */ export type GetDrainFilterV21$Outbound = { - version: string; + version: "v1"; }; /** @internal */ @@ -3853,7 +3478,7 @@ export const GetDrainFilterV21$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainFilterV21 > = z.object({ - version: GetDrainFilterV2Version$outboundSchema, + version: z.literal("v1"), }); export function getDrainFilterV21ToJSON( @@ -3879,13 +3504,13 @@ export const GetDrainResponseBodyFilterV2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetDrainFilterV22$inboundSchema), z.lazy(() => GetDrainFilterV21$inboundSchema), + z.lazy(() => GetDrainFilterV22$inboundSchema), ]); /** @internal */ export type GetDrainResponseBodyFilterV2$Outbound = - | GetDrainFilterV22$Outbound - | GetDrainFilterV21$Outbound; + | GetDrainFilterV21$Outbound + | GetDrainFilterV22$Outbound; /** @internal */ export const GetDrainResponseBodyFilterV2$outboundSchema: z.ZodType< @@ -3893,8 +3518,8 @@ export const GetDrainResponseBodyFilterV2$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainResponseBodyFilterV2 > = z.union([ - z.lazy(() => GetDrainFilterV22$outboundSchema), z.lazy(() => GetDrainFilterV21$outboundSchema), + z.lazy(() => GetDrainFilterV22$outboundSchema), ]); export function getDrainResponseBodyFilterV2ToJSON( @@ -3944,13 +3569,13 @@ export const GetDrainResponseBody1$inboundSchema: z.ZodType< disabledBy: z.string().optional(), firstErrorTimestamp: z.number().optional(), source: z.union([ - z.lazy(() => GetDrainSource2$inboundSchema), z.lazy(() => GetDrainSource1$inboundSchema), + z.lazy(() => GetDrainSource2$inboundSchema), ]), filter: z.string().optional(), filterV2: z.union([ - z.lazy(() => GetDrainFilterV22$inboundSchema), z.lazy(() => GetDrainFilterV21$inboundSchema), + z.lazy(() => GetDrainFilterV22$inboundSchema), ]).optional(), }); /** @internal */ @@ -3975,11 +3600,11 @@ export type GetDrainResponseBody1$Outbound = { disabledReason?: string | undefined; disabledBy?: string | undefined; firstErrorTimestamp?: number | undefined; - source: GetDrainSource2$Outbound | GetDrainSource1$Outbound; + source: GetDrainSource1$Outbound | GetDrainSource2$Outbound; filter?: string | undefined; filterV2?: - | GetDrainFilterV22$Outbound | GetDrainFilterV21$Outbound + | GetDrainFilterV22$Outbound | undefined; }; @@ -4011,13 +3636,13 @@ export const GetDrainResponseBody1$outboundSchema: z.ZodType< disabledBy: z.string().optional(), firstErrorTimestamp: z.number().optional(), source: z.union([ - z.lazy(() => GetDrainSource2$outboundSchema), z.lazy(() => GetDrainSource1$outboundSchema), + z.lazy(() => GetDrainSource2$outboundSchema), ]), filter: z.string().optional(), filterV2: z.union([ - z.lazy(() => GetDrainFilterV22$outboundSchema), z.lazy(() => GetDrainFilterV21$outboundSchema), + z.lazy(() => GetDrainFilterV22$outboundSchema), ]).optional(), }); diff --git a/src/models/getdrainsop.ts b/src/models/getdrainsop.ts index 90d840d9..6b3bb769 100644 --- a/src/models/getdrainsop.ts +++ b/src/models/getdrainsop.ts @@ -37,15 +37,6 @@ export type GetDrainsDrainsSchemas = { speedInsights?: GetDrainsDrainsSpeedInsights | undefined; }; -export const GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrains2Type = - { - Internal: "internal", - } as const; -export type GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrains2Type = - ClosedEnum< - typeof GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrains2Type - >; - export const GetDrainsDeliveryDrainsTarget = { VercelOtelTracesDb: "vercel-otel-traces-db", } as const; @@ -54,35 +45,16 @@ export type GetDrainsDeliveryDrainsTarget = ClosedEnum< >; export type GetDrainsDeliveryDrains4 = { - type: - GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrains2Type; + type: "internal"; target: GetDrainsDeliveryDrainsTarget; }; -export const GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrainsType = - { - Clickhouse: "clickhouse", - } as const; -export type GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrainsType = - ClosedEnum< - typeof GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrainsType - >; - export type GetDrainsDeliveryDrains3 = { - type: GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrainsType; + type: "clickhouse"; endpoint: string; table: string; }; -export const GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyType = - { - Otlphttp: "otlphttp", - } as const; -export type GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyType = - ClosedEnum< - typeof GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyType - >; - export type GetDrainsDeliveryDrainsEndpoint = { traces: string; }; @@ -111,20 +83,13 @@ export type GetDrainsDeliveryDrainsResponse200Secret = | string; export type GetDrainsDeliveryDrains2 = { - type: GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyType; + type: "otlphttp"; endpoint: GetDrainsDeliveryDrainsEndpoint; encoding: GetDrainsDeliveryDrainsResponse200Encoding; headers: { [k: string]: string }; secret?: GetDrainsSecretDrainsResponse2002 | string | undefined; }; -export const GetDrainsDeliveryDrainsResponse200ApplicationJSONType = { - Http: "http", -} as const; -export type GetDrainsDeliveryDrainsResponse200ApplicationJSONType = ClosedEnum< - typeof GetDrainsDeliveryDrainsResponse200ApplicationJSONType ->; - export const GetDrainsDeliveryDrainsResponseEncoding = { Json: "json", Ndjson: "ndjson", @@ -157,7 +122,7 @@ export type GetDrainsDeliveryDrainsResponseSecret = | string; export type GetDrainsDeliveryDrains1 = { - type: GetDrainsDeliveryDrainsResponse200ApplicationJSONType; + type: "http"; endpoint: string; encoding: GetDrainsDeliveryDrainsResponseEncoding; compression?: GetDrainsDeliveryDrainsCompression | undefined; @@ -206,62 +171,27 @@ export type GetDrainsDrainsDisabledReason = ClosedEnum< typeof GetDrainsDrainsDisabledReason >; -export const GetDrainsSourceDrainsResponse200Kind = { - Integration: "integration", -} as const; -export type GetDrainsSourceDrainsResponse200Kind = ClosedEnum< - typeof GetDrainsSourceDrainsResponse200Kind ->; - export type GetDrainsSourceDrains2 = { - kind: GetDrainsSourceDrainsResponse200Kind; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; integrationConfigurationId: string; }; -export const GetDrainsSourceDrainsResponseKind = { - SelfServed: "self-served", -} as const; -export type GetDrainsSourceDrainsResponseKind = ClosedEnum< - typeof GetDrainsSourceDrainsResponseKind ->; - export type GetDrainsSourceDrains1 = { - kind: GetDrainsSourceDrainsResponseKind; + kind: "self-served"; }; export type GetDrainsDrainsSource = - | GetDrainsSourceDrains2 - | GetDrainsSourceDrains1; - -export const GetDrainsFilterV2DrainsResponse200Version = { - V2: "v2", -} as const; -export type GetDrainsFilterV2DrainsResponse200Version = ClosedEnum< - typeof GetDrainsFilterV2DrainsResponse200Version ->; - -export const GetDrainsFilterDrainsResponse200Type = { - Odata: "odata", -} as const; -export type GetDrainsFilterDrainsResponse200Type = ClosedEnum< - typeof GetDrainsFilterDrainsResponse200Type ->; + | GetDrainsSourceDrains1 + | GetDrainsSourceDrains2; export type GetDrainsFilterDrains2 = { - type: GetDrainsFilterDrainsResponse200Type; + type: "odata"; text: string; }; -export const GetDrainsFilterDrainsResponseType = { - Basic: "basic", -} as const; -export type GetDrainsFilterDrainsResponseType = ClosedEnum< - typeof GetDrainsFilterDrainsResponseType ->; - export type GetDrainsFilterDrainsProject = { ids?: Array | undefined; }; @@ -297,62 +227,41 @@ export type GetDrainsFilterDrainsDeployment = { }; export type GetDrainsFilterDrains1 = { - type: GetDrainsFilterDrainsResponseType; + type: "basic"; project?: GetDrainsFilterDrainsProject | undefined; log?: GetDrainsFilterDrainsLog | undefined; deployment?: GetDrainsFilterDrainsDeployment | undefined; }; export type GetDrainsFilterV2DrainsFilter = - | GetDrainsFilterDrains2 - | GetDrainsFilterDrains1; + | GetDrainsFilterDrains1 + | GetDrainsFilterDrains2; export type GetDrainsFilterV2Drains2 = { - version: GetDrainsFilterV2DrainsResponse200Version; - filter: GetDrainsFilterDrains2 | GetDrainsFilterDrains1; + version: "v2"; + filter: GetDrainsFilterDrains1 | GetDrainsFilterDrains2; }; -export const GetDrainsFilterV2DrainsResponseVersion = { - V1: "v1", -} as const; -export type GetDrainsFilterV2DrainsResponseVersion = ClosedEnum< - typeof GetDrainsFilterV2DrainsResponseVersion ->; - export type GetDrainsFilterV2Drains1 = { - version: GetDrainsFilterV2DrainsResponseVersion; + version: "v1"; }; export type GetDrainsDrainsFilterV2 = - | GetDrainsFilterV2Drains2 - | GetDrainsFilterV2Drains1; - -export const GetDrainsProjectAccessDrainsAccess = { - Some: "some", -} as const; -export type GetDrainsProjectAccessDrainsAccess = ClosedEnum< - typeof GetDrainsProjectAccessDrainsAccess ->; + | GetDrainsFilterV2Drains1 + | GetDrainsFilterV2Drains2; export type GetDrainsProjectAccess2 = { - access: GetDrainsProjectAccessDrainsAccess; + access: "some"; projectIds: Array; }; -export const GetDrainsProjectAccessAccess = { - All: "all", -} as const; -export type GetDrainsProjectAccessAccess = ClosedEnum< - typeof GetDrainsProjectAccessAccess ->; - export type GetDrainsProjectAccess1 = { - access: GetDrainsProjectAccessAccess; + access: "all"; }; export type DrainsProjectAccess = - | GetDrainsProjectAccess2 - | GetDrainsProjectAccess1; + | GetDrainsProjectAccess1 + | GetDrainsProjectAccess2; export type Drains2 = { id: string; @@ -375,13 +284,13 @@ export type Drains2 = { disabledReason?: GetDrainsDrainsDisabledReason | undefined; disabledBy?: string | undefined; firstErrorTimestamp?: number | undefined; - source: GetDrainsSourceDrains2 | GetDrainsSourceDrains1; + source: GetDrainsSourceDrains1 | GetDrainsSourceDrains2; filter?: string | undefined; - filterV2?: GetDrainsFilterV2Drains2 | GetDrainsFilterV2Drains1 | undefined; + filterV2?: GetDrainsFilterV2Drains1 | GetDrainsFilterV2Drains2 | undefined; integrationIcon?: string | undefined; integrationConfigurationUri?: string | undefined; integrationWebsite?: string | undefined; - projectAccess?: GetDrainsProjectAccess2 | GetDrainsProjectAccess1 | undefined; + projectAccess?: GetDrainsProjectAccess1 | GetDrainsProjectAccess2 | undefined; }; export type DrainsLog = {}; @@ -399,13 +308,6 @@ export type DrainsSchemas = { speedInsights?: DrainsSpeedInsights | undefined; }; -export const GetDrainsDeliveryDrainsResponse200Type = { - Internal: "internal", -} as const; -export type GetDrainsDeliveryDrainsResponse200Type = ClosedEnum< - typeof GetDrainsDeliveryDrainsResponse200Type ->; - export const GetDrainsDeliveryTarget = { VercelOtelTracesDb: "vercel-otel-traces-db", } as const; @@ -414,30 +316,16 @@ export type GetDrainsDeliveryTarget = ClosedEnum< >; export type GetDrainsDelivery4 = { - type: GetDrainsDeliveryDrainsResponse200Type; + type: "internal"; target: GetDrainsDeliveryTarget; }; -export const GetDrainsDeliveryDrainsResponseType = { - Clickhouse: "clickhouse", -} as const; -export type GetDrainsDeliveryDrainsResponseType = ClosedEnum< - typeof GetDrainsDeliveryDrainsResponseType ->; - export type GetDrainsDelivery3 = { - type: GetDrainsDeliveryDrainsResponseType; + type: "clickhouse"; endpoint: string; table: string; }; -export const GetDrainsDeliveryDrainsType = { - Otlphttp: "otlphttp", -} as const; -export type GetDrainsDeliveryDrainsType = ClosedEnum< - typeof GetDrainsDeliveryDrainsType ->; - export type GetDrainsDeliveryEndpoint = { traces: string; }; @@ -464,18 +352,13 @@ export type GetDrainsSecretDrains2 = { export type GetDrainsDeliveryDrainsSecret = GetDrainsSecretDrains2 | string; export type GetDrainsDelivery2 = { - type: GetDrainsDeliveryDrainsType; + type: "otlphttp"; endpoint: GetDrainsDeliveryEndpoint; encoding: GetDrainsDeliveryDrainsEncoding; headers: { [k: string]: string }; secret?: GetDrainsSecretDrains2 | string | undefined; }; -export const GetDrainsDeliveryType = { - Http: "http", -} as const; -export type GetDrainsDeliveryType = ClosedEnum; - export const GetDrainsDeliveryEncoding = { Json: "json", Ndjson: "ndjson", @@ -504,7 +387,7 @@ export type GetDrainsSecret2 = { export type GetDrainsDeliverySecret = GetDrainsSecret2 | string; export type GetDrainsDelivery1 = { - type: GetDrainsDeliveryType; + type: "http"; endpoint: string; encoding: GetDrainsDeliveryEncoding; compression?: GetDrainsDeliveryCompression | undefined; @@ -551,56 +434,25 @@ export const DrainsDisabledReason = { } as const; export type DrainsDisabledReason = ClosedEnum; -export const GetDrainsSourceDrainsKind = { - Integration: "integration", -} as const; -export type GetDrainsSourceDrainsKind = ClosedEnum< - typeof GetDrainsSourceDrainsKind ->; - export type GetDrainsSource2 = { - kind: GetDrainsSourceDrainsKind; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; integrationConfigurationId: string; }; -export const GetDrainsSourceKind = { - SelfServed: "self-served", -} as const; -export type GetDrainsSourceKind = ClosedEnum; - export type GetDrainsSource1 = { - kind: GetDrainsSourceKind; + kind: "self-served"; }; -export type DrainsSource = GetDrainsSource2 | GetDrainsSource1; - -export const GetDrainsFilterV2DrainsVersion = { - V2: "v2", -} as const; -export type GetDrainsFilterV2DrainsVersion = ClosedEnum< - typeof GetDrainsFilterV2DrainsVersion ->; - -export const GetDrainsFilterDrainsType = { - Odata: "odata", -} as const; -export type GetDrainsFilterDrainsType = ClosedEnum< - typeof GetDrainsFilterDrainsType ->; +export type DrainsSource = GetDrainsSource1 | GetDrainsSource2; export type GetDrainsFilter2 = { - type: GetDrainsFilterDrainsType; + type: "odata"; text: string; }; -export const GetDrainsFilterType = { - Basic: "basic", -} as const; -export type GetDrainsFilterType = ClosedEnum; - export type GetDrainsFilterProject = { ids?: Array | undefined; }; @@ -634,31 +486,24 @@ export type GetDrainsFilterDeployment = { }; export type GetDrainsFilter1 = { - type: GetDrainsFilterType; + type: "basic"; project?: GetDrainsFilterProject | undefined; log?: GetDrainsFilterLog | undefined; deployment?: GetDrainsFilterDeployment | undefined; }; -export type GetDrainsFilterV2Filter = GetDrainsFilter2 | GetDrainsFilter1; +export type GetDrainsFilterV2Filter = GetDrainsFilter1 | GetDrainsFilter2; export type GetDrainsFilterV22 = { - version: GetDrainsFilterV2DrainsVersion; - filter: GetDrainsFilter2 | GetDrainsFilter1; + version: "v2"; + filter: GetDrainsFilter1 | GetDrainsFilter2; }; -export const GetDrainsFilterV2Version = { - V1: "v1", -} as const; -export type GetDrainsFilterV2Version = ClosedEnum< - typeof GetDrainsFilterV2Version ->; - export type GetDrainsFilterV21 = { - version: GetDrainsFilterV2Version; + version: "v1"; }; -export type DrainsFilterV2 = GetDrainsFilterV22 | GetDrainsFilterV21; +export type DrainsFilterV2 = GetDrainsFilterV21 | GetDrainsFilterV22; export type Drains1 = { id: string; @@ -681,9 +526,9 @@ export type Drains1 = { disabledReason?: DrainsDisabledReason | undefined; disabledBy?: string | undefined; firstErrorTimestamp?: number | undefined; - source: GetDrainsSource2 | GetDrainsSource1; + source: GetDrainsSource1 | GetDrainsSource2; filter?: string | undefined; - filterV2?: GetDrainsFilterV22 | GetDrainsFilterV21 | undefined; + filterV2?: GetDrainsFilterV21 | GetDrainsFilterV22 | undefined; }; export type Drains = Array | Array; @@ -932,20 +777,6 @@ export function getDrainsDrainsSchemasFromJSON( ); } -/** @internal */ -export const GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrains2Type$inboundSchema: - z.ZodNativeEnum< - typeof GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrains2Type - > = z.nativeEnum( - GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrains2Type, - ); -/** @internal */ -export const GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrains2Type$outboundSchema: - z.ZodNativeEnum< - typeof GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrains2Type - > = - GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrains2Type$inboundSchema; - /** @internal */ export const GetDrainsDeliveryDrainsTarget$inboundSchema: z.ZodNativeEnum< typeof GetDrainsDeliveryDrainsTarget @@ -961,13 +792,12 @@ export const GetDrainsDeliveryDrains4$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: - GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrains2Type$inboundSchema, + type: z.literal("internal"), target: GetDrainsDeliveryDrainsTarget$inboundSchema, }); /** @internal */ export type GetDrainsDeliveryDrains4$Outbound = { - type: string; + type: "internal"; target: string; }; @@ -977,8 +807,7 @@ export const GetDrainsDeliveryDrains4$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsDeliveryDrains4 > = z.object({ - type: - GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrains2Type$outboundSchema, + type: z.literal("internal"), target: GetDrainsDeliveryDrainsTarget$outboundSchema, }); @@ -999,34 +828,19 @@ export function getDrainsDeliveryDrains4FromJSON( ); } -/** @internal */ -export const GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrainsType$inboundSchema: - z.ZodNativeEnum< - typeof GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrainsType - > = z.nativeEnum( - GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrainsType, - ); -/** @internal */ -export const GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrainsType$outboundSchema: - z.ZodNativeEnum< - typeof GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrainsType - > = - GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrainsType$inboundSchema; - /** @internal */ export const GetDrainsDeliveryDrains3$inboundSchema: z.ZodType< GetDrainsDeliveryDrains3, z.ZodTypeDef, unknown > = z.object({ - type: - GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrainsType$inboundSchema, + type: z.literal("clickhouse"), endpoint: z.string(), table: z.string(), }); /** @internal */ export type GetDrainsDeliveryDrains3$Outbound = { - type: string; + type: "clickhouse"; endpoint: string; table: string; }; @@ -1037,8 +851,7 @@ export const GetDrainsDeliveryDrains3$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsDeliveryDrains3 > = z.object({ - type: - GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyDrainsType$outboundSchema, + type: z.literal("clickhouse"), endpoint: z.string(), table: z.string(), }); @@ -1060,20 +873,6 @@ export function getDrainsDeliveryDrains3FromJSON( ); } -/** @internal */ -export const GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyType$inboundSchema: - z.ZodNativeEnum< - typeof GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyType - > = z.nativeEnum( - GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyType, - ); -/** @internal */ -export const GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyType$outboundSchema: - z.ZodNativeEnum< - typeof GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyType - > = - GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyType$inboundSchema; - /** @internal */ export const GetDrainsDeliveryDrainsEndpoint$inboundSchema: z.ZodType< GetDrainsDeliveryDrainsEndpoint, @@ -1231,8 +1030,7 @@ export const GetDrainsDeliveryDrains2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: - GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyType$inboundSchema, + type: z.literal("otlphttp"), endpoint: z.lazy(() => GetDrainsDeliveryDrainsEndpoint$inboundSchema), encoding: GetDrainsDeliveryDrainsResponse200Encoding$inboundSchema, headers: z.record(z.string()), @@ -1243,7 +1041,7 @@ export const GetDrainsDeliveryDrains2$inboundSchema: z.ZodType< }); /** @internal */ export type GetDrainsDeliveryDrains2$Outbound = { - type: string; + type: "otlphttp"; endpoint: GetDrainsDeliveryDrainsEndpoint$Outbound; encoding: string; headers: { [k: string]: string }; @@ -1256,8 +1054,7 @@ export const GetDrainsDeliveryDrains2$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsDeliveryDrains2 > = z.object({ - type: - GetDrainsDeliveryDrainsResponse200ApplicationJSONResponseBodyType$outboundSchema, + type: z.literal("otlphttp"), endpoint: z.lazy(() => GetDrainsDeliveryDrainsEndpoint$outboundSchema), encoding: GetDrainsDeliveryDrainsResponse200Encoding$outboundSchema, headers: z.record(z.string()), @@ -1284,17 +1081,6 @@ export function getDrainsDeliveryDrains2FromJSON( ); } -/** @internal */ -export const GetDrainsDeliveryDrainsResponse200ApplicationJSONType$inboundSchema: - z.ZodNativeEnum< - typeof GetDrainsDeliveryDrainsResponse200ApplicationJSONType - > = z.nativeEnum(GetDrainsDeliveryDrainsResponse200ApplicationJSONType); -/** @internal */ -export const GetDrainsDeliveryDrainsResponse200ApplicationJSONType$outboundSchema: - z.ZodNativeEnum< - typeof GetDrainsDeliveryDrainsResponse200ApplicationJSONType - > = GetDrainsDeliveryDrainsResponse200ApplicationJSONType$inboundSchema; - /** @internal */ export const GetDrainsDeliveryDrainsResponseEncoding$inboundSchema: z.ZodNativeEnum = z @@ -1413,7 +1199,7 @@ export const GetDrainsDeliveryDrains1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetDrainsDeliveryDrainsResponse200ApplicationJSONType$inboundSchema, + type: z.literal("http"), endpoint: z.string(), encoding: GetDrainsDeliveryDrainsResponseEncoding$inboundSchema, compression: GetDrainsDeliveryDrainsCompression$inboundSchema.optional(), @@ -1425,7 +1211,7 @@ export const GetDrainsDeliveryDrains1$inboundSchema: z.ZodType< }); /** @internal */ export type GetDrainsDeliveryDrains1$Outbound = { - type: string; + type: "http"; endpoint: string; encoding: string; compression?: string | undefined; @@ -1439,7 +1225,7 @@ export const GetDrainsDeliveryDrains1$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsDeliveryDrains1 > = z.object({ - type: GetDrainsDeliveryDrainsResponse200ApplicationJSONType$outboundSchema, + type: z.literal("http"), endpoint: z.string(), encoding: GetDrainsDeliveryDrainsResponseEncoding$outboundSchema, compression: GetDrainsDeliveryDrainsCompression$outboundSchema.optional(), @@ -1598,23 +1384,13 @@ export const GetDrainsDrainsDisabledReason$outboundSchema: z.ZodNativeEnum< typeof GetDrainsDrainsDisabledReason > = GetDrainsDrainsDisabledReason$inboundSchema; -/** @internal */ -export const GetDrainsSourceDrainsResponse200Kind$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - GetDrainsSourceDrainsResponse200Kind, - ); -/** @internal */ -export const GetDrainsSourceDrainsResponse200Kind$outboundSchema: - z.ZodNativeEnum = - GetDrainsSourceDrainsResponse200Kind$inboundSchema; - /** @internal */ export const GetDrainsSourceDrains2$inboundSchema: z.ZodType< GetDrainsSourceDrains2, z.ZodTypeDef, unknown > = z.object({ - kind: GetDrainsSourceDrainsResponse200Kind$inboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -1622,7 +1398,7 @@ export const GetDrainsSourceDrains2$inboundSchema: z.ZodType< }); /** @internal */ export type GetDrainsSourceDrains2$Outbound = { - kind: string; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; @@ -1635,7 +1411,7 @@ export const GetDrainsSourceDrains2$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsSourceDrains2 > = z.object({ - kind: GetDrainsSourceDrainsResponse200Kind$outboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -1659,26 +1435,17 @@ export function getDrainsSourceDrains2FromJSON( ); } -/** @internal */ -export const GetDrainsSourceDrainsResponseKind$inboundSchema: z.ZodNativeEnum< - typeof GetDrainsSourceDrainsResponseKind -> = z.nativeEnum(GetDrainsSourceDrainsResponseKind); -/** @internal */ -export const GetDrainsSourceDrainsResponseKind$outboundSchema: z.ZodNativeEnum< - typeof GetDrainsSourceDrainsResponseKind -> = GetDrainsSourceDrainsResponseKind$inboundSchema; - /** @internal */ export const GetDrainsSourceDrains1$inboundSchema: z.ZodType< GetDrainsSourceDrains1, z.ZodTypeDef, unknown > = z.object({ - kind: GetDrainsSourceDrainsResponseKind$inboundSchema, + kind: z.literal("self-served"), }); /** @internal */ export type GetDrainsSourceDrains1$Outbound = { - kind: string; + kind: "self-served"; }; /** @internal */ @@ -1687,7 +1454,7 @@ export const GetDrainsSourceDrains1$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsSourceDrains1 > = z.object({ - kind: GetDrainsSourceDrainsResponseKind$outboundSchema, + kind: z.literal("self-served"), }); export function getDrainsSourceDrains1ToJSON( @@ -1713,13 +1480,13 @@ export const GetDrainsDrainsSource$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetDrainsSourceDrains2$inboundSchema), z.lazy(() => GetDrainsSourceDrains1$inboundSchema), + z.lazy(() => GetDrainsSourceDrains2$inboundSchema), ]); /** @internal */ export type GetDrainsDrainsSource$Outbound = - | GetDrainsSourceDrains2$Outbound - | GetDrainsSourceDrains1$Outbound; + | GetDrainsSourceDrains1$Outbound + | GetDrainsSourceDrains2$Outbound; /** @internal */ export const GetDrainsDrainsSource$outboundSchema: z.ZodType< @@ -1727,8 +1494,8 @@ export const GetDrainsDrainsSource$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsDrainsSource > = z.union([ - z.lazy(() => GetDrainsSourceDrains2$outboundSchema), z.lazy(() => GetDrainsSourceDrains1$outboundSchema), + z.lazy(() => GetDrainsSourceDrains2$outboundSchema), ]); export function getDrainsDrainsSourceToJSON( @@ -1748,37 +1515,18 @@ export function getDrainsDrainsSourceFromJSON( ); } -/** @internal */ -export const GetDrainsFilterV2DrainsResponse200Version$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetDrainsFilterV2DrainsResponse200Version); -/** @internal */ -export const GetDrainsFilterV2DrainsResponse200Version$outboundSchema: - z.ZodNativeEnum = - GetDrainsFilterV2DrainsResponse200Version$inboundSchema; - -/** @internal */ -export const GetDrainsFilterDrainsResponse200Type$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - GetDrainsFilterDrainsResponse200Type, - ); -/** @internal */ -export const GetDrainsFilterDrainsResponse200Type$outboundSchema: - z.ZodNativeEnum = - GetDrainsFilterDrainsResponse200Type$inboundSchema; - /** @internal */ export const GetDrainsFilterDrains2$inboundSchema: z.ZodType< GetDrainsFilterDrains2, z.ZodTypeDef, unknown > = z.object({ - type: GetDrainsFilterDrainsResponse200Type$inboundSchema, + type: z.literal("odata"), text: z.string(), }); /** @internal */ export type GetDrainsFilterDrains2$Outbound = { - type: string; + type: "odata"; text: string; }; @@ -1788,7 +1536,7 @@ export const GetDrainsFilterDrains2$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsFilterDrains2 > = z.object({ - type: GetDrainsFilterDrainsResponse200Type$outboundSchema, + type: z.literal("odata"), text: z.string(), }); @@ -1809,15 +1557,6 @@ export function getDrainsFilterDrains2FromJSON( ); } -/** @internal */ -export const GetDrainsFilterDrainsResponseType$inboundSchema: z.ZodNativeEnum< - typeof GetDrainsFilterDrainsResponseType -> = z.nativeEnum(GetDrainsFilterDrainsResponseType); -/** @internal */ -export const GetDrainsFilterDrainsResponseType$outboundSchema: z.ZodNativeEnum< - typeof GetDrainsFilterDrainsResponseType -> = GetDrainsFilterDrainsResponseType$inboundSchema; - /** @internal */ export const GetDrainsFilterDrainsProject$inboundSchema: z.ZodType< GetDrainsFilterDrainsProject, @@ -1976,7 +1715,7 @@ export const GetDrainsFilterDrains1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetDrainsFilterDrainsResponseType$inboundSchema, + type: z.literal("basic"), project: z.lazy(() => GetDrainsFilterDrainsProject$inboundSchema).optional(), log: z.lazy(() => GetDrainsFilterDrainsLog$inboundSchema).optional(), deployment: z.lazy(() => GetDrainsFilterDrainsDeployment$inboundSchema) @@ -1984,7 +1723,7 @@ export const GetDrainsFilterDrains1$inboundSchema: z.ZodType< }); /** @internal */ export type GetDrainsFilterDrains1$Outbound = { - type: string; + type: "basic"; project?: GetDrainsFilterDrainsProject$Outbound | undefined; log?: GetDrainsFilterDrainsLog$Outbound | undefined; deployment?: GetDrainsFilterDrainsDeployment$Outbound | undefined; @@ -1996,7 +1735,7 @@ export const GetDrainsFilterDrains1$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsFilterDrains1 > = z.object({ - type: GetDrainsFilterDrainsResponseType$outboundSchema, + type: z.literal("basic"), project: z.lazy(() => GetDrainsFilterDrainsProject$outboundSchema).optional(), log: z.lazy(() => GetDrainsFilterDrainsLog$outboundSchema).optional(), deployment: z.lazy(() => GetDrainsFilterDrainsDeployment$outboundSchema) @@ -2026,13 +1765,13 @@ export const GetDrainsFilterV2DrainsFilter$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetDrainsFilterDrains2$inboundSchema), z.lazy(() => GetDrainsFilterDrains1$inboundSchema), + z.lazy(() => GetDrainsFilterDrains2$inboundSchema), ]); /** @internal */ export type GetDrainsFilterV2DrainsFilter$Outbound = - | GetDrainsFilterDrains2$Outbound - | GetDrainsFilterDrains1$Outbound; + | GetDrainsFilterDrains1$Outbound + | GetDrainsFilterDrains2$Outbound; /** @internal */ export const GetDrainsFilterV2DrainsFilter$outboundSchema: z.ZodType< @@ -2040,8 +1779,8 @@ export const GetDrainsFilterV2DrainsFilter$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsFilterV2DrainsFilter > = z.union([ - z.lazy(() => GetDrainsFilterDrains2$outboundSchema), z.lazy(() => GetDrainsFilterDrains1$outboundSchema), + z.lazy(() => GetDrainsFilterDrains2$outboundSchema), ]); export function getDrainsFilterV2DrainsFilterToJSON( @@ -2069,16 +1808,16 @@ export const GetDrainsFilterV2Drains2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - version: GetDrainsFilterV2DrainsResponse200Version$inboundSchema, + version: z.literal("v2"), filter: z.union([ - z.lazy(() => GetDrainsFilterDrains2$inboundSchema), z.lazy(() => GetDrainsFilterDrains1$inboundSchema), + z.lazy(() => GetDrainsFilterDrains2$inboundSchema), ]), }); /** @internal */ export type GetDrainsFilterV2Drains2$Outbound = { - version: string; - filter: GetDrainsFilterDrains2$Outbound | GetDrainsFilterDrains1$Outbound; + version: "v2"; + filter: GetDrainsFilterDrains1$Outbound | GetDrainsFilterDrains2$Outbound; }; /** @internal */ @@ -2087,10 +1826,10 @@ export const GetDrainsFilterV2Drains2$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsFilterV2Drains2 > = z.object({ - version: GetDrainsFilterV2DrainsResponse200Version$outboundSchema, + version: z.literal("v2"), filter: z.union([ - z.lazy(() => GetDrainsFilterDrains2$outboundSchema), z.lazy(() => GetDrainsFilterDrains1$outboundSchema), + z.lazy(() => GetDrainsFilterDrains2$outboundSchema), ]), }); @@ -2111,27 +1850,17 @@ export function getDrainsFilterV2Drains2FromJSON( ); } -/** @internal */ -export const GetDrainsFilterV2DrainsResponseVersion$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - GetDrainsFilterV2DrainsResponseVersion, - ); -/** @internal */ -export const GetDrainsFilterV2DrainsResponseVersion$outboundSchema: - z.ZodNativeEnum = - GetDrainsFilterV2DrainsResponseVersion$inboundSchema; - /** @internal */ export const GetDrainsFilterV2Drains1$inboundSchema: z.ZodType< GetDrainsFilterV2Drains1, z.ZodTypeDef, unknown > = z.object({ - version: GetDrainsFilterV2DrainsResponseVersion$inboundSchema, + version: z.literal("v1"), }); /** @internal */ export type GetDrainsFilterV2Drains1$Outbound = { - version: string; + version: "v1"; }; /** @internal */ @@ -2140,7 +1869,7 @@ export const GetDrainsFilterV2Drains1$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsFilterV2Drains1 > = z.object({ - version: GetDrainsFilterV2DrainsResponseVersion$outboundSchema, + version: z.literal("v1"), }); export function getDrainsFilterV2Drains1ToJSON( @@ -2166,13 +1895,13 @@ export const GetDrainsDrainsFilterV2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetDrainsFilterV2Drains2$inboundSchema), z.lazy(() => GetDrainsFilterV2Drains1$inboundSchema), + z.lazy(() => GetDrainsFilterV2Drains2$inboundSchema), ]); /** @internal */ export type GetDrainsDrainsFilterV2$Outbound = - | GetDrainsFilterV2Drains2$Outbound - | GetDrainsFilterV2Drains1$Outbound; + | GetDrainsFilterV2Drains1$Outbound + | GetDrainsFilterV2Drains2$Outbound; /** @internal */ export const GetDrainsDrainsFilterV2$outboundSchema: z.ZodType< @@ -2180,8 +1909,8 @@ export const GetDrainsDrainsFilterV2$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsDrainsFilterV2 > = z.union([ - z.lazy(() => GetDrainsFilterV2Drains2$outboundSchema), z.lazy(() => GetDrainsFilterV2Drains1$outboundSchema), + z.lazy(() => GetDrainsFilterV2Drains2$outboundSchema), ]); export function getDrainsDrainsFilterV2ToJSON( @@ -2201,27 +1930,18 @@ export function getDrainsDrainsFilterV2FromJSON( ); } -/** @internal */ -export const GetDrainsProjectAccessDrainsAccess$inboundSchema: z.ZodNativeEnum< - typeof GetDrainsProjectAccessDrainsAccess -> = z.nativeEnum(GetDrainsProjectAccessDrainsAccess); -/** @internal */ -export const GetDrainsProjectAccessDrainsAccess$outboundSchema: z.ZodNativeEnum< - typeof GetDrainsProjectAccessDrainsAccess -> = GetDrainsProjectAccessDrainsAccess$inboundSchema; - /** @internal */ export const GetDrainsProjectAccess2$inboundSchema: z.ZodType< GetDrainsProjectAccess2, z.ZodTypeDef, unknown > = z.object({ - access: GetDrainsProjectAccessDrainsAccess$inboundSchema, + access: z.literal("some"), projectIds: z.array(z.string()), }); /** @internal */ export type GetDrainsProjectAccess2$Outbound = { - access: string; + access: "some"; projectIds: Array; }; @@ -2231,7 +1951,7 @@ export const GetDrainsProjectAccess2$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsProjectAccess2 > = z.object({ - access: GetDrainsProjectAccessDrainsAccess$outboundSchema, + access: z.literal("some"), projectIds: z.array(z.string()), }); @@ -2252,26 +1972,17 @@ export function getDrainsProjectAccess2FromJSON( ); } -/** @internal */ -export const GetDrainsProjectAccessAccess$inboundSchema: z.ZodNativeEnum< - typeof GetDrainsProjectAccessAccess -> = z.nativeEnum(GetDrainsProjectAccessAccess); -/** @internal */ -export const GetDrainsProjectAccessAccess$outboundSchema: z.ZodNativeEnum< - typeof GetDrainsProjectAccessAccess -> = GetDrainsProjectAccessAccess$inboundSchema; - /** @internal */ export const GetDrainsProjectAccess1$inboundSchema: z.ZodType< GetDrainsProjectAccess1, z.ZodTypeDef, unknown > = z.object({ - access: GetDrainsProjectAccessAccess$inboundSchema, + access: z.literal("all"), }); /** @internal */ export type GetDrainsProjectAccess1$Outbound = { - access: string; + access: "all"; }; /** @internal */ @@ -2280,7 +1991,7 @@ export const GetDrainsProjectAccess1$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsProjectAccess1 > = z.object({ - access: GetDrainsProjectAccessAccess$outboundSchema, + access: z.literal("all"), }); export function getDrainsProjectAccess1ToJSON( @@ -2306,13 +2017,13 @@ export const DrainsProjectAccess$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetDrainsProjectAccess2$inboundSchema), z.lazy(() => GetDrainsProjectAccess1$inboundSchema), + z.lazy(() => GetDrainsProjectAccess2$inboundSchema), ]); /** @internal */ export type DrainsProjectAccess$Outbound = - | GetDrainsProjectAccess2$Outbound - | GetDrainsProjectAccess1$Outbound; + | GetDrainsProjectAccess1$Outbound + | GetDrainsProjectAccess2$Outbound; /** @internal */ export const DrainsProjectAccess$outboundSchema: z.ZodType< @@ -2320,8 +2031,8 @@ export const DrainsProjectAccess$outboundSchema: z.ZodType< z.ZodTypeDef, DrainsProjectAccess > = z.union([ - z.lazy(() => GetDrainsProjectAccess2$outboundSchema), z.lazy(() => GetDrainsProjectAccess1$outboundSchema), + z.lazy(() => GetDrainsProjectAccess2$outboundSchema), ]); export function drainsProjectAccessToJSON( @@ -2366,20 +2077,20 @@ export const Drains2$inboundSchema: z.ZodType = disabledBy: z.string().optional(), firstErrorTimestamp: z.number().optional(), source: z.union([ - z.lazy(() => GetDrainsSourceDrains2$inboundSchema), z.lazy(() => GetDrainsSourceDrains1$inboundSchema), + z.lazy(() => GetDrainsSourceDrains2$inboundSchema), ]), filter: z.string().optional(), filterV2: z.union([ - z.lazy(() => GetDrainsFilterV2Drains2$inboundSchema), z.lazy(() => GetDrainsFilterV2Drains1$inboundSchema), + z.lazy(() => GetDrainsFilterV2Drains2$inboundSchema), ]).optional(), integrationIcon: z.string().optional(), integrationConfigurationUri: z.string().optional(), integrationWebsite: z.string().optional(), projectAccess: z.union([ - z.lazy(() => GetDrainsProjectAccess2$inboundSchema), z.lazy(() => GetDrainsProjectAccess1$inboundSchema), + z.lazy(() => GetDrainsProjectAccess2$inboundSchema), ]).optional(), }); /** @internal */ @@ -2404,18 +2115,18 @@ export type Drains2$Outbound = { disabledReason?: string | undefined; disabledBy?: string | undefined; firstErrorTimestamp?: number | undefined; - source: GetDrainsSourceDrains2$Outbound | GetDrainsSourceDrains1$Outbound; + source: GetDrainsSourceDrains1$Outbound | GetDrainsSourceDrains2$Outbound; filter?: string | undefined; filterV2?: - | GetDrainsFilterV2Drains2$Outbound | GetDrainsFilterV2Drains1$Outbound + | GetDrainsFilterV2Drains2$Outbound | undefined; integrationIcon?: string | undefined; integrationConfigurationUri?: string | undefined; integrationWebsite?: string | undefined; projectAccess?: - | GetDrainsProjectAccess2$Outbound | GetDrainsProjectAccess1$Outbound + | GetDrainsProjectAccess2$Outbound | undefined; }; @@ -2447,20 +2158,20 @@ export const Drains2$outboundSchema: z.ZodType< disabledBy: z.string().optional(), firstErrorTimestamp: z.number().optional(), source: z.union([ - z.lazy(() => GetDrainsSourceDrains2$outboundSchema), z.lazy(() => GetDrainsSourceDrains1$outboundSchema), + z.lazy(() => GetDrainsSourceDrains2$outboundSchema), ]), filter: z.string().optional(), filterV2: z.union([ - z.lazy(() => GetDrainsFilterV2Drains2$outboundSchema), z.lazy(() => GetDrainsFilterV2Drains1$outboundSchema), + z.lazy(() => GetDrainsFilterV2Drains2$outboundSchema), ]).optional(), integrationIcon: z.string().optional(), integrationConfigurationUri: z.string().optional(), integrationWebsite: z.string().optional(), projectAccess: z.union([ - z.lazy(() => GetDrainsProjectAccess2$outboundSchema), z.lazy(() => GetDrainsProjectAccess1$outboundSchema), + z.lazy(() => GetDrainsProjectAccess2$outboundSchema), ]).optional(), }); @@ -2651,16 +2362,6 @@ export function drainsSchemasFromJSON( ); } -/** @internal */ -export const GetDrainsDeliveryDrainsResponse200Type$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - GetDrainsDeliveryDrainsResponse200Type, - ); -/** @internal */ -export const GetDrainsDeliveryDrainsResponse200Type$outboundSchema: - z.ZodNativeEnum = - GetDrainsDeliveryDrainsResponse200Type$inboundSchema; - /** @internal */ export const GetDrainsDeliveryTarget$inboundSchema: z.ZodNativeEnum< typeof GetDrainsDeliveryTarget @@ -2676,12 +2377,12 @@ export const GetDrainsDelivery4$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetDrainsDeliveryDrainsResponse200Type$inboundSchema, + type: z.literal("internal"), target: GetDrainsDeliveryTarget$inboundSchema, }); /** @internal */ export type GetDrainsDelivery4$Outbound = { - type: string; + type: "internal"; target: string; }; @@ -2691,7 +2392,7 @@ export const GetDrainsDelivery4$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsDelivery4 > = z.object({ - type: GetDrainsDeliveryDrainsResponse200Type$outboundSchema, + type: z.literal("internal"), target: GetDrainsDeliveryTarget$outboundSchema, }); @@ -2712,28 +2413,19 @@ export function getDrainsDelivery4FromJSON( ); } -/** @internal */ -export const GetDrainsDeliveryDrainsResponseType$inboundSchema: z.ZodNativeEnum< - typeof GetDrainsDeliveryDrainsResponseType -> = z.nativeEnum(GetDrainsDeliveryDrainsResponseType); -/** @internal */ -export const GetDrainsDeliveryDrainsResponseType$outboundSchema: - z.ZodNativeEnum = - GetDrainsDeliveryDrainsResponseType$inboundSchema; - /** @internal */ export const GetDrainsDelivery3$inboundSchema: z.ZodType< GetDrainsDelivery3, z.ZodTypeDef, unknown > = z.object({ - type: GetDrainsDeliveryDrainsResponseType$inboundSchema, + type: z.literal("clickhouse"), endpoint: z.string(), table: z.string(), }); /** @internal */ export type GetDrainsDelivery3$Outbound = { - type: string; + type: "clickhouse"; endpoint: string; table: string; }; @@ -2744,7 +2436,7 @@ export const GetDrainsDelivery3$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsDelivery3 > = z.object({ - type: GetDrainsDeliveryDrainsResponseType$outboundSchema, + type: z.literal("clickhouse"), endpoint: z.string(), table: z.string(), }); @@ -2766,15 +2458,6 @@ export function getDrainsDelivery3FromJSON( ); } -/** @internal */ -export const GetDrainsDeliveryDrainsType$inboundSchema: z.ZodNativeEnum< - typeof GetDrainsDeliveryDrainsType -> = z.nativeEnum(GetDrainsDeliveryDrainsType); -/** @internal */ -export const GetDrainsDeliveryDrainsType$outboundSchema: z.ZodNativeEnum< - typeof GetDrainsDeliveryDrainsType -> = GetDrainsDeliveryDrainsType$inboundSchema; - /** @internal */ export const GetDrainsDeliveryEndpoint$inboundSchema: z.ZodType< GetDrainsDeliveryEndpoint, @@ -2914,7 +2597,7 @@ export const GetDrainsDelivery2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetDrainsDeliveryDrainsType$inboundSchema, + type: z.literal("otlphttp"), endpoint: z.lazy(() => GetDrainsDeliveryEndpoint$inboundSchema), encoding: GetDrainsDeliveryDrainsEncoding$inboundSchema, headers: z.record(z.string()), @@ -2925,7 +2608,7 @@ export const GetDrainsDelivery2$inboundSchema: z.ZodType< }); /** @internal */ export type GetDrainsDelivery2$Outbound = { - type: string; + type: "otlphttp"; endpoint: GetDrainsDeliveryEndpoint$Outbound; encoding: string; headers: { [k: string]: string }; @@ -2938,7 +2621,7 @@ export const GetDrainsDelivery2$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsDelivery2 > = z.object({ - type: GetDrainsDeliveryDrainsType$outboundSchema, + type: z.literal("otlphttp"), endpoint: z.lazy(() => GetDrainsDeliveryEndpoint$outboundSchema), encoding: GetDrainsDeliveryDrainsEncoding$outboundSchema, headers: z.record(z.string()), @@ -2965,15 +2648,6 @@ export function getDrainsDelivery2FromJSON( ); } -/** @internal */ -export const GetDrainsDeliveryType$inboundSchema: z.ZodNativeEnum< - typeof GetDrainsDeliveryType -> = z.nativeEnum(GetDrainsDeliveryType); -/** @internal */ -export const GetDrainsDeliveryType$outboundSchema: z.ZodNativeEnum< - typeof GetDrainsDeliveryType -> = GetDrainsDeliveryType$inboundSchema; - /** @internal */ export const GetDrainsDeliveryEncoding$inboundSchema: z.ZodNativeEnum< typeof GetDrainsDeliveryEncoding @@ -3081,7 +2755,7 @@ export const GetDrainsDelivery1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetDrainsDeliveryType$inboundSchema, + type: z.literal("http"), endpoint: z.string(), encoding: GetDrainsDeliveryEncoding$inboundSchema, compression: GetDrainsDeliveryCompression$inboundSchema.optional(), @@ -3091,7 +2765,7 @@ export const GetDrainsDelivery1$inboundSchema: z.ZodType< }); /** @internal */ export type GetDrainsDelivery1$Outbound = { - type: string; + type: "http"; endpoint: string; encoding: string; compression?: string | undefined; @@ -3105,7 +2779,7 @@ export const GetDrainsDelivery1$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsDelivery1 > = z.object({ - type: GetDrainsDeliveryType$outboundSchema, + type: z.literal("http"), endpoint: z.string(), encoding: GetDrainsDeliveryEncoding$outboundSchema, compression: GetDrainsDeliveryCompression$outboundSchema.optional(), @@ -3248,22 +2922,13 @@ export const DrainsDisabledReason$outboundSchema: z.ZodNativeEnum< typeof DrainsDisabledReason > = DrainsDisabledReason$inboundSchema; -/** @internal */ -export const GetDrainsSourceDrainsKind$inboundSchema: z.ZodNativeEnum< - typeof GetDrainsSourceDrainsKind -> = z.nativeEnum(GetDrainsSourceDrainsKind); -/** @internal */ -export const GetDrainsSourceDrainsKind$outboundSchema: z.ZodNativeEnum< - typeof GetDrainsSourceDrainsKind -> = GetDrainsSourceDrainsKind$inboundSchema; - /** @internal */ export const GetDrainsSource2$inboundSchema: z.ZodType< GetDrainsSource2, z.ZodTypeDef, unknown > = z.object({ - kind: GetDrainsSourceDrainsKind$inboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -3271,7 +2936,7 @@ export const GetDrainsSource2$inboundSchema: z.ZodType< }); /** @internal */ export type GetDrainsSource2$Outbound = { - kind: string; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; @@ -3284,7 +2949,7 @@ export const GetDrainsSource2$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsSource2 > = z.object({ - kind: GetDrainsSourceDrainsKind$outboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -3308,26 +2973,17 @@ export function getDrainsSource2FromJSON( ); } -/** @internal */ -export const GetDrainsSourceKind$inboundSchema: z.ZodNativeEnum< - typeof GetDrainsSourceKind -> = z.nativeEnum(GetDrainsSourceKind); -/** @internal */ -export const GetDrainsSourceKind$outboundSchema: z.ZodNativeEnum< - typeof GetDrainsSourceKind -> = GetDrainsSourceKind$inboundSchema; - /** @internal */ export const GetDrainsSource1$inboundSchema: z.ZodType< GetDrainsSource1, z.ZodTypeDef, unknown > = z.object({ - kind: GetDrainsSourceKind$inboundSchema, + kind: z.literal("self-served"), }); /** @internal */ export type GetDrainsSource1$Outbound = { - kind: string; + kind: "self-served"; }; /** @internal */ @@ -3336,7 +2992,7 @@ export const GetDrainsSource1$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsSource1 > = z.object({ - kind: GetDrainsSourceKind$outboundSchema, + kind: z.literal("self-served"), }); export function getDrainsSource1ToJSON( @@ -3362,13 +3018,13 @@ export const DrainsSource$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetDrainsSource2$inboundSchema), z.lazy(() => GetDrainsSource1$inboundSchema), + z.lazy(() => GetDrainsSource2$inboundSchema), ]); /** @internal */ export type DrainsSource$Outbound = - | GetDrainsSource2$Outbound - | GetDrainsSource1$Outbound; + | GetDrainsSource1$Outbound + | GetDrainsSource2$Outbound; /** @internal */ export const DrainsSource$outboundSchema: z.ZodType< @@ -3376,8 +3032,8 @@ export const DrainsSource$outboundSchema: z.ZodType< z.ZodTypeDef, DrainsSource > = z.union([ - z.lazy(() => GetDrainsSource2$outboundSchema), z.lazy(() => GetDrainsSource1$outboundSchema), + z.lazy(() => GetDrainsSource2$outboundSchema), ]); export function drainsSourceToJSON(drainsSource: DrainsSource): string { @@ -3393,36 +3049,18 @@ export function drainsSourceFromJSON( ); } -/** @internal */ -export const GetDrainsFilterV2DrainsVersion$inboundSchema: z.ZodNativeEnum< - typeof GetDrainsFilterV2DrainsVersion -> = z.nativeEnum(GetDrainsFilterV2DrainsVersion); -/** @internal */ -export const GetDrainsFilterV2DrainsVersion$outboundSchema: z.ZodNativeEnum< - typeof GetDrainsFilterV2DrainsVersion -> = GetDrainsFilterV2DrainsVersion$inboundSchema; - -/** @internal */ -export const GetDrainsFilterDrainsType$inboundSchema: z.ZodNativeEnum< - typeof GetDrainsFilterDrainsType -> = z.nativeEnum(GetDrainsFilterDrainsType); -/** @internal */ -export const GetDrainsFilterDrainsType$outboundSchema: z.ZodNativeEnum< - typeof GetDrainsFilterDrainsType -> = GetDrainsFilterDrainsType$inboundSchema; - /** @internal */ export const GetDrainsFilter2$inboundSchema: z.ZodType< GetDrainsFilter2, z.ZodTypeDef, unknown > = z.object({ - type: GetDrainsFilterDrainsType$inboundSchema, + type: z.literal("odata"), text: z.string(), }); /** @internal */ export type GetDrainsFilter2$Outbound = { - type: string; + type: "odata"; text: string; }; @@ -3432,7 +3070,7 @@ export const GetDrainsFilter2$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsFilter2 > = z.object({ - type: GetDrainsFilterDrainsType$outboundSchema, + type: z.literal("odata"), text: z.string(), }); @@ -3453,15 +3091,6 @@ export function getDrainsFilter2FromJSON( ); } -/** @internal */ -export const GetDrainsFilterType$inboundSchema: z.ZodNativeEnum< - typeof GetDrainsFilterType -> = z.nativeEnum(GetDrainsFilterType); -/** @internal */ -export const GetDrainsFilterType$outboundSchema: z.ZodNativeEnum< - typeof GetDrainsFilterType -> = GetDrainsFilterType$inboundSchema; - /** @internal */ export const GetDrainsFilterProject$inboundSchema: z.ZodType< GetDrainsFilterProject, @@ -3614,14 +3243,14 @@ export const GetDrainsFilter1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetDrainsFilterType$inboundSchema, + type: z.literal("basic"), project: z.lazy(() => GetDrainsFilterProject$inboundSchema).optional(), log: z.lazy(() => GetDrainsFilterLog$inboundSchema).optional(), deployment: z.lazy(() => GetDrainsFilterDeployment$inboundSchema).optional(), }); /** @internal */ export type GetDrainsFilter1$Outbound = { - type: string; + type: "basic"; project?: GetDrainsFilterProject$Outbound | undefined; log?: GetDrainsFilterLog$Outbound | undefined; deployment?: GetDrainsFilterDeployment$Outbound | undefined; @@ -3633,7 +3262,7 @@ export const GetDrainsFilter1$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsFilter1 > = z.object({ - type: GetDrainsFilterType$outboundSchema, + type: z.literal("basic"), project: z.lazy(() => GetDrainsFilterProject$outboundSchema).optional(), log: z.lazy(() => GetDrainsFilterLog$outboundSchema).optional(), deployment: z.lazy(() => GetDrainsFilterDeployment$outboundSchema).optional(), @@ -3662,13 +3291,13 @@ export const GetDrainsFilterV2Filter$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetDrainsFilter2$inboundSchema), z.lazy(() => GetDrainsFilter1$inboundSchema), + z.lazy(() => GetDrainsFilter2$inboundSchema), ]); /** @internal */ export type GetDrainsFilterV2Filter$Outbound = - | GetDrainsFilter2$Outbound - | GetDrainsFilter1$Outbound; + | GetDrainsFilter1$Outbound + | GetDrainsFilter2$Outbound; /** @internal */ export const GetDrainsFilterV2Filter$outboundSchema: z.ZodType< @@ -3676,8 +3305,8 @@ export const GetDrainsFilterV2Filter$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsFilterV2Filter > = z.union([ - z.lazy(() => GetDrainsFilter2$outboundSchema), z.lazy(() => GetDrainsFilter1$outboundSchema), + z.lazy(() => GetDrainsFilter2$outboundSchema), ]); export function getDrainsFilterV2FilterToJSON( @@ -3703,16 +3332,16 @@ export const GetDrainsFilterV22$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - version: GetDrainsFilterV2DrainsVersion$inboundSchema, + version: z.literal("v2"), filter: z.union([ - z.lazy(() => GetDrainsFilter2$inboundSchema), z.lazy(() => GetDrainsFilter1$inboundSchema), + z.lazy(() => GetDrainsFilter2$inboundSchema), ]), }); /** @internal */ export type GetDrainsFilterV22$Outbound = { - version: string; - filter: GetDrainsFilter2$Outbound | GetDrainsFilter1$Outbound; + version: "v2"; + filter: GetDrainsFilter1$Outbound | GetDrainsFilter2$Outbound; }; /** @internal */ @@ -3721,10 +3350,10 @@ export const GetDrainsFilterV22$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsFilterV22 > = z.object({ - version: GetDrainsFilterV2DrainsVersion$outboundSchema, + version: z.literal("v2"), filter: z.union([ - z.lazy(() => GetDrainsFilter2$outboundSchema), z.lazy(() => GetDrainsFilter1$outboundSchema), + z.lazy(() => GetDrainsFilter2$outboundSchema), ]), }); @@ -3745,26 +3374,17 @@ export function getDrainsFilterV22FromJSON( ); } -/** @internal */ -export const GetDrainsFilterV2Version$inboundSchema: z.ZodNativeEnum< - typeof GetDrainsFilterV2Version -> = z.nativeEnum(GetDrainsFilterV2Version); -/** @internal */ -export const GetDrainsFilterV2Version$outboundSchema: z.ZodNativeEnum< - typeof GetDrainsFilterV2Version -> = GetDrainsFilterV2Version$inboundSchema; - /** @internal */ export const GetDrainsFilterV21$inboundSchema: z.ZodType< GetDrainsFilterV21, z.ZodTypeDef, unknown > = z.object({ - version: GetDrainsFilterV2Version$inboundSchema, + version: z.literal("v1"), }); /** @internal */ export type GetDrainsFilterV21$Outbound = { - version: string; + version: "v1"; }; /** @internal */ @@ -3773,7 +3393,7 @@ export const GetDrainsFilterV21$outboundSchema: z.ZodType< z.ZodTypeDef, GetDrainsFilterV21 > = z.object({ - version: GetDrainsFilterV2Version$outboundSchema, + version: z.literal("v1"), }); export function getDrainsFilterV21ToJSON( @@ -3799,13 +3419,13 @@ export const DrainsFilterV2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetDrainsFilterV22$inboundSchema), z.lazy(() => GetDrainsFilterV21$inboundSchema), + z.lazy(() => GetDrainsFilterV22$inboundSchema), ]); /** @internal */ export type DrainsFilterV2$Outbound = - | GetDrainsFilterV22$Outbound - | GetDrainsFilterV21$Outbound; + | GetDrainsFilterV21$Outbound + | GetDrainsFilterV22$Outbound; /** @internal */ export const DrainsFilterV2$outboundSchema: z.ZodType< @@ -3813,8 +3433,8 @@ export const DrainsFilterV2$outboundSchema: z.ZodType< z.ZodTypeDef, DrainsFilterV2 > = z.union([ - z.lazy(() => GetDrainsFilterV22$outboundSchema), z.lazy(() => GetDrainsFilterV21$outboundSchema), + z.lazy(() => GetDrainsFilterV22$outboundSchema), ]); export function drainsFilterV2ToJSON(drainsFilterV2: DrainsFilterV2): string { @@ -3854,13 +3474,13 @@ export const Drains1$inboundSchema: z.ZodType = disabledBy: z.string().optional(), firstErrorTimestamp: z.number().optional(), source: z.union([ - z.lazy(() => GetDrainsSource2$inboundSchema), z.lazy(() => GetDrainsSource1$inboundSchema), + z.lazy(() => GetDrainsSource2$inboundSchema), ]), filter: z.string().optional(), filterV2: z.union([ - z.lazy(() => GetDrainsFilterV22$inboundSchema), z.lazy(() => GetDrainsFilterV21$inboundSchema), + z.lazy(() => GetDrainsFilterV22$inboundSchema), ]).optional(), }); /** @internal */ @@ -3885,11 +3505,11 @@ export type Drains1$Outbound = { disabledReason?: string | undefined; disabledBy?: string | undefined; firstErrorTimestamp?: number | undefined; - source: GetDrainsSource2$Outbound | GetDrainsSource1$Outbound; + source: GetDrainsSource1$Outbound | GetDrainsSource2$Outbound; filter?: string | undefined; filterV2?: - | GetDrainsFilterV22$Outbound | GetDrainsFilterV21$Outbound + | GetDrainsFilterV22$Outbound | undefined; }; @@ -3920,13 +3540,13 @@ export const Drains1$outboundSchema: z.ZodType< disabledBy: z.string().optional(), firstErrorTimestamp: z.number().optional(), source: z.union([ - z.lazy(() => GetDrainsSource2$outboundSchema), z.lazy(() => GetDrainsSource1$outboundSchema), + z.lazy(() => GetDrainsSource2$outboundSchema), ]), filter: z.string().optional(), filterV2: z.union([ - z.lazy(() => GetDrainsFilterV22$outboundSchema), z.lazy(() => GetDrainsFilterV21$outboundSchema), + z.lazy(() => GetDrainsFilterV22$outboundSchema), ]).optional(), }); diff --git a/src/models/getedgeconfigop.ts b/src/models/getedgeconfigop.ts index 22933692..6dd65ae5 100644 --- a/src/models/getedgeconfigop.ts +++ b/src/models/getedgeconfigop.ts @@ -4,7 +4,6 @@ import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; -import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; @@ -31,27 +30,13 @@ export type GetEdgeConfigTransfer = { export type GetEdgeConfigSchema = {}; -export const GetEdgeConfigPurposeEdgeConfigType = { - Experimentation: "experimentation", -} as const; -export type GetEdgeConfigPurposeEdgeConfigType = ClosedEnum< - typeof GetEdgeConfigPurposeEdgeConfigType ->; - export type GetEdgeConfigPurpose2 = { - type: GetEdgeConfigPurposeEdgeConfigType; + type: "experimentation"; resourceId: string; }; -export const GetEdgeConfigPurposeType = { - Flags: "flags", -} as const; -export type GetEdgeConfigPurposeType = ClosedEnum< - typeof GetEdgeConfigPurposeType ->; - export type GetEdgeConfigPurpose1 = { - type: GetEdgeConfigPurposeType; + type: "flags"; projectId: string; }; @@ -210,27 +195,18 @@ export function getEdgeConfigSchemaFromJSON( ); } -/** @internal */ -export const GetEdgeConfigPurposeEdgeConfigType$inboundSchema: z.ZodNativeEnum< - typeof GetEdgeConfigPurposeEdgeConfigType -> = z.nativeEnum(GetEdgeConfigPurposeEdgeConfigType); -/** @internal */ -export const GetEdgeConfigPurposeEdgeConfigType$outboundSchema: z.ZodNativeEnum< - typeof GetEdgeConfigPurposeEdgeConfigType -> = GetEdgeConfigPurposeEdgeConfigType$inboundSchema; - /** @internal */ export const GetEdgeConfigPurpose2$inboundSchema: z.ZodType< GetEdgeConfigPurpose2, z.ZodTypeDef, unknown > = z.object({ - type: GetEdgeConfigPurposeEdgeConfigType$inboundSchema, + type: z.literal("experimentation"), resourceId: z.string(), }); /** @internal */ export type GetEdgeConfigPurpose2$Outbound = { - type: string; + type: "experimentation"; resourceId: string; }; @@ -240,7 +216,7 @@ export const GetEdgeConfigPurpose2$outboundSchema: z.ZodType< z.ZodTypeDef, GetEdgeConfigPurpose2 > = z.object({ - type: GetEdgeConfigPurposeEdgeConfigType$outboundSchema, + type: z.literal("experimentation"), resourceId: z.string(), }); @@ -261,27 +237,18 @@ export function getEdgeConfigPurpose2FromJSON( ); } -/** @internal */ -export const GetEdgeConfigPurposeType$inboundSchema: z.ZodNativeEnum< - typeof GetEdgeConfigPurposeType -> = z.nativeEnum(GetEdgeConfigPurposeType); -/** @internal */ -export const GetEdgeConfigPurposeType$outboundSchema: z.ZodNativeEnum< - typeof GetEdgeConfigPurposeType -> = GetEdgeConfigPurposeType$inboundSchema; - /** @internal */ export const GetEdgeConfigPurpose1$inboundSchema: z.ZodType< GetEdgeConfigPurpose1, z.ZodTypeDef, unknown > = z.object({ - type: GetEdgeConfigPurposeType$inboundSchema, + type: z.literal("flags"), projectId: z.string(), }); /** @internal */ export type GetEdgeConfigPurpose1$Outbound = { - type: string; + type: "flags"; projectId: string; }; @@ -291,7 +258,7 @@ export const GetEdgeConfigPurpose1$outboundSchema: z.ZodType< z.ZodTypeDef, GetEdgeConfigPurpose1 > = z.object({ - type: GetEdgeConfigPurposeType$outboundSchema, + type: z.literal("flags"), projectId: z.string(), }); diff --git a/src/models/getintegrationlogdrainsop.ts b/src/models/getintegrationlogdrainsop.ts index e6bf5cbc..b6b2ddd4 100644 --- a/src/models/getintegrationlogdrainsop.ts +++ b/src/models/getintegrationlogdrainsop.ts @@ -79,31 +79,21 @@ export type GetIntegrationLogDrainsEnvironments = ClosedEnum< typeof GetIntegrationLogDrainsEnvironments >; -export const SourceKind = { - Integration: "integration", -} as const; -export type SourceKind = ClosedEnum; - export type GetIntegrationLogDrainsSource2 = { - kind: SourceKind; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; integrationConfigurationId: string; }; -export const Kind = { - SelfServed: "self-served", -} as const; -export type Kind = ClosedEnum; - export type GetIntegrationLogDrainsSource1 = { - kind: Kind; + kind: "self-served"; }; export type GetIntegrationLogDrainsSource = - | GetIntegrationLogDrainsSource2 - | GetIntegrationLogDrainsSource1; + | GetIntegrationLogDrainsSource1 + | GetIntegrationLogDrainsSource2; export type GetIntegrationLogDrainsResponseBody = { /** @@ -167,7 +157,7 @@ export type GetIntegrationLogDrainsResponseBody = { * The sampling rate of log drain */ samplingRate?: number | undefined; - source: GetIntegrationLogDrainsSource2 | GetIntegrationLogDrainsSource1; + source: GetIntegrationLogDrainsSource1 | GetIntegrationLogDrainsSource2; }; /** @internal */ @@ -249,20 +239,13 @@ export const GetIntegrationLogDrainsEnvironments$outboundSchema: z.ZodNativeEnum = GetIntegrationLogDrainsEnvironments$inboundSchema; -/** @internal */ -export const SourceKind$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(SourceKind); -/** @internal */ -export const SourceKind$outboundSchema: z.ZodNativeEnum = - SourceKind$inboundSchema; - /** @internal */ export const GetIntegrationLogDrainsSource2$inboundSchema: z.ZodType< GetIntegrationLogDrainsSource2, z.ZodTypeDef, unknown > = z.object({ - kind: SourceKind$inboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -270,7 +253,7 @@ export const GetIntegrationLogDrainsSource2$inboundSchema: z.ZodType< }); /** @internal */ export type GetIntegrationLogDrainsSource2$Outbound = { - kind: string; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; @@ -283,7 +266,7 @@ export const GetIntegrationLogDrainsSource2$outboundSchema: z.ZodType< z.ZodTypeDef, GetIntegrationLogDrainsSource2 > = z.object({ - kind: SourceKind$outboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -309,25 +292,17 @@ export function getIntegrationLogDrainsSource2FromJSON( ); } -/** @internal */ -export const Kind$inboundSchema: z.ZodNativeEnum = z.nativeEnum( - Kind, -); -/** @internal */ -export const Kind$outboundSchema: z.ZodNativeEnum = - Kind$inboundSchema; - /** @internal */ export const GetIntegrationLogDrainsSource1$inboundSchema: z.ZodType< GetIntegrationLogDrainsSource1, z.ZodTypeDef, unknown > = z.object({ - kind: Kind$inboundSchema, + kind: z.literal("self-served"), }); /** @internal */ export type GetIntegrationLogDrainsSource1$Outbound = { - kind: string; + kind: "self-served"; }; /** @internal */ @@ -336,7 +311,7 @@ export const GetIntegrationLogDrainsSource1$outboundSchema: z.ZodType< z.ZodTypeDef, GetIntegrationLogDrainsSource1 > = z.object({ - kind: Kind$outboundSchema, + kind: z.literal("self-served"), }); export function getIntegrationLogDrainsSource1ToJSON( @@ -364,13 +339,13 @@ export const GetIntegrationLogDrainsSource$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetIntegrationLogDrainsSource2$inboundSchema), z.lazy(() => GetIntegrationLogDrainsSource1$inboundSchema), + z.lazy(() => GetIntegrationLogDrainsSource2$inboundSchema), ]); /** @internal */ export type GetIntegrationLogDrainsSource$Outbound = - | GetIntegrationLogDrainsSource2$Outbound - | GetIntegrationLogDrainsSource1$Outbound; + | GetIntegrationLogDrainsSource1$Outbound + | GetIntegrationLogDrainsSource2$Outbound; /** @internal */ export const GetIntegrationLogDrainsSource$outboundSchema: z.ZodType< @@ -378,8 +353,8 @@ export const GetIntegrationLogDrainsSource$outboundSchema: z.ZodType< z.ZodTypeDef, GetIntegrationLogDrainsSource > = z.union([ - z.lazy(() => GetIntegrationLogDrainsSource2$outboundSchema), z.lazy(() => GetIntegrationLogDrainsSource1$outboundSchema), + z.lazy(() => GetIntegrationLogDrainsSource2$outboundSchema), ]); export function getIntegrationLogDrainsSourceToJSON( @@ -426,8 +401,8 @@ export const GetIntegrationLogDrainsResponseBody$inboundSchema: z.ZodType< branch: z.string().optional(), samplingRate: z.number().optional(), source: z.union([ - z.lazy(() => GetIntegrationLogDrainsSource2$inboundSchema), z.lazy(() => GetIntegrationLogDrainsSource1$inboundSchema), + z.lazy(() => GetIntegrationLogDrainsSource2$inboundSchema), ]), }); /** @internal */ @@ -449,8 +424,8 @@ export type GetIntegrationLogDrainsResponseBody$Outbound = { branch?: string | undefined; samplingRate?: number | undefined; source: - | GetIntegrationLogDrainsSource2$Outbound - | GetIntegrationLogDrainsSource1$Outbound; + | GetIntegrationLogDrainsSource1$Outbound + | GetIntegrationLogDrainsSource2$Outbound; }; /** @internal */ @@ -478,8 +453,8 @@ export const GetIntegrationLogDrainsResponseBody$outboundSchema: z.ZodType< branch: z.string().optional(), samplingRate: z.number().optional(), source: z.union([ - z.lazy(() => GetIntegrationLogDrainsSource2$outboundSchema), z.lazy(() => GetIntegrationLogDrainsSource1$outboundSchema), + z.lazy(() => GetIntegrationLogDrainsSource2$outboundSchema), ]), }); diff --git a/src/models/getorderop.ts b/src/models/getorderop.ts index 1f3983ec..4d3723d3 100644 --- a/src/models/getorderop.ts +++ b/src/models/getorderop.ts @@ -29,16 +29,9 @@ export type GetOrderRequest = { * NotAuthorizedForScope */ export type GetOrderDomainsRegistrarResponseBody = - | NotAuthorizedForScope + | (NotAuthorizedForScope & { code: "not_authorized_for_scope" }) | Forbidden; -export const GetOrderDomainsPurchaseType = { - Transfer: "transfer", -} as const; -export type GetOrderDomainsPurchaseType = ClosedEnum< - typeof GetOrderDomainsPurchaseType ->; - export const GetOrderDomainsDomainsRegistrarStatus = { Pending: "pending", Completed: "completed", @@ -55,49 +48,20 @@ export type GetOrderErrorDomainsRegistrar2 = { details?: any | undefined; }; -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains3Code = - { - ClaimsNoticeRequired: "claims-notice-required", - } as const; -export type GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains3Code = - ClosedEnum< - typeof GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains3Code - >; - export type GetOrder1DomainsRegistrar3 = { - code: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains3Code; + code: "claims-notice-required"; }; -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomainsCode = - { - ClientTransferProhibited: "client-transfer-prohibited", - } as const; -export type GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomainsCode = - ClosedEnum< - typeof GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomainsCode - >; - export type GetOrder1DomainsRegistrar2 = { - code: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomainsCode; + code: "client-transfer-prohibited"; }; -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyCode = - { - UnsupportedLanguageCode: "unsupported-language-code", - } as const; -export type GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyCode = - ClosedEnum< - typeof GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyCode - >; - export type GetOrder1DomainsRegistrarResponse200Details = { detectedLanguageCode: string; }; export type GetOrder1DomainsRegistrar1 = { - code: GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyCode; + code: "unsupported-language-code"; details: GetOrder1DomainsRegistrarResponse200Details; }; @@ -113,7 +77,7 @@ export type GetOrderDomainsDomainsRegistrarError = | GetOrder1DomainsRegistrar3; export type Domains3 = { - purchaseType: GetOrderDomainsPurchaseType; + purchaseType: "transfer"; autoRenew: boolean; /** * The number of years the domain is being transferred for. @@ -133,11 +97,6 @@ export type Domains3 = { | undefined; }; -export const DomainsPurchaseType = { - Renewal: "renewal", -} as const; -export type DomainsPurchaseType = ClosedEnum; - export const GetOrderDomainsStatus = { Pending: "pending", Completed: "completed", @@ -152,43 +111,20 @@ export type GetOrderError2 = { details?: any | undefined; }; -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONCode = { - ClaimsNoticeRequired: "claims-notice-required", -} as const; -export type GetOrder1DomainsRegistrarResponse200ApplicationJSONCode = - ClosedEnum; - export type GetOrder1DomainsRegistrarResponse2003 = { - code: GetOrder1DomainsRegistrarResponse200ApplicationJSONCode; + code: "claims-notice-required"; }; -export const GetOrder1DomainsRegistrarResponse200Code = { - ClientTransferProhibited: "client-transfer-prohibited", -} as const; -export type GetOrder1DomainsRegistrarResponse200Code = ClosedEnum< - typeof GetOrder1DomainsRegistrarResponse200Code ->; - export type GetOrder1DomainsRegistrarResponse2002 = { - code: GetOrder1DomainsRegistrarResponse200Code; + code: "client-transfer-prohibited"; }; -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains2Code = - { - UnsupportedLanguageCode: "unsupported-language-code", - } as const; -export type GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains2Code = - ClosedEnum< - typeof GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains2Code - >; - export type GetOrder1DomainsRegistrarResponseDetails = { detectedLanguageCode: string; }; export type GetOrder1DomainsRegistrarResponse2001 = { - code: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains2Code; + code: "unsupported-language-code"; details: GetOrder1DomainsRegistrarResponseDetails; }; @@ -204,7 +140,7 @@ export type GetOrderDomainsError = | GetOrder1DomainsRegistrarResponse2003; export type Domains2 = { - purchaseType: DomainsPurchaseType; + purchaseType: "renewal"; /** * The number of years the domain is being renewed for. */ @@ -223,13 +159,6 @@ export type Domains2 = { | undefined; }; -export const GetOrderDomainsDomainsRegistrarPurchaseType = { - Purchase: "purchase", -} as const; -export type GetOrderDomainsDomainsRegistrarPurchaseType = ClosedEnum< - typeof GetOrderDomainsDomainsRegistrarPurchaseType ->; - export const DomainsStatus = { Pending: "pending", Completed: "completed", @@ -244,50 +173,20 @@ export type GetOrderErrorDomainsRegistrarResponse2 = { details?: any | undefined; }; -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Error3Code = - { - ClaimsNoticeRequired: "claims-notice-required", - } as const; -export type GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Error3Code = - ClosedEnum< - typeof GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Error3Code - >; - export type GetOrder1DomainsRegistrarResponse3 = { - code: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Error3Code; + code: "claims-notice-required"; }; -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1ErrorCode = - { - ClientTransferProhibited: "client-transfer-prohibited", - } as const; -export type GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1ErrorCode = - ClosedEnum< - typeof GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1ErrorCode - >; - export type GetOrder1DomainsRegistrarResponse2 = { - code: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1ErrorCode; + code: "client-transfer-prohibited"; }; -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Code = - { - UnsupportedLanguageCode: "unsupported-language-code", - } as const; -export type GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Code = - ClosedEnum< - typeof GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Code - >; - export type GetOrder1DomainsRegistrarDetails = { detectedLanguageCode: string; }; export type GetOrder1DomainsRegistrarResponse1 = { - code: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Code; + code: "unsupported-language-code"; details: GetOrder1DomainsRegistrarDetails; }; @@ -303,7 +202,7 @@ export type DomainsError = | GetOrder1DomainsRegistrarResponse3; export type Domains1 = { - purchaseType: GetOrderDomainsDomainsRegistrarPurchaseType; + purchaseType: "purchase"; autoRenew: boolean; /** * The number of years the domain is being purchased for. @@ -323,7 +222,7 @@ export type Domains1 = { | undefined; }; -export type GetOrderDomains = Domains1 | Domains3 | Domains2; +export type GetOrderDomains = Domains1 | Domains2 | Domains3; export const GetOrderStatus = { Draft: "draft", @@ -338,39 +237,20 @@ export type Error2 = { details?: any | undefined; }; -export const GetOrder1DomainsRegistrarResponseCode = { - UnexpectedError: "unexpected-error", -} as const; -export type GetOrder1DomainsRegistrarResponseCode = ClosedEnum< - typeof GetOrder1DomainsRegistrarResponseCode ->; - export type One4 = { - code: GetOrder1DomainsRegistrarResponseCode; + code: "unexpected-error"; }; -export const GetOrder1DomainsRegistrarCode = { - PriceMismatch: "price-mismatch", -} as const; -export type GetOrder1DomainsRegistrarCode = ClosedEnum< - typeof GetOrder1DomainsRegistrarCode ->; - export type OneDetails = { expectedPrice: number; actualPrice?: number | undefined; }; export type GetOrder13 = { - code: GetOrder1DomainsRegistrarCode; + code: "price-mismatch"; details: OneDetails; }; -export const GetOrder1Code = { - TldOutage: "tld-outage", -} as const; -export type GetOrder1Code = ClosedEnum; - export type Tlds = { tldName: string; endsAt: string; @@ -381,31 +261,26 @@ export type GetOrder1Details = { }; export type GetOrder12 = { - code: GetOrder1Code; + code: "tld-outage"; details: GetOrder1Details; }; -export const OneCode = { - PaymentFailed: "payment-failed", -} as const; -export type OneCode = ClosedEnum; - export type GetOrder11 = { - code: OneCode; + code: "payment-failed"; }; -export type Error1 = GetOrder12 | GetOrder13 | GetOrder11 | One4; +export type Error1 = GetOrder11 | GetOrder12 | GetOrder13 | One4; -export type ErrorT = Error2 | GetOrder12 | GetOrder13 | GetOrder11 | One4; +export type ErrorT = Error2 | GetOrder11 | GetOrder12 | GetOrder13 | One4; /** * Success */ export type GetOrderResponseBody = { orderId: string; - domains: Array; + domains: Array; status: GetOrderStatus; - error?: Error2 | GetOrder12 | GetOrder13 | GetOrder11 | One4 | undefined; + error?: Error2 | GetOrder11 | GetOrder12 | GetOrder13 | One4 | undefined; }; /** @internal */ @@ -453,10 +328,15 @@ export const GetOrderDomainsRegistrarResponseBody$inboundSchema: z.ZodType< GetOrderDomainsRegistrarResponseBody, z.ZodTypeDef, unknown -> = z.union([NotAuthorizedForScope$inboundSchema, Forbidden$inboundSchema]); +> = z.union([ + NotAuthorizedForScope$inboundSchema.and( + z.object({ code: z.literal("not_authorized_for_scope") }), + ), + Forbidden$inboundSchema, +]); /** @internal */ export type GetOrderDomainsRegistrarResponseBody$Outbound = - | NotAuthorizedForScope$Outbound + | (NotAuthorizedForScope$Outbound & { code: "not_authorized_for_scope" }) | Forbidden$Outbound; /** @internal */ @@ -464,7 +344,12 @@ export const GetOrderDomainsRegistrarResponseBody$outboundSchema: z.ZodType< GetOrderDomainsRegistrarResponseBody$Outbound, z.ZodTypeDef, unknown -> = z.union([NotAuthorizedForScope$outboundSchema, Forbidden$outboundSchema]); +> = z.union([ + NotAuthorizedForScope$outboundSchema.and( + z.object({ code: z.literal("not_authorized_for_scope") }), + ), + Forbidden$outboundSchema, +]); export function getOrderDomainsRegistrarResponseBodyToJSON( getOrderDomainsRegistrarResponseBody: GetOrderDomainsRegistrarResponseBody, @@ -486,15 +371,6 @@ export function getOrderDomainsRegistrarResponseBodyFromJSON( ); } -/** @internal */ -export const GetOrderDomainsPurchaseType$inboundSchema: z.ZodNativeEnum< - typeof GetOrderDomainsPurchaseType -> = z.nativeEnum(GetOrderDomainsPurchaseType); -/** @internal */ -export const GetOrderDomainsPurchaseType$outboundSchema: z.ZodNativeEnum< - typeof GetOrderDomainsPurchaseType -> = GetOrderDomainsPurchaseType$inboundSchema; - /** @internal */ export const GetOrderDomainsDomainsRegistrarStatus$inboundSchema: z.ZodNativeEnum = z.nativeEnum( @@ -549,32 +425,17 @@ export function getOrderErrorDomainsRegistrar2FromJSON( ); } -/** @internal */ -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains3Code$inboundSchema: - z.ZodNativeEnum< - typeof GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains3Code - > = z.nativeEnum( - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains3Code, - ); -/** @internal */ -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains3Code$outboundSchema: - z.ZodNativeEnum< - typeof GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains3Code - > = - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains3Code$inboundSchema; - /** @internal */ export const GetOrder1DomainsRegistrar3$inboundSchema: z.ZodType< GetOrder1DomainsRegistrar3, z.ZodTypeDef, unknown > = z.object({ - code: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains3Code$inboundSchema, + code: z.literal("claims-notice-required"), }); /** @internal */ export type GetOrder1DomainsRegistrar3$Outbound = { - code: string; + code: "claims-notice-required"; }; /** @internal */ @@ -583,8 +444,7 @@ export const GetOrder1DomainsRegistrar3$outboundSchema: z.ZodType< z.ZodTypeDef, GetOrder1DomainsRegistrar3 > = z.object({ - code: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains3Code$outboundSchema, + code: z.literal("claims-notice-required"), }); export function getOrder1DomainsRegistrar3ToJSON( @@ -604,32 +464,17 @@ export function getOrder1DomainsRegistrar3FromJSON( ); } -/** @internal */ -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomainsCode$inboundSchema: - z.ZodNativeEnum< - typeof GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomainsCode - > = z.nativeEnum( - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomainsCode, - ); -/** @internal */ -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomainsCode$outboundSchema: - z.ZodNativeEnum< - typeof GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomainsCode - > = - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomainsCode$inboundSchema; - /** @internal */ export const GetOrder1DomainsRegistrar2$inboundSchema: z.ZodType< GetOrder1DomainsRegistrar2, z.ZodTypeDef, unknown > = z.object({ - code: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomainsCode$inboundSchema, + code: z.literal("client-transfer-prohibited"), }); /** @internal */ export type GetOrder1DomainsRegistrar2$Outbound = { - code: string; + code: "client-transfer-prohibited"; }; /** @internal */ @@ -638,8 +483,7 @@ export const GetOrder1DomainsRegistrar2$outboundSchema: z.ZodType< z.ZodTypeDef, GetOrder1DomainsRegistrar2 > = z.object({ - code: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomainsCode$outboundSchema, + code: z.literal("client-transfer-prohibited"), }); export function getOrder1DomainsRegistrar2ToJSON( @@ -659,20 +503,6 @@ export function getOrder1DomainsRegistrar2FromJSON( ); } -/** @internal */ -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyCode$inboundSchema: - z.ZodNativeEnum< - typeof GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyCode - > = z.nativeEnum( - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyCode, - ); -/** @internal */ -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyCode$outboundSchema: - z.ZodNativeEnum< - typeof GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyCode - > = - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyCode$inboundSchema; - /** @internal */ export const GetOrder1DomainsRegistrarResponse200Details$inboundSchema: z.ZodType< @@ -729,15 +559,14 @@ export const GetOrder1DomainsRegistrar1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - code: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyCode$inboundSchema, + code: z.literal("unsupported-language-code"), details: z.lazy(() => GetOrder1DomainsRegistrarResponse200Details$inboundSchema ), }); /** @internal */ export type GetOrder1DomainsRegistrar1$Outbound = { - code: string; + code: "unsupported-language-code"; details: GetOrder1DomainsRegistrarResponse200Details$Outbound; }; @@ -747,8 +576,7 @@ export const GetOrder1DomainsRegistrar1$outboundSchema: z.ZodType< z.ZodTypeDef, GetOrder1DomainsRegistrar1 > = z.object({ - code: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyCode$outboundSchema, + code: z.literal("unsupported-language-code"), details: z.lazy(() => GetOrder1DomainsRegistrarResponse200Details$outboundSchema ), @@ -877,7 +705,7 @@ export const Domains3$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - purchaseType: GetOrderDomainsPurchaseType$inboundSchema, + purchaseType: z.literal("transfer"), autoRenew: z.boolean(), years: z.number(), domainName: z.string(), @@ -894,7 +722,7 @@ export const Domains3$inboundSchema: z.ZodType< }); /** @internal */ export type Domains3$Outbound = { - purchaseType: string; + purchaseType: "transfer"; autoRenew: boolean; years: number; domainName: string; @@ -914,7 +742,7 @@ export const Domains3$outboundSchema: z.ZodType< z.ZodTypeDef, Domains3 > = z.object({ - purchaseType: GetOrderDomainsPurchaseType$outboundSchema, + purchaseType: z.literal("transfer"), autoRenew: z.boolean(), years: z.number(), domainName: z.string(), @@ -943,15 +771,6 @@ export function domains3FromJSON( ); } -/** @internal */ -export const DomainsPurchaseType$inboundSchema: z.ZodNativeEnum< - typeof DomainsPurchaseType -> = z.nativeEnum(DomainsPurchaseType); -/** @internal */ -export const DomainsPurchaseType$outboundSchema: z.ZodNativeEnum< - typeof DomainsPurchaseType -> = DomainsPurchaseType$inboundSchema; - /** @internal */ export const GetOrderDomainsStatus$inboundSchema: z.ZodNativeEnum< typeof GetOrderDomainsStatus @@ -999,28 +818,17 @@ export function getOrderError2FromJSON( ); } -/** @internal */ -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONCode$inboundSchema: - z.ZodNativeEnum< - typeof GetOrder1DomainsRegistrarResponse200ApplicationJSONCode - > = z.nativeEnum(GetOrder1DomainsRegistrarResponse200ApplicationJSONCode); -/** @internal */ -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONCode$outboundSchema: - z.ZodNativeEnum< - typeof GetOrder1DomainsRegistrarResponse200ApplicationJSONCode - > = GetOrder1DomainsRegistrarResponse200ApplicationJSONCode$inboundSchema; - /** @internal */ export const GetOrder1DomainsRegistrarResponse2003$inboundSchema: z.ZodType< GetOrder1DomainsRegistrarResponse2003, z.ZodTypeDef, unknown > = z.object({ - code: GetOrder1DomainsRegistrarResponse200ApplicationJSONCode$inboundSchema, + code: z.literal("claims-notice-required"), }); /** @internal */ export type GetOrder1DomainsRegistrarResponse2003$Outbound = { - code: string; + code: "claims-notice-required"; }; /** @internal */ @@ -1029,7 +837,7 @@ export const GetOrder1DomainsRegistrarResponse2003$outboundSchema: z.ZodType< z.ZodTypeDef, GetOrder1DomainsRegistrarResponse2003 > = z.object({ - code: GetOrder1DomainsRegistrarResponse200ApplicationJSONCode$outboundSchema, + code: z.literal("claims-notice-required"), }); export function getOrder1DomainsRegistrarResponse2003ToJSON( @@ -1052,26 +860,17 @@ export function getOrder1DomainsRegistrarResponse2003FromJSON( ); } -/** @internal */ -export const GetOrder1DomainsRegistrarResponse200Code$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetOrder1DomainsRegistrarResponse200Code); -/** @internal */ -export const GetOrder1DomainsRegistrarResponse200Code$outboundSchema: - z.ZodNativeEnum = - GetOrder1DomainsRegistrarResponse200Code$inboundSchema; - /** @internal */ export const GetOrder1DomainsRegistrarResponse2002$inboundSchema: z.ZodType< GetOrder1DomainsRegistrarResponse2002, z.ZodTypeDef, unknown > = z.object({ - code: GetOrder1DomainsRegistrarResponse200Code$inboundSchema, + code: z.literal("client-transfer-prohibited"), }); /** @internal */ export type GetOrder1DomainsRegistrarResponse2002$Outbound = { - code: string; + code: "client-transfer-prohibited"; }; /** @internal */ @@ -1080,7 +879,7 @@ export const GetOrder1DomainsRegistrarResponse2002$outboundSchema: z.ZodType< z.ZodTypeDef, GetOrder1DomainsRegistrarResponse2002 > = z.object({ - code: GetOrder1DomainsRegistrarResponse200Code$outboundSchema, + code: z.literal("client-transfer-prohibited"), }); export function getOrder1DomainsRegistrarResponse2002ToJSON( @@ -1103,20 +902,6 @@ export function getOrder1DomainsRegistrarResponse2002FromJSON( ); } -/** @internal */ -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains2Code$inboundSchema: - z.ZodNativeEnum< - typeof GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains2Code - > = z.nativeEnum( - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains2Code, - ); -/** @internal */ -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains2Code$outboundSchema: - z.ZodNativeEnum< - typeof GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains2Code - > = - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains2Code$inboundSchema; - /** @internal */ export const GetOrder1DomainsRegistrarResponseDetails$inboundSchema: z.ZodType< GetOrder1DomainsRegistrarResponseDetails, @@ -1171,13 +956,12 @@ export const GetOrder1DomainsRegistrarResponse2001$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - code: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains2Code$inboundSchema, + code: z.literal("unsupported-language-code"), details: z.lazy(() => GetOrder1DomainsRegistrarResponseDetails$inboundSchema), }); /** @internal */ export type GetOrder1DomainsRegistrarResponse2001$Outbound = { - code: string; + code: "unsupported-language-code"; details: GetOrder1DomainsRegistrarResponseDetails$Outbound; }; @@ -1187,8 +971,7 @@ export const GetOrder1DomainsRegistrarResponse2001$outboundSchema: z.ZodType< z.ZodTypeDef, GetOrder1DomainsRegistrarResponse2001 > = z.object({ - code: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains2Code$outboundSchema, + code: z.literal("unsupported-language-code"), details: z.lazy(() => GetOrder1DomainsRegistrarResponseDetails$outboundSchema ), @@ -1311,7 +1094,7 @@ export const Domains2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - purchaseType: DomainsPurchaseType$inboundSchema, + purchaseType: z.literal("renewal"), years: z.number(), domainName: z.string(), status: GetOrderDomainsStatus$inboundSchema, @@ -1327,7 +1110,7 @@ export const Domains2$inboundSchema: z.ZodType< }); /** @internal */ export type Domains2$Outbound = { - purchaseType: string; + purchaseType: "renewal"; years: number; domainName: string; status: string; @@ -1346,7 +1129,7 @@ export const Domains2$outboundSchema: z.ZodType< z.ZodTypeDef, Domains2 > = z.object({ - purchaseType: DomainsPurchaseType$outboundSchema, + purchaseType: z.literal("renewal"), years: z.number(), domainName: z.string(), status: GetOrderDomainsStatus$outboundSchema, @@ -1374,15 +1157,6 @@ export function domains2FromJSON( ); } -/** @internal */ -export const GetOrderDomainsDomainsRegistrarPurchaseType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetOrderDomainsDomainsRegistrarPurchaseType); -/** @internal */ -export const GetOrderDomainsDomainsRegistrarPurchaseType$outboundSchema: - z.ZodNativeEnum = - GetOrderDomainsDomainsRegistrarPurchaseType$inboundSchema; - /** @internal */ export const DomainsStatus$inboundSchema: z.ZodNativeEnum< typeof DomainsStatus @@ -1438,32 +1212,17 @@ export function getOrderErrorDomainsRegistrarResponse2FromJSON( ); } -/** @internal */ -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Error3Code$inboundSchema: - z.ZodNativeEnum< - typeof GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Error3Code - > = z.nativeEnum( - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Error3Code, - ); -/** @internal */ -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Error3Code$outboundSchema: - z.ZodNativeEnum< - typeof GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Error3Code - > = - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Error3Code$inboundSchema; - /** @internal */ export const GetOrder1DomainsRegistrarResponse3$inboundSchema: z.ZodType< GetOrder1DomainsRegistrarResponse3, z.ZodTypeDef, unknown > = z.object({ - code: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Error3Code$inboundSchema, + code: z.literal("claims-notice-required"), }); /** @internal */ export type GetOrder1DomainsRegistrarResponse3$Outbound = { - code: string; + code: "claims-notice-required"; }; /** @internal */ @@ -1472,8 +1231,7 @@ export const GetOrder1DomainsRegistrarResponse3$outboundSchema: z.ZodType< z.ZodTypeDef, GetOrder1DomainsRegistrarResponse3 > = z.object({ - code: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Error3Code$outboundSchema, + code: z.literal("claims-notice-required"), }); export function getOrder1DomainsRegistrarResponse3ToJSON( @@ -1496,32 +1254,17 @@ export function getOrder1DomainsRegistrarResponse3FromJSON( ); } -/** @internal */ -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1ErrorCode$inboundSchema: - z.ZodNativeEnum< - typeof GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1ErrorCode - > = z.nativeEnum( - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1ErrorCode, - ); -/** @internal */ -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1ErrorCode$outboundSchema: - z.ZodNativeEnum< - typeof GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1ErrorCode - > = - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1ErrorCode$inboundSchema; - /** @internal */ export const GetOrder1DomainsRegistrarResponse2$inboundSchema: z.ZodType< GetOrder1DomainsRegistrarResponse2, z.ZodTypeDef, unknown > = z.object({ - code: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1ErrorCode$inboundSchema, + code: z.literal("client-transfer-prohibited"), }); /** @internal */ export type GetOrder1DomainsRegistrarResponse2$Outbound = { - code: string; + code: "client-transfer-prohibited"; }; /** @internal */ @@ -1530,8 +1273,7 @@ export const GetOrder1DomainsRegistrarResponse2$outboundSchema: z.ZodType< z.ZodTypeDef, GetOrder1DomainsRegistrarResponse2 > = z.object({ - code: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1ErrorCode$outboundSchema, + code: z.literal("client-transfer-prohibited"), }); export function getOrder1DomainsRegistrarResponse2ToJSON( @@ -1554,20 +1296,6 @@ export function getOrder1DomainsRegistrarResponse2FromJSON( ); } -/** @internal */ -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Code$inboundSchema: - z.ZodNativeEnum< - typeof GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Code - > = z.nativeEnum( - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Code, - ); -/** @internal */ -export const GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Code$outboundSchema: - z.ZodNativeEnum< - typeof GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Code - > = - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Code$inboundSchema; - /** @internal */ export const GetOrder1DomainsRegistrarDetails$inboundSchema: z.ZodType< GetOrder1DomainsRegistrarDetails, @@ -1615,13 +1343,12 @@ export const GetOrder1DomainsRegistrarResponse1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - code: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Code$inboundSchema, + code: z.literal("unsupported-language-code"), details: z.lazy(() => GetOrder1DomainsRegistrarDetails$inboundSchema), }); /** @internal */ export type GetOrder1DomainsRegistrarResponse1$Outbound = { - code: string; + code: "unsupported-language-code"; details: GetOrder1DomainsRegistrarDetails$Outbound; }; @@ -1631,8 +1358,7 @@ export const GetOrder1DomainsRegistrarResponse1$outboundSchema: z.ZodType< z.ZodTypeDef, GetOrder1DomainsRegistrarResponse1 > = z.object({ - code: - GetOrder1DomainsRegistrarResponse200ApplicationJSONResponseBodyDomains1Code$outboundSchema, + code: z.literal("unsupported-language-code"), details: z.lazy(() => GetOrder1DomainsRegistrarDetails$outboundSchema), }); @@ -1757,7 +1483,7 @@ export const Domains1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - purchaseType: GetOrderDomainsDomainsRegistrarPurchaseType$inboundSchema, + purchaseType: z.literal("purchase"), autoRenew: z.boolean(), years: z.number(), domainName: z.string(), @@ -1774,7 +1500,7 @@ export const Domains1$inboundSchema: z.ZodType< }); /** @internal */ export type Domains1$Outbound = { - purchaseType: string; + purchaseType: "purchase"; autoRenew: boolean; years: number; domainName: string; @@ -1794,7 +1520,7 @@ export const Domains1$outboundSchema: z.ZodType< z.ZodTypeDef, Domains1 > = z.object({ - purchaseType: GetOrderDomainsDomainsRegistrarPurchaseType$outboundSchema, + purchaseType: z.literal("purchase"), autoRenew: z.boolean(), years: z.number(), domainName: z.string(), @@ -1830,14 +1556,14 @@ export const GetOrderDomains$inboundSchema: z.ZodType< unknown > = z.union([ z.lazy(() => Domains1$inboundSchema), - z.lazy(() => Domains3$inboundSchema), z.lazy(() => Domains2$inboundSchema), + z.lazy(() => Domains3$inboundSchema), ]); /** @internal */ export type GetOrderDomains$Outbound = | Domains1$Outbound - | Domains3$Outbound - | Domains2$Outbound; + | Domains2$Outbound + | Domains3$Outbound; /** @internal */ export const GetOrderDomains$outboundSchema: z.ZodType< @@ -1846,8 +1572,8 @@ export const GetOrderDomains$outboundSchema: z.ZodType< GetOrderDomains > = z.union([ z.lazy(() => Domains1$outboundSchema), - z.lazy(() => Domains3$outboundSchema), z.lazy(() => Domains2$outboundSchema), + z.lazy(() => Domains3$outboundSchema), ]); export function getOrderDomainsToJSON( @@ -1909,30 +1635,20 @@ export function error2FromJSON( ); } -/** @internal */ -export const GetOrder1DomainsRegistrarResponseCode$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - GetOrder1DomainsRegistrarResponseCode, - ); -/** @internal */ -export const GetOrder1DomainsRegistrarResponseCode$outboundSchema: - z.ZodNativeEnum = - GetOrder1DomainsRegistrarResponseCode$inboundSchema; - /** @internal */ export const One4$inboundSchema: z.ZodType = z .object({ - code: GetOrder1DomainsRegistrarResponseCode$inboundSchema, + code: z.literal("unexpected-error"), }); /** @internal */ export type One4$Outbound = { - code: string; + code: "unexpected-error"; }; /** @internal */ export const One4$outboundSchema: z.ZodType = z.object({ - code: GetOrder1DomainsRegistrarResponseCode$outboundSchema, + code: z.literal("unexpected-error"), }); export function one4ToJSON(one4: One4): string { @@ -1948,15 +1664,6 @@ export function one4FromJSON( ); } -/** @internal */ -export const GetOrder1DomainsRegistrarCode$inboundSchema: z.ZodNativeEnum< - typeof GetOrder1DomainsRegistrarCode -> = z.nativeEnum(GetOrder1DomainsRegistrarCode); -/** @internal */ -export const GetOrder1DomainsRegistrarCode$outboundSchema: z.ZodNativeEnum< - typeof GetOrder1DomainsRegistrarCode -> = GetOrder1DomainsRegistrarCode$inboundSchema; - /** @internal */ export const OneDetails$inboundSchema: z.ZodType< OneDetails, @@ -2001,12 +1708,12 @@ export const GetOrder13$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - code: GetOrder1DomainsRegistrarCode$inboundSchema, + code: z.literal("price-mismatch"), details: z.lazy(() => OneDetails$inboundSchema), }); /** @internal */ export type GetOrder13$Outbound = { - code: string; + code: "price-mismatch"; details: OneDetails$Outbound; }; @@ -2016,7 +1723,7 @@ export const GetOrder13$outboundSchema: z.ZodType< z.ZodTypeDef, GetOrder13 > = z.object({ - code: GetOrder1DomainsRegistrarCode$outboundSchema, + code: z.literal("price-mismatch"), details: z.lazy(() => OneDetails$outboundSchema), }); @@ -2033,15 +1740,6 @@ export function getOrder13FromJSON( ); } -/** @internal */ -export const GetOrder1Code$inboundSchema: z.ZodNativeEnum< - typeof GetOrder1Code -> = z.nativeEnum(GetOrder1Code); -/** @internal */ -export const GetOrder1Code$outboundSchema: z.ZodNativeEnum< - typeof GetOrder1Code -> = GetOrder1Code$inboundSchema; - /** @internal */ export const Tlds$inboundSchema: z.ZodType = z .object({ @@ -2119,12 +1817,12 @@ export const GetOrder12$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - code: GetOrder1Code$inboundSchema, + code: z.literal("tld-outage"), details: z.lazy(() => GetOrder1Details$inboundSchema), }); /** @internal */ export type GetOrder12$Outbound = { - code: string; + code: "tld-outage"; details: GetOrder1Details$Outbound; }; @@ -2134,7 +1832,7 @@ export const GetOrder12$outboundSchema: z.ZodType< z.ZodTypeDef, GetOrder12 > = z.object({ - code: GetOrder1Code$outboundSchema, + code: z.literal("tld-outage"), details: z.lazy(() => GetOrder1Details$outboundSchema), }); @@ -2151,24 +1849,17 @@ export function getOrder12FromJSON( ); } -/** @internal */ -export const OneCode$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(OneCode); -/** @internal */ -export const OneCode$outboundSchema: z.ZodNativeEnum = - OneCode$inboundSchema; - /** @internal */ export const GetOrder11$inboundSchema: z.ZodType< GetOrder11, z.ZodTypeDef, unknown > = z.object({ - code: OneCode$inboundSchema, + code: z.literal("payment-failed"), }); /** @internal */ export type GetOrder11$Outbound = { - code: string; + code: "payment-failed"; }; /** @internal */ @@ -2177,7 +1868,7 @@ export const GetOrder11$outboundSchema: z.ZodType< z.ZodTypeDef, GetOrder11 > = z.object({ - code: OneCode$outboundSchema, + code: z.literal("payment-failed"), }); export function getOrder11ToJSON(getOrder11: GetOrder11): string { @@ -2196,16 +1887,16 @@ export function getOrder11FromJSON( /** @internal */ export const Error1$inboundSchema: z.ZodType = z .union([ + z.lazy(() => GetOrder11$inboundSchema), z.lazy(() => GetOrder12$inboundSchema), z.lazy(() => GetOrder13$inboundSchema), - z.lazy(() => GetOrder11$inboundSchema), z.lazy(() => One4$inboundSchema), ]); /** @internal */ export type Error1$Outbound = + | GetOrder11$Outbound | GetOrder12$Outbound | GetOrder13$Outbound - | GetOrder11$Outbound | One4$Outbound; /** @internal */ @@ -2214,9 +1905,9 @@ export const Error1$outboundSchema: z.ZodType< z.ZodTypeDef, Error1 > = z.union([ + z.lazy(() => GetOrder11$outboundSchema), z.lazy(() => GetOrder12$outboundSchema), z.lazy(() => GetOrder13$outboundSchema), - z.lazy(() => GetOrder11$outboundSchema), z.lazy(() => One4$outboundSchema), ]); @@ -2238,18 +1929,18 @@ export const ErrorT$inboundSchema: z.ZodType = z .union([ z.lazy(() => Error2$inboundSchema), z.union([ + z.lazy(() => GetOrder11$inboundSchema), z.lazy(() => GetOrder12$inboundSchema), z.lazy(() => GetOrder13$inboundSchema), - z.lazy(() => GetOrder11$inboundSchema), z.lazy(() => One4$inboundSchema), ]), ]); /** @internal */ export type ErrorT$Outbound = | Error2$Outbound + | GetOrder11$Outbound | GetOrder12$Outbound | GetOrder13$Outbound - | GetOrder11$Outbound | One4$Outbound; /** @internal */ @@ -2260,9 +1951,9 @@ export const ErrorT$outboundSchema: z.ZodType< > = z.union([ z.lazy(() => Error2$outboundSchema), z.union([ + z.lazy(() => GetOrder11$outboundSchema), z.lazy(() => GetOrder12$outboundSchema), z.lazy(() => GetOrder13$outboundSchema), - z.lazy(() => GetOrder11$outboundSchema), z.lazy(() => One4$outboundSchema), ]), ]); @@ -2290,17 +1981,17 @@ export const GetOrderResponseBody$inboundSchema: z.ZodType< domains: z.array( z.union([ z.lazy(() => Domains1$inboundSchema), - z.lazy(() => Domains3$inboundSchema), z.lazy(() => Domains2$inboundSchema), + z.lazy(() => Domains3$inboundSchema), ]), ), status: GetOrderStatus$inboundSchema, error: z.union([ z.lazy(() => Error2$inboundSchema), z.union([ + z.lazy(() => GetOrder11$inboundSchema), z.lazy(() => GetOrder12$inboundSchema), z.lazy(() => GetOrder13$inboundSchema), - z.lazy(() => GetOrder11$inboundSchema), z.lazy(() => One4$inboundSchema), ]), ]).optional(), @@ -2308,13 +1999,13 @@ export const GetOrderResponseBody$inboundSchema: z.ZodType< /** @internal */ export type GetOrderResponseBody$Outbound = { orderId: string; - domains: Array; + domains: Array; status: string; error?: | Error2$Outbound + | GetOrder11$Outbound | GetOrder12$Outbound | GetOrder13$Outbound - | GetOrder11$Outbound | One4$Outbound | undefined; }; @@ -2329,17 +2020,17 @@ export const GetOrderResponseBody$outboundSchema: z.ZodType< domains: z.array( z.union([ z.lazy(() => Domains1$outboundSchema), - z.lazy(() => Domains3$outboundSchema), z.lazy(() => Domains2$outboundSchema), + z.lazy(() => Domains3$outboundSchema), ]), ), status: GetOrderStatus$outboundSchema, error: z.union([ z.lazy(() => Error2$outboundSchema), z.union([ + z.lazy(() => GetOrder11$outboundSchema), z.lazy(() => GetOrder12$outboundSchema), z.lazy(() => GetOrder13$outboundSchema), - z.lazy(() => GetOrder11$outboundSchema), z.lazy(() => One4$outboundSchema), ]), ]).optional(), diff --git a/src/models/getprojectenvop.ts b/src/models/getprojectenvop.ts index ee3c80a5..e6a761ee 100644 --- a/src/models/getprojectenvop.ts +++ b/src/models/getprojectenvop.ts @@ -51,236 +51,85 @@ export type GetProjectEnvResponseBodyProjectsResponseType = ClosedEnum< typeof GetProjectEnvResponseBodyProjectsResponseType >; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type = - { - FlagsConnectionString: "flags-connection-string", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type - >; - export type GetProjectEnvContentHintProjectsResponse15 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type; + type: "flags-connection-string"; projectId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type = - { - IntegrationStoreSecret: "integration-store-secret", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type - >; - export type GetProjectEnvContentHintProjectsResponse14 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; integrationConfigurationId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type = - { - PostgresUrlNoSsl: "postgres-url-no-ssl", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type - >; - export type GetProjectEnvContentHintProjectsResponse13 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type; + type: "postgres-url-no-ssl"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type = - { - PostgresDatabase: "postgres-database", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type - >; - export type GetProjectEnvContentHintProjectsResponse12 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type; + type: "postgres-database"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type = - { - PostgresPassword: "postgres-password", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type - >; - export type GetProjectEnvContentHintProjectsResponse11 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type; + type: "postgres-password"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type = - { - PostgresHost: "postgres-host", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type - >; - export type GetProjectEnvContentHintProjectsResponse10 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type; + type: "postgres-host"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type = - { - PostgresUser: "postgres-user", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type - >; - export type GetProjectEnvContentHintProjectsResponse9 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type; + type: "postgres-user"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type = - { - PostgresPrismaUrl: "postgres-prisma-url", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type - >; - export type GetProjectEnvContentHintProjectsResponse8 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type; + type: "postgres-prisma-url"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type = - { - PostgresUrlNonPooling: "postgres-url-non-pooling", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type - >; - export type GetProjectEnvContentHintProjectsResponse7 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type; + type: "postgres-url-non-pooling"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type = - { - PostgresUrl: "postgres-url", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type - >; - export type GetProjectEnvContentHintProjectsResponse6 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type; + type: "postgres-url"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type = - { - BlobReadWriteToken: "blob-read-write-token", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type - >; - export type GetProjectEnvContentHintProjectsResponse5 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type; + type: "blob-read-write-token"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type = - { - RedisRestApiReadOnlyToken: "redis-rest-api-read-only-token", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type - >; - export type GetProjectEnvContentHintProjectsResponse4 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type; + type: "redis-rest-api-read-only-token"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type = - { - RedisRestApiToken: "redis-rest-api-token", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type - >; - export type GetProjectEnvContentHintProjectsResponse3 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type; + type: "redis-rest-api-token"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type = - { - RedisRestApiUrl: "redis-rest-api-url", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type - >; - export type GetProjectEnvContentHintProjectsResponse2 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type; + type: "redis-rest-api-url"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type = - { - RedisUrl: "redis-url", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type - >; - export type GetProjectEnvContentHintProjectsResponse1 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type; + type: "redis-url"; storeId: string; }; export type GetProjectEnvResponseBodyProjectsResponseContentHint = - | GetProjectEnvContentHintProjectsResponse14 | GetProjectEnvContentHintProjectsResponse1 | GetProjectEnvContentHintProjectsResponse2 | GetProjectEnvContentHintProjectsResponse3 @@ -294,6 +143,7 @@ export type GetProjectEnvResponseBodyProjectsResponseContentHint = | GetProjectEnvContentHintProjectsResponse11 | GetProjectEnvContentHintProjectsResponse12 | GetProjectEnvContentHintProjectsResponse13 + | GetProjectEnvContentHintProjectsResponse14 | GetProjectEnvContentHintProjectsResponse15; export const GetProjectEnvResponseBodyProjectsResponse200ApplicationJson3Type = @@ -336,7 +186,6 @@ export type GetProjectEnvResponseBody3 = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | GetProjectEnvContentHintProjectsResponse14 | GetProjectEnvContentHintProjectsResponse1 | GetProjectEnvContentHintProjectsResponse2 | GetProjectEnvContentHintProjectsResponse3 @@ -350,6 +199,7 @@ export type GetProjectEnvResponseBody3 = { | GetProjectEnvContentHintProjectsResponse11 | GetProjectEnvContentHintProjectsResponse12 | GetProjectEnvContentHintProjectsResponse13 + | GetProjectEnvContentHintProjectsResponse14 | GetProjectEnvContentHintProjectsResponse15 | null | undefined; @@ -397,236 +247,85 @@ export type GetProjectEnvResponseBodyProjectsType = ClosedEnum< typeof GetProjectEnvResponseBodyProjectsType >; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type = - { - FlagsConnectionString: "flags-connection-string", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type - >; - export type GetProjectEnvContentHintProjects15 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type; + type: "flags-connection-string"; projectId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type = - { - IntegrationStoreSecret: "integration-store-secret", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type - >; - export type GetProjectEnvContentHintProjects14 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; integrationConfigurationId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type = - { - PostgresUrlNoSsl: "postgres-url-no-ssl", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type - >; - export type GetProjectEnvContentHintProjects13 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type; + type: "postgres-url-no-ssl"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type = - { - PostgresDatabase: "postgres-database", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type - >; - export type GetProjectEnvContentHintProjects12 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type; + type: "postgres-database"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type = - { - PostgresPassword: "postgres-password", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type - >; - export type GetProjectEnvContentHintProjects11 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type; + type: "postgres-password"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type = - { - PostgresHost: "postgres-host", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type - >; - export type GetProjectEnvContentHintProjects10 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type; + type: "postgres-host"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type = - { - PostgresUser: "postgres-user", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type - >; - export type GetProjectEnvContentHintProjects9 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type; + type: "postgres-user"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type = - { - PostgresPrismaUrl: "postgres-prisma-url", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type - >; - export type GetProjectEnvContentHintProjects8 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type; + type: "postgres-prisma-url"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type = - { - PostgresUrlNonPooling: "postgres-url-non-pooling", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type - >; - export type GetProjectEnvContentHintProjects7 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type; + type: "postgres-url-non-pooling"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type = - { - PostgresUrl: "postgres-url", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type - >; - export type GetProjectEnvContentHintProjects6 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type; + type: "postgres-url"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type = - { - BlobReadWriteToken: "blob-read-write-token", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type - >; - export type GetProjectEnvContentHintProjects5 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type; + type: "blob-read-write-token"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type = - { - RedisRestApiReadOnlyToken: "redis-rest-api-read-only-token", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type - >; - export type GetProjectEnvContentHintProjects4 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type; + type: "redis-rest-api-read-only-token"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type = - { - RedisRestApiToken: "redis-rest-api-token", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type - >; - export type GetProjectEnvContentHintProjects3 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type; + type: "redis-rest-api-token"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type = - { - RedisRestApiUrl: "redis-rest-api-url", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type - >; - export type GetProjectEnvContentHintProjects2 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type; + type: "redis-rest-api-url"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type = - { - RedisUrl: "redis-url", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type - >; - export type GetProjectEnvContentHintProjects1 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type; + type: "redis-url"; storeId: string; }; export type GetProjectEnvResponseBodyProjectsContentHint = - | GetProjectEnvContentHintProjects14 | GetProjectEnvContentHintProjects1 | GetProjectEnvContentHintProjects2 | GetProjectEnvContentHintProjects3 @@ -640,6 +339,7 @@ export type GetProjectEnvResponseBodyProjectsContentHint = | GetProjectEnvContentHintProjects11 | GetProjectEnvContentHintProjects12 | GetProjectEnvContentHintProjects13 + | GetProjectEnvContentHintProjects14 | GetProjectEnvContentHintProjects15; export const GetProjectEnvResponseBodyProjectsResponse200Type = { @@ -684,7 +384,6 @@ export type GetProjectEnvResponseBody2 = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | GetProjectEnvContentHintProjects14 | GetProjectEnvContentHintProjects1 | GetProjectEnvContentHintProjects2 | GetProjectEnvContentHintProjects3 @@ -698,6 +397,7 @@ export type GetProjectEnvResponseBody2 = { | GetProjectEnvContentHintProjects11 | GetProjectEnvContentHintProjects12 | GetProjectEnvContentHintProjects13 + | GetProjectEnvContentHintProjects14 | GetProjectEnvContentHintProjects15 | null | undefined; @@ -741,222 +441,85 @@ export type GetProjectEnvResponseBodyType = ClosedEnum< typeof GetProjectEnvResponseBodyType >; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type = - { - FlagsConnectionString: "flags-connection-string", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type - >; - export type GetProjectEnvContentHint15 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type; + type: "flags-connection-string"; projectId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type = - { - IntegrationStoreSecret: "integration-store-secret", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type - >; - export type GetProjectEnvContentHint14 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; integrationConfigurationId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type = - { - PostgresUrlNoSsl: "postgres-url-no-ssl", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type - >; - export type GetProjectEnvContentHint13 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type; + type: "postgres-url-no-ssl"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type = - { - PostgresDatabase: "postgres-database", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type - >; - export type GetProjectEnvContentHint12 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type; + type: "postgres-database"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type = - { - PostgresPassword: "postgres-password", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type - >; - export type GetProjectEnvContentHint11 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type; + type: "postgres-password"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type = - { - PostgresHost: "postgres-host", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type - >; - export type GetProjectEnvContentHint10 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type; + type: "postgres-host"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type = - { - PostgresUser: "postgres-user", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type - >; - export type GetProjectEnvContentHint9 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type; + type: "postgres-user"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type = - { - PostgresPrismaUrl: "postgres-prisma-url", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type - >; - export type GetProjectEnvContentHint8 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type; + type: "postgres-prisma-url"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type = - { - PostgresUrlNonPooling: "postgres-url-non-pooling", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type - >; - export type GetProjectEnvContentHint7 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type; + type: "postgres-url-non-pooling"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType = - { - PostgresUrl: "postgres-url", - } as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType - >; - export type GetProjectEnvContentHint6 = { - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType; + type: "postgres-url"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONType = { - BlobReadWriteToken: "blob-read-write-token", -} as const; -export type GetProjectEnvContentHintProjectsResponse200ApplicationJSONType = - ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONType - >; - export type GetProjectEnvContentHint5 = { - type: GetProjectEnvContentHintProjectsResponse200ApplicationJSONType; + type: "blob-read-write-token"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponse200Type = { - RedisRestApiReadOnlyToken: "redis-rest-api-read-only-token", -} as const; -export type GetProjectEnvContentHintProjectsResponse200Type = ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponse200Type ->; - export type GetProjectEnvContentHint4 = { - type: GetProjectEnvContentHintProjectsResponse200Type; + type: "redis-rest-api-read-only-token"; storeId: string; }; -export const GetProjectEnvContentHintProjectsResponseType = { - RedisRestApiToken: "redis-rest-api-token", -} as const; -export type GetProjectEnvContentHintProjectsResponseType = ClosedEnum< - typeof GetProjectEnvContentHintProjectsResponseType ->; - export type GetProjectEnvContentHint3 = { - type: GetProjectEnvContentHintProjectsResponseType; + type: "redis-rest-api-token"; storeId: string; }; -export const GetProjectEnvContentHintProjectsType = { - RedisRestApiUrl: "redis-rest-api-url", -} as const; -export type GetProjectEnvContentHintProjectsType = ClosedEnum< - typeof GetProjectEnvContentHintProjectsType ->; - export type GetProjectEnvContentHint2 = { - type: GetProjectEnvContentHintProjectsType; + type: "redis-rest-api-url"; storeId: string; }; -export const GetProjectEnvContentHintType = { - RedisUrl: "redis-url", -} as const; -export type GetProjectEnvContentHintType = ClosedEnum< - typeof GetProjectEnvContentHintType ->; - export type GetProjectEnvContentHint1 = { - type: GetProjectEnvContentHintType; + type: "redis-url"; storeId: string; }; export type GetProjectEnvResponseBodyContentHint = - | GetProjectEnvContentHint14 | GetProjectEnvContentHint1 | GetProjectEnvContentHint2 | GetProjectEnvContentHint3 @@ -970,6 +533,7 @@ export type GetProjectEnvResponseBodyContentHint = | GetProjectEnvContentHint11 | GetProjectEnvContentHint12 | GetProjectEnvContentHint13 + | GetProjectEnvContentHint14 | GetProjectEnvContentHint15; export const GetProjectEnvResponseBodyProjectsResponse200ApplicationJSONType = { @@ -1010,7 +574,6 @@ export type GetProjectEnvResponseBody1 = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | GetProjectEnvContentHint14 | GetProjectEnvContentHint1 | GetProjectEnvContentHint2 | GetProjectEnvContentHint3 @@ -1024,6 +587,7 @@ export type GetProjectEnvResponseBody1 = { | GetProjectEnvContentHint11 | GetProjectEnvContentHint12 | GetProjectEnvContentHint13 + | GetProjectEnvContentHint14 | GetProjectEnvContentHint15 | null | undefined; @@ -1162,31 +726,16 @@ export const GetProjectEnvResponseBodyProjectsResponseType$outboundSchema: z.ZodNativeEnum = GetProjectEnvResponseBodyProjectsResponseType$inboundSchema; -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjectsResponse15$inboundSchema: z.ZodType = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type$inboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjectsResponse15$Outbound = { - type: string; + type: "flags-connection-string"; projectId: string; }; @@ -1197,8 +746,7 @@ export const GetProjectEnvContentHintProjectsResponse15$outboundSchema: z.ZodTypeDef, GetProjectEnvContentHintProjectsResponse15 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type$outboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); @@ -1228,26 +776,11 @@ export function getProjectEnvContentHintProjectsResponse15FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjectsResponse14$inboundSchema: z.ZodType = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type$inboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -1255,7 +788,7 @@ export const GetProjectEnvContentHintProjectsResponse14$inboundSchema: }); /** @internal */ export type GetProjectEnvContentHintProjectsResponse14$Outbound = { - type: string; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; @@ -1269,8 +802,7 @@ export const GetProjectEnvContentHintProjectsResponse14$outboundSchema: z.ZodTypeDef, GetProjectEnvContentHintProjectsResponse14 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type$outboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -1303,31 +835,16 @@ export function getProjectEnvContentHintProjectsResponse14FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjectsResponse13$inboundSchema: z.ZodType = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type$inboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjectsResponse13$Outbound = { - type: string; + type: "postgres-url-no-ssl"; storeId: string; }; @@ -1338,8 +855,7 @@ export const GetProjectEnvContentHintProjectsResponse13$outboundSchema: z.ZodTypeDef, GetProjectEnvContentHintProjectsResponse13 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type$outboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); @@ -1369,31 +885,16 @@ export function getProjectEnvContentHintProjectsResponse13FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjectsResponse12$inboundSchema: z.ZodType = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type$inboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjectsResponse12$Outbound = { - type: string; + type: "postgres-database"; storeId: string; }; @@ -1404,8 +905,7 @@ export const GetProjectEnvContentHintProjectsResponse12$outboundSchema: z.ZodTypeDef, GetProjectEnvContentHintProjectsResponse12 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type$outboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); @@ -1435,31 +935,16 @@ export function getProjectEnvContentHintProjectsResponse12FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjectsResponse11$inboundSchema: z.ZodType = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type$inboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjectsResponse11$Outbound = { - type: string; + type: "postgres-password"; storeId: string; }; @@ -1470,8 +955,7 @@ export const GetProjectEnvContentHintProjectsResponse11$outboundSchema: z.ZodTypeDef, GetProjectEnvContentHintProjectsResponse11 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type$outboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); @@ -1501,31 +985,16 @@ export function getProjectEnvContentHintProjectsResponse11FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjectsResponse10$inboundSchema: z.ZodType = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type$inboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjectsResponse10$Outbound = { - type: string; + type: "postgres-host"; storeId: string; }; @@ -1536,8 +1005,7 @@ export const GetProjectEnvContentHintProjectsResponse10$outboundSchema: z.ZodTypeDef, GetProjectEnvContentHintProjectsResponse10 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type$outboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); @@ -1567,33 +1035,18 @@ export function getProjectEnvContentHintProjectsResponse10FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjectsResponse9$inboundSchema: z.ZodType< GetProjectEnvContentHintProjectsResponse9, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type$inboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjectsResponse9$Outbound = { - type: string; + type: "postgres-user"; storeId: string; }; @@ -1604,8 +1057,7 @@ export const GetProjectEnvContentHintProjectsResponse9$outboundSchema: z.ZodTypeDef, GetProjectEnvContentHintProjectsResponse9 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type$outboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); @@ -1635,33 +1087,18 @@ export function getProjectEnvContentHintProjectsResponse9FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjectsResponse8$inboundSchema: z.ZodType< GetProjectEnvContentHintProjectsResponse8, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type$inboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjectsResponse8$Outbound = { - type: string; + type: "postgres-prisma-url"; storeId: string; }; @@ -1672,8 +1109,7 @@ export const GetProjectEnvContentHintProjectsResponse8$outboundSchema: z.ZodTypeDef, GetProjectEnvContentHintProjectsResponse8 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type$outboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); @@ -1703,33 +1139,18 @@ export function getProjectEnvContentHintProjectsResponse8FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjectsResponse7$inboundSchema: z.ZodType< GetProjectEnvContentHintProjectsResponse7, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type$inboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjectsResponse7$Outbound = { - type: string; + type: "postgres-url-non-pooling"; storeId: string; }; @@ -1740,8 +1161,7 @@ export const GetProjectEnvContentHintProjectsResponse7$outboundSchema: z.ZodTypeDef, GetProjectEnvContentHintProjectsResponse7 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type$outboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); @@ -1771,33 +1191,18 @@ export function getProjectEnvContentHintProjectsResponse7FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjectsResponse6$inboundSchema: z.ZodType< GetProjectEnvContentHintProjectsResponse6, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type$inboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjectsResponse6$Outbound = { - type: string; + type: "postgres-url"; storeId: string; }; @@ -1808,8 +1213,7 @@ export const GetProjectEnvContentHintProjectsResponse6$outboundSchema: z.ZodTypeDef, GetProjectEnvContentHintProjectsResponse6 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type$outboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); @@ -1839,33 +1243,18 @@ export function getProjectEnvContentHintProjectsResponse6FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjectsResponse5$inboundSchema: z.ZodType< GetProjectEnvContentHintProjectsResponse5, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type$inboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjectsResponse5$Outbound = { - type: string; + type: "blob-read-write-token"; storeId: string; }; @@ -1876,8 +1265,7 @@ export const GetProjectEnvContentHintProjectsResponse5$outboundSchema: z.ZodTypeDef, GetProjectEnvContentHintProjectsResponse5 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type$outboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); @@ -1907,33 +1295,18 @@ export function getProjectEnvContentHintProjectsResponse5FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjectsResponse4$inboundSchema: z.ZodType< GetProjectEnvContentHintProjectsResponse4, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type$inboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjectsResponse4$Outbound = { - type: string; + type: "redis-rest-api-read-only-token"; storeId: string; }; @@ -1944,8 +1317,7 @@ export const GetProjectEnvContentHintProjectsResponse4$outboundSchema: z.ZodTypeDef, GetProjectEnvContentHintProjectsResponse4 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type$outboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); @@ -1975,33 +1347,18 @@ export function getProjectEnvContentHintProjectsResponse4FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjectsResponse3$inboundSchema: z.ZodType< GetProjectEnvContentHintProjectsResponse3, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type$inboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjectsResponse3$Outbound = { - type: string; + type: "redis-rest-api-token"; storeId: string; }; @@ -2012,8 +1369,7 @@ export const GetProjectEnvContentHintProjectsResponse3$outboundSchema: z.ZodTypeDef, GetProjectEnvContentHintProjectsResponse3 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type$outboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); @@ -2043,33 +1399,18 @@ export function getProjectEnvContentHintProjectsResponse3FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjectsResponse2$inboundSchema: z.ZodType< GetProjectEnvContentHintProjectsResponse2, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type$inboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjectsResponse2$Outbound = { - type: string; + type: "redis-rest-api-url"; storeId: string; }; @@ -2080,8 +1421,7 @@ export const GetProjectEnvContentHintProjectsResponse2$outboundSchema: z.ZodTypeDef, GetProjectEnvContentHintProjectsResponse2 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type$outboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); @@ -2111,33 +1451,18 @@ export function getProjectEnvContentHintProjectsResponse2FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjectsResponse1$inboundSchema: z.ZodType< GetProjectEnvContentHintProjectsResponse1, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type$inboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjectsResponse1$Outbound = { - type: string; + type: "redis-url"; storeId: string; }; @@ -2148,8 +1473,7 @@ export const GetProjectEnvContentHintProjectsResponse1$outboundSchema: z.ZodTypeDef, GetProjectEnvContentHintProjectsResponse1 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type$outboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); @@ -2186,7 +1510,6 @@ export const GetProjectEnvResponseBodyProjectsResponseContentHint$inboundSchema: z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetProjectEnvContentHintProjectsResponse14$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse1$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse2$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse3$inboundSchema), @@ -2200,11 +1523,11 @@ export const GetProjectEnvResponseBodyProjectsResponseContentHint$inboundSchema: z.lazy(() => GetProjectEnvContentHintProjectsResponse11$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse12$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse13$inboundSchema), + z.lazy(() => GetProjectEnvContentHintProjectsResponse14$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse15$inboundSchema), ]); /** @internal */ export type GetProjectEnvResponseBodyProjectsResponseContentHint$Outbound = - | GetProjectEnvContentHintProjectsResponse14$Outbound | GetProjectEnvContentHintProjectsResponse1$Outbound | GetProjectEnvContentHintProjectsResponse2$Outbound | GetProjectEnvContentHintProjectsResponse3$Outbound @@ -2218,6 +1541,7 @@ export type GetProjectEnvResponseBodyProjectsResponseContentHint$Outbound = | GetProjectEnvContentHintProjectsResponse11$Outbound | GetProjectEnvContentHintProjectsResponse12$Outbound | GetProjectEnvContentHintProjectsResponse13$Outbound + | GetProjectEnvContentHintProjectsResponse14$Outbound | GetProjectEnvContentHintProjectsResponse15$Outbound; /** @internal */ @@ -2227,7 +1551,6 @@ export const GetProjectEnvResponseBodyProjectsResponseContentHint$outboundSchema z.ZodTypeDef, GetProjectEnvResponseBodyProjectsResponseContentHint > = z.union([ - z.lazy(() => GetProjectEnvContentHintProjectsResponse14$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse1$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse2$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse3$outboundSchema), @@ -2241,6 +1564,7 @@ export const GetProjectEnvResponseBodyProjectsResponseContentHint$outboundSchema z.lazy(() => GetProjectEnvContentHintProjectsResponse11$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse12$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse13$outboundSchema), + z.lazy(() => GetProjectEnvContentHintProjectsResponse14$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse15$outboundSchema), ]); @@ -2364,7 +1688,6 @@ export const GetProjectEnvResponseBody3$inboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => GetProjectEnvContentHintProjectsResponse14$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse1$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse2$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse3$inboundSchema), @@ -2378,6 +1701,7 @@ export const GetProjectEnvResponseBody3$inboundSchema: z.ZodType< z.lazy(() => GetProjectEnvContentHintProjectsResponse11$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse12$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse13$inboundSchema), + z.lazy(() => GetProjectEnvContentHintProjectsResponse14$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse15$inboundSchema), ]), ).optional(), @@ -2407,7 +1731,6 @@ export type GetProjectEnvResponseBody3$Outbound = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | GetProjectEnvContentHintProjectsResponse14$Outbound | GetProjectEnvContentHintProjectsResponse1$Outbound | GetProjectEnvContentHintProjectsResponse2$Outbound | GetProjectEnvContentHintProjectsResponse3$Outbound @@ -2421,6 +1744,7 @@ export type GetProjectEnvResponseBody3$Outbound = { | GetProjectEnvContentHintProjectsResponse11$Outbound | GetProjectEnvContentHintProjectsResponse12$Outbound | GetProjectEnvContentHintProjectsResponse13$Outbound + | GetProjectEnvContentHintProjectsResponse14$Outbound | GetProjectEnvContentHintProjectsResponse15$Outbound | null | undefined; @@ -2458,7 +1782,6 @@ export const GetProjectEnvResponseBody3$outboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => GetProjectEnvContentHintProjectsResponse14$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse1$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse2$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse3$outboundSchema), @@ -2472,6 +1795,7 @@ export const GetProjectEnvResponseBody3$outboundSchema: z.ZodType< z.lazy(() => GetProjectEnvContentHintProjectsResponse11$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse12$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse13$outboundSchema), + z.lazy(() => GetProjectEnvContentHintProjectsResponse14$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjectsResponse15$outboundSchema), ]), ).optional(), @@ -2579,33 +1903,18 @@ export const GetProjectEnvResponseBodyProjectsType$outboundSchema: z.ZodNativeEnum = GetProjectEnvResponseBodyProjectsType$inboundSchema; -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjects15$inboundSchema: z.ZodType< GetProjectEnvContentHintProjects15, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type$inboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjects15$Outbound = { - type: string; + type: "flags-connection-string"; projectId: string; }; @@ -2615,8 +1924,7 @@ export const GetProjectEnvContentHintProjects15$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHintProjects15 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type$outboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); @@ -2640,28 +1948,13 @@ export function getProjectEnvContentHintProjects15FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjects14$inboundSchema: z.ZodType< GetProjectEnvContentHintProjects14, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type$inboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -2669,7 +1962,7 @@ export const GetProjectEnvContentHintProjects14$inboundSchema: z.ZodType< }); /** @internal */ export type GetProjectEnvContentHintProjects14$Outbound = { - type: string; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; @@ -2682,8 +1975,7 @@ export const GetProjectEnvContentHintProjects14$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHintProjects14 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type$outboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -2704,25 +1996,11 @@ export function getProjectEnvContentHintProjects14FromJSON( ): SafeParseResult { return safeParse( jsonString, - (x) => - GetProjectEnvContentHintProjects14$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetProjectEnvContentHintProjects14' from JSON`, - ); -} - -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type, + (x) => + GetProjectEnvContentHintProjects14$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetProjectEnvContentHintProjects14' from JSON`, ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type$inboundSchema; +} /** @internal */ export const GetProjectEnvContentHintProjects13$inboundSchema: z.ZodType< @@ -2730,13 +2008,12 @@ export const GetProjectEnvContentHintProjects13$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type$inboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjects13$Outbound = { - type: string; + type: "postgres-url-no-ssl"; storeId: string; }; @@ -2746,8 +2023,7 @@ export const GetProjectEnvContentHintProjects13$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHintProjects13 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type$outboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); @@ -2771,33 +2047,18 @@ export function getProjectEnvContentHintProjects13FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjects12$inboundSchema: z.ZodType< GetProjectEnvContentHintProjects12, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type$inboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjects12$Outbound = { - type: string; + type: "postgres-database"; storeId: string; }; @@ -2807,8 +2068,7 @@ export const GetProjectEnvContentHintProjects12$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHintProjects12 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type$outboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); @@ -2832,33 +2092,18 @@ export function getProjectEnvContentHintProjects12FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjects11$inboundSchema: z.ZodType< GetProjectEnvContentHintProjects11, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type$inboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjects11$Outbound = { - type: string; + type: "postgres-password"; storeId: string; }; @@ -2868,8 +2113,7 @@ export const GetProjectEnvContentHintProjects11$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHintProjects11 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type$outboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); @@ -2893,33 +2137,18 @@ export function getProjectEnvContentHintProjects11FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjects10$inboundSchema: z.ZodType< GetProjectEnvContentHintProjects10, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type$inboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjects10$Outbound = { - type: string; + type: "postgres-host"; storeId: string; }; @@ -2929,8 +2158,7 @@ export const GetProjectEnvContentHintProjects10$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHintProjects10 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type$outboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); @@ -2954,33 +2182,18 @@ export function getProjectEnvContentHintProjects10FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjects9$inboundSchema: z.ZodType< GetProjectEnvContentHintProjects9, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type$inboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjects9$Outbound = { - type: string; + type: "postgres-user"; storeId: string; }; @@ -2990,8 +2203,7 @@ export const GetProjectEnvContentHintProjects9$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHintProjects9 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type$outboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); @@ -3014,33 +2226,18 @@ export function getProjectEnvContentHintProjects9FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjects8$inboundSchema: z.ZodType< GetProjectEnvContentHintProjects8, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type$inboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjects8$Outbound = { - type: string; + type: "postgres-prisma-url"; storeId: string; }; @@ -3050,8 +2247,7 @@ export const GetProjectEnvContentHintProjects8$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHintProjects8 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type$outboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); @@ -3074,33 +2270,18 @@ export function getProjectEnvContentHintProjects8FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjects7$inboundSchema: z.ZodType< GetProjectEnvContentHintProjects7, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type$inboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjects7$Outbound = { - type: string; + type: "postgres-url-non-pooling"; storeId: string; }; @@ -3110,8 +2291,7 @@ export const GetProjectEnvContentHintProjects7$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHintProjects7 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type$outboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); @@ -3134,33 +2314,18 @@ export function getProjectEnvContentHintProjects7FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjects6$inboundSchema: z.ZodType< GetProjectEnvContentHintProjects6, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type$inboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjects6$Outbound = { - type: string; + type: "postgres-url"; storeId: string; }; @@ -3170,8 +2335,7 @@ export const GetProjectEnvContentHintProjects6$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHintProjects6 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type$outboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); @@ -3194,33 +2358,18 @@ export function getProjectEnvContentHintProjects6FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjects5$inboundSchema: z.ZodType< GetProjectEnvContentHintProjects5, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type$inboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjects5$Outbound = { - type: string; + type: "blob-read-write-token"; storeId: string; }; @@ -3230,8 +2379,7 @@ export const GetProjectEnvContentHintProjects5$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHintProjects5 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type$outboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); @@ -3254,33 +2402,18 @@ export function getProjectEnvContentHintProjects5FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjects4$inboundSchema: z.ZodType< GetProjectEnvContentHintProjects4, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type$inboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjects4$Outbound = { - type: string; + type: "redis-rest-api-read-only-token"; storeId: string; }; @@ -3290,8 +2423,7 @@ export const GetProjectEnvContentHintProjects4$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHintProjects4 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type$outboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); @@ -3314,33 +2446,18 @@ export function getProjectEnvContentHintProjects4FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjects3$inboundSchema: z.ZodType< GetProjectEnvContentHintProjects3, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type$inboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjects3$Outbound = { - type: string; + type: "redis-rest-api-token"; storeId: string; }; @@ -3350,8 +2467,7 @@ export const GetProjectEnvContentHintProjects3$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHintProjects3 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type$outboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); @@ -3374,33 +2490,18 @@ export function getProjectEnvContentHintProjects3FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjects2$inboundSchema: z.ZodType< GetProjectEnvContentHintProjects2, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type$inboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjects2$Outbound = { - type: string; + type: "redis-rest-api-url"; storeId: string; }; @@ -3410,8 +2511,7 @@ export const GetProjectEnvContentHintProjects2$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHintProjects2 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type$outboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); @@ -3434,33 +2534,18 @@ export function getProjectEnvContentHintProjects2FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHintProjects1$inboundSchema: z.ZodType< GetProjectEnvContentHintProjects1, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type$inboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHintProjects1$Outbound = { - type: string; + type: "redis-url"; storeId: string; }; @@ -3470,8 +2555,7 @@ export const GetProjectEnvContentHintProjects1$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHintProjects1 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type$outboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); @@ -3501,7 +2585,6 @@ export const GetProjectEnvResponseBodyProjectsContentHint$inboundSchema: z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetProjectEnvContentHintProjects14$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjects1$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjects2$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjects3$inboundSchema), @@ -3515,11 +2598,11 @@ export const GetProjectEnvResponseBodyProjectsContentHint$inboundSchema: z.lazy(() => GetProjectEnvContentHintProjects11$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjects12$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjects13$inboundSchema), + z.lazy(() => GetProjectEnvContentHintProjects14$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjects15$inboundSchema), ]); /** @internal */ export type GetProjectEnvResponseBodyProjectsContentHint$Outbound = - | GetProjectEnvContentHintProjects14$Outbound | GetProjectEnvContentHintProjects1$Outbound | GetProjectEnvContentHintProjects2$Outbound | GetProjectEnvContentHintProjects3$Outbound @@ -3533,6 +2616,7 @@ export type GetProjectEnvResponseBodyProjectsContentHint$Outbound = | GetProjectEnvContentHintProjects11$Outbound | GetProjectEnvContentHintProjects12$Outbound | GetProjectEnvContentHintProjects13$Outbound + | GetProjectEnvContentHintProjects14$Outbound | GetProjectEnvContentHintProjects15$Outbound; /** @internal */ @@ -3542,7 +2626,6 @@ export const GetProjectEnvResponseBodyProjectsContentHint$outboundSchema: z.ZodTypeDef, GetProjectEnvResponseBodyProjectsContentHint > = z.union([ - z.lazy(() => GetProjectEnvContentHintProjects14$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjects1$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjects2$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjects3$outboundSchema), @@ -3556,6 +2639,7 @@ export const GetProjectEnvResponseBodyProjectsContentHint$outboundSchema: z.lazy(() => GetProjectEnvContentHintProjects11$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjects12$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjects13$outboundSchema), + z.lazy(() => GetProjectEnvContentHintProjects14$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjects15$outboundSchema), ]); @@ -3674,7 +2758,6 @@ export const GetProjectEnvResponseBody2$inboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => GetProjectEnvContentHintProjects14$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjects1$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjects2$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjects3$inboundSchema), @@ -3688,6 +2771,7 @@ export const GetProjectEnvResponseBody2$inboundSchema: z.ZodType< z.lazy(() => GetProjectEnvContentHintProjects11$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjects12$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjects13$inboundSchema), + z.lazy(() => GetProjectEnvContentHintProjects14$inboundSchema), z.lazy(() => GetProjectEnvContentHintProjects15$inboundSchema), ]), ).optional(), @@ -3718,7 +2802,6 @@ export type GetProjectEnvResponseBody2$Outbound = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | GetProjectEnvContentHintProjects14$Outbound | GetProjectEnvContentHintProjects1$Outbound | GetProjectEnvContentHintProjects2$Outbound | GetProjectEnvContentHintProjects3$Outbound @@ -3732,6 +2815,7 @@ export type GetProjectEnvResponseBody2$Outbound = { | GetProjectEnvContentHintProjects11$Outbound | GetProjectEnvContentHintProjects12$Outbound | GetProjectEnvContentHintProjects13$Outbound + | GetProjectEnvContentHintProjects14$Outbound | GetProjectEnvContentHintProjects15$Outbound | null | undefined; @@ -3770,7 +2854,6 @@ export const GetProjectEnvResponseBody2$outboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => GetProjectEnvContentHintProjects14$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjects1$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjects2$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjects3$outboundSchema), @@ -3784,6 +2867,7 @@ export const GetProjectEnvResponseBody2$outboundSchema: z.ZodType< z.lazy(() => GetProjectEnvContentHintProjects11$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjects12$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjects13$outboundSchema), + z.lazy(() => GetProjectEnvContentHintProjects14$outboundSchema), z.lazy(() => GetProjectEnvContentHintProjects15$outboundSchema), ]), ).optional(), @@ -3881,33 +2965,18 @@ export const GetProjectEnvResponseBodyType$outboundSchema: z.ZodNativeEnum< typeof GetProjectEnvResponseBodyType > = GetProjectEnvResponseBodyType$inboundSchema; -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHint15$inboundSchema: z.ZodType< GetProjectEnvContentHint15, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type$inboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); /** @internal */ export type GetProjectEnvContentHint15$Outbound = { - type: string; + type: "flags-connection-string"; projectId: string; }; @@ -3917,8 +2986,7 @@ export const GetProjectEnvContentHint15$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHint15 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type$outboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); @@ -3939,28 +3007,13 @@ export function getProjectEnvContentHint15FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHint14$inboundSchema: z.ZodType< GetProjectEnvContentHint14, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type$inboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -3968,7 +3021,7 @@ export const GetProjectEnvContentHint14$inboundSchema: z.ZodType< }); /** @internal */ export type GetProjectEnvContentHint14$Outbound = { - type: string; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; @@ -3981,8 +3034,7 @@ export const GetProjectEnvContentHint14$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHint14 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type$outboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -4006,33 +3058,18 @@ export function getProjectEnvContentHint14FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHint13$inboundSchema: z.ZodType< GetProjectEnvContentHint13, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type$inboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHint13$Outbound = { - type: string; + type: "postgres-url-no-ssl"; storeId: string; }; @@ -4042,8 +3079,7 @@ export const GetProjectEnvContentHint13$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHint13 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type$outboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); @@ -4064,33 +3100,18 @@ export function getProjectEnvContentHint13FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHint12$inboundSchema: z.ZodType< GetProjectEnvContentHint12, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type$inboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHint12$Outbound = { - type: string; + type: "postgres-database"; storeId: string; }; @@ -4100,8 +3121,7 @@ export const GetProjectEnvContentHint12$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHint12 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type$outboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); @@ -4122,33 +3142,18 @@ export function getProjectEnvContentHint12FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHint11$inboundSchema: z.ZodType< GetProjectEnvContentHint11, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type$inboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHint11$Outbound = { - type: string; + type: "postgres-password"; storeId: string; }; @@ -4158,8 +3163,7 @@ export const GetProjectEnvContentHint11$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHint11 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type$outboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); @@ -4180,33 +3184,18 @@ export function getProjectEnvContentHint11FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHint10$inboundSchema: z.ZodType< GetProjectEnvContentHint10, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type$inboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHint10$Outbound = { - type: string; + type: "postgres-host"; storeId: string; }; @@ -4216,8 +3205,7 @@ export const GetProjectEnvContentHint10$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHint10 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type$outboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); @@ -4238,33 +3226,18 @@ export function getProjectEnvContentHint10FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHint9$inboundSchema: z.ZodType< GetProjectEnvContentHint9, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type$inboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHint9$Outbound = { - type: string; + type: "postgres-user"; storeId: string; }; @@ -4274,8 +3247,7 @@ export const GetProjectEnvContentHint9$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHint9 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type$outboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); @@ -4296,33 +3268,18 @@ export function getProjectEnvContentHint9FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHint8$inboundSchema: z.ZodType< GetProjectEnvContentHint8, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type$inboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHint8$Outbound = { - type: string; + type: "postgres-prisma-url"; storeId: string; }; @@ -4332,8 +3289,7 @@ export const GetProjectEnvContentHint8$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHint8 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type$outboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); @@ -4354,33 +3310,18 @@ export function getProjectEnvContentHint8FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHint7$inboundSchema: z.ZodType< GetProjectEnvContentHint7, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type$inboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHint7$Outbound = { - type: string; + type: "postgres-url-non-pooling"; storeId: string; }; @@ -4390,8 +3331,7 @@ export const GetProjectEnvContentHint7$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHint7 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type$outboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); @@ -4412,33 +3352,18 @@ export function getProjectEnvContentHint7FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema; - /** @internal */ export const GetProjectEnvContentHint6$inboundSchema: z.ZodType< GetProjectEnvContentHint6, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHint6$Outbound = { - type: string; + type: "postgres-url"; storeId: string; }; @@ -4448,8 +3373,7 @@ export const GetProjectEnvContentHint6$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHint6 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); @@ -4470,33 +3394,18 @@ export function getProjectEnvContentHint6FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONType$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONType - > = z.nativeEnum( - GetProjectEnvContentHintProjectsResponse200ApplicationJSONType, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200ApplicationJSONType$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectEnvContentHintProjectsResponse200ApplicationJSONType - > = - GetProjectEnvContentHintProjectsResponse200ApplicationJSONType$inboundSchema; - /** @internal */ export const GetProjectEnvContentHint5$inboundSchema: z.ZodType< GetProjectEnvContentHint5, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONType$inboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHint5$Outbound = { - type: string; + type: "blob-read-write-token"; storeId: string; }; @@ -4506,8 +3415,7 @@ export const GetProjectEnvContentHint5$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHint5 > = z.object({ - type: - GetProjectEnvContentHintProjectsResponse200ApplicationJSONType$outboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); @@ -4528,27 +3436,18 @@ export function getProjectEnvContentHint5FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200Type$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetProjectEnvContentHintProjectsResponse200Type); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponse200Type$outboundSchema: - z.ZodNativeEnum = - GetProjectEnvContentHintProjectsResponse200Type$inboundSchema; - /** @internal */ export const GetProjectEnvContentHint4$inboundSchema: z.ZodType< GetProjectEnvContentHint4, z.ZodTypeDef, unknown > = z.object({ - type: GetProjectEnvContentHintProjectsResponse200Type$inboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHint4$Outbound = { - type: string; + type: "redis-rest-api-read-only-token"; storeId: string; }; @@ -4558,7 +3457,7 @@ export const GetProjectEnvContentHint4$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHint4 > = z.object({ - type: GetProjectEnvContentHintProjectsResponse200Type$outboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); @@ -4579,27 +3478,18 @@ export function getProjectEnvContentHint4FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsResponseType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetProjectEnvContentHintProjectsResponseType); -/** @internal */ -export const GetProjectEnvContentHintProjectsResponseType$outboundSchema: - z.ZodNativeEnum = - GetProjectEnvContentHintProjectsResponseType$inboundSchema; - /** @internal */ export const GetProjectEnvContentHint3$inboundSchema: z.ZodType< GetProjectEnvContentHint3, z.ZodTypeDef, unknown > = z.object({ - type: GetProjectEnvContentHintProjectsResponseType$inboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHint3$Outbound = { - type: string; + type: "redis-rest-api-token"; storeId: string; }; @@ -4609,7 +3499,7 @@ export const GetProjectEnvContentHint3$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHint3 > = z.object({ - type: GetProjectEnvContentHintProjectsResponseType$outboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); @@ -4630,28 +3520,18 @@ export function getProjectEnvContentHint3FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintProjectsType$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - GetProjectEnvContentHintProjectsType, - ); -/** @internal */ -export const GetProjectEnvContentHintProjectsType$outboundSchema: - z.ZodNativeEnum = - GetProjectEnvContentHintProjectsType$inboundSchema; - /** @internal */ export const GetProjectEnvContentHint2$inboundSchema: z.ZodType< GetProjectEnvContentHint2, z.ZodTypeDef, unknown > = z.object({ - type: GetProjectEnvContentHintProjectsType$inboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHint2$Outbound = { - type: string; + type: "redis-rest-api-url"; storeId: string; }; @@ -4661,7 +3541,7 @@ export const GetProjectEnvContentHint2$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHint2 > = z.object({ - type: GetProjectEnvContentHintProjectsType$outboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); @@ -4682,27 +3562,18 @@ export function getProjectEnvContentHint2FromJSON( ); } -/** @internal */ -export const GetProjectEnvContentHintType$inboundSchema: z.ZodNativeEnum< - typeof GetProjectEnvContentHintType -> = z.nativeEnum(GetProjectEnvContentHintType); -/** @internal */ -export const GetProjectEnvContentHintType$outboundSchema: z.ZodNativeEnum< - typeof GetProjectEnvContentHintType -> = GetProjectEnvContentHintType$inboundSchema; - /** @internal */ export const GetProjectEnvContentHint1$inboundSchema: z.ZodType< GetProjectEnvContentHint1, z.ZodTypeDef, unknown > = z.object({ - type: GetProjectEnvContentHintType$inboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); /** @internal */ export type GetProjectEnvContentHint1$Outbound = { - type: string; + type: "redis-url"; storeId: string; }; @@ -4712,7 +3583,7 @@ export const GetProjectEnvContentHint1$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvContentHint1 > = z.object({ - type: GetProjectEnvContentHintType$outboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); @@ -4739,7 +3610,6 @@ export const GetProjectEnvResponseBodyContentHint$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetProjectEnvContentHint14$inboundSchema), z.lazy(() => GetProjectEnvContentHint1$inboundSchema), z.lazy(() => GetProjectEnvContentHint2$inboundSchema), z.lazy(() => GetProjectEnvContentHint3$inboundSchema), @@ -4753,11 +3623,11 @@ export const GetProjectEnvResponseBodyContentHint$inboundSchema: z.ZodType< z.lazy(() => GetProjectEnvContentHint11$inboundSchema), z.lazy(() => GetProjectEnvContentHint12$inboundSchema), z.lazy(() => GetProjectEnvContentHint13$inboundSchema), + z.lazy(() => GetProjectEnvContentHint14$inboundSchema), z.lazy(() => GetProjectEnvContentHint15$inboundSchema), ]); /** @internal */ export type GetProjectEnvResponseBodyContentHint$Outbound = - | GetProjectEnvContentHint14$Outbound | GetProjectEnvContentHint1$Outbound | GetProjectEnvContentHint2$Outbound | GetProjectEnvContentHint3$Outbound @@ -4771,6 +3641,7 @@ export type GetProjectEnvResponseBodyContentHint$Outbound = | GetProjectEnvContentHint11$Outbound | GetProjectEnvContentHint12$Outbound | GetProjectEnvContentHint13$Outbound + | GetProjectEnvContentHint14$Outbound | GetProjectEnvContentHint15$Outbound; /** @internal */ @@ -4779,7 +3650,6 @@ export const GetProjectEnvResponseBodyContentHint$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectEnvResponseBodyContentHint > = z.union([ - z.lazy(() => GetProjectEnvContentHint14$outboundSchema), z.lazy(() => GetProjectEnvContentHint1$outboundSchema), z.lazy(() => GetProjectEnvContentHint2$outboundSchema), z.lazy(() => GetProjectEnvContentHint3$outboundSchema), @@ -4793,6 +3663,7 @@ export const GetProjectEnvResponseBodyContentHint$outboundSchema: z.ZodType< z.lazy(() => GetProjectEnvContentHint11$outboundSchema), z.lazy(() => GetProjectEnvContentHint12$outboundSchema), z.lazy(() => GetProjectEnvContentHint13$outboundSchema), + z.lazy(() => GetProjectEnvContentHint14$outboundSchema), z.lazy(() => GetProjectEnvContentHint15$outboundSchema), ]); @@ -4910,7 +3781,6 @@ export const GetProjectEnvResponseBody1$inboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => GetProjectEnvContentHint14$inboundSchema), z.lazy(() => GetProjectEnvContentHint1$inboundSchema), z.lazy(() => GetProjectEnvContentHint2$inboundSchema), z.lazy(() => GetProjectEnvContentHint3$inboundSchema), @@ -4924,6 +3794,7 @@ export const GetProjectEnvResponseBody1$inboundSchema: z.ZodType< z.lazy(() => GetProjectEnvContentHint11$inboundSchema), z.lazy(() => GetProjectEnvContentHint12$inboundSchema), z.lazy(() => GetProjectEnvContentHint13$inboundSchema), + z.lazy(() => GetProjectEnvContentHint14$inboundSchema), z.lazy(() => GetProjectEnvContentHint15$inboundSchema), ]), ).optional(), @@ -4950,7 +3821,6 @@ export type GetProjectEnvResponseBody1$Outbound = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | GetProjectEnvContentHint14$Outbound | GetProjectEnvContentHint1$Outbound | GetProjectEnvContentHint2$Outbound | GetProjectEnvContentHint3$Outbound @@ -4964,6 +3834,7 @@ export type GetProjectEnvResponseBody1$Outbound = { | GetProjectEnvContentHint11$Outbound | GetProjectEnvContentHint12$Outbound | GetProjectEnvContentHint13$Outbound + | GetProjectEnvContentHint14$Outbound | GetProjectEnvContentHint15$Outbound | null | undefined; @@ -5000,7 +3871,6 @@ export const GetProjectEnvResponseBody1$outboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => GetProjectEnvContentHint14$outboundSchema), z.lazy(() => GetProjectEnvContentHint1$outboundSchema), z.lazy(() => GetProjectEnvContentHint2$outboundSchema), z.lazy(() => GetProjectEnvContentHint3$outboundSchema), @@ -5014,6 +3884,7 @@ export const GetProjectEnvResponseBody1$outboundSchema: z.ZodType< z.lazy(() => GetProjectEnvContentHint11$outboundSchema), z.lazy(() => GetProjectEnvContentHint12$outboundSchema), z.lazy(() => GetProjectEnvContentHint13$outboundSchema), + z.lazy(() => GetProjectEnvContentHint14$outboundSchema), z.lazy(() => GetProjectEnvContentHint15$outboundSchema), ]), ).optional(), diff --git a/src/models/getprojectsop.ts b/src/models/getprojectsop.ts index 074c3b2e..35e91a23 100644 --- a/src/models/getprojectsop.ts +++ b/src/models/getprojectsop.ts @@ -254,222 +254,85 @@ export const GetProjectsType = { } as const; export type GetProjectsType = ClosedEnum; -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv15Type = - { - FlagsConnectionString: "flags-connection-string", - } as const; -export type GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv15Type = - ClosedEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv15Type - >; - export type GetProjectsContentHint15 = { - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv15Type; + type: "flags-connection-string"; projectId: string; }; -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv14Type = - { - IntegrationStoreSecret: "integration-store-secret", - } as const; -export type GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv14Type = - ClosedEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv14Type - >; - export type GetProjectsContentHint14 = { - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv14Type; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; integrationConfigurationId: string; }; -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv13Type = - { - PostgresUrlNoSsl: "postgres-url-no-ssl", - } as const; -export type GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv13Type = - ClosedEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv13Type - >; - export type GetProjectsContentHint13 = { - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv13Type; + type: "postgres-url-no-ssl"; storeId: string; }; -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv12Type = - { - PostgresDatabase: "postgres-database", - } as const; -export type GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv12Type = - ClosedEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv12Type - >; - export type GetProjectsContentHint12 = { - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv12Type; + type: "postgres-database"; storeId: string; }; -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv11Type = - { - PostgresPassword: "postgres-password", - } as const; -export type GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv11Type = - ClosedEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv11Type - >; - export type GetProjectsContentHint11 = { - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv11Type; + type: "postgres-password"; storeId: string; }; -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv10Type = - { - PostgresHost: "postgres-host", - } as const; -export type GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv10Type = - ClosedEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv10Type - >; - export type GetProjectsContentHint10 = { - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv10Type; + type: "postgres-host"; storeId: string; }; -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv9Type = - { - PostgresUser: "postgres-user", - } as const; -export type GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv9Type = - ClosedEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv9Type - >; - export type GetProjectsContentHint9 = { - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv9Type; + type: "postgres-user"; storeId: string; }; -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnvType = - { - PostgresPrismaUrl: "postgres-prisma-url", - } as const; -export type GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnvType = - ClosedEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnvType - >; - export type GetProjectsContentHint8 = { - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnvType; + type: "postgres-prisma-url"; storeId: string; }; -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsType = - { - PostgresUrlNonPooling: "postgres-url-non-pooling", - } as const; -export type GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsType = - ClosedEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsType - >; - export type GetProjectsContentHint7 = { - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsType; + type: "postgres-url-non-pooling"; storeId: string; }; -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyType = - { - PostgresUrl: "postgres-url", - } as const; -export type GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyType = - ClosedEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyType - >; - export type GetProjectsContentHint6 = { - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyType; + type: "postgres-url"; storeId: string; }; -export const GetProjectsContentHintProjectsResponse200ApplicationJSONType = { - BlobReadWriteToken: "blob-read-write-token", -} as const; -export type GetProjectsContentHintProjectsResponse200ApplicationJSONType = - ClosedEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONType - >; - export type GetProjectsContentHint5 = { - type: GetProjectsContentHintProjectsResponse200ApplicationJSONType; + type: "blob-read-write-token"; storeId: string; }; -export const GetProjectsContentHintProjectsResponse200Type = { - RedisRestApiReadOnlyToken: "redis-rest-api-read-only-token", -} as const; -export type GetProjectsContentHintProjectsResponse200Type = ClosedEnum< - typeof GetProjectsContentHintProjectsResponse200Type ->; - export type GetProjectsContentHint4 = { - type: GetProjectsContentHintProjectsResponse200Type; + type: "redis-rest-api-read-only-token"; storeId: string; }; -export const GetProjectsContentHintProjectsResponseType = { - RedisRestApiToken: "redis-rest-api-token", -} as const; -export type GetProjectsContentHintProjectsResponseType = ClosedEnum< - typeof GetProjectsContentHintProjectsResponseType ->; - export type GetProjectsContentHint3 = { - type: GetProjectsContentHintProjectsResponseType; + type: "redis-rest-api-token"; storeId: string; }; -export const GetProjectsContentHintProjectsType = { - RedisRestApiUrl: "redis-rest-api-url", -} as const; -export type GetProjectsContentHintProjectsType = ClosedEnum< - typeof GetProjectsContentHintProjectsType ->; - export type GetProjectsContentHint2 = { - type: GetProjectsContentHintProjectsType; + type: "redis-rest-api-url"; storeId: string; }; -export const GetProjectsContentHintType = { - RedisUrl: "redis-url", -} as const; -export type GetProjectsContentHintType = ClosedEnum< - typeof GetProjectsContentHintType ->; - export type GetProjectsContentHint1 = { - type: GetProjectsContentHintType; + type: "redis-url"; storeId: string; }; export type GetProjectsContentHint = - | GetProjectsContentHint14 | GetProjectsContentHint1 | GetProjectsContentHint2 | GetProjectsContentHint3 @@ -483,6 +346,7 @@ export type GetProjectsContentHint = | GetProjectsContentHint11 | GetProjectsContentHint12 | GetProjectsContentHint13 + | GetProjectsContentHint14 | GetProjectsContentHint15; export const GetProjectsProjectsResponse200ApplicationJSONResponseBodyType = { @@ -525,7 +389,6 @@ export type GetProjectsEnv = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | GetProjectsContentHint14 | GetProjectsContentHint1 | GetProjectsContentHint2 | GetProjectsContentHint3 @@ -539,6 +402,7 @@ export type GetProjectsEnv = { | GetProjectsContentHint11 | GetProjectsContentHint12 | GetProjectsContentHint13 + | GetProjectsContentHint14 | GetProjectsContentHint15 | null | undefined; @@ -893,13 +757,6 @@ export type GetProjectsLatestDeployments = { withCache?: boolean | undefined; }; -export const GetProjectsLinkProjectsResponse200ApplicationJSONType = { - Bitbucket: "bitbucket", -} as const; -export type GetProjectsLinkProjectsResponse200ApplicationJSONType = ClosedEnum< - typeof GetProjectsLinkProjectsResponse200ApplicationJSONType ->; - export type GetProjectsLinkProjectsResponse200ApplicationJSONDeployHooks = { createdAt?: number | undefined; id: string; @@ -912,7 +769,7 @@ export type GetProjectsLink5 = { name: string; slug: string; owner: string; - type: GetProjectsLinkProjectsResponse200ApplicationJSONType; + type: "bitbucket"; uuid: string; workspaceUuid: string; createdAt?: number | undefined; @@ -925,13 +782,6 @@ export type GetProjectsLink5 = { productionBranch: string; }; -export const GetProjectsLinkProjectsResponse200Type = { - Gitlab: "gitlab", -} as const; -export type GetProjectsLinkProjectsResponse200Type = ClosedEnum< - typeof GetProjectsLinkProjectsResponse200Type ->; - export type GetProjectsLinkProjectsResponse200DeployHooks = { createdAt?: number | undefined; id: string; @@ -950,7 +800,7 @@ export type GetProjectsLink4 = { */ projectOwnerId?: number | undefined; projectUrl: string; - type: GetProjectsLinkProjectsResponse200Type; + type: "gitlab"; createdAt?: number | undefined; deployHooks: Array; gitCredentialId: string; @@ -959,13 +809,6 @@ export type GetProjectsLink4 = { productionBranch: string; }; -export const GetProjectsLinkProjectsResponseType = { - GithubCustomHost: "github-custom-host", -} as const; -export type GetProjectsLinkProjectsResponseType = ClosedEnum< - typeof GetProjectsLinkProjectsResponseType ->; - export type GetProjectsLinkProjectsResponseDeployHooks = { createdAt?: number | undefined; id: string; @@ -982,7 +825,7 @@ export type GetProjectsLink3 = { repoOwnerId?: number | undefined; repo?: string | undefined; repoId?: number | undefined; - type: GetProjectsLinkProjectsResponseType; + type: "github-custom-host"; host: string; createdAt?: number | undefined; deployHooks: Array; @@ -992,13 +835,6 @@ export type GetProjectsLink3 = { productionBranch: string; }; -export const GetProjectsLinkProjectsType = { - GithubLimited: "github-limited", -} as const; -export type GetProjectsLinkProjectsType = ClosedEnum< - typeof GetProjectsLinkProjectsType ->; - export type GetProjectsLinkProjectsDeployHooks = { createdAt?: number | undefined; id: string; @@ -1008,7 +844,7 @@ export type GetProjectsLinkProjectsDeployHooks = { }; export type GetProjectsLink2 = { - type: GetProjectsLinkProjectsType; + type: "github-limited"; repo?: string | undefined; repoId?: number | undefined; createdAt?: number | undefined; @@ -1024,11 +860,6 @@ export type GetProjectsLink2 = { productionBranch: string; }; -export const GetProjectsLinkType = { - Github: "github", -} as const; -export type GetProjectsLinkType = ClosedEnum; - export type GetProjectsLinkDeployHooks = { createdAt?: number | undefined; id: string; @@ -1045,7 +876,7 @@ export type GetProjectsLink1 = { repoOwnerId?: number | undefined; repo?: string | undefined; repoId?: number | undefined; - type: GetProjectsLinkType; + type: "github"; createdAt?: number | undefined; deployHooks: Array; gitCredentialId: string; @@ -1055,11 +886,11 @@ export type GetProjectsLink1 = { }; export type GetProjectsLink = - | GetProjectsLink4 - | GetProjectsLink5 - | GetProjectsLink3 | GetProjectsLink1 - | GetProjectsLink2; + | GetProjectsLink2 + | GetProjectsLink3 + | GetProjectsLink4 + | GetProjectsLink5; export type GetProjectsMicrofrontends3 = { updatedAt: number; @@ -1705,30 +1536,16 @@ export type GetProjectsLastAliasRequest = { type: GetProjectsProjectsResponse200ApplicationJSONType; }; -export const GetProjectsProtectionBypassProjectsScope = { - AutomationBypass: "automation-bypass", -} as const; -export type GetProjectsProtectionBypassProjectsScope = ClosedEnum< - typeof GetProjectsProtectionBypassProjectsScope ->; - export type GetProjectsProtectionBypass2 = { createdAt: number; createdBy: string; - scope: GetProjectsProtectionBypassProjectsScope; + scope: "automation-bypass"; }; -export const GetProjectsProtectionBypassScope = { - IntegrationAutomationBypass: "integration-automation-bypass", -} as const; -export type GetProjectsProtectionBypassScope = ClosedEnum< - typeof GetProjectsProtectionBypassScope ->; - export type GetProjectsProtectionBypass1 = { createdAt: number; createdBy: string; - scope: GetProjectsProtectionBypassScope; + scope: "integration-automation-bypass"; integrationId: string; configurationId: string; }; @@ -1957,36 +1774,15 @@ export type GetProjectsBlock = { isCascading?: boolean | undefined; }; -export const GetProjectsBlockHistoryProjectsResponse200Action = { - RouteUnblocked: "route-unblocked", -} as const; -export type GetProjectsBlockHistoryProjectsResponse200Action = ClosedEnum< - typeof GetProjectsBlockHistoryProjectsResponse200Action ->; - -export const GetProjectsHasProjectsResponse200Type = { - Host: "host", -} as const; -export type GetProjectsHasProjectsResponse200Type = ClosedEnum< - typeof GetProjectsHasProjectsResponse200Type ->; - export type GetProjectsHasProjectsResponse200Value = { eq: string; }; export type GetProjectsHasProjects2 = { - type: GetProjectsHasProjectsResponse200Type; + type: "host"; value: GetProjectsHasProjectsResponse200Value; }; -export const GetProjectsHasProjectsResponseType = { - Header: "header", -} as const; -export type GetProjectsHasProjectsResponseType = ClosedEnum< - typeof GetProjectsHasProjectsResponseType ->; - export const GetProjectsHasProjectsKey = { XVercelIpCountry: "x-vercel-ip-country", } as const; @@ -1999,7 +1795,7 @@ export type GetProjectsHasProjectsResponseValue = { }; export type GetProjectsHasProjects1 = { - type: GetProjectsHasProjectsResponseType; + type: "header"; key: GetProjectsHasProjectsKey; value: GetProjectsHasProjectsResponseValue; }; @@ -2035,7 +1831,7 @@ export type GetProjectsBlockHistoryProjectsRoute = | GetProjectsRouteProjects2; export type GetProjectsBlockHistory4 = { - action: GetProjectsBlockHistoryProjectsResponse200Action; + action: "route-unblocked"; route: GetProjectsRouteProjects1 | GetProjectsRouteProjects2; statusCode?: number | undefined; createdAt: number; @@ -2045,39 +1841,16 @@ export type GetProjectsBlockHistory4 = { isCascading?: boolean | undefined; }; -export const GetProjectsBlockHistoryProjectsResponseAction = { - RouteBlocked: "route-blocked", -} as const; -export type GetProjectsBlockHistoryProjectsResponseAction = ClosedEnum< - typeof GetProjectsBlockHistoryProjectsResponseAction ->; - -export const GetProjectsHasProjectsResponse200ApplicationJSONResponseBodyType = - { - Host: "host", - } as const; -export type GetProjectsHasProjectsResponse200ApplicationJSONResponseBodyType = - ClosedEnum< - typeof GetProjectsHasProjectsResponse200ApplicationJSONResponseBodyType - >; - export type GetProjectsHasProjectsResponse200ApplicationJSONResponseBodyValue = { eq: string; }; export type GetProjectsHasProjectsResponse2 = { - type: GetProjectsHasProjectsResponse200ApplicationJSONResponseBodyType; + type: "host"; value: GetProjectsHasProjectsResponse200ApplicationJSONResponseBodyValue; }; -export const GetProjectsHasProjectsResponse200ApplicationJSONType = { - Header: "header", -} as const; -export type GetProjectsHasProjectsResponse200ApplicationJSONType = ClosedEnum< - typeof GetProjectsHasProjectsResponse200ApplicationJSONType ->; - export const GetProjectsHasProjectsResponseKey = { XVercelIpCountry: "x-vercel-ip-country", } as const; @@ -2090,7 +1863,7 @@ export type GetProjectsHasProjectsResponse200ApplicationJSONValue = { }; export type GetProjectsHasProjectsResponse1 = { - type: GetProjectsHasProjectsResponse200ApplicationJSONType; + type: "header"; key: GetProjectsHasProjectsResponseKey; value: GetProjectsHasProjectsResponse200ApplicationJSONValue; }; @@ -2124,7 +1897,7 @@ export type GetProjectsBlockHistoryRoute = | GetProjectsRoute2; export type GetProjectsBlockHistory3 = { - action: GetProjectsBlockHistoryProjectsResponseAction; + action: "route-blocked"; route: GetProjectsRoute1 | GetProjectsRoute2; reason: string; createdAt: number; @@ -2134,15 +1907,8 @@ export type GetProjectsBlockHistory3 = { isCascading?: boolean | undefined; }; -export const GetProjectsBlockHistoryProjectsAction = { - Unblocked: "unblocked", -} as const; -export type GetProjectsBlockHistoryProjectsAction = ClosedEnum< - typeof GetProjectsBlockHistoryProjectsAction ->; - export type GetProjectsBlockHistory2 = { - action: GetProjectsBlockHistoryProjectsAction; + action: "unblocked"; createdAt: number; caseId?: string | undefined; actor?: string | undefined; @@ -2150,15 +1916,8 @@ export type GetProjectsBlockHistory2 = { isCascading?: boolean | undefined; }; -export const GetProjectsBlockHistoryAction = { - Blocked: "blocked", -} as const; -export type GetProjectsBlockHistoryAction = ClosedEnum< - typeof GetProjectsBlockHistoryAction ->; - export type GetProjectsBlockHistory1 = { - action: GetProjectsBlockHistoryAction; + action: "blocked"; reason: string; statusCode: number; createdAt: number; @@ -2170,9 +1929,9 @@ export type GetProjectsBlockHistory1 = { export type GetProjectsBlockHistory = | GetProjectsBlockHistory1 + | GetProjectsBlockHistory2 | GetProjectsBlockHistory3 - | GetProjectsBlockHistory4 - | GetProjectsBlockHistory2; + | GetProjectsBlockHistory4; export type GetProjectsAbuse = { scanner?: string | undefined; @@ -2182,35 +1941,23 @@ export type GetProjectsAbuse = { blockHistory?: | Array< | GetProjectsBlockHistory1 + | GetProjectsBlockHistory2 | GetProjectsBlockHistory3 | GetProjectsBlockHistory4 - | GetProjectsBlockHistory2 > | undefined; interstitial?: boolean | undefined; }; -export const GetProjectsHasProjectsType = { - Host: "host", -} as const; -export type GetProjectsHasProjectsType = ClosedEnum< - typeof GetProjectsHasProjectsType ->; - export type GetProjectsHasProjectsValue = { eq: string; }; export type GetProjectsHas2 = { - type: GetProjectsHasProjectsType; + type: "host"; value: GetProjectsHasProjectsValue; }; -export const GetProjectsHasType = { - Header: "header", -} as const; -export type GetProjectsHasType = ClosedEnum; - export const GetProjectsHasKey = { XVercelIpCountry: "x-vercel-ip-country", } as const; @@ -2221,7 +1968,7 @@ export type GetProjectsHasValue = { }; export type GetProjectsHas1 = { - type: GetProjectsHasType; + type: "header"; key: GetProjectsHasKey; value: GetProjectsHasValue; }; @@ -2315,11 +2062,11 @@ export type GetProjectsProjects = { ipBuckets?: Array | undefined; latestDeployments?: Array | undefined; link?: - | GetProjectsLink4 - | GetProjectsLink5 - | GetProjectsLink3 | GetProjectsLink1 | GetProjectsLink2 + | GetProjectsLink3 + | GetProjectsLink4 + | GetProjectsLink5 | undefined; microfrontends?: | GetProjectsMicrofrontends1 @@ -3040,33 +2787,18 @@ export const GetProjectsType$outboundSchema: z.ZodNativeEnum< typeof GetProjectsType > = GetProjectsType$inboundSchema; -/** @internal */ -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv15Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv15Type - > = z.nativeEnum( - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv15Type, - ); -/** @internal */ -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv15Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv15Type - > = - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv15Type$inboundSchema; - /** @internal */ export const GetProjectsContentHint15$inboundSchema: z.ZodType< GetProjectsContentHint15, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv15Type$inboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); /** @internal */ export type GetProjectsContentHint15$Outbound = { - type: string; + type: "flags-connection-string"; projectId: string; }; @@ -3076,8 +2808,7 @@ export const GetProjectsContentHint15$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsContentHint15 > = z.object({ - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv15Type$outboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); @@ -3098,28 +2829,13 @@ export function getProjectsContentHint15FromJSON( ); } -/** @internal */ -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv14Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv14Type - > = z.nativeEnum( - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv14Type, - ); -/** @internal */ -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv14Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv14Type - > = - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv14Type$inboundSchema; - /** @internal */ export const GetProjectsContentHint14$inboundSchema: z.ZodType< GetProjectsContentHint14, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv14Type$inboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -3127,7 +2843,7 @@ export const GetProjectsContentHint14$inboundSchema: z.ZodType< }); /** @internal */ export type GetProjectsContentHint14$Outbound = { - type: string; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; @@ -3140,8 +2856,7 @@ export const GetProjectsContentHint14$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsContentHint14 > = z.object({ - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv14Type$outboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -3165,33 +2880,18 @@ export function getProjectsContentHint14FromJSON( ); } -/** @internal */ -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv13Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv13Type - > = z.nativeEnum( - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv13Type, - ); -/** @internal */ -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv13Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv13Type - > = - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv13Type$inboundSchema; - /** @internal */ export const GetProjectsContentHint13$inboundSchema: z.ZodType< GetProjectsContentHint13, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv13Type$inboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); /** @internal */ export type GetProjectsContentHint13$Outbound = { - type: string; + type: "postgres-url-no-ssl"; storeId: string; }; @@ -3201,8 +2901,7 @@ export const GetProjectsContentHint13$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsContentHint13 > = z.object({ - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv13Type$outboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); @@ -3223,33 +2922,18 @@ export function getProjectsContentHint13FromJSON( ); } -/** @internal */ -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv12Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv12Type - > = z.nativeEnum( - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv12Type, - ); -/** @internal */ -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv12Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv12Type - > = - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv12Type$inboundSchema; - /** @internal */ export const GetProjectsContentHint12$inboundSchema: z.ZodType< GetProjectsContentHint12, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv12Type$inboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); /** @internal */ export type GetProjectsContentHint12$Outbound = { - type: string; + type: "postgres-database"; storeId: string; }; @@ -3259,8 +2943,7 @@ export const GetProjectsContentHint12$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsContentHint12 > = z.object({ - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv12Type$outboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); @@ -3281,33 +2964,18 @@ export function getProjectsContentHint12FromJSON( ); } -/** @internal */ -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv11Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv11Type - > = z.nativeEnum( - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv11Type, - ); -/** @internal */ -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv11Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv11Type - > = - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv11Type$inboundSchema; - /** @internal */ export const GetProjectsContentHint11$inboundSchema: z.ZodType< GetProjectsContentHint11, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv11Type$inboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); /** @internal */ export type GetProjectsContentHint11$Outbound = { - type: string; + type: "postgres-password"; storeId: string; }; @@ -3317,8 +2985,7 @@ export const GetProjectsContentHint11$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsContentHint11 > = z.object({ - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv11Type$outboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); @@ -3339,33 +3006,18 @@ export function getProjectsContentHint11FromJSON( ); } -/** @internal */ -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv10Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv10Type - > = z.nativeEnum( - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv10Type, - ); -/** @internal */ -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv10Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv10Type - > = - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv10Type$inboundSchema; - /** @internal */ export const GetProjectsContentHint10$inboundSchema: z.ZodType< GetProjectsContentHint10, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv10Type$inboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); /** @internal */ export type GetProjectsContentHint10$Outbound = { - type: string; + type: "postgres-host"; storeId: string; }; @@ -3375,8 +3027,7 @@ export const GetProjectsContentHint10$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsContentHint10 > = z.object({ - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv10Type$outboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); @@ -3397,33 +3048,18 @@ export function getProjectsContentHint10FromJSON( ); } -/** @internal */ -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv9Type$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv9Type - > = z.nativeEnum( - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv9Type, - ); -/** @internal */ -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv9Type$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv9Type - > = - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv9Type$inboundSchema; - /** @internal */ export const GetProjectsContentHint9$inboundSchema: z.ZodType< GetProjectsContentHint9, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv9Type$inboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); /** @internal */ export type GetProjectsContentHint9$Outbound = { - type: string; + type: "postgres-user"; storeId: string; }; @@ -3433,8 +3069,7 @@ export const GetProjectsContentHint9$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsContentHint9 > = z.object({ - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnv9Type$outboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); @@ -3455,33 +3090,18 @@ export function getProjectsContentHint9FromJSON( ); } -/** @internal */ -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnvType$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnvType - > = z.nativeEnum( - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnvType, - ); -/** @internal */ -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnvType$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnvType - > = - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnvType$inboundSchema; - /** @internal */ export const GetProjectsContentHint8$inboundSchema: z.ZodType< GetProjectsContentHint8, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnvType$inboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); /** @internal */ export type GetProjectsContentHint8$Outbound = { - type: string; + type: "postgres-prisma-url"; storeId: string; }; @@ -3491,8 +3111,7 @@ export const GetProjectsContentHint8$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsContentHint8 > = z.object({ - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsEnvType$outboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); @@ -3513,33 +3132,18 @@ export function getProjectsContentHint8FromJSON( ); } -/** @internal */ -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsType$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsType - > = z.nativeEnum( - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsType, - ); -/** @internal */ -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsType$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsType - > = - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsType$inboundSchema; - /** @internal */ export const GetProjectsContentHint7$inboundSchema: z.ZodType< GetProjectsContentHint7, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsType$inboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); /** @internal */ export type GetProjectsContentHint7$Outbound = { - type: string; + type: "postgres-url-non-pooling"; storeId: string; }; @@ -3549,8 +3153,7 @@ export const GetProjectsContentHint7$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsContentHint7 > = z.object({ - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyProjectsType$outboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); @@ -3571,33 +3174,18 @@ export function getProjectsContentHint7FromJSON( ); } -/** @internal */ -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyType - > = z.nativeEnum( - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyType, - ); -/** @internal */ -export const GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyType - > = - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema; - /** @internal */ export const GetProjectsContentHint6$inboundSchema: z.ZodType< GetProjectsContentHint6, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); /** @internal */ export type GetProjectsContentHint6$Outbound = { - type: string; + type: "postgres-url"; storeId: string; }; @@ -3607,8 +3195,7 @@ export const GetProjectsContentHint6$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsContentHint6 > = z.object({ - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); @@ -3629,33 +3216,18 @@ export function getProjectsContentHint6FromJSON( ); } -/** @internal */ -export const GetProjectsContentHintProjectsResponse200ApplicationJSONType$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONType - > = z.nativeEnum( - GetProjectsContentHintProjectsResponse200ApplicationJSONType, - ); -/** @internal */ -export const GetProjectsContentHintProjectsResponse200ApplicationJSONType$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsResponse200ApplicationJSONType - > = - GetProjectsContentHintProjectsResponse200ApplicationJSONType$inboundSchema; - /** @internal */ export const GetProjectsContentHint5$inboundSchema: z.ZodType< GetProjectsContentHint5, z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONType$inboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); /** @internal */ export type GetProjectsContentHint5$Outbound = { - type: string; + type: "blob-read-write-token"; storeId: string; }; @@ -3665,8 +3237,7 @@ export const GetProjectsContentHint5$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsContentHint5 > = z.object({ - type: - GetProjectsContentHintProjectsResponse200ApplicationJSONType$outboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); @@ -3687,27 +3258,18 @@ export function getProjectsContentHint5FromJSON( ); } -/** @internal */ -export const GetProjectsContentHintProjectsResponse200Type$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetProjectsContentHintProjectsResponse200Type); -/** @internal */ -export const GetProjectsContentHintProjectsResponse200Type$outboundSchema: - z.ZodNativeEnum = - GetProjectsContentHintProjectsResponse200Type$inboundSchema; - /** @internal */ export const GetProjectsContentHint4$inboundSchema: z.ZodType< GetProjectsContentHint4, z.ZodTypeDef, unknown > = z.object({ - type: GetProjectsContentHintProjectsResponse200Type$inboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); /** @internal */ export type GetProjectsContentHint4$Outbound = { - type: string; + type: "redis-rest-api-read-only-token"; storeId: string; }; @@ -3717,7 +3279,7 @@ export const GetProjectsContentHint4$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsContentHint4 > = z.object({ - type: GetProjectsContentHintProjectsResponse200Type$outboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); @@ -3738,27 +3300,18 @@ export function getProjectsContentHint4FromJSON( ); } -/** @internal */ -export const GetProjectsContentHintProjectsResponseType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetProjectsContentHintProjectsResponseType); -/** @internal */ -export const GetProjectsContentHintProjectsResponseType$outboundSchema: - z.ZodNativeEnum = - GetProjectsContentHintProjectsResponseType$inboundSchema; - /** @internal */ export const GetProjectsContentHint3$inboundSchema: z.ZodType< GetProjectsContentHint3, z.ZodTypeDef, unknown > = z.object({ - type: GetProjectsContentHintProjectsResponseType$inboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); /** @internal */ export type GetProjectsContentHint3$Outbound = { - type: string; + type: "redis-rest-api-token"; storeId: string; }; @@ -3768,7 +3321,7 @@ export const GetProjectsContentHint3$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsContentHint3 > = z.object({ - type: GetProjectsContentHintProjectsResponseType$outboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); @@ -3789,27 +3342,18 @@ export function getProjectsContentHint3FromJSON( ); } -/** @internal */ -export const GetProjectsContentHintProjectsType$inboundSchema: z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsType -> = z.nativeEnum(GetProjectsContentHintProjectsType); -/** @internal */ -export const GetProjectsContentHintProjectsType$outboundSchema: z.ZodNativeEnum< - typeof GetProjectsContentHintProjectsType -> = GetProjectsContentHintProjectsType$inboundSchema; - /** @internal */ export const GetProjectsContentHint2$inboundSchema: z.ZodType< GetProjectsContentHint2, z.ZodTypeDef, unknown > = z.object({ - type: GetProjectsContentHintProjectsType$inboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); /** @internal */ export type GetProjectsContentHint2$Outbound = { - type: string; + type: "redis-rest-api-url"; storeId: string; }; @@ -3819,7 +3363,7 @@ export const GetProjectsContentHint2$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsContentHint2 > = z.object({ - type: GetProjectsContentHintProjectsType$outboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); @@ -3840,27 +3384,18 @@ export function getProjectsContentHint2FromJSON( ); } -/** @internal */ -export const GetProjectsContentHintType$inboundSchema: z.ZodNativeEnum< - typeof GetProjectsContentHintType -> = z.nativeEnum(GetProjectsContentHintType); -/** @internal */ -export const GetProjectsContentHintType$outboundSchema: z.ZodNativeEnum< - typeof GetProjectsContentHintType -> = GetProjectsContentHintType$inboundSchema; - /** @internal */ export const GetProjectsContentHint1$inboundSchema: z.ZodType< GetProjectsContentHint1, z.ZodTypeDef, unknown > = z.object({ - type: GetProjectsContentHintType$inboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); /** @internal */ export type GetProjectsContentHint1$Outbound = { - type: string; + type: "redis-url"; storeId: string; }; @@ -3870,7 +3405,7 @@ export const GetProjectsContentHint1$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsContentHint1 > = z.object({ - type: GetProjectsContentHintType$outboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); @@ -3897,7 +3432,6 @@ export const GetProjectsContentHint$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetProjectsContentHint14$inboundSchema), z.lazy(() => GetProjectsContentHint1$inboundSchema), z.lazy(() => GetProjectsContentHint2$inboundSchema), z.lazy(() => GetProjectsContentHint3$inboundSchema), @@ -3911,11 +3445,11 @@ export const GetProjectsContentHint$inboundSchema: z.ZodType< z.lazy(() => GetProjectsContentHint11$inboundSchema), z.lazy(() => GetProjectsContentHint12$inboundSchema), z.lazy(() => GetProjectsContentHint13$inboundSchema), + z.lazy(() => GetProjectsContentHint14$inboundSchema), z.lazy(() => GetProjectsContentHint15$inboundSchema), ]); /** @internal */ export type GetProjectsContentHint$Outbound = - | GetProjectsContentHint14$Outbound | GetProjectsContentHint1$Outbound | GetProjectsContentHint2$Outbound | GetProjectsContentHint3$Outbound @@ -3929,6 +3463,7 @@ export type GetProjectsContentHint$Outbound = | GetProjectsContentHint11$Outbound | GetProjectsContentHint12$Outbound | GetProjectsContentHint13$Outbound + | GetProjectsContentHint14$Outbound | GetProjectsContentHint15$Outbound; /** @internal */ @@ -3937,7 +3472,6 @@ export const GetProjectsContentHint$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsContentHint > = z.union([ - z.lazy(() => GetProjectsContentHint14$outboundSchema), z.lazy(() => GetProjectsContentHint1$outboundSchema), z.lazy(() => GetProjectsContentHint2$outboundSchema), z.lazy(() => GetProjectsContentHint3$outboundSchema), @@ -3951,6 +3485,7 @@ export const GetProjectsContentHint$outboundSchema: z.ZodType< z.lazy(() => GetProjectsContentHint11$outboundSchema), z.lazy(() => GetProjectsContentHint12$outboundSchema), z.lazy(() => GetProjectsContentHint13$outboundSchema), + z.lazy(() => GetProjectsContentHint14$outboundSchema), z.lazy(() => GetProjectsContentHint15$outboundSchema), ]); @@ -4058,7 +3593,6 @@ export const GetProjectsEnv$inboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => GetProjectsContentHint14$inboundSchema), z.lazy(() => GetProjectsContentHint1$inboundSchema), z.lazy(() => GetProjectsContentHint2$inboundSchema), z.lazy(() => GetProjectsContentHint3$inboundSchema), @@ -4072,6 +3606,7 @@ export const GetProjectsEnv$inboundSchema: z.ZodType< z.lazy(() => GetProjectsContentHint11$inboundSchema), z.lazy(() => GetProjectsContentHint12$inboundSchema), z.lazy(() => GetProjectsContentHint13$inboundSchema), + z.lazy(() => GetProjectsContentHint14$inboundSchema), z.lazy(() => GetProjectsContentHint15$inboundSchema), ]), ).optional(), @@ -4100,7 +3635,6 @@ export type GetProjectsEnv$Outbound = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | GetProjectsContentHint14$Outbound | GetProjectsContentHint1$Outbound | GetProjectsContentHint2$Outbound | GetProjectsContentHint3$Outbound @@ -4114,6 +3648,7 @@ export type GetProjectsEnv$Outbound = { | GetProjectsContentHint11$Outbound | GetProjectsContentHint12$Outbound | GetProjectsContentHint13$Outbound + | GetProjectsContentHint14$Outbound | GetProjectsContentHint15$Outbound | null | undefined; @@ -4152,7 +3687,6 @@ export const GetProjectsEnv$outboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => GetProjectsContentHint14$outboundSchema), z.lazy(() => GetProjectsContentHint1$outboundSchema), z.lazy(() => GetProjectsContentHint2$outboundSchema), z.lazy(() => GetProjectsContentHint3$outboundSchema), @@ -4166,6 +3700,7 @@ export const GetProjectsEnv$outboundSchema: z.ZodType< z.lazy(() => GetProjectsContentHint11$outboundSchema), z.lazy(() => GetProjectsContentHint12$outboundSchema), z.lazy(() => GetProjectsContentHint13$outboundSchema), + z.lazy(() => GetProjectsContentHint14$outboundSchema), z.lazy(() => GetProjectsContentHint15$outboundSchema), ]), ).optional(), @@ -5006,17 +4541,6 @@ export function getProjectsLatestDeploymentsFromJSON( ); } -/** @internal */ -export const GetProjectsLinkProjectsResponse200ApplicationJSONType$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectsLinkProjectsResponse200ApplicationJSONType - > = z.nativeEnum(GetProjectsLinkProjectsResponse200ApplicationJSONType); -/** @internal */ -export const GetProjectsLinkProjectsResponse200ApplicationJSONType$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectsLinkProjectsResponse200ApplicationJSONType - > = GetProjectsLinkProjectsResponse200ApplicationJSONType$inboundSchema; - /** @internal */ export const GetProjectsLinkProjectsResponse200ApplicationJSONDeployHooks$inboundSchema: z.ZodType< @@ -5087,7 +4611,7 @@ export const GetProjectsLink5$inboundSchema: z.ZodType< name: z.string(), slug: z.string(), owner: z.string(), - type: GetProjectsLinkProjectsResponse200ApplicationJSONType$inboundSchema, + type: z.literal("bitbucket"), uuid: z.string(), workspaceUuid: z.string(), createdAt: z.number().optional(), @@ -5106,7 +4630,7 @@ export type GetProjectsLink5$Outbound = { name: string; slug: string; owner: string; - type: string; + type: "bitbucket"; uuid: string; workspaceUuid: string; createdAt?: number | undefined; @@ -5128,7 +4652,7 @@ export const GetProjectsLink5$outboundSchema: z.ZodType< name: z.string(), slug: z.string(), owner: z.string(), - type: GetProjectsLinkProjectsResponse200ApplicationJSONType$outboundSchema, + type: z.literal("bitbucket"), uuid: z.string(), workspaceUuid: z.string(), createdAt: z.number().optional(), @@ -5160,16 +4684,6 @@ export function getProjectsLink5FromJSON( ); } -/** @internal */ -export const GetProjectsLinkProjectsResponse200Type$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - GetProjectsLinkProjectsResponse200Type, - ); -/** @internal */ -export const GetProjectsLinkProjectsResponse200Type$outboundSchema: - z.ZodNativeEnum = - GetProjectsLinkProjectsResponse200Type$inboundSchema; - /** @internal */ export const GetProjectsLinkProjectsResponse200DeployHooks$inboundSchema: z.ZodType< @@ -5244,7 +4758,7 @@ export const GetProjectsLink4$inboundSchema: z.ZodType< projectNamespace: z.string(), projectOwnerId: z.number().optional(), projectUrl: z.string(), - type: GetProjectsLinkProjectsResponse200Type$inboundSchema, + type: z.literal("gitlab"), createdAt: z.number().optional(), deployHooks: z.array( z.lazy(() => GetProjectsLinkProjectsResponse200DeployHooks$inboundSchema), @@ -5262,7 +4776,7 @@ export type GetProjectsLink4$Outbound = { projectNamespace: string; projectOwnerId?: number | undefined; projectUrl: string; - type: string; + type: "gitlab"; createdAt?: number | undefined; deployHooks: Array; gitCredentialId: string; @@ -5283,7 +4797,7 @@ export const GetProjectsLink4$outboundSchema: z.ZodType< projectNamespace: z.string(), projectOwnerId: z.number().optional(), projectUrl: z.string(), - type: GetProjectsLinkProjectsResponse200Type$outboundSchema, + type: z.literal("gitlab"), createdAt: z.number().optional(), deployHooks: z.array( z.lazy(() => GetProjectsLinkProjectsResponse200DeployHooks$outboundSchema), @@ -5311,15 +4825,6 @@ export function getProjectsLink4FromJSON( ); } -/** @internal */ -export const GetProjectsLinkProjectsResponseType$inboundSchema: z.ZodNativeEnum< - typeof GetProjectsLinkProjectsResponseType -> = z.nativeEnum(GetProjectsLinkProjectsResponseType); -/** @internal */ -export const GetProjectsLinkProjectsResponseType$outboundSchema: - z.ZodNativeEnum = - GetProjectsLinkProjectsResponseType$inboundSchema; - /** @internal */ export const GetProjectsLinkProjectsResponseDeployHooks$inboundSchema: z.ZodType = @@ -5389,7 +4894,7 @@ export const GetProjectsLink3$inboundSchema: z.ZodType< repoOwnerId: z.number().optional(), repo: z.string().optional(), repoId: z.number().optional(), - type: GetProjectsLinkProjectsResponseType$inboundSchema, + type: z.literal("github-custom-host"), host: z.string(), createdAt: z.number().optional(), deployHooks: z.array( @@ -5406,7 +4911,7 @@ export type GetProjectsLink3$Outbound = { repoOwnerId?: number | undefined; repo?: string | undefined; repoId?: number | undefined; - type: string; + type: "github-custom-host"; host: string; createdAt?: number | undefined; deployHooks: Array; @@ -5426,7 +4931,7 @@ export const GetProjectsLink3$outboundSchema: z.ZodType< repoOwnerId: z.number().optional(), repo: z.string().optional(), repoId: z.number().optional(), - type: GetProjectsLinkProjectsResponseType$outboundSchema, + type: z.literal("github-custom-host"), host: z.string(), createdAt: z.number().optional(), deployHooks: z.array( @@ -5455,15 +4960,6 @@ export function getProjectsLink3FromJSON( ); } -/** @internal */ -export const GetProjectsLinkProjectsType$inboundSchema: z.ZodNativeEnum< - typeof GetProjectsLinkProjectsType -> = z.nativeEnum(GetProjectsLinkProjectsType); -/** @internal */ -export const GetProjectsLinkProjectsType$outboundSchema: z.ZodNativeEnum< - typeof GetProjectsLinkProjectsType -> = GetProjectsLinkProjectsType$inboundSchema; - /** @internal */ export const GetProjectsLinkProjectsDeployHooks$inboundSchema: z.ZodType< GetProjectsLinkProjectsDeployHooks, @@ -5524,7 +5020,7 @@ export const GetProjectsLink2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetProjectsLinkProjectsType$inboundSchema, + type: z.literal("github-limited"), repo: z.string().optional(), repoId: z.number().optional(), createdAt: z.number().optional(), @@ -5540,7 +5036,7 @@ export const GetProjectsLink2$inboundSchema: z.ZodType< }); /** @internal */ export type GetProjectsLink2$Outbound = { - type: string; + type: "github-limited"; repo?: string | undefined; repoId?: number | undefined; createdAt?: number | undefined; @@ -5559,7 +5055,7 @@ export const GetProjectsLink2$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsLink2 > = z.object({ - type: GetProjectsLinkProjectsType$outboundSchema, + type: z.literal("github-limited"), repo: z.string().optional(), repoId: z.number().optional(), createdAt: z.number().optional(), @@ -5591,15 +5087,6 @@ export function getProjectsLink2FromJSON( ); } -/** @internal */ -export const GetProjectsLinkType$inboundSchema: z.ZodNativeEnum< - typeof GetProjectsLinkType -> = z.nativeEnum(GetProjectsLinkType); -/** @internal */ -export const GetProjectsLinkType$outboundSchema: z.ZodNativeEnum< - typeof GetProjectsLinkType -> = GetProjectsLinkType$inboundSchema; - /** @internal */ export const GetProjectsLinkDeployHooks$inboundSchema: z.ZodType< GetProjectsLinkDeployHooks, @@ -5661,7 +5148,7 @@ export const GetProjectsLink1$inboundSchema: z.ZodType< repoOwnerId: z.number().optional(), repo: z.string().optional(), repoId: z.number().optional(), - type: GetProjectsLinkType$inboundSchema, + type: z.literal("github"), createdAt: z.number().optional(), deployHooks: z.array(z.lazy(() => GetProjectsLinkDeployHooks$inboundSchema)), gitCredentialId: z.string(), @@ -5675,7 +5162,7 @@ export type GetProjectsLink1$Outbound = { repoOwnerId?: number | undefined; repo?: string | undefined; repoId?: number | undefined; - type: string; + type: "github"; createdAt?: number | undefined; deployHooks: Array; gitCredentialId: string; @@ -5694,7 +5181,7 @@ export const GetProjectsLink1$outboundSchema: z.ZodType< repoOwnerId: z.number().optional(), repo: z.string().optional(), repoId: z.number().optional(), - type: GetProjectsLinkType$outboundSchema, + type: z.literal("github"), createdAt: z.number().optional(), deployHooks: z.array(z.lazy(() => GetProjectsLinkDeployHooks$outboundSchema)), gitCredentialId: z.string(), @@ -5726,19 +5213,19 @@ export const GetProjectsLink$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => GetProjectsLink4$inboundSchema), - z.lazy(() => GetProjectsLink5$inboundSchema), - z.lazy(() => GetProjectsLink3$inboundSchema), z.lazy(() => GetProjectsLink1$inboundSchema), z.lazy(() => GetProjectsLink2$inboundSchema), + z.lazy(() => GetProjectsLink3$inboundSchema), + z.lazy(() => GetProjectsLink4$inboundSchema), + z.lazy(() => GetProjectsLink5$inboundSchema), ]); /** @internal */ export type GetProjectsLink$Outbound = - | GetProjectsLink4$Outbound - | GetProjectsLink5$Outbound - | GetProjectsLink3$Outbound | GetProjectsLink1$Outbound - | GetProjectsLink2$Outbound; + | GetProjectsLink2$Outbound + | GetProjectsLink3$Outbound + | GetProjectsLink4$Outbound + | GetProjectsLink5$Outbound; /** @internal */ export const GetProjectsLink$outboundSchema: z.ZodType< @@ -5746,11 +5233,11 @@ export const GetProjectsLink$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsLink > = z.union([ - z.lazy(() => GetProjectsLink4$outboundSchema), - z.lazy(() => GetProjectsLink5$outboundSchema), - z.lazy(() => GetProjectsLink3$outboundSchema), z.lazy(() => GetProjectsLink1$outboundSchema), z.lazy(() => GetProjectsLink2$outboundSchema), + z.lazy(() => GetProjectsLink3$outboundSchema), + z.lazy(() => GetProjectsLink4$outboundSchema), + z.lazy(() => GetProjectsLink5$outboundSchema), ]); export function getProjectsLinkToJSON( @@ -7862,15 +7349,6 @@ export function getProjectsLastAliasRequestFromJSON( ); } -/** @internal */ -export const GetProjectsProtectionBypassProjectsScope$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetProjectsProtectionBypassProjectsScope); -/** @internal */ -export const GetProjectsProtectionBypassProjectsScope$outboundSchema: - z.ZodNativeEnum = - GetProjectsProtectionBypassProjectsScope$inboundSchema; - /** @internal */ export const GetProjectsProtectionBypass2$inboundSchema: z.ZodType< GetProjectsProtectionBypass2, @@ -7879,13 +7357,13 @@ export const GetProjectsProtectionBypass2$inboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: GetProjectsProtectionBypassProjectsScope$inboundSchema, + scope: z.literal("automation-bypass"), }); /** @internal */ export type GetProjectsProtectionBypass2$Outbound = { createdAt: number; createdBy: string; - scope: string; + scope: "automation-bypass"; }; /** @internal */ @@ -7896,7 +7374,7 @@ export const GetProjectsProtectionBypass2$outboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: GetProjectsProtectionBypassProjectsScope$outboundSchema, + scope: z.literal("automation-bypass"), }); export function getProjectsProtectionBypass2ToJSON( @@ -7918,15 +7396,6 @@ export function getProjectsProtectionBypass2FromJSON( ); } -/** @internal */ -export const GetProjectsProtectionBypassScope$inboundSchema: z.ZodNativeEnum< - typeof GetProjectsProtectionBypassScope -> = z.nativeEnum(GetProjectsProtectionBypassScope); -/** @internal */ -export const GetProjectsProtectionBypassScope$outboundSchema: z.ZodNativeEnum< - typeof GetProjectsProtectionBypassScope -> = GetProjectsProtectionBypassScope$inboundSchema; - /** @internal */ export const GetProjectsProtectionBypass1$inboundSchema: z.ZodType< GetProjectsProtectionBypass1, @@ -7935,7 +7404,7 @@ export const GetProjectsProtectionBypass1$inboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: GetProjectsProtectionBypassScope$inboundSchema, + scope: z.literal("integration-automation-bypass"), integrationId: z.string(), configurationId: z.string(), }); @@ -7943,7 +7412,7 @@ export const GetProjectsProtectionBypass1$inboundSchema: z.ZodType< export type GetProjectsProtectionBypass1$Outbound = { createdAt: number; createdBy: string; - scope: string; + scope: "integration-automation-bypass"; integrationId: string; configurationId: string; }; @@ -7956,7 +7425,7 @@ export const GetProjectsProtectionBypass1$outboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: GetProjectsProtectionBypassScope$outboundSchema, + scope: z.literal("integration-automation-bypass"), integrationId: z.string(), configurationId: z.string(), }); @@ -8876,25 +8345,6 @@ export function getProjectsBlockFromJSON( ); } -/** @internal */ -export const GetProjectsBlockHistoryProjectsResponse200Action$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetProjectsBlockHistoryProjectsResponse200Action); -/** @internal */ -export const GetProjectsBlockHistoryProjectsResponse200Action$outboundSchema: - z.ZodNativeEnum = - GetProjectsBlockHistoryProjectsResponse200Action$inboundSchema; - -/** @internal */ -export const GetProjectsHasProjectsResponse200Type$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - GetProjectsHasProjectsResponse200Type, - ); -/** @internal */ -export const GetProjectsHasProjectsResponse200Type$outboundSchema: - z.ZodNativeEnum = - GetProjectsHasProjectsResponse200Type$inboundSchema; - /** @internal */ export const GetProjectsHasProjectsResponse200Value$inboundSchema: z.ZodType< GetProjectsHasProjectsResponse200Value, @@ -8944,12 +8394,12 @@ export const GetProjectsHasProjects2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetProjectsHasProjectsResponse200Type$inboundSchema, + type: z.literal("host"), value: z.lazy(() => GetProjectsHasProjectsResponse200Value$inboundSchema), }); /** @internal */ export type GetProjectsHasProjects2$Outbound = { - type: string; + type: "host"; value: GetProjectsHasProjectsResponse200Value$Outbound; }; @@ -8959,7 +8409,7 @@ export const GetProjectsHasProjects2$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsHasProjects2 > = z.object({ - type: GetProjectsHasProjectsResponse200Type$outboundSchema, + type: z.literal("host"), value: z.lazy(() => GetProjectsHasProjectsResponse200Value$outboundSchema), }); @@ -8980,15 +8430,6 @@ export function getProjectsHasProjects2FromJSON( ); } -/** @internal */ -export const GetProjectsHasProjectsResponseType$inboundSchema: z.ZodNativeEnum< - typeof GetProjectsHasProjectsResponseType -> = z.nativeEnum(GetProjectsHasProjectsResponseType); -/** @internal */ -export const GetProjectsHasProjectsResponseType$outboundSchema: z.ZodNativeEnum< - typeof GetProjectsHasProjectsResponseType -> = GetProjectsHasProjectsResponseType$inboundSchema; - /** @internal */ export const GetProjectsHasProjectsKey$inboundSchema: z.ZodNativeEnum< typeof GetProjectsHasProjectsKey @@ -9046,13 +8487,13 @@ export const GetProjectsHasProjects1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetProjectsHasProjectsResponseType$inboundSchema, + type: z.literal("header"), key: GetProjectsHasProjectsKey$inboundSchema, value: z.lazy(() => GetProjectsHasProjectsResponseValue$inboundSchema), }); /** @internal */ export type GetProjectsHasProjects1$Outbound = { - type: string; + type: "header"; key: string; value: GetProjectsHasProjectsResponseValue$Outbound; }; @@ -9063,7 +8504,7 @@ export const GetProjectsHasProjects1$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsHasProjects1 > = z.object({ - type: GetProjectsHasProjectsResponseType$outboundSchema, + type: z.literal("header"), key: GetProjectsHasProjectsKey$outboundSchema, value: z.lazy(() => GetProjectsHasProjectsResponseValue$outboundSchema), }); @@ -9327,7 +8768,7 @@ export const GetProjectsBlockHistory4$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - action: GetProjectsBlockHistoryProjectsResponse200Action$inboundSchema, + action: z.literal("route-unblocked"), route: z.union([ z.lazy(() => GetProjectsRouteProjects1$inboundSchema), z.lazy(() => GetProjectsRouteProjects2$inboundSchema), @@ -9341,7 +8782,7 @@ export const GetProjectsBlockHistory4$inboundSchema: z.ZodType< }); /** @internal */ export type GetProjectsBlockHistory4$Outbound = { - action: string; + action: "route-unblocked"; route: | GetProjectsRouteProjects1$Outbound | GetProjectsRouteProjects2$Outbound; @@ -9359,7 +8800,7 @@ export const GetProjectsBlockHistory4$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsBlockHistory4 > = z.object({ - action: GetProjectsBlockHistoryProjectsResponse200Action$outboundSchema, + action: z.literal("route-unblocked"), route: z.union([ z.lazy(() => GetProjectsRouteProjects1$outboundSchema), z.lazy(() => GetProjectsRouteProjects2$outboundSchema), @@ -9389,29 +8830,6 @@ export function getProjectsBlockHistory4FromJSON( ); } -/** @internal */ -export const GetProjectsBlockHistoryProjectsResponseAction$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetProjectsBlockHistoryProjectsResponseAction); -/** @internal */ -export const GetProjectsBlockHistoryProjectsResponseAction$outboundSchema: - z.ZodNativeEnum = - GetProjectsBlockHistoryProjectsResponseAction$inboundSchema; - -/** @internal */ -export const GetProjectsHasProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema: - z.ZodNativeEnum< - typeof GetProjectsHasProjectsResponse200ApplicationJSONResponseBodyType - > = z.nativeEnum( - GetProjectsHasProjectsResponse200ApplicationJSONResponseBodyType, - ); -/** @internal */ -export const GetProjectsHasProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema: - z.ZodNativeEnum< - typeof GetProjectsHasProjectsResponse200ApplicationJSONResponseBodyType - > = - GetProjectsHasProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema; - /** @internal */ export const GetProjectsHasProjectsResponse200ApplicationJSONResponseBodyValue$inboundSchema: z.ZodType< @@ -9467,15 +8885,14 @@ export const GetProjectsHasProjectsResponse2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: - GetProjectsHasProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema, + type: z.literal("host"), value: z.lazy(() => GetProjectsHasProjectsResponse200ApplicationJSONResponseBodyValue$inboundSchema ), }); /** @internal */ export type GetProjectsHasProjectsResponse2$Outbound = { - type: string; + type: "host"; value: GetProjectsHasProjectsResponse200ApplicationJSONResponseBodyValue$Outbound; }; @@ -9486,8 +8903,7 @@ export const GetProjectsHasProjectsResponse2$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsHasProjectsResponse2 > = z.object({ - type: - GetProjectsHasProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema, + type: z.literal("host"), value: z.lazy(() => GetProjectsHasProjectsResponse200ApplicationJSONResponseBodyValue$outboundSchema ), @@ -9512,15 +8928,6 @@ export function getProjectsHasProjectsResponse2FromJSON( ); } -/** @internal */ -export const GetProjectsHasProjectsResponse200ApplicationJSONType$inboundSchema: - z.ZodNativeEnum = - z.nativeEnum(GetProjectsHasProjectsResponse200ApplicationJSONType); -/** @internal */ -export const GetProjectsHasProjectsResponse200ApplicationJSONType$outboundSchema: - z.ZodNativeEnum = - GetProjectsHasProjectsResponse200ApplicationJSONType$inboundSchema; - /** @internal */ export const GetProjectsHasProjectsResponseKey$inboundSchema: z.ZodNativeEnum< typeof GetProjectsHasProjectsResponseKey @@ -9586,7 +8993,7 @@ export const GetProjectsHasProjectsResponse1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetProjectsHasProjectsResponse200ApplicationJSONType$inboundSchema, + type: z.literal("header"), key: GetProjectsHasProjectsResponseKey$inboundSchema, value: z.lazy(() => GetProjectsHasProjectsResponse200ApplicationJSONValue$inboundSchema @@ -9594,7 +9001,7 @@ export const GetProjectsHasProjectsResponse1$inboundSchema: z.ZodType< }); /** @internal */ export type GetProjectsHasProjectsResponse1$Outbound = { - type: string; + type: "header"; key: string; value: GetProjectsHasProjectsResponse200ApplicationJSONValue$Outbound; }; @@ -9605,7 +9012,7 @@ export const GetProjectsHasProjectsResponse1$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsHasProjectsResponse1 > = z.object({ - type: GetProjectsHasProjectsResponse200ApplicationJSONType$outboundSchema, + type: z.literal("header"), key: GetProjectsHasProjectsResponseKey$outboundSchema, value: z.lazy(() => GetProjectsHasProjectsResponse200ApplicationJSONValue$outboundSchema @@ -9869,7 +9276,7 @@ export const GetProjectsBlockHistory3$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - action: GetProjectsBlockHistoryProjectsResponseAction$inboundSchema, + action: z.literal("route-blocked"), route: z.union([ z.lazy(() => GetProjectsRoute1$inboundSchema), z.lazy(() => GetProjectsRoute2$inboundSchema), @@ -9883,7 +9290,7 @@ export const GetProjectsBlockHistory3$inboundSchema: z.ZodType< }); /** @internal */ export type GetProjectsBlockHistory3$Outbound = { - action: string; + action: "route-blocked"; route: GetProjectsRoute1$Outbound | GetProjectsRoute2$Outbound; reason: string; createdAt: number; @@ -9899,7 +9306,7 @@ export const GetProjectsBlockHistory3$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsBlockHistory3 > = z.object({ - action: GetProjectsBlockHistoryProjectsResponseAction$outboundSchema, + action: z.literal("route-blocked"), route: z.union([ z.lazy(() => GetProjectsRoute1$outboundSchema), z.lazy(() => GetProjectsRoute2$outboundSchema), @@ -9929,23 +9336,13 @@ export function getProjectsBlockHistory3FromJSON( ); } -/** @internal */ -export const GetProjectsBlockHistoryProjectsAction$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - GetProjectsBlockHistoryProjectsAction, - ); -/** @internal */ -export const GetProjectsBlockHistoryProjectsAction$outboundSchema: - z.ZodNativeEnum = - GetProjectsBlockHistoryProjectsAction$inboundSchema; - /** @internal */ export const GetProjectsBlockHistory2$inboundSchema: z.ZodType< GetProjectsBlockHistory2, z.ZodTypeDef, unknown > = z.object({ - action: GetProjectsBlockHistoryProjectsAction$inboundSchema, + action: z.literal("unblocked"), createdAt: z.number(), caseId: z.string().optional(), actor: z.string().optional(), @@ -9954,7 +9351,7 @@ export const GetProjectsBlockHistory2$inboundSchema: z.ZodType< }); /** @internal */ export type GetProjectsBlockHistory2$Outbound = { - action: string; + action: "unblocked"; createdAt: number; caseId?: string | undefined; actor?: string | undefined; @@ -9968,7 +9365,7 @@ export const GetProjectsBlockHistory2$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsBlockHistory2 > = z.object({ - action: GetProjectsBlockHistoryProjectsAction$outboundSchema, + action: z.literal("unblocked"), createdAt: z.number(), caseId: z.string().optional(), actor: z.string().optional(), @@ -9993,22 +9390,13 @@ export function getProjectsBlockHistory2FromJSON( ); } -/** @internal */ -export const GetProjectsBlockHistoryAction$inboundSchema: z.ZodNativeEnum< - typeof GetProjectsBlockHistoryAction -> = z.nativeEnum(GetProjectsBlockHistoryAction); -/** @internal */ -export const GetProjectsBlockHistoryAction$outboundSchema: z.ZodNativeEnum< - typeof GetProjectsBlockHistoryAction -> = GetProjectsBlockHistoryAction$inboundSchema; - /** @internal */ export const GetProjectsBlockHistory1$inboundSchema: z.ZodType< GetProjectsBlockHistory1, z.ZodTypeDef, unknown > = z.object({ - action: GetProjectsBlockHistoryAction$inboundSchema, + action: z.literal("blocked"), reason: z.string(), statusCode: z.number(), createdAt: z.number(), @@ -10019,7 +9407,7 @@ export const GetProjectsBlockHistory1$inboundSchema: z.ZodType< }); /** @internal */ export type GetProjectsBlockHistory1$Outbound = { - action: string; + action: "blocked"; reason: string; statusCode: number; createdAt: number; @@ -10035,7 +9423,7 @@ export const GetProjectsBlockHistory1$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsBlockHistory1 > = z.object({ - action: GetProjectsBlockHistoryAction$outboundSchema, + action: z.literal("blocked"), reason: z.string(), statusCode: z.number(), createdAt: z.number(), @@ -10069,16 +9457,16 @@ export const GetProjectsBlockHistory$inboundSchema: z.ZodType< unknown > = z.union([ z.lazy(() => GetProjectsBlockHistory1$inboundSchema), + z.lazy(() => GetProjectsBlockHistory2$inboundSchema), z.lazy(() => GetProjectsBlockHistory3$inboundSchema), z.lazy(() => GetProjectsBlockHistory4$inboundSchema), - z.lazy(() => GetProjectsBlockHistory2$inboundSchema), ]); /** @internal */ export type GetProjectsBlockHistory$Outbound = | GetProjectsBlockHistory1$Outbound + | GetProjectsBlockHistory2$Outbound | GetProjectsBlockHistory3$Outbound - | GetProjectsBlockHistory4$Outbound - | GetProjectsBlockHistory2$Outbound; + | GetProjectsBlockHistory4$Outbound; /** @internal */ export const GetProjectsBlockHistory$outboundSchema: z.ZodType< @@ -10087,9 +9475,9 @@ export const GetProjectsBlockHistory$outboundSchema: z.ZodType< GetProjectsBlockHistory > = z.union([ z.lazy(() => GetProjectsBlockHistory1$outboundSchema), + z.lazy(() => GetProjectsBlockHistory2$outboundSchema), z.lazy(() => GetProjectsBlockHistory3$outboundSchema), z.lazy(() => GetProjectsBlockHistory4$outboundSchema), - z.lazy(() => GetProjectsBlockHistory2$outboundSchema), ]); export function getProjectsBlockHistoryToJSON( @@ -10122,9 +9510,9 @@ export const GetProjectsAbuse$inboundSchema: z.ZodType< blockHistory: z.array( z.union([ z.lazy(() => GetProjectsBlockHistory1$inboundSchema), + z.lazy(() => GetProjectsBlockHistory2$inboundSchema), z.lazy(() => GetProjectsBlockHistory3$inboundSchema), z.lazy(() => GetProjectsBlockHistory4$inboundSchema), - z.lazy(() => GetProjectsBlockHistory2$inboundSchema), ]), ).optional(), interstitial: z.boolean().optional(), @@ -10138,9 +9526,9 @@ export type GetProjectsAbuse$Outbound = { blockHistory?: | Array< | GetProjectsBlockHistory1$Outbound + | GetProjectsBlockHistory2$Outbound | GetProjectsBlockHistory3$Outbound | GetProjectsBlockHistory4$Outbound - | GetProjectsBlockHistory2$Outbound > | undefined; interstitial?: boolean | undefined; @@ -10159,9 +9547,9 @@ export const GetProjectsAbuse$outboundSchema: z.ZodType< blockHistory: z.array( z.union([ z.lazy(() => GetProjectsBlockHistory1$outboundSchema), + z.lazy(() => GetProjectsBlockHistory2$outboundSchema), z.lazy(() => GetProjectsBlockHistory3$outboundSchema), z.lazy(() => GetProjectsBlockHistory4$outboundSchema), - z.lazy(() => GetProjectsBlockHistory2$outboundSchema), ]), ).optional(), interstitial: z.boolean().optional(), @@ -10184,15 +9572,6 @@ export function getProjectsAbuseFromJSON( ); } -/** @internal */ -export const GetProjectsHasProjectsType$inboundSchema: z.ZodNativeEnum< - typeof GetProjectsHasProjectsType -> = z.nativeEnum(GetProjectsHasProjectsType); -/** @internal */ -export const GetProjectsHasProjectsType$outboundSchema: z.ZodNativeEnum< - typeof GetProjectsHasProjectsType -> = GetProjectsHasProjectsType$inboundSchema; - /** @internal */ export const GetProjectsHasProjectsValue$inboundSchema: z.ZodType< GetProjectsHasProjectsValue, @@ -10240,12 +9619,12 @@ export const GetProjectsHas2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetProjectsHasProjectsType$inboundSchema, + type: z.literal("host"), value: z.lazy(() => GetProjectsHasProjectsValue$inboundSchema), }); /** @internal */ export type GetProjectsHas2$Outbound = { - type: string; + type: "host"; value: GetProjectsHasProjectsValue$Outbound; }; @@ -10255,7 +9634,7 @@ export const GetProjectsHas2$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsHas2 > = z.object({ - type: GetProjectsHasProjectsType$outboundSchema, + type: z.literal("host"), value: z.lazy(() => GetProjectsHasProjectsValue$outboundSchema), }); @@ -10274,15 +9653,6 @@ export function getProjectsHas2FromJSON( ); } -/** @internal */ -export const GetProjectsHasType$inboundSchema: z.ZodNativeEnum< - typeof GetProjectsHasType -> = z.nativeEnum(GetProjectsHasType); -/** @internal */ -export const GetProjectsHasType$outboundSchema: z.ZodNativeEnum< - typeof GetProjectsHasType -> = GetProjectsHasType$inboundSchema; - /** @internal */ export const GetProjectsHasKey$inboundSchema: z.ZodNativeEnum< typeof GetProjectsHasKey @@ -10337,13 +9707,13 @@ export const GetProjectsHas1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: GetProjectsHasType$inboundSchema, + type: z.literal("header"), key: GetProjectsHasKey$inboundSchema, value: z.lazy(() => GetProjectsHasValue$inboundSchema), }); /** @internal */ export type GetProjectsHas1$Outbound = { - type: string; + type: "header"; key: string; value: GetProjectsHasValue$Outbound; }; @@ -10354,7 +9724,7 @@ export const GetProjectsHas1$outboundSchema: z.ZodType< z.ZodTypeDef, GetProjectsHas1 > = z.object({ - type: GetProjectsHasType$outboundSchema, + type: z.literal("header"), key: GetProjectsHasKey$outboundSchema, value: z.lazy(() => GetProjectsHasValue$outboundSchema), }); @@ -10880,11 +10250,11 @@ export const GetProjectsProjects$inboundSchema: z.ZodType< z.lazy(() => GetProjectsLatestDeployments$inboundSchema), ).optional(), link: z.union([ - z.lazy(() => GetProjectsLink4$inboundSchema), - z.lazy(() => GetProjectsLink5$inboundSchema), - z.lazy(() => GetProjectsLink3$inboundSchema), z.lazy(() => GetProjectsLink1$inboundSchema), z.lazy(() => GetProjectsLink2$inboundSchema), + z.lazy(() => GetProjectsLink3$inboundSchema), + z.lazy(() => GetProjectsLink4$inboundSchema), + z.lazy(() => GetProjectsLink5$inboundSchema), ]).optional(), microfrontends: z.union([ z.lazy(() => GetProjectsMicrofrontends1$inboundSchema), @@ -11016,11 +10386,11 @@ export type GetProjectsProjects$Outbound = { ipBuckets?: Array | undefined; latestDeployments?: Array | undefined; link?: - | GetProjectsLink4$Outbound - | GetProjectsLink5$Outbound - | GetProjectsLink3$Outbound | GetProjectsLink1$Outbound | GetProjectsLink2$Outbound + | GetProjectsLink3$Outbound + | GetProjectsLink4$Outbound + | GetProjectsLink5$Outbound | undefined; microfrontends?: | GetProjectsMicrofrontends1$Outbound @@ -11141,11 +10511,11 @@ export const GetProjectsProjects$outboundSchema: z.ZodType< z.lazy(() => GetProjectsLatestDeployments$outboundSchema), ).optional(), link: z.union([ - z.lazy(() => GetProjectsLink4$outboundSchema), - z.lazy(() => GetProjectsLink5$outboundSchema), - z.lazy(() => GetProjectsLink3$outboundSchema), z.lazy(() => GetProjectsLink1$outboundSchema), z.lazy(() => GetProjectsLink2$outboundSchema), + z.lazy(() => GetProjectsLink3$outboundSchema), + z.lazy(() => GetProjectsLink4$outboundSchema), + z.lazy(() => GetProjectsLink5$outboundSchema), ]).optional(), microfrontends: z.union([ z.lazy(() => GetProjectsMicrofrontends1$outboundSchema), diff --git a/src/models/getrollingreleasebillingstatusop.ts b/src/models/getrollingreleasebillingstatusop.ts index 777f6b58..34ead43f 100644 --- a/src/models/getrollingreleasebillingstatusop.ts +++ b/src/models/getrollingreleasebillingstatusop.ts @@ -23,33 +23,15 @@ export type GetRollingReleaseBillingStatusRequest = { slug?: string | undefined; }; -export const GetRollingReleaseBillingStatusResponseBodyRollingReleaseResponseReason = - { - AvailableSlots: "available_slots", - } as const; -export type GetRollingReleaseBillingStatusResponseBodyRollingReleaseResponseReason = - ClosedEnum< - typeof GetRollingReleaseBillingStatusResponseBodyRollingReleaseResponseReason - >; - export type ResponseBody4 = { availableSlots: number; - reason: - GetRollingReleaseBillingStatusResponseBodyRollingReleaseResponseReason; + reason: "available_slots"; message: string; }; -export const GetRollingReleaseBillingStatusResponseBodyRollingReleaseReason = { - NoAvailableSlots: "no_available_slots", -} as const; -export type GetRollingReleaseBillingStatusResponseBodyRollingReleaseReason = - ClosedEnum< - typeof GetRollingReleaseBillingStatusResponseBodyRollingReleaseReason - >; - export type GetRollingReleaseBillingStatusResponseBody3 = { availableSlots: number; - reason: GetRollingReleaseBillingStatusResponseBodyRollingReleaseReason; + reason: "no_available_slots"; message: string; enabledProjects: Array; }; @@ -59,34 +41,22 @@ export const AvailableSlots = { } as const; export type AvailableSlots = ClosedEnum; -export const GetRollingReleaseBillingStatusResponseBodyReason = { - UnlimitedSlots: "unlimited_slots", -} as const; -export type GetRollingReleaseBillingStatusResponseBodyReason = ClosedEnum< - typeof GetRollingReleaseBillingStatusResponseBodyReason ->; - export type GetRollingReleaseBillingStatusResponseBody2 = { availableSlots: AvailableSlots; - reason: GetRollingReleaseBillingStatusResponseBodyReason; + reason: "unlimited_slots"; message: string; }; -export const ResponseBodyReason = { - PlanNotSupported: "plan_not_supported", -} as const; -export type ResponseBodyReason = ClosedEnum; - export type GetRollingReleaseBillingStatusResponseBody1 = { availableSlots: number; - reason: ResponseBodyReason; + reason: "plan_not_supported"; message: string; }; export type GetRollingReleaseBillingStatusResponseBody = - | GetRollingReleaseBillingStatusResponseBody3 | GetRollingReleaseBillingStatusResponseBody1 | GetRollingReleaseBillingStatusResponseBody2 + | GetRollingReleaseBillingStatusResponseBody3 | ResponseBody4; /** @internal */ @@ -137,20 +107,6 @@ export function getRollingReleaseBillingStatusRequestFromJSON( ); } -/** @internal */ -export const GetRollingReleaseBillingStatusResponseBodyRollingReleaseResponseReason$inboundSchema: - z.ZodNativeEnum< - typeof GetRollingReleaseBillingStatusResponseBodyRollingReleaseResponseReason - > = z.nativeEnum( - GetRollingReleaseBillingStatusResponseBodyRollingReleaseResponseReason, - ); -/** @internal */ -export const GetRollingReleaseBillingStatusResponseBodyRollingReleaseResponseReason$outboundSchema: - z.ZodNativeEnum< - typeof GetRollingReleaseBillingStatusResponseBodyRollingReleaseResponseReason - > = - GetRollingReleaseBillingStatusResponseBodyRollingReleaseResponseReason$inboundSchema; - /** @internal */ export const ResponseBody4$inboundSchema: z.ZodType< ResponseBody4, @@ -158,14 +114,13 @@ export const ResponseBody4$inboundSchema: z.ZodType< unknown > = z.object({ availableSlots: z.number(), - reason: - GetRollingReleaseBillingStatusResponseBodyRollingReleaseResponseReason$inboundSchema, + reason: z.literal("available_slots"), message: z.string(), }); /** @internal */ export type ResponseBody4$Outbound = { availableSlots: number; - reason: string; + reason: "available_slots"; message: string; }; @@ -176,8 +131,7 @@ export const ResponseBody4$outboundSchema: z.ZodType< ResponseBody4 > = z.object({ availableSlots: z.number(), - reason: - GetRollingReleaseBillingStatusResponseBodyRollingReleaseResponseReason$outboundSchema, + reason: z.literal("available_slots"), message: z.string(), }); @@ -194,20 +148,6 @@ export function responseBody4FromJSON( ); } -/** @internal */ -export const GetRollingReleaseBillingStatusResponseBodyRollingReleaseReason$inboundSchema: - z.ZodNativeEnum< - typeof GetRollingReleaseBillingStatusResponseBodyRollingReleaseReason - > = z.nativeEnum( - GetRollingReleaseBillingStatusResponseBodyRollingReleaseReason, - ); -/** @internal */ -export const GetRollingReleaseBillingStatusResponseBodyRollingReleaseReason$outboundSchema: - z.ZodNativeEnum< - typeof GetRollingReleaseBillingStatusResponseBodyRollingReleaseReason - > = - GetRollingReleaseBillingStatusResponseBodyRollingReleaseReason$inboundSchema; - /** @internal */ export const GetRollingReleaseBillingStatusResponseBody3$inboundSchema: z.ZodType< @@ -216,15 +156,14 @@ export const GetRollingReleaseBillingStatusResponseBody3$inboundSchema: unknown > = z.object({ availableSlots: z.number(), - reason: - GetRollingReleaseBillingStatusResponseBodyRollingReleaseReason$inboundSchema, + reason: z.literal("no_available_slots"), message: z.string(), enabledProjects: z.array(z.string()), }); /** @internal */ export type GetRollingReleaseBillingStatusResponseBody3$Outbound = { availableSlots: number; - reason: string; + reason: "no_available_slots"; message: string; enabledProjects: Array; }; @@ -237,8 +176,7 @@ export const GetRollingReleaseBillingStatusResponseBody3$outboundSchema: GetRollingReleaseBillingStatusResponseBody3 > = z.object({ availableSlots: z.number(), - reason: - GetRollingReleaseBillingStatusResponseBodyRollingReleaseReason$outboundSchema, + reason: z.literal("no_available_slots"), message: z.string(), enabledProjects: z.array(z.string()), }); @@ -278,15 +216,6 @@ export const AvailableSlots$outboundSchema: z.ZodNativeEnum< typeof AvailableSlots > = AvailableSlots$inboundSchema; -/** @internal */ -export const GetRollingReleaseBillingStatusResponseBodyReason$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetRollingReleaseBillingStatusResponseBodyReason); -/** @internal */ -export const GetRollingReleaseBillingStatusResponseBodyReason$outboundSchema: - z.ZodNativeEnum = - GetRollingReleaseBillingStatusResponseBodyReason$inboundSchema; - /** @internal */ export const GetRollingReleaseBillingStatusResponseBody2$inboundSchema: z.ZodType< @@ -295,13 +224,13 @@ export const GetRollingReleaseBillingStatusResponseBody2$inboundSchema: unknown > = z.object({ availableSlots: AvailableSlots$inboundSchema, - reason: GetRollingReleaseBillingStatusResponseBodyReason$inboundSchema, + reason: z.literal("unlimited_slots"), message: z.string(), }); /** @internal */ export type GetRollingReleaseBillingStatusResponseBody2$Outbound = { availableSlots: string; - reason: string; + reason: "unlimited_slots"; message: string; }; @@ -313,7 +242,7 @@ export const GetRollingReleaseBillingStatusResponseBody2$outboundSchema: GetRollingReleaseBillingStatusResponseBody2 > = z.object({ availableSlots: AvailableSlots$outboundSchema, - reason: GetRollingReleaseBillingStatusResponseBodyReason$outboundSchema, + reason: z.literal("unlimited_slots"), message: z.string(), }); @@ -343,15 +272,6 @@ export function getRollingReleaseBillingStatusResponseBody2FromJSON( ); } -/** @internal */ -export const ResponseBodyReason$inboundSchema: z.ZodNativeEnum< - typeof ResponseBodyReason -> = z.nativeEnum(ResponseBodyReason); -/** @internal */ -export const ResponseBodyReason$outboundSchema: z.ZodNativeEnum< - typeof ResponseBodyReason -> = ResponseBodyReason$inboundSchema; - /** @internal */ export const GetRollingReleaseBillingStatusResponseBody1$inboundSchema: z.ZodType< @@ -360,13 +280,13 @@ export const GetRollingReleaseBillingStatusResponseBody1$inboundSchema: unknown > = z.object({ availableSlots: z.number(), - reason: ResponseBodyReason$inboundSchema, + reason: z.literal("plan_not_supported"), message: z.string(), }); /** @internal */ export type GetRollingReleaseBillingStatusResponseBody1$Outbound = { availableSlots: number; - reason: string; + reason: "plan_not_supported"; message: string; }; @@ -378,7 +298,7 @@ export const GetRollingReleaseBillingStatusResponseBody1$outboundSchema: GetRollingReleaseBillingStatusResponseBody1 > = z.object({ availableSlots: z.number(), - reason: ResponseBodyReason$outboundSchema, + reason: z.literal("plan_not_supported"), message: z.string(), }); @@ -412,16 +332,16 @@ export function getRollingReleaseBillingStatusResponseBody1FromJSON( export const GetRollingReleaseBillingStatusResponseBody$inboundSchema: z.ZodType = z.union([ - z.lazy(() => GetRollingReleaseBillingStatusResponseBody3$inboundSchema), z.lazy(() => GetRollingReleaseBillingStatusResponseBody1$inboundSchema), z.lazy(() => GetRollingReleaseBillingStatusResponseBody2$inboundSchema), + z.lazy(() => GetRollingReleaseBillingStatusResponseBody3$inboundSchema), z.lazy(() => ResponseBody4$inboundSchema), ]); /** @internal */ export type GetRollingReleaseBillingStatusResponseBody$Outbound = - | GetRollingReleaseBillingStatusResponseBody3$Outbound | GetRollingReleaseBillingStatusResponseBody1$Outbound | GetRollingReleaseBillingStatusResponseBody2$Outbound + | GetRollingReleaseBillingStatusResponseBody3$Outbound | ResponseBody4$Outbound; /** @internal */ @@ -431,9 +351,9 @@ export const GetRollingReleaseBillingStatusResponseBody$outboundSchema: z.ZodTypeDef, GetRollingReleaseBillingStatusResponseBody > = z.union([ - z.lazy(() => GetRollingReleaseBillingStatusResponseBody3$outboundSchema), z.lazy(() => GetRollingReleaseBillingStatusResponseBody1$outboundSchema), z.lazy(() => GetRollingReleaseBillingStatusResponseBody2$outboundSchema), + z.lazy(() => GetRollingReleaseBillingStatusResponseBody3$outboundSchema), z.lazy(() => ResponseBody4$outboundSchema), ]); diff --git a/src/models/listaliasesop.ts b/src/models/listaliasesop.ts index b5ef806f..520086f7 100644 --- a/src/models/listaliasesop.ts +++ b/src/models/listaliasesop.ts @@ -94,13 +94,6 @@ export type ListAliasesDeployment = { meta?: string | undefined; }; -export const ListAliasesProtectionBypassAliasesResponse200Scope = { - EmailInvite: "email_invite", -} as const; -export type ListAliasesProtectionBypassAliasesResponse200Scope = ClosedEnum< - typeof ListAliasesProtectionBypassAliasesResponse200Scope ->; - /** * The protection bypass for the alias */ @@ -108,23 +101,16 @@ export type ListAliasesProtectionBypass4 = { createdAt: number; lastUpdatedAt: number; lastUpdatedBy: string; - scope: ListAliasesProtectionBypassAliasesResponse200Scope; + scope: "email_invite"; }; -export const ListAliasesProtectionBypassAliasesResponseScope = { - AliasProtectionOverride: "alias-protection-override", -} as const; -export type ListAliasesProtectionBypassAliasesResponseScope = ClosedEnum< - typeof ListAliasesProtectionBypassAliasesResponseScope ->; - /** * The protection bypass for the alias */ export type ListAliasesProtectionBypass3 = { createdAt: number; createdBy: string; - scope: ListAliasesProtectionBypassAliasesResponseScope; + scope: "alias-protection-override"; }; export const ListAliasesProtectionBypassAccess = { @@ -135,13 +121,6 @@ export type ListAliasesProtectionBypassAccess = ClosedEnum< typeof ListAliasesProtectionBypassAccess >; -export const ListAliasesProtectionBypassAliasesScope = { - User: "user", -} as const; -export type ListAliasesProtectionBypassAliasesScope = ClosedEnum< - typeof ListAliasesProtectionBypassAliasesScope ->; - /** * The protection bypass for the alias */ @@ -150,31 +129,24 @@ export type ListAliasesProtectionBypass2 = { lastUpdatedAt: number; lastUpdatedBy: string; access: ListAliasesProtectionBypassAccess; - scope: ListAliasesProtectionBypassAliasesScope; + scope: "user"; }; -export const ListAliasesProtectionBypassScope = { - ShareableLink: "shareable-link", -} as const; -export type ListAliasesProtectionBypassScope = ClosedEnum< - typeof ListAliasesProtectionBypassScope ->; - /** * The protection bypass for the alias */ export type ListAliasesProtectionBypass1 = { createdAt: number; createdBy: string; - scope: ListAliasesProtectionBypassScope; + scope: "shareable-link"; expires?: number | undefined; }; export type ListAliasesProtectionBypass = - | ListAliasesProtectionBypass2 - | ListAliasesProtectionBypass4 | ListAliasesProtectionBypass1 - | ListAliasesProtectionBypass3; + | ListAliasesProtectionBypass2 + | ListAliasesProtectionBypass3 + | ListAliasesProtectionBypass4; export type ListAliasesDefaultApp = { projectId: string; @@ -309,10 +281,10 @@ export type ListAliasesAliases = { */ protectionBypass?: { [k: string]: - | ListAliasesProtectionBypass2 - | ListAliasesProtectionBypass4 | ListAliasesProtectionBypass1 - | ListAliasesProtectionBypass3; + | ListAliasesProtectionBypass2 + | ListAliasesProtectionBypass3 + | ListAliasesProtectionBypass4; } | undefined; /** * The microfrontends for the alias including the routing configuration @@ -510,15 +482,6 @@ export function listAliasesDeploymentFromJSON( ); } -/** @internal */ -export const ListAliasesProtectionBypassAliasesResponse200Scope$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(ListAliasesProtectionBypassAliasesResponse200Scope); -/** @internal */ -export const ListAliasesProtectionBypassAliasesResponse200Scope$outboundSchema: - z.ZodNativeEnum = - ListAliasesProtectionBypassAliasesResponse200Scope$inboundSchema; - /** @internal */ export const ListAliasesProtectionBypass4$inboundSchema: z.ZodType< ListAliasesProtectionBypass4, @@ -528,14 +491,14 @@ export const ListAliasesProtectionBypass4$inboundSchema: z.ZodType< createdAt: z.number(), lastUpdatedAt: z.number(), lastUpdatedBy: z.string(), - scope: ListAliasesProtectionBypassAliasesResponse200Scope$inboundSchema, + scope: z.literal("email_invite"), }); /** @internal */ export type ListAliasesProtectionBypass4$Outbound = { createdAt: number; lastUpdatedAt: number; lastUpdatedBy: string; - scope: string; + scope: "email_invite"; }; /** @internal */ @@ -547,7 +510,7 @@ export const ListAliasesProtectionBypass4$outboundSchema: z.ZodType< createdAt: z.number(), lastUpdatedAt: z.number(), lastUpdatedBy: z.string(), - scope: ListAliasesProtectionBypassAliasesResponse200Scope$outboundSchema, + scope: z.literal("email_invite"), }); export function listAliasesProtectionBypass4ToJSON( @@ -569,15 +532,6 @@ export function listAliasesProtectionBypass4FromJSON( ); } -/** @internal */ -export const ListAliasesProtectionBypassAliasesResponseScope$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(ListAliasesProtectionBypassAliasesResponseScope); -/** @internal */ -export const ListAliasesProtectionBypassAliasesResponseScope$outboundSchema: - z.ZodNativeEnum = - ListAliasesProtectionBypassAliasesResponseScope$inboundSchema; - /** @internal */ export const ListAliasesProtectionBypass3$inboundSchema: z.ZodType< ListAliasesProtectionBypass3, @@ -586,13 +540,13 @@ export const ListAliasesProtectionBypass3$inboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: ListAliasesProtectionBypassAliasesResponseScope$inboundSchema, + scope: z.literal("alias-protection-override"), }); /** @internal */ export type ListAliasesProtectionBypass3$Outbound = { createdAt: number; createdBy: string; - scope: string; + scope: "alias-protection-override"; }; /** @internal */ @@ -603,7 +557,7 @@ export const ListAliasesProtectionBypass3$outboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: ListAliasesProtectionBypassAliasesResponseScope$outboundSchema, + scope: z.literal("alias-protection-override"), }); export function listAliasesProtectionBypass3ToJSON( @@ -634,15 +588,6 @@ export const ListAliasesProtectionBypassAccess$outboundSchema: z.ZodNativeEnum< typeof ListAliasesProtectionBypassAccess > = ListAliasesProtectionBypassAccess$inboundSchema; -/** @internal */ -export const ListAliasesProtectionBypassAliasesScope$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(ListAliasesProtectionBypassAliasesScope); -/** @internal */ -export const ListAliasesProtectionBypassAliasesScope$outboundSchema: - z.ZodNativeEnum = - ListAliasesProtectionBypassAliasesScope$inboundSchema; - /** @internal */ export const ListAliasesProtectionBypass2$inboundSchema: z.ZodType< ListAliasesProtectionBypass2, @@ -653,7 +598,7 @@ export const ListAliasesProtectionBypass2$inboundSchema: z.ZodType< lastUpdatedAt: z.number(), lastUpdatedBy: z.string(), access: ListAliasesProtectionBypassAccess$inboundSchema, - scope: ListAliasesProtectionBypassAliasesScope$inboundSchema, + scope: z.literal("user"), }); /** @internal */ export type ListAliasesProtectionBypass2$Outbound = { @@ -661,7 +606,7 @@ export type ListAliasesProtectionBypass2$Outbound = { lastUpdatedAt: number; lastUpdatedBy: string; access: string; - scope: string; + scope: "user"; }; /** @internal */ @@ -674,7 +619,7 @@ export const ListAliasesProtectionBypass2$outboundSchema: z.ZodType< lastUpdatedAt: z.number(), lastUpdatedBy: z.string(), access: ListAliasesProtectionBypassAccess$outboundSchema, - scope: ListAliasesProtectionBypassAliasesScope$outboundSchema, + scope: z.literal("user"), }); export function listAliasesProtectionBypass2ToJSON( @@ -696,15 +641,6 @@ export function listAliasesProtectionBypass2FromJSON( ); } -/** @internal */ -export const ListAliasesProtectionBypassScope$inboundSchema: z.ZodNativeEnum< - typeof ListAliasesProtectionBypassScope -> = z.nativeEnum(ListAliasesProtectionBypassScope); -/** @internal */ -export const ListAliasesProtectionBypassScope$outboundSchema: z.ZodNativeEnum< - typeof ListAliasesProtectionBypassScope -> = ListAliasesProtectionBypassScope$inboundSchema; - /** @internal */ export const ListAliasesProtectionBypass1$inboundSchema: z.ZodType< ListAliasesProtectionBypass1, @@ -713,14 +649,14 @@ export const ListAliasesProtectionBypass1$inboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: ListAliasesProtectionBypassScope$inboundSchema, + scope: z.literal("shareable-link"), expires: z.number().optional(), }); /** @internal */ export type ListAliasesProtectionBypass1$Outbound = { createdAt: number; createdBy: string; - scope: string; + scope: "shareable-link"; expires?: number | undefined; }; @@ -732,7 +668,7 @@ export const ListAliasesProtectionBypass1$outboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: ListAliasesProtectionBypassScope$outboundSchema, + scope: z.literal("shareable-link"), expires: z.number().optional(), }); @@ -761,17 +697,17 @@ export const ListAliasesProtectionBypass$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => ListAliasesProtectionBypass2$inboundSchema), - z.lazy(() => ListAliasesProtectionBypass4$inboundSchema), z.lazy(() => ListAliasesProtectionBypass1$inboundSchema), + z.lazy(() => ListAliasesProtectionBypass2$inboundSchema), z.lazy(() => ListAliasesProtectionBypass3$inboundSchema), + z.lazy(() => ListAliasesProtectionBypass4$inboundSchema), ]); /** @internal */ export type ListAliasesProtectionBypass$Outbound = - | ListAliasesProtectionBypass2$Outbound - | ListAliasesProtectionBypass4$Outbound | ListAliasesProtectionBypass1$Outbound - | ListAliasesProtectionBypass3$Outbound; + | ListAliasesProtectionBypass2$Outbound + | ListAliasesProtectionBypass3$Outbound + | ListAliasesProtectionBypass4$Outbound; /** @internal */ export const ListAliasesProtectionBypass$outboundSchema: z.ZodType< @@ -779,10 +715,10 @@ export const ListAliasesProtectionBypass$outboundSchema: z.ZodType< z.ZodTypeDef, ListAliasesProtectionBypass > = z.union([ - z.lazy(() => ListAliasesProtectionBypass2$outboundSchema), - z.lazy(() => ListAliasesProtectionBypass4$outboundSchema), z.lazy(() => ListAliasesProtectionBypass1$outboundSchema), + z.lazy(() => ListAliasesProtectionBypass2$outboundSchema), z.lazy(() => ListAliasesProtectionBypass3$outboundSchema), + z.lazy(() => ListAliasesProtectionBypass4$outboundSchema), ]); export function listAliasesProtectionBypassToJSON( @@ -1101,10 +1037,10 @@ export const ListAliasesAliases$inboundSchema: z.ZodType< updatedAt: z.number().optional(), protectionBypass: z.record( z.union([ - z.lazy(() => ListAliasesProtectionBypass2$inboundSchema), - z.lazy(() => ListAliasesProtectionBypass4$inboundSchema), z.lazy(() => ListAliasesProtectionBypass1$inboundSchema), + z.lazy(() => ListAliasesProtectionBypass2$inboundSchema), z.lazy(() => ListAliasesProtectionBypass3$inboundSchema), + z.lazy(() => ListAliasesProtectionBypass4$inboundSchema), ]), ).optional(), microfrontends: z.lazy(() => ListAliasesMicrofrontends$inboundSchema) @@ -1126,10 +1062,10 @@ export type ListAliasesAliases$Outbound = { updatedAt?: number | undefined; protectionBypass?: { [k: string]: - | ListAliasesProtectionBypass2$Outbound - | ListAliasesProtectionBypass4$Outbound | ListAliasesProtectionBypass1$Outbound - | ListAliasesProtectionBypass3$Outbound; + | ListAliasesProtectionBypass2$Outbound + | ListAliasesProtectionBypass3$Outbound + | ListAliasesProtectionBypass4$Outbound; } | undefined; microfrontends?: ListAliasesMicrofrontends$Outbound | undefined; }; @@ -1154,10 +1090,10 @@ export const ListAliasesAliases$outboundSchema: z.ZodType< updatedAt: z.number().optional(), protectionBypass: z.record( z.union([ - z.lazy(() => ListAliasesProtectionBypass2$outboundSchema), - z.lazy(() => ListAliasesProtectionBypass4$outboundSchema), z.lazy(() => ListAliasesProtectionBypass1$outboundSchema), + z.lazy(() => ListAliasesProtectionBypass2$outboundSchema), z.lazy(() => ListAliasesProtectionBypass3$outboundSchema), + z.lazy(() => ListAliasesProtectionBypass4$outboundSchema), ]), ).optional(), microfrontends: z.lazy(() => ListAliasesMicrofrontends$outboundSchema) diff --git a/src/models/listdeploymentaliasesop.ts b/src/models/listdeploymentaliasesop.ts index d81765da..5a07161a 100644 --- a/src/models/listdeploymentaliasesop.ts +++ b/src/models/listdeploymentaliasesop.ts @@ -23,14 +23,6 @@ export type ListDeploymentAliasesRequest = { slug?: string | undefined; }; -export const ListDeploymentAliasesProtectionBypassAliasesResponse200Scope = { - EmailInvite: "email_invite", -} as const; -export type ListDeploymentAliasesProtectionBypassAliasesResponse200Scope = - ClosedEnum< - typeof ListDeploymentAliasesProtectionBypassAliasesResponse200Scope - >; - /** * The protection bypass for the alias */ @@ -38,22 +30,16 @@ export type ListDeploymentAliasesProtectionBypass4 = { createdAt: number; lastUpdatedAt: number; lastUpdatedBy: string; - scope: ListDeploymentAliasesProtectionBypassAliasesResponse200Scope; + scope: "email_invite"; }; -export const ListDeploymentAliasesProtectionBypassAliasesResponseScope = { - AliasProtectionOverride: "alias-protection-override", -} as const; -export type ListDeploymentAliasesProtectionBypassAliasesResponseScope = - ClosedEnum; - /** * The protection bypass for the alias */ export type ListDeploymentAliasesProtectionBypass3 = { createdAt: number; createdBy: string; - scope: ListDeploymentAliasesProtectionBypassAliasesResponseScope; + scope: "alias-protection-override"; }; export const ListDeploymentAliasesProtectionBypassAccess = { @@ -64,13 +50,6 @@ export type ListDeploymentAliasesProtectionBypassAccess = ClosedEnum< typeof ListDeploymentAliasesProtectionBypassAccess >; -export const ListDeploymentAliasesProtectionBypassAliasesScope = { - User: "user", -} as const; -export type ListDeploymentAliasesProtectionBypassAliasesScope = ClosedEnum< - typeof ListDeploymentAliasesProtectionBypassAliasesScope ->; - /** * The protection bypass for the alias */ @@ -79,31 +58,24 @@ export type ListDeploymentAliasesProtectionBypass2 = { lastUpdatedAt: number; lastUpdatedBy: string; access: ListDeploymentAliasesProtectionBypassAccess; - scope: ListDeploymentAliasesProtectionBypassAliasesScope; + scope: "user"; }; -export const ListDeploymentAliasesProtectionBypassScope = { - ShareableLink: "shareable-link", -} as const; -export type ListDeploymentAliasesProtectionBypassScope = ClosedEnum< - typeof ListDeploymentAliasesProtectionBypassScope ->; - /** * The protection bypass for the alias */ export type ListDeploymentAliasesProtectionBypass1 = { createdAt: number; createdBy: string; - scope: ListDeploymentAliasesProtectionBypassScope; + scope: "shareable-link"; expires?: number | undefined; }; export type ListDeploymentAliasesProtectionBypass = - | ListDeploymentAliasesProtectionBypass2 - | ListDeploymentAliasesProtectionBypass4 | ListDeploymentAliasesProtectionBypass1 - | ListDeploymentAliasesProtectionBypass3; + | ListDeploymentAliasesProtectionBypass2 + | ListDeploymentAliasesProtectionBypass3 + | ListDeploymentAliasesProtectionBypass4; /** * A list of the aliases assigned to the deployment @@ -130,10 +102,10 @@ export type Aliases = { */ protectionBypass?: { [k: string]: - | ListDeploymentAliasesProtectionBypass2 - | ListDeploymentAliasesProtectionBypass4 | ListDeploymentAliasesProtectionBypass1 - | ListDeploymentAliasesProtectionBypass3; + | ListDeploymentAliasesProtectionBypass2 + | ListDeploymentAliasesProtectionBypass3 + | ListDeploymentAliasesProtectionBypass4; } | undefined; }; @@ -194,20 +166,6 @@ export function listDeploymentAliasesRequestFromJSON( ); } -/** @internal */ -export const ListDeploymentAliasesProtectionBypassAliasesResponse200Scope$inboundSchema: - z.ZodNativeEnum< - typeof ListDeploymentAliasesProtectionBypassAliasesResponse200Scope - > = z.nativeEnum( - ListDeploymentAliasesProtectionBypassAliasesResponse200Scope, - ); -/** @internal */ -export const ListDeploymentAliasesProtectionBypassAliasesResponse200Scope$outboundSchema: - z.ZodNativeEnum< - typeof ListDeploymentAliasesProtectionBypassAliasesResponse200Scope - > = - ListDeploymentAliasesProtectionBypassAliasesResponse200Scope$inboundSchema; - /** @internal */ export const ListDeploymentAliasesProtectionBypass4$inboundSchema: z.ZodType< ListDeploymentAliasesProtectionBypass4, @@ -217,15 +175,14 @@ export const ListDeploymentAliasesProtectionBypass4$inboundSchema: z.ZodType< createdAt: z.number(), lastUpdatedAt: z.number(), lastUpdatedBy: z.string(), - scope: - ListDeploymentAliasesProtectionBypassAliasesResponse200Scope$inboundSchema, + scope: z.literal("email_invite"), }); /** @internal */ export type ListDeploymentAliasesProtectionBypass4$Outbound = { createdAt: number; lastUpdatedAt: number; lastUpdatedBy: string; - scope: string; + scope: "email_invite"; }; /** @internal */ @@ -237,8 +194,7 @@ export const ListDeploymentAliasesProtectionBypass4$outboundSchema: z.ZodType< createdAt: z.number(), lastUpdatedAt: z.number(), lastUpdatedBy: z.string(), - scope: - ListDeploymentAliasesProtectionBypassAliasesResponse200Scope$outboundSchema, + scope: z.literal("email_invite"), }); export function listDeploymentAliasesProtectionBypass4ToJSON( @@ -262,17 +218,6 @@ export function listDeploymentAliasesProtectionBypass4FromJSON( ); } -/** @internal */ -export const ListDeploymentAliasesProtectionBypassAliasesResponseScope$inboundSchema: - z.ZodNativeEnum< - typeof ListDeploymentAliasesProtectionBypassAliasesResponseScope - > = z.nativeEnum(ListDeploymentAliasesProtectionBypassAliasesResponseScope); -/** @internal */ -export const ListDeploymentAliasesProtectionBypassAliasesResponseScope$outboundSchema: - z.ZodNativeEnum< - typeof ListDeploymentAliasesProtectionBypassAliasesResponseScope - > = ListDeploymentAliasesProtectionBypassAliasesResponseScope$inboundSchema; - /** @internal */ export const ListDeploymentAliasesProtectionBypass3$inboundSchema: z.ZodType< ListDeploymentAliasesProtectionBypass3, @@ -281,14 +226,13 @@ export const ListDeploymentAliasesProtectionBypass3$inboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: - ListDeploymentAliasesProtectionBypassAliasesResponseScope$inboundSchema, + scope: z.literal("alias-protection-override"), }); /** @internal */ export type ListDeploymentAliasesProtectionBypass3$Outbound = { createdAt: number; createdBy: string; - scope: string; + scope: "alias-protection-override"; }; /** @internal */ @@ -299,8 +243,7 @@ export const ListDeploymentAliasesProtectionBypass3$outboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: - ListDeploymentAliasesProtectionBypassAliasesResponseScope$outboundSchema, + scope: z.literal("alias-protection-override"), }); export function listDeploymentAliasesProtectionBypass3ToJSON( @@ -333,15 +276,6 @@ export const ListDeploymentAliasesProtectionBypassAccess$outboundSchema: z.ZodNativeEnum = ListDeploymentAliasesProtectionBypassAccess$inboundSchema; -/** @internal */ -export const ListDeploymentAliasesProtectionBypassAliasesScope$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(ListDeploymentAliasesProtectionBypassAliasesScope); -/** @internal */ -export const ListDeploymentAliasesProtectionBypassAliasesScope$outboundSchema: - z.ZodNativeEnum = - ListDeploymentAliasesProtectionBypassAliasesScope$inboundSchema; - /** @internal */ export const ListDeploymentAliasesProtectionBypass2$inboundSchema: z.ZodType< ListDeploymentAliasesProtectionBypass2, @@ -352,7 +286,7 @@ export const ListDeploymentAliasesProtectionBypass2$inboundSchema: z.ZodType< lastUpdatedAt: z.number(), lastUpdatedBy: z.string(), access: ListDeploymentAliasesProtectionBypassAccess$inboundSchema, - scope: ListDeploymentAliasesProtectionBypassAliasesScope$inboundSchema, + scope: z.literal("user"), }); /** @internal */ export type ListDeploymentAliasesProtectionBypass2$Outbound = { @@ -360,7 +294,7 @@ export type ListDeploymentAliasesProtectionBypass2$Outbound = { lastUpdatedAt: number; lastUpdatedBy: string; access: string; - scope: string; + scope: "user"; }; /** @internal */ @@ -373,7 +307,7 @@ export const ListDeploymentAliasesProtectionBypass2$outboundSchema: z.ZodType< lastUpdatedAt: z.number(), lastUpdatedBy: z.string(), access: ListDeploymentAliasesProtectionBypassAccess$outboundSchema, - scope: ListDeploymentAliasesProtectionBypassAliasesScope$outboundSchema, + scope: z.literal("user"), }); export function listDeploymentAliasesProtectionBypass2ToJSON( @@ -397,15 +331,6 @@ export function listDeploymentAliasesProtectionBypass2FromJSON( ); } -/** @internal */ -export const ListDeploymentAliasesProtectionBypassScope$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(ListDeploymentAliasesProtectionBypassScope); -/** @internal */ -export const ListDeploymentAliasesProtectionBypassScope$outboundSchema: - z.ZodNativeEnum = - ListDeploymentAliasesProtectionBypassScope$inboundSchema; - /** @internal */ export const ListDeploymentAliasesProtectionBypass1$inboundSchema: z.ZodType< ListDeploymentAliasesProtectionBypass1, @@ -414,14 +339,14 @@ export const ListDeploymentAliasesProtectionBypass1$inboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: ListDeploymentAliasesProtectionBypassScope$inboundSchema, + scope: z.literal("shareable-link"), expires: z.number().optional(), }); /** @internal */ export type ListDeploymentAliasesProtectionBypass1$Outbound = { createdAt: number; createdBy: string; - scope: string; + scope: "shareable-link"; expires?: number | undefined; }; @@ -433,7 +358,7 @@ export const ListDeploymentAliasesProtectionBypass1$outboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: ListDeploymentAliasesProtectionBypassScope$outboundSchema, + scope: z.literal("shareable-link"), expires: z.number().optional(), }); @@ -464,17 +389,17 @@ export const ListDeploymentAliasesProtectionBypass$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => ListDeploymentAliasesProtectionBypass2$inboundSchema), - z.lazy(() => ListDeploymentAliasesProtectionBypass4$inboundSchema), z.lazy(() => ListDeploymentAliasesProtectionBypass1$inboundSchema), + z.lazy(() => ListDeploymentAliasesProtectionBypass2$inboundSchema), z.lazy(() => ListDeploymentAliasesProtectionBypass3$inboundSchema), + z.lazy(() => ListDeploymentAliasesProtectionBypass4$inboundSchema), ]); /** @internal */ export type ListDeploymentAliasesProtectionBypass$Outbound = - | ListDeploymentAliasesProtectionBypass2$Outbound - | ListDeploymentAliasesProtectionBypass4$Outbound | ListDeploymentAliasesProtectionBypass1$Outbound - | ListDeploymentAliasesProtectionBypass3$Outbound; + | ListDeploymentAliasesProtectionBypass2$Outbound + | ListDeploymentAliasesProtectionBypass3$Outbound + | ListDeploymentAliasesProtectionBypass4$Outbound; /** @internal */ export const ListDeploymentAliasesProtectionBypass$outboundSchema: z.ZodType< @@ -482,10 +407,10 @@ export const ListDeploymentAliasesProtectionBypass$outboundSchema: z.ZodType< z.ZodTypeDef, ListDeploymentAliasesProtectionBypass > = z.union([ - z.lazy(() => ListDeploymentAliasesProtectionBypass2$outboundSchema), - z.lazy(() => ListDeploymentAliasesProtectionBypass4$outboundSchema), z.lazy(() => ListDeploymentAliasesProtectionBypass1$outboundSchema), + z.lazy(() => ListDeploymentAliasesProtectionBypass2$outboundSchema), z.lazy(() => ListDeploymentAliasesProtectionBypass3$outboundSchema), + z.lazy(() => ListDeploymentAliasesProtectionBypass4$outboundSchema), ]); export function listDeploymentAliasesProtectionBypassToJSON( @@ -517,10 +442,10 @@ export const Aliases$inboundSchema: z.ZodType = redirect: z.nullable(z.string()).optional(), protectionBypass: z.record( z.union([ - z.lazy(() => ListDeploymentAliasesProtectionBypass2$inboundSchema), - z.lazy(() => ListDeploymentAliasesProtectionBypass4$inboundSchema), z.lazy(() => ListDeploymentAliasesProtectionBypass1$inboundSchema), + z.lazy(() => ListDeploymentAliasesProtectionBypass2$inboundSchema), z.lazy(() => ListDeploymentAliasesProtectionBypass3$inboundSchema), + z.lazy(() => ListDeploymentAliasesProtectionBypass4$inboundSchema), ]), ).optional(), }); @@ -532,10 +457,10 @@ export type Aliases$Outbound = { redirect?: string | null | undefined; protectionBypass?: { [k: string]: - | ListDeploymentAliasesProtectionBypass2$Outbound - | ListDeploymentAliasesProtectionBypass4$Outbound | ListDeploymentAliasesProtectionBypass1$Outbound - | ListDeploymentAliasesProtectionBypass3$Outbound; + | ListDeploymentAliasesProtectionBypass2$Outbound + | ListDeploymentAliasesProtectionBypass3$Outbound + | ListDeploymentAliasesProtectionBypass4$Outbound; } | undefined; }; @@ -551,10 +476,10 @@ export const Aliases$outboundSchema: z.ZodType< redirect: z.nullable(z.string()).optional(), protectionBypass: z.record( z.union([ - z.lazy(() => ListDeploymentAliasesProtectionBypass2$outboundSchema), - z.lazy(() => ListDeploymentAliasesProtectionBypass4$outboundSchema), z.lazy(() => ListDeploymentAliasesProtectionBypass1$outboundSchema), + z.lazy(() => ListDeploymentAliasesProtectionBypass2$outboundSchema), z.lazy(() => ListDeploymentAliasesProtectionBypass3$outboundSchema), + z.lazy(() => ListDeploymentAliasesProtectionBypass4$outboundSchema), ]), ).optional(), }); diff --git a/src/models/removeprojectenvop.ts b/src/models/removeprojectenvop.ts index 9fc21204..9310cfe3 100644 --- a/src/models/removeprojectenvop.ts +++ b/src/models/removeprojectenvop.ts @@ -64,236 +64,85 @@ export type RemoveProjectEnvResponseBodyProjectsResponseType = ClosedEnum< typeof RemoveProjectEnvResponseBodyProjectsResponseType >; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type = - { - FlagsConnectionString: "flags-connection-string", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type - >; - export type RemoveProjectEnvContentHintProjectsResponse15 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type; + type: "flags-connection-string"; projectId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type = - { - IntegrationStoreSecret: "integration-store-secret", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type - >; - export type RemoveProjectEnvContentHintProjectsResponse14 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; integrationConfigurationId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type = - { - PostgresUrlNoSsl: "postgres-url-no-ssl", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type - >; - export type RemoveProjectEnvContentHintProjectsResponse13 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type; + type: "postgres-url-no-ssl"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type = - { - PostgresDatabase: "postgres-database", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type - >; - export type RemoveProjectEnvContentHintProjectsResponse12 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type; + type: "postgres-database"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type = - { - PostgresPassword: "postgres-password", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type - >; - export type RemoveProjectEnvContentHintProjectsResponse11 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type; + type: "postgres-password"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type = - { - PostgresHost: "postgres-host", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type - >; - export type RemoveProjectEnvContentHintProjectsResponse10 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type; + type: "postgres-host"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type = - { - PostgresUser: "postgres-user", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type - >; - export type RemoveProjectEnvContentHintProjectsResponse9 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type; + type: "postgres-user"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type = - { - PostgresPrismaUrl: "postgres-prisma-url", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type - >; - export type RemoveProjectEnvContentHintProjectsResponse8 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type; + type: "postgres-prisma-url"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type = - { - PostgresUrlNonPooling: "postgres-url-non-pooling", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type - >; - export type RemoveProjectEnvContentHintProjectsResponse7 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type; + type: "postgres-url-non-pooling"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type = - { - PostgresUrl: "postgres-url", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type - >; - export type RemoveProjectEnvContentHintProjectsResponse6 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type; + type: "postgres-url"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type = - { - BlobReadWriteToken: "blob-read-write-token", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type - >; - export type RemoveProjectEnvContentHintProjectsResponse5 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type; + type: "blob-read-write-token"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type = - { - RedisRestApiReadOnlyToken: "redis-rest-api-read-only-token", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type - >; - export type RemoveProjectEnvContentHintProjectsResponse4 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type; + type: "redis-rest-api-read-only-token"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type = - { - RedisRestApiToken: "redis-rest-api-token", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type - >; - export type RemoveProjectEnvContentHintProjectsResponse3 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type; + type: "redis-rest-api-token"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type = - { - RedisRestApiUrl: "redis-rest-api-url", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type - >; - export type RemoveProjectEnvContentHintProjectsResponse2 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type; + type: "redis-rest-api-url"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type = - { - RedisUrl: "redis-url", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type - >; - export type RemoveProjectEnvContentHintProjectsResponse1 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type; + type: "redis-url"; storeId: string; }; export type RemoveProjectEnvResponseBodyProjectsResponseContentHint = - | RemoveProjectEnvContentHintProjectsResponse14 | RemoveProjectEnvContentHintProjectsResponse1 | RemoveProjectEnvContentHintProjectsResponse2 | RemoveProjectEnvContentHintProjectsResponse3 @@ -307,6 +156,7 @@ export type RemoveProjectEnvResponseBodyProjectsResponseContentHint = | RemoveProjectEnvContentHintProjectsResponse11 | RemoveProjectEnvContentHintProjectsResponse12 | RemoveProjectEnvContentHintProjectsResponse13 + | RemoveProjectEnvContentHintProjectsResponse14 | RemoveProjectEnvContentHintProjectsResponse15; export const RemoveProjectEnvResponseBodyProjectsResponse200ApplicationJson3Type = @@ -353,7 +203,6 @@ export type RemoveProjectEnvResponseBody3 = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | RemoveProjectEnvContentHintProjectsResponse14 | RemoveProjectEnvContentHintProjectsResponse1 | RemoveProjectEnvContentHintProjectsResponse2 | RemoveProjectEnvContentHintProjectsResponse3 @@ -367,6 +216,7 @@ export type RemoveProjectEnvResponseBody3 = { | RemoveProjectEnvContentHintProjectsResponse11 | RemoveProjectEnvContentHintProjectsResponse12 | RemoveProjectEnvContentHintProjectsResponse13 + | RemoveProjectEnvContentHintProjectsResponse14 | RemoveProjectEnvContentHintProjectsResponse15 | null | undefined; @@ -414,236 +264,85 @@ export type RemoveProjectEnvResponseBodyProjectsType = ClosedEnum< typeof RemoveProjectEnvResponseBodyProjectsType >; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type = - { - FlagsConnectionString: "flags-connection-string", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type - >; - export type RemoveProjectEnvContentHintProjects15 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type; + type: "flags-connection-string"; projectId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type = - { - IntegrationStoreSecret: "integration-store-secret", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type - >; - export type RemoveProjectEnvContentHintProjects14 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; integrationConfigurationId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type = - { - PostgresUrlNoSsl: "postgres-url-no-ssl", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type - >; - export type RemoveProjectEnvContentHintProjects13 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type; + type: "postgres-url-no-ssl"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type = - { - PostgresDatabase: "postgres-database", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type - >; - export type RemoveProjectEnvContentHintProjects12 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type; + type: "postgres-database"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type = - { - PostgresPassword: "postgres-password", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type - >; - export type RemoveProjectEnvContentHintProjects11 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type; + type: "postgres-password"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type = - { - PostgresHost: "postgres-host", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type - >; - export type RemoveProjectEnvContentHintProjects10 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type; + type: "postgres-host"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type = - { - PostgresUser: "postgres-user", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type - >; - export type RemoveProjectEnvContentHintProjects9 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type; + type: "postgres-user"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type = - { - PostgresPrismaUrl: "postgres-prisma-url", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type - >; - export type RemoveProjectEnvContentHintProjects8 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type; + type: "postgres-prisma-url"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type = - { - PostgresUrlNonPooling: "postgres-url-non-pooling", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type - >; - export type RemoveProjectEnvContentHintProjects7 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type; + type: "postgres-url-non-pooling"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type = - { - PostgresUrl: "postgres-url", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type - >; - export type RemoveProjectEnvContentHintProjects6 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type; + type: "postgres-url"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type = - { - BlobReadWriteToken: "blob-read-write-token", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type - >; - export type RemoveProjectEnvContentHintProjects5 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type; + type: "blob-read-write-token"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type = - { - RedisRestApiReadOnlyToken: "redis-rest-api-read-only-token", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type - >; - export type RemoveProjectEnvContentHintProjects4 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type; + type: "redis-rest-api-read-only-token"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type = - { - RedisRestApiToken: "redis-rest-api-token", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type - >; - export type RemoveProjectEnvContentHintProjects3 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type; + type: "redis-rest-api-token"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type = - { - RedisRestApiUrl: "redis-rest-api-url", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type - >; - export type RemoveProjectEnvContentHintProjects2 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type; + type: "redis-rest-api-url"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type = - { - RedisUrl: "redis-url", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type - >; - export type RemoveProjectEnvContentHintProjects1 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type; + type: "redis-url"; storeId: string; }; export type RemoveProjectEnvResponseBodyProjectsContentHint = - | RemoveProjectEnvContentHintProjects14 | RemoveProjectEnvContentHintProjects1 | RemoveProjectEnvContentHintProjects2 | RemoveProjectEnvContentHintProjects3 @@ -657,6 +356,7 @@ export type RemoveProjectEnvResponseBodyProjectsContentHint = | RemoveProjectEnvContentHintProjects11 | RemoveProjectEnvContentHintProjects12 | RemoveProjectEnvContentHintProjects13 + | RemoveProjectEnvContentHintProjects14 | RemoveProjectEnvContentHintProjects15; export const RemoveProjectEnvResponseBodyProjectsResponse200Type = { @@ -702,7 +402,6 @@ export type RemoveProjectEnvResponseBody2 = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | RemoveProjectEnvContentHintProjects14 | RemoveProjectEnvContentHintProjects1 | RemoveProjectEnvContentHintProjects2 | RemoveProjectEnvContentHintProjects3 @@ -716,6 +415,7 @@ export type RemoveProjectEnvResponseBody2 = { | RemoveProjectEnvContentHintProjects11 | RemoveProjectEnvContentHintProjects12 | RemoveProjectEnvContentHintProjects13 + | RemoveProjectEnvContentHintProjects14 | RemoveProjectEnvContentHintProjects15 | null | undefined; @@ -763,223 +463,85 @@ export type RemoveProjectEnvResponseBodyType = ClosedEnum< typeof RemoveProjectEnvResponseBodyType >; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type = - { - FlagsConnectionString: "flags-connection-string", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type - >; - export type RemoveProjectEnvContentHint15 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type; + type: "flags-connection-string"; projectId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type = - { - IntegrationStoreSecret: "integration-store-secret", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type - >; - export type RemoveProjectEnvContentHint14 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; integrationConfigurationId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type = - { - PostgresUrlNoSsl: "postgres-url-no-ssl", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type - >; - export type RemoveProjectEnvContentHint13 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type; + type: "postgres-url-no-ssl"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type = - { - PostgresDatabase: "postgres-database", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type - >; - export type RemoveProjectEnvContentHint12 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type; + type: "postgres-database"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type = - { - PostgresPassword: "postgres-password", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type - >; - export type RemoveProjectEnvContentHint11 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type; + type: "postgres-password"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type = - { - PostgresHost: "postgres-host", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type - >; - export type RemoveProjectEnvContentHint10 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type; + type: "postgres-host"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type = - { - PostgresUser: "postgres-user", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type - >; - export type RemoveProjectEnvContentHint9 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type; + type: "postgres-user"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type = - { - PostgresPrismaUrl: "postgres-prisma-url", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type - >; - export type RemoveProjectEnvContentHint8 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type; + type: "postgres-prisma-url"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type = - { - PostgresUrlNonPooling: "postgres-url-non-pooling", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type - >; - export type RemoveProjectEnvContentHint7 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type; + type: "postgres-url-non-pooling"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType = - { - PostgresUrl: "postgres-url", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType - >; - export type RemoveProjectEnvContentHint6 = { - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType; + type: "postgres-url"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONType = - { - BlobReadWriteToken: "blob-read-write-token", - } as const; -export type RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONType = - ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONType - >; - export type RemoveProjectEnvContentHint5 = { - type: RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONType; + type: "blob-read-write-token"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponse200Type = { - RedisRestApiReadOnlyToken: "redis-rest-api-read-only-token", -} as const; -export type RemoveProjectEnvContentHintProjectsResponse200Type = ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200Type ->; - export type RemoveProjectEnvContentHint4 = { - type: RemoveProjectEnvContentHintProjectsResponse200Type; + type: "redis-rest-api-read-only-token"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsResponseType = { - RedisRestApiToken: "redis-rest-api-token", -} as const; -export type RemoveProjectEnvContentHintProjectsResponseType = ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsResponseType ->; - export type RemoveProjectEnvContentHint3 = { - type: RemoveProjectEnvContentHintProjectsResponseType; + type: "redis-rest-api-token"; storeId: string; }; -export const RemoveProjectEnvContentHintProjectsType = { - RedisRestApiUrl: "redis-rest-api-url", -} as const; -export type RemoveProjectEnvContentHintProjectsType = ClosedEnum< - typeof RemoveProjectEnvContentHintProjectsType ->; - export type RemoveProjectEnvContentHint2 = { - type: RemoveProjectEnvContentHintProjectsType; + type: "redis-rest-api-url"; storeId: string; }; -export const RemoveProjectEnvContentHintType = { - RedisUrl: "redis-url", -} as const; -export type RemoveProjectEnvContentHintType = ClosedEnum< - typeof RemoveProjectEnvContentHintType ->; - export type RemoveProjectEnvContentHint1 = { - type: RemoveProjectEnvContentHintType; + type: "redis-url"; storeId: string; }; export type RemoveProjectEnvResponseBodyContentHint = - | RemoveProjectEnvContentHint14 | RemoveProjectEnvContentHint1 | RemoveProjectEnvContentHint2 | RemoveProjectEnvContentHint3 @@ -993,6 +555,7 @@ export type RemoveProjectEnvResponseBodyContentHint = | RemoveProjectEnvContentHint11 | RemoveProjectEnvContentHint12 | RemoveProjectEnvContentHint13 + | RemoveProjectEnvContentHint14 | RemoveProjectEnvContentHint15; export const RemoveProjectEnvResponseBodyProjectsResponse200ApplicationJSONType = @@ -1036,7 +599,6 @@ export type RemoveProjectEnvResponseBody1 = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | RemoveProjectEnvContentHint14 | RemoveProjectEnvContentHint1 | RemoveProjectEnvContentHint2 | RemoveProjectEnvContentHint3 @@ -1050,6 +612,7 @@ export type RemoveProjectEnvResponseBody1 = { | RemoveProjectEnvContentHint11 | RemoveProjectEnvContentHint12 | RemoveProjectEnvContentHint13 + | RemoveProjectEnvContentHint14 | RemoveProjectEnvContentHint15 | null | undefined; @@ -1202,20 +765,6 @@ export const RemoveProjectEnvResponseBodyProjectsResponseType$outboundSchema: z.ZodNativeEnum = RemoveProjectEnvResponseBodyProjectsResponseType$inboundSchema; -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjectsResponse15$inboundSchema: z.ZodType< @@ -1223,13 +772,12 @@ export const RemoveProjectEnvContentHintProjectsResponse15$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type$inboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjectsResponse15$Outbound = { - type: string; + type: "flags-connection-string"; projectId: string; }; @@ -1240,8 +788,7 @@ export const RemoveProjectEnvContentHintProjectsResponse15$outboundSchema: z.ZodTypeDef, RemoveProjectEnvContentHintProjectsResponse15 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody315Type$outboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); @@ -1271,20 +818,6 @@ export function removeProjectEnvContentHintProjectsResponse15FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjectsResponse14$inboundSchema: z.ZodType< @@ -1292,8 +825,7 @@ export const RemoveProjectEnvContentHintProjectsResponse14$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type$inboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -1301,7 +833,7 @@ export const RemoveProjectEnvContentHintProjectsResponse14$inboundSchema: }); /** @internal */ export type RemoveProjectEnvContentHintProjectsResponse14$Outbound = { - type: string; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; @@ -1315,8 +847,7 @@ export const RemoveProjectEnvContentHintProjectsResponse14$outboundSchema: z.ZodTypeDef, RemoveProjectEnvContentHintProjectsResponse14 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody314Type$outboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -1349,20 +880,6 @@ export function removeProjectEnvContentHintProjectsResponse14FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjectsResponse13$inboundSchema: z.ZodType< @@ -1370,13 +887,12 @@ export const RemoveProjectEnvContentHintProjectsResponse13$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type$inboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjectsResponse13$Outbound = { - type: string; + type: "postgres-url-no-ssl"; storeId: string; }; @@ -1387,8 +903,7 @@ export const RemoveProjectEnvContentHintProjectsResponse13$outboundSchema: z.ZodTypeDef, RemoveProjectEnvContentHintProjectsResponse13 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody313Type$outboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); @@ -1418,20 +933,6 @@ export function removeProjectEnvContentHintProjectsResponse13FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjectsResponse12$inboundSchema: z.ZodType< @@ -1439,13 +940,12 @@ export const RemoveProjectEnvContentHintProjectsResponse12$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type$inboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjectsResponse12$Outbound = { - type: string; + type: "postgres-database"; storeId: string; }; @@ -1456,8 +956,7 @@ export const RemoveProjectEnvContentHintProjectsResponse12$outboundSchema: z.ZodTypeDef, RemoveProjectEnvContentHintProjectsResponse12 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody312Type$outboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); @@ -1487,20 +986,6 @@ export function removeProjectEnvContentHintProjectsResponse12FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjectsResponse11$inboundSchema: z.ZodType< @@ -1508,13 +993,12 @@ export const RemoveProjectEnvContentHintProjectsResponse11$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type$inboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjectsResponse11$Outbound = { - type: string; + type: "postgres-password"; storeId: string; }; @@ -1525,8 +1009,7 @@ export const RemoveProjectEnvContentHintProjectsResponse11$outboundSchema: z.ZodTypeDef, RemoveProjectEnvContentHintProjectsResponse11 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody311Type$outboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); @@ -1556,20 +1039,6 @@ export function removeProjectEnvContentHintProjectsResponse11FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjectsResponse10$inboundSchema: z.ZodType< @@ -1577,13 +1046,12 @@ export const RemoveProjectEnvContentHintProjectsResponse10$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type$inboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjectsResponse10$Outbound = { - type: string; + type: "postgres-host"; storeId: string; }; @@ -1594,8 +1062,7 @@ export const RemoveProjectEnvContentHintProjectsResponse10$outboundSchema: z.ZodTypeDef, RemoveProjectEnvContentHintProjectsResponse10 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody310Type$outboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); @@ -1625,20 +1092,6 @@ export function removeProjectEnvContentHintProjectsResponse10FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjectsResponse9$inboundSchema: z.ZodType< @@ -1646,13 +1099,12 @@ export const RemoveProjectEnvContentHintProjectsResponse9$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type$inboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjectsResponse9$Outbound = { - type: string; + type: "postgres-user"; storeId: string; }; @@ -1663,8 +1115,7 @@ export const RemoveProjectEnvContentHintProjectsResponse9$outboundSchema: z.ZodTypeDef, RemoveProjectEnvContentHintProjectsResponse9 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody39Type$outboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); @@ -1694,20 +1145,6 @@ export function removeProjectEnvContentHintProjectsResponse9FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjectsResponse8$inboundSchema: z.ZodType< @@ -1715,13 +1152,12 @@ export const RemoveProjectEnvContentHintProjectsResponse8$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type$inboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjectsResponse8$Outbound = { - type: string; + type: "postgres-prisma-url"; storeId: string; }; @@ -1732,8 +1168,7 @@ export const RemoveProjectEnvContentHintProjectsResponse8$outboundSchema: z.ZodTypeDef, RemoveProjectEnvContentHintProjectsResponse8 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody38Type$outboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); @@ -1763,20 +1198,6 @@ export function removeProjectEnvContentHintProjectsResponse8FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjectsResponse7$inboundSchema: z.ZodType< @@ -1784,13 +1205,12 @@ export const RemoveProjectEnvContentHintProjectsResponse7$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type$inboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjectsResponse7$Outbound = { - type: string; + type: "postgres-url-non-pooling"; storeId: string; }; @@ -1801,8 +1221,7 @@ export const RemoveProjectEnvContentHintProjectsResponse7$outboundSchema: z.ZodTypeDef, RemoveProjectEnvContentHintProjectsResponse7 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody37Type$outboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); @@ -1832,20 +1251,6 @@ export function removeProjectEnvContentHintProjectsResponse7FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjectsResponse6$inboundSchema: z.ZodType< @@ -1853,13 +1258,12 @@ export const RemoveProjectEnvContentHintProjectsResponse6$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type$inboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjectsResponse6$Outbound = { - type: string; + type: "postgres-url"; storeId: string; }; @@ -1870,8 +1274,7 @@ export const RemoveProjectEnvContentHintProjectsResponse6$outboundSchema: z.ZodTypeDef, RemoveProjectEnvContentHintProjectsResponse6 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody36Type$outboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); @@ -1901,20 +1304,6 @@ export function removeProjectEnvContentHintProjectsResponse6FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjectsResponse5$inboundSchema: z.ZodType< @@ -1922,13 +1311,12 @@ export const RemoveProjectEnvContentHintProjectsResponse5$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type$inboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjectsResponse5$Outbound = { - type: string; + type: "blob-read-write-token"; storeId: string; }; @@ -1939,8 +1327,7 @@ export const RemoveProjectEnvContentHintProjectsResponse5$outboundSchema: z.ZodTypeDef, RemoveProjectEnvContentHintProjectsResponse5 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody35Type$outboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); @@ -1970,20 +1357,6 @@ export function removeProjectEnvContentHintProjectsResponse5FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjectsResponse4$inboundSchema: z.ZodType< @@ -1991,13 +1364,12 @@ export const RemoveProjectEnvContentHintProjectsResponse4$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type$inboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjectsResponse4$Outbound = { - type: string; + type: "redis-rest-api-read-only-token"; storeId: string; }; @@ -2008,8 +1380,7 @@ export const RemoveProjectEnvContentHintProjectsResponse4$outboundSchema: z.ZodTypeDef, RemoveProjectEnvContentHintProjectsResponse4 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody34Type$outboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); @@ -2039,20 +1410,6 @@ export function removeProjectEnvContentHintProjectsResponse4FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjectsResponse3$inboundSchema: z.ZodType< @@ -2060,13 +1417,12 @@ export const RemoveProjectEnvContentHintProjectsResponse3$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type$inboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjectsResponse3$Outbound = { - type: string; + type: "redis-rest-api-token"; storeId: string; }; @@ -2077,8 +1433,7 @@ export const RemoveProjectEnvContentHintProjectsResponse3$outboundSchema: z.ZodTypeDef, RemoveProjectEnvContentHintProjectsResponse3 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody33Type$outboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); @@ -2108,20 +1463,6 @@ export function removeProjectEnvContentHintProjectsResponse3FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjectsResponse2$inboundSchema: z.ZodType< @@ -2129,13 +1470,12 @@ export const RemoveProjectEnvContentHintProjectsResponse2$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type$inboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjectsResponse2$Outbound = { - type: string; + type: "redis-rest-api-url"; storeId: string; }; @@ -2146,8 +1486,7 @@ export const RemoveProjectEnvContentHintProjectsResponse2$outboundSchema: z.ZodTypeDef, RemoveProjectEnvContentHintProjectsResponse2 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody32Type$outboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); @@ -2177,20 +1516,6 @@ export function removeProjectEnvContentHintProjectsResponse2FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjectsResponse1$inboundSchema: z.ZodType< @@ -2198,13 +1523,12 @@ export const RemoveProjectEnvContentHintProjectsResponse1$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type$inboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjectsResponse1$Outbound = { - type: string; + type: "redis-url"; storeId: string; }; @@ -2215,8 +1539,7 @@ export const RemoveProjectEnvContentHintProjectsResponse1$outboundSchema: z.ZodTypeDef, RemoveProjectEnvContentHintProjectsResponse1 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody3Type$outboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); @@ -2253,7 +1576,6 @@ export const RemoveProjectEnvResponseBodyProjectsResponseContentHint$inboundSche z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => RemoveProjectEnvContentHintProjectsResponse14$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjectsResponse1$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjectsResponse2$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjectsResponse3$inboundSchema), @@ -2267,11 +1589,11 @@ export const RemoveProjectEnvResponseBodyProjectsResponseContentHint$inboundSche z.lazy(() => RemoveProjectEnvContentHintProjectsResponse11$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjectsResponse12$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjectsResponse13$inboundSchema), + z.lazy(() => RemoveProjectEnvContentHintProjectsResponse14$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjectsResponse15$inboundSchema), ]); /** @internal */ export type RemoveProjectEnvResponseBodyProjectsResponseContentHint$Outbound = - | RemoveProjectEnvContentHintProjectsResponse14$Outbound | RemoveProjectEnvContentHintProjectsResponse1$Outbound | RemoveProjectEnvContentHintProjectsResponse2$Outbound | RemoveProjectEnvContentHintProjectsResponse3$Outbound @@ -2285,6 +1607,7 @@ export type RemoveProjectEnvResponseBodyProjectsResponseContentHint$Outbound = | RemoveProjectEnvContentHintProjectsResponse11$Outbound | RemoveProjectEnvContentHintProjectsResponse12$Outbound | RemoveProjectEnvContentHintProjectsResponse13$Outbound + | RemoveProjectEnvContentHintProjectsResponse14$Outbound | RemoveProjectEnvContentHintProjectsResponse15$Outbound; /** @internal */ @@ -2294,7 +1617,6 @@ export const RemoveProjectEnvResponseBodyProjectsResponseContentHint$outboundSch z.ZodTypeDef, RemoveProjectEnvResponseBodyProjectsResponseContentHint > = z.union([ - z.lazy(() => RemoveProjectEnvContentHintProjectsResponse14$outboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjectsResponse1$outboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjectsResponse2$outboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjectsResponse3$outboundSchema), @@ -2308,6 +1630,7 @@ export const RemoveProjectEnvResponseBodyProjectsResponseContentHint$outboundSch z.lazy(() => RemoveProjectEnvContentHintProjectsResponse11$outboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjectsResponse12$outboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjectsResponse13$outboundSchema), + z.lazy(() => RemoveProjectEnvContentHintProjectsResponse14$outboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjectsResponse15$outboundSchema), ]); @@ -2430,7 +1753,6 @@ export const RemoveProjectEnvResponseBody3$inboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => RemoveProjectEnvContentHintProjectsResponse14$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjectsResponse1$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjectsResponse2$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjectsResponse3$inboundSchema), @@ -2444,6 +1766,7 @@ export const RemoveProjectEnvResponseBody3$inboundSchema: z.ZodType< z.lazy(() => RemoveProjectEnvContentHintProjectsResponse11$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjectsResponse12$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjectsResponse13$inboundSchema), + z.lazy(() => RemoveProjectEnvContentHintProjectsResponse14$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjectsResponse15$inboundSchema), ]), ).optional(), @@ -2474,7 +1797,6 @@ export type RemoveProjectEnvResponseBody3$Outbound = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | RemoveProjectEnvContentHintProjectsResponse14$Outbound | RemoveProjectEnvContentHintProjectsResponse1$Outbound | RemoveProjectEnvContentHintProjectsResponse2$Outbound | RemoveProjectEnvContentHintProjectsResponse3$Outbound @@ -2488,6 +1810,7 @@ export type RemoveProjectEnvResponseBody3$Outbound = { | RemoveProjectEnvContentHintProjectsResponse11$Outbound | RemoveProjectEnvContentHintProjectsResponse12$Outbound | RemoveProjectEnvContentHintProjectsResponse13$Outbound + | RemoveProjectEnvContentHintProjectsResponse14$Outbound | RemoveProjectEnvContentHintProjectsResponse15$Outbound | null | undefined; @@ -2526,11 +1849,10 @@ export const RemoveProjectEnvResponseBody3$outboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ + z.lazy(() => RemoveProjectEnvContentHintProjectsResponse1$outboundSchema), z.lazy(() => - RemoveProjectEnvContentHintProjectsResponse14$outboundSchema + RemoveProjectEnvContentHintProjectsResponse2$outboundSchema ), - z.lazy(() => RemoveProjectEnvContentHintProjectsResponse1$outboundSchema), - z.lazy(() => RemoveProjectEnvContentHintProjectsResponse2$outboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjectsResponse3$outboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjectsResponse4$outboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjectsResponse5$outboundSchema), @@ -2550,6 +1872,9 @@ export const RemoveProjectEnvResponseBody3$outboundSchema: z.ZodType< z.lazy(() => RemoveProjectEnvContentHintProjectsResponse13$outboundSchema ), + z.lazy(() => + RemoveProjectEnvContentHintProjectsResponse14$outboundSchema + ), z.lazy(() => RemoveProjectEnvContentHintProjectsResponse15$outboundSchema ), @@ -2659,33 +1984,18 @@ export const RemoveProjectEnvResponseBodyProjectsType$outboundSchema: z.ZodNativeEnum = RemoveProjectEnvResponseBodyProjectsType$inboundSchema; -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjects15$inboundSchema: z.ZodType< RemoveProjectEnvContentHintProjects15, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type$inboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjects15$Outbound = { - type: string; + type: "flags-connection-string"; projectId: string; }; @@ -2695,8 +2005,7 @@ export const RemoveProjectEnvContentHintProjects15$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHintProjects15 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody215Type$outboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); @@ -2720,28 +2029,13 @@ export function removeProjectEnvContentHintProjects15FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjects14$inboundSchema: z.ZodType< RemoveProjectEnvContentHintProjects14, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type$inboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -2749,7 +2043,7 @@ export const RemoveProjectEnvContentHintProjects14$inboundSchema: z.ZodType< }); /** @internal */ export type RemoveProjectEnvContentHintProjects14$Outbound = { - type: string; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; @@ -2762,8 +2056,7 @@ export const RemoveProjectEnvContentHintProjects14$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHintProjects14 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody214Type$outboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -2790,33 +2083,18 @@ export function removeProjectEnvContentHintProjects14FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjects13$inboundSchema: z.ZodType< RemoveProjectEnvContentHintProjects13, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type$inboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjects13$Outbound = { - type: string; + type: "postgres-url-no-ssl"; storeId: string; }; @@ -2826,8 +2104,7 @@ export const RemoveProjectEnvContentHintProjects13$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHintProjects13 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody213Type$outboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); @@ -2851,33 +2128,18 @@ export function removeProjectEnvContentHintProjects13FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjects12$inboundSchema: z.ZodType< RemoveProjectEnvContentHintProjects12, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type$inboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjects12$Outbound = { - type: string; + type: "postgres-database"; storeId: string; }; @@ -2887,8 +2149,7 @@ export const RemoveProjectEnvContentHintProjects12$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHintProjects12 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody212Type$outboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); @@ -2912,33 +2173,18 @@ export function removeProjectEnvContentHintProjects12FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjects11$inboundSchema: z.ZodType< RemoveProjectEnvContentHintProjects11, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type$inboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjects11$Outbound = { - type: string; + type: "postgres-password"; storeId: string; }; @@ -2948,8 +2194,7 @@ export const RemoveProjectEnvContentHintProjects11$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHintProjects11 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody211Type$outboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); @@ -2973,33 +2218,18 @@ export function removeProjectEnvContentHintProjects11FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjects10$inboundSchema: z.ZodType< RemoveProjectEnvContentHintProjects10, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type$inboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjects10$Outbound = { - type: string; + type: "postgres-host"; storeId: string; }; @@ -3009,8 +2239,7 @@ export const RemoveProjectEnvContentHintProjects10$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHintProjects10 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody210Type$outboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); @@ -3034,33 +2263,18 @@ export function removeProjectEnvContentHintProjects10FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjects9$inboundSchema: z.ZodType< RemoveProjectEnvContentHintProjects9, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type$inboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjects9$Outbound = { - type: string; + type: "postgres-user"; storeId: string; }; @@ -3070,8 +2284,7 @@ export const RemoveProjectEnvContentHintProjects9$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHintProjects9 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody29Type$outboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); @@ -3095,33 +2308,18 @@ export function removeProjectEnvContentHintProjects9FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjects8$inboundSchema: z.ZodType< RemoveProjectEnvContentHintProjects8, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type$inboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjects8$Outbound = { - type: string; + type: "postgres-prisma-url"; storeId: string; }; @@ -3131,8 +2329,7 @@ export const RemoveProjectEnvContentHintProjects8$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHintProjects8 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody28Type$outboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); @@ -3156,33 +2353,18 @@ export function removeProjectEnvContentHintProjects8FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjects7$inboundSchema: z.ZodType< RemoveProjectEnvContentHintProjects7, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type$inboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjects7$Outbound = { - type: string; + type: "postgres-url-non-pooling"; storeId: string; }; @@ -3192,8 +2374,7 @@ export const RemoveProjectEnvContentHintProjects7$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHintProjects7 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody27Type$outboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); @@ -3217,33 +2398,18 @@ export function removeProjectEnvContentHintProjects7FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjects6$inboundSchema: z.ZodType< RemoveProjectEnvContentHintProjects6, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type$inboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjects6$Outbound = { - type: string; + type: "postgres-url"; storeId: string; }; @@ -3253,8 +2419,7 @@ export const RemoveProjectEnvContentHintProjects6$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHintProjects6 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody26Type$outboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); @@ -3278,33 +2443,18 @@ export function removeProjectEnvContentHintProjects6FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjects5$inboundSchema: z.ZodType< RemoveProjectEnvContentHintProjects5, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type$inboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjects5$Outbound = { - type: string; + type: "blob-read-write-token"; storeId: string; }; @@ -3314,8 +2464,7 @@ export const RemoveProjectEnvContentHintProjects5$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHintProjects5 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody25Type$outboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); @@ -3339,33 +2488,18 @@ export function removeProjectEnvContentHintProjects5FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjects4$inboundSchema: z.ZodType< RemoveProjectEnvContentHintProjects4, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type$inboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjects4$Outbound = { - type: string; + type: "redis-rest-api-read-only-token"; storeId: string; }; @@ -3375,8 +2509,7 @@ export const RemoveProjectEnvContentHintProjects4$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHintProjects4 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody24Type$outboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); @@ -3400,33 +2533,18 @@ export function removeProjectEnvContentHintProjects4FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjects3$inboundSchema: z.ZodType< RemoveProjectEnvContentHintProjects3, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type$inboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjects3$Outbound = { - type: string; + type: "redis-rest-api-token"; storeId: string; }; @@ -3436,8 +2554,7 @@ export const RemoveProjectEnvContentHintProjects3$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHintProjects3 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody23Type$outboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); @@ -3461,33 +2578,18 @@ export function removeProjectEnvContentHintProjects3FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjects2$inboundSchema: z.ZodType< RemoveProjectEnvContentHintProjects2, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type$inboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjects2$Outbound = { - type: string; + type: "redis-rest-api-url"; storeId: string; }; @@ -3497,8 +2599,7 @@ export const RemoveProjectEnvContentHintProjects2$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHintProjects2 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody22Type$outboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); @@ -3522,33 +2623,18 @@ export function removeProjectEnvContentHintProjects2FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHintProjects1$inboundSchema: z.ZodType< RemoveProjectEnvContentHintProjects1, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type$inboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHintProjects1$Outbound = { - type: string; + type: "redis-url"; storeId: string; }; @@ -3558,8 +2644,7 @@ export const RemoveProjectEnvContentHintProjects1$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHintProjects1 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody2Type$outboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); @@ -3590,7 +2675,6 @@ export const RemoveProjectEnvResponseBodyProjectsContentHint$inboundSchema: z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => RemoveProjectEnvContentHintProjects14$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects1$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects2$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects3$inboundSchema), @@ -3604,11 +2688,11 @@ export const RemoveProjectEnvResponseBodyProjectsContentHint$inboundSchema: z.lazy(() => RemoveProjectEnvContentHintProjects11$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects12$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects13$inboundSchema), + z.lazy(() => RemoveProjectEnvContentHintProjects14$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects15$inboundSchema), ]); /** @internal */ export type RemoveProjectEnvResponseBodyProjectsContentHint$Outbound = - | RemoveProjectEnvContentHintProjects14$Outbound | RemoveProjectEnvContentHintProjects1$Outbound | RemoveProjectEnvContentHintProjects2$Outbound | RemoveProjectEnvContentHintProjects3$Outbound @@ -3622,6 +2706,7 @@ export type RemoveProjectEnvResponseBodyProjectsContentHint$Outbound = | RemoveProjectEnvContentHintProjects11$Outbound | RemoveProjectEnvContentHintProjects12$Outbound | RemoveProjectEnvContentHintProjects13$Outbound + | RemoveProjectEnvContentHintProjects14$Outbound | RemoveProjectEnvContentHintProjects15$Outbound; /** @internal */ @@ -3631,7 +2716,6 @@ export const RemoveProjectEnvResponseBodyProjectsContentHint$outboundSchema: z.ZodTypeDef, RemoveProjectEnvResponseBodyProjectsContentHint > = z.union([ - z.lazy(() => RemoveProjectEnvContentHintProjects14$outboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects1$outboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects2$outboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects3$outboundSchema), @@ -3645,6 +2729,7 @@ export const RemoveProjectEnvResponseBodyProjectsContentHint$outboundSchema: z.lazy(() => RemoveProjectEnvContentHintProjects11$outboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects12$outboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects13$outboundSchema), + z.lazy(() => RemoveProjectEnvContentHintProjects14$outboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects15$outboundSchema), ]); @@ -3762,7 +2847,6 @@ export const RemoveProjectEnvResponseBody2$inboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => RemoveProjectEnvContentHintProjects14$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects1$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects2$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects3$inboundSchema), @@ -3776,6 +2860,7 @@ export const RemoveProjectEnvResponseBody2$inboundSchema: z.ZodType< z.lazy(() => RemoveProjectEnvContentHintProjects11$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects12$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects13$inboundSchema), + z.lazy(() => RemoveProjectEnvContentHintProjects14$inboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects15$inboundSchema), ]), ).optional(), @@ -3807,7 +2892,6 @@ export type RemoveProjectEnvResponseBody2$Outbound = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | RemoveProjectEnvContentHintProjects14$Outbound | RemoveProjectEnvContentHintProjects1$Outbound | RemoveProjectEnvContentHintProjects2$Outbound | RemoveProjectEnvContentHintProjects3$Outbound @@ -3821,6 +2905,7 @@ export type RemoveProjectEnvResponseBody2$Outbound = { | RemoveProjectEnvContentHintProjects11$Outbound | RemoveProjectEnvContentHintProjects12$Outbound | RemoveProjectEnvContentHintProjects13$Outbound + | RemoveProjectEnvContentHintProjects14$Outbound | RemoveProjectEnvContentHintProjects15$Outbound | null | undefined; @@ -3860,7 +2945,6 @@ export const RemoveProjectEnvResponseBody2$outboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => RemoveProjectEnvContentHintProjects14$outboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects1$outboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects2$outboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects3$outboundSchema), @@ -3874,6 +2958,7 @@ export const RemoveProjectEnvResponseBody2$outboundSchema: z.ZodType< z.lazy(() => RemoveProjectEnvContentHintProjects11$outboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects12$outboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects13$outboundSchema), + z.lazy(() => RemoveProjectEnvContentHintProjects14$outboundSchema), z.lazy(() => RemoveProjectEnvContentHintProjects15$outboundSchema), ]), ).optional(), @@ -3976,33 +3061,18 @@ export const RemoveProjectEnvResponseBodyType$outboundSchema: z.ZodNativeEnum< typeof RemoveProjectEnvResponseBodyType > = RemoveProjectEnvResponseBodyType$inboundSchema; -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHint15$inboundSchema: z.ZodType< RemoveProjectEnvContentHint15, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type$inboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHint15$Outbound = { - type: string; + type: "flags-connection-string"; projectId: string; }; @@ -4012,8 +3082,7 @@ export const RemoveProjectEnvContentHint15$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHint15 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody115Type$outboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); @@ -4036,28 +3105,13 @@ export function removeProjectEnvContentHint15FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHint14$inboundSchema: z.ZodType< RemoveProjectEnvContentHint14, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type$inboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -4065,7 +3119,7 @@ export const RemoveProjectEnvContentHint14$inboundSchema: z.ZodType< }); /** @internal */ export type RemoveProjectEnvContentHint14$Outbound = { - type: string; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; @@ -4078,8 +3132,7 @@ export const RemoveProjectEnvContentHint14$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHint14 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody114Type$outboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -4105,33 +3158,18 @@ export function removeProjectEnvContentHint14FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHint13$inboundSchema: z.ZodType< RemoveProjectEnvContentHint13, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type$inboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHint13$Outbound = { - type: string; + type: "postgres-url-no-ssl"; storeId: string; }; @@ -4141,8 +3179,7 @@ export const RemoveProjectEnvContentHint13$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHint13 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody113Type$outboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); @@ -4165,33 +3202,18 @@ export function removeProjectEnvContentHint13FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHint12$inboundSchema: z.ZodType< RemoveProjectEnvContentHint12, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type$inboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHint12$Outbound = { - type: string; + type: "postgres-database"; storeId: string; }; @@ -4201,8 +3223,7 @@ export const RemoveProjectEnvContentHint12$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHint12 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody112Type$outboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); @@ -4225,33 +3246,18 @@ export function removeProjectEnvContentHint12FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHint11$inboundSchema: z.ZodType< RemoveProjectEnvContentHint11, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type$inboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHint11$Outbound = { - type: string; + type: "postgres-password"; storeId: string; }; @@ -4261,8 +3267,7 @@ export const RemoveProjectEnvContentHint11$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHint11 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody111Type$outboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); @@ -4285,33 +3290,18 @@ export function removeProjectEnvContentHint11FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHint10$inboundSchema: z.ZodType< RemoveProjectEnvContentHint10, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type$inboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHint10$Outbound = { - type: string; + type: "postgres-host"; storeId: string; }; @@ -4321,8 +3311,7 @@ export const RemoveProjectEnvContentHint10$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHint10 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody110Type$outboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); @@ -4345,33 +3334,18 @@ export function removeProjectEnvContentHint10FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHint9$inboundSchema: z.ZodType< RemoveProjectEnvContentHint9, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type$inboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHint9$Outbound = { - type: string; + type: "postgres-user"; storeId: string; }; @@ -4381,8 +3355,7 @@ export const RemoveProjectEnvContentHint9$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHint9 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody19Type$outboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); @@ -4405,33 +3378,18 @@ export function removeProjectEnvContentHint9FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHint8$inboundSchema: z.ZodType< RemoveProjectEnvContentHint8, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type$inboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHint8$Outbound = { - type: string; + type: "postgres-prisma-url"; storeId: string; }; @@ -4441,8 +3399,7 @@ export const RemoveProjectEnvContentHint8$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHint8 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody18Type$outboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); @@ -4465,33 +3422,18 @@ export function removeProjectEnvContentHint8FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHint7$inboundSchema: z.ZodType< RemoveProjectEnvContentHint7, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type$inboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHint7$Outbound = { - type: string; + type: "postgres-url-non-pooling"; storeId: string; }; @@ -4501,8 +3443,7 @@ export const RemoveProjectEnvContentHint7$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHint7 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBody1Type$outboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); @@ -4525,33 +3466,18 @@ export function removeProjectEnvContentHint7FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHint6$inboundSchema: z.ZodType< RemoveProjectEnvContentHint6, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHint6$Outbound = { - type: string; + type: "postgres-url"; storeId: string; }; @@ -4561,8 +3487,7 @@ export const RemoveProjectEnvContentHint6$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHint6 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); @@ -4585,33 +3510,18 @@ export function removeProjectEnvContentHint6FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONType$inboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONType - > = z.nativeEnum( - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONType, - ); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONType$outboundSchema: - z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONType - > = - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONType$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHint5$inboundSchema: z.ZodType< RemoveProjectEnvContentHint5, z.ZodTypeDef, unknown > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONType$inboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHint5$Outbound = { - type: string; + type: "blob-read-write-token"; storeId: string; }; @@ -4621,8 +3531,7 @@ export const RemoveProjectEnvContentHint5$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHint5 > = z.object({ - type: - RemoveProjectEnvContentHintProjectsResponse200ApplicationJSONType$outboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); @@ -4645,27 +3554,18 @@ export function removeProjectEnvContentHint5FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200Type$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(RemoveProjectEnvContentHintProjectsResponse200Type); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponse200Type$outboundSchema: - z.ZodNativeEnum = - RemoveProjectEnvContentHintProjectsResponse200Type$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHint4$inboundSchema: z.ZodType< RemoveProjectEnvContentHint4, z.ZodTypeDef, unknown > = z.object({ - type: RemoveProjectEnvContentHintProjectsResponse200Type$inboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHint4$Outbound = { - type: string; + type: "redis-rest-api-read-only-token"; storeId: string; }; @@ -4675,7 +3575,7 @@ export const RemoveProjectEnvContentHint4$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHint4 > = z.object({ - type: RemoveProjectEnvContentHintProjectsResponse200Type$outboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); @@ -4698,27 +3598,18 @@ export function removeProjectEnvContentHint4FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponseType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(RemoveProjectEnvContentHintProjectsResponseType); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsResponseType$outboundSchema: - z.ZodNativeEnum = - RemoveProjectEnvContentHintProjectsResponseType$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHint3$inboundSchema: z.ZodType< RemoveProjectEnvContentHint3, z.ZodTypeDef, unknown > = z.object({ - type: RemoveProjectEnvContentHintProjectsResponseType$inboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHint3$Outbound = { - type: string; + type: "redis-rest-api-token"; storeId: string; }; @@ -4728,7 +3619,7 @@ export const RemoveProjectEnvContentHint3$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHint3 > = z.object({ - type: RemoveProjectEnvContentHintProjectsResponseType$outboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); @@ -4751,27 +3642,18 @@ export function removeProjectEnvContentHint3FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintProjectsType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(RemoveProjectEnvContentHintProjectsType); -/** @internal */ -export const RemoveProjectEnvContentHintProjectsType$outboundSchema: - z.ZodNativeEnum = - RemoveProjectEnvContentHintProjectsType$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHint2$inboundSchema: z.ZodType< RemoveProjectEnvContentHint2, z.ZodTypeDef, unknown > = z.object({ - type: RemoveProjectEnvContentHintProjectsType$inboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHint2$Outbound = { - type: string; + type: "redis-rest-api-url"; storeId: string; }; @@ -4781,7 +3663,7 @@ export const RemoveProjectEnvContentHint2$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHint2 > = z.object({ - type: RemoveProjectEnvContentHintProjectsType$outboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); @@ -4804,27 +3686,18 @@ export function removeProjectEnvContentHint2FromJSON( ); } -/** @internal */ -export const RemoveProjectEnvContentHintType$inboundSchema: z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintType -> = z.nativeEnum(RemoveProjectEnvContentHintType); -/** @internal */ -export const RemoveProjectEnvContentHintType$outboundSchema: z.ZodNativeEnum< - typeof RemoveProjectEnvContentHintType -> = RemoveProjectEnvContentHintType$inboundSchema; - /** @internal */ export const RemoveProjectEnvContentHint1$inboundSchema: z.ZodType< RemoveProjectEnvContentHint1, z.ZodTypeDef, unknown > = z.object({ - type: RemoveProjectEnvContentHintType$inboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); /** @internal */ export type RemoveProjectEnvContentHint1$Outbound = { - type: string; + type: "redis-url"; storeId: string; }; @@ -4834,7 +3707,7 @@ export const RemoveProjectEnvContentHint1$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvContentHint1 > = z.object({ - type: RemoveProjectEnvContentHintType$outboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); @@ -4863,7 +3736,6 @@ export const RemoveProjectEnvResponseBodyContentHint$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => RemoveProjectEnvContentHint14$inboundSchema), z.lazy(() => RemoveProjectEnvContentHint1$inboundSchema), z.lazy(() => RemoveProjectEnvContentHint2$inboundSchema), z.lazy(() => RemoveProjectEnvContentHint3$inboundSchema), @@ -4877,11 +3749,11 @@ export const RemoveProjectEnvResponseBodyContentHint$inboundSchema: z.ZodType< z.lazy(() => RemoveProjectEnvContentHint11$inboundSchema), z.lazy(() => RemoveProjectEnvContentHint12$inboundSchema), z.lazy(() => RemoveProjectEnvContentHint13$inboundSchema), + z.lazy(() => RemoveProjectEnvContentHint14$inboundSchema), z.lazy(() => RemoveProjectEnvContentHint15$inboundSchema), ]); /** @internal */ export type RemoveProjectEnvResponseBodyContentHint$Outbound = - | RemoveProjectEnvContentHint14$Outbound | RemoveProjectEnvContentHint1$Outbound | RemoveProjectEnvContentHint2$Outbound | RemoveProjectEnvContentHint3$Outbound @@ -4895,6 +3767,7 @@ export type RemoveProjectEnvResponseBodyContentHint$Outbound = | RemoveProjectEnvContentHint11$Outbound | RemoveProjectEnvContentHint12$Outbound | RemoveProjectEnvContentHint13$Outbound + | RemoveProjectEnvContentHint14$Outbound | RemoveProjectEnvContentHint15$Outbound; /** @internal */ @@ -4903,7 +3776,6 @@ export const RemoveProjectEnvResponseBodyContentHint$outboundSchema: z.ZodType< z.ZodTypeDef, RemoveProjectEnvResponseBodyContentHint > = z.union([ - z.lazy(() => RemoveProjectEnvContentHint14$outboundSchema), z.lazy(() => RemoveProjectEnvContentHint1$outboundSchema), z.lazy(() => RemoveProjectEnvContentHint2$outboundSchema), z.lazy(() => RemoveProjectEnvContentHint3$outboundSchema), @@ -4917,6 +3789,7 @@ export const RemoveProjectEnvResponseBodyContentHint$outboundSchema: z.ZodType< z.lazy(() => RemoveProjectEnvContentHint11$outboundSchema), z.lazy(() => RemoveProjectEnvContentHint12$outboundSchema), z.lazy(() => RemoveProjectEnvContentHint13$outboundSchema), + z.lazy(() => RemoveProjectEnvContentHint14$outboundSchema), z.lazy(() => RemoveProjectEnvContentHint15$outboundSchema), ]); @@ -5042,7 +3915,6 @@ export const RemoveProjectEnvResponseBody1$inboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => RemoveProjectEnvContentHint14$inboundSchema), z.lazy(() => RemoveProjectEnvContentHint1$inboundSchema), z.lazy(() => RemoveProjectEnvContentHint2$inboundSchema), z.lazy(() => RemoveProjectEnvContentHint3$inboundSchema), @@ -5056,6 +3928,7 @@ export const RemoveProjectEnvResponseBody1$inboundSchema: z.ZodType< z.lazy(() => RemoveProjectEnvContentHint11$inboundSchema), z.lazy(() => RemoveProjectEnvContentHint12$inboundSchema), z.lazy(() => RemoveProjectEnvContentHint13$inboundSchema), + z.lazy(() => RemoveProjectEnvContentHint14$inboundSchema), z.lazy(() => RemoveProjectEnvContentHint15$inboundSchema), ]), ).optional(), @@ -5084,7 +3957,6 @@ export type RemoveProjectEnvResponseBody1$Outbound = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | RemoveProjectEnvContentHint14$Outbound | RemoveProjectEnvContentHint1$Outbound | RemoveProjectEnvContentHint2$Outbound | RemoveProjectEnvContentHint3$Outbound @@ -5098,6 +3970,7 @@ export type RemoveProjectEnvResponseBody1$Outbound = { | RemoveProjectEnvContentHint11$Outbound | RemoveProjectEnvContentHint12$Outbound | RemoveProjectEnvContentHint13$Outbound + | RemoveProjectEnvContentHint14$Outbound | RemoveProjectEnvContentHint15$Outbound | null | undefined; @@ -5136,7 +4009,6 @@ export const RemoveProjectEnvResponseBody1$outboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => RemoveProjectEnvContentHint14$outboundSchema), z.lazy(() => RemoveProjectEnvContentHint1$outboundSchema), z.lazy(() => RemoveProjectEnvContentHint2$outboundSchema), z.lazy(() => RemoveProjectEnvContentHint3$outboundSchema), @@ -5150,6 +4022,7 @@ export const RemoveProjectEnvResponseBody1$outboundSchema: z.ZodType< z.lazy(() => RemoveProjectEnvContentHint11$outboundSchema), z.lazy(() => RemoveProjectEnvContentHint12$outboundSchema), z.lazy(() => RemoveProjectEnvContentHint13$outboundSchema), + z.lazy(() => RemoveProjectEnvContentHint14$outboundSchema), z.lazy(() => RemoveProjectEnvContentHint15$outboundSchema), ]), ).optional(), diff --git a/src/models/renewdomainop.ts b/src/models/renewdomainop.ts index f40f22f8..023f2aba 100644 --- a/src/models/renewdomainop.ts +++ b/src/models/renewdomainop.ts @@ -136,7 +136,7 @@ export type RenewDomainRequest = { * NotAuthorizedForScope */ export type RenewDomainDomainsRegistrarResponseResponseBody = - | NotAuthorizedForScope + | (NotAuthorizedForScope & { code: "not_authorized_for_scope" }) | Forbidden; /** @@ -353,10 +353,15 @@ export const RenewDomainDomainsRegistrarResponseResponseBody$inboundSchema: RenewDomainDomainsRegistrarResponseResponseBody, z.ZodTypeDef, unknown - > = z.union([NotAuthorizedForScope$inboundSchema, Forbidden$inboundSchema]); + > = z.union([ + NotAuthorizedForScope$inboundSchema.and( + z.object({ code: z.literal("not_authorized_for_scope") }), + ), + Forbidden$inboundSchema, + ]); /** @internal */ export type RenewDomainDomainsRegistrarResponseResponseBody$Outbound = - | NotAuthorizedForScope$Outbound + | (NotAuthorizedForScope$Outbound & { code: "not_authorized_for_scope" }) | Forbidden$Outbound; /** @internal */ @@ -365,7 +370,12 @@ export const RenewDomainDomainsRegistrarResponseResponseBody$outboundSchema: RenewDomainDomainsRegistrarResponseResponseBody$Outbound, z.ZodTypeDef, unknown - > = z.union([NotAuthorizedForScope$outboundSchema, Forbidden$outboundSchema]); + > = z.union([ + NotAuthorizedForScope$outboundSchema.and( + z.object({ code: z.literal("not_authorized_for_scope") }), + ), + Forbidden$outboundSchema, + ]); export function renewDomainDomainsRegistrarResponseResponseBodyToJSON( renewDomainDomainsRegistrarResponseResponseBody: diff --git a/src/models/transferindomainop.ts b/src/models/transferindomainop.ts index 5880f960..fa342575 100644 --- a/src/models/transferindomainop.ts +++ b/src/models/transferindomainop.ts @@ -147,7 +147,7 @@ export type TransferInDomainRequest = { * NotAuthorizedForScope */ export type TransferInDomainDomainsRegistrarResponseResponseBody = - | NotAuthorizedForScope + | (NotAuthorizedForScope & { code: "not_authorized_for_scope" }) | Forbidden; /** @@ -376,10 +376,15 @@ export const TransferInDomainDomainsRegistrarResponseResponseBody$inboundSchema: TransferInDomainDomainsRegistrarResponseResponseBody, z.ZodTypeDef, unknown - > = z.union([NotAuthorizedForScope$inboundSchema, Forbidden$inboundSchema]); + > = z.union([ + NotAuthorizedForScope$inboundSchema.and( + z.object({ code: z.literal("not_authorized_for_scope") }), + ), + Forbidden$inboundSchema, + ]); /** @internal */ export type TransferInDomainDomainsRegistrarResponseResponseBody$Outbound = - | NotAuthorizedForScope$Outbound + | (NotAuthorizedForScope$Outbound & { code: "not_authorized_for_scope" }) | Forbidden$Outbound; /** @internal */ @@ -388,7 +393,12 @@ export const TransferInDomainDomainsRegistrarResponseResponseBody$outboundSchema TransferInDomainDomainsRegistrarResponseResponseBody$Outbound, z.ZodTypeDef, unknown - > = z.union([NotAuthorizedForScope$outboundSchema, Forbidden$outboundSchema]); + > = z.union([ + NotAuthorizedForScope$outboundSchema.and( + z.object({ code: z.literal("not_authorized_for_scope") }), + ), + Forbidden$outboundSchema, + ]); export function transferInDomainDomainsRegistrarResponseResponseBodyToJSON( transferInDomainDomainsRegistrarResponseResponseBody: diff --git a/src/models/updatedomainautorenewop.ts b/src/models/updatedomainautorenewop.ts index f32e3d92..02360b05 100644 --- a/src/models/updatedomainautorenewop.ts +++ b/src/models/updatedomainautorenewop.ts @@ -58,7 +58,7 @@ export type UpdateDomainAutoRenewRequest = { * NotAuthorizedForScope */ export type UpdateDomainAutoRenewDomainsRegistrarResponseBody = - | NotAuthorizedForScope + | (NotAuthorizedForScope & { code: "not_authorized_for_scope" }) | Forbidden; /** @@ -172,10 +172,15 @@ export const UpdateDomainAutoRenewDomainsRegistrarResponseBody$inboundSchema: UpdateDomainAutoRenewDomainsRegistrarResponseBody, z.ZodTypeDef, unknown - > = z.union([NotAuthorizedForScope$inboundSchema, Forbidden$inboundSchema]); + > = z.union([ + NotAuthorizedForScope$inboundSchema.and( + z.object({ code: z.literal("not_authorized_for_scope") }), + ), + Forbidden$inboundSchema, + ]); /** @internal */ export type UpdateDomainAutoRenewDomainsRegistrarResponseBody$Outbound = - | NotAuthorizedForScope$Outbound + | (NotAuthorizedForScope$Outbound & { code: "not_authorized_for_scope" }) | Forbidden$Outbound; /** @internal */ @@ -184,7 +189,12 @@ export const UpdateDomainAutoRenewDomainsRegistrarResponseBody$outboundSchema: UpdateDomainAutoRenewDomainsRegistrarResponseBody$Outbound, z.ZodTypeDef, unknown - > = z.union([NotAuthorizedForScope$outboundSchema, Forbidden$outboundSchema]); + > = z.union([ + NotAuthorizedForScope$outboundSchema.and( + z.object({ code: z.literal("not_authorized_for_scope") }), + ), + Forbidden$outboundSchema, + ]); export function updateDomainAutoRenewDomainsRegistrarResponseBodyToJSON( updateDomainAutoRenewDomainsRegistrarResponseBody: diff --git a/src/models/updatedomainnameserversop.ts b/src/models/updatedomainnameserversop.ts index 7f86a5fb..ae0b9291 100644 --- a/src/models/updatedomainnameserversop.ts +++ b/src/models/updatedomainnameserversop.ts @@ -46,7 +46,7 @@ export type UpdateDomainNameserversRequest = { * NotAuthorizedForScope */ export type UpdateDomainNameserversDomainsRegistrarResponseBody = - | NotAuthorizedForScope + | (NotAuthorizedForScope & { code: "not_authorized_for_scope" }) | Forbidden; /** @@ -159,10 +159,15 @@ export const UpdateDomainNameserversDomainsRegistrarResponseBody$inboundSchema: UpdateDomainNameserversDomainsRegistrarResponseBody, z.ZodTypeDef, unknown - > = z.union([NotAuthorizedForScope$inboundSchema, Forbidden$inboundSchema]); + > = z.union([ + NotAuthorizedForScope$inboundSchema.and( + z.object({ code: z.literal("not_authorized_for_scope") }), + ), + Forbidden$inboundSchema, + ]); /** @internal */ export type UpdateDomainNameserversDomainsRegistrarResponseBody$Outbound = - | NotAuthorizedForScope$Outbound + | (NotAuthorizedForScope$Outbound & { code: "not_authorized_for_scope" }) | Forbidden$Outbound; /** @internal */ @@ -171,7 +176,12 @@ export const UpdateDomainNameserversDomainsRegistrarResponseBody$outboundSchema: UpdateDomainNameserversDomainsRegistrarResponseBody$Outbound, z.ZodTypeDef, unknown - > = z.union([NotAuthorizedForScope$outboundSchema, Forbidden$outboundSchema]); + > = z.union([ + NotAuthorizedForScope$outboundSchema.and( + z.object({ code: z.literal("not_authorized_for_scope") }), + ), + Forbidden$outboundSchema, + ]); export function updateDomainNameserversDomainsRegistrarResponseBodyToJSON( updateDomainNameserversDomainsRegistrarResponseBody: diff --git a/src/models/updatedrainop.ts b/src/models/updatedrainop.ts index 9eb49c9f..6c1bc54f 100644 --- a/src/models/updatedrainop.ts +++ b/src/models/updatedrainop.ts @@ -232,15 +232,6 @@ export type UpdateDrainResponseBodyDrainsSchemas = { speedInsights?: UpdateDrainResponseBodyDrainsSpeedInsights | undefined; }; -export const UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type = - { - Internal: "internal", - } as const; -export type UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type = - ClosedEnum< - typeof UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type - >; - export const UpdateDrainDeliveryDrainsTarget = { VercelOtelTracesDb: "vercel-otel-traces-db", } as const; @@ -249,34 +240,16 @@ export type UpdateDrainDeliveryDrainsTarget = ClosedEnum< >; export type UpdateDrainDeliveryDrains4 = { - type: UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type; + type: "internal"; target: UpdateDrainDeliveryDrainsTarget; }; -export const UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type = - { - Clickhouse: "clickhouse", - } as const; -export type UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type = - ClosedEnum< - typeof UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type - >; - export type UpdateDrainDeliveryDrains3 = { - type: UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type; + type: "clickhouse"; endpoint: string; table: string; }; -export const UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType = - { - Otlphttp: "otlphttp", - } as const; -export type UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType = - ClosedEnum< - typeof UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType - >; - export type UpdateDrainDeliveryDrainsEndpoint = { traces: string; }; @@ -307,7 +280,7 @@ export type UpdateDrainDeliveryDrainsResponse200Secret = | string; export type UpdateDrainDeliveryDrainsResponse2 = { - type: UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType; + type: "otlphttp"; endpoint: UpdateDrainDeliveryDrainsEndpoint; encoding: UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyEncoding; @@ -315,12 +288,6 @@ export type UpdateDrainDeliveryDrainsResponse2 = { secret?: UpdateDrainSecretDrainsResponse2002 | string | undefined; }; -export const UpdateDrainDeliveryDrainsResponse200ApplicationJSONType = { - Http: "http", -} as const; -export type UpdateDrainDeliveryDrainsResponse200ApplicationJSONType = - ClosedEnum; - export const UpdateDrainDeliveryDrainsResponse200ApplicationJSONEncoding = { Json: "json", Ndjson: "ndjson", @@ -354,7 +321,7 @@ export type UpdateDrainDeliveryDrainsResponseSecret = | string; export type UpdateDrainDeliveryDrainsResponse1 = { - type: UpdateDrainDeliveryDrainsResponse200ApplicationJSONType; + type: "http"; endpoint: string; encoding: UpdateDrainDeliveryDrainsResponse200ApplicationJSONEncoding; compression?: UpdateDrainDeliveryDrainsCompression | undefined; @@ -409,62 +376,27 @@ export type UpdateDrainResponseBodyDrainsDisabledReason = ClosedEnum< typeof UpdateDrainResponseBodyDrainsDisabledReason >; -export const UpdateDrainSourceDrainsResponse200Kind = { - Integration: "integration", -} as const; -export type UpdateDrainSourceDrainsResponse200Kind = ClosedEnum< - typeof UpdateDrainSourceDrainsResponse200Kind ->; - export type UpdateDrainSourceDrainsResponse2 = { - kind: UpdateDrainSourceDrainsResponse200Kind; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; integrationConfigurationId: string; }; -export const UpdateDrainSourceDrainsResponseKind = { - SelfServed: "self-served", -} as const; -export type UpdateDrainSourceDrainsResponseKind = ClosedEnum< - typeof UpdateDrainSourceDrainsResponseKind ->; - export type UpdateDrainSourceDrainsResponse1 = { - kind: UpdateDrainSourceDrainsResponseKind; + kind: "self-served"; }; export type UpdateDrainResponseBodyDrainsSource = - | UpdateDrainSourceDrainsResponse2 - | UpdateDrainSourceDrainsResponse1; - -export const UpdateDrainFilterV2DrainsResponse200Version = { - V2: "v2", -} as const; -export type UpdateDrainFilterV2DrainsResponse200Version = ClosedEnum< - typeof UpdateDrainFilterV2DrainsResponse200Version ->; - -export const UpdateDrainFilterDrainsResponse200Type = { - Odata: "odata", -} as const; -export type UpdateDrainFilterDrainsResponse200Type = ClosedEnum< - typeof UpdateDrainFilterDrainsResponse200Type ->; + | UpdateDrainSourceDrainsResponse1 + | UpdateDrainSourceDrainsResponse2; export type UpdateDrainFilterDrainsResponse2002 = { - type: UpdateDrainFilterDrainsResponse200Type; + type: "odata"; text: string; }; -export const UpdateDrainFilterDrainsResponseType = { - Basic: "basic", -} as const; -export type UpdateDrainFilterDrainsResponseType = ClosedEnum< - typeof UpdateDrainFilterDrainsResponseType ->; - export type UpdateDrainFilterDrainsProject = { ids?: Array | undefined; }; @@ -500,64 +432,43 @@ export type UpdateDrainFilterDrainsDeployment = { }; export type UpdateDrainFilterDrainsResponse1 = { - type: UpdateDrainFilterDrainsResponseType; + type: "basic"; project?: UpdateDrainFilterDrainsProject | undefined; log?: UpdateDrainFilterDrainsLog | undefined; deployment?: UpdateDrainFilterDrainsDeployment | undefined; }; export type UpdateDrainFilterV2DrainsFilter = - | UpdateDrainFilterDrainsResponse2002 - | UpdateDrainFilterDrainsResponse1; + | UpdateDrainFilterDrainsResponse1 + | UpdateDrainFilterDrainsResponse2002; export type UpdateDrainFilterV2Drains2 = { - version: UpdateDrainFilterV2DrainsResponse200Version; + version: "v2"; filter: - | UpdateDrainFilterDrainsResponse2002 - | UpdateDrainFilterDrainsResponse1; + | UpdateDrainFilterDrainsResponse1 + | UpdateDrainFilterDrainsResponse2002; }; -export const UpdateDrainFilterV2DrainsResponseVersion = { - V1: "v1", -} as const; -export type UpdateDrainFilterV2DrainsResponseVersion = ClosedEnum< - typeof UpdateDrainFilterV2DrainsResponseVersion ->; - export type UpdateDrainFilterV2Drains1 = { - version: UpdateDrainFilterV2DrainsResponseVersion; + version: "v1"; }; export type UpdateDrainResponseBodyDrainsFilterV2 = - | UpdateDrainFilterV2Drains2 - | UpdateDrainFilterV2Drains1; - -export const UpdateDrainProjectAccessDrainsAccess = { - Some: "some", -} as const; -export type UpdateDrainProjectAccessDrainsAccess = ClosedEnum< - typeof UpdateDrainProjectAccessDrainsAccess ->; + | UpdateDrainFilterV2Drains1 + | UpdateDrainFilterV2Drains2; export type UpdateDrainProjectAccess2 = { - access: UpdateDrainProjectAccessDrainsAccess; + access: "some"; projectIds: Array; }; -export const UpdateDrainProjectAccessAccess = { - All: "all", -} as const; -export type UpdateDrainProjectAccessAccess = ClosedEnum< - typeof UpdateDrainProjectAccessAccess ->; - export type UpdateDrainProjectAccess1 = { - access: UpdateDrainProjectAccessAccess; + access: "all"; }; export type UpdateDrainResponseBodyProjectAccess = - | UpdateDrainProjectAccess2 - | UpdateDrainProjectAccess1; + | UpdateDrainProjectAccess1 + | UpdateDrainProjectAccess2; export type UpdateDrainResponseBody2 = { id: string; @@ -580,18 +491,18 @@ export type UpdateDrainResponseBody2 = { disabledReason?: UpdateDrainResponseBodyDrainsDisabledReason | undefined; disabledBy?: string | undefined; firstErrorTimestamp?: number | undefined; - source: UpdateDrainSourceDrainsResponse2 | UpdateDrainSourceDrainsResponse1; + source: UpdateDrainSourceDrainsResponse1 | UpdateDrainSourceDrainsResponse2; filter?: string | undefined; filterV2?: - | UpdateDrainFilterV2Drains2 | UpdateDrainFilterV2Drains1 + | UpdateDrainFilterV2Drains2 | undefined; integrationIcon?: string | undefined; integrationConfigurationUri?: string | undefined; integrationWebsite?: string | undefined; projectAccess?: - | UpdateDrainProjectAccess2 | UpdateDrainProjectAccess1 + | UpdateDrainProjectAccess2 | undefined; }; @@ -610,13 +521,6 @@ export type UpdateDrainResponseBodySchemas = { speedInsights?: UpdateDrainResponseBodySpeedInsights | undefined; }; -export const UpdateDrainDeliveryDrainsResponse200Type = { - Internal: "internal", -} as const; -export type UpdateDrainDeliveryDrainsResponse200Type = ClosedEnum< - typeof UpdateDrainDeliveryDrainsResponse200Type ->; - export const UpdateDrainDeliveryTarget = { VercelOtelTracesDb: "vercel-otel-traces-db", } as const; @@ -625,30 +529,16 @@ export type UpdateDrainDeliveryTarget = ClosedEnum< >; export type UpdateDrainDelivery4 = { - type: UpdateDrainDeliveryDrainsResponse200Type; + type: "internal"; target: UpdateDrainDeliveryTarget; }; -export const UpdateDrainDeliveryDrainsResponseType = { - Clickhouse: "clickhouse", -} as const; -export type UpdateDrainDeliveryDrainsResponseType = ClosedEnum< - typeof UpdateDrainDeliveryDrainsResponseType ->; - export type UpdateDrainDelivery3 = { - type: UpdateDrainDeliveryDrainsResponseType; + type: "clickhouse"; endpoint: string; table: string; }; -export const UpdateDrainDeliveryDrainsType = { - Otlphttp: "otlphttp", -} as const; -export type UpdateDrainDeliveryDrainsType = ClosedEnum< - typeof UpdateDrainDeliveryDrainsType ->; - export type UpdateDrainDeliveryEndpoint = { traces: string; }; @@ -675,20 +565,13 @@ export type UpdateDrainSecretDrains2 = { export type UpdateDrainDeliveryDrainsSecret = UpdateDrainSecretDrains2 | string; export type UpdateDrainDeliveryDrains2 = { - type: UpdateDrainDeliveryDrainsType; + type: "otlphttp"; endpoint: UpdateDrainDeliveryEndpoint; encoding: UpdateDrainDeliveryDrainsResponse200Encoding; headers: { [k: string]: string }; secret?: UpdateDrainSecretDrains2 | string | undefined; }; -export const UpdateDrainDeliveryType = { - Http: "http", -} as const; -export type UpdateDrainDeliveryType = ClosedEnum< - typeof UpdateDrainDeliveryType ->; - export const UpdateDrainDeliveryDrainsResponseEncoding = { Json: "json", Ndjson: "ndjson", @@ -717,7 +600,7 @@ export type UpdateDrainSecret2 = { export type UpdateDrainDeliverySecret = UpdateDrainSecret2 | string; export type UpdateDrainDeliveryDrains1 = { - type: UpdateDrainDeliveryType; + type: "http"; endpoint: string; encoding: UpdateDrainDeliveryDrainsResponseEncoding; compression?: UpdateDrainDeliveryCompression | undefined; @@ -772,58 +655,27 @@ export type UpdateDrainResponseBodyDisabledReason = ClosedEnum< typeof UpdateDrainResponseBodyDisabledReason >; -export const UpdateDrainSourceDrainsKind = { - Integration: "integration", -} as const; -export type UpdateDrainSourceDrainsKind = ClosedEnum< - typeof UpdateDrainSourceDrainsKind ->; - export type UpdateDrainSourceDrains2 = { - kind: UpdateDrainSourceDrainsKind; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; integrationConfigurationId: string; }; -export const UpdateDrainSourceKind = { - SelfServed: "self-served", -} as const; -export type UpdateDrainSourceKind = ClosedEnum; - export type UpdateDrainSourceDrains1 = { - kind: UpdateDrainSourceKind; + kind: "self-served"; }; export type UpdateDrainResponseBodySource = - | UpdateDrainSourceDrains2 - | UpdateDrainSourceDrains1; - -export const UpdateDrainFilterV2DrainsVersion = { - V2: "v2", -} as const; -export type UpdateDrainFilterV2DrainsVersion = ClosedEnum< - typeof UpdateDrainFilterV2DrainsVersion ->; - -export const UpdateDrainFilterDrainsType = { - Odata: "odata", -} as const; -export type UpdateDrainFilterDrainsType = ClosedEnum< - typeof UpdateDrainFilterDrainsType ->; + | UpdateDrainSourceDrains1 + | UpdateDrainSourceDrains2; export type UpdateDrainFilterDrainsResponse2 = { - type: UpdateDrainFilterDrainsType; + type: "odata"; text: string; }; -export const UpdateDrainFilterType = { - Basic: "basic", -} as const; -export type UpdateDrainFilterType = ClosedEnum; - export type UpdateDrainFilterProject = { ids?: Array | undefined; }; @@ -859,35 +711,28 @@ export type UpdateDrainFilterDeployment = { }; export type UpdateDrainFilterDrains1 = { - type: UpdateDrainFilterType; + type: "basic"; project?: UpdateDrainFilterProject | undefined; log?: UpdateDrainFilterLog | undefined; deployment?: UpdateDrainFilterDeployment | undefined; }; export type UpdateDrainFilterV2Filter = - | UpdateDrainFilterDrainsResponse2 - | UpdateDrainFilterDrains1; + | UpdateDrainFilterDrains1 + | UpdateDrainFilterDrainsResponse2; export type UpdateDrainFilterV22 = { - version: UpdateDrainFilterV2DrainsVersion; - filter: UpdateDrainFilterDrainsResponse2 | UpdateDrainFilterDrains1; + version: "v2"; + filter: UpdateDrainFilterDrains1 | UpdateDrainFilterDrainsResponse2; }; -export const UpdateDrainFilterV2Version = { - V1: "v1", -} as const; -export type UpdateDrainFilterV2Version = ClosedEnum< - typeof UpdateDrainFilterV2Version ->; - export type UpdateDrainFilterV21 = { - version: UpdateDrainFilterV2Version; + version: "v1"; }; export type UpdateDrainResponseBodyFilterV2 = - | UpdateDrainFilterV22 - | UpdateDrainFilterV21; + | UpdateDrainFilterV21 + | UpdateDrainFilterV22; export type UpdateDrainResponseBody1 = { id: string; @@ -910,9 +755,9 @@ export type UpdateDrainResponseBody1 = { disabledReason?: UpdateDrainResponseBodyDisabledReason | undefined; disabledBy?: string | undefined; firstErrorTimestamp?: number | undefined; - source: UpdateDrainSourceDrains2 | UpdateDrainSourceDrains1; + source: UpdateDrainSourceDrains1 | UpdateDrainSourceDrains2; filter?: string | undefined; - filterV2?: UpdateDrainFilterV22 | UpdateDrainFilterV21 | undefined; + filterV2?: UpdateDrainFilterV21 | UpdateDrainFilterV22 | undefined; }; export type UpdateDrainResponseBody = @@ -2281,20 +2126,6 @@ export function updateDrainResponseBodyDrainsSchemasFromJSON( ); } -/** @internal */ -export const UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type$inboundSchema: - z.ZodNativeEnum< - typeof UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type - > = z.nativeEnum( - UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type, - ); -/** @internal */ -export const UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type$outboundSchema: - z.ZodNativeEnum< - typeof UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type - > = - UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type$inboundSchema; - /** @internal */ export const UpdateDrainDeliveryDrainsTarget$inboundSchema: z.ZodNativeEnum< typeof UpdateDrainDeliveryDrainsTarget @@ -2310,13 +2141,12 @@ export const UpdateDrainDeliveryDrains4$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: - UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type$inboundSchema, + type: z.literal("internal"), target: UpdateDrainDeliveryDrainsTarget$inboundSchema, }); /** @internal */ export type UpdateDrainDeliveryDrains4$Outbound = { - type: string; + type: "internal"; target: string; }; @@ -2326,8 +2156,7 @@ export const UpdateDrainDeliveryDrains4$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainDeliveryDrains4 > = z.object({ - type: - UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody24Type$outboundSchema, + type: z.literal("internal"), target: UpdateDrainDeliveryDrainsTarget$outboundSchema, }); @@ -2348,34 +2177,19 @@ export function updateDrainDeliveryDrains4FromJSON( ); } -/** @internal */ -export const UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type$inboundSchema: - z.ZodNativeEnum< - typeof UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type - > = z.nativeEnum( - UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type, - ); -/** @internal */ -export const UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type$outboundSchema: - z.ZodNativeEnum< - typeof UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type - > = - UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type$inboundSchema; - /** @internal */ export const UpdateDrainDeliveryDrains3$inboundSchema: z.ZodType< UpdateDrainDeliveryDrains3, z.ZodTypeDef, unknown > = z.object({ - type: - UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type$inboundSchema, + type: z.literal("clickhouse"), endpoint: z.string(), table: z.string(), }); /** @internal */ export type UpdateDrainDeliveryDrains3$Outbound = { - type: string; + type: "clickhouse"; endpoint: string; table: string; }; @@ -2386,8 +2200,7 @@ export const UpdateDrainDeliveryDrains3$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainDeliveryDrains3 > = z.object({ - type: - UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBody2Type$outboundSchema, + type: z.literal("clickhouse"), endpoint: z.string(), table: z.string(), }); @@ -2409,20 +2222,6 @@ export function updateDrainDeliveryDrains3FromJSON( ); } -/** @internal */ -export const UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType$inboundSchema: - z.ZodNativeEnum< - typeof UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType - > = z.nativeEnum( - UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType, - ); -/** @internal */ -export const UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType$outboundSchema: - z.ZodNativeEnum< - typeof UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType - > = - UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType$inboundSchema; - /** @internal */ export const UpdateDrainDeliveryDrainsEndpoint$inboundSchema: z.ZodType< UpdateDrainDeliveryDrainsEndpoint, @@ -2585,8 +2384,7 @@ export const UpdateDrainDeliveryDrainsResponse2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: - UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType$inboundSchema, + type: z.literal("otlphttp"), endpoint: z.lazy(() => UpdateDrainDeliveryDrainsEndpoint$inboundSchema), encoding: UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyEncoding$inboundSchema, @@ -2598,7 +2396,7 @@ export const UpdateDrainDeliveryDrainsResponse2$inboundSchema: z.ZodType< }); /** @internal */ export type UpdateDrainDeliveryDrainsResponse2$Outbound = { - type: string; + type: "otlphttp"; endpoint: UpdateDrainDeliveryDrainsEndpoint$Outbound; encoding: string; headers: { [k: string]: string }; @@ -2611,8 +2409,7 @@ export const UpdateDrainDeliveryDrainsResponse2$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainDeliveryDrainsResponse2 > = z.object({ - type: - UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyType$outboundSchema, + type: z.literal("otlphttp"), endpoint: z.lazy(() => UpdateDrainDeliveryDrainsEndpoint$outboundSchema), encoding: UpdateDrainDeliveryDrainsResponse200ApplicationJSONResponseBodyEncoding$outboundSchema, @@ -2643,17 +2440,6 @@ export function updateDrainDeliveryDrainsResponse2FromJSON( ); } -/** @internal */ -export const UpdateDrainDeliveryDrainsResponse200ApplicationJSONType$inboundSchema: - z.ZodNativeEnum< - typeof UpdateDrainDeliveryDrainsResponse200ApplicationJSONType - > = z.nativeEnum(UpdateDrainDeliveryDrainsResponse200ApplicationJSONType); -/** @internal */ -export const UpdateDrainDeliveryDrainsResponse200ApplicationJSONType$outboundSchema: - z.ZodNativeEnum< - typeof UpdateDrainDeliveryDrainsResponse200ApplicationJSONType - > = UpdateDrainDeliveryDrainsResponse200ApplicationJSONType$inboundSchema; - /** @internal */ export const UpdateDrainDeliveryDrainsResponse200ApplicationJSONEncoding$inboundSchema: z.ZodNativeEnum< @@ -2781,7 +2567,7 @@ export const UpdateDrainDeliveryDrainsResponse1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: UpdateDrainDeliveryDrainsResponse200ApplicationJSONType$inboundSchema, + type: z.literal("http"), endpoint: z.string(), encoding: UpdateDrainDeliveryDrainsResponse200ApplicationJSONEncoding$inboundSchema, @@ -2794,7 +2580,7 @@ export const UpdateDrainDeliveryDrainsResponse1$inboundSchema: z.ZodType< }); /** @internal */ export type UpdateDrainDeliveryDrainsResponse1$Outbound = { - type: string; + type: "http"; endpoint: string; encoding: string; compression?: string | undefined; @@ -2808,7 +2594,7 @@ export const UpdateDrainDeliveryDrainsResponse1$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainDeliveryDrainsResponse1 > = z.object({ - type: UpdateDrainDeliveryDrainsResponse200ApplicationJSONType$outboundSchema, + type: z.literal("http"), endpoint: z.string(), encoding: UpdateDrainDeliveryDrainsResponse200ApplicationJSONEncoding$outboundSchema, @@ -2977,23 +2763,13 @@ export const UpdateDrainResponseBodyDrainsDisabledReason$outboundSchema: z.ZodNativeEnum = UpdateDrainResponseBodyDrainsDisabledReason$inboundSchema; -/** @internal */ -export const UpdateDrainSourceDrainsResponse200Kind$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - UpdateDrainSourceDrainsResponse200Kind, - ); -/** @internal */ -export const UpdateDrainSourceDrainsResponse200Kind$outboundSchema: - z.ZodNativeEnum = - UpdateDrainSourceDrainsResponse200Kind$inboundSchema; - /** @internal */ export const UpdateDrainSourceDrainsResponse2$inboundSchema: z.ZodType< UpdateDrainSourceDrainsResponse2, z.ZodTypeDef, unknown > = z.object({ - kind: UpdateDrainSourceDrainsResponse200Kind$inboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -3001,7 +2777,7 @@ export const UpdateDrainSourceDrainsResponse2$inboundSchema: z.ZodType< }); /** @internal */ export type UpdateDrainSourceDrainsResponse2$Outbound = { - kind: string; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; @@ -3014,7 +2790,7 @@ export const UpdateDrainSourceDrainsResponse2$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainSourceDrainsResponse2 > = z.object({ - kind: UpdateDrainSourceDrainsResponse200Kind$outboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -3040,26 +2816,17 @@ export function updateDrainSourceDrainsResponse2FromJSON( ); } -/** @internal */ -export const UpdateDrainSourceDrainsResponseKind$inboundSchema: z.ZodNativeEnum< - typeof UpdateDrainSourceDrainsResponseKind -> = z.nativeEnum(UpdateDrainSourceDrainsResponseKind); -/** @internal */ -export const UpdateDrainSourceDrainsResponseKind$outboundSchema: - z.ZodNativeEnum = - UpdateDrainSourceDrainsResponseKind$inboundSchema; - /** @internal */ export const UpdateDrainSourceDrainsResponse1$inboundSchema: z.ZodType< UpdateDrainSourceDrainsResponse1, z.ZodTypeDef, unknown > = z.object({ - kind: UpdateDrainSourceDrainsResponseKind$inboundSchema, + kind: z.literal("self-served"), }); /** @internal */ export type UpdateDrainSourceDrainsResponse1$Outbound = { - kind: string; + kind: "self-served"; }; /** @internal */ @@ -3068,7 +2835,7 @@ export const UpdateDrainSourceDrainsResponse1$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainSourceDrainsResponse1 > = z.object({ - kind: UpdateDrainSourceDrainsResponseKind$outboundSchema, + kind: z.literal("self-served"), }); export function updateDrainSourceDrainsResponse1ToJSON( @@ -3096,13 +2863,13 @@ export const UpdateDrainResponseBodyDrainsSource$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => UpdateDrainSourceDrainsResponse2$inboundSchema), z.lazy(() => UpdateDrainSourceDrainsResponse1$inboundSchema), + z.lazy(() => UpdateDrainSourceDrainsResponse2$inboundSchema), ]); /** @internal */ export type UpdateDrainResponseBodyDrainsSource$Outbound = - | UpdateDrainSourceDrainsResponse2$Outbound - | UpdateDrainSourceDrainsResponse1$Outbound; + | UpdateDrainSourceDrainsResponse1$Outbound + | UpdateDrainSourceDrainsResponse2$Outbound; /** @internal */ export const UpdateDrainResponseBodyDrainsSource$outboundSchema: z.ZodType< @@ -3110,8 +2877,8 @@ export const UpdateDrainResponseBodyDrainsSource$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainResponseBodyDrainsSource > = z.union([ - z.lazy(() => UpdateDrainSourceDrainsResponse2$outboundSchema), z.lazy(() => UpdateDrainSourceDrainsResponse1$outboundSchema), + z.lazy(() => UpdateDrainSourceDrainsResponse2$outboundSchema), ]); export function updateDrainResponseBodyDrainsSourceToJSON( @@ -3134,37 +2901,18 @@ export function updateDrainResponseBodyDrainsSourceFromJSON( ); } -/** @internal */ -export const UpdateDrainFilterV2DrainsResponse200Version$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(UpdateDrainFilterV2DrainsResponse200Version); -/** @internal */ -export const UpdateDrainFilterV2DrainsResponse200Version$outboundSchema: - z.ZodNativeEnum = - UpdateDrainFilterV2DrainsResponse200Version$inboundSchema; - -/** @internal */ -export const UpdateDrainFilterDrainsResponse200Type$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - UpdateDrainFilterDrainsResponse200Type, - ); -/** @internal */ -export const UpdateDrainFilterDrainsResponse200Type$outboundSchema: - z.ZodNativeEnum = - UpdateDrainFilterDrainsResponse200Type$inboundSchema; - /** @internal */ export const UpdateDrainFilterDrainsResponse2002$inboundSchema: z.ZodType< UpdateDrainFilterDrainsResponse2002, z.ZodTypeDef, unknown > = z.object({ - type: UpdateDrainFilterDrainsResponse200Type$inboundSchema, + type: z.literal("odata"), text: z.string(), }); /** @internal */ export type UpdateDrainFilterDrainsResponse2002$Outbound = { - type: string; + type: "odata"; text: string; }; @@ -3174,7 +2922,7 @@ export const UpdateDrainFilterDrainsResponse2002$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainFilterDrainsResponse2002 > = z.object({ - type: UpdateDrainFilterDrainsResponse200Type$outboundSchema, + type: z.literal("odata"), text: z.string(), }); @@ -3198,15 +2946,6 @@ export function updateDrainFilterDrainsResponse2002FromJSON( ); } -/** @internal */ -export const UpdateDrainFilterDrainsResponseType$inboundSchema: z.ZodNativeEnum< - typeof UpdateDrainFilterDrainsResponseType -> = z.nativeEnum(UpdateDrainFilterDrainsResponseType); -/** @internal */ -export const UpdateDrainFilterDrainsResponseType$outboundSchema: - z.ZodNativeEnum = - UpdateDrainFilterDrainsResponseType$inboundSchema; - /** @internal */ export const UpdateDrainFilterDrainsProject$inboundSchema: z.ZodType< UpdateDrainFilterDrainsProject, @@ -3370,7 +3109,7 @@ export const UpdateDrainFilterDrainsResponse1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: UpdateDrainFilterDrainsResponseType$inboundSchema, + type: z.literal("basic"), project: z.lazy(() => UpdateDrainFilterDrainsProject$inboundSchema) .optional(), log: z.lazy(() => UpdateDrainFilterDrainsLog$inboundSchema).optional(), @@ -3379,7 +3118,7 @@ export const UpdateDrainFilterDrainsResponse1$inboundSchema: z.ZodType< }); /** @internal */ export type UpdateDrainFilterDrainsResponse1$Outbound = { - type: string; + type: "basic"; project?: UpdateDrainFilterDrainsProject$Outbound | undefined; log?: UpdateDrainFilterDrainsLog$Outbound | undefined; deployment?: UpdateDrainFilterDrainsDeployment$Outbound | undefined; @@ -3391,7 +3130,7 @@ export const UpdateDrainFilterDrainsResponse1$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainFilterDrainsResponse1 > = z.object({ - type: UpdateDrainFilterDrainsResponseType$outboundSchema, + type: z.literal("basic"), project: z.lazy(() => UpdateDrainFilterDrainsProject$outboundSchema) .optional(), log: z.lazy(() => UpdateDrainFilterDrainsLog$outboundSchema).optional(), @@ -3424,13 +3163,13 @@ export const UpdateDrainFilterV2DrainsFilter$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => UpdateDrainFilterDrainsResponse2002$inboundSchema), z.lazy(() => UpdateDrainFilterDrainsResponse1$inboundSchema), + z.lazy(() => UpdateDrainFilterDrainsResponse2002$inboundSchema), ]); /** @internal */ export type UpdateDrainFilterV2DrainsFilter$Outbound = - | UpdateDrainFilterDrainsResponse2002$Outbound - | UpdateDrainFilterDrainsResponse1$Outbound; + | UpdateDrainFilterDrainsResponse1$Outbound + | UpdateDrainFilterDrainsResponse2002$Outbound; /** @internal */ export const UpdateDrainFilterV2DrainsFilter$outboundSchema: z.ZodType< @@ -3438,8 +3177,8 @@ export const UpdateDrainFilterV2DrainsFilter$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainFilterV2DrainsFilter > = z.union([ - z.lazy(() => UpdateDrainFilterDrainsResponse2002$outboundSchema), z.lazy(() => UpdateDrainFilterDrainsResponse1$outboundSchema), + z.lazy(() => UpdateDrainFilterDrainsResponse2002$outboundSchema), ]); export function updateDrainFilterV2DrainsFilterToJSON( @@ -3467,18 +3206,18 @@ export const UpdateDrainFilterV2Drains2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - version: UpdateDrainFilterV2DrainsResponse200Version$inboundSchema, + version: z.literal("v2"), filter: z.union([ - z.lazy(() => UpdateDrainFilterDrainsResponse2002$inboundSchema), z.lazy(() => UpdateDrainFilterDrainsResponse1$inboundSchema), + z.lazy(() => UpdateDrainFilterDrainsResponse2002$inboundSchema), ]), }); /** @internal */ export type UpdateDrainFilterV2Drains2$Outbound = { - version: string; + version: "v2"; filter: - | UpdateDrainFilterDrainsResponse2002$Outbound - | UpdateDrainFilterDrainsResponse1$Outbound; + | UpdateDrainFilterDrainsResponse1$Outbound + | UpdateDrainFilterDrainsResponse2002$Outbound; }; /** @internal */ @@ -3487,10 +3226,10 @@ export const UpdateDrainFilterV2Drains2$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainFilterV2Drains2 > = z.object({ - version: UpdateDrainFilterV2DrainsResponse200Version$outboundSchema, + version: z.literal("v2"), filter: z.union([ - z.lazy(() => UpdateDrainFilterDrainsResponse2002$outboundSchema), z.lazy(() => UpdateDrainFilterDrainsResponse1$outboundSchema), + z.lazy(() => UpdateDrainFilterDrainsResponse2002$outboundSchema), ]), }); @@ -3511,26 +3250,17 @@ export function updateDrainFilterV2Drains2FromJSON( ); } -/** @internal */ -export const UpdateDrainFilterV2DrainsResponseVersion$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(UpdateDrainFilterV2DrainsResponseVersion); -/** @internal */ -export const UpdateDrainFilterV2DrainsResponseVersion$outboundSchema: - z.ZodNativeEnum = - UpdateDrainFilterV2DrainsResponseVersion$inboundSchema; - /** @internal */ export const UpdateDrainFilterV2Drains1$inboundSchema: z.ZodType< UpdateDrainFilterV2Drains1, z.ZodTypeDef, unknown > = z.object({ - version: UpdateDrainFilterV2DrainsResponseVersion$inboundSchema, + version: z.literal("v1"), }); /** @internal */ export type UpdateDrainFilterV2Drains1$Outbound = { - version: string; + version: "v1"; }; /** @internal */ @@ -3539,7 +3269,7 @@ export const UpdateDrainFilterV2Drains1$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainFilterV2Drains1 > = z.object({ - version: UpdateDrainFilterV2DrainsResponseVersion$outboundSchema, + version: z.literal("v1"), }); export function updateDrainFilterV2Drains1ToJSON( @@ -3565,13 +3295,13 @@ export const UpdateDrainResponseBodyDrainsFilterV2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => UpdateDrainFilterV2Drains2$inboundSchema), z.lazy(() => UpdateDrainFilterV2Drains1$inboundSchema), + z.lazy(() => UpdateDrainFilterV2Drains2$inboundSchema), ]); /** @internal */ export type UpdateDrainResponseBodyDrainsFilterV2$Outbound = - | UpdateDrainFilterV2Drains2$Outbound - | UpdateDrainFilterV2Drains1$Outbound; + | UpdateDrainFilterV2Drains1$Outbound + | UpdateDrainFilterV2Drains2$Outbound; /** @internal */ export const UpdateDrainResponseBodyDrainsFilterV2$outboundSchema: z.ZodType< @@ -3579,8 +3309,8 @@ export const UpdateDrainResponseBodyDrainsFilterV2$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainResponseBodyDrainsFilterV2 > = z.union([ - z.lazy(() => UpdateDrainFilterV2Drains2$outboundSchema), z.lazy(() => UpdateDrainFilterV2Drains1$outboundSchema), + z.lazy(() => UpdateDrainFilterV2Drains2$outboundSchema), ]); export function updateDrainResponseBodyDrainsFilterV2ToJSON( @@ -3603,28 +3333,18 @@ export function updateDrainResponseBodyDrainsFilterV2FromJSON( ); } -/** @internal */ -export const UpdateDrainProjectAccessDrainsAccess$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - UpdateDrainProjectAccessDrainsAccess, - ); -/** @internal */ -export const UpdateDrainProjectAccessDrainsAccess$outboundSchema: - z.ZodNativeEnum = - UpdateDrainProjectAccessDrainsAccess$inboundSchema; - /** @internal */ export const UpdateDrainProjectAccess2$inboundSchema: z.ZodType< UpdateDrainProjectAccess2, z.ZodTypeDef, unknown > = z.object({ - access: UpdateDrainProjectAccessDrainsAccess$inboundSchema, + access: z.literal("some"), projectIds: z.array(z.string()), }); /** @internal */ export type UpdateDrainProjectAccess2$Outbound = { - access: string; + access: "some"; projectIds: Array; }; @@ -3634,7 +3354,7 @@ export const UpdateDrainProjectAccess2$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainProjectAccess2 > = z.object({ - access: UpdateDrainProjectAccessDrainsAccess$outboundSchema, + access: z.literal("some"), projectIds: z.array(z.string()), }); @@ -3655,26 +3375,17 @@ export function updateDrainProjectAccess2FromJSON( ); } -/** @internal */ -export const UpdateDrainProjectAccessAccess$inboundSchema: z.ZodNativeEnum< - typeof UpdateDrainProjectAccessAccess -> = z.nativeEnum(UpdateDrainProjectAccessAccess); -/** @internal */ -export const UpdateDrainProjectAccessAccess$outboundSchema: z.ZodNativeEnum< - typeof UpdateDrainProjectAccessAccess -> = UpdateDrainProjectAccessAccess$inboundSchema; - /** @internal */ export const UpdateDrainProjectAccess1$inboundSchema: z.ZodType< UpdateDrainProjectAccess1, z.ZodTypeDef, unknown > = z.object({ - access: UpdateDrainProjectAccessAccess$inboundSchema, + access: z.literal("all"), }); /** @internal */ export type UpdateDrainProjectAccess1$Outbound = { - access: string; + access: "all"; }; /** @internal */ @@ -3683,7 +3394,7 @@ export const UpdateDrainProjectAccess1$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainProjectAccess1 > = z.object({ - access: UpdateDrainProjectAccessAccess$outboundSchema, + access: z.literal("all"), }); export function updateDrainProjectAccess1ToJSON( @@ -3709,13 +3420,13 @@ export const UpdateDrainResponseBodyProjectAccess$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => UpdateDrainProjectAccess2$inboundSchema), z.lazy(() => UpdateDrainProjectAccess1$inboundSchema), + z.lazy(() => UpdateDrainProjectAccess2$inboundSchema), ]); /** @internal */ export type UpdateDrainResponseBodyProjectAccess$Outbound = - | UpdateDrainProjectAccess2$Outbound - | UpdateDrainProjectAccess1$Outbound; + | UpdateDrainProjectAccess1$Outbound + | UpdateDrainProjectAccess2$Outbound; /** @internal */ export const UpdateDrainResponseBodyProjectAccess$outboundSchema: z.ZodType< @@ -3723,8 +3434,8 @@ export const UpdateDrainResponseBodyProjectAccess$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainResponseBodyProjectAccess > = z.union([ - z.lazy(() => UpdateDrainProjectAccess2$outboundSchema), z.lazy(() => UpdateDrainProjectAccess1$outboundSchema), + z.lazy(() => UpdateDrainProjectAccess2$outboundSchema), ]); export function updateDrainResponseBodyProjectAccessToJSON( @@ -3778,20 +3489,20 @@ export const UpdateDrainResponseBody2$inboundSchema: z.ZodType< disabledBy: z.string().optional(), firstErrorTimestamp: z.number().optional(), source: z.union([ - z.lazy(() => UpdateDrainSourceDrainsResponse2$inboundSchema), z.lazy(() => UpdateDrainSourceDrainsResponse1$inboundSchema), + z.lazy(() => UpdateDrainSourceDrainsResponse2$inboundSchema), ]), filter: z.string().optional(), filterV2: z.union([ - z.lazy(() => UpdateDrainFilterV2Drains2$inboundSchema), z.lazy(() => UpdateDrainFilterV2Drains1$inboundSchema), + z.lazy(() => UpdateDrainFilterV2Drains2$inboundSchema), ]).optional(), integrationIcon: z.string().optional(), integrationConfigurationUri: z.string().optional(), integrationWebsite: z.string().optional(), projectAccess: z.union([ - z.lazy(() => UpdateDrainProjectAccess2$inboundSchema), z.lazy(() => UpdateDrainProjectAccess1$inboundSchema), + z.lazy(() => UpdateDrainProjectAccess2$inboundSchema), ]).optional(), }); /** @internal */ @@ -3817,19 +3528,19 @@ export type UpdateDrainResponseBody2$Outbound = { disabledBy?: string | undefined; firstErrorTimestamp?: number | undefined; source: - | UpdateDrainSourceDrainsResponse2$Outbound - | UpdateDrainSourceDrainsResponse1$Outbound; + | UpdateDrainSourceDrainsResponse1$Outbound + | UpdateDrainSourceDrainsResponse2$Outbound; filter?: string | undefined; filterV2?: - | UpdateDrainFilterV2Drains2$Outbound | UpdateDrainFilterV2Drains1$Outbound + | UpdateDrainFilterV2Drains2$Outbound | undefined; integrationIcon?: string | undefined; integrationConfigurationUri?: string | undefined; integrationWebsite?: string | undefined; projectAccess?: - | UpdateDrainProjectAccess2$Outbound | UpdateDrainProjectAccess1$Outbound + | UpdateDrainProjectAccess2$Outbound | undefined; }; @@ -3864,20 +3575,20 @@ export const UpdateDrainResponseBody2$outboundSchema: z.ZodType< disabledBy: z.string().optional(), firstErrorTimestamp: z.number().optional(), source: z.union([ - z.lazy(() => UpdateDrainSourceDrainsResponse2$outboundSchema), z.lazy(() => UpdateDrainSourceDrainsResponse1$outboundSchema), + z.lazy(() => UpdateDrainSourceDrainsResponse2$outboundSchema), ]), filter: z.string().optional(), filterV2: z.union([ - z.lazy(() => UpdateDrainFilterV2Drains2$outboundSchema), z.lazy(() => UpdateDrainFilterV2Drains1$outboundSchema), + z.lazy(() => UpdateDrainFilterV2Drains2$outboundSchema), ]).optional(), integrationIcon: z.string().optional(), integrationConfigurationUri: z.string().optional(), integrationWebsite: z.string().optional(), projectAccess: z.union([ - z.lazy(() => UpdateDrainProjectAccess2$outboundSchema), z.lazy(() => UpdateDrainProjectAccess1$outboundSchema), + z.lazy(() => UpdateDrainProjectAccess2$outboundSchema), ]).optional(), }); @@ -4101,15 +3812,6 @@ export function updateDrainResponseBodySchemasFromJSON( ); } -/** @internal */ -export const UpdateDrainDeliveryDrainsResponse200Type$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(UpdateDrainDeliveryDrainsResponse200Type); -/** @internal */ -export const UpdateDrainDeliveryDrainsResponse200Type$outboundSchema: - z.ZodNativeEnum = - UpdateDrainDeliveryDrainsResponse200Type$inboundSchema; - /** @internal */ export const UpdateDrainDeliveryTarget$inboundSchema: z.ZodNativeEnum< typeof UpdateDrainDeliveryTarget @@ -4125,12 +3827,12 @@ export const UpdateDrainDelivery4$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: UpdateDrainDeliveryDrainsResponse200Type$inboundSchema, + type: z.literal("internal"), target: UpdateDrainDeliveryTarget$inboundSchema, }); /** @internal */ export type UpdateDrainDelivery4$Outbound = { - type: string; + type: "internal"; target: string; }; @@ -4140,7 +3842,7 @@ export const UpdateDrainDelivery4$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainDelivery4 > = z.object({ - type: UpdateDrainDeliveryDrainsResponse200Type$outboundSchema, + type: z.literal("internal"), target: UpdateDrainDeliveryTarget$outboundSchema, }); @@ -4161,29 +3863,19 @@ export function updateDrainDelivery4FromJSON( ); } -/** @internal */ -export const UpdateDrainDeliveryDrainsResponseType$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - UpdateDrainDeliveryDrainsResponseType, - ); -/** @internal */ -export const UpdateDrainDeliveryDrainsResponseType$outboundSchema: - z.ZodNativeEnum = - UpdateDrainDeliveryDrainsResponseType$inboundSchema; - /** @internal */ export const UpdateDrainDelivery3$inboundSchema: z.ZodType< UpdateDrainDelivery3, z.ZodTypeDef, unknown > = z.object({ - type: UpdateDrainDeliveryDrainsResponseType$inboundSchema, + type: z.literal("clickhouse"), endpoint: z.string(), table: z.string(), }); /** @internal */ export type UpdateDrainDelivery3$Outbound = { - type: string; + type: "clickhouse"; endpoint: string; table: string; }; @@ -4194,7 +3886,7 @@ export const UpdateDrainDelivery3$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainDelivery3 > = z.object({ - type: UpdateDrainDeliveryDrainsResponseType$outboundSchema, + type: z.literal("clickhouse"), endpoint: z.string(), table: z.string(), }); @@ -4216,15 +3908,6 @@ export function updateDrainDelivery3FromJSON( ); } -/** @internal */ -export const UpdateDrainDeliveryDrainsType$inboundSchema: z.ZodNativeEnum< - typeof UpdateDrainDeliveryDrainsType -> = z.nativeEnum(UpdateDrainDeliveryDrainsType); -/** @internal */ -export const UpdateDrainDeliveryDrainsType$outboundSchema: z.ZodNativeEnum< - typeof UpdateDrainDeliveryDrainsType -> = UpdateDrainDeliveryDrainsType$inboundSchema; - /** @internal */ export const UpdateDrainDeliveryEndpoint$inboundSchema: z.ZodType< UpdateDrainDeliveryEndpoint, @@ -4369,7 +4052,7 @@ export const UpdateDrainDeliveryDrains2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: UpdateDrainDeliveryDrainsType$inboundSchema, + type: z.literal("otlphttp"), endpoint: z.lazy(() => UpdateDrainDeliveryEndpoint$inboundSchema), encoding: UpdateDrainDeliveryDrainsResponse200Encoding$inboundSchema, headers: z.record(z.string()), @@ -4380,7 +4063,7 @@ export const UpdateDrainDeliveryDrains2$inboundSchema: z.ZodType< }); /** @internal */ export type UpdateDrainDeliveryDrains2$Outbound = { - type: string; + type: "otlphttp"; endpoint: UpdateDrainDeliveryEndpoint$Outbound; encoding: string; headers: { [k: string]: string }; @@ -4393,7 +4076,7 @@ export const UpdateDrainDeliveryDrains2$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainDeliveryDrains2 > = z.object({ - type: UpdateDrainDeliveryDrainsType$outboundSchema, + type: z.literal("otlphttp"), endpoint: z.lazy(() => UpdateDrainDeliveryEndpoint$outboundSchema), encoding: UpdateDrainDeliveryDrainsResponse200Encoding$outboundSchema, headers: z.record(z.string()), @@ -4420,15 +4103,6 @@ export function updateDrainDeliveryDrains2FromJSON( ); } -/** @internal */ -export const UpdateDrainDeliveryType$inboundSchema: z.ZodNativeEnum< - typeof UpdateDrainDeliveryType -> = z.nativeEnum(UpdateDrainDeliveryType); -/** @internal */ -export const UpdateDrainDeliveryType$outboundSchema: z.ZodNativeEnum< - typeof UpdateDrainDeliveryType -> = UpdateDrainDeliveryType$inboundSchema; - /** @internal */ export const UpdateDrainDeliveryDrainsResponseEncoding$inboundSchema: z.ZodNativeEnum = z @@ -4536,7 +4210,7 @@ export const UpdateDrainDeliveryDrains1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: UpdateDrainDeliveryType$inboundSchema, + type: z.literal("http"), endpoint: z.string(), encoding: UpdateDrainDeliveryDrainsResponseEncoding$inboundSchema, compression: UpdateDrainDeliveryCompression$inboundSchema.optional(), @@ -4546,7 +4220,7 @@ export const UpdateDrainDeliveryDrains1$inboundSchema: z.ZodType< }); /** @internal */ export type UpdateDrainDeliveryDrains1$Outbound = { - type: string; + type: "http"; endpoint: string; encoding: string; compression?: string | undefined; @@ -4560,7 +4234,7 @@ export const UpdateDrainDeliveryDrains1$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainDeliveryDrains1 > = z.object({ - type: UpdateDrainDeliveryType$outboundSchema, + type: z.literal("http"), endpoint: z.string(), encoding: UpdateDrainDeliveryDrainsResponseEncoding$outboundSchema, compression: UpdateDrainDeliveryCompression$outboundSchema.optional(), @@ -4722,22 +4396,13 @@ export const UpdateDrainResponseBodyDisabledReason$outboundSchema: z.ZodNativeEnum = UpdateDrainResponseBodyDisabledReason$inboundSchema; -/** @internal */ -export const UpdateDrainSourceDrainsKind$inboundSchema: z.ZodNativeEnum< - typeof UpdateDrainSourceDrainsKind -> = z.nativeEnum(UpdateDrainSourceDrainsKind); -/** @internal */ -export const UpdateDrainSourceDrainsKind$outboundSchema: z.ZodNativeEnum< - typeof UpdateDrainSourceDrainsKind -> = UpdateDrainSourceDrainsKind$inboundSchema; - /** @internal */ export const UpdateDrainSourceDrains2$inboundSchema: z.ZodType< UpdateDrainSourceDrains2, z.ZodTypeDef, unknown > = z.object({ - kind: UpdateDrainSourceDrainsKind$inboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -4745,7 +4410,7 @@ export const UpdateDrainSourceDrains2$inboundSchema: z.ZodType< }); /** @internal */ export type UpdateDrainSourceDrains2$Outbound = { - kind: string; + kind: "integration"; resourceId?: string | undefined; externalResourceId?: string | undefined; integrationId: string; @@ -4758,7 +4423,7 @@ export const UpdateDrainSourceDrains2$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainSourceDrains2 > = z.object({ - kind: UpdateDrainSourceDrainsKind$outboundSchema, + kind: z.literal("integration"), resourceId: z.string().optional(), externalResourceId: z.string().optional(), integrationId: z.string(), @@ -4782,26 +4447,17 @@ export function updateDrainSourceDrains2FromJSON( ); } -/** @internal */ -export const UpdateDrainSourceKind$inboundSchema: z.ZodNativeEnum< - typeof UpdateDrainSourceKind -> = z.nativeEnum(UpdateDrainSourceKind); -/** @internal */ -export const UpdateDrainSourceKind$outboundSchema: z.ZodNativeEnum< - typeof UpdateDrainSourceKind -> = UpdateDrainSourceKind$inboundSchema; - /** @internal */ export const UpdateDrainSourceDrains1$inboundSchema: z.ZodType< UpdateDrainSourceDrains1, z.ZodTypeDef, unknown > = z.object({ - kind: UpdateDrainSourceKind$inboundSchema, + kind: z.literal("self-served"), }); /** @internal */ export type UpdateDrainSourceDrains1$Outbound = { - kind: string; + kind: "self-served"; }; /** @internal */ @@ -4810,7 +4466,7 @@ export const UpdateDrainSourceDrains1$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainSourceDrains1 > = z.object({ - kind: UpdateDrainSourceKind$outboundSchema, + kind: z.literal("self-served"), }); export function updateDrainSourceDrains1ToJSON( @@ -4836,13 +4492,13 @@ export const UpdateDrainResponseBodySource$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => UpdateDrainSourceDrains2$inboundSchema), z.lazy(() => UpdateDrainSourceDrains1$inboundSchema), + z.lazy(() => UpdateDrainSourceDrains2$inboundSchema), ]); /** @internal */ export type UpdateDrainResponseBodySource$Outbound = - | UpdateDrainSourceDrains2$Outbound - | UpdateDrainSourceDrains1$Outbound; + | UpdateDrainSourceDrains1$Outbound + | UpdateDrainSourceDrains2$Outbound; /** @internal */ export const UpdateDrainResponseBodySource$outboundSchema: z.ZodType< @@ -4850,8 +4506,8 @@ export const UpdateDrainResponseBodySource$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainResponseBodySource > = z.union([ - z.lazy(() => UpdateDrainSourceDrains2$outboundSchema), z.lazy(() => UpdateDrainSourceDrains1$outboundSchema), + z.lazy(() => UpdateDrainSourceDrains2$outboundSchema), ]); export function updateDrainResponseBodySourceToJSON( @@ -4873,36 +4529,18 @@ export function updateDrainResponseBodySourceFromJSON( ); } -/** @internal */ -export const UpdateDrainFilterV2DrainsVersion$inboundSchema: z.ZodNativeEnum< - typeof UpdateDrainFilterV2DrainsVersion -> = z.nativeEnum(UpdateDrainFilterV2DrainsVersion); -/** @internal */ -export const UpdateDrainFilterV2DrainsVersion$outboundSchema: z.ZodNativeEnum< - typeof UpdateDrainFilterV2DrainsVersion -> = UpdateDrainFilterV2DrainsVersion$inboundSchema; - -/** @internal */ -export const UpdateDrainFilterDrainsType$inboundSchema: z.ZodNativeEnum< - typeof UpdateDrainFilterDrainsType -> = z.nativeEnum(UpdateDrainFilterDrainsType); -/** @internal */ -export const UpdateDrainFilterDrainsType$outboundSchema: z.ZodNativeEnum< - typeof UpdateDrainFilterDrainsType -> = UpdateDrainFilterDrainsType$inboundSchema; - /** @internal */ export const UpdateDrainFilterDrainsResponse2$inboundSchema: z.ZodType< UpdateDrainFilterDrainsResponse2, z.ZodTypeDef, unknown > = z.object({ - type: UpdateDrainFilterDrainsType$inboundSchema, + type: z.literal("odata"), text: z.string(), }); /** @internal */ export type UpdateDrainFilterDrainsResponse2$Outbound = { - type: string; + type: "odata"; text: string; }; @@ -4912,7 +4550,7 @@ export const UpdateDrainFilterDrainsResponse2$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainFilterDrainsResponse2 > = z.object({ - type: UpdateDrainFilterDrainsType$outboundSchema, + type: z.literal("odata"), text: z.string(), }); @@ -4935,15 +4573,6 @@ export function updateDrainFilterDrainsResponse2FromJSON( ); } -/** @internal */ -export const UpdateDrainFilterType$inboundSchema: z.ZodNativeEnum< - typeof UpdateDrainFilterType -> = z.nativeEnum(UpdateDrainFilterType); -/** @internal */ -export const UpdateDrainFilterType$outboundSchema: z.ZodNativeEnum< - typeof UpdateDrainFilterType -> = UpdateDrainFilterType$inboundSchema; - /** @internal */ export const UpdateDrainFilterProject$inboundSchema: z.ZodType< UpdateDrainFilterProject, @@ -5100,7 +4729,7 @@ export const UpdateDrainFilterDrains1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: UpdateDrainFilterType$inboundSchema, + type: z.literal("basic"), project: z.lazy(() => UpdateDrainFilterProject$inboundSchema).optional(), log: z.lazy(() => UpdateDrainFilterLog$inboundSchema).optional(), deployment: z.lazy(() => UpdateDrainFilterDeployment$inboundSchema) @@ -5108,7 +4737,7 @@ export const UpdateDrainFilterDrains1$inboundSchema: z.ZodType< }); /** @internal */ export type UpdateDrainFilterDrains1$Outbound = { - type: string; + type: "basic"; project?: UpdateDrainFilterProject$Outbound | undefined; log?: UpdateDrainFilterLog$Outbound | undefined; deployment?: UpdateDrainFilterDeployment$Outbound | undefined; @@ -5120,7 +4749,7 @@ export const UpdateDrainFilterDrains1$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainFilterDrains1 > = z.object({ - type: UpdateDrainFilterType$outboundSchema, + type: z.literal("basic"), project: z.lazy(() => UpdateDrainFilterProject$outboundSchema).optional(), log: z.lazy(() => UpdateDrainFilterLog$outboundSchema).optional(), deployment: z.lazy(() => UpdateDrainFilterDeployment$outboundSchema) @@ -5150,13 +4779,13 @@ export const UpdateDrainFilterV2Filter$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => UpdateDrainFilterDrainsResponse2$inboundSchema), z.lazy(() => UpdateDrainFilterDrains1$inboundSchema), + z.lazy(() => UpdateDrainFilterDrainsResponse2$inboundSchema), ]); /** @internal */ export type UpdateDrainFilterV2Filter$Outbound = - | UpdateDrainFilterDrainsResponse2$Outbound - | UpdateDrainFilterDrains1$Outbound; + | UpdateDrainFilterDrains1$Outbound + | UpdateDrainFilterDrainsResponse2$Outbound; /** @internal */ export const UpdateDrainFilterV2Filter$outboundSchema: z.ZodType< @@ -5164,8 +4793,8 @@ export const UpdateDrainFilterV2Filter$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainFilterV2Filter > = z.union([ - z.lazy(() => UpdateDrainFilterDrainsResponse2$outboundSchema), z.lazy(() => UpdateDrainFilterDrains1$outboundSchema), + z.lazy(() => UpdateDrainFilterDrainsResponse2$outboundSchema), ]); export function updateDrainFilterV2FilterToJSON( @@ -5191,18 +4820,18 @@ export const UpdateDrainFilterV22$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - version: UpdateDrainFilterV2DrainsVersion$inboundSchema, + version: z.literal("v2"), filter: z.union([ - z.lazy(() => UpdateDrainFilterDrainsResponse2$inboundSchema), z.lazy(() => UpdateDrainFilterDrains1$inboundSchema), + z.lazy(() => UpdateDrainFilterDrainsResponse2$inboundSchema), ]), }); /** @internal */ export type UpdateDrainFilterV22$Outbound = { - version: string; + version: "v2"; filter: - | UpdateDrainFilterDrainsResponse2$Outbound - | UpdateDrainFilterDrains1$Outbound; + | UpdateDrainFilterDrains1$Outbound + | UpdateDrainFilterDrainsResponse2$Outbound; }; /** @internal */ @@ -5211,10 +4840,10 @@ export const UpdateDrainFilterV22$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainFilterV22 > = z.object({ - version: UpdateDrainFilterV2DrainsVersion$outboundSchema, + version: z.literal("v2"), filter: z.union([ - z.lazy(() => UpdateDrainFilterDrainsResponse2$outboundSchema), z.lazy(() => UpdateDrainFilterDrains1$outboundSchema), + z.lazy(() => UpdateDrainFilterDrainsResponse2$outboundSchema), ]), }); @@ -5235,26 +4864,17 @@ export function updateDrainFilterV22FromJSON( ); } -/** @internal */ -export const UpdateDrainFilterV2Version$inboundSchema: z.ZodNativeEnum< - typeof UpdateDrainFilterV2Version -> = z.nativeEnum(UpdateDrainFilterV2Version); -/** @internal */ -export const UpdateDrainFilterV2Version$outboundSchema: z.ZodNativeEnum< - typeof UpdateDrainFilterV2Version -> = UpdateDrainFilterV2Version$inboundSchema; - /** @internal */ export const UpdateDrainFilterV21$inboundSchema: z.ZodType< UpdateDrainFilterV21, z.ZodTypeDef, unknown > = z.object({ - version: UpdateDrainFilterV2Version$inboundSchema, + version: z.literal("v1"), }); /** @internal */ export type UpdateDrainFilterV21$Outbound = { - version: string; + version: "v1"; }; /** @internal */ @@ -5263,7 +4883,7 @@ export const UpdateDrainFilterV21$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainFilterV21 > = z.object({ - version: UpdateDrainFilterV2Version$outboundSchema, + version: z.literal("v1"), }); export function updateDrainFilterV21ToJSON( @@ -5289,13 +4909,13 @@ export const UpdateDrainResponseBodyFilterV2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => UpdateDrainFilterV22$inboundSchema), z.lazy(() => UpdateDrainFilterV21$inboundSchema), + z.lazy(() => UpdateDrainFilterV22$inboundSchema), ]); /** @internal */ export type UpdateDrainResponseBodyFilterV2$Outbound = - | UpdateDrainFilterV22$Outbound - | UpdateDrainFilterV21$Outbound; + | UpdateDrainFilterV21$Outbound + | UpdateDrainFilterV22$Outbound; /** @internal */ export const UpdateDrainResponseBodyFilterV2$outboundSchema: z.ZodType< @@ -5303,8 +4923,8 @@ export const UpdateDrainResponseBodyFilterV2$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateDrainResponseBodyFilterV2 > = z.union([ - z.lazy(() => UpdateDrainFilterV22$outboundSchema), z.lazy(() => UpdateDrainFilterV21$outboundSchema), + z.lazy(() => UpdateDrainFilterV22$outboundSchema), ]); export function updateDrainResponseBodyFilterV2ToJSON( @@ -5356,13 +4976,13 @@ export const UpdateDrainResponseBody1$inboundSchema: z.ZodType< disabledBy: z.string().optional(), firstErrorTimestamp: z.number().optional(), source: z.union([ - z.lazy(() => UpdateDrainSourceDrains2$inboundSchema), z.lazy(() => UpdateDrainSourceDrains1$inboundSchema), + z.lazy(() => UpdateDrainSourceDrains2$inboundSchema), ]), filter: z.string().optional(), filterV2: z.union([ - z.lazy(() => UpdateDrainFilterV22$inboundSchema), z.lazy(() => UpdateDrainFilterV21$inboundSchema), + z.lazy(() => UpdateDrainFilterV22$inboundSchema), ]).optional(), }); /** @internal */ @@ -5387,11 +5007,11 @@ export type UpdateDrainResponseBody1$Outbound = { disabledReason?: string | undefined; disabledBy?: string | undefined; firstErrorTimestamp?: number | undefined; - source: UpdateDrainSourceDrains2$Outbound | UpdateDrainSourceDrains1$Outbound; + source: UpdateDrainSourceDrains1$Outbound | UpdateDrainSourceDrains2$Outbound; filter?: string | undefined; filterV2?: - | UpdateDrainFilterV22$Outbound | UpdateDrainFilterV21$Outbound + | UpdateDrainFilterV22$Outbound | undefined; }; @@ -5426,13 +5046,13 @@ export const UpdateDrainResponseBody1$outboundSchema: z.ZodType< disabledBy: z.string().optional(), firstErrorTimestamp: z.number().optional(), source: z.union([ - z.lazy(() => UpdateDrainSourceDrains2$outboundSchema), z.lazy(() => UpdateDrainSourceDrains1$outboundSchema), + z.lazy(() => UpdateDrainSourceDrains2$outboundSchema), ]), filter: z.string().optional(), filterV2: z.union([ - z.lazy(() => UpdateDrainFilterV22$outboundSchema), z.lazy(() => UpdateDrainFilterV21$outboundSchema), + z.lazy(() => UpdateDrainFilterV22$outboundSchema), ]).optional(), }); diff --git a/src/models/updateedgeconfigop.ts b/src/models/updateedgeconfigop.ts index 29fbbd42..b96c8947 100644 --- a/src/models/updateedgeconfigop.ts +++ b/src/models/updateedgeconfigop.ts @@ -5,7 +5,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; -import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; @@ -37,27 +36,13 @@ export type UpdateEdgeConfigTransfer = { export type UpdateEdgeConfigSchema = {}; -export const UpdateEdgeConfigPurposeEdgeConfigType = { - Experimentation: "experimentation", -} as const; -export type UpdateEdgeConfigPurposeEdgeConfigType = ClosedEnum< - typeof UpdateEdgeConfigPurposeEdgeConfigType ->; - export type UpdateEdgeConfigPurpose2 = { - type: UpdateEdgeConfigPurposeEdgeConfigType; + type: "experimentation"; resourceId: string; }; -export const UpdateEdgeConfigPurposeType = { - Flags: "flags", -} as const; -export type UpdateEdgeConfigPurposeType = ClosedEnum< - typeof UpdateEdgeConfigPurposeType ->; - export type UpdateEdgeConfigPurpose1 = { - type: UpdateEdgeConfigPurposeType; + type: "flags"; projectId: string; }; @@ -268,28 +253,18 @@ export function updateEdgeConfigSchemaFromJSON( ); } -/** @internal */ -export const UpdateEdgeConfigPurposeEdgeConfigType$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - UpdateEdgeConfigPurposeEdgeConfigType, - ); -/** @internal */ -export const UpdateEdgeConfigPurposeEdgeConfigType$outboundSchema: - z.ZodNativeEnum = - UpdateEdgeConfigPurposeEdgeConfigType$inboundSchema; - /** @internal */ export const UpdateEdgeConfigPurpose2$inboundSchema: z.ZodType< UpdateEdgeConfigPurpose2, z.ZodTypeDef, unknown > = z.object({ - type: UpdateEdgeConfigPurposeEdgeConfigType$inboundSchema, + type: z.literal("experimentation"), resourceId: z.string(), }); /** @internal */ export type UpdateEdgeConfigPurpose2$Outbound = { - type: string; + type: "experimentation"; resourceId: string; }; @@ -299,7 +274,7 @@ export const UpdateEdgeConfigPurpose2$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateEdgeConfigPurpose2 > = z.object({ - type: UpdateEdgeConfigPurposeEdgeConfigType$outboundSchema, + type: z.literal("experimentation"), resourceId: z.string(), }); @@ -320,27 +295,18 @@ export function updateEdgeConfigPurpose2FromJSON( ); } -/** @internal */ -export const UpdateEdgeConfigPurposeType$inboundSchema: z.ZodNativeEnum< - typeof UpdateEdgeConfigPurposeType -> = z.nativeEnum(UpdateEdgeConfigPurposeType); -/** @internal */ -export const UpdateEdgeConfigPurposeType$outboundSchema: z.ZodNativeEnum< - typeof UpdateEdgeConfigPurposeType -> = UpdateEdgeConfigPurposeType$inboundSchema; - /** @internal */ export const UpdateEdgeConfigPurpose1$inboundSchema: z.ZodType< UpdateEdgeConfigPurpose1, z.ZodTypeDef, unknown > = z.object({ - type: UpdateEdgeConfigPurposeType$inboundSchema, + type: z.literal("flags"), projectId: z.string(), }); /** @internal */ export type UpdateEdgeConfigPurpose1$Outbound = { - type: string; + type: "flags"; projectId: string; }; @@ -350,7 +316,7 @@ export const UpdateEdgeConfigPurpose1$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateEdgeConfigPurpose1 > = z.object({ - type: UpdateEdgeConfigPurposeType$outboundSchema, + type: z.literal("flags"), projectId: z.string(), }); diff --git a/src/models/updateprojectdatacacheop.ts b/src/models/updateprojectdatacacheop.ts index 1ddd6b3d..3211d1f9 100644 --- a/src/models/updateprojectdatacacheop.ts +++ b/src/models/updateprojectdatacacheop.ts @@ -180,217 +180,85 @@ export type UpdateProjectDataCacheProjectsResponse200ApplicationJSONType = typeof UpdateProjectDataCacheProjectsResponse200ApplicationJSONType >; -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type = - { - FlagsConnectionString: "flags-connection-string", - } as const; -export type UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type = - ClosedEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type - >; - export type ContentHint15 = { - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type; + type: "flags-connection-string"; projectId: string; }; -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type = - { - IntegrationStoreSecret: "integration-store-secret", - } as const; -export type UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type = - ClosedEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type - >; - export type ContentHint14 = { - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; integrationConfigurationId: string; }; -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type = - { - PostgresUrlNoSsl: "postgres-url-no-ssl", - } as const; -export type UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type = - ClosedEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type - >; - export type ContentHint13 = { - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type; + type: "postgres-url-no-ssl"; storeId: string; }; -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type = - { - PostgresDatabase: "postgres-database", - } as const; -export type UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type = - ClosedEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type - >; - export type ContentHint12 = { - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type; + type: "postgres-database"; storeId: string; }; -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type = - { - PostgresPassword: "postgres-password", - } as const; -export type UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type = - ClosedEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type - >; - export type ContentHint11 = { - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type; + type: "postgres-password"; storeId: string; }; -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type = - { - PostgresHost: "postgres-host", - } as const; -export type UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type = - ClosedEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type - >; - export type ContentHint10 = { - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type; + type: "postgres-host"; storeId: string; }; -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type = - { - PostgresUser: "postgres-user", - } as const; -export type UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type = - ClosedEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type - >; - export type ContentHint9 = { - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type; + type: "postgres-user"; storeId: string; }; -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType = - { - PostgresPrismaUrl: "postgres-prisma-url", - } as const; -export type UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType = - ClosedEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType - >; - export type ContentHint8 = { - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType; + type: "postgres-prisma-url"; storeId: string; }; -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyType = - { - PostgresUrlNonPooling: "postgres-url-non-pooling", - } as const; -export type UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyType = - ClosedEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyType - >; - export type ContentHint7 = { - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyType; + type: "postgres-url-non-pooling"; storeId: string; }; -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONType = - { - PostgresUrl: "postgres-url", - } as const; -export type UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONType = - ClosedEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONType - >; - export type ContentHint6 = { - type: UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONType; + type: "postgres-url"; storeId: string; }; -export const UpdateProjectDataCacheContentHintProjectsResponse200Type = { - BlobReadWriteToken: "blob-read-write-token", -} as const; -export type UpdateProjectDataCacheContentHintProjectsResponse200Type = - ClosedEnum; - export type ContentHint5 = { - type: UpdateProjectDataCacheContentHintProjectsResponse200Type; + type: "blob-read-write-token"; storeId: string; }; -export const UpdateProjectDataCacheContentHintProjectsResponseType = { - RedisRestApiReadOnlyToken: "redis-rest-api-read-only-token", -} as const; -export type UpdateProjectDataCacheContentHintProjectsResponseType = ClosedEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponseType ->; - export type ContentHint4 = { - type: UpdateProjectDataCacheContentHintProjectsResponseType; + type: "redis-rest-api-read-only-token"; storeId: string; }; -export const UpdateProjectDataCacheContentHintProjectsType = { - RedisRestApiToken: "redis-rest-api-token", -} as const; -export type UpdateProjectDataCacheContentHintProjectsType = ClosedEnum< - typeof UpdateProjectDataCacheContentHintProjectsType ->; - export type ContentHint3 = { - type: UpdateProjectDataCacheContentHintProjectsType; + type: "redis-rest-api-token"; storeId: string; }; -export const UpdateProjectDataCacheContentHintType = { - RedisRestApiUrl: "redis-rest-api-url", -} as const; -export type UpdateProjectDataCacheContentHintType = ClosedEnum< - typeof UpdateProjectDataCacheContentHintType ->; - export type ContentHint2 = { - type: UpdateProjectDataCacheContentHintType; + type: "redis-rest-api-url"; storeId: string; }; -export const ContentHintType = { - RedisUrl: "redis-url", -} as const; -export type ContentHintType = ClosedEnum; - export type ContentHint1 = { - type: ContentHintType; + type: "redis-url"; storeId: string; }; export type ContentHint = - | ContentHint14 | ContentHint1 | ContentHint2 | ContentHint3 @@ -404,6 +272,7 @@ export type ContentHint = | ContentHint11 | ContentHint12 | ContentHint13 + | ContentHint14 | ContentHint15; export const UpdateProjectDataCacheProjectsResponse200ApplicationJSONResponseBodyEnvType = @@ -451,7 +320,6 @@ export type UpdateProjectDataCacheEnv = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | ContentHint14 | ContentHint1 | ContentHint2 | ContentHint3 @@ -465,6 +333,7 @@ export type UpdateProjectDataCacheEnv = { | ContentHint11 | ContentHint12 | ContentHint13 + | ContentHint14 | ContentHint15 | null | undefined; @@ -829,13 +698,6 @@ export type LatestDeployments = { withCache?: boolean | undefined; }; -export const UpdateProjectDataCacheLinkProjectsResponse200Type = { - Bitbucket: "bitbucket", -} as const; -export type UpdateProjectDataCacheLinkProjectsResponse200Type = ClosedEnum< - typeof UpdateProjectDataCacheLinkProjectsResponse200Type ->; - export type UpdateProjectDataCacheLinkProjectsResponseDeployHooks = { createdAt?: number | undefined; id: string; @@ -848,7 +710,7 @@ export type Link5 = { name: string; slug: string; owner: string; - type: UpdateProjectDataCacheLinkProjectsResponse200Type; + type: "bitbucket"; uuid: string; workspaceUuid: string; createdAt?: number | undefined; @@ -859,13 +721,6 @@ export type Link5 = { productionBranch: string; }; -export const UpdateProjectDataCacheLinkProjectsResponseType = { - Gitlab: "gitlab", -} as const; -export type UpdateProjectDataCacheLinkProjectsResponseType = ClosedEnum< - typeof UpdateProjectDataCacheLinkProjectsResponseType ->; - export type UpdateProjectDataCacheLinkProjectsDeployHooks = { createdAt?: number | undefined; id: string; @@ -884,7 +739,7 @@ export type Link4 = { */ projectOwnerId?: number | undefined; projectUrl: string; - type: UpdateProjectDataCacheLinkProjectsResponseType; + type: "gitlab"; createdAt?: number | undefined; deployHooks: Array; gitCredentialId: string; @@ -893,13 +748,6 @@ export type Link4 = { productionBranch: string; }; -export const UpdateProjectDataCacheLinkProjectsType = { - GithubCustomHost: "github-custom-host", -} as const; -export type UpdateProjectDataCacheLinkProjectsType = ClosedEnum< - typeof UpdateProjectDataCacheLinkProjectsType ->; - export type UpdateProjectDataCacheLinkDeployHooks = { createdAt?: number | undefined; id: string; @@ -916,7 +764,7 @@ export type Link3 = { repoOwnerId?: number | undefined; repo?: string | undefined; repoId?: number | undefined; - type: UpdateProjectDataCacheLinkProjectsType; + type: "github-custom-host"; host: string; createdAt?: number | undefined; deployHooks: Array; @@ -926,13 +774,6 @@ export type Link3 = { productionBranch: string; }; -export const UpdateProjectDataCacheLinkType = { - GithubLimited: "github-limited", -} as const; -export type UpdateProjectDataCacheLinkType = ClosedEnum< - typeof UpdateProjectDataCacheLinkType ->; - export type LinkDeployHooks = { createdAt?: number | undefined; id: string; @@ -942,7 +783,7 @@ export type LinkDeployHooks = { }; export type Link2 = { - type: UpdateProjectDataCacheLinkType; + type: "github-limited"; createdAt?: number | undefined; updatedAt?: number | undefined; org: string; @@ -958,11 +799,6 @@ export type Link2 = { productionBranch: string; }; -export const LinkType = { - Github: "github", -} as const; -export type LinkType = ClosedEnum; - export type DeployHooks = { createdAt?: number | undefined; id: string; @@ -979,7 +815,7 @@ export type Link1 = { repoOwnerId?: number | undefined; repo?: string | undefined; repoId?: number | undefined; - type: LinkType; + type: "github"; createdAt?: number | undefined; deployHooks: Array; gitCredentialId: string; @@ -988,7 +824,7 @@ export type Link1 = { productionBranch: string; }; -export type Link = Link4 | Link5 | Link3 | Link1 | Link2; +export type Link = Link1 | Link2 | Link3 | Link4 | Link5; export type UpdateProjectDataCacheMicrofrontends3 = { updatedAt: number; @@ -1638,28 +1474,16 @@ export type LastAliasRequest = { type: UpdateProjectDataCacheProjectsResponse200Type; }; -export const ProtectionBypassScope = { - AutomationBypass: "automation-bypass", -} as const; -export type ProtectionBypassScope = ClosedEnum; - export type ProtectionBypass2 = { createdAt: number; createdBy: string; - scope: ProtectionBypassScope; + scope: "automation-bypass"; }; -export const UpdateProjectDataCacheProtectionBypassScope = { - IntegrationAutomationBypass: "integration-automation-bypass", -} as const; -export type UpdateProjectDataCacheProtectionBypassScope = ClosedEnum< - typeof UpdateProjectDataCacheProtectionBypassScope ->; - export type ProtectionBypass1 = { createdAt: number; createdBy: string; - scope: UpdateProjectDataCacheProtectionBypassScope; + scope: "integration-automation-bypass"; integrationId: string; configurationId: string; }; @@ -1889,35 +1713,15 @@ export type Block = { isCascading?: boolean | undefined; }; -export const UpdateProjectDataCacheBlockHistoryProjectsResponseAction = { - RouteUnblocked: "route-unblocked", -} as const; -export type UpdateProjectDataCacheBlockHistoryProjectsResponseAction = - ClosedEnum; - -export const UpdateProjectDataCacheHasProjectsResponseType = { - Host: "host", -} as const; -export type UpdateProjectDataCacheHasProjectsResponseType = ClosedEnum< - typeof UpdateProjectDataCacheHasProjectsResponseType ->; - export type UpdateProjectDataCacheHasProjectsValue = { eq: string; }; export type UpdateProjectDataCacheHas2 = { - type: UpdateProjectDataCacheHasProjectsResponseType; + type: "host"; value: UpdateProjectDataCacheHasProjectsValue; }; -export const UpdateProjectDataCacheHasProjectsType = { - Header: "header", -} as const; -export type UpdateProjectDataCacheHasProjectsType = ClosedEnum< - typeof UpdateProjectDataCacheHasProjectsType ->; - export const UpdateProjectDataCacheHasProjectsKey = { XVercelIpCountry: "x-vercel-ip-country", } as const; @@ -1930,7 +1734,7 @@ export type UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue = { }; export type UpdateProjectDataCacheHas1 = { - type: UpdateProjectDataCacheHasProjectsType; + type: "header"; key: UpdateProjectDataCacheHasProjectsKey; value: UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue; }; @@ -1964,7 +1768,7 @@ export type BlockHistoryRoute = | UpdateProjectDataCacheRoute2; export type BlockHistory4 = { - action: UpdateProjectDataCacheBlockHistoryProjectsResponseAction; + action: "route-unblocked"; route: UpdateProjectDataCacheRoute1 | UpdateProjectDataCacheRoute2; statusCode?: number | undefined; createdAt: number; @@ -1974,37 +1778,15 @@ export type BlockHistory4 = { isCascading?: boolean | undefined; }; -export const UpdateProjectDataCacheBlockHistoryProjectsAction = { - RouteBlocked: "route-blocked", -} as const; -export type UpdateProjectDataCacheBlockHistoryProjectsAction = ClosedEnum< - typeof UpdateProjectDataCacheBlockHistoryProjectsAction ->; - -export const UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType = { - Host: "host", -} as const; -export type UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType = - ClosedEnum< - typeof UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType - >; - export type UpdateProjectDataCacheHasProjectsResponse200Value = { eq: string; }; export type UpdateProjectDataCacheHasProjects2 = { - type: UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType; + type: "host"; value: UpdateProjectDataCacheHasProjectsResponse200Value; }; -export const UpdateProjectDataCacheHasProjectsResponse200Type = { - Header: "header", -} as const; -export type UpdateProjectDataCacheHasProjectsResponse200Type = ClosedEnum< - typeof UpdateProjectDataCacheHasProjectsResponse200Type ->; - export const UpdateProjectDataCacheHasKey = { XVercelIpCountry: "x-vercel-ip-country", } as const; @@ -2017,7 +1799,7 @@ export type UpdateProjectDataCacheHasProjectsResponseValue = { }; export type UpdateProjectDataCacheHasProjects1 = { - type: UpdateProjectDataCacheHasProjectsResponse200Type; + type: "header"; key: UpdateProjectDataCacheHasKey; value: UpdateProjectDataCacheHasProjectsResponseValue; }; @@ -2051,7 +1833,7 @@ export type Route1 = { export type Route = Route1 | Route2; export type BlockHistory3 = { - action: UpdateProjectDataCacheBlockHistoryProjectsAction; + action: "route-blocked"; route: Route1 | Route2; reason: string; createdAt: number; @@ -2061,15 +1843,8 @@ export type BlockHistory3 = { isCascading?: boolean | undefined; }; -export const UpdateProjectDataCacheBlockHistoryAction = { - Unblocked: "unblocked", -} as const; -export type UpdateProjectDataCacheBlockHistoryAction = ClosedEnum< - typeof UpdateProjectDataCacheBlockHistoryAction ->; - export type BlockHistory2 = { - action: UpdateProjectDataCacheBlockHistoryAction; + action: "unblocked"; createdAt: number; caseId?: string | undefined; actor?: string | undefined; @@ -2077,13 +1852,8 @@ export type BlockHistory2 = { isCascading?: boolean | undefined; }; -export const BlockHistoryAction = { - Blocked: "blocked", -} as const; -export type BlockHistoryAction = ClosedEnum; - export type BlockHistory1 = { - action: BlockHistoryAction; + action: "blocked"; reason: string; statusCode: number; createdAt: number; @@ -2095,9 +1865,9 @@ export type BlockHistory1 = { export type UpdateProjectDataCacheBlockHistory = | BlockHistory1 + | BlockHistory2 | BlockHistory3 - | BlockHistory4 - | BlockHistory2; + | BlockHistory4; export type UpdateProjectDataCacheAbuse = { scanner?: string | undefined; @@ -2105,32 +1875,20 @@ export type UpdateProjectDataCacheAbuse = { updatedAt: number; block?: Block | undefined; blockHistory?: - | Array + | Array | undefined; interstitial?: boolean | undefined; }; -export const UpdateProjectDataCacheHasType = { - Host: "host", -} as const; -export type UpdateProjectDataCacheHasType = ClosedEnum< - typeof UpdateProjectDataCacheHasType ->; - export type HasValue = { eq: string; }; export type Has2 = { - type: UpdateProjectDataCacheHasType; + type: "host"; value: HasValue; }; -export const HasType = { - Header: "header", -} as const; -export type HasType = ClosedEnum; - export const Key = { XVercelIpCountry: "x-vercel-ip-country", } as const; @@ -2141,7 +1899,7 @@ export type UpdateProjectDataCacheHasValue = { }; export type Has1 = { - type: HasType; + type: "header"; key: Key; value: UpdateProjectDataCacheHasValue; }; @@ -2235,7 +1993,7 @@ export type UpdateProjectDataCacheResponseBody = { id: string; ipBuckets?: Array | undefined; latestDeployments?: Array | undefined; - link?: Link4 | Link5 | Link3 | Link1 | Link2 | undefined; + link?: Link1 | Link2 | Link3 | Link4 | Link5 | undefined; microfrontends?: | UpdateProjectDataCacheMicrofrontends1 | UpdateProjectDataCacheMicrofrontends2 @@ -2918,33 +2676,18 @@ export const UpdateProjectDataCacheProjectsResponse200ApplicationJSONType$outbou > = UpdateProjectDataCacheProjectsResponse200ApplicationJSONType$inboundSchema; -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type - > = z.nativeEnum( - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type, - ); -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type - > = - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type$inboundSchema; - /** @internal */ export const ContentHint15$inboundSchema: z.ZodType< ContentHint15, z.ZodTypeDef, unknown > = z.object({ - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type$inboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); /** @internal */ export type ContentHint15$Outbound = { - type: string; + type: "flags-connection-string"; projectId: string; }; @@ -2954,8 +2697,7 @@ export const ContentHint15$outboundSchema: z.ZodType< z.ZodTypeDef, ContentHint15 > = z.object({ - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type$outboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); @@ -2972,28 +2714,13 @@ export function contentHint15FromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type - > = z.nativeEnum( - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type, - ); -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type - > = - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type$inboundSchema; - /** @internal */ export const ContentHint14$inboundSchema: z.ZodType< ContentHint14, z.ZodTypeDef, unknown > = z.object({ - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type$inboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -3001,7 +2728,7 @@ export const ContentHint14$inboundSchema: z.ZodType< }); /** @internal */ export type ContentHint14$Outbound = { - type: string; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; @@ -3014,8 +2741,7 @@ export const ContentHint14$outboundSchema: z.ZodType< z.ZodTypeDef, ContentHint14 > = z.object({ - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type$outboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -3035,33 +2761,18 @@ export function contentHint14FromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type - > = z.nativeEnum( - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type, - ); -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type - > = - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type$inboundSchema; - /** @internal */ export const ContentHint13$inboundSchema: z.ZodType< ContentHint13, z.ZodTypeDef, unknown > = z.object({ - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type$inboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); /** @internal */ export type ContentHint13$Outbound = { - type: string; + type: "postgres-url-no-ssl"; storeId: string; }; @@ -3071,8 +2782,7 @@ export const ContentHint13$outboundSchema: z.ZodType< z.ZodTypeDef, ContentHint13 > = z.object({ - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type$outboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); @@ -3089,33 +2799,18 @@ export function contentHint13FromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type - > = z.nativeEnum( - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type, - ); -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type - > = - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type$inboundSchema; - /** @internal */ export const ContentHint12$inboundSchema: z.ZodType< ContentHint12, z.ZodTypeDef, unknown > = z.object({ - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type$inboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); /** @internal */ export type ContentHint12$Outbound = { - type: string; + type: "postgres-database"; storeId: string; }; @@ -3125,8 +2820,7 @@ export const ContentHint12$outboundSchema: z.ZodType< z.ZodTypeDef, ContentHint12 > = z.object({ - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type$outboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); @@ -3143,33 +2837,18 @@ export function contentHint12FromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type - > = z.nativeEnum( - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type, - ); -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type - > = - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type$inboundSchema; - /** @internal */ export const ContentHint11$inboundSchema: z.ZodType< ContentHint11, z.ZodTypeDef, unknown > = z.object({ - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type$inboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); /** @internal */ export type ContentHint11$Outbound = { - type: string; + type: "postgres-password"; storeId: string; }; @@ -3179,8 +2858,7 @@ export const ContentHint11$outboundSchema: z.ZodType< z.ZodTypeDef, ContentHint11 > = z.object({ - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type$outboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); @@ -3197,33 +2875,18 @@ export function contentHint11FromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type - > = z.nativeEnum( - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type, - ); -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type - > = - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type$inboundSchema; - /** @internal */ export const ContentHint10$inboundSchema: z.ZodType< ContentHint10, z.ZodTypeDef, unknown > = z.object({ - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type$inboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); /** @internal */ export type ContentHint10$Outbound = { - type: string; + type: "postgres-host"; storeId: string; }; @@ -3233,8 +2896,7 @@ export const ContentHint10$outboundSchema: z.ZodType< z.ZodTypeDef, ContentHint10 > = z.object({ - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type$outboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); @@ -3251,33 +2913,18 @@ export function contentHint10FromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type - > = z.nativeEnum( - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type, - ); -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type - > = - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type$inboundSchema; - /** @internal */ export const ContentHint9$inboundSchema: z.ZodType< ContentHint9, z.ZodTypeDef, unknown > = z.object({ - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type$inboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); /** @internal */ export type ContentHint9$Outbound = { - type: string; + type: "postgres-user"; storeId: string; }; @@ -3287,8 +2934,7 @@ export const ContentHint9$outboundSchema: z.ZodType< z.ZodTypeDef, ContentHint9 > = z.object({ - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type$outboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); @@ -3305,33 +2951,18 @@ export function contentHint9FromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType - > = z.nativeEnum( - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType, - ); -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType - > = - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType$inboundSchema; - /** @internal */ export const ContentHint8$inboundSchema: z.ZodType< ContentHint8, z.ZodTypeDef, unknown > = z.object({ - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType$inboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); /** @internal */ export type ContentHint8$Outbound = { - type: string; + type: "postgres-prisma-url"; storeId: string; }; @@ -3341,8 +2972,7 @@ export const ContentHint8$outboundSchema: z.ZodType< z.ZodTypeDef, ContentHint8 > = z.object({ - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType$outboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); @@ -3359,33 +2989,18 @@ export function contentHint8FromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyType - > = z.nativeEnum( - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyType, - ); -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyType - > = - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema; - /** @internal */ export const ContentHint7$inboundSchema: z.ZodType< ContentHint7, z.ZodTypeDef, unknown > = z.object({ - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); /** @internal */ export type ContentHint7$Outbound = { - type: string; + type: "postgres-url-non-pooling"; storeId: string; }; @@ -3395,8 +3010,7 @@ export const ContentHint7$outboundSchema: z.ZodType< z.ZodTypeDef, ContentHint7 > = z.object({ - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); @@ -3413,33 +3027,18 @@ export function contentHint7FromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONType$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONType - > = z.nativeEnum( - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONType, - ); -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONType$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONType - > = - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONType$inboundSchema; - /** @internal */ export const ContentHint6$inboundSchema: z.ZodType< ContentHint6, z.ZodTypeDef, unknown > = z.object({ - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONType$inboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); /** @internal */ export type ContentHint6$Outbound = { - type: string; + type: "postgres-url"; storeId: string; }; @@ -3449,8 +3048,7 @@ export const ContentHint6$outboundSchema: z.ZodType< z.ZodTypeDef, ContentHint6 > = z.object({ - type: - UpdateProjectDataCacheContentHintProjectsResponse200ApplicationJSONType$outboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); @@ -3467,29 +3065,18 @@ export function contentHint6FromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponse200Type$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200Type - > = z.nativeEnum(UpdateProjectDataCacheContentHintProjectsResponse200Type); -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponse200Type$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponse200Type - > = UpdateProjectDataCacheContentHintProjectsResponse200Type$inboundSchema; - /** @internal */ export const ContentHint5$inboundSchema: z.ZodType< ContentHint5, z.ZodTypeDef, unknown > = z.object({ - type: UpdateProjectDataCacheContentHintProjectsResponse200Type$inboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); /** @internal */ export type ContentHint5$Outbound = { - type: string; + type: "blob-read-write-token"; storeId: string; }; @@ -3499,7 +3086,7 @@ export const ContentHint5$outboundSchema: z.ZodType< z.ZodTypeDef, ContentHint5 > = z.object({ - type: UpdateProjectDataCacheContentHintProjectsResponse200Type$outboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); @@ -3516,29 +3103,18 @@ export function contentHint5FromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponseType$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponseType - > = z.nativeEnum(UpdateProjectDataCacheContentHintProjectsResponseType); -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsResponseType$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheContentHintProjectsResponseType - > = UpdateProjectDataCacheContentHintProjectsResponseType$inboundSchema; - /** @internal */ export const ContentHint4$inboundSchema: z.ZodType< ContentHint4, z.ZodTypeDef, unknown > = z.object({ - type: UpdateProjectDataCacheContentHintProjectsResponseType$inboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); /** @internal */ export type ContentHint4$Outbound = { - type: string; + type: "redis-rest-api-read-only-token"; storeId: string; }; @@ -3548,7 +3124,7 @@ export const ContentHint4$outboundSchema: z.ZodType< z.ZodTypeDef, ContentHint4 > = z.object({ - type: UpdateProjectDataCacheContentHintProjectsResponseType$outboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); @@ -3565,27 +3141,18 @@ export function contentHint4FromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(UpdateProjectDataCacheContentHintProjectsType); -/** @internal */ -export const UpdateProjectDataCacheContentHintProjectsType$outboundSchema: - z.ZodNativeEnum = - UpdateProjectDataCacheContentHintProjectsType$inboundSchema; - /** @internal */ export const ContentHint3$inboundSchema: z.ZodType< ContentHint3, z.ZodTypeDef, unknown > = z.object({ - type: UpdateProjectDataCacheContentHintProjectsType$inboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); /** @internal */ export type ContentHint3$Outbound = { - type: string; + type: "redis-rest-api-token"; storeId: string; }; @@ -3595,7 +3162,7 @@ export const ContentHint3$outboundSchema: z.ZodType< z.ZodTypeDef, ContentHint3 > = z.object({ - type: UpdateProjectDataCacheContentHintProjectsType$outboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); @@ -3612,28 +3179,18 @@ export function contentHint3FromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheContentHintType$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - UpdateProjectDataCacheContentHintType, - ); -/** @internal */ -export const UpdateProjectDataCacheContentHintType$outboundSchema: - z.ZodNativeEnum = - UpdateProjectDataCacheContentHintType$inboundSchema; - /** @internal */ export const ContentHint2$inboundSchema: z.ZodType< ContentHint2, z.ZodTypeDef, unknown > = z.object({ - type: UpdateProjectDataCacheContentHintType$inboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); /** @internal */ export type ContentHint2$Outbound = { - type: string; + type: "redis-rest-api-url"; storeId: string; }; @@ -3643,7 +3200,7 @@ export const ContentHint2$outboundSchema: z.ZodType< z.ZodTypeDef, ContentHint2 > = z.object({ - type: UpdateProjectDataCacheContentHintType$outboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); @@ -3660,27 +3217,18 @@ export function contentHint2FromJSON( ); } -/** @internal */ -export const ContentHintType$inboundSchema: z.ZodNativeEnum< - typeof ContentHintType -> = z.nativeEnum(ContentHintType); -/** @internal */ -export const ContentHintType$outboundSchema: z.ZodNativeEnum< - typeof ContentHintType -> = ContentHintType$inboundSchema; - /** @internal */ export const ContentHint1$inboundSchema: z.ZodType< ContentHint1, z.ZodTypeDef, unknown > = z.object({ - type: ContentHintType$inboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); /** @internal */ export type ContentHint1$Outbound = { - type: string; + type: "redis-url"; storeId: string; }; @@ -3690,7 +3238,7 @@ export const ContentHint1$outboundSchema: z.ZodType< z.ZodTypeDef, ContentHint1 > = z.object({ - type: ContentHintType$outboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); @@ -3713,7 +3261,6 @@ export const ContentHint$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => ContentHint14$inboundSchema), z.lazy(() => ContentHint1$inboundSchema), z.lazy(() => ContentHint2$inboundSchema), z.lazy(() => ContentHint3$inboundSchema), @@ -3727,11 +3274,11 @@ export const ContentHint$inboundSchema: z.ZodType< z.lazy(() => ContentHint11$inboundSchema), z.lazy(() => ContentHint12$inboundSchema), z.lazy(() => ContentHint13$inboundSchema), + z.lazy(() => ContentHint14$inboundSchema), z.lazy(() => ContentHint15$inboundSchema), ]); /** @internal */ export type ContentHint$Outbound = - | ContentHint14$Outbound | ContentHint1$Outbound | ContentHint2$Outbound | ContentHint3$Outbound @@ -3745,6 +3292,7 @@ export type ContentHint$Outbound = | ContentHint11$Outbound | ContentHint12$Outbound | ContentHint13$Outbound + | ContentHint14$Outbound | ContentHint15$Outbound; /** @internal */ @@ -3753,7 +3301,6 @@ export const ContentHint$outboundSchema: z.ZodType< z.ZodTypeDef, ContentHint > = z.union([ - z.lazy(() => ContentHint14$outboundSchema), z.lazy(() => ContentHint1$outboundSchema), z.lazy(() => ContentHint2$outboundSchema), z.lazy(() => ContentHint3$outboundSchema), @@ -3767,6 +3314,7 @@ export const ContentHint$outboundSchema: z.ZodType< z.lazy(() => ContentHint11$outboundSchema), z.lazy(() => ContentHint12$outboundSchema), z.lazy(() => ContentHint13$outboundSchema), + z.lazy(() => ContentHint14$outboundSchema), z.lazy(() => ContentHint15$outboundSchema), ]); @@ -3869,7 +3417,6 @@ export const UpdateProjectDataCacheEnv$inboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => ContentHint14$inboundSchema), z.lazy(() => ContentHint1$inboundSchema), z.lazy(() => ContentHint2$inboundSchema), z.lazy(() => ContentHint3$inboundSchema), @@ -3883,6 +3430,7 @@ export const UpdateProjectDataCacheEnv$inboundSchema: z.ZodType< z.lazy(() => ContentHint11$inboundSchema), z.lazy(() => ContentHint12$inboundSchema), z.lazy(() => ContentHint13$inboundSchema), + z.lazy(() => ContentHint14$inboundSchema), z.lazy(() => ContentHint15$inboundSchema), ]), ).optional(), @@ -3911,7 +3459,6 @@ export type UpdateProjectDataCacheEnv$Outbound = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | ContentHint14$Outbound | ContentHint1$Outbound | ContentHint2$Outbound | ContentHint3$Outbound @@ -3925,6 +3472,7 @@ export type UpdateProjectDataCacheEnv$Outbound = { | ContentHint11$Outbound | ContentHint12$Outbound | ContentHint13$Outbound + | ContentHint14$Outbound | ContentHint15$Outbound | null | undefined; @@ -3961,7 +3509,6 @@ export const UpdateProjectDataCacheEnv$outboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => ContentHint14$outboundSchema), z.lazy(() => ContentHint1$outboundSchema), z.lazy(() => ContentHint2$outboundSchema), z.lazy(() => ContentHint3$outboundSchema), @@ -3975,6 +3522,7 @@ export const UpdateProjectDataCacheEnv$outboundSchema: z.ZodType< z.lazy(() => ContentHint11$outboundSchema), z.lazy(() => ContentHint12$outboundSchema), z.lazy(() => ContentHint13$outboundSchema), + z.lazy(() => ContentHint14$outboundSchema), z.lazy(() => ContentHint15$outboundSchema), ]), ).optional(), @@ -4888,15 +4436,6 @@ export function latestDeploymentsFromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheLinkProjectsResponse200Type$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(UpdateProjectDataCacheLinkProjectsResponse200Type); -/** @internal */ -export const UpdateProjectDataCacheLinkProjectsResponse200Type$outboundSchema: - z.ZodNativeEnum = - UpdateProjectDataCacheLinkProjectsResponse200Type$inboundSchema; - /** @internal */ export const UpdateProjectDataCacheLinkProjectsResponseDeployHooks$inboundSchema: z.ZodType< @@ -4965,7 +4504,7 @@ export const Link5$inboundSchema: z.ZodType = z name: z.string(), slug: z.string(), owner: z.string(), - type: UpdateProjectDataCacheLinkProjectsResponse200Type$inboundSchema, + type: z.literal("bitbucket"), uuid: z.string(), workspaceUuid: z.string(), createdAt: z.number().optional(), @@ -4984,7 +4523,7 @@ export type Link5$Outbound = { name: string; slug: string; owner: string; - type: string; + type: "bitbucket"; uuid: string; workspaceUuid: string; createdAt?: number | undefined; @@ -5006,7 +4545,7 @@ export const Link5$outboundSchema: z.ZodType< name: z.string(), slug: z.string(), owner: z.string(), - type: UpdateProjectDataCacheLinkProjectsResponse200Type$outboundSchema, + type: z.literal("bitbucket"), uuid: z.string(), workspaceUuid: z.string(), createdAt: z.number().optional(), @@ -5034,15 +4573,6 @@ export function link5FromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheLinkProjectsResponseType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(UpdateProjectDataCacheLinkProjectsResponseType); -/** @internal */ -export const UpdateProjectDataCacheLinkProjectsResponseType$outboundSchema: - z.ZodNativeEnum = - UpdateProjectDataCacheLinkProjectsResponseType$inboundSchema; - /** @internal */ export const UpdateProjectDataCacheLinkProjectsDeployHooks$inboundSchema: z.ZodType< @@ -5114,7 +4644,7 @@ export const Link4$inboundSchema: z.ZodType = z projectNamespace: z.string(), projectOwnerId: z.number().optional(), projectUrl: z.string(), - type: UpdateProjectDataCacheLinkProjectsResponseType$inboundSchema, + type: z.literal("gitlab"), createdAt: z.number().optional(), deployHooks: z.array( z.lazy(() => UpdateProjectDataCacheLinkProjectsDeployHooks$inboundSchema), @@ -5132,7 +4662,7 @@ export type Link4$Outbound = { projectNamespace: string; projectOwnerId?: number | undefined; projectUrl: string; - type: string; + type: "gitlab"; createdAt?: number | undefined; deployHooks: Array; gitCredentialId: string; @@ -5153,7 +4683,7 @@ export const Link4$outboundSchema: z.ZodType< projectNamespace: z.string(), projectOwnerId: z.number().optional(), projectUrl: z.string(), - type: UpdateProjectDataCacheLinkProjectsResponseType$outboundSchema, + type: z.literal("gitlab"), createdAt: z.number().optional(), deployHooks: z.array( z.lazy(() => UpdateProjectDataCacheLinkProjectsDeployHooks$outboundSchema), @@ -5177,16 +4707,6 @@ export function link4FromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheLinkProjectsType$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - UpdateProjectDataCacheLinkProjectsType, - ); -/** @internal */ -export const UpdateProjectDataCacheLinkProjectsType$outboundSchema: - z.ZodNativeEnum = - UpdateProjectDataCacheLinkProjectsType$inboundSchema; - /** @internal */ export const UpdateProjectDataCacheLinkDeployHooks$inboundSchema: z.ZodType< UpdateProjectDataCacheLinkDeployHooks, @@ -5248,7 +4768,7 @@ export const Link3$inboundSchema: z.ZodType = z repoOwnerId: z.number().optional(), repo: z.string().optional(), repoId: z.number().optional(), - type: UpdateProjectDataCacheLinkProjectsType$inboundSchema, + type: z.literal("github-custom-host"), host: z.string(), createdAt: z.number().optional(), deployHooks: z.array( @@ -5265,7 +4785,7 @@ export type Link3$Outbound = { repoOwnerId?: number | undefined; repo?: string | undefined; repoId?: number | undefined; - type: string; + type: "github-custom-host"; host: string; createdAt?: number | undefined; deployHooks: Array; @@ -5285,7 +4805,7 @@ export const Link3$outboundSchema: z.ZodType< repoOwnerId: z.number().optional(), repo: z.string().optional(), repoId: z.number().optional(), - type: UpdateProjectDataCacheLinkProjectsType$outboundSchema, + type: z.literal("github-custom-host"), host: z.string(), createdAt: z.number().optional(), deployHooks: z.array( @@ -5310,15 +4830,6 @@ export function link3FromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheLinkType$inboundSchema: z.ZodNativeEnum< - typeof UpdateProjectDataCacheLinkType -> = z.nativeEnum(UpdateProjectDataCacheLinkType); -/** @internal */ -export const UpdateProjectDataCacheLinkType$outboundSchema: z.ZodNativeEnum< - typeof UpdateProjectDataCacheLinkType -> = UpdateProjectDataCacheLinkType$inboundSchema; - /** @internal */ export const LinkDeployHooks$inboundSchema: z.ZodType< LinkDeployHooks, @@ -5371,7 +4882,7 @@ export function linkDeployHooksFromJSON( /** @internal */ export const Link2$inboundSchema: z.ZodType = z .object({ - type: UpdateProjectDataCacheLinkType$inboundSchema, + type: z.literal("github-limited"), createdAt: z.number().optional(), updatedAt: z.number().optional(), org: z.string(), @@ -5385,7 +4896,7 @@ export const Link2$inboundSchema: z.ZodType = z }); /** @internal */ export type Link2$Outbound = { - type: string; + type: "github-limited"; createdAt?: number | undefined; updatedAt?: number | undefined; org: string; @@ -5404,7 +4915,7 @@ export const Link2$outboundSchema: z.ZodType< z.ZodTypeDef, Link2 > = z.object({ - type: UpdateProjectDataCacheLinkType$outboundSchema, + type: z.literal("github-limited"), createdAt: z.number().optional(), updatedAt: z.number().optional(), org: z.string(), @@ -5430,13 +4941,6 @@ export function link2FromJSON( ); } -/** @internal */ -export const LinkType$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(LinkType); -/** @internal */ -export const LinkType$outboundSchema: z.ZodNativeEnum = - LinkType$inboundSchema; - /** @internal */ export const DeployHooks$inboundSchema: z.ZodType< DeployHooks, @@ -5491,7 +4995,7 @@ export const Link1$inboundSchema: z.ZodType = z repoOwnerId: z.number().optional(), repo: z.string().optional(), repoId: z.number().optional(), - type: LinkType$inboundSchema, + type: z.literal("github"), createdAt: z.number().optional(), deployHooks: z.array(z.lazy(() => DeployHooks$inboundSchema)), gitCredentialId: z.string(), @@ -5505,7 +5009,7 @@ export type Link1$Outbound = { repoOwnerId?: number | undefined; repo?: string | undefined; repoId?: number | undefined; - type: string; + type: "github"; createdAt?: number | undefined; deployHooks: Array; gitCredentialId: string; @@ -5524,7 +5028,7 @@ export const Link1$outboundSchema: z.ZodType< repoOwnerId: z.number().optional(), repo: z.string().optional(), repoId: z.number().optional(), - type: LinkType$outboundSchema, + type: z.literal("github"), createdAt: z.number().optional(), deployHooks: z.array(z.lazy(() => DeployHooks$outboundSchema)), gitCredentialId: z.string(), @@ -5549,28 +5053,28 @@ export function link1FromJSON( /** @internal */ export const Link$inboundSchema: z.ZodType = z .union([ - z.lazy(() => Link4$inboundSchema), - z.lazy(() => Link5$inboundSchema), - z.lazy(() => Link3$inboundSchema), z.lazy(() => Link1$inboundSchema), z.lazy(() => Link2$inboundSchema), + z.lazy(() => Link3$inboundSchema), + z.lazy(() => Link4$inboundSchema), + z.lazy(() => Link5$inboundSchema), ]); /** @internal */ export type Link$Outbound = - | Link4$Outbound - | Link5$Outbound - | Link3$Outbound | Link1$Outbound - | Link2$Outbound; + | Link2$Outbound + | Link3$Outbound + | Link4$Outbound + | Link5$Outbound; /** @internal */ export const Link$outboundSchema: z.ZodType = z.union([ - z.lazy(() => Link4$outboundSchema), - z.lazy(() => Link5$outboundSchema), - z.lazy(() => Link3$outboundSchema), z.lazy(() => Link1$outboundSchema), z.lazy(() => Link2$outboundSchema), + z.lazy(() => Link3$outboundSchema), + z.lazy(() => Link4$outboundSchema), + z.lazy(() => Link5$outboundSchema), ]); export function linkToJSON(link: Link): string { @@ -7704,15 +7208,6 @@ export function lastAliasRequestFromJSON( ); } -/** @internal */ -export const ProtectionBypassScope$inboundSchema: z.ZodNativeEnum< - typeof ProtectionBypassScope -> = z.nativeEnum(ProtectionBypassScope); -/** @internal */ -export const ProtectionBypassScope$outboundSchema: z.ZodNativeEnum< - typeof ProtectionBypassScope -> = ProtectionBypassScope$inboundSchema; - /** @internal */ export const ProtectionBypass2$inboundSchema: z.ZodType< ProtectionBypass2, @@ -7721,13 +7216,13 @@ export const ProtectionBypass2$inboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: ProtectionBypassScope$inboundSchema, + scope: z.literal("automation-bypass"), }); /** @internal */ export type ProtectionBypass2$Outbound = { createdAt: number; createdBy: string; - scope: string; + scope: "automation-bypass"; }; /** @internal */ @@ -7738,7 +7233,7 @@ export const ProtectionBypass2$outboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: ProtectionBypassScope$outboundSchema, + scope: z.literal("automation-bypass"), }); export function protectionBypass2ToJSON( @@ -7758,15 +7253,6 @@ export function protectionBypass2FromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheProtectionBypassScope$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(UpdateProjectDataCacheProtectionBypassScope); -/** @internal */ -export const UpdateProjectDataCacheProtectionBypassScope$outboundSchema: - z.ZodNativeEnum = - UpdateProjectDataCacheProtectionBypassScope$inboundSchema; - /** @internal */ export const ProtectionBypass1$inboundSchema: z.ZodType< ProtectionBypass1, @@ -7775,7 +7261,7 @@ export const ProtectionBypass1$inboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: UpdateProjectDataCacheProtectionBypassScope$inboundSchema, + scope: z.literal("integration-automation-bypass"), integrationId: z.string(), configurationId: z.string(), }); @@ -7783,7 +7269,7 @@ export const ProtectionBypass1$inboundSchema: z.ZodType< export type ProtectionBypass1$Outbound = { createdAt: number; createdBy: string; - scope: string; + scope: "integration-automation-bypass"; integrationId: string; configurationId: string; }; @@ -7796,7 +7282,7 @@ export const ProtectionBypass1$outboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: UpdateProjectDataCacheProtectionBypassScope$outboundSchema, + scope: z.literal("integration-automation-bypass"), integrationId: z.string(), configurationId: z.string(), }); @@ -8722,26 +8208,6 @@ export function blockFromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheBlockHistoryProjectsResponseAction$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheBlockHistoryProjectsResponseAction - > = z.nativeEnum(UpdateProjectDataCacheBlockHistoryProjectsResponseAction); -/** @internal */ -export const UpdateProjectDataCacheBlockHistoryProjectsResponseAction$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheBlockHistoryProjectsResponseAction - > = UpdateProjectDataCacheBlockHistoryProjectsResponseAction$inboundSchema; - -/** @internal */ -export const UpdateProjectDataCacheHasProjectsResponseType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(UpdateProjectDataCacheHasProjectsResponseType); -/** @internal */ -export const UpdateProjectDataCacheHasProjectsResponseType$outboundSchema: - z.ZodNativeEnum = - UpdateProjectDataCacheHasProjectsResponseType$inboundSchema; - /** @internal */ export const UpdateProjectDataCacheHasProjectsValue$inboundSchema: z.ZodType< UpdateProjectDataCacheHasProjectsValue, @@ -8791,12 +8257,12 @@ export const UpdateProjectDataCacheHas2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: UpdateProjectDataCacheHasProjectsResponseType$inboundSchema, + type: z.literal("host"), value: z.lazy(() => UpdateProjectDataCacheHasProjectsValue$inboundSchema), }); /** @internal */ export type UpdateProjectDataCacheHas2$Outbound = { - type: string; + type: "host"; value: UpdateProjectDataCacheHasProjectsValue$Outbound; }; @@ -8806,7 +8272,7 @@ export const UpdateProjectDataCacheHas2$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectDataCacheHas2 > = z.object({ - type: UpdateProjectDataCacheHasProjectsResponseType$outboundSchema, + type: z.literal("host"), value: z.lazy(() => UpdateProjectDataCacheHasProjectsValue$outboundSchema), }); @@ -8827,16 +8293,6 @@ export function updateProjectDataCacheHas2FromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheHasProjectsType$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - UpdateProjectDataCacheHasProjectsType, - ); -/** @internal */ -export const UpdateProjectDataCacheHasProjectsType$outboundSchema: - z.ZodNativeEnum = - UpdateProjectDataCacheHasProjectsType$inboundSchema; - /** @internal */ export const UpdateProjectDataCacheHasProjectsKey$inboundSchema: z.ZodNativeEnum = z.nativeEnum( @@ -8902,7 +8358,7 @@ export const UpdateProjectDataCacheHas1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: UpdateProjectDataCacheHasProjectsType$inboundSchema, + type: z.literal("header"), key: UpdateProjectDataCacheHasProjectsKey$inboundSchema, value: z.lazy(() => UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue$inboundSchema @@ -8910,7 +8366,7 @@ export const UpdateProjectDataCacheHas1$inboundSchema: z.ZodType< }); /** @internal */ export type UpdateProjectDataCacheHas1$Outbound = { - type: string; + type: "header"; key: string; value: UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue$Outbound; @@ -8922,7 +8378,7 @@ export const UpdateProjectDataCacheHas1$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectDataCacheHas1 > = z.object({ - type: UpdateProjectDataCacheHasProjectsType$outboundSchema, + type: z.literal("header"), key: UpdateProjectDataCacheHasProjectsKey$outboundSchema, value: z.lazy(() => UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONValue$outboundSchema @@ -9177,8 +8633,7 @@ export const BlockHistory4$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - action: - UpdateProjectDataCacheBlockHistoryProjectsResponseAction$inboundSchema, + action: z.literal("route-unblocked"), route: z.union([ z.lazy(() => UpdateProjectDataCacheRoute1$inboundSchema), z.lazy(() => UpdateProjectDataCacheRoute2$inboundSchema), @@ -9192,7 +8647,7 @@ export const BlockHistory4$inboundSchema: z.ZodType< }); /** @internal */ export type BlockHistory4$Outbound = { - action: string; + action: "route-unblocked"; route: | UpdateProjectDataCacheRoute1$Outbound | UpdateProjectDataCacheRoute2$Outbound; @@ -9210,8 +8665,7 @@ export const BlockHistory4$outboundSchema: z.ZodType< z.ZodTypeDef, BlockHistory4 > = z.object({ - action: - UpdateProjectDataCacheBlockHistoryProjectsResponseAction$outboundSchema, + action: z.literal("route-unblocked"), route: z.union([ z.lazy(() => UpdateProjectDataCacheRoute1$outboundSchema), z.lazy(() => UpdateProjectDataCacheRoute2$outboundSchema), @@ -9237,29 +8691,6 @@ export function blockHistory4FromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheBlockHistoryProjectsAction$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(UpdateProjectDataCacheBlockHistoryProjectsAction); -/** @internal */ -export const UpdateProjectDataCacheBlockHistoryProjectsAction$outboundSchema: - z.ZodNativeEnum = - UpdateProjectDataCacheBlockHistoryProjectsAction$inboundSchema; - -/** @internal */ -export const UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType - > = z.nativeEnum( - UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType, - ); -/** @internal */ -export const UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType - > = - UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType$inboundSchema; - /** @internal */ export const UpdateProjectDataCacheHasProjectsResponse200Value$inboundSchema: z.ZodType< @@ -9316,15 +8747,14 @@ export const UpdateProjectDataCacheHasProjects2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: - UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType$inboundSchema, + type: z.literal("host"), value: z.lazy(() => UpdateProjectDataCacheHasProjectsResponse200Value$inboundSchema ), }); /** @internal */ export type UpdateProjectDataCacheHasProjects2$Outbound = { - type: string; + type: "host"; value: UpdateProjectDataCacheHasProjectsResponse200Value$Outbound; }; @@ -9334,8 +8764,7 @@ export const UpdateProjectDataCacheHasProjects2$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectDataCacheHasProjects2 > = z.object({ - type: - UpdateProjectDataCacheHasProjectsResponse200ApplicationJSONType$outboundSchema, + type: z.literal("host"), value: z.lazy(() => UpdateProjectDataCacheHasProjectsResponse200Value$outboundSchema ), @@ -9361,15 +8790,6 @@ export function updateProjectDataCacheHasProjects2FromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheHasProjectsResponse200Type$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(UpdateProjectDataCacheHasProjectsResponse200Type); -/** @internal */ -export const UpdateProjectDataCacheHasProjectsResponse200Type$outboundSchema: - z.ZodNativeEnum = - UpdateProjectDataCacheHasProjectsResponse200Type$inboundSchema; - /** @internal */ export const UpdateProjectDataCacheHasKey$inboundSchema: z.ZodNativeEnum< typeof UpdateProjectDataCacheHasKey @@ -9435,7 +8855,7 @@ export const UpdateProjectDataCacheHasProjects1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: UpdateProjectDataCacheHasProjectsResponse200Type$inboundSchema, + type: z.literal("header"), key: UpdateProjectDataCacheHasKey$inboundSchema, value: z.lazy(() => UpdateProjectDataCacheHasProjectsResponseValue$inboundSchema @@ -9443,7 +8863,7 @@ export const UpdateProjectDataCacheHasProjects1$inboundSchema: z.ZodType< }); /** @internal */ export type UpdateProjectDataCacheHasProjects1$Outbound = { - type: string; + type: "header"; key: string; value: UpdateProjectDataCacheHasProjectsResponseValue$Outbound; }; @@ -9454,7 +8874,7 @@ export const UpdateProjectDataCacheHasProjects1$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectDataCacheHasProjects1 > = z.object({ - type: UpdateProjectDataCacheHasProjectsResponse200Type$outboundSchema, + type: z.literal("header"), key: UpdateProjectDataCacheHasKey$outboundSchema, value: z.lazy(() => UpdateProjectDataCacheHasProjectsResponseValue$outboundSchema @@ -9697,7 +9117,7 @@ export const BlockHistory3$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - action: UpdateProjectDataCacheBlockHistoryProjectsAction$inboundSchema, + action: z.literal("route-blocked"), route: z.union([ z.lazy(() => Route1$inboundSchema), z.lazy(() => Route2$inboundSchema), @@ -9711,7 +9131,7 @@ export const BlockHistory3$inboundSchema: z.ZodType< }); /** @internal */ export type BlockHistory3$Outbound = { - action: string; + action: "route-blocked"; route: Route1$Outbound | Route2$Outbound; reason: string; createdAt: number; @@ -9727,7 +9147,7 @@ export const BlockHistory3$outboundSchema: z.ZodType< z.ZodTypeDef, BlockHistory3 > = z.object({ - action: UpdateProjectDataCacheBlockHistoryProjectsAction$outboundSchema, + action: z.literal("route-blocked"), route: z.union([ z.lazy(() => Route1$outboundSchema), z.lazy(() => Route2$outboundSchema), @@ -9753,22 +9173,13 @@ export function blockHistory3FromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheBlockHistoryAction$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(UpdateProjectDataCacheBlockHistoryAction); -/** @internal */ -export const UpdateProjectDataCacheBlockHistoryAction$outboundSchema: - z.ZodNativeEnum = - UpdateProjectDataCacheBlockHistoryAction$inboundSchema; - /** @internal */ export const BlockHistory2$inboundSchema: z.ZodType< BlockHistory2, z.ZodTypeDef, unknown > = z.object({ - action: UpdateProjectDataCacheBlockHistoryAction$inboundSchema, + action: z.literal("unblocked"), createdAt: z.number(), caseId: z.string().optional(), actor: z.string().optional(), @@ -9777,7 +9188,7 @@ export const BlockHistory2$inboundSchema: z.ZodType< }); /** @internal */ export type BlockHistory2$Outbound = { - action: string; + action: "unblocked"; createdAt: number; caseId?: string | undefined; actor?: string | undefined; @@ -9791,7 +9202,7 @@ export const BlockHistory2$outboundSchema: z.ZodType< z.ZodTypeDef, BlockHistory2 > = z.object({ - action: UpdateProjectDataCacheBlockHistoryAction$outboundSchema, + action: z.literal("unblocked"), createdAt: z.number(), caseId: z.string().optional(), actor: z.string().optional(), @@ -9812,22 +9223,13 @@ export function blockHistory2FromJSON( ); } -/** @internal */ -export const BlockHistoryAction$inboundSchema: z.ZodNativeEnum< - typeof BlockHistoryAction -> = z.nativeEnum(BlockHistoryAction); -/** @internal */ -export const BlockHistoryAction$outboundSchema: z.ZodNativeEnum< - typeof BlockHistoryAction -> = BlockHistoryAction$inboundSchema; - /** @internal */ export const BlockHistory1$inboundSchema: z.ZodType< BlockHistory1, z.ZodTypeDef, unknown > = z.object({ - action: BlockHistoryAction$inboundSchema, + action: z.literal("blocked"), reason: z.string(), statusCode: z.number(), createdAt: z.number(), @@ -9838,7 +9240,7 @@ export const BlockHistory1$inboundSchema: z.ZodType< }); /** @internal */ export type BlockHistory1$Outbound = { - action: string; + action: "blocked"; reason: string; statusCode: number; createdAt: number; @@ -9854,7 +9256,7 @@ export const BlockHistory1$outboundSchema: z.ZodType< z.ZodTypeDef, BlockHistory1 > = z.object({ - action: BlockHistoryAction$outboundSchema, + action: z.literal("blocked"), reason: z.string(), statusCode: z.number(), createdAt: z.number(), @@ -9884,16 +9286,16 @@ export const UpdateProjectDataCacheBlockHistory$inboundSchema: z.ZodType< unknown > = z.union([ z.lazy(() => BlockHistory1$inboundSchema), + z.lazy(() => BlockHistory2$inboundSchema), z.lazy(() => BlockHistory3$inboundSchema), z.lazy(() => BlockHistory4$inboundSchema), - z.lazy(() => BlockHistory2$inboundSchema), ]); /** @internal */ export type UpdateProjectDataCacheBlockHistory$Outbound = | BlockHistory1$Outbound + | BlockHistory2$Outbound | BlockHistory3$Outbound - | BlockHistory4$Outbound - | BlockHistory2$Outbound; + | BlockHistory4$Outbound; /** @internal */ export const UpdateProjectDataCacheBlockHistory$outboundSchema: z.ZodType< @@ -9902,9 +9304,9 @@ export const UpdateProjectDataCacheBlockHistory$outboundSchema: z.ZodType< UpdateProjectDataCacheBlockHistory > = z.union([ z.lazy(() => BlockHistory1$outboundSchema), + z.lazy(() => BlockHistory2$outboundSchema), z.lazy(() => BlockHistory3$outboundSchema), z.lazy(() => BlockHistory4$outboundSchema), - z.lazy(() => BlockHistory2$outboundSchema), ]); export function updateProjectDataCacheBlockHistoryToJSON( @@ -9940,9 +9342,9 @@ export const UpdateProjectDataCacheAbuse$inboundSchema: z.ZodType< blockHistory: z.array( z.union([ z.lazy(() => BlockHistory1$inboundSchema), + z.lazy(() => BlockHistory2$inboundSchema), z.lazy(() => BlockHistory3$inboundSchema), z.lazy(() => BlockHistory4$inboundSchema), - z.lazy(() => BlockHistory2$inboundSchema), ]), ).optional(), interstitial: z.boolean().optional(), @@ -9956,9 +9358,9 @@ export type UpdateProjectDataCacheAbuse$Outbound = { blockHistory?: | Array< | BlockHistory1$Outbound + | BlockHistory2$Outbound | BlockHistory3$Outbound | BlockHistory4$Outbound - | BlockHistory2$Outbound > | undefined; interstitial?: boolean | undefined; @@ -9977,9 +9379,9 @@ export const UpdateProjectDataCacheAbuse$outboundSchema: z.ZodType< blockHistory: z.array( z.union([ z.lazy(() => BlockHistory1$outboundSchema), + z.lazy(() => BlockHistory2$outboundSchema), z.lazy(() => BlockHistory3$outboundSchema), z.lazy(() => BlockHistory4$outboundSchema), - z.lazy(() => BlockHistory2$outboundSchema), ]), ).optional(), interstitial: z.boolean().optional(), @@ -10004,15 +9406,6 @@ export function updateProjectDataCacheAbuseFromJSON( ); } -/** @internal */ -export const UpdateProjectDataCacheHasType$inboundSchema: z.ZodNativeEnum< - typeof UpdateProjectDataCacheHasType -> = z.nativeEnum(UpdateProjectDataCacheHasType); -/** @internal */ -export const UpdateProjectDataCacheHasType$outboundSchema: z.ZodNativeEnum< - typeof UpdateProjectDataCacheHasType -> = UpdateProjectDataCacheHasType$inboundSchema; - /** @internal */ export const HasValue$inboundSchema: z.ZodType< HasValue, @@ -10051,19 +9444,19 @@ export function hasValueFromJSON( /** @internal */ export const Has2$inboundSchema: z.ZodType = z .object({ - type: UpdateProjectDataCacheHasType$inboundSchema, + type: z.literal("host"), value: z.lazy(() => HasValue$inboundSchema), }); /** @internal */ export type Has2$Outbound = { - type: string; + type: "host"; value: HasValue$Outbound; }; /** @internal */ export const Has2$outboundSchema: z.ZodType = z.object({ - type: UpdateProjectDataCacheHasType$outboundSchema, + type: z.literal("host"), value: z.lazy(() => HasValue$outboundSchema), }); @@ -10080,13 +9473,6 @@ export function has2FromJSON( ); } -/** @internal */ -export const HasType$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(HasType); -/** @internal */ -export const HasType$outboundSchema: z.ZodNativeEnum = - HasType$inboundSchema; - /** @internal */ export const Key$inboundSchema: z.ZodNativeEnum = z.nativeEnum(Key); /** @internal */ @@ -10137,13 +9523,13 @@ export function updateProjectDataCacheHasValueFromJSON( /** @internal */ export const Has1$inboundSchema: z.ZodType = z .object({ - type: HasType$inboundSchema, + type: z.literal("header"), key: Key$inboundSchema, value: z.lazy(() => UpdateProjectDataCacheHasValue$inboundSchema), }); /** @internal */ export type Has1$Outbound = { - type: string; + type: "header"; key: string; value: UpdateProjectDataCacheHasValue$Outbound; }; @@ -10151,7 +9537,7 @@ export type Has1$Outbound = { /** @internal */ export const Has1$outboundSchema: z.ZodType = z.object({ - type: HasType$outboundSchema, + type: z.literal("header"), key: Key$outboundSchema, value: z.lazy(() => UpdateProjectDataCacheHasValue$outboundSchema), }); @@ -10685,11 +10071,11 @@ export const UpdateProjectDataCacheResponseBody$inboundSchema: z.ZodType< latestDeployments: z.array(z.lazy(() => LatestDeployments$inboundSchema)) .optional(), link: z.union([ - z.lazy(() => Link4$inboundSchema), - z.lazy(() => Link5$inboundSchema), - z.lazy(() => Link3$inboundSchema), z.lazy(() => Link1$inboundSchema), z.lazy(() => Link2$inboundSchema), + z.lazy(() => Link3$inboundSchema), + z.lazy(() => Link4$inboundSchema), + z.lazy(() => Link5$inboundSchema), ]).optional(), microfrontends: z.union([ z.lazy(() => UpdateProjectDataCacheMicrofrontends1$inboundSchema), @@ -10815,11 +10201,11 @@ export type UpdateProjectDataCacheResponseBody$Outbound = { ipBuckets?: Array | undefined; latestDeployments?: Array | undefined; link?: - | Link4$Outbound - | Link5$Outbound - | Link3$Outbound | Link1$Outbound | Link2$Outbound + | Link3$Outbound + | Link4$Outbound + | Link5$Outbound | undefined; microfrontends?: | UpdateProjectDataCacheMicrofrontends1$Outbound @@ -10940,11 +10326,11 @@ export const UpdateProjectDataCacheResponseBody$outboundSchema: z.ZodType< latestDeployments: z.array(z.lazy(() => LatestDeployments$outboundSchema)) .optional(), link: z.union([ - z.lazy(() => Link4$outboundSchema), - z.lazy(() => Link5$outboundSchema), - z.lazy(() => Link3$outboundSchema), z.lazy(() => Link1$outboundSchema), z.lazy(() => Link2$outboundSchema), + z.lazy(() => Link3$outboundSchema), + z.lazy(() => Link4$outboundSchema), + z.lazy(() => Link5$outboundSchema), ]).optional(), microfrontends: z.union([ z.lazy(() => UpdateProjectDataCacheMicrofrontends1$outboundSchema), diff --git a/src/models/updateprojectop.ts b/src/models/updateprojectop.ts index 149a89d3..00250440 100644 --- a/src/models/updateprojectop.ts +++ b/src/models/updateprojectop.ts @@ -634,222 +634,85 @@ export const UpdateProjectType = { } as const; export type UpdateProjectType = ClosedEnum; -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type = - { - FlagsConnectionString: "flags-connection-string", - } as const; -export type UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type = - ClosedEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type - >; - export type UpdateProjectContentHint15 = { - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type; + type: "flags-connection-string"; projectId: string; }; -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type = - { - IntegrationStoreSecret: "integration-store-secret", - } as const; -export type UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type = - ClosedEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type - >; - export type UpdateProjectContentHint14 = { - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; integrationConfigurationId: string; }; -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type = - { - PostgresUrlNoSsl: "postgres-url-no-ssl", - } as const; -export type UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type = - ClosedEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type - >; - export type UpdateProjectContentHint13 = { - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type; + type: "postgres-url-no-ssl"; storeId: string; }; -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type = - { - PostgresDatabase: "postgres-database", - } as const; -export type UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type = - ClosedEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type - >; - export type UpdateProjectContentHint12 = { - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type; + type: "postgres-database"; storeId: string; }; -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type = - { - PostgresPassword: "postgres-password", - } as const; -export type UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type = - ClosedEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type - >; - export type UpdateProjectContentHint11 = { - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type; + type: "postgres-password"; storeId: string; }; -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type = - { - PostgresHost: "postgres-host", - } as const; -export type UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type = - ClosedEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type - >; - export type UpdateProjectContentHint10 = { - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type; + type: "postgres-host"; storeId: string; }; -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type = - { - PostgresUser: "postgres-user", - } as const; -export type UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type = - ClosedEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type - >; - export type UpdateProjectContentHint9 = { - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type; + type: "postgres-user"; storeId: string; }; -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type = - { - PostgresPrismaUrl: "postgres-prisma-url", - } as const; -export type UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type = - ClosedEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type - >; - export type UpdateProjectContentHint8 = { - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type; + type: "postgres-prisma-url"; storeId: string; }; -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType = - { - PostgresUrlNonPooling: "postgres-url-non-pooling", - } as const; -export type UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType = - ClosedEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType - >; - export type UpdateProjectContentHint7 = { - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType; + type: "postgres-url-non-pooling"; storeId: string; }; -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType = - { - PostgresUrl: "postgres-url", - } as const; -export type UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType = - ClosedEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType - >; - export type UpdateProjectContentHint6 = { - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType; + type: "postgres-url"; storeId: string; }; -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONType = { - BlobReadWriteToken: "blob-read-write-token", -} as const; -export type UpdateProjectContentHintProjectsResponse200ApplicationJSONType = - ClosedEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONType - >; - export type UpdateProjectContentHint5 = { - type: UpdateProjectContentHintProjectsResponse200ApplicationJSONType; + type: "blob-read-write-token"; storeId: string; }; -export const UpdateProjectContentHintProjectsResponse200Type = { - RedisRestApiReadOnlyToken: "redis-rest-api-read-only-token", -} as const; -export type UpdateProjectContentHintProjectsResponse200Type = ClosedEnum< - typeof UpdateProjectContentHintProjectsResponse200Type ->; - export type UpdateProjectContentHint4 = { - type: UpdateProjectContentHintProjectsResponse200Type; + type: "redis-rest-api-read-only-token"; storeId: string; }; -export const UpdateProjectContentHintProjectsResponseType = { - RedisRestApiToken: "redis-rest-api-token", -} as const; -export type UpdateProjectContentHintProjectsResponseType = ClosedEnum< - typeof UpdateProjectContentHintProjectsResponseType ->; - export type UpdateProjectContentHint3 = { - type: UpdateProjectContentHintProjectsResponseType; + type: "redis-rest-api-token"; storeId: string; }; -export const UpdateProjectContentHintProjectsType = { - RedisRestApiUrl: "redis-rest-api-url", -} as const; -export type UpdateProjectContentHintProjectsType = ClosedEnum< - typeof UpdateProjectContentHintProjectsType ->; - export type UpdateProjectContentHint2 = { - type: UpdateProjectContentHintProjectsType; + type: "redis-rest-api-url"; storeId: string; }; -export const UpdateProjectContentHintType = { - RedisUrl: "redis-url", -} as const; -export type UpdateProjectContentHintType = ClosedEnum< - typeof UpdateProjectContentHintType ->; - export type UpdateProjectContentHint1 = { - type: UpdateProjectContentHintType; + type: "redis-url"; storeId: string; }; export type UpdateProjectContentHint = - | UpdateProjectContentHint14 | UpdateProjectContentHint1 | UpdateProjectContentHint2 | UpdateProjectContentHint3 @@ -863,6 +726,7 @@ export type UpdateProjectContentHint = | UpdateProjectContentHint11 | UpdateProjectContentHint12 | UpdateProjectContentHint13 + | UpdateProjectContentHint14 | UpdateProjectContentHint15; export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType = { @@ -905,7 +769,6 @@ export type UpdateProjectEnv = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | UpdateProjectContentHint14 | UpdateProjectContentHint1 | UpdateProjectContentHint2 | UpdateProjectContentHint3 @@ -919,6 +782,7 @@ export type UpdateProjectEnv = { | UpdateProjectContentHint11 | UpdateProjectContentHint12 | UpdateProjectContentHint13 + | UpdateProjectContentHint14 | UpdateProjectContentHint15 | null | undefined; @@ -1279,12 +1143,6 @@ export type UpdateProjectLatestDeployments = { withCache?: boolean | undefined; }; -export const UpdateProjectLinkProjectsResponse200ApplicationJSONType = { - Bitbucket: "bitbucket", -} as const; -export type UpdateProjectLinkProjectsResponse200ApplicationJSONType = - ClosedEnum; - export type UpdateProjectLinkProjectsResponse200ApplicationJSONDeployHooks = { createdAt?: number | undefined; id: string; @@ -1297,7 +1155,7 @@ export type UpdateProjectLink5 = { name: string; slug: string; owner: string; - type: UpdateProjectLinkProjectsResponse200ApplicationJSONType; + type: "bitbucket"; uuid: string; workspaceUuid: string; createdAt?: number | undefined; @@ -1310,13 +1168,6 @@ export type UpdateProjectLink5 = { productionBranch: string; }; -export const UpdateProjectLinkProjectsResponse200Type = { - Gitlab: "gitlab", -} as const; -export type UpdateProjectLinkProjectsResponse200Type = ClosedEnum< - typeof UpdateProjectLinkProjectsResponse200Type ->; - export type UpdateProjectLinkProjectsResponse200DeployHooks = { createdAt?: number | undefined; id: string; @@ -1335,7 +1186,7 @@ export type UpdateProjectLink4 = { */ projectOwnerId?: number | undefined; projectUrl: string; - type: UpdateProjectLinkProjectsResponse200Type; + type: "gitlab"; createdAt?: number | undefined; deployHooks: Array; gitCredentialId: string; @@ -1344,13 +1195,6 @@ export type UpdateProjectLink4 = { productionBranch: string; }; -export const UpdateProjectLinkProjectsResponseType = { - GithubCustomHost: "github-custom-host", -} as const; -export type UpdateProjectLinkProjectsResponseType = ClosedEnum< - typeof UpdateProjectLinkProjectsResponseType ->; - export type UpdateProjectLinkProjectsResponseDeployHooks = { createdAt?: number | undefined; id: string; @@ -1367,7 +1211,7 @@ export type UpdateProjectLink3 = { repoOwnerId?: number | undefined; repo?: string | undefined; repoId?: number | undefined; - type: UpdateProjectLinkProjectsResponseType; + type: "github-custom-host"; host: string; createdAt?: number | undefined; deployHooks: Array; @@ -1377,13 +1221,6 @@ export type UpdateProjectLink3 = { productionBranch: string; }; -export const UpdateProjectLinkProjectsType = { - GithubLimited: "github-limited", -} as const; -export type UpdateProjectLinkProjectsType = ClosedEnum< - typeof UpdateProjectLinkProjectsType ->; - export type UpdateProjectLinkProjectsDeployHooks = { createdAt?: number | undefined; id: string; @@ -1393,7 +1230,7 @@ export type UpdateProjectLinkProjectsDeployHooks = { }; export type UpdateProjectLink2 = { - type: UpdateProjectLinkProjectsType; + type: "github-limited"; repo?: string | undefined; repoId?: number | undefined; createdAt?: number | undefined; @@ -1409,11 +1246,6 @@ export type UpdateProjectLink2 = { productionBranch: string; }; -export const UpdateProjectLinkType = { - Github: "github", -} as const; -export type UpdateProjectLinkType = ClosedEnum; - export type UpdateProjectLinkDeployHooks = { createdAt?: number | undefined; id: string; @@ -1430,7 +1262,7 @@ export type UpdateProjectLink1 = { repoOwnerId?: number | undefined; repo?: string | undefined; repoId?: number | undefined; - type: UpdateProjectLinkType; + type: "github"; createdAt?: number | undefined; deployHooks: Array; gitCredentialId: string; @@ -1440,11 +1272,11 @@ export type UpdateProjectLink1 = { }; export type UpdateProjectLink = - | UpdateProjectLink4 - | UpdateProjectLink5 - | UpdateProjectLink3 | UpdateProjectLink1 - | UpdateProjectLink2; + | UpdateProjectLink2 + | UpdateProjectLink3 + | UpdateProjectLink4 + | UpdateProjectLink5; export type UpdateProjectMicrofrontends3 = { updatedAt: number; @@ -2094,30 +1926,16 @@ export type UpdateProjectLastAliasRequest = { type: UpdateProjectProjectsResponse200ApplicationJSONType; }; -export const UpdateProjectProtectionBypassProjectsScope = { - AutomationBypass: "automation-bypass", -} as const; -export type UpdateProjectProtectionBypassProjectsScope = ClosedEnum< - typeof UpdateProjectProtectionBypassProjectsScope ->; - export type UpdateProjectProtectionBypass2 = { createdAt: number; createdBy: string; - scope: UpdateProjectProtectionBypassProjectsScope; + scope: "automation-bypass"; }; -export const UpdateProjectProtectionBypassScope = { - IntegrationAutomationBypass: "integration-automation-bypass", -} as const; -export type UpdateProjectProtectionBypassScope = ClosedEnum< - typeof UpdateProjectProtectionBypassScope ->; - export type UpdateProjectProtectionBypass1 = { createdAt: number; createdBy: string; - scope: UpdateProjectProtectionBypassScope; + scope: "integration-automation-bypass"; integrationId: string; configurationId: string; }; @@ -2352,36 +2170,15 @@ export type UpdateProjectBlock = { isCascading?: boolean | undefined; }; -export const UpdateProjectBlockHistoryProjectsResponse200Action = { - RouteUnblocked: "route-unblocked", -} as const; -export type UpdateProjectBlockHistoryProjectsResponse200Action = ClosedEnum< - typeof UpdateProjectBlockHistoryProjectsResponse200Action ->; - -export const UpdateProjectHasProjectsResponse200Type = { - Host: "host", -} as const; -export type UpdateProjectHasProjectsResponse200Type = ClosedEnum< - typeof UpdateProjectHasProjectsResponse200Type ->; - export type UpdateProjectHasProjectsResponse200Value = { eq: string; }; export type UpdateProjectHasProjects2 = { - type: UpdateProjectHasProjectsResponse200Type; + type: "host"; value: UpdateProjectHasProjectsResponse200Value; }; -export const UpdateProjectHasProjectsResponseType = { - Header: "header", -} as const; -export type UpdateProjectHasProjectsResponseType = ClosedEnum< - typeof UpdateProjectHasProjectsResponseType ->; - export const UpdateProjectHasProjectsKey = { XVercelIpCountry: "x-vercel-ip-country", } as const; @@ -2394,7 +2191,7 @@ export type UpdateProjectHasProjectsResponseValue = { }; export type UpdateProjectHasProjects1 = { - type: UpdateProjectHasProjectsResponseType; + type: "header"; key: UpdateProjectHasProjectsKey; value: UpdateProjectHasProjectsResponseValue; }; @@ -2430,7 +2227,7 @@ export type UpdateProjectBlockHistoryProjectsRoute = | UpdateProjectRouteProjects2; export type UpdateProjectBlockHistory4 = { - action: UpdateProjectBlockHistoryProjectsResponse200Action; + action: "route-unblocked"; route: UpdateProjectRouteProjects1 | UpdateProjectRouteProjects2; statusCode?: number | undefined; createdAt: number; @@ -2440,39 +2237,16 @@ export type UpdateProjectBlockHistory4 = { isCascading?: boolean | undefined; }; -export const UpdateProjectBlockHistoryProjectsResponseAction = { - RouteBlocked: "route-blocked", -} as const; -export type UpdateProjectBlockHistoryProjectsResponseAction = ClosedEnum< - typeof UpdateProjectBlockHistoryProjectsResponseAction ->; - -export const UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyType = - { - Host: "host", - } as const; -export type UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyType = - ClosedEnum< - typeof UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyType - >; - export type UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyValue = { eq: string; }; export type UpdateProjectHasProjectsResponse2 = { - type: UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyType; + type: "host"; value: UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyValue; }; -export const UpdateProjectHasProjectsResponse200ApplicationJSONType = { - Header: "header", -} as const; -export type UpdateProjectHasProjectsResponse200ApplicationJSONType = ClosedEnum< - typeof UpdateProjectHasProjectsResponse200ApplicationJSONType ->; - export const UpdateProjectHasProjectsResponseKey = { XVercelIpCountry: "x-vercel-ip-country", } as const; @@ -2485,7 +2259,7 @@ export type UpdateProjectHasProjectsResponse200ApplicationJSONValue = { }; export type UpdateProjectHasProjectsResponse1 = { - type: UpdateProjectHasProjectsResponse200ApplicationJSONType; + type: "header"; key: UpdateProjectHasProjectsResponseKey; value: UpdateProjectHasProjectsResponse200ApplicationJSONValue; }; @@ -2523,7 +2297,7 @@ export type UpdateProjectBlockHistoryRoute = | UpdateProjectRoute2; export type UpdateProjectBlockHistory3 = { - action: UpdateProjectBlockHistoryProjectsResponseAction; + action: "route-blocked"; route: UpdateProjectRoute1 | UpdateProjectRoute2; reason: string; createdAt: number; @@ -2533,15 +2307,8 @@ export type UpdateProjectBlockHistory3 = { isCascading?: boolean | undefined; }; -export const UpdateProjectBlockHistoryProjectsAction = { - Unblocked: "unblocked", -} as const; -export type UpdateProjectBlockHistoryProjectsAction = ClosedEnum< - typeof UpdateProjectBlockHistoryProjectsAction ->; - export type UpdateProjectBlockHistory2 = { - action: UpdateProjectBlockHistoryProjectsAction; + action: "unblocked"; createdAt: number; caseId?: string | undefined; actor?: string | undefined; @@ -2549,15 +2316,8 @@ export type UpdateProjectBlockHistory2 = { isCascading?: boolean | undefined; }; -export const UpdateProjectBlockHistoryAction = { - Blocked: "blocked", -} as const; -export type UpdateProjectBlockHistoryAction = ClosedEnum< - typeof UpdateProjectBlockHistoryAction ->; - export type UpdateProjectBlockHistory1 = { - action: UpdateProjectBlockHistoryAction; + action: "blocked"; reason: string; statusCode: number; createdAt: number; @@ -2569,9 +2329,9 @@ export type UpdateProjectBlockHistory1 = { export type UpdateProjectBlockHistory = | UpdateProjectBlockHistory1 + | UpdateProjectBlockHistory2 | UpdateProjectBlockHistory3 - | UpdateProjectBlockHistory4 - | UpdateProjectBlockHistory2; + | UpdateProjectBlockHistory4; export type UpdateProjectAbuse = { scanner?: string | undefined; @@ -2581,35 +2341,23 @@ export type UpdateProjectAbuse = { blockHistory?: | Array< | UpdateProjectBlockHistory1 + | UpdateProjectBlockHistory2 | UpdateProjectBlockHistory3 | UpdateProjectBlockHistory4 - | UpdateProjectBlockHistory2 > | undefined; interstitial?: boolean | undefined; }; -export const UpdateProjectHasProjectsType = { - Host: "host", -} as const; -export type UpdateProjectHasProjectsType = ClosedEnum< - typeof UpdateProjectHasProjectsType ->; - export type UpdateProjectHasProjectsValue = { eq: string; }; export type UpdateProjectHas2 = { - type: UpdateProjectHasProjectsType; + type: "host"; value: UpdateProjectHasProjectsValue; }; -export const UpdateProjectHasType = { - Header: "header", -} as const; -export type UpdateProjectHasType = ClosedEnum; - export const UpdateProjectHasKey = { XVercelIpCountry: "x-vercel-ip-country", } as const; @@ -2620,7 +2368,7 @@ export type UpdateProjectHasValue = { }; export type UpdateProjectHas1 = { - type: UpdateProjectHasType; + type: "header"; key: UpdateProjectHasKey; value: UpdateProjectHasValue; }; @@ -2725,11 +2473,11 @@ export type UpdateProjectResponseBody = { ipBuckets?: Array | undefined; latestDeployments?: Array | undefined; link?: - | UpdateProjectLink4 - | UpdateProjectLink5 - | UpdateProjectLink3 | UpdateProjectLink1 | UpdateProjectLink2 + | UpdateProjectLink3 + | UpdateProjectLink4 + | UpdateProjectLink5 | undefined; microfrontends?: | UpdateProjectMicrofrontends1 @@ -4256,33 +4004,18 @@ export const UpdateProjectType$outboundSchema: z.ZodNativeEnum< typeof UpdateProjectType > = UpdateProjectType$inboundSchema; -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type - > = z.nativeEnum( - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type, - ); -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type - > = - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type$inboundSchema; - /** @internal */ export const UpdateProjectContentHint15$inboundSchema: z.ZodType< UpdateProjectContentHint15, z.ZodTypeDef, unknown > = z.object({ - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type$inboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); /** @internal */ export type UpdateProjectContentHint15$Outbound = { - type: string; + type: "flags-connection-string"; projectId: string; }; @@ -4292,8 +4025,7 @@ export const UpdateProjectContentHint15$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectContentHint15 > = z.object({ - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv15Type$outboundSchema, + type: z.literal("flags-connection-string"), projectId: z.string(), }); @@ -4314,28 +4046,13 @@ export function updateProjectContentHint15FromJSON( ); } -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type - > = z.nativeEnum( - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type, - ); -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type - > = - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type$inboundSchema; - /** @internal */ export const UpdateProjectContentHint14$inboundSchema: z.ZodType< UpdateProjectContentHint14, z.ZodTypeDef, unknown > = z.object({ - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type$inboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -4343,7 +4060,7 @@ export const UpdateProjectContentHint14$inboundSchema: z.ZodType< }); /** @internal */ export type UpdateProjectContentHint14$Outbound = { - type: string; + type: "integration-store-secret"; storeId: string; integrationId: string; integrationProductId: string; @@ -4356,8 +4073,7 @@ export const UpdateProjectContentHint14$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectContentHint14 > = z.object({ - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv14Type$outboundSchema, + type: z.literal("integration-store-secret"), storeId: z.string(), integrationId: z.string(), integrationProductId: z.string(), @@ -4381,33 +4097,18 @@ export function updateProjectContentHint14FromJSON( ); } -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type - > = z.nativeEnum( - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type, - ); -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type - > = - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type$inboundSchema; - /** @internal */ export const UpdateProjectContentHint13$inboundSchema: z.ZodType< UpdateProjectContentHint13, z.ZodTypeDef, unknown > = z.object({ - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type$inboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); /** @internal */ export type UpdateProjectContentHint13$Outbound = { - type: string; + type: "postgres-url-no-ssl"; storeId: string; }; @@ -4417,8 +4118,7 @@ export const UpdateProjectContentHint13$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectContentHint13 > = z.object({ - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv13Type$outboundSchema, + type: z.literal("postgres-url-no-ssl"), storeId: z.string(), }); @@ -4439,33 +4139,18 @@ export function updateProjectContentHint13FromJSON( ); } -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type - > = z.nativeEnum( - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type, - ); -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type - > = - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type$inboundSchema; - /** @internal */ export const UpdateProjectContentHint12$inboundSchema: z.ZodType< UpdateProjectContentHint12, z.ZodTypeDef, unknown > = z.object({ - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type$inboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); /** @internal */ export type UpdateProjectContentHint12$Outbound = { - type: string; + type: "postgres-database"; storeId: string; }; @@ -4475,8 +4160,7 @@ export const UpdateProjectContentHint12$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectContentHint12 > = z.object({ - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv12Type$outboundSchema, + type: z.literal("postgres-database"), storeId: z.string(), }); @@ -4497,33 +4181,18 @@ export function updateProjectContentHint12FromJSON( ); } -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type - > = z.nativeEnum( - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type, - ); -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type - > = - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type$inboundSchema; - /** @internal */ export const UpdateProjectContentHint11$inboundSchema: z.ZodType< UpdateProjectContentHint11, z.ZodTypeDef, unknown > = z.object({ - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type$inboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); /** @internal */ export type UpdateProjectContentHint11$Outbound = { - type: string; + type: "postgres-password"; storeId: string; }; @@ -4533,8 +4202,7 @@ export const UpdateProjectContentHint11$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectContentHint11 > = z.object({ - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv11Type$outboundSchema, + type: z.literal("postgres-password"), storeId: z.string(), }); @@ -4555,33 +4223,18 @@ export function updateProjectContentHint11FromJSON( ); } -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type - > = z.nativeEnum( - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type, - ); -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type - > = - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type$inboundSchema; - /** @internal */ export const UpdateProjectContentHint10$inboundSchema: z.ZodType< UpdateProjectContentHint10, z.ZodTypeDef, unknown > = z.object({ - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type$inboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); /** @internal */ export type UpdateProjectContentHint10$Outbound = { - type: string; + type: "postgres-host"; storeId: string; }; @@ -4591,8 +4244,7 @@ export const UpdateProjectContentHint10$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectContentHint10 > = z.object({ - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv10Type$outboundSchema, + type: z.literal("postgres-host"), storeId: z.string(), }); @@ -4613,33 +4265,18 @@ export function updateProjectContentHint10FromJSON( ); } -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type - > = z.nativeEnum( - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type, - ); -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type - > = - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type$inboundSchema; - /** @internal */ export const UpdateProjectContentHint9$inboundSchema: z.ZodType< UpdateProjectContentHint9, z.ZodTypeDef, unknown > = z.object({ - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type$inboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); /** @internal */ export type UpdateProjectContentHint9$Outbound = { - type: string; + type: "postgres-user"; storeId: string; }; @@ -4649,8 +4286,7 @@ export const UpdateProjectContentHint9$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectContentHint9 > = z.object({ - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv9Type$outboundSchema, + type: z.literal("postgres-user"), storeId: z.string(), }); @@ -4671,33 +4307,18 @@ export function updateProjectContentHint9FromJSON( ); } -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type - > = z.nativeEnum( - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type, - ); -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type - > = - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type$inboundSchema; - /** @internal */ export const UpdateProjectContentHint8$inboundSchema: z.ZodType< UpdateProjectContentHint8, z.ZodTypeDef, unknown > = z.object({ - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type$inboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); /** @internal */ export type UpdateProjectContentHint8$Outbound = { - type: string; + type: "postgres-prisma-url"; storeId: string; }; @@ -4707,8 +4328,7 @@ export const UpdateProjectContentHint8$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectContentHint8 > = z.object({ - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnv8Type$outboundSchema, + type: z.literal("postgres-prisma-url"), storeId: z.string(), }); @@ -4729,33 +4349,18 @@ export function updateProjectContentHint8FromJSON( ); } -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType - > = z.nativeEnum( - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType, - ); -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType - > = - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType$inboundSchema; - /** @internal */ export const UpdateProjectContentHint7$inboundSchema: z.ZodType< UpdateProjectContentHint7, z.ZodTypeDef, unknown > = z.object({ - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType$inboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); /** @internal */ export type UpdateProjectContentHint7$Outbound = { - type: string; + type: "postgres-url-non-pooling"; storeId: string; }; @@ -4765,8 +4370,7 @@ export const UpdateProjectContentHint7$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectContentHint7 > = z.object({ - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyEnvType$outboundSchema, + type: z.literal("postgres-url-non-pooling"), storeId: z.string(), }); @@ -4787,33 +4391,18 @@ export function updateProjectContentHint7FromJSON( ); } -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType - > = z.nativeEnum( - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType, - ); -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType - > = - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema; - /** @internal */ export const UpdateProjectContentHint6$inboundSchema: z.ZodType< UpdateProjectContentHint6, z.ZodTypeDef, unknown > = z.object({ - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); /** @internal */ export type UpdateProjectContentHint6$Outbound = { - type: string; + type: "postgres-url"; storeId: string; }; @@ -4823,8 +4412,7 @@ export const UpdateProjectContentHint6$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectContentHint6 > = z.object({ - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema, + type: z.literal("postgres-url"), storeId: z.string(), }); @@ -4845,33 +4433,18 @@ export function updateProjectContentHint6FromJSON( ); } -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONType$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONType - > = z.nativeEnum( - UpdateProjectContentHintProjectsResponse200ApplicationJSONType, - ); -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200ApplicationJSONType$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectContentHintProjectsResponse200ApplicationJSONType - > = - UpdateProjectContentHintProjectsResponse200ApplicationJSONType$inboundSchema; - /** @internal */ export const UpdateProjectContentHint5$inboundSchema: z.ZodType< UpdateProjectContentHint5, z.ZodTypeDef, unknown > = z.object({ - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONType$inboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); /** @internal */ export type UpdateProjectContentHint5$Outbound = { - type: string; + type: "blob-read-write-token"; storeId: string; }; @@ -4881,8 +4454,7 @@ export const UpdateProjectContentHint5$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectContentHint5 > = z.object({ - type: - UpdateProjectContentHintProjectsResponse200ApplicationJSONType$outboundSchema, + type: z.literal("blob-read-write-token"), storeId: z.string(), }); @@ -4903,27 +4475,18 @@ export function updateProjectContentHint5FromJSON( ); } -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200Type$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(UpdateProjectContentHintProjectsResponse200Type); -/** @internal */ -export const UpdateProjectContentHintProjectsResponse200Type$outboundSchema: - z.ZodNativeEnum = - UpdateProjectContentHintProjectsResponse200Type$inboundSchema; - /** @internal */ export const UpdateProjectContentHint4$inboundSchema: z.ZodType< UpdateProjectContentHint4, z.ZodTypeDef, unknown > = z.object({ - type: UpdateProjectContentHintProjectsResponse200Type$inboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); /** @internal */ export type UpdateProjectContentHint4$Outbound = { - type: string; + type: "redis-rest-api-read-only-token"; storeId: string; }; @@ -4933,7 +4496,7 @@ export const UpdateProjectContentHint4$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectContentHint4 > = z.object({ - type: UpdateProjectContentHintProjectsResponse200Type$outboundSchema, + type: z.literal("redis-rest-api-read-only-token"), storeId: z.string(), }); @@ -4954,27 +4517,18 @@ export function updateProjectContentHint4FromJSON( ); } -/** @internal */ -export const UpdateProjectContentHintProjectsResponseType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(UpdateProjectContentHintProjectsResponseType); -/** @internal */ -export const UpdateProjectContentHintProjectsResponseType$outboundSchema: - z.ZodNativeEnum = - UpdateProjectContentHintProjectsResponseType$inboundSchema; - /** @internal */ export const UpdateProjectContentHint3$inboundSchema: z.ZodType< UpdateProjectContentHint3, z.ZodTypeDef, unknown > = z.object({ - type: UpdateProjectContentHintProjectsResponseType$inboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); /** @internal */ export type UpdateProjectContentHint3$Outbound = { - type: string; + type: "redis-rest-api-token"; storeId: string; }; @@ -4984,7 +4538,7 @@ export const UpdateProjectContentHint3$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectContentHint3 > = z.object({ - type: UpdateProjectContentHintProjectsResponseType$outboundSchema, + type: z.literal("redis-rest-api-token"), storeId: z.string(), }); @@ -5005,28 +4559,18 @@ export function updateProjectContentHint3FromJSON( ); } -/** @internal */ -export const UpdateProjectContentHintProjectsType$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - UpdateProjectContentHintProjectsType, - ); -/** @internal */ -export const UpdateProjectContentHintProjectsType$outboundSchema: - z.ZodNativeEnum = - UpdateProjectContentHintProjectsType$inboundSchema; - /** @internal */ export const UpdateProjectContentHint2$inboundSchema: z.ZodType< UpdateProjectContentHint2, z.ZodTypeDef, unknown > = z.object({ - type: UpdateProjectContentHintProjectsType$inboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); /** @internal */ export type UpdateProjectContentHint2$Outbound = { - type: string; + type: "redis-rest-api-url"; storeId: string; }; @@ -5036,7 +4580,7 @@ export const UpdateProjectContentHint2$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectContentHint2 > = z.object({ - type: UpdateProjectContentHintProjectsType$outboundSchema, + type: z.literal("redis-rest-api-url"), storeId: z.string(), }); @@ -5057,27 +4601,18 @@ export function updateProjectContentHint2FromJSON( ); } -/** @internal */ -export const UpdateProjectContentHintType$inboundSchema: z.ZodNativeEnum< - typeof UpdateProjectContentHintType -> = z.nativeEnum(UpdateProjectContentHintType); -/** @internal */ -export const UpdateProjectContentHintType$outboundSchema: z.ZodNativeEnum< - typeof UpdateProjectContentHintType -> = UpdateProjectContentHintType$inboundSchema; - /** @internal */ export const UpdateProjectContentHint1$inboundSchema: z.ZodType< UpdateProjectContentHint1, z.ZodTypeDef, unknown > = z.object({ - type: UpdateProjectContentHintType$inboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); /** @internal */ export type UpdateProjectContentHint1$Outbound = { - type: string; + type: "redis-url"; storeId: string; }; @@ -5087,7 +4622,7 @@ export const UpdateProjectContentHint1$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectContentHint1 > = z.object({ - type: UpdateProjectContentHintType$outboundSchema, + type: z.literal("redis-url"), storeId: z.string(), }); @@ -5114,7 +4649,6 @@ export const UpdateProjectContentHint$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => UpdateProjectContentHint14$inboundSchema), z.lazy(() => UpdateProjectContentHint1$inboundSchema), z.lazy(() => UpdateProjectContentHint2$inboundSchema), z.lazy(() => UpdateProjectContentHint3$inboundSchema), @@ -5128,11 +4662,11 @@ export const UpdateProjectContentHint$inboundSchema: z.ZodType< z.lazy(() => UpdateProjectContentHint11$inboundSchema), z.lazy(() => UpdateProjectContentHint12$inboundSchema), z.lazy(() => UpdateProjectContentHint13$inboundSchema), + z.lazy(() => UpdateProjectContentHint14$inboundSchema), z.lazy(() => UpdateProjectContentHint15$inboundSchema), ]); /** @internal */ export type UpdateProjectContentHint$Outbound = - | UpdateProjectContentHint14$Outbound | UpdateProjectContentHint1$Outbound | UpdateProjectContentHint2$Outbound | UpdateProjectContentHint3$Outbound @@ -5146,6 +4680,7 @@ export type UpdateProjectContentHint$Outbound = | UpdateProjectContentHint11$Outbound | UpdateProjectContentHint12$Outbound | UpdateProjectContentHint13$Outbound + | UpdateProjectContentHint14$Outbound | UpdateProjectContentHint15$Outbound; /** @internal */ @@ -5154,7 +4689,6 @@ export const UpdateProjectContentHint$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectContentHint > = z.union([ - z.lazy(() => UpdateProjectContentHint14$outboundSchema), z.lazy(() => UpdateProjectContentHint1$outboundSchema), z.lazy(() => UpdateProjectContentHint2$outboundSchema), z.lazy(() => UpdateProjectContentHint3$outboundSchema), @@ -5168,6 +4702,7 @@ export const UpdateProjectContentHint$outboundSchema: z.ZodType< z.lazy(() => UpdateProjectContentHint11$outboundSchema), z.lazy(() => UpdateProjectContentHint12$outboundSchema), z.lazy(() => UpdateProjectContentHint13$outboundSchema), + z.lazy(() => UpdateProjectContentHint14$outboundSchema), z.lazy(() => UpdateProjectContentHint15$outboundSchema), ]); @@ -5273,7 +4808,6 @@ export const UpdateProjectEnv$inboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => UpdateProjectContentHint14$inboundSchema), z.lazy(() => UpdateProjectContentHint1$inboundSchema), z.lazy(() => UpdateProjectContentHint2$inboundSchema), z.lazy(() => UpdateProjectContentHint3$inboundSchema), @@ -5287,6 +4821,7 @@ export const UpdateProjectEnv$inboundSchema: z.ZodType< z.lazy(() => UpdateProjectContentHint11$inboundSchema), z.lazy(() => UpdateProjectContentHint12$inboundSchema), z.lazy(() => UpdateProjectContentHint13$inboundSchema), + z.lazy(() => UpdateProjectContentHint14$inboundSchema), z.lazy(() => UpdateProjectContentHint15$inboundSchema), ]), ).optional(), @@ -5315,7 +4850,6 @@ export type UpdateProjectEnv$Outbound = { edgeConfigId?: string | null | undefined; edgeConfigTokenId?: string | null | undefined; contentHint?: - | UpdateProjectContentHint14$Outbound | UpdateProjectContentHint1$Outbound | UpdateProjectContentHint2$Outbound | UpdateProjectContentHint3$Outbound @@ -5329,6 +4863,7 @@ export type UpdateProjectEnv$Outbound = { | UpdateProjectContentHint11$Outbound | UpdateProjectContentHint12$Outbound | UpdateProjectContentHint13$Outbound + | UpdateProjectContentHint14$Outbound | UpdateProjectContentHint15$Outbound | null | undefined; @@ -5365,7 +4900,6 @@ export const UpdateProjectEnv$outboundSchema: z.ZodType< edgeConfigTokenId: z.nullable(z.string()).optional(), contentHint: z.nullable( z.union([ - z.lazy(() => UpdateProjectContentHint14$outboundSchema), z.lazy(() => UpdateProjectContentHint1$outboundSchema), z.lazy(() => UpdateProjectContentHint2$outboundSchema), z.lazy(() => UpdateProjectContentHint3$outboundSchema), @@ -5379,6 +4913,7 @@ export const UpdateProjectEnv$outboundSchema: z.ZodType< z.lazy(() => UpdateProjectContentHint11$outboundSchema), z.lazy(() => UpdateProjectContentHint12$outboundSchema), z.lazy(() => UpdateProjectContentHint13$outboundSchema), + z.lazy(() => UpdateProjectContentHint14$outboundSchema), z.lazy(() => UpdateProjectContentHint15$outboundSchema), ]), ).optional(), @@ -6227,17 +5762,6 @@ export function updateProjectLatestDeploymentsFromJSON( ); } -/** @internal */ -export const UpdateProjectLinkProjectsResponse200ApplicationJSONType$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectLinkProjectsResponse200ApplicationJSONType - > = z.nativeEnum(UpdateProjectLinkProjectsResponse200ApplicationJSONType); -/** @internal */ -export const UpdateProjectLinkProjectsResponse200ApplicationJSONType$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectLinkProjectsResponse200ApplicationJSONType - > = UpdateProjectLinkProjectsResponse200ApplicationJSONType$inboundSchema; - /** @internal */ export const UpdateProjectLinkProjectsResponse200ApplicationJSONDeployHooks$inboundSchema: z.ZodType< @@ -6308,7 +5832,7 @@ export const UpdateProjectLink5$inboundSchema: z.ZodType< name: z.string(), slug: z.string(), owner: z.string(), - type: UpdateProjectLinkProjectsResponse200ApplicationJSONType$inboundSchema, + type: z.literal("bitbucket"), uuid: z.string(), workspaceUuid: z.string(), createdAt: z.number().optional(), @@ -6327,7 +5851,7 @@ export type UpdateProjectLink5$Outbound = { name: string; slug: string; owner: string; - type: string; + type: "bitbucket"; uuid: string; workspaceUuid: string; createdAt?: number | undefined; @@ -6349,7 +5873,7 @@ export const UpdateProjectLink5$outboundSchema: z.ZodType< name: z.string(), slug: z.string(), owner: z.string(), - type: UpdateProjectLinkProjectsResponse200ApplicationJSONType$outboundSchema, + type: z.literal("bitbucket"), uuid: z.string(), workspaceUuid: z.string(), createdAt: z.number().optional(), @@ -6381,15 +5905,6 @@ export function updateProjectLink5FromJSON( ); } -/** @internal */ -export const UpdateProjectLinkProjectsResponse200Type$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(UpdateProjectLinkProjectsResponse200Type); -/** @internal */ -export const UpdateProjectLinkProjectsResponse200Type$outboundSchema: - z.ZodNativeEnum = - UpdateProjectLinkProjectsResponse200Type$inboundSchema; - /** @internal */ export const UpdateProjectLinkProjectsResponse200DeployHooks$inboundSchema: z.ZodType< @@ -6464,7 +5979,7 @@ export const UpdateProjectLink4$inboundSchema: z.ZodType< projectNamespace: z.string(), projectOwnerId: z.number().optional(), projectUrl: z.string(), - type: UpdateProjectLinkProjectsResponse200Type$inboundSchema, + type: z.literal("gitlab"), createdAt: z.number().optional(), deployHooks: z.array( z.lazy(() => UpdateProjectLinkProjectsResponse200DeployHooks$inboundSchema), @@ -6482,7 +5997,7 @@ export type UpdateProjectLink4$Outbound = { projectNamespace: string; projectOwnerId?: number | undefined; projectUrl: string; - type: string; + type: "gitlab"; createdAt?: number | undefined; deployHooks: Array; gitCredentialId: string; @@ -6503,7 +6018,7 @@ export const UpdateProjectLink4$outboundSchema: z.ZodType< projectNamespace: z.string(), projectOwnerId: z.number().optional(), projectUrl: z.string(), - type: UpdateProjectLinkProjectsResponse200Type$outboundSchema, + type: z.literal("gitlab"), createdAt: z.number().optional(), deployHooks: z.array( z.lazy(() => @@ -6533,16 +6048,6 @@ export function updateProjectLink4FromJSON( ); } -/** @internal */ -export const UpdateProjectLinkProjectsResponseType$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - UpdateProjectLinkProjectsResponseType, - ); -/** @internal */ -export const UpdateProjectLinkProjectsResponseType$outboundSchema: - z.ZodNativeEnum = - UpdateProjectLinkProjectsResponseType$inboundSchema; - /** @internal */ export const UpdateProjectLinkProjectsResponseDeployHooks$inboundSchema: z.ZodType< @@ -6615,7 +6120,7 @@ export const UpdateProjectLink3$inboundSchema: z.ZodType< repoOwnerId: z.number().optional(), repo: z.string().optional(), repoId: z.number().optional(), - type: UpdateProjectLinkProjectsResponseType$inboundSchema, + type: z.literal("github-custom-host"), host: z.string(), createdAt: z.number().optional(), deployHooks: z.array( @@ -6632,7 +6137,7 @@ export type UpdateProjectLink3$Outbound = { repoOwnerId?: number | undefined; repo?: string | undefined; repoId?: number | undefined; - type: string; + type: "github-custom-host"; host: string; createdAt?: number | undefined; deployHooks: Array; @@ -6652,7 +6157,7 @@ export const UpdateProjectLink3$outboundSchema: z.ZodType< repoOwnerId: z.number().optional(), repo: z.string().optional(), repoId: z.number().optional(), - type: UpdateProjectLinkProjectsResponseType$outboundSchema, + type: z.literal("github-custom-host"), host: z.string(), createdAt: z.number().optional(), deployHooks: z.array( @@ -6681,15 +6186,6 @@ export function updateProjectLink3FromJSON( ); } -/** @internal */ -export const UpdateProjectLinkProjectsType$inboundSchema: z.ZodNativeEnum< - typeof UpdateProjectLinkProjectsType -> = z.nativeEnum(UpdateProjectLinkProjectsType); -/** @internal */ -export const UpdateProjectLinkProjectsType$outboundSchema: z.ZodNativeEnum< - typeof UpdateProjectLinkProjectsType -> = UpdateProjectLinkProjectsType$inboundSchema; - /** @internal */ export const UpdateProjectLinkProjectsDeployHooks$inboundSchema: z.ZodType< UpdateProjectLinkProjectsDeployHooks, @@ -6750,7 +6246,7 @@ export const UpdateProjectLink2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: UpdateProjectLinkProjectsType$inboundSchema, + type: z.literal("github-limited"), repo: z.string().optional(), repoId: z.number().optional(), createdAt: z.number().optional(), @@ -6766,7 +6262,7 @@ export const UpdateProjectLink2$inboundSchema: z.ZodType< }); /** @internal */ export type UpdateProjectLink2$Outbound = { - type: string; + type: "github-limited"; repo?: string | undefined; repoId?: number | undefined; createdAt?: number | undefined; @@ -6785,7 +6281,7 @@ export const UpdateProjectLink2$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectLink2 > = z.object({ - type: UpdateProjectLinkProjectsType$outboundSchema, + type: z.literal("github-limited"), repo: z.string().optional(), repoId: z.number().optional(), createdAt: z.number().optional(), @@ -6817,15 +6313,6 @@ export function updateProjectLink2FromJSON( ); } -/** @internal */ -export const UpdateProjectLinkType$inboundSchema: z.ZodNativeEnum< - typeof UpdateProjectLinkType -> = z.nativeEnum(UpdateProjectLinkType); -/** @internal */ -export const UpdateProjectLinkType$outboundSchema: z.ZodNativeEnum< - typeof UpdateProjectLinkType -> = UpdateProjectLinkType$inboundSchema; - /** @internal */ export const UpdateProjectLinkDeployHooks$inboundSchema: z.ZodType< UpdateProjectLinkDeployHooks, @@ -6889,7 +6376,7 @@ export const UpdateProjectLink1$inboundSchema: z.ZodType< repoOwnerId: z.number().optional(), repo: z.string().optional(), repoId: z.number().optional(), - type: UpdateProjectLinkType$inboundSchema, + type: z.literal("github"), createdAt: z.number().optional(), deployHooks: z.array( z.lazy(() => UpdateProjectLinkDeployHooks$inboundSchema), @@ -6905,7 +6392,7 @@ export type UpdateProjectLink1$Outbound = { repoOwnerId?: number | undefined; repo?: string | undefined; repoId?: number | undefined; - type: string; + type: "github"; createdAt?: number | undefined; deployHooks: Array; gitCredentialId: string; @@ -6924,7 +6411,7 @@ export const UpdateProjectLink1$outboundSchema: z.ZodType< repoOwnerId: z.number().optional(), repo: z.string().optional(), repoId: z.number().optional(), - type: UpdateProjectLinkType$outboundSchema, + type: z.literal("github"), createdAt: z.number().optional(), deployHooks: z.array( z.lazy(() => UpdateProjectLinkDeployHooks$outboundSchema), @@ -6958,19 +6445,19 @@ export const UpdateProjectLink$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => UpdateProjectLink4$inboundSchema), - z.lazy(() => UpdateProjectLink5$inboundSchema), - z.lazy(() => UpdateProjectLink3$inboundSchema), z.lazy(() => UpdateProjectLink1$inboundSchema), z.lazy(() => UpdateProjectLink2$inboundSchema), + z.lazy(() => UpdateProjectLink3$inboundSchema), + z.lazy(() => UpdateProjectLink4$inboundSchema), + z.lazy(() => UpdateProjectLink5$inboundSchema), ]); /** @internal */ export type UpdateProjectLink$Outbound = - | UpdateProjectLink4$Outbound - | UpdateProjectLink5$Outbound - | UpdateProjectLink3$Outbound | UpdateProjectLink1$Outbound - | UpdateProjectLink2$Outbound; + | UpdateProjectLink2$Outbound + | UpdateProjectLink3$Outbound + | UpdateProjectLink4$Outbound + | UpdateProjectLink5$Outbound; /** @internal */ export const UpdateProjectLink$outboundSchema: z.ZodType< @@ -6978,11 +6465,11 @@ export const UpdateProjectLink$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectLink > = z.union([ - z.lazy(() => UpdateProjectLink4$outboundSchema), - z.lazy(() => UpdateProjectLink5$outboundSchema), - z.lazy(() => UpdateProjectLink3$outboundSchema), z.lazy(() => UpdateProjectLink1$outboundSchema), z.lazy(() => UpdateProjectLink2$outboundSchema), + z.lazy(() => UpdateProjectLink3$outboundSchema), + z.lazy(() => UpdateProjectLink4$outboundSchema), + z.lazy(() => UpdateProjectLink5$outboundSchema), ]); export function updateProjectLinkToJSON( @@ -9139,15 +8626,6 @@ export function updateProjectLastAliasRequestFromJSON( ); } -/** @internal */ -export const UpdateProjectProtectionBypassProjectsScope$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(UpdateProjectProtectionBypassProjectsScope); -/** @internal */ -export const UpdateProjectProtectionBypassProjectsScope$outboundSchema: - z.ZodNativeEnum = - UpdateProjectProtectionBypassProjectsScope$inboundSchema; - /** @internal */ export const UpdateProjectProtectionBypass2$inboundSchema: z.ZodType< UpdateProjectProtectionBypass2, @@ -9156,13 +8634,13 @@ export const UpdateProjectProtectionBypass2$inboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: UpdateProjectProtectionBypassProjectsScope$inboundSchema, + scope: z.literal("automation-bypass"), }); /** @internal */ export type UpdateProjectProtectionBypass2$Outbound = { createdAt: number; createdBy: string; - scope: string; + scope: "automation-bypass"; }; /** @internal */ @@ -9173,7 +8651,7 @@ export const UpdateProjectProtectionBypass2$outboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: UpdateProjectProtectionBypassProjectsScope$outboundSchema, + scope: z.literal("automation-bypass"), }); export function updateProjectProtectionBypass2ToJSON( @@ -9195,15 +8673,6 @@ export function updateProjectProtectionBypass2FromJSON( ); } -/** @internal */ -export const UpdateProjectProtectionBypassScope$inboundSchema: z.ZodNativeEnum< - typeof UpdateProjectProtectionBypassScope -> = z.nativeEnum(UpdateProjectProtectionBypassScope); -/** @internal */ -export const UpdateProjectProtectionBypassScope$outboundSchema: z.ZodNativeEnum< - typeof UpdateProjectProtectionBypassScope -> = UpdateProjectProtectionBypassScope$inboundSchema; - /** @internal */ export const UpdateProjectProtectionBypass1$inboundSchema: z.ZodType< UpdateProjectProtectionBypass1, @@ -9212,7 +8681,7 @@ export const UpdateProjectProtectionBypass1$inboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: UpdateProjectProtectionBypassScope$inboundSchema, + scope: z.literal("integration-automation-bypass"), integrationId: z.string(), configurationId: z.string(), }); @@ -9220,7 +8689,7 @@ export const UpdateProjectProtectionBypass1$inboundSchema: z.ZodType< export type UpdateProjectProtectionBypass1$Outbound = { createdAt: number; createdBy: string; - scope: string; + scope: "integration-automation-bypass"; integrationId: string; configurationId: string; }; @@ -9233,7 +8702,7 @@ export const UpdateProjectProtectionBypass1$outboundSchema: z.ZodType< > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: UpdateProjectProtectionBypassScope$outboundSchema, + scope: z.literal("integration-automation-bypass"), integrationId: z.string(), configurationId: z.string(), }); @@ -10173,24 +9642,6 @@ export function updateProjectBlockFromJSON( ); } -/** @internal */ -export const UpdateProjectBlockHistoryProjectsResponse200Action$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(UpdateProjectBlockHistoryProjectsResponse200Action); -/** @internal */ -export const UpdateProjectBlockHistoryProjectsResponse200Action$outboundSchema: - z.ZodNativeEnum = - UpdateProjectBlockHistoryProjectsResponse200Action$inboundSchema; - -/** @internal */ -export const UpdateProjectHasProjectsResponse200Type$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(UpdateProjectHasProjectsResponse200Type); -/** @internal */ -export const UpdateProjectHasProjectsResponse200Type$outboundSchema: - z.ZodNativeEnum = - UpdateProjectHasProjectsResponse200Type$inboundSchema; - /** @internal */ export const UpdateProjectHasProjectsResponse200Value$inboundSchema: z.ZodType< UpdateProjectHasProjectsResponse200Value, @@ -10245,12 +9696,12 @@ export const UpdateProjectHasProjects2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: UpdateProjectHasProjectsResponse200Type$inboundSchema, + type: z.literal("host"), value: z.lazy(() => UpdateProjectHasProjectsResponse200Value$inboundSchema), }); /** @internal */ export type UpdateProjectHasProjects2$Outbound = { - type: string; + type: "host"; value: UpdateProjectHasProjectsResponse200Value$Outbound; }; @@ -10260,7 +9711,7 @@ export const UpdateProjectHasProjects2$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectHasProjects2 > = z.object({ - type: UpdateProjectHasProjectsResponse200Type$outboundSchema, + type: z.literal("host"), value: z.lazy(() => UpdateProjectHasProjectsResponse200Value$outboundSchema), }); @@ -10281,16 +9732,6 @@ export function updateProjectHasProjects2FromJSON( ); } -/** @internal */ -export const UpdateProjectHasProjectsResponseType$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - UpdateProjectHasProjectsResponseType, - ); -/** @internal */ -export const UpdateProjectHasProjectsResponseType$outboundSchema: - z.ZodNativeEnum = - UpdateProjectHasProjectsResponseType$inboundSchema; - /** @internal */ export const UpdateProjectHasProjectsKey$inboundSchema: z.ZodNativeEnum< typeof UpdateProjectHasProjectsKey @@ -10348,13 +9789,13 @@ export const UpdateProjectHasProjects1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: UpdateProjectHasProjectsResponseType$inboundSchema, + type: z.literal("header"), key: UpdateProjectHasProjectsKey$inboundSchema, value: z.lazy(() => UpdateProjectHasProjectsResponseValue$inboundSchema), }); /** @internal */ export type UpdateProjectHasProjects1$Outbound = { - type: string; + type: "header"; key: string; value: UpdateProjectHasProjectsResponseValue$Outbound; }; @@ -10365,7 +9806,7 @@ export const UpdateProjectHasProjects1$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectHasProjects1 > = z.object({ - type: UpdateProjectHasProjectsResponseType$outboundSchema, + type: z.literal("header"), key: UpdateProjectHasProjectsKey$outboundSchema, value: z.lazy(() => UpdateProjectHasProjectsResponseValue$outboundSchema), }); @@ -10635,7 +10076,7 @@ export const UpdateProjectBlockHistory4$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - action: UpdateProjectBlockHistoryProjectsResponse200Action$inboundSchema, + action: z.literal("route-unblocked"), route: z.union([ z.lazy(() => UpdateProjectRouteProjects1$inboundSchema), z.lazy(() => UpdateProjectRouteProjects2$inboundSchema), @@ -10649,7 +10090,7 @@ export const UpdateProjectBlockHistory4$inboundSchema: z.ZodType< }); /** @internal */ export type UpdateProjectBlockHistory4$Outbound = { - action: string; + action: "route-unblocked"; route: | UpdateProjectRouteProjects1$Outbound | UpdateProjectRouteProjects2$Outbound; @@ -10667,7 +10108,7 @@ export const UpdateProjectBlockHistory4$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectBlockHistory4 > = z.object({ - action: UpdateProjectBlockHistoryProjectsResponse200Action$outboundSchema, + action: z.literal("route-unblocked"), route: z.union([ z.lazy(() => UpdateProjectRouteProjects1$outboundSchema), z.lazy(() => UpdateProjectRouteProjects2$outboundSchema), @@ -10697,29 +10138,6 @@ export function updateProjectBlockHistory4FromJSON( ); } -/** @internal */ -export const UpdateProjectBlockHistoryProjectsResponseAction$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(UpdateProjectBlockHistoryProjectsResponseAction); -/** @internal */ -export const UpdateProjectBlockHistoryProjectsResponseAction$outboundSchema: - z.ZodNativeEnum = - UpdateProjectBlockHistoryProjectsResponseAction$inboundSchema; - -/** @internal */ -export const UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyType - > = z.nativeEnum( - UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyType, - ); -/** @internal */ -export const UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyType - > = - UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema; - /** @internal */ export const UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyValue$inboundSchema: z.ZodType< @@ -10777,15 +10195,14 @@ export const UpdateProjectHasProjectsResponse2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: - UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema, + type: z.literal("host"), value: z.lazy(() => UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyValue$inboundSchema ), }); /** @internal */ export type UpdateProjectHasProjectsResponse2$Outbound = { - type: string; + type: "host"; value: UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyValue$Outbound; }; @@ -10796,8 +10213,7 @@ export const UpdateProjectHasProjectsResponse2$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectHasProjectsResponse2 > = z.object({ - type: - UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema, + type: z.literal("host"), value: z.lazy(() => UpdateProjectHasProjectsResponse200ApplicationJSONResponseBodyValue$outboundSchema ), @@ -10822,17 +10238,6 @@ export function updateProjectHasProjectsResponse2FromJSON( ); } -/** @internal */ -export const UpdateProjectHasProjectsResponse200ApplicationJSONType$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectHasProjectsResponse200ApplicationJSONType - > = z.nativeEnum(UpdateProjectHasProjectsResponse200ApplicationJSONType); -/** @internal */ -export const UpdateProjectHasProjectsResponse200ApplicationJSONType$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectHasProjectsResponse200ApplicationJSONType - > = UpdateProjectHasProjectsResponse200ApplicationJSONType$inboundSchema; - /** @internal */ export const UpdateProjectHasProjectsResponseKey$inboundSchema: z.ZodNativeEnum< typeof UpdateProjectHasProjectsResponseKey @@ -10896,7 +10301,7 @@ export const UpdateProjectHasProjectsResponse1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: UpdateProjectHasProjectsResponse200ApplicationJSONType$inboundSchema, + type: z.literal("header"), key: UpdateProjectHasProjectsResponseKey$inboundSchema, value: z.lazy(() => UpdateProjectHasProjectsResponse200ApplicationJSONValue$inboundSchema @@ -10904,7 +10309,7 @@ export const UpdateProjectHasProjectsResponse1$inboundSchema: z.ZodType< }); /** @internal */ export type UpdateProjectHasProjectsResponse1$Outbound = { - type: string; + type: "header"; key: string; value: UpdateProjectHasProjectsResponse200ApplicationJSONValue$Outbound; }; @@ -10915,7 +10320,7 @@ export const UpdateProjectHasProjectsResponse1$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectHasProjectsResponse1 > = z.object({ - type: UpdateProjectHasProjectsResponse200ApplicationJSONType$outboundSchema, + type: z.literal("header"), key: UpdateProjectHasProjectsResponseKey$outboundSchema, value: z.lazy(() => UpdateProjectHasProjectsResponse200ApplicationJSONValue$outboundSchema @@ -11179,7 +10584,7 @@ export const UpdateProjectBlockHistory3$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - action: UpdateProjectBlockHistoryProjectsResponseAction$inboundSchema, + action: z.literal("route-blocked"), route: z.union([ z.lazy(() => UpdateProjectRoute1$inboundSchema), z.lazy(() => UpdateProjectRoute2$inboundSchema), @@ -11193,7 +10598,7 @@ export const UpdateProjectBlockHistory3$inboundSchema: z.ZodType< }); /** @internal */ export type UpdateProjectBlockHistory3$Outbound = { - action: string; + action: "route-blocked"; route: UpdateProjectRoute1$Outbound | UpdateProjectRoute2$Outbound; reason: string; createdAt: number; @@ -11209,7 +10614,7 @@ export const UpdateProjectBlockHistory3$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectBlockHistory3 > = z.object({ - action: UpdateProjectBlockHistoryProjectsResponseAction$outboundSchema, + action: z.literal("route-blocked"), route: z.union([ z.lazy(() => UpdateProjectRoute1$outboundSchema), z.lazy(() => UpdateProjectRoute2$outboundSchema), @@ -11239,22 +10644,13 @@ export function updateProjectBlockHistory3FromJSON( ); } -/** @internal */ -export const UpdateProjectBlockHistoryProjectsAction$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(UpdateProjectBlockHistoryProjectsAction); -/** @internal */ -export const UpdateProjectBlockHistoryProjectsAction$outboundSchema: - z.ZodNativeEnum = - UpdateProjectBlockHistoryProjectsAction$inboundSchema; - /** @internal */ export const UpdateProjectBlockHistory2$inboundSchema: z.ZodType< UpdateProjectBlockHistory2, z.ZodTypeDef, unknown > = z.object({ - action: UpdateProjectBlockHistoryProjectsAction$inboundSchema, + action: z.literal("unblocked"), createdAt: z.number(), caseId: z.string().optional(), actor: z.string().optional(), @@ -11263,7 +10659,7 @@ export const UpdateProjectBlockHistory2$inboundSchema: z.ZodType< }); /** @internal */ export type UpdateProjectBlockHistory2$Outbound = { - action: string; + action: "unblocked"; createdAt: number; caseId?: string | undefined; actor?: string | undefined; @@ -11277,7 +10673,7 @@ export const UpdateProjectBlockHistory2$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectBlockHistory2 > = z.object({ - action: UpdateProjectBlockHistoryProjectsAction$outboundSchema, + action: z.literal("unblocked"), createdAt: z.number(), caseId: z.string().optional(), actor: z.string().optional(), @@ -11302,22 +10698,13 @@ export function updateProjectBlockHistory2FromJSON( ); } -/** @internal */ -export const UpdateProjectBlockHistoryAction$inboundSchema: z.ZodNativeEnum< - typeof UpdateProjectBlockHistoryAction -> = z.nativeEnum(UpdateProjectBlockHistoryAction); -/** @internal */ -export const UpdateProjectBlockHistoryAction$outboundSchema: z.ZodNativeEnum< - typeof UpdateProjectBlockHistoryAction -> = UpdateProjectBlockHistoryAction$inboundSchema; - /** @internal */ export const UpdateProjectBlockHistory1$inboundSchema: z.ZodType< UpdateProjectBlockHistory1, z.ZodTypeDef, unknown > = z.object({ - action: UpdateProjectBlockHistoryAction$inboundSchema, + action: z.literal("blocked"), reason: z.string(), statusCode: z.number(), createdAt: z.number(), @@ -11328,7 +10715,7 @@ export const UpdateProjectBlockHistory1$inboundSchema: z.ZodType< }); /** @internal */ export type UpdateProjectBlockHistory1$Outbound = { - action: string; + action: "blocked"; reason: string; statusCode: number; createdAt: number; @@ -11344,7 +10731,7 @@ export const UpdateProjectBlockHistory1$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectBlockHistory1 > = z.object({ - action: UpdateProjectBlockHistoryAction$outboundSchema, + action: z.literal("blocked"), reason: z.string(), statusCode: z.number(), createdAt: z.number(), @@ -11378,16 +10765,16 @@ export const UpdateProjectBlockHistory$inboundSchema: z.ZodType< unknown > = z.union([ z.lazy(() => UpdateProjectBlockHistory1$inboundSchema), + z.lazy(() => UpdateProjectBlockHistory2$inboundSchema), z.lazy(() => UpdateProjectBlockHistory3$inboundSchema), z.lazy(() => UpdateProjectBlockHistory4$inboundSchema), - z.lazy(() => UpdateProjectBlockHistory2$inboundSchema), ]); /** @internal */ export type UpdateProjectBlockHistory$Outbound = | UpdateProjectBlockHistory1$Outbound + | UpdateProjectBlockHistory2$Outbound | UpdateProjectBlockHistory3$Outbound - | UpdateProjectBlockHistory4$Outbound - | UpdateProjectBlockHistory2$Outbound; + | UpdateProjectBlockHistory4$Outbound; /** @internal */ export const UpdateProjectBlockHistory$outboundSchema: z.ZodType< @@ -11396,9 +10783,9 @@ export const UpdateProjectBlockHistory$outboundSchema: z.ZodType< UpdateProjectBlockHistory > = z.union([ z.lazy(() => UpdateProjectBlockHistory1$outboundSchema), + z.lazy(() => UpdateProjectBlockHistory2$outboundSchema), z.lazy(() => UpdateProjectBlockHistory3$outboundSchema), z.lazy(() => UpdateProjectBlockHistory4$outboundSchema), - z.lazy(() => UpdateProjectBlockHistory2$outboundSchema), ]); export function updateProjectBlockHistoryToJSON( @@ -11431,9 +10818,9 @@ export const UpdateProjectAbuse$inboundSchema: z.ZodType< blockHistory: z.array( z.union([ z.lazy(() => UpdateProjectBlockHistory1$inboundSchema), + z.lazy(() => UpdateProjectBlockHistory2$inboundSchema), z.lazy(() => UpdateProjectBlockHistory3$inboundSchema), z.lazy(() => UpdateProjectBlockHistory4$inboundSchema), - z.lazy(() => UpdateProjectBlockHistory2$inboundSchema), ]), ).optional(), interstitial: z.boolean().optional(), @@ -11447,9 +10834,9 @@ export type UpdateProjectAbuse$Outbound = { blockHistory?: | Array< | UpdateProjectBlockHistory1$Outbound + | UpdateProjectBlockHistory2$Outbound | UpdateProjectBlockHistory3$Outbound | UpdateProjectBlockHistory4$Outbound - | UpdateProjectBlockHistory2$Outbound > | undefined; interstitial?: boolean | undefined; @@ -11468,9 +10855,9 @@ export const UpdateProjectAbuse$outboundSchema: z.ZodType< blockHistory: z.array( z.union([ z.lazy(() => UpdateProjectBlockHistory1$outboundSchema), + z.lazy(() => UpdateProjectBlockHistory2$outboundSchema), z.lazy(() => UpdateProjectBlockHistory3$outboundSchema), z.lazy(() => UpdateProjectBlockHistory4$outboundSchema), - z.lazy(() => UpdateProjectBlockHistory2$outboundSchema), ]), ).optional(), interstitial: z.boolean().optional(), @@ -11493,15 +10880,6 @@ export function updateProjectAbuseFromJSON( ); } -/** @internal */ -export const UpdateProjectHasProjectsType$inboundSchema: z.ZodNativeEnum< - typeof UpdateProjectHasProjectsType -> = z.nativeEnum(UpdateProjectHasProjectsType); -/** @internal */ -export const UpdateProjectHasProjectsType$outboundSchema: z.ZodNativeEnum< - typeof UpdateProjectHasProjectsType -> = UpdateProjectHasProjectsType$inboundSchema; - /** @internal */ export const UpdateProjectHasProjectsValue$inboundSchema: z.ZodType< UpdateProjectHasProjectsValue, @@ -11549,12 +10927,12 @@ export const UpdateProjectHas2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: UpdateProjectHasProjectsType$inboundSchema, + type: z.literal("host"), value: z.lazy(() => UpdateProjectHasProjectsValue$inboundSchema), }); /** @internal */ export type UpdateProjectHas2$Outbound = { - type: string; + type: "host"; value: UpdateProjectHasProjectsValue$Outbound; }; @@ -11564,7 +10942,7 @@ export const UpdateProjectHas2$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectHas2 > = z.object({ - type: UpdateProjectHasProjectsType$outboundSchema, + type: z.literal("host"), value: z.lazy(() => UpdateProjectHasProjectsValue$outboundSchema), }); @@ -11585,15 +10963,6 @@ export function updateProjectHas2FromJSON( ); } -/** @internal */ -export const UpdateProjectHasType$inboundSchema: z.ZodNativeEnum< - typeof UpdateProjectHasType -> = z.nativeEnum(UpdateProjectHasType); -/** @internal */ -export const UpdateProjectHasType$outboundSchema: z.ZodNativeEnum< - typeof UpdateProjectHasType -> = UpdateProjectHasType$inboundSchema; - /** @internal */ export const UpdateProjectHasKey$inboundSchema: z.ZodNativeEnum< typeof UpdateProjectHasKey @@ -11648,13 +11017,13 @@ export const UpdateProjectHas1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: UpdateProjectHasType$inboundSchema, + type: z.literal("header"), key: UpdateProjectHasKey$inboundSchema, value: z.lazy(() => UpdateProjectHasValue$inboundSchema), }); /** @internal */ export type UpdateProjectHas1$Outbound = { - type: string; + type: "header"; key: string; value: UpdateProjectHasValue$Outbound; }; @@ -11665,7 +11034,7 @@ export const UpdateProjectHas1$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateProjectHas1 > = z.object({ - type: UpdateProjectHasType$outboundSchema, + type: z.literal("header"), key: UpdateProjectHasKey$outboundSchema, value: z.lazy(() => UpdateProjectHasValue$outboundSchema), }); @@ -12207,11 +11576,11 @@ export const UpdateProjectResponseBody$inboundSchema: z.ZodType< z.lazy(() => UpdateProjectLatestDeployments$inboundSchema), ).optional(), link: z.union([ - z.lazy(() => UpdateProjectLink4$inboundSchema), - z.lazy(() => UpdateProjectLink5$inboundSchema), - z.lazy(() => UpdateProjectLink3$inboundSchema), z.lazy(() => UpdateProjectLink1$inboundSchema), z.lazy(() => UpdateProjectLink2$inboundSchema), + z.lazy(() => UpdateProjectLink3$inboundSchema), + z.lazy(() => UpdateProjectLink4$inboundSchema), + z.lazy(() => UpdateProjectLink5$inboundSchema), ]).optional(), microfrontends: z.union([ z.lazy(() => UpdateProjectMicrofrontends1$inboundSchema), @@ -12352,11 +11721,11 @@ export type UpdateProjectResponseBody$Outbound = { | Array | undefined; link?: - | UpdateProjectLink4$Outbound - | UpdateProjectLink5$Outbound - | UpdateProjectLink3$Outbound | UpdateProjectLink1$Outbound | UpdateProjectLink2$Outbound + | UpdateProjectLink3$Outbound + | UpdateProjectLink4$Outbound + | UpdateProjectLink5$Outbound | undefined; microfrontends?: | UpdateProjectMicrofrontends1$Outbound @@ -12487,11 +11856,11 @@ export const UpdateProjectResponseBody$outboundSchema: z.ZodType< z.lazy(() => UpdateProjectLatestDeployments$outboundSchema), ).optional(), link: z.union([ - z.lazy(() => UpdateProjectLink4$outboundSchema), - z.lazy(() => UpdateProjectLink5$outboundSchema), - z.lazy(() => UpdateProjectLink3$outboundSchema), z.lazy(() => UpdateProjectLink1$outboundSchema), z.lazy(() => UpdateProjectLink2$outboundSchema), + z.lazy(() => UpdateProjectLink3$outboundSchema), + z.lazy(() => UpdateProjectLink4$outboundSchema), + z.lazy(() => UpdateProjectLink5$outboundSchema), ]).optional(), microfrontends: z.union([ z.lazy(() => UpdateProjectMicrofrontends1$outboundSchema), diff --git a/src/models/updateprojectprotectionbypassop.ts b/src/models/updateprojectprotectionbypassop.ts index 4fbceece..6c240d63 100644 --- a/src/models/updateprojectprotectionbypassop.ts +++ b/src/models/updateprojectprotectionbypassop.ts @@ -5,7 +5,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; -import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; @@ -60,29 +59,16 @@ export type UpdateProjectProtectionBypassRequest = { requestBody: UpdateProjectProtectionBypassRequestBody; }; -export const UpdateProjectProtectionBypassProtectionBypassProjectsScope = { - AutomationBypass: "automation-bypass", -} as const; -export type UpdateProjectProtectionBypassProtectionBypassProjectsScope = - ClosedEnum; - export type UpdateProjectProtectionBypassProtectionBypass2 = { createdAt: number; createdBy: string; - scope: UpdateProjectProtectionBypassProtectionBypassProjectsScope; + scope: "automation-bypass"; }; -export const UpdateProjectProtectionBypassProtectionBypassScope = { - IntegrationAutomationBypass: "integration-automation-bypass", -} as const; -export type UpdateProjectProtectionBypassProtectionBypassScope = ClosedEnum< - typeof UpdateProjectProtectionBypassProtectionBypassScope ->; - export type UpdateProjectProtectionBypassProtectionBypass1 = { createdAt: number; createdBy: string; - scope: UpdateProjectProtectionBypassProtectionBypassScope; + scope: "integration-automation-bypass"; integrationId: string; configurationId: string; }; @@ -283,17 +269,6 @@ export function updateProjectProtectionBypassRequestFromJSON( ); } -/** @internal */ -export const UpdateProjectProtectionBypassProtectionBypassProjectsScope$inboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectProtectionBypassProtectionBypassProjectsScope - > = z.nativeEnum(UpdateProjectProtectionBypassProtectionBypassProjectsScope); -/** @internal */ -export const UpdateProjectProtectionBypassProtectionBypassProjectsScope$outboundSchema: - z.ZodNativeEnum< - typeof UpdateProjectProtectionBypassProtectionBypassProjectsScope - > = UpdateProjectProtectionBypassProtectionBypassProjectsScope$inboundSchema; - /** @internal */ export const UpdateProjectProtectionBypassProtectionBypass2$inboundSchema: z.ZodType< @@ -303,14 +278,13 @@ export const UpdateProjectProtectionBypassProtectionBypass2$inboundSchema: > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: - UpdateProjectProtectionBypassProtectionBypassProjectsScope$inboundSchema, + scope: z.literal("automation-bypass"), }); /** @internal */ export type UpdateProjectProtectionBypassProtectionBypass2$Outbound = { createdAt: number; createdBy: string; - scope: string; + scope: "automation-bypass"; }; /** @internal */ @@ -322,8 +296,7 @@ export const UpdateProjectProtectionBypassProtectionBypass2$outboundSchema: > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: - UpdateProjectProtectionBypassProtectionBypassProjectsScope$outboundSchema, + scope: z.literal("automation-bypass"), }); export function updateProjectProtectionBypassProtectionBypass2ToJSON( @@ -352,15 +325,6 @@ export function updateProjectProtectionBypassProtectionBypass2FromJSON( ); } -/** @internal */ -export const UpdateProjectProtectionBypassProtectionBypassScope$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(UpdateProjectProtectionBypassProtectionBypassScope); -/** @internal */ -export const UpdateProjectProtectionBypassProtectionBypassScope$outboundSchema: - z.ZodNativeEnum = - UpdateProjectProtectionBypassProtectionBypassScope$inboundSchema; - /** @internal */ export const UpdateProjectProtectionBypassProtectionBypass1$inboundSchema: z.ZodType< @@ -370,7 +334,7 @@ export const UpdateProjectProtectionBypassProtectionBypass1$inboundSchema: > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: UpdateProjectProtectionBypassProtectionBypassScope$inboundSchema, + scope: z.literal("integration-automation-bypass"), integrationId: z.string(), configurationId: z.string(), }); @@ -378,7 +342,7 @@ export const UpdateProjectProtectionBypassProtectionBypass1$inboundSchema: export type UpdateProjectProtectionBypassProtectionBypass1$Outbound = { createdAt: number; createdBy: string; - scope: string; + scope: "integration-automation-bypass"; integrationId: string; configurationId: string; }; @@ -392,7 +356,7 @@ export const UpdateProjectProtectionBypassProtectionBypass1$outboundSchema: > = z.object({ createdAt: z.number(), createdBy: z.string(), - scope: UpdateProjectProtectionBypassProtectionBypassScope$outboundSchema, + scope: z.literal("integration-automation-bypass"), integrationId: z.string(), configurationId: z.string(), }); diff --git a/src/models/userevent.ts b/src/models/userevent.ts index bbdfded0..2aacd1ac 100644 --- a/src/models/userevent.ts +++ b/src/models/userevent.ts @@ -2568,15 +2568,8 @@ export type PayloadBilling = { plan: Plan; }; -export const UserEventCredentialsType = { - GithubOauthCustomHost: "github-oauth-custom-host", -} as const; -export type UserEventCredentialsType = ClosedEnum< - typeof UserEventCredentialsType ->; - export type Credentials2 = { - type: UserEventCredentialsType; + type: "github-oauth-custom-host"; host: string; id: string; }; @@ -2596,7 +2589,14 @@ export type Credentials1 = { id: string; }; -export type Credentials = Credentials2 | Credentials1; +export type Credentials = + | (Credentials1 & { type: "gitlab" }) + | (Credentials1 & { type: "bitbucket" }) + | (Credentials1 & { type: "google" }) + | (Credentials1 & { type: "apple" }) + | (Credentials1 & { type: "github-oauth" }) + | (Credentials1 & { type: "github-oauth-limited" }) + | Credentials2; export type PayloadDataCache = { excessBillingEnabled?: boolean | undefined; @@ -3651,7 +3651,17 @@ export type NewOwner = { blockReason?: string | undefined; created?: number | undefined; createdAt: number; - credentials?: Array | undefined; + credentials?: + | Array< + | (Credentials1 & { type: "gitlab" }) + | (Credentials1 & { type: "bitbucket" }) + | (Credentials1 & { type: "google" }) + | (Credentials1 & { type: "apple" }) + | (Credentials1 & { type: "github-oauth" }) + | (Credentials1 & { type: "github-oauth-limited" }) + | Credentials2 + > + | undefined; customerId?: string | null | undefined; orbCustomerId?: string | null | undefined; dataCache?: PayloadDataCache | undefined; @@ -15815,28 +15825,19 @@ export function payloadBillingFromJSON( ); } -/** @internal */ -export const UserEventCredentialsType$inboundSchema: z.ZodNativeEnum< - typeof UserEventCredentialsType -> = z.nativeEnum(UserEventCredentialsType); -/** @internal */ -export const UserEventCredentialsType$outboundSchema: z.ZodNativeEnum< - typeof UserEventCredentialsType -> = UserEventCredentialsType$inboundSchema; - /** @internal */ export const Credentials2$inboundSchema: z.ZodType< Credentials2, z.ZodTypeDef, unknown > = z.object({ - type: UserEventCredentialsType$inboundSchema, + type: z.literal("github-oauth-custom-host"), host: z.string(), id: z.string(), }); /** @internal */ export type Credentials2$Outbound = { - type: string; + type: "github-oauth-custom-host"; host: string; id: string; }; @@ -15847,7 +15848,7 @@ export const Credentials2$outboundSchema: z.ZodType< z.ZodTypeDef, Credentials2 > = z.object({ - type: UserEventCredentialsType$outboundSchema, + type: z.literal("github-oauth-custom-host"), host: z.string(), id: z.string(), }); @@ -15918,13 +15919,35 @@ export const Credentials$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ + z.lazy(() => Credentials1$inboundSchema).and( + z.object({ type: z.literal("gitlab") }), + ), + z.lazy(() => Credentials1$inboundSchema).and( + z.object({ type: z.literal("bitbucket") }), + ), + z.lazy(() => Credentials1$inboundSchema).and( + z.object({ type: z.literal("google") }), + ), + z.lazy(() => Credentials1$inboundSchema).and( + z.object({ type: z.literal("apple") }), + ), + z.lazy(() => Credentials1$inboundSchema).and( + z.object({ type: z.literal("github-oauth") }), + ), + z.lazy(() => Credentials1$inboundSchema).and( + z.object({ type: z.literal("github-oauth-limited") }), + ), z.lazy(() => Credentials2$inboundSchema), - z.lazy(() => Credentials1$inboundSchema), ]); /** @internal */ export type Credentials$Outbound = - | Credentials2$Outbound - | Credentials1$Outbound; + | (Credentials1$Outbound & { type: "gitlab" }) + | (Credentials1$Outbound & { type: "bitbucket" }) + | (Credentials1$Outbound & { type: "google" }) + | (Credentials1$Outbound & { type: "apple" }) + | (Credentials1$Outbound & { type: "github-oauth" }) + | (Credentials1$Outbound & { type: "github-oauth-limited" }) + | Credentials2$Outbound; /** @internal */ export const Credentials$outboundSchema: z.ZodType< @@ -15932,8 +15955,25 @@ export const Credentials$outboundSchema: z.ZodType< z.ZodTypeDef, Credentials > = z.union([ + z.lazy(() => Credentials1$outboundSchema).and( + z.object({ type: z.literal("gitlab") }), + ), + z.lazy(() => Credentials1$outboundSchema).and( + z.object({ type: z.literal("bitbucket") }), + ), + z.lazy(() => Credentials1$outboundSchema).and( + z.object({ type: z.literal("google") }), + ), + z.lazy(() => Credentials1$outboundSchema).and( + z.object({ type: z.literal("apple") }), + ), + z.lazy(() => Credentials1$outboundSchema).and( + z.object({ type: z.literal("github-oauth") }), + ), + z.lazy(() => Credentials1$outboundSchema).and( + z.object({ type: z.literal("github-oauth-limited") }), + ), z.lazy(() => Credentials2$outboundSchema), - z.lazy(() => Credentials1$outboundSchema), ]); export function credentialsToJSON(credentials: Credentials): string { @@ -20198,8 +20238,25 @@ export const NewOwner$inboundSchema: z.ZodType< createdAt: z.number(), credentials: z.array( z.union([ + z.lazy(() => Credentials1$inboundSchema).and( + z.object({ type: z.literal("gitlab") }), + ), + z.lazy(() => Credentials1$inboundSchema).and( + z.object({ type: z.literal("bitbucket") }), + ), + z.lazy(() => Credentials1$inboundSchema).and( + z.object({ type: z.literal("google") }), + ), + z.lazy(() => Credentials1$inboundSchema).and( + z.object({ type: z.literal("apple") }), + ), + z.lazy(() => Credentials1$inboundSchema).and( + z.object({ type: z.literal("github-oauth") }), + ), + z.lazy(() => Credentials1$inboundSchema).and( + z.object({ type: z.literal("github-oauth-limited") }), + ), z.lazy(() => Credentials2$inboundSchema), - z.lazy(() => Credentials1$inboundSchema), ]), ).optional(), customerId: z.nullable(z.string()).optional(), @@ -20292,7 +20349,15 @@ export type NewOwner$Outbound = { created?: number | undefined; createdAt: number; credentials?: - | Array + | Array< + | (Credentials1$Outbound & { type: "gitlab" }) + | (Credentials1$Outbound & { type: "bitbucket" }) + | (Credentials1$Outbound & { type: "google" }) + | (Credentials1$Outbound & { type: "apple" }) + | (Credentials1$Outbound & { type: "github-oauth" }) + | (Credentials1$Outbound & { type: "github-oauth-limited" }) + | Credentials2$Outbound + > | undefined; customerId?: string | null | undefined; orbCustomerId?: string | null | undefined; @@ -20382,8 +20447,25 @@ export const NewOwner$outboundSchema: z.ZodType< createdAt: z.number(), credentials: z.array( z.union([ + z.lazy(() => Credentials1$outboundSchema).and( + z.object({ type: z.literal("gitlab") }), + ), + z.lazy(() => Credentials1$outboundSchema).and( + z.object({ type: z.literal("bitbucket") }), + ), + z.lazy(() => Credentials1$outboundSchema).and( + z.object({ type: z.literal("google") }), + ), + z.lazy(() => Credentials1$outboundSchema).and( + z.object({ type: z.literal("apple") }), + ), + z.lazy(() => Credentials1$outboundSchema).and( + z.object({ type: z.literal("github-oauth") }), + ), + z.lazy(() => Credentials1$outboundSchema).and( + z.object({ type: z.literal("github-oauth-limited") }), + ), z.lazy(() => Credentials2$outboundSchema), - z.lazy(() => Credentials1$outboundSchema), ]), ).optional(), customerId: z.nullable(z.string()).optional(), diff --git a/src/types/unrecognized.ts b/src/types/unrecognized.ts index 08227f26..b7a2a13f 100644 --- a/src/types/unrecognized.ts +++ b/src/types/unrecognized.ts @@ -16,8 +16,16 @@ export function startCountingUnrecognized() { refCount++; const start = globalCount; return { - end: () => { + /** + * Ends counting and returns the delta. + * @param delta - If provided, only this amount is added to the parent counter + * (used for nested unions where we only want to record the winning option's count). + * If not provided, records all counts since start(). + */ + end: (delta?: number) => { const count = globalCount - start; + // Reset globalCount back to start, then add only the specified delta + globalCount = start + (delta ?? count); if (--refCount === 0) globalCount = 0; return count; }, diff --git a/tsconfig.json b/tsconfig.json index 8a8858bf..a9f80db5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,6 @@ { "compilerOptions": { "incremental": true, - "tsBuildInfoFile": ".tsbuildinfo", "target": "ES2020", "lib": ["ES2022", "DOM", "DOM.Iterable"], "jsx": "react-jsx",